TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
presence_types.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: presence_types.proto
3 
4 #ifndef PROTOBUF_presence_5ftypes_2eproto__INCLUDED
5 #define PROTOBUF_presence_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 "attribute_types.pb.h"
29 #include "entity_types.pb.h"
30 #include "channel_types.pb.h"
31 #include "Define.h" // for TC_SHARED_API
32 // @@protoc_insertion_point(includes)
33 
34 namespace bgs {
35 namespace protocol {
36 namespace presence {
37 namespace v1 {
38 
39 // Internal implementation detail -- do not call these.
43 
44 class RichPresenceLocalizationKey;
45 class FieldKey;
46 class Field;
47 class FieldOperation;
48 class ChannelState;
49 
53 };
57 const int FieldOperation_OperationType_OperationType_ARRAYSIZE = FieldOperation_OperationType_OperationType_MAX + 1;
58 
59 TC_SHARED_API const ::google::protobuf::EnumDescriptor* FieldOperation_OperationType_descriptor();
63 }
65  const ::std::string& name, FieldOperation_OperationType* value) {
66  return ::google::protobuf::internal::ParseNamedEnum<FieldOperation_OperationType>(
68 }
69 // ===================================================================
70 
72  public:
74  virtual ~RichPresenceLocalizationKey();
75 
77 
79  CopyFrom(from);
80  return *this;
81  }
82 
83  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
84  return _unknown_fields_;
85  }
86 
87  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
88  return &_unknown_fields_;
89  }
90 
91  static const ::google::protobuf::Descriptor* descriptor();
92  static const RichPresenceLocalizationKey& default_instance();
93 
94  void Swap(RichPresenceLocalizationKey* other);
95 
96  // implements Message ----------------------------------------------
97 
98  RichPresenceLocalizationKey* New() const;
99  void CopyFrom(const ::google::protobuf::Message& from);
100  void MergeFrom(const ::google::protobuf::Message& from);
101  void CopyFrom(const RichPresenceLocalizationKey& from);
102  void MergeFrom(const RichPresenceLocalizationKey& from);
103  void Clear();
104  bool IsInitialized() const;
105 
106  int ByteSize() const;
107  bool MergePartialFromCodedStream(
109  void SerializeWithCachedSizes(
111  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
112  int GetCachedSize() const { return _cached_size_; }
113  private:
114  void SharedCtor();
115  void SharedDtor();
116  void SetCachedSize(int size) const;
117  public:
118  ::google::protobuf::Metadata GetMetadata() const;
119 
120  // nested types ----------------------------------------------------
121 
122  // accessors -------------------------------------------------------
123 
124  // required fixed32 program = 1;
125  inline bool has_program() const;
126  inline void clear_program();
127  static const int kProgramFieldNumber = 1;
128  inline ::google::protobuf::uint32 program() const;
129  inline void set_program(::google::protobuf::uint32 value);
130 
131  // required fixed32 stream = 2;
132  inline bool has_stream() const;
133  inline void clear_stream();
134  static const int kStreamFieldNumber = 2;
135  inline ::google::protobuf::uint32 stream() const;
136  inline void set_stream(::google::protobuf::uint32 value);
137 
138  // required uint32 localization_id = 3;
139  inline bool has_localization_id() const;
140  inline void clear_localization_id();
141  static const int kLocalizationIdFieldNumber = 3;
142  inline ::google::protobuf::uint32 localization_id() const;
143  inline void set_localization_id(::google::protobuf::uint32 value);
144 
145  // @@protoc_insertion_point(class_scope:bgs.protocol.presence.v1.RichPresenceLocalizationKey)
146  private:
147  inline void set_has_program();
148  inline void clear_has_program();
149  inline void set_has_stream();
150  inline void clear_has_stream();
151  inline void set_has_localization_id();
152  inline void clear_has_localization_id();
153 
155 
157  mutable int _cached_size_;
164 
165  void InitAsDefaultInstance();
167 };
168 // -------------------------------------------------------------------
169 
171  public:
172  FieldKey();
173  virtual ~FieldKey();
174 
175  FieldKey(const FieldKey& from);
176 
177  inline FieldKey& operator=(const FieldKey& from) {
178  CopyFrom(from);
179  return *this;
180  }
181 
182  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
183  return _unknown_fields_;
184  }
185 
186  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
187  return &_unknown_fields_;
188  }
189 
190  static const ::google::protobuf::Descriptor* descriptor();
191  static const FieldKey& default_instance();
192 
193  void Swap(FieldKey* other);
194 
195  // implements Message ----------------------------------------------
196 
197  FieldKey* New() const;
198  void CopyFrom(const ::google::protobuf::Message& from);
199  void MergeFrom(const ::google::protobuf::Message& from);
200  void CopyFrom(const FieldKey& from);
201  void MergeFrom(const FieldKey& from);
202  void Clear();
203  bool IsInitialized() const;
204 
205  int ByteSize() const;
206  bool MergePartialFromCodedStream(
208  void SerializeWithCachedSizes(
210  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
211  int GetCachedSize() const { return _cached_size_; }
212  private:
213  void SharedCtor();
214  void SharedDtor();
215  void SetCachedSize(int size) const;
216  public:
217  ::google::protobuf::Metadata GetMetadata() const;
218 
219  // nested types ----------------------------------------------------
220 
221  // accessors -------------------------------------------------------
222 
223  // required uint32 program = 1;
224  inline bool has_program() const;
225  inline void clear_program();
226  static const int kProgramFieldNumber = 1;
227  inline ::google::protobuf::uint32 program() const;
228  inline void set_program(::google::protobuf::uint32 value);
229 
230  // required uint32 group = 2;
231  inline bool has_group() const;
232  inline void clear_group();
233  static const int kGroupFieldNumber = 2;
234  inline ::google::protobuf::uint32 group() const;
235  inline void set_group(::google::protobuf::uint32 value);
236 
237  // required uint32 field = 3;
238  inline bool has_field() const;
239  inline void clear_field();
240  static const int kFieldFieldNumber = 3;
241  inline ::google::protobuf::uint32 field() const;
242  inline void set_field(::google::protobuf::uint32 value);
243 
244  // optional uint64 unique_id = 4 [default = 0];
245  inline bool has_unique_id() const;
246  inline void clear_unique_id();
247  static const int kUniqueIdFieldNumber = 4;
248  inline ::google::protobuf::uint64 unique_id() const;
249  inline void set_unique_id(::google::protobuf::uint64 value);
250 
251  // @@protoc_insertion_point(class_scope:bgs.protocol.presence.v1.FieldKey)
252  private:
253  inline void set_has_program();
254  inline void clear_has_program();
255  inline void set_has_group();
256  inline void clear_has_group();
257  inline void set_has_field();
258  inline void clear_has_field();
259  inline void set_has_unique_id();
260  inline void clear_has_unique_id();
261 
263 
265  mutable int _cached_size_;
273 
274  void InitAsDefaultInstance();
276 };
277 // -------------------------------------------------------------------
278 
280  public:
281  Field();
282  virtual ~Field();
283 
284  Field(const Field& from);
285 
286  inline Field& operator=(const Field& from) {
287  CopyFrom(from);
288  return *this;
289  }
290 
291  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
292  return _unknown_fields_;
293  }
294 
295  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
296  return &_unknown_fields_;
297  }
298 
299  static const ::google::protobuf::Descriptor* descriptor();
300  static const Field& default_instance();
301 
302  void Swap(Field* other);
303 
304  // implements Message ----------------------------------------------
305 
306  Field* New() const;
307  void CopyFrom(const ::google::protobuf::Message& from);
308  void MergeFrom(const ::google::protobuf::Message& from);
309  void CopyFrom(const Field& from);
310  void MergeFrom(const Field& from);
311  void Clear();
312  bool IsInitialized() const;
313 
314  int ByteSize() const;
315  bool MergePartialFromCodedStream(
317  void SerializeWithCachedSizes(
319  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
320  int GetCachedSize() const { return _cached_size_; }
321  private:
322  void SharedCtor();
323  void SharedDtor();
324  void SetCachedSize(int size) const;
325  public:
326  ::google::protobuf::Metadata GetMetadata() const;
327 
328  // nested types ----------------------------------------------------
329 
330  // accessors -------------------------------------------------------
331 
332  // required .bgs.protocol.presence.v1.FieldKey key = 1;
333  inline bool has_key() const;
334  inline void clear_key();
335  static const int kKeyFieldNumber = 1;
336  inline const ::bgs::protocol::presence::v1::FieldKey& key() const;
337  inline ::bgs::protocol::presence::v1::FieldKey* mutable_key();
338  inline ::bgs::protocol::presence::v1::FieldKey* release_key();
339  inline void set_allocated_key(::bgs::protocol::presence::v1::FieldKey* key);
340 
341  // required .bgs.protocol.Variant value = 2;
342  inline bool has_value() const;
343  inline void clear_value();
344  static const int kValueFieldNumber = 2;
345  inline const ::bgs::protocol::Variant& value() const;
346  inline ::bgs::protocol::Variant* mutable_value();
347  inline ::bgs::protocol::Variant* release_value();
348  inline void set_allocated_value(::bgs::protocol::Variant* value);
349 
350  // @@protoc_insertion_point(class_scope:bgs.protocol.presence.v1.Field)
351  private:
352  inline void set_has_key();
353  inline void clear_has_key();
354  inline void set_has_value();
355  inline void clear_has_value();
356 
358 
360  mutable int _cached_size_;
366 
367  void InitAsDefaultInstance();
369 };
370 // -------------------------------------------------------------------
371 
373  public:
374  FieldOperation();
375  virtual ~FieldOperation();
376 
377  FieldOperation(const FieldOperation& from);
378 
379  inline FieldOperation& operator=(const FieldOperation& from) {
380  CopyFrom(from);
381  return *this;
382  }
383 
384  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
385  return _unknown_fields_;
386  }
387 
388  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
389  return &_unknown_fields_;
390  }
391 
392  static const ::google::protobuf::Descriptor* descriptor();
393  static const FieldOperation& default_instance();
394 
395  void Swap(FieldOperation* other);
396 
397  // implements Message ----------------------------------------------
398 
399  FieldOperation* New() const;
400  void CopyFrom(const ::google::protobuf::Message& from);
401  void MergeFrom(const ::google::protobuf::Message& from);
402  void CopyFrom(const FieldOperation& from);
403  void MergeFrom(const FieldOperation& from);
404  void Clear();
405  bool IsInitialized() const;
406 
407  int ByteSize() const;
408  bool MergePartialFromCodedStream(
410  void SerializeWithCachedSizes(
412  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
413  int GetCachedSize() const { return _cached_size_; }
414  private:
415  void SharedCtor();
416  void SharedDtor();
417  void SetCachedSize(int size) const;
418  public:
419  ::google::protobuf::Metadata GetMetadata() const;
420 
421  // nested types ----------------------------------------------------
422 
424  static const OperationType SET = FieldOperation_OperationType_SET;
425  static const OperationType CLEAR = FieldOperation_OperationType_CLEAR;
426  static inline bool OperationType_IsValid(int value) {
428  }
429  static const OperationType OperationType_MIN =
431  static const OperationType OperationType_MAX =
433  static const int OperationType_ARRAYSIZE =
435  static inline const ::google::protobuf::EnumDescriptor*
438  }
439  static inline const ::std::string& OperationType_Name(OperationType value) {
440  return FieldOperation_OperationType_Name(value);
441  }
442  static inline bool OperationType_Parse(const ::std::string& name,
443  OperationType* value) {
444  return FieldOperation_OperationType_Parse(name, value);
445  }
446 
447  // accessors -------------------------------------------------------
448 
449  // required .bgs.protocol.presence.v1.Field field = 1;
450  inline bool has_field() const;
451  inline void clear_field();
452  static const int kFieldFieldNumber = 1;
453  inline const ::bgs::protocol::presence::v1::Field& field() const;
454  inline ::bgs::protocol::presence::v1::Field* mutable_field();
455  inline ::bgs::protocol::presence::v1::Field* release_field();
456  inline void set_allocated_field(::bgs::protocol::presence::v1::Field* field);
457 
458  // optional .bgs.protocol.presence.v1.FieldOperation.OperationType operation = 2 [default = SET];
459  inline bool has_operation() const;
460  inline void clear_operation();
461  static const int kOperationFieldNumber = 2;
464 
465  // @@protoc_insertion_point(class_scope:bgs.protocol.presence.v1.FieldOperation)
466  private:
467  inline void set_has_field();
468  inline void clear_has_field();
469  inline void set_has_operation();
470  inline void clear_has_operation();
471 
473 
475  mutable int _cached_size_;
481 
482  void InitAsDefaultInstance();
484 };
485 // -------------------------------------------------------------------
486 
488  public:
489  ChannelState();
490  virtual ~ChannelState();
491 
492  ChannelState(const ChannelState& from);
493 
494  inline ChannelState& operator=(const ChannelState& from) {
495  CopyFrom(from);
496  return *this;
497  }
498 
499  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
500  return _unknown_fields_;
501  }
502 
503  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
504  return &_unknown_fields_;
505  }
506 
507  static const ::google::protobuf::Descriptor* descriptor();
508  static const ChannelState& default_instance();
509 
510  void Swap(ChannelState* other);
511 
512  // implements Message ----------------------------------------------
513 
514  ChannelState* New() const;
515  void CopyFrom(const ::google::protobuf::Message& from);
516  void MergeFrom(const ::google::protobuf::Message& from);
517  void CopyFrom(const ChannelState& from);
518  void MergeFrom(const ChannelState& from);
519  void Clear();
520  bool IsInitialized() const;
521 
522  int ByteSize() const;
523  bool MergePartialFromCodedStream(
525  void SerializeWithCachedSizes(
527  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
528  int GetCachedSize() const { return _cached_size_; }
529  private:
530  void SharedCtor();
531  void SharedDtor();
532  void SetCachedSize(int size) const;
533  public:
534  ::google::protobuf::Metadata GetMetadata() const;
535 
536  // nested types ----------------------------------------------------
537 
538  // accessors -------------------------------------------------------
539 
540  // optional .bgs.protocol.EntityId entity_id = 1;
541  inline bool has_entity_id() const;
542  inline void clear_entity_id();
543  static const int kEntityIdFieldNumber = 1;
544  inline const ::bgs::protocol::EntityId& entity_id() const;
545  inline ::bgs::protocol::EntityId* mutable_entity_id();
546  inline ::bgs::protocol::EntityId* release_entity_id();
547  inline void set_allocated_entity_id(::bgs::protocol::EntityId* entity_id);
548 
549  // repeated .bgs.protocol.presence.v1.FieldOperation field_operation = 2;
550  inline int field_operation_size() const;
551  inline void clear_field_operation();
552  static const int kFieldOperationFieldNumber = 2;
553  inline const ::bgs::protocol::presence::v1::FieldOperation& field_operation(int index) const;
554  inline ::bgs::protocol::presence::v1::FieldOperation* mutable_field_operation(int index);
555  inline ::bgs::protocol::presence::v1::FieldOperation* add_field_operation();
556  inline const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::presence::v1::FieldOperation >&
557  field_operation() const;
558  inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::presence::v1::FieldOperation >*
559  mutable_field_operation();
560 
561  // optional bool healing = 3 [default = false];
562  inline bool has_healing() const;
563  inline void clear_healing();
564  static const int kHealingFieldNumber = 3;
565  inline bool healing() const;
566  inline void set_healing(bool value);
567 
568  static const int kPresenceFieldNumber = 101;
569  static ::google::protobuf::internal::ExtensionIdentifier< ::bgs::protocol::channel::v1::ChannelState,
572  // @@protoc_insertion_point(class_scope:bgs.protocol.presence.v1.ChannelState)
573  private:
574  inline void set_has_entity_id();
575  inline void clear_has_entity_id();
576  inline void set_has_healing();
577  inline void clear_has_healing();
578 
580 
582  mutable int _cached_size_;
585  bool healing_;
589 
590  void InitAsDefaultInstance();
592 };
593 // ===================================================================
594 
595 
596 // ===================================================================
597 
598 
599 // ===================================================================
600 
601 // RichPresenceLocalizationKey
602 
603 // required fixed32 program = 1;
605  return (_has_bits_[0] & 0x00000001u) != 0;
606 }
608  _has_bits_[0] |= 0x00000001u;
609 }
611  _has_bits_[0] &= ~0x00000001u;
612 }
614  program_ = 0u;
616 }
618  // @@protoc_insertion_point(field_get:bgs.protocol.presence.v1.RichPresenceLocalizationKey.program)
619  return program_;
620 }
622  set_has_program();
623  program_ = value;
624  // @@protoc_insertion_point(field_set:bgs.protocol.presence.v1.RichPresenceLocalizationKey.program)
625 }
626 
627 // required fixed32 stream = 2;
629  return (_has_bits_[0] & 0x00000002u) != 0;
630 }
632  _has_bits_[0] |= 0x00000002u;
633 }
635  _has_bits_[0] &= ~0x00000002u;
636 }
638  stream_ = 0u;
640 }
642  // @@protoc_insertion_point(field_get:bgs.protocol.presence.v1.RichPresenceLocalizationKey.stream)
643  return stream_;
644 }
646  set_has_stream();
647  stream_ = value;
648  // @@protoc_insertion_point(field_set:bgs.protocol.presence.v1.RichPresenceLocalizationKey.stream)
649 }
650 
651 // required uint32 localization_id = 3;
653  return (_has_bits_[0] & 0x00000004u) != 0;
654 }
656  _has_bits_[0] |= 0x00000004u;
657 }
659  _has_bits_[0] &= ~0x00000004u;
660 }
662  localization_id_ = 0u;
664 }
666  // @@protoc_insertion_point(field_get:bgs.protocol.presence.v1.RichPresenceLocalizationKey.localization_id)
667  return localization_id_;
668 }
672  // @@protoc_insertion_point(field_set:bgs.protocol.presence.v1.RichPresenceLocalizationKey.localization_id)
673 }
674 
675 // -------------------------------------------------------------------
676 
677 // FieldKey
678 
679 // required uint32 program = 1;
680 inline bool FieldKey::has_program() const {
681  return (_has_bits_[0] & 0x00000001u) != 0;
682 }
684  _has_bits_[0] |= 0x00000001u;
685 }
687  _has_bits_[0] &= ~0x00000001u;
688 }
689 inline void FieldKey::clear_program() {
690  program_ = 0u;
692 }
694  // @@protoc_insertion_point(field_get:bgs.protocol.presence.v1.FieldKey.program)
695  return program_;
696 }
698  set_has_program();
699  program_ = value;
700  // @@protoc_insertion_point(field_set:bgs.protocol.presence.v1.FieldKey.program)
701 }
702 
703 // required uint32 group = 2;
704 inline bool FieldKey::has_group() const {
705  return (_has_bits_[0] & 0x00000002u) != 0;
706 }
707 inline void FieldKey::set_has_group() {
708  _has_bits_[0] |= 0x00000002u;
709 }
711  _has_bits_[0] &= ~0x00000002u;
712 }
713 inline void FieldKey::clear_group() {
714  group_ = 0u;
715  clear_has_group();
716 }
718  // @@protoc_insertion_point(field_get:bgs.protocol.presence.v1.FieldKey.group)
719  return group_;
720 }
722  set_has_group();
723  group_ = value;
724  // @@protoc_insertion_point(field_set:bgs.protocol.presence.v1.FieldKey.group)
725 }
726 
727 // required uint32 field = 3;
728 inline bool FieldKey::has_field() const {
729  return (_has_bits_[0] & 0x00000004u) != 0;
730 }
731 inline void FieldKey::set_has_field() {
732  _has_bits_[0] |= 0x00000004u;
733 }
735  _has_bits_[0] &= ~0x00000004u;
736 }
737 inline void FieldKey::clear_field() {
738  field_ = 0u;
739  clear_has_field();
740 }
742  // @@protoc_insertion_point(field_get:bgs.protocol.presence.v1.FieldKey.field)
743  return field_;
744 }
746  set_has_field();
747  field_ = value;
748  // @@protoc_insertion_point(field_set:bgs.protocol.presence.v1.FieldKey.field)
749 }
750 
751 // optional uint64 unique_id = 4 [default = 0];
752 inline bool FieldKey::has_unique_id() const {
753  return (_has_bits_[0] & 0x00000008u) != 0;
754 }
756  _has_bits_[0] |= 0x00000008u;
757 }
759  _has_bits_[0] &= ~0x00000008u;
760 }
764 }
766  // @@protoc_insertion_point(field_get:bgs.protocol.presence.v1.FieldKey.unique_id)
767  return unique_id_;
768 }
771  unique_id_ = value;
772  // @@protoc_insertion_point(field_set:bgs.protocol.presence.v1.FieldKey.unique_id)
773 }
774 
775 // -------------------------------------------------------------------
776 
777 // Field
778 
779 // required .bgs.protocol.presence.v1.FieldKey key = 1;
780 inline bool Field::has_key() const {
781  return (_has_bits_[0] & 0x00000001u) != 0;
782 }
783 inline void Field::set_has_key() {
784  _has_bits_[0] |= 0x00000001u;
785 }
786 inline void Field::clear_has_key() {
787  _has_bits_[0] &= ~0x00000001u;
788 }
789 inline void Field::clear_key() {
790  if (key_ != NULL) key_->::bgs::protocol::presence::v1::FieldKey::Clear();
791  clear_has_key();
792 }
793 inline const ::bgs::protocol::presence::v1::FieldKey& Field::key() const {
794  // @@protoc_insertion_point(field_get:bgs.protocol.presence.v1.Field.key)
795  return key_ != NULL ? *key_ : *default_instance_->key_;
796 }
797 inline ::bgs::protocol::presence::v1::FieldKey* Field::mutable_key() {
798  set_has_key();
799  if (key_ == NULL) key_ = new ::bgs::protocol::presence::v1::FieldKey;
800  // @@protoc_insertion_point(field_mutable:bgs.protocol.presence.v1.Field.key)
801  return key_;
802 }
803 inline ::bgs::protocol::presence::v1::FieldKey* Field::release_key() {
804  clear_has_key();
806  key_ = NULL;
807  return temp;
808 }
810  delete key_;
811  key_ = key;
812  if (key) {
813  set_has_key();
814  } else {
815  clear_has_key();
816  }
817  // @@protoc_insertion_point(field_set_allocated:bgs.protocol.presence.v1.Field.key)
818 }
819 
820 // required .bgs.protocol.Variant value = 2;
821 inline bool Field::has_value() const {
822  return (_has_bits_[0] & 0x00000002u) != 0;
823 }
824 inline void Field::set_has_value() {
825  _has_bits_[0] |= 0x00000002u;
826 }
827 inline void Field::clear_has_value() {
828  _has_bits_[0] &= ~0x00000002u;
829 }
830 inline void Field::clear_value() {
831  if (value_ != NULL) value_->::bgs::protocol::Variant::Clear();
832  clear_has_value();
833 }
834 inline const ::bgs::protocol::Variant& Field::value() const {
835  // @@protoc_insertion_point(field_get:bgs.protocol.presence.v1.Field.value)
836  return value_ != NULL ? *value_ : *default_instance_->value_;
837 }
838 inline ::bgs::protocol::Variant* Field::mutable_value() {
839  set_has_value();
840  if (value_ == NULL) value_ = new ::bgs::protocol::Variant;
841  // @@protoc_insertion_point(field_mutable:bgs.protocol.presence.v1.Field.value)
842  return value_;
843 }
844 inline ::bgs::protocol::Variant* Field::release_value() {
845  clear_has_value();
847  value_ = NULL;
848  return temp;
849 }
851  delete value_;
852  value_ = value;
853  if (value) {
854  set_has_value();
855  } else {
856  clear_has_value();
857  }
858  // @@protoc_insertion_point(field_set_allocated:bgs.protocol.presence.v1.Field.value)
859 }
860 
861 // -------------------------------------------------------------------
862 
863 // FieldOperation
864 
865 // required .bgs.protocol.presence.v1.Field field = 1;
866 inline bool FieldOperation::has_field() const {
867  return (_has_bits_[0] & 0x00000001u) != 0;
868 }
870  _has_bits_[0] |= 0x00000001u;
871 }
873  _has_bits_[0] &= ~0x00000001u;
874 }
876  if (field_ != NULL) field_->::bgs::protocol::presence::v1::Field::Clear();
877  clear_has_field();
878 }
879 inline const ::bgs::protocol::presence::v1::Field& FieldOperation::field() const {
880  // @@protoc_insertion_point(field_get:bgs.protocol.presence.v1.FieldOperation.field)
881  return field_ != NULL ? *field_ : *default_instance_->field_;
882 }
883 inline ::bgs::protocol::presence::v1::Field* FieldOperation::mutable_field() {
884  set_has_field();
885  if (field_ == NULL) field_ = new ::bgs::protocol::presence::v1::Field;
886  // @@protoc_insertion_point(field_mutable:bgs.protocol.presence.v1.FieldOperation.field)
887  return field_;
888 }
889 inline ::bgs::protocol::presence::v1::Field* FieldOperation::release_field() {
890  clear_has_field();
892  field_ = NULL;
893  return temp;
894 }
896  delete field_;
897  field_ = field;
898  if (field) {
899  set_has_field();
900  } else {
901  clear_has_field();
902  }
903  // @@protoc_insertion_point(field_set_allocated:bgs.protocol.presence.v1.FieldOperation.field)
904 }
905 
906 // optional .bgs.protocol.presence.v1.FieldOperation.OperationType operation = 2 [default = SET];
907 inline bool FieldOperation::has_operation() const {
908  return (_has_bits_[0] & 0x00000002u) != 0;
909 }
911  _has_bits_[0] |= 0x00000002u;
912 }
914  _has_bits_[0] &= ~0x00000002u;
915 }
917  operation_ = 0;
919 }
921  // @@protoc_insertion_point(field_get:bgs.protocol.presence.v1.FieldOperation.operation)
923 }
927  operation_ = value;
928  // @@protoc_insertion_point(field_set:bgs.protocol.presence.v1.FieldOperation.operation)
929 }
930 
931 // -------------------------------------------------------------------
932 
933 // ChannelState
934 
935 // optional .bgs.protocol.EntityId entity_id = 1;
936 inline bool ChannelState::has_entity_id() const {
937  return (_has_bits_[0] & 0x00000001u) != 0;
938 }
940  _has_bits_[0] |= 0x00000001u;
941 }
943  _has_bits_[0] &= ~0x00000001u;
944 }
946  if (entity_id_ != NULL) entity_id_->::bgs::protocol::EntityId::Clear();
948 }
949 inline const ::bgs::protocol::EntityId& ChannelState::entity_id() const {
950  // @@protoc_insertion_point(field_get:bgs.protocol.presence.v1.ChannelState.entity_id)
952 }
953 inline ::bgs::protocol::EntityId* ChannelState::mutable_entity_id() {
955  if (entity_id_ == NULL) entity_id_ = new ::bgs::protocol::EntityId;
956  // @@protoc_insertion_point(field_mutable:bgs.protocol.presence.v1.ChannelState.entity_id)
957  return entity_id_;
958 }
959 inline ::bgs::protocol::EntityId* ChannelState::release_entity_id() {
962  entity_id_ = NULL;
963  return temp;
964 }
966  delete entity_id_;
968  if (entity_id) {
970  } else {
972  }
973  // @@protoc_insertion_point(field_set_allocated:bgs.protocol.presence.v1.ChannelState.entity_id)
974 }
975 
976 // repeated .bgs.protocol.presence.v1.FieldOperation field_operation = 2;
978  return field_operation_.size();
979 }
981  field_operation_.Clear();
982 }
983 inline const ::bgs::protocol::presence::v1::FieldOperation& ChannelState::field_operation(int index) const {
984  // @@protoc_insertion_point(field_get:bgs.protocol.presence.v1.ChannelState.field_operation)
985  return field_operation_.Get(index);
986 }
987 inline ::bgs::protocol::presence::v1::FieldOperation* ChannelState::mutable_field_operation(int index) {
988  // @@protoc_insertion_point(field_mutable:bgs.protocol.presence.v1.ChannelState.field_operation)
989  return field_operation_.Mutable(index);
990 }
991 inline ::bgs::protocol::presence::v1::FieldOperation* ChannelState::add_field_operation() {
992  // @@protoc_insertion_point(field_add:bgs.protocol.presence.v1.ChannelState.field_operation)
993  return field_operation_.Add();
994 }
995 inline const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::presence::v1::FieldOperation >&
997  // @@protoc_insertion_point(field_list:bgs.protocol.presence.v1.ChannelState.field_operation)
998  return field_operation_;
999 }
1000 inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::presence::v1::FieldOperation >*
1002  // @@protoc_insertion_point(field_mutable_list:bgs.protocol.presence.v1.ChannelState.field_operation)
1003  return &field_operation_;
1004 }
1005 
1006 // optional bool healing = 3 [default = false];
1007 inline bool ChannelState::has_healing() const {
1008  return (_has_bits_[0] & 0x00000004u) != 0;
1009 }
1011  _has_bits_[0] |= 0x00000004u;
1012 }
1014  _has_bits_[0] &= ~0x00000004u;
1015 }
1017  healing_ = false;
1019 }
1020 inline bool ChannelState::healing() const {
1021  // @@protoc_insertion_point(field_get:bgs.protocol.presence.v1.ChannelState.healing)
1022  return healing_;
1023 }
1025  set_has_healing();
1026  healing_ = value;
1027  // @@protoc_insertion_point(field_set:bgs.protocol.presence.v1.ChannelState.healing)
1028 }
1029 
1030 
1031 // @@protoc_insertion_point(namespace_scope)
1032 
1033 } // namespace v1
1034 } // namespace presence
1035 } // namespace protocol
1036 } // namespace bgs
1037 
1038 #ifndef SWIG
1039 namespace google {
1040 namespace protobuf {
1041 
1043 template <>
1044 inline const EnumDescriptor* GetEnumDescriptor< ::bgs::protocol::presence::v1::FieldOperation_OperationType>() {
1046 }
1047 
1048 } // namespace google
1049 } // namespace protobuf
1050 #endif // SWIG
1051 
1052 // @@protoc_insertion_point(global_scope)
1053 
1054 #endif // PROTOBUF_presence_5ftypes_2eproto__INCLUDED
::google::protobuf::uint32 _has_bits_[1]
Definition: presence_types.pb.h:359
Field & operator=(const Field &from)
Definition: presence_types.pb.h:286
Definition: attribute_types.pb.h:67
const int FieldOperation_OperationType_OperationType_ARRAYSIZE
Definition: presence_types.pb.h:57
void clear_field()
Definition: presence_types.pb.h:737
void clear_has_localization_id()
Definition: presence_types.pb.h:658
void set_has_group()
Definition: presence_types.pb.h:707
void set_has_unique_id()
Definition: presence_types.pb.h:755
void clear_healing()
Definition: presence_types.pb.h:1016
static RichPresenceLocalizationKey * default_instance_
Definition: presence_types.pb.h:166
::google::protobuf::uint32 _has_bits_[1]
Definition: presence_types.pb.h:581
static bool OperationType_IsValid(int value)
Definition: presence_types.pb.h:426
#define SET(a, b, c, d, k, s, Ti)
Definition: entity_types.pb.h:45
void set_has_field()
Definition: presence_types.pb.h:731
static FieldOperation * default_instance_
Definition: presence_types.pb.h:483
const ::std::string & FieldOperation_OperationType_Name(FieldOperation_OperationType value)
Definition: presence_types.pb.h:60
void clear_stream()
Definition: presence_types.pb.h:637
void set_group(::google::protobuf::uint32 value)
Definition: presence_types.pb.h:721
inline::google::protobuf::uint32 program() const
Definition: presence_types.pb.h:617
void set_allocated_key(::bgs::protocol::presence::v1::FieldKey *key)
Definition: presence_types.pb.h:809
FieldKey & operator=(const FieldKey &from)
Definition: presence_types.pb.h:177
int GetCachedSize() const
Definition: presence_types.pb.h:112
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
Definition: presence_types.pb.h:384
::bgs::protocol::Variant * value_
Definition: presence_types.pb.h:362
const ::bgs::protocol::EntityId & entity_id() const
Definition: presence_types.pb.h:949
Definition: Session.h:36
inline::bgs::protocol::Variant * release_value()
Definition: presence_types.pb.h:844
inline::google::protobuf::uint32 program() const
Definition: presence_types.pb.h:693
void set_allocated_value(::bgs::protocol::Variant *value)
Definition: presence_types.pb.h:850
::google::protobuf::UnknownFieldSet _unknown_fields_
Definition: presence_types.pb.h:262
void set_has_field()
Definition: presence_types.pb.h:869
LIBPROTOBUF_EXPORT const string & NameOfEnum(const EnumDescriptor *descriptor, int value)
Class used to access individual fields of database query result.
Definition: Field.h:56
int field_operation_size() const
Definition: presence_types.pb.h:977
inline::bgs::protocol::EntityId * release_entity_id()
Definition: presence_types.pb.h:959
void set_operation(::bgs::protocol::presence::v1::FieldOperation_OperationType value)
Definition: presence_types.pb.h:924
int GetCachedSize() const
Definition: presence_types.pb.h:320
Definition: unknown_field_set.h:74
void set_has_operation()
Definition: presence_types.pb.h:910
uint8_t uint8
Definition: common.h:175
static const ::std::string & OperationType_Name(OperationType value)
Definition: presence_types.pb.h:439
arena_t NULL
Definition: jemalloc_internal.h:624
inline::bgs::protocol::presence::v1::Field * mutable_field()
Definition: presence_types.pb.h:883
Definition: descriptor.h:683
Definition: message.h:147
void set_unique_id(::google::protobuf::uint64 value)
Definition: presence_types.pb.h:769
inline::bgs::protocol::presence::v1::FieldOperation_OperationType operation() const
Definition: presence_types.pb.h:920
void set_allocated_entity_id(::bgs::protocol::EntityId *entity_id)
Definition: presence_types.pb.h:965
const ::bgs::protocol::presence::v1::Field & field() const
Definition: presence_types.pb.h:879
inline::bgs::protocol::Variant * mutable_value()
Definition: presence_types.pb.h:838
uint64_t uint64
Definition: g3dmath.h:170
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
Definition: presence_types.pb.h:83
void set_has_value()
Definition: presence_types.pb.h:824
ChannelState & operator=(const ChannelState &from)
Definition: presence_types.pb.h:494
static Field * default_instance_
Definition: presence_types.pb.h:368
bool has_value() const
Definition: presence_types.pb.h:821
void clear_unique_id()
Definition: presence_types.pb.h:761
void clear_has_program()
Definition: presence_types.pb.h:686
FieldOperation_OperationType OperationType
Definition: presence_types.pb.h:423
void set_has_key()
Definition: presence_types.pb.h:783
void clear_has_entity_id()
Definition: presence_types.pb.h:942
void clear_field_operation()
Definition: presence_types.pb.h:980
inline::bgs::protocol::presence::v1::FieldKey * release_key()
Definition: presence_types.pb.h:803
void clear_has_healing()
Definition: presence_types.pb.h:1013
inline::google::protobuf::RepeatedPtrField< ::bgs::protocol::presence::v1::FieldOperation > * mutable_field_operation()
Definition: presence_types.pb.h:1001
bool FieldOperation_OperationType_Parse(const ::std::string &name, FieldOperation_OperationType *value)
Definition: presence_types.pb.h:64
Definition: message.h:165
inline::bgs::protocol::EntityId * mutable_entity_id()
Definition: presence_types.pb.h:953
#define output
Definition: wire_format_lite.h:381
bool healing() const
Definition: presence_types.pb.h:1020
void clear_localization_id()
Definition: presence_types.pb.h:661
bool has_healing() const
Definition: presence_types.pb.h:1007
inline::google::protobuf::uint32 field() const
Definition: presence_types.pb.h:741
::google::protobuf::uint32 program_
Definition: presence_types.pb.h:266
void set_has_localization_id()
Definition: presence_types.pb.h:655
void clear_has_operation()
Definition: presence_types.pb.h:913
Definition: coded_stream.h:156
const ::bgs::protocol::presence::v1::FieldKey & key() const
Definition: presence_types.pb.h:793
Definition: template_util.h:77
int _cached_size_
Definition: presence_types.pb.h:157
void set_stream(::google::protobuf::uint32 value)
Definition: presence_types.pb.h:645
::google::protobuf::uint32 _has_bits_[1]
Definition: presence_types.pb.h:156
bool healing_
Definition: presence_types.pb.h:585
TC_SHARED_APIconst::google::protobuf::EnumDescriptor * FieldOperation_OperationType_descriptor()
void set_program(::google::protobuf::uint32 value)
Definition: presence_types.pb.h:621
bool has_program() const
Definition: presence_types.pb.h:680
FieldOperation & operator=(const FieldOperation &from)
Definition: presence_types.pb.h:379
int _cached_size_
Definition: presence_types.pb.h:475
Definition: coded_stream.h:621
int GetCachedSize() const
Definition: presence_types.pb.h:211
void clear_operation()
Definition: presence_types.pb.h:916
void clear_entity_id()
Definition: presence_types.pb.h:945
::google::protobuf::RepeatedPtrField< ::bgs::protocol::presence::v1::FieldOperation > field_operation_
Definition: presence_types.pb.h:584
::google::protobuf::uint32 field_
Definition: presence_types.pb.h:269
inline::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
Definition: presence_types.pb.h:295
bool has_unique_id() const
Definition: presence_types.pb.h:752
Definition: message.h:150
static bool OperationType_Parse(const ::std::string &name, OperationType *value)
Definition: presence_types.pb.h:442
void clear_has_field()
Definition: presence_types.pb.h:734
inline::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
Definition: presence_types.pb.h:186
void set_has_program()
Definition: presence_types.pb.h:683
void clear_has_key()
Definition: presence_types.pb.h:786
#define input
Definition: wire_format_lite.h:242
void clear_field()
Definition: presence_types.pb.h:875
inline::google::protobuf::uint64 unique_id() const
Definition: presence_types.pb.h:765
Definition: generated_enum_reflection.h:55
::google::protobuf::UnknownFieldSet _unknown_fields_
Definition: presence_types.pb.h:357
uint32_t uint32
Definition: common.h:177
void set_has_program()
Definition: presence_types.pb.h:607
inline::google::protobuf::uint32 localization_id() const
Definition: presence_types.pb.h:665
inline::bgs::protocol::presence::v1::FieldOperation * add_field_operation()
Definition: presence_types.pb.h:991
::google::protobuf::uint64 unique_id_
Definition: presence_types.pb.h:268
void protobuf_AssignDesc_presence_5ftypes_2eproto()
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
Definition: presence_types.pb.h:291
#define TC_SHARED_API
Definition: Define.h:128
void set_allocated_field(::bgs::protocol::presence::v1::Field *field)
Definition: presence_types.pb.h:895
::bgs::protocol::presence::v1::FieldKey * key_
Definition: presence_types.pb.h:361
::google::protobuf::uint32 _has_bits_[1]
Definition: presence_types.pb.h:474
inline::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
Definition: presence_types.pb.h:503
void clear_program()
Definition: presence_types.pb.h:689
const FieldOperation_OperationType FieldOperation_OperationType_OperationType_MIN
Definition: presence_types.pb.h:55
void clear_has_program()
Definition: presence_types.pb.h:610
const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::presence::v1::FieldOperation > & field_operation() const
Definition: presence_types.pb.h:996
uint64_t uint64
Definition: common.h:178
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
Definition: presence_types.pb.h:499
void TC_SHARED_API protobuf_AddDesc_presence_5ftypes_2eproto()
void set_healing(bool value)
Definition: presence_types.pb.h:1024
static ChannelState * default_instance_
Definition: presence_types.pb.h:591
::google::protobuf::UnknownFieldSet _unknown_fields_
Definition: presence_types.pb.h:154
static FieldKey * default_instance_
Definition: presence_types.pb.h:275
void set_has_stream()
Definition: presence_types.pb.h:631
bool has_operation() const
Definition: presence_types.pb.h:907
::google::protobuf::uint32 group_
Definition: presence_types.pb.h:267
bool has_key() const
Definition: presence_types.pb.h:780
::bgs::protocol::presence::v1::Field * field_
Definition: presence_types.pb.h:476
void clear_program()
Definition: presence_types.pb.h:613
void protobuf_ShutdownFile_presence_5ftypes_2eproto()
bool has_stream() const
Definition: presence_types.pb.h:628
bool has_program() const
Definition: presence_types.pb.h:604
void clear_has_stream()
Definition: presence_types.pb.h:634
::google::protobuf::UnknownFieldSet _unknown_fields_
Definition: presence_types.pb.h:579
int _cached_size_
Definition: presence_types.pb.h:265
int GetCachedSize() const
Definition: presence_types.pb.h:413
FieldOperation_OperationType
Definition: presence_types.pb.h:50
Definition: presence_types.pb.h:372
::google::protobuf::uint32 _has_bits_[1]
Definition: presence_types.pb.h:264
void set_has_healing()
Definition: presence_types.pb.h:1010
void set_field(::google::protobuf::uint32 value)
Definition: presence_types.pb.h:745
int _cached_size_
Definition: presence_types.pb.h:360
Definition: presence_types.pb.h:279
bool has_field() const
Definition: presence_types.pb.h:866
const ::bgs::protocol::Variant & value() const
Definition: presence_types.pb.h:834
static::google::protobuf::internal::ExtensionIdentifier< ::bgs::protocol::channel::v1::ChannelState,::google::protobuf::internal::MessageTypeTraits< ::bgs::protocol::presence::v1::ChannelState >, 11, false > presence
Definition: presence_types.pb.h:571
::google::protobuf::uint32 program_
Definition: presence_types.pb.h:158
int operation_
Definition: presence_types.pb.h:477
void set_program(::google::protobuf::uint32 value)
Definition: presence_types.pb.h:697
::bgs::protocol::EntityId * entity_id_
Definition: presence_types.pb.h:583
void clear_has_group()
Definition: presence_types.pb.h:710
void clear_has_field()
Definition: presence_types.pb.h:872
void clear_key()
Definition: presence_types.pb.h:789
bool has_group() const
Definition: presence_types.pb.h:704
void clear_has_unique_id()
Definition: presence_types.pb.h:758
RichPresenceLocalizationKey & operator=(const RichPresenceLocalizationKey &from)
Definition: presence_types.pb.h:78
int GetCachedSize() const
Definition: presence_types.pb.h:528
inline::google::protobuf::uint32 stream() const
Definition: presence_types.pb.h:641
void set_has_entity_id()
Definition: presence_types.pb.h:939
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
Definition: presence_types.pb.h:182
::google::protobuf::uint32 localization_id_
Definition: presence_types.pb.h:160
Definition: BnetFileGenerator.h:47
inline::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
Definition: presence_types.pb.h:87
bool has_field() const
Definition: presence_types.pb.h:728
int _cached_size_
Definition: presence_types.pb.h:582
const FieldDescriptor value
Definition: descriptor.h:1522
#define GOOGLE_ULONGLONG(x)
Definition: common.h:193
uint32_t uint32
Definition: g3dmath.h:168
Definition: presence_types.pb.h:170
void set_localization_id(::google::protobuf::uint32 value)
Definition: presence_types.pb.h:669
inline::bgs::protocol::presence::v1::FieldKey * mutable_key()
Definition: presence_types.pb.h:797
const FieldOperation_OperationType FieldOperation_OperationType_OperationType_MAX
Definition: presence_types.pb.h:56
::google::protobuf::uint32 stream_
Definition: presence_types.pb.h:159
void clear_group()
Definition: presence_types.pb.h:713
bool has_localization_id() const
Definition: presence_types.pb.h:652
TC_SHARED_API bool FieldOperation_OperationType_IsValid(int value)
Definition: channel_types.pb.h:637
inline::bgs::protocol::presence::v1::Field * release_field()
Definition: presence_types.pb.h:889
inline::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
Definition: presence_types.pb.h:388
::google::protobuf::UnknownFieldSet _unknown_fields_
Definition: presence_types.pb.h:472
static const ::google::protobuf::EnumDescriptor * OperationType_descriptor()
Definition: presence_types.pb.h:436
void clear_has_value()
Definition: presence_types.pb.h:827
bool has_entity_id() const
Definition: presence_types.pb.h:936
Definition: extension_set.h:936
Definition: presence_types.pb.h:487
void clear_value()
Definition: presence_types.pb.h:830
inline::google::protobuf::uint32 group() const
Definition: presence_types.pb.h:717