TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
attribute_types.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: attribute_types.proto
3 
4 #ifndef PROTOBUF_attribute_5ftypes_2eproto__INCLUDED
5 #define PROTOBUF_attribute_5ftypes_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 
28 #include "entity_types.pb.h"
29 #include "Define.h" // for TC_SHARED_API
30 // @@protoc_insertion_point(includes)
31 
32 namespace bgs {
33 namespace protocol {
34 
35 // Internal implementation detail -- do not call these.
39 
40 class Variant;
41 class Attribute;
42 class AttributeFilter;
43 
49 };
53 const int AttributeFilter_Operation_Operation_ARRAYSIZE = AttributeFilter_Operation_Operation_MAX + 1;
54 
55 TC_SHARED_API const ::google::protobuf::EnumDescriptor* AttributeFilter_Operation_descriptor();
59 }
61  const ::std::string& name, AttributeFilter_Operation* value) {
62  return ::google::protobuf::internal::ParseNamedEnum<AttributeFilter_Operation>(
64 }
65 // ===================================================================
66 
68  public:
69  Variant();
70  virtual ~Variant();
71 
72  Variant(const Variant& from);
73 
74  inline Variant& operator=(const Variant& from) {
75  CopyFrom(from);
76  return *this;
77  }
78 
79  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
80  return _unknown_fields_;
81  }
82 
83  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
84  return &_unknown_fields_;
85  }
86 
87  static const ::google::protobuf::Descriptor* descriptor();
88  static const Variant& default_instance();
89 
90  void Swap(Variant* other);
91 
92  // implements Message ----------------------------------------------
93 
94  Variant* New() const;
95  void CopyFrom(const ::google::protobuf::Message& from);
96  void MergeFrom(const ::google::protobuf::Message& from);
97  void CopyFrom(const Variant& from);
98  void MergeFrom(const Variant& from);
99  void Clear();
100  bool IsInitialized() const;
101 
102  int ByteSize() const;
103  bool MergePartialFromCodedStream(
105  void SerializeWithCachedSizes(
107  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
108  int GetCachedSize() const { return _cached_size_; }
109  private:
110  void SharedCtor();
111  void SharedDtor();
112  void SetCachedSize(int size) const;
113  public:
114  ::google::protobuf::Metadata GetMetadata() const;
115 
116  // nested types ----------------------------------------------------
117 
118  // accessors -------------------------------------------------------
119 
120  // optional bool bool_value = 2;
121  inline bool has_bool_value() const;
122  inline void clear_bool_value();
123  static const int kBoolValueFieldNumber = 2;
124  inline bool bool_value() const;
125  inline void set_bool_value(bool value);
126 
127  // optional int64 int_value = 3;
128  inline bool has_int_value() const;
129  inline void clear_int_value();
130  static const int kIntValueFieldNumber = 3;
131  inline ::google::protobuf::int64 int_value() const;
132  inline void set_int_value(::google::protobuf::int64 value);
133 
134  // optional double float_value = 4;
135  inline bool has_float_value() const;
136  inline void clear_float_value();
137  static const int kFloatValueFieldNumber = 4;
138  inline double float_value() const;
139  inline void set_float_value(double value);
140 
141  // optional string string_value = 5;
142  inline bool has_string_value() const;
143  inline void clear_string_value();
144  static const int kStringValueFieldNumber = 5;
145  inline const ::std::string& string_value() const;
146  inline void set_string_value(const ::std::string& value);
147  inline void set_string_value(const char* value);
148  inline void set_string_value(const char* value, size_t size);
149  inline ::std::string* mutable_string_value();
150  inline ::std::string* release_string_value();
151  inline void set_allocated_string_value(::std::string* string_value);
152 
153  // optional bytes blob_value = 6;
154  inline bool has_blob_value() const;
155  inline void clear_blob_value();
156  static const int kBlobValueFieldNumber = 6;
157  inline const ::std::string& blob_value() const;
158  inline void set_blob_value(const ::std::string& value);
159  inline void set_blob_value(const char* value);
160  inline void set_blob_value(const void* value, size_t size);
161  inline ::std::string* mutable_blob_value();
162  inline ::std::string* release_blob_value();
163  inline void set_allocated_blob_value(::std::string* blob_value);
164 
165  // optional bytes message_value = 7;
166  inline bool has_message_value() const;
167  inline void clear_message_value();
168  static const int kMessageValueFieldNumber = 7;
169  inline const ::std::string& message_value() const;
170  inline void set_message_value(const ::std::string& value);
171  inline void set_message_value(const char* value);
172  inline void set_message_value(const void* value, size_t size);
173  inline ::std::string* mutable_message_value();
174  inline ::std::string* release_message_value();
175  inline void set_allocated_message_value(::std::string* message_value);
176 
177  // optional string fourcc_value = 8;
178  inline bool has_fourcc_value() const;
179  inline void clear_fourcc_value();
180  static const int kFourccValueFieldNumber = 8;
181  inline const ::std::string& fourcc_value() const;
182  inline void set_fourcc_value(const ::std::string& value);
183  inline void set_fourcc_value(const char* value);
184  inline void set_fourcc_value(const char* value, size_t size);
185  inline ::std::string* mutable_fourcc_value();
186  inline ::std::string* release_fourcc_value();
187  inline void set_allocated_fourcc_value(::std::string* fourcc_value);
188 
189  // optional uint64 uint_value = 9;
190  inline bool has_uint_value() const;
191  inline void clear_uint_value();
192  static const int kUintValueFieldNumber = 9;
193  inline ::google::protobuf::uint64 uint_value() const;
194  inline void set_uint_value(::google::protobuf::uint64 value);
195 
196  // optional .bgs.protocol.EntityId entity_id_value = 10;
197  inline bool has_entity_id_value() const;
198  inline void clear_entity_id_value();
199  static const int kEntityIdValueFieldNumber = 10;
200  inline const ::bgs::protocol::EntityId& entity_id_value() const;
201  inline ::bgs::protocol::EntityId* mutable_entity_id_value();
202  inline ::bgs::protocol::EntityId* release_entity_id_value();
203  inline void set_allocated_entity_id_value(::bgs::protocol::EntityId* entity_id_value);
204 
205  // @@protoc_insertion_point(class_scope:bgs.protocol.Variant)
206  private:
207  inline void set_has_bool_value();
208  inline void clear_has_bool_value();
209  inline void set_has_int_value();
210  inline void clear_has_int_value();
211  inline void set_has_float_value();
212  inline void clear_has_float_value();
213  inline void set_has_string_value();
214  inline void clear_has_string_value();
215  inline void set_has_blob_value();
216  inline void clear_has_blob_value();
217  inline void set_has_message_value();
218  inline void clear_has_message_value();
219  inline void set_has_fourcc_value();
220  inline void clear_has_fourcc_value();
221  inline void set_has_uint_value();
222  inline void clear_has_uint_value();
223  inline void set_has_entity_id_value();
224  inline void clear_has_entity_id_value();
225 
227 
229  mutable int _cached_size_;
231  double float_value_;
232  ::std::string* string_value_;
233  ::std::string* blob_value_;
234  ::std::string* message_value_;
235  ::std::string* fourcc_value_;
242 
243  void InitAsDefaultInstance();
245 };
246 // -------------------------------------------------------------------
247 
249  public:
250  Attribute();
251  virtual ~Attribute();
252 
253  Attribute(const Attribute& from);
254 
255  inline Attribute& operator=(const Attribute& from) {
256  CopyFrom(from);
257  return *this;
258  }
259 
260  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
261  return _unknown_fields_;
262  }
263 
264  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
265  return &_unknown_fields_;
266  }
267 
268  static const ::google::protobuf::Descriptor* descriptor();
269  static const Attribute& default_instance();
270 
271  void Swap(Attribute* other);
272 
273  // implements Message ----------------------------------------------
274 
275  Attribute* New() const;
276  void CopyFrom(const ::google::protobuf::Message& from);
277  void MergeFrom(const ::google::protobuf::Message& from);
278  void CopyFrom(const Attribute& from);
279  void MergeFrom(const Attribute& from);
280  void Clear();
281  bool IsInitialized() const;
282 
283  int ByteSize() const;
284  bool MergePartialFromCodedStream(
286  void SerializeWithCachedSizes(
288  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
289  int GetCachedSize() const { return _cached_size_; }
290  private:
291  void SharedCtor();
292  void SharedDtor();
293  void SetCachedSize(int size) const;
294  public:
295  ::google::protobuf::Metadata GetMetadata() const;
296 
297  // nested types ----------------------------------------------------
298 
299  // accessors -------------------------------------------------------
300 
301  // required string name = 1;
302  inline bool has_name() const;
303  inline void clear_name();
304  static const int kNameFieldNumber = 1;
305  inline const ::std::string& name() const;
306  inline void set_name(const ::std::string& value);
307  inline void set_name(const char* value);
308  inline void set_name(const char* value, size_t size);
309  inline ::std::string* mutable_name();
310  inline ::std::string* release_name();
311  inline void set_allocated_name(::std::string* name);
312 
313  // required .bgs.protocol.Variant value = 2;
314  inline bool has_value() const;
315  inline void clear_value();
316  static const int kValueFieldNumber = 2;
317  inline const ::bgs::protocol::Variant& value() const;
318  inline ::bgs::protocol::Variant* mutable_value();
319  inline ::bgs::protocol::Variant* release_value();
320  inline void set_allocated_value(::bgs::protocol::Variant* value);
321 
322  // @@protoc_insertion_point(class_scope:bgs.protocol.Attribute)
323  private:
324  inline void set_has_name();
325  inline void clear_has_name();
326  inline void set_has_value();
327  inline void clear_has_value();
328 
330 
332  mutable int _cached_size_;
333  ::std::string* name_;
338 
339  void InitAsDefaultInstance();
341 };
342 // -------------------------------------------------------------------
343 
345  public:
346  AttributeFilter();
347  virtual ~AttributeFilter();
348 
349  AttributeFilter(const AttributeFilter& from);
350 
352  CopyFrom(from);
353  return *this;
354  }
355 
356  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
357  return _unknown_fields_;
358  }
359 
360  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
361  return &_unknown_fields_;
362  }
363 
364  static const ::google::protobuf::Descriptor* descriptor();
365  static const AttributeFilter& default_instance();
366 
367  void Swap(AttributeFilter* other);
368 
369  // implements Message ----------------------------------------------
370 
371  AttributeFilter* New() const;
372  void CopyFrom(const ::google::protobuf::Message& from);
373  void MergeFrom(const ::google::protobuf::Message& from);
374  void CopyFrom(const AttributeFilter& from);
375  void MergeFrom(const AttributeFilter& from);
376  void Clear();
377  bool IsInitialized() const;
378 
379  int ByteSize() const;
380  bool MergePartialFromCodedStream(
382  void SerializeWithCachedSizes(
384  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
385  int GetCachedSize() const { return _cached_size_; }
386  private:
387  void SharedCtor();
388  void SharedDtor();
389  void SetCachedSize(int size) const;
390  public:
391  ::google::protobuf::Metadata GetMetadata() const;
392 
393  // nested types ----------------------------------------------------
394 
396  static const Operation MATCH_NONE = AttributeFilter_Operation_MATCH_NONE;
397  static const Operation MATCH_ANY = AttributeFilter_Operation_MATCH_ANY;
398  static const Operation MATCH_ALL = AttributeFilter_Operation_MATCH_ALL;
399  static const Operation MATCH_ALL_MOST_SPECIFIC = AttributeFilter_Operation_MATCH_ALL_MOST_SPECIFIC;
400  static inline bool Operation_IsValid(int value) {
401  return AttributeFilter_Operation_IsValid(value);
402  }
403  static const Operation Operation_MIN =
405  static const Operation Operation_MAX =
407  static const int Operation_ARRAYSIZE =
409  static inline const ::google::protobuf::EnumDescriptor*
412  }
413  static inline const ::std::string& Operation_Name(Operation value) {
414  return AttributeFilter_Operation_Name(value);
415  }
416  static inline bool Operation_Parse(const ::std::string& name,
417  Operation* value) {
418  return AttributeFilter_Operation_Parse(name, value);
419  }
420 
421  // accessors -------------------------------------------------------
422 
423  // required .bgs.protocol.AttributeFilter.Operation op = 1;
424  inline bool has_op() const;
425  inline void clear_op();
426  static const int kOpFieldNumber = 1;
428  inline void set_op(::bgs::protocol::AttributeFilter_Operation value);
429 
430  // repeated .bgs.protocol.Attribute attribute = 2;
431  inline int attribute_size() const;
432  inline void clear_attribute();
433  static const int kAttributeFieldNumber = 2;
434  inline const ::bgs::protocol::Attribute& attribute(int index) const;
435  inline ::bgs::protocol::Attribute* mutable_attribute(int index);
436  inline ::bgs::protocol::Attribute* add_attribute();
437  inline const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Attribute >&
438  attribute() const;
439  inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Attribute >*
440  mutable_attribute();
441 
442  // @@protoc_insertion_point(class_scope:bgs.protocol.AttributeFilter)
443  private:
444  inline void set_has_op();
445  inline void clear_has_op();
446 
448 
450  mutable int _cached_size_;
452  int op_;
456 
457  void InitAsDefaultInstance();
459 };
460 // ===================================================================
461 
462 
463 // ===================================================================
464 
465 
466 // ===================================================================
467 
468 // Variant
469 
470 // optional bool bool_value = 2;
471 inline bool Variant::has_bool_value() const {
472  return (_has_bits_[0] & 0x00000001u) != 0;
473 }
475  _has_bits_[0] |= 0x00000001u;
476 }
478  _has_bits_[0] &= ~0x00000001u;
479 }
481  bool_value_ = false;
483 }
484 inline bool Variant::bool_value() const {
485  // @@protoc_insertion_point(field_get:bgs.protocol.Variant.bool_value)
486  return bool_value_;
487 }
488 inline void Variant::set_bool_value(bool value) {
490  bool_value_ = value;
491  // @@protoc_insertion_point(field_set:bgs.protocol.Variant.bool_value)
492 }
493 
494 // optional int64 int_value = 3;
495 inline bool Variant::has_int_value() const {
496  return (_has_bits_[0] & 0x00000002u) != 0;
497 }
499  _has_bits_[0] |= 0x00000002u;
500 }
502  _has_bits_[0] &= ~0x00000002u;
503 }
507 }
509  // @@protoc_insertion_point(field_get:bgs.protocol.Variant.int_value)
510  return int_value_;
511 }
514  int_value_ = value;
515  // @@protoc_insertion_point(field_set:bgs.protocol.Variant.int_value)
516 }
517 
518 // optional double float_value = 4;
519 inline bool Variant::has_float_value() const {
520  return (_has_bits_[0] & 0x00000004u) != 0;
521 }
523  _has_bits_[0] |= 0x00000004u;
524 }
526  _has_bits_[0] &= ~0x00000004u;
527 }
529  float_value_ = 0;
531 }
532 inline double Variant::float_value() const {
533  // @@protoc_insertion_point(field_get:bgs.protocol.Variant.float_value)
534  return float_value_;
535 }
536 inline void Variant::set_float_value(double value) {
539  // @@protoc_insertion_point(field_set:bgs.protocol.Variant.float_value)
540 }
541 
542 // optional string string_value = 5;
543 inline bool Variant::has_string_value() const {
544  return (_has_bits_[0] & 0x00000008u) != 0;
545 }
547  _has_bits_[0] |= 0x00000008u;
548 }
550  _has_bits_[0] &= ~0x00000008u;
551 }
554  string_value_->clear();
555  }
557 }
558 inline const ::std::string& Variant::string_value() const {
559  // @@protoc_insertion_point(field_get:bgs.protocol.Variant.string_value)
560  return *string_value_;
561 }
562 inline void Variant::set_string_value(const ::std::string& value) {
565  string_value_ = new ::std::string;
566  }
567  string_value_->assign(value);
568  // @@protoc_insertion_point(field_set:bgs.protocol.Variant.string_value)
569 }
570 inline void Variant::set_string_value(const char* value) {
573  string_value_ = new ::std::string;
574  }
575  string_value_->assign(value);
576  // @@protoc_insertion_point(field_set_char:bgs.protocol.Variant.string_value)
577 }
578 inline void Variant::set_string_value(const char* value, size_t size) {
581  string_value_ = new ::std::string;
582  }
583  string_value_->assign(reinterpret_cast<const char*>(value), size);
584  // @@protoc_insertion_point(field_set_pointer:bgs.protocol.Variant.string_value)
585 }
586 inline ::std::string* Variant::mutable_string_value() {
589  string_value_ = new ::std::string;
590  }
591  // @@protoc_insertion_point(field_mutable:bgs.protocol.Variant.string_value)
592  return string_value_;
593 }
594 inline ::std::string* Variant::release_string_value() {
597  return NULL;
598  } else {
599  ::std::string* temp = string_value_;
601  return temp;
602  }
603 }
604 inline void Variant::set_allocated_string_value(::std::string* string_value) {
606  delete string_value_;
607  }
608  if (string_value) {
611  } else {
614  }
615  // @@protoc_insertion_point(field_set_allocated:bgs.protocol.Variant.string_value)
616 }
617 
618 // optional bytes blob_value = 6;
619 inline bool Variant::has_blob_value() const {
620  return (_has_bits_[0] & 0x00000010u) != 0;
621 }
623  _has_bits_[0] |= 0x00000010u;
624 }
626  _has_bits_[0] &= ~0x00000010u;
627 }
630  blob_value_->clear();
631  }
633 }
634 inline const ::std::string& Variant::blob_value() const {
635  // @@protoc_insertion_point(field_get:bgs.protocol.Variant.blob_value)
636  return *blob_value_;
637 }
638 inline void Variant::set_blob_value(const ::std::string& value) {
641  blob_value_ = new ::std::string;
642  }
643  blob_value_->assign(value);
644  // @@protoc_insertion_point(field_set:bgs.protocol.Variant.blob_value)
645 }
646 inline void Variant::set_blob_value(const char* value) {
649  blob_value_ = new ::std::string;
650  }
651  blob_value_->assign(value);
652  // @@protoc_insertion_point(field_set_char:bgs.protocol.Variant.blob_value)
653 }
654 inline void Variant::set_blob_value(const void* value, size_t size) {
657  blob_value_ = new ::std::string;
658  }
659  blob_value_->assign(reinterpret_cast<const char*>(value), size);
660  // @@protoc_insertion_point(field_set_pointer:bgs.protocol.Variant.blob_value)
661 }
662 inline ::std::string* Variant::mutable_blob_value() {
665  blob_value_ = new ::std::string;
666  }
667  // @@protoc_insertion_point(field_mutable:bgs.protocol.Variant.blob_value)
668  return blob_value_;
669 }
670 inline ::std::string* Variant::release_blob_value() {
673  return NULL;
674  } else {
675  ::std::string* temp = blob_value_;
677  return temp;
678  }
679 }
680 inline void Variant::set_allocated_blob_value(::std::string* blob_value) {
682  delete blob_value_;
683  }
684  if (blob_value) {
687  } else {
690  }
691  // @@protoc_insertion_point(field_set_allocated:bgs.protocol.Variant.blob_value)
692 }
693 
694 // optional bytes message_value = 7;
695 inline bool Variant::has_message_value() const {
696  return (_has_bits_[0] & 0x00000020u) != 0;
697 }
699  _has_bits_[0] |= 0x00000020u;
700 }
702  _has_bits_[0] &= ~0x00000020u;
703 }
706  message_value_->clear();
707  }
709 }
710 inline const ::std::string& Variant::message_value() const {
711  // @@protoc_insertion_point(field_get:bgs.protocol.Variant.message_value)
712  return *message_value_;
713 }
714 inline void Variant::set_message_value(const ::std::string& value) {
717  message_value_ = new ::std::string;
718  }
719  message_value_->assign(value);
720  // @@protoc_insertion_point(field_set:bgs.protocol.Variant.message_value)
721 }
722 inline void Variant::set_message_value(const char* value) {
725  message_value_ = new ::std::string;
726  }
727  message_value_->assign(value);
728  // @@protoc_insertion_point(field_set_char:bgs.protocol.Variant.message_value)
729 }
730 inline void Variant::set_message_value(const void* value, size_t size) {
733  message_value_ = new ::std::string;
734  }
735  message_value_->assign(reinterpret_cast<const char*>(value), size);
736  // @@protoc_insertion_point(field_set_pointer:bgs.protocol.Variant.message_value)
737 }
738 inline ::std::string* Variant::mutable_message_value() {
741  message_value_ = new ::std::string;
742  }
743  // @@protoc_insertion_point(field_mutable:bgs.protocol.Variant.message_value)
744  return message_value_;
745 }
746 inline ::std::string* Variant::release_message_value() {
749  return NULL;
750  } else {
751  ::std::string* temp = message_value_;
753  return temp;
754  }
755 }
756 inline void Variant::set_allocated_message_value(::std::string* message_value) {
758  delete message_value_;
759  }
760  if (message_value) {
763  } else {
766  }
767  // @@protoc_insertion_point(field_set_allocated:bgs.protocol.Variant.message_value)
768 }
769 
770 // optional string fourcc_value = 8;
771 inline bool Variant::has_fourcc_value() const {
772  return (_has_bits_[0] & 0x00000040u) != 0;
773 }
775  _has_bits_[0] |= 0x00000040u;
776 }
778  _has_bits_[0] &= ~0x00000040u;
779 }
782  fourcc_value_->clear();
783  }
785 }
786 inline const ::std::string& Variant::fourcc_value() const {
787  // @@protoc_insertion_point(field_get:bgs.protocol.Variant.fourcc_value)
788  return *fourcc_value_;
789 }
790 inline void Variant::set_fourcc_value(const ::std::string& value) {
793  fourcc_value_ = new ::std::string;
794  }
795  fourcc_value_->assign(value);
796  // @@protoc_insertion_point(field_set:bgs.protocol.Variant.fourcc_value)
797 }
798 inline void Variant::set_fourcc_value(const char* value) {
801  fourcc_value_ = new ::std::string;
802  }
803  fourcc_value_->assign(value);
804  // @@protoc_insertion_point(field_set_char:bgs.protocol.Variant.fourcc_value)
805 }
806 inline void Variant::set_fourcc_value(const char* value, size_t size) {
809  fourcc_value_ = new ::std::string;
810  }
811  fourcc_value_->assign(reinterpret_cast<const char*>(value), size);
812  // @@protoc_insertion_point(field_set_pointer:bgs.protocol.Variant.fourcc_value)
813 }
814 inline ::std::string* Variant::mutable_fourcc_value() {
817  fourcc_value_ = new ::std::string;
818  }
819  // @@protoc_insertion_point(field_mutable:bgs.protocol.Variant.fourcc_value)
820  return fourcc_value_;
821 }
822 inline ::std::string* Variant::release_fourcc_value() {
825  return NULL;
826  } else {
827  ::std::string* temp = fourcc_value_;
829  return temp;
830  }
831 }
832 inline void Variant::set_allocated_fourcc_value(::std::string* fourcc_value) {
834  delete fourcc_value_;
835  }
836  if (fourcc_value) {
839  } else {
842  }
843  // @@protoc_insertion_point(field_set_allocated:bgs.protocol.Variant.fourcc_value)
844 }
845 
846 // optional uint64 uint_value = 9;
847 inline bool Variant::has_uint_value() const {
848  return (_has_bits_[0] & 0x00000080u) != 0;
849 }
851  _has_bits_[0] |= 0x00000080u;
852 }
854  _has_bits_[0] &= ~0x00000080u;
855 }
859 }
861  // @@protoc_insertion_point(field_get:bgs.protocol.Variant.uint_value)
862  return uint_value_;
863 }
866  uint_value_ = value;
867  // @@protoc_insertion_point(field_set:bgs.protocol.Variant.uint_value)
868 }
869 
870 // optional .bgs.protocol.EntityId entity_id_value = 10;
871 inline bool Variant::has_entity_id_value() const {
872  return (_has_bits_[0] & 0x00000100u) != 0;
873 }
875  _has_bits_[0] |= 0x00000100u;
876 }
878  _has_bits_[0] &= ~0x00000100u;
879 }
881  if (entity_id_value_ != NULL) entity_id_value_->::bgs::protocol::EntityId::Clear();
883 }
884 inline const ::bgs::protocol::EntityId& Variant::entity_id_value() const {
885  // @@protoc_insertion_point(field_get:bgs.protocol.Variant.entity_id_value)
887 }
888 inline ::bgs::protocol::EntityId* Variant::mutable_entity_id_value() {
890  if (entity_id_value_ == NULL) entity_id_value_ = new ::bgs::protocol::EntityId;
891  // @@protoc_insertion_point(field_mutable:bgs.protocol.Variant.entity_id_value)
892  return entity_id_value_;
893 }
894 inline ::bgs::protocol::EntityId* Variant::release_entity_id_value() {
898  return temp;
899 }
901  delete entity_id_value_;
903  if (entity_id_value) {
905  } else {
907  }
908  // @@protoc_insertion_point(field_set_allocated:bgs.protocol.Variant.entity_id_value)
909 }
910 
911 // -------------------------------------------------------------------
912 
913 // Attribute
914 
915 // required string name = 1;
916 inline bool Attribute::has_name() const {
917  return (_has_bits_[0] & 0x00000001u) != 0;
918 }
919 inline void Attribute::set_has_name() {
920  _has_bits_[0] |= 0x00000001u;
921 }
923  _has_bits_[0] &= ~0x00000001u;
924 }
925 inline void Attribute::clear_name() {
927  name_->clear();
928  }
929  clear_has_name();
930 }
931 inline const ::std::string& Attribute::name() const {
932  // @@protoc_insertion_point(field_get:bgs.protocol.Attribute.name)
933  return *name_;
934 }
935 inline void Attribute::set_name(const ::std::string& value) {
936  set_has_name();
938  name_ = new ::std::string;
939  }
940  name_->assign(value);
941  // @@protoc_insertion_point(field_set:bgs.protocol.Attribute.name)
942 }
943 inline void Attribute::set_name(const char* value) {
944  set_has_name();
946  name_ = new ::std::string;
947  }
948  name_->assign(value);
949  // @@protoc_insertion_point(field_set_char:bgs.protocol.Attribute.name)
950 }
951 inline void Attribute::set_name(const char* value, size_t size) {
952  set_has_name();
954  name_ = new ::std::string;
955  }
956  name_->assign(reinterpret_cast<const char*>(value), size);
957  // @@protoc_insertion_point(field_set_pointer:bgs.protocol.Attribute.name)
958 }
959 inline ::std::string* Attribute::mutable_name() {
960  set_has_name();
962  name_ = new ::std::string;
963  }
964  // @@protoc_insertion_point(field_mutable:bgs.protocol.Attribute.name)
965  return name_;
966 }
967 inline ::std::string* Attribute::release_name() {
968  clear_has_name();
970  return NULL;
971  } else {
972  ::std::string* temp = name_;
973  name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
974  return temp;
975  }
976 }
977 inline void Attribute::set_allocated_name(::std::string* name) {
979  delete name_;
980  }
981  if (name) {
982  set_has_name();
983  name_ = name;
984  } else {
985  clear_has_name();
986  name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
987  }
988  // @@protoc_insertion_point(field_set_allocated:bgs.protocol.Attribute.name)
989 }
990 
991 // required .bgs.protocol.Variant value = 2;
992 inline bool Attribute::has_value() const {
993  return (_has_bits_[0] & 0x00000002u) != 0;
994 }
996  _has_bits_[0] |= 0x00000002u;
997 }
999  _has_bits_[0] &= ~0x00000002u;
1000 }
1001 inline void Attribute::clear_value() {
1002  if (value_ != NULL) value_->::bgs::protocol::Variant::Clear();
1003  clear_has_value();
1004 }
1005 inline const ::bgs::protocol::Variant& Attribute::value() const {
1006  // @@protoc_insertion_point(field_get:bgs.protocol.Attribute.value)
1007  return value_ != NULL ? *value_ : *default_instance_->value_;
1008 }
1009 inline ::bgs::protocol::Variant* Attribute::mutable_value() {
1010  set_has_value();
1011  if (value_ == NULL) value_ = new ::bgs::protocol::Variant;
1012  // @@protoc_insertion_point(field_mutable:bgs.protocol.Attribute.value)
1013  return value_;
1014 }
1015 inline ::bgs::protocol::Variant* Attribute::release_value() {
1016  clear_has_value();
1018  value_ = NULL;
1019  return temp;
1020 }
1022  delete value_;
1023  value_ = value;
1024  if (value) {
1025  set_has_value();
1026  } else {
1027  clear_has_value();
1028  }
1029  // @@protoc_insertion_point(field_set_allocated:bgs.protocol.Attribute.value)
1030 }
1031 
1032 // -------------------------------------------------------------------
1033 
1034 // AttributeFilter
1035 
1036 // required .bgs.protocol.AttributeFilter.Operation op = 1;
1037 inline bool AttributeFilter::has_op() const {
1038  return (_has_bits_[0] & 0x00000001u) != 0;
1039 }
1041  _has_bits_[0] |= 0x00000001u;
1042 }
1044  _has_bits_[0] &= ~0x00000001u;
1045 }
1047  op_ = 0;
1048  clear_has_op();
1049 }
1051  // @@protoc_insertion_point(field_get:bgs.protocol.AttributeFilter.op)
1052  return static_cast< ::bgs::protocol::AttributeFilter_Operation >(op_);
1053 }
1056  set_has_op();
1057  op_ = value;
1058  // @@protoc_insertion_point(field_set:bgs.protocol.AttributeFilter.op)
1059 }
1060 
1061 // repeated .bgs.protocol.Attribute attribute = 2;
1063  return attribute_.size();
1064 }
1066  attribute_.Clear();
1067 }
1068 inline const ::bgs::protocol::Attribute& AttributeFilter::attribute(int index) const {
1069  // @@protoc_insertion_point(field_get:bgs.protocol.AttributeFilter.attribute)
1070  return attribute_.Get(index);
1071 }
1072 inline ::bgs::protocol::Attribute* AttributeFilter::mutable_attribute(int index) {
1073  // @@protoc_insertion_point(field_mutable:bgs.protocol.AttributeFilter.attribute)
1074  return attribute_.Mutable(index);
1075 }
1076 inline ::bgs::protocol::Attribute* AttributeFilter::add_attribute() {
1077  // @@protoc_insertion_point(field_add:bgs.protocol.AttributeFilter.attribute)
1078  return attribute_.Add();
1079 }
1080 inline const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Attribute >&
1082  // @@protoc_insertion_point(field_list:bgs.protocol.AttributeFilter.attribute)
1083  return attribute_;
1084 }
1085 inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Attribute >*
1087  // @@protoc_insertion_point(field_mutable_list:bgs.protocol.AttributeFilter.attribute)
1088  return &attribute_;
1089 }
1090 
1091 
1092 // @@protoc_insertion_point(namespace_scope)
1093 
1094 } // namespace protocol
1095 } // namespace bgs
1096 
1097 #ifndef SWIG
1098 namespace google {
1099 namespace protobuf {
1100 
1102 template <>
1103 inline const EnumDescriptor* GetEnumDescriptor< ::bgs::protocol::AttributeFilter_Operation>() {
1105 }
1106 
1107 } // namespace google
1108 } // namespace protobuf
1109 #endif // SWIG
1110 
1111 // @@protoc_insertion_point(global_scope)
1112 
1113 #endif // PROTOBUF_attribute_5ftypes_2eproto__INCLUDED
inline::std::string * mutable_fourcc_value()
Definition: attribute_types.pb.h:814
inline::bgs::protocol::EntityId * mutable_entity_id_value()
Definition: attribute_types.pb.h:888
void TC_SHARED_API protobuf_AddDesc_attribute_5ftypes_2eproto()
Definition: attribute_types.pb.h:67
void set_has_int_value()
Definition: attribute_types.pb.h:498
const AttributeFilter_Operation AttributeFilter_Operation_Operation_MAX
Definition: attribute_types.pb.h:52
TC_SHARED_API bool AttributeFilter_Operation_IsValid(int value)
bool has_bool_value() const
Definition: attribute_types.pb.h:471
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
Definition: attribute_types.pb.h:79
void clear_has_string_value()
Definition: attribute_types.pb.h:549
bool bool_value() const
Definition: attribute_types.pb.h:484
Definition: entity_types.pb.h:45
inline::bgs::protocol::Attribute * add_attribute()
Definition: attribute_types.pb.h:1076
void clear_name()
Definition: attribute_types.pb.h:925
void clear_float_value()
Definition: attribute_types.pb.h:528
bool has_int_value() const
Definition: attribute_types.pb.h:495
int GetCachedSize() const
Definition: attribute_types.pb.h:289
const ::bgs::protocol::EntityId & entity_id_value() const
Definition: attribute_types.pb.h:884
void clear_attribute()
Definition: attribute_types.pb.h:1065
Variant & operator=(const Variant &from)
Definition: attribute_types.pb.h:74
void set_uint_value(::google::protobuf::uint64 value)
Definition: attribute_types.pb.h:864
::google::protobuf::uint64 uint_value_
Definition: attribute_types.pb.h:236
::google::protobuf::uint32 _has_bits_[1]
Definition: attribute_types.pb.h:449
int _cached_size_
Definition: attribute_types.pb.h:332
void set_name(const ::std::string &value)
Definition: attribute_types.pb.h:935
inline::std::string * mutable_name()
Definition: attribute_types.pb.h:959
const ::std::string & blob_value() const
Definition: attribute_types.pb.h:634
bool has_message_value() const
Definition: attribute_types.pb.h:695
Definition: Session.h:36
::google::protobuf::UnknownFieldSet _unknown_fields_
Definition: attribute_types.pb.h:447
bool has_uint_value() const
Definition: attribute_types.pb.h:847
const ::std::string & name() const
Definition: attribute_types.pb.h:931
inline::std::string * mutable_blob_value()
Definition: attribute_types.pb.h:662
void set_op(::bgs::protocol::AttributeFilter_Operation value)
Definition: attribute_types.pb.h:1054
void set_has_message_value()
Definition: attribute_types.pb.h:698
LIBPROTOBUF_EXPORT const string & NameOfEnum(const EnumDescriptor *descriptor, int value)
double float_value_
Definition: attribute_types.pb.h:231
void set_string_value(const ::std::string &value)
Definition: attribute_types.pb.h:562
Definition: unknown_field_set.h:74
void set_allocated_entity_id_value(::bgs::protocol::EntityId *entity_id_value)
Definition: attribute_types.pb.h:900
void clear_has_int_value()
Definition: attribute_types.pb.h:501
void set_has_fourcc_value()
Definition: attribute_types.pb.h:774
uint8_t uint8
Definition: common.h:175
void set_has_op()
Definition: attribute_types.pb.h:1040
void set_float_value(double value)
Definition: attribute_types.pb.h:536
bool has_op() const
Definition: attribute_types.pb.h:1037
const ::std::string & message_value() const
Definition: attribute_types.pb.h:710
static bool Operation_IsValid(int value)
Definition: attribute_types.pb.h:400
arena_t NULL
Definition: jemalloc_internal.h:624
Definition: descriptor.h:683
Definition: message.h:147
void set_blob_value(const ::std::string &value)
Definition: attribute_types.pb.h:638
void clear_entity_id_value()
Definition: attribute_types.pb.h:880
::google::protobuf::RepeatedPtrField< ::bgs::protocol::Attribute > attribute_
Definition: attribute_types.pb.h:451
LIBPROTOBUF_EXPORTconst::std::string & GetEmptyStringAlreadyInited()
Definition: generated_message_util.h:79
::std::string * message_value_
Definition: attribute_types.pb.h:234
void set_fourcc_value(const ::std::string &value)
Definition: attribute_types.pb.h:790
uint64_t uint64
Definition: g3dmath.h:170
static Variant * default_instance_
Definition: attribute_types.pb.h:244
int _cached_size_
Definition: attribute_types.pb.h:229
void set_has_value()
Definition: attribute_types.pb.h:995
inline::bgs::protocol::EntityId * release_entity_id_value()
Definition: attribute_types.pb.h:894
static const ::std::string & Operation_Name(Operation value)
Definition: attribute_types.pb.h:413
void clear_op()
Definition: attribute_types.pb.h:1046
inline::google::protobuf::int64 int_value() const
Definition: attribute_types.pb.h:508
AttributeFilter_Operation
Definition: attribute_types.pb.h:44
inline::bgs::protocol::Variant * mutable_value()
Definition: attribute_types.pb.h:1009
void clear_has_fourcc_value()
Definition: attribute_types.pb.h:777
void set_allocated_fourcc_value(::std::string *fourcc_value)
Definition: attribute_types.pb.h:832
::google::protobuf::UnknownFieldSet _unknown_fields_
Definition: attribute_types.pb.h:226
::google::protobuf::UnknownFieldSet _unknown_fields_
Definition: attribute_types.pb.h:329
bool has_value() const
Definition: attribute_types.pb.h:992
void clear_blob_value()
Definition: attribute_types.pb.h:628
inline::std::string * release_name()
Definition: attribute_types.pb.h:967
void clear_has_name()
Definition: attribute_types.pb.h:922
void clear_has_blob_value()
Definition: attribute_types.pb.h:625
Definition: message.h:165
inline::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
Definition: attribute_types.pb.h:360
#define output
Definition: wire_format_lite.h:381
const ::std::string & fourcc_value() const
Definition: attribute_types.pb.h:786
static Attribute * default_instance_
Definition: attribute_types.pb.h:340
Definition: coded_stream.h:156
const ::bgs::protocol::Variant & value() const
Definition: attribute_types.pb.h:1005
void clear_value()
Definition: attribute_types.pb.h:1001
Definition: template_util.h:77
static AttributeFilter * default_instance_
Definition: attribute_types.pb.h:458
bool has_entity_id_value() const
Definition: attribute_types.pb.h:871
void clear_bool_value()
Definition: attribute_types.pb.h:480
void set_allocated_name(::std::string *name)
Definition: attribute_types.pb.h:977
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
Definition: attribute_types.pb.h:260
Definition: attribute_types.pb.h:47
void clear_uint_value()
Definition: attribute_types.pb.h:856
inline::google::protobuf::RepeatedPtrField< ::bgs::protocol::Attribute > * mutable_attribute()
Definition: attribute_types.pb.h:1086
Definition: coded_stream.h:621
void set_bool_value(bool value)
Definition: attribute_types.pb.h:488
void set_has_entity_id_value()
Definition: attribute_types.pb.h:874
#define GOOGLE_LONGLONG(x)
Definition: common.h:192
inline::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
Definition: attribute_types.pb.h:264
bool has_fourcc_value() const
Definition: attribute_types.pb.h:771
Definition: message.h:150
int attribute_size() const
Definition: attribute_types.pb.h:1062
void set_has_name()
Definition: attribute_types.pb.h:919
void clear_message_value()
Definition: attribute_types.pb.h:704
Definition: attribute_types.pb.h:45
#define input
Definition: wire_format_lite.h:242
Definition: generated_enum_reflection.h:55
void set_has_blob_value()
Definition: attribute_types.pb.h:622
uint32_t uint32
Definition: common.h:177
void clear_has_float_value()
Definition: attribute_types.pb.h:525
AttributeFilter_Operation Operation
Definition: attribute_types.pb.h:395
#define TC_SHARED_API
Definition: Define.h:128
inline::bgs::protocol::Variant * release_value()
Definition: attribute_types.pb.h:1015
inline::std::string * release_fourcc_value()
Definition: attribute_types.pb.h:822
TC_SHARED_APIconst::google::protobuf::EnumDescriptor * AttributeFilter_Operation_descriptor()
void clear_has_message_value()
Definition: attribute_types.pb.h:701
uint64_t uint64
Definition: common.h:178
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
Definition: attribute_types.pb.h:356
bool AttributeFilter_Operation_Parse(const ::std::string &name, AttributeFilter_Operation *value)
Definition: attribute_types.pb.h:60
::google::protobuf::int64 int_value_
Definition: attribute_types.pb.h:230
void clear_int_value()
Definition: attribute_types.pb.h:504
void clear_has_uint_value()
Definition: attribute_types.pb.h:853
bool has_float_value() const
Definition: attribute_types.pb.h:519
inline::std::string * release_message_value()
Definition: attribute_types.pb.h:746
::google::protobuf::uint32 _has_bits_[1]
Definition: attribute_types.pb.h:228
inline::google::protobuf::uint64 uint_value() const
Definition: attribute_types.pb.h:860
bool has_name() const
Definition: attribute_types.pb.h:916
::std::string * name_
Definition: attribute_types.pb.h:333
Attribute & operator=(const Attribute &from)
Definition: attribute_types.pb.h:255
::std::string * string_value_
Definition: attribute_types.pb.h:232
::bgs::protocol::Variant * value_
Definition: attribute_types.pb.h:334
int64_t int64
Definition: g3dmath.h:169
void protobuf_ShutdownFile_attribute_5ftypes_2eproto()
void set_allocated_blob_value(::std::string *blob_value)
Definition: attribute_types.pb.h:680
void set_has_string_value()
Definition: attribute_types.pb.h:546
inline::std::string * mutable_message_value()
Definition: attribute_types.pb.h:738
Definition: attribute_types.pb.h:344
::google::protobuf::uint32 _has_bits_[1]
Definition: attribute_types.pb.h:331
int GetCachedSize() const
Definition: attribute_types.pb.h:385
static const ::google::protobuf::EnumDescriptor * Operation_descriptor()
Definition: attribute_types.pb.h:410
void clear_has_value()
Definition: attribute_types.pb.h:998
int64_t int64
Definition: common.h:173
Definition: attribute_types.pb.h:46
void set_has_float_value()
Definition: attribute_types.pb.h:522
bool has_string_value() const
Definition: attribute_types.pb.h:543
void set_allocated_message_value(::std::string *message_value)
Definition: attribute_types.pb.h:756
void protobuf_AssignDesc_attribute_5ftypes_2eproto()
int _cached_size_
Definition: attribute_types.pb.h:450
static bool Operation_Parse(const ::std::string &name, Operation *value)
Definition: attribute_types.pb.h:416
inline::bgs::protocol::AttributeFilter_Operation op() const
Definition: attribute_types.pb.h:1050
void set_has_bool_value()
Definition: attribute_types.pb.h:474
void set_message_value(const ::std::string &value)
Definition: attribute_types.pb.h:714
int op_
Definition: attribute_types.pb.h:452
int GetCachedSize() const
Definition: attribute_types.pb.h:108
::bgs::protocol::EntityId * entity_id_value_
Definition: attribute_types.pb.h:237
void set_allocated_string_value(::std::string *string_value)
Definition: attribute_types.pb.h:604
Definition: BnetFileGenerator.h:47
void clear_has_entity_id_value()
Definition: attribute_types.pb.h:877
const FieldDescriptor value
Definition: descriptor.h:1522
#define GOOGLE_ULONGLONG(x)
Definition: common.h:193
const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Attribute > & attribute() const
Definition: attribute_types.pb.h:1081
void clear_fourcc_value()
Definition: attribute_types.pb.h:780
void clear_string_value()
Definition: attribute_types.pb.h:552
const AttributeFilter_Operation AttributeFilter_Operation_Operation_MIN
Definition: attribute_types.pb.h:51
bool has_blob_value() const
Definition: attribute_types.pb.h:619
AttributeFilter & operator=(const AttributeFilter &from)
Definition: attribute_types.pb.h:351
void clear_has_bool_value()
Definition: attribute_types.pb.h:477
::std::string * blob_value_
Definition: attribute_types.pb.h:233
void clear_has_op()
Definition: attribute_types.pb.h:1043
const ::std::string & string_value() const
Definition: attribute_types.pb.h:558
::std::string * fourcc_value_
Definition: attribute_types.pb.h:235
inline::std::string * mutable_string_value()
Definition: attribute_types.pb.h:586
inline::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
Definition: attribute_types.pb.h:83
const ::std::string & AttributeFilter_Operation_Name(AttributeFilter_Operation value)
Definition: attribute_types.pb.h:56
inline::std::string * release_blob_value()
Definition: attribute_types.pb.h:670
inline::std::string * release_string_value()
Definition: attribute_types.pb.h:594
bool bool_value_
Definition: attribute_types.pb.h:238
const int AttributeFilter_Operation_Operation_ARRAYSIZE
Definition: attribute_types.pb.h:53
void set_has_uint_value()
Definition: attribute_types.pb.h:850
void set_int_value(::google::protobuf::int64 value)
Definition: attribute_types.pb.h:512
void set_allocated_value(::bgs::protocol::Variant *value)
Definition: attribute_types.pb.h:1021
Definition: attribute_types.pb.h:248
double float_value() const
Definition: attribute_types.pb.h:532