TrinityCore
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
9#include <google/protobuf/stubs/common.h>
10
11#if GOOGLE_PROTOBUF_VERSION < 2006000
12#error This file was generated by a newer version of protoc which is
13#error incompatible with your Protocol Buffer headers. Please update
14#error your headers.
15#endif
16#if 2006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
17#error This file was generated by an older version of protoc which is
18#error incompatible with your Protocol Buffer headers. Please
19#error regenerate this file with a newer version of protoc.
20#endif
21
22#include <google/protobuf/generated_message_util.h>
23#include <google/protobuf/message.h>
24#include <google/protobuf/repeated_field.h>
25#include <google/protobuf/extension_set.h>
26#include <google/protobuf/generated_enum_reflection.h>
27#include <google/protobuf/unknown_field_set.h>
28#include "attribute_types.pb.h"
29#include "entity_types.pb.h"
30#include "channel_types.pb.h"
31#include "Define.h" // for TC_PROTO_API
32// @@protoc_insertion_point(includes)
33
34namespace bgs {
35namespace protocol {
36namespace presence {
37namespace v1 {
38
39// Internal implementation detail -- do not call these.
43
45class FieldKey;
46class Field;
47class FieldOperation;
48class PresenceState;
49class ChannelState;
50
54};
59
60TC_PROTO_API const ::google::protobuf::EnumDescriptor* FieldOperation_OperationType_descriptor();
62 return ::google::protobuf::internal::NameOfEnum(
64}
66 const ::std::string& name, FieldOperation_OperationType* value) {
67 return ::google::protobuf::internal::ParseNamedEnum<FieldOperation_OperationType>(
69}
70// ===================================================================
71
72class TC_PROTO_API RichPresenceLocalizationKey : public ::google::protobuf::Message {
73 public:
76
78
80 CopyFrom(from);
81 return *this;
82 }
83
84 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
85 return _unknown_fields_;
86 }
87
88 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
89 return &_unknown_fields_;
90 }
91
92 static const ::google::protobuf::Descriptor* descriptor();
94
96
97 // implements Message ----------------------------------------------
98
100 int GetCachedSize() const { return _cached_size_; }
101 private:
104 void SetCachedSize(int size) const;
105 public:
106 ::google::protobuf::Metadata GetMetadata() const;
107
108 // nested types ----------------------------------------------------
109
110 // accessors -------------------------------------------------------
111
112 // required fixed32 program = 1;
113 inline bool has_program() const;
114 inline void clear_program();
115 static const int kProgramFieldNumber = 1;
116 inline ::google::protobuf::uint32 program() const;
117 inline void set_program(::google::protobuf::uint32 value);
118
119 // required fixed32 stream = 2;
120 inline bool has_stream() const;
121 inline void clear_stream();
122 static const int kStreamFieldNumber = 2;
124 inline void set_stream(::google::protobuf::uint32 value);
125
126 // required uint32 localization_id = 3;
127 inline bool has_localization_id() const;
128 inline void clear_localization_id();
129 static const int kLocalizationIdFieldNumber = 3;
130 inline ::google::protobuf::uint32 localization_id() const;
131 inline void set_localization_id(::google::protobuf::uint32 value);
132
133 // @@protoc_insertion_point(class_scope:bgs.protocol.presence.v1.RichPresenceLocalizationKey)
134 private:
135 inline void set_has_program();
136 inline void clear_has_program();
137 inline void set_has_stream();
138 inline void clear_has_stream();
139 inline void set_has_localization_id();
140 inline void clear_has_localization_id();
141
142 ::google::protobuf::UnknownFieldSet _unknown_fields_;
143
145 mutable int _cached_size_;
152
155};
156// -------------------------------------------------------------------
157
158class TC_PROTO_API FieldKey : public ::google::protobuf::Message {
159 public:
161 virtual ~FieldKey();
162
163 FieldKey(const FieldKey& from);
164
165 inline FieldKey& operator=(const FieldKey& from) {
166 CopyFrom(from);
167 return *this;
168 }
169
170 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
171 return _unknown_fields_;
172 }
173
174 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
175 return &_unknown_fields_;
176 }
177
178 static const ::google::protobuf::Descriptor* descriptor();
179 static const FieldKey& default_instance();
180
181 void Swap(FieldKey* other);
182
183 // implements Message ----------------------------------------------
184
185 FieldKey* New() const;
186 int GetCachedSize() const { return _cached_size_; }
187 private:
190 void SetCachedSize(int size) const;
191 public:
192 ::google::protobuf::Metadata GetMetadata() const;
193
194 // nested types ----------------------------------------------------
195
196 // accessors -------------------------------------------------------
197
198 // required uint32 program = 1;
199 inline bool has_program() const;
200 inline void clear_program();
201 static const int kProgramFieldNumber = 1;
202 inline ::google::protobuf::uint32 program() const;
203 inline void set_program(::google::protobuf::uint32 value);
204
205 // required uint32 group = 2;
206 inline bool has_group() const;
207 inline void clear_group();
208 static const int kGroupFieldNumber = 2;
210 inline void set_group(::google::protobuf::uint32 value);
211
212 // required uint32 field = 3;
213 inline bool has_field() const;
214 inline void clear_field();
215 static const int kFieldFieldNumber = 3;
217 inline void set_field(::google::protobuf::uint32 value);
218
219 // optional uint64 unique_id = 4;
220 inline bool has_unique_id() const;
221 inline void clear_unique_id();
222 static const int kUniqueIdFieldNumber = 4;
223 inline ::google::protobuf::uint64 unique_id() const;
224 inline void set_unique_id(::google::protobuf::uint64 value);
225
226 // @@protoc_insertion_point(class_scope:bgs.protocol.presence.v1.FieldKey)
227 private:
228 inline void set_has_program();
229 inline void clear_has_program();
230 inline void set_has_group();
231 inline void clear_has_group();
232 inline void set_has_field();
233 inline void clear_has_field();
234 inline void set_has_unique_id();
235 inline void clear_has_unique_id();
236
237 ::google::protobuf::UnknownFieldSet _unknown_fields_;
238
240 mutable int _cached_size_;
248
251};
252// -------------------------------------------------------------------
253
254class TC_PROTO_API Field : public ::google::protobuf::Message {
255 public:
257 virtual ~Field();
258
259 Field(const Field& from);
260
261 inline Field& operator=(const Field& from) {
262 CopyFrom(from);
263 return *this;
264 }
265
266 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
267 return _unknown_fields_;
268 }
269
270 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
271 return &_unknown_fields_;
272 }
273
274 static const ::google::protobuf::Descriptor* descriptor();
275 static const Field& default_instance();
276
277 void Swap(Field* other);
278
279 // implements Message ----------------------------------------------
280
281 Field* New() const;
282 int GetCachedSize() const { return _cached_size_; }
283 private:
286 void SetCachedSize(int size) const;
287 public:
288 ::google::protobuf::Metadata GetMetadata() const;
289
290 // nested types ----------------------------------------------------
291
292 // accessors -------------------------------------------------------
293
294 // required .bgs.protocol.presence.v1.FieldKey key = 1;
295 inline bool has_key() const;
296 inline void clear_key();
297 static const int kKeyFieldNumber = 1;
298 inline const ::bgs::protocol::presence::v1::FieldKey& key() const;
299 inline ::bgs::protocol::presence::v1::FieldKey* mutable_key();
300 inline ::bgs::protocol::presence::v1::FieldKey* release_key();
301 inline void set_allocated_key(::bgs::protocol::presence::v1::FieldKey* key);
302
303 // required .bgs.protocol.Variant value = 2;
304 inline bool has_value() const;
305 inline void clear_value();
306 static const int kValueFieldNumber = 2;
307 inline const ::bgs::protocol::Variant& value() const;
308 inline ::bgs::protocol::Variant* mutable_value();
309 inline ::bgs::protocol::Variant* release_value();
310 inline void set_allocated_value(::bgs::protocol::Variant* value);
311
312 // @@protoc_insertion_point(class_scope:bgs.protocol.presence.v1.Field)
313 private:
314 inline void set_has_key();
315 inline void clear_has_key();
316 inline void set_has_value();
317 inline void clear_has_value();
318
319 ::google::protobuf::UnknownFieldSet _unknown_fields_;
320
322 mutable int _cached_size_;
328
331};
332// -------------------------------------------------------------------
333
334class TC_PROTO_API FieldOperation : public ::google::protobuf::Message {
335 public:
338
340
342 CopyFrom(from);
343 return *this;
344 }
345
346 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
347 return _unknown_fields_;
348 }
349
350 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
351 return &_unknown_fields_;
352 }
353
354 static const ::google::protobuf::Descriptor* descriptor();
356
357 void Swap(FieldOperation* other);
358
359 // implements Message ----------------------------------------------
360
362 int GetCachedSize() const { return _cached_size_; }
363 private:
366 void SetCachedSize(int size) const;
367 public:
368 ::google::protobuf::Metadata GetMetadata() const;
369
370 // nested types ----------------------------------------------------
371
375 static inline bool OperationType_IsValid(int value) {
377 }
378 static const OperationType OperationType_MIN =
380 static const OperationType OperationType_MAX =
382 static const int OperationType_ARRAYSIZE =
384 static inline const ::google::protobuf::EnumDescriptor*
387 }
388 static inline const ::std::string& OperationType_Name(OperationType value) {
390 }
391 static inline bool OperationType_Parse(const ::std::string& name,
392 OperationType* value) {
393 return FieldOperation_OperationType_Parse(name, value);
394 }
395
396 // accessors -------------------------------------------------------
397
398 // required .bgs.protocol.presence.v1.Field field = 1;
399 inline bool has_field() const;
400 inline void clear_field();
401 static const int kFieldFieldNumber = 1;
402 inline const ::bgs::protocol::presence::v1::Field& field() const;
403 inline ::bgs::protocol::presence::v1::Field* mutable_field();
404 inline ::bgs::protocol::presence::v1::Field* release_field();
405 inline void set_allocated_field(::bgs::protocol::presence::v1::Field* field);
406
407 // optional .bgs.protocol.presence.v1.FieldOperation.OperationType operation = 2 [default = SET];
408 inline bool has_operation() const;
409 inline void clear_operation();
410 static const int kOperationFieldNumber = 2;
413
414 // @@protoc_insertion_point(class_scope:bgs.protocol.presence.v1.FieldOperation)
415 private:
416 inline void set_has_field();
417 inline void clear_has_field();
418 inline void set_has_operation();
419 inline void clear_has_operation();
420
421 ::google::protobuf::UnknownFieldSet _unknown_fields_;
422
424 mutable int _cached_size_;
430
433};
434// -------------------------------------------------------------------
435
436class TC_PROTO_API PresenceState : public ::google::protobuf::Message {
437 public:
439 virtual ~PresenceState();
440
442
443 inline PresenceState& operator=(const PresenceState& from) {
444 CopyFrom(from);
445 return *this;
446 }
447
448 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
449 return _unknown_fields_;
450 }
451
452 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
453 return &_unknown_fields_;
454 }
455
456 static const ::google::protobuf::Descriptor* descriptor();
458
459 void Swap(PresenceState* other);
460
461 // implements Message ----------------------------------------------
462
464 int GetCachedSize() const { return _cached_size_; }
465 private:
468 void SetCachedSize(int size) const;
469 public:
470 ::google::protobuf::Metadata GetMetadata() const;
471
472 // nested types ----------------------------------------------------
473
474 // accessors -------------------------------------------------------
475
476 // optional .bgs.protocol.EntityId entity_id = 1;
477 inline bool has_entity_id() const;
478 inline void clear_entity_id();
479 static const int kEntityIdFieldNumber = 1;
480 inline const ::bgs::protocol::EntityId& entity_id() const;
481 inline ::bgs::protocol::EntityId* mutable_entity_id();
482 inline ::bgs::protocol::EntityId* release_entity_id();
483 inline void set_allocated_entity_id(::bgs::protocol::EntityId* entity_id);
484
485 // repeated .bgs.protocol.presence.v1.FieldOperation field_operation = 2;
486 inline int field_operation_size() const;
487 inline void clear_field_operation();
488 static const int kFieldOperationFieldNumber = 2;
489 inline const ::bgs::protocol::presence::v1::FieldOperation& field_operation(int index) const;
490 inline ::bgs::protocol::presence::v1::FieldOperation* mutable_field_operation(int index);
491 inline ::bgs::protocol::presence::v1::FieldOperation* add_field_operation();
492 inline const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::presence::v1::FieldOperation >&
493 field_operation() const;
494 inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::presence::v1::FieldOperation >*
495 mutable_field_operation();
496
497 // @@protoc_insertion_point(class_scope:bgs.protocol.presence.v1.PresenceState)
498 private:
499 inline void set_has_entity_id();
500 inline void clear_has_entity_id();
501
502 ::google::protobuf::UnknownFieldSet _unknown_fields_;
503
505 mutable int _cached_size_;
507 ::google::protobuf::RepeatedPtrField< ::bgs::protocol::presence::v1::FieldOperation > field_operation_;
511
514};
515// -------------------------------------------------------------------
516
517class TC_PROTO_API ChannelState : public ::google::protobuf::Message {
518 public:
520 virtual ~ChannelState();
521
523
524 inline ChannelState& operator=(const ChannelState& from) {
525 CopyFrom(from);
526 return *this;
527 }
528
529 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
530 return _unknown_fields_;
531 }
532
533 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
534 return &_unknown_fields_;
535 }
536
537 static const ::google::protobuf::Descriptor* descriptor();
539
540 void Swap(ChannelState* other);
541
542 // implements Message ----------------------------------------------
543
545 int GetCachedSize() const { return _cached_size_; }
546 private:
549 void SetCachedSize(int size) const;
550 public:
551 ::google::protobuf::Metadata GetMetadata() const;
552
553 // nested types ----------------------------------------------------
554
555 // accessors -------------------------------------------------------
556
557 // optional .bgs.protocol.EntityId entity_id = 1;
558 inline bool has_entity_id() const;
559 inline void clear_entity_id();
560 static const int kEntityIdFieldNumber = 1;
561 inline const ::bgs::protocol::EntityId& entity_id() const;
562 inline ::bgs::protocol::EntityId* mutable_entity_id();
563 inline ::bgs::protocol::EntityId* release_entity_id();
564 inline void set_allocated_entity_id(::bgs::protocol::EntityId* entity_id);
565
566 // repeated .bgs.protocol.presence.v1.FieldOperation field_operation = 2;
567 inline int field_operation_size() const;
568 inline void clear_field_operation();
569 static const int kFieldOperationFieldNumber = 2;
570 inline const ::bgs::protocol::presence::v1::FieldOperation& field_operation(int index) const;
571 inline ::bgs::protocol::presence::v1::FieldOperation* mutable_field_operation(int index);
572 inline ::bgs::protocol::presence::v1::FieldOperation* add_field_operation();
573 inline const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::presence::v1::FieldOperation >&
574 field_operation() const;
575 inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::presence::v1::FieldOperation >*
576 mutable_field_operation();
577
578 // optional bool healing = 3;
579 inline bool has_healing() const;
580 inline void clear_healing();
581 static const int kHealingFieldNumber = 3;
582 inline bool healing() const;
583 inline void set_healing(bool value);
584
585 static const int kPresenceFieldNumber = 101;
586 static ::google::protobuf::internal::ExtensionIdentifier< ::bgs::protocol::channel::v1::ChannelState,
587 ::google::protobuf::internal::MessageTypeTraits< ::bgs::protocol::presence::v1::ChannelState >, 11, false >
589 // @@protoc_insertion_point(class_scope:bgs.protocol.presence.v1.ChannelState)
590 private:
591 inline void set_has_entity_id();
592 inline void clear_has_entity_id();
593 inline void set_has_healing();
594 inline void clear_has_healing();
595
596 ::google::protobuf::UnknownFieldSet _unknown_fields_;
597
599 mutable int _cached_size_;
601 ::google::protobuf::RepeatedPtrField< ::bgs::protocol::presence::v1::FieldOperation > field_operation_;
606
609};
610// ===================================================================
611
612// ===================================================================
613
614// ===================================================================
615
616// RichPresenceLocalizationKey
617
618// required fixed32 program = 1;
620 return (_has_bits_[0] & 0x00000001u) != 0;
621}
623 _has_bits_[0] |= 0x00000001u;
624}
626 _has_bits_[0] &= ~0x00000001u;
627}
629 program_ = 0u;
631}
633 // @@protoc_insertion_point(field_get:bgs.protocol.presence.v1.RichPresenceLocalizationKey.program)
634 return program_;
635}
638 program_ = value;
639 // @@protoc_insertion_point(field_set:bgs.protocol.presence.v1.RichPresenceLocalizationKey.program)
640}
641
642// required fixed32 stream = 2;
644 return (_has_bits_[0] & 0x00000002u) != 0;
645}
647 _has_bits_[0] |= 0x00000002u;
648}
650 _has_bits_[0] &= ~0x00000002u;
651}
653 stream_ = 0u;
655}
657 // @@protoc_insertion_point(field_get:bgs.protocol.presence.v1.RichPresenceLocalizationKey.stream)
658 return stream_;
659}
662 stream_ = value;
663 // @@protoc_insertion_point(field_set:bgs.protocol.presence.v1.RichPresenceLocalizationKey.stream)
664}
665
666// required uint32 localization_id = 3;
668 return (_has_bits_[0] & 0x00000004u) != 0;
669}
671 _has_bits_[0] |= 0x00000004u;
672}
674 _has_bits_[0] &= ~0x00000004u;
675}
677 localization_id_ = 0u;
679}
681 // @@protoc_insertion_point(field_get:bgs.protocol.presence.v1.RichPresenceLocalizationKey.localization_id)
682 return localization_id_;
683}
686 localization_id_ = value;
687 // @@protoc_insertion_point(field_set:bgs.protocol.presence.v1.RichPresenceLocalizationKey.localization_id)
688}
689
690// -------------------------------------------------------------------
691
692// FieldKey
693
694// required uint32 program = 1;
695inline bool FieldKey::has_program() const {
696 return (_has_bits_[0] & 0x00000001u) != 0;
697}
699 _has_bits_[0] |= 0x00000001u;
700}
702 _has_bits_[0] &= ~0x00000001u;
703}
705 program_ = 0u;
707}
709 // @@protoc_insertion_point(field_get:bgs.protocol.presence.v1.FieldKey.program)
710 return program_;
711}
714 program_ = value;
715 // @@protoc_insertion_point(field_set:bgs.protocol.presence.v1.FieldKey.program)
716}
717
718// required uint32 group = 2;
719inline bool FieldKey::has_group() const {
720 return (_has_bits_[0] & 0x00000002u) != 0;
721}
723 _has_bits_[0] |= 0x00000002u;
724}
726 _has_bits_[0] &= ~0x00000002u;
727}
729 group_ = 0u;
731}
733 // @@protoc_insertion_point(field_get:bgs.protocol.presence.v1.FieldKey.group)
734 return group_;
735}
738 group_ = value;
739 // @@protoc_insertion_point(field_set:bgs.protocol.presence.v1.FieldKey.group)
740}
741
742// required uint32 field = 3;
743inline bool FieldKey::has_field() const {
744 return (_has_bits_[0] & 0x00000004u) != 0;
745}
747 _has_bits_[0] |= 0x00000004u;
748}
750 _has_bits_[0] &= ~0x00000004u;
751}
753 field_ = 0u;
755}
757 // @@protoc_insertion_point(field_get:bgs.protocol.presence.v1.FieldKey.field)
758 return field_;
759}
762 field_ = value;
763 // @@protoc_insertion_point(field_set:bgs.protocol.presence.v1.FieldKey.field)
764}
765
766// optional uint64 unique_id = 4;
767inline bool FieldKey::has_unique_id() const {
768 return (_has_bits_[0] & 0x00000008u) != 0;
769}
771 _has_bits_[0] |= 0x00000008u;
772}
774 _has_bits_[0] &= ~0x00000008u;
775}
777 unique_id_ = GOOGLE_ULONGLONG(0);
779}
781 // @@protoc_insertion_point(field_get:bgs.protocol.presence.v1.FieldKey.unique_id)
782 return unique_id_;
783}
786 unique_id_ = value;
787 // @@protoc_insertion_point(field_set:bgs.protocol.presence.v1.FieldKey.unique_id)
788}
789
790// -------------------------------------------------------------------
791
792// Field
793
794// required .bgs.protocol.presence.v1.FieldKey key = 1;
795inline bool Field::has_key() const {
796 return (_has_bits_[0] & 0x00000001u) != 0;
797}
798inline void Field::set_has_key() {
799 _has_bits_[0] |= 0x00000001u;
800}
801inline void Field::clear_has_key() {
802 _has_bits_[0] &= ~0x00000001u;
803}
804inline void Field::clear_key() {
805 if (key_ != NULL) key_->::bgs::protocol::presence::v1::FieldKey::Clear();
807}
808inline const ::bgs::protocol::presence::v1::FieldKey& Field::key() const {
809 // @@protoc_insertion_point(field_get:bgs.protocol.presence.v1.Field.key)
810 return key_ != NULL ? *key_ : *default_instance_->key_;
811}
812inline ::bgs::protocol::presence::v1::FieldKey* Field::mutable_key() {
813 set_has_key();
814 if (key_ == NULL) key_ = new ::bgs::protocol::presence::v1::FieldKey;
815 // @@protoc_insertion_point(field_mutable:bgs.protocol.presence.v1.Field.key)
816 return key_;
817}
818inline ::bgs::protocol::presence::v1::FieldKey* Field::release_key() {
821 key_ = NULL;
822 return temp;
823}
825 delete key_;
826 key_ = key;
827 if (key) {
828 set_has_key();
829 } else {
831 }
832 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.presence.v1.Field.key)
833}
834
835// required .bgs.protocol.Variant value = 2;
836inline bool Field::has_value() const {
837 return (_has_bits_[0] & 0x00000002u) != 0;
838}
839inline void Field::set_has_value() {
840 _has_bits_[0] |= 0x00000002u;
841}
843 _has_bits_[0] &= ~0x00000002u;
844}
845inline void Field::clear_value() {
846 if (value_ != NULL) value_->::bgs::protocol::Variant::Clear();
848}
849inline const ::bgs::protocol::Variant& Field::value() const {
850 // @@protoc_insertion_point(field_get:bgs.protocol.presence.v1.Field.value)
851 return value_ != NULL ? *value_ : *default_instance_->value_;
852}
853inline ::bgs::protocol::Variant* Field::mutable_value() {
855 if (value_ == NULL) value_ = new ::bgs::protocol::Variant;
856 // @@protoc_insertion_point(field_mutable:bgs.protocol.presence.v1.Field.value)
857 return value_;
858}
859inline ::bgs::protocol::Variant* Field::release_value() {
862 value_ = NULL;
863 return temp;
864}
866 delete value_;
867 value_ = value;
868 if (value) {
870 } else {
872 }
873 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.presence.v1.Field.value)
874}
875
876// -------------------------------------------------------------------
877
878// FieldOperation
879
880// required .bgs.protocol.presence.v1.Field field = 1;
881inline bool FieldOperation::has_field() const {
882 return (_has_bits_[0] & 0x00000001u) != 0;
883}
885 _has_bits_[0] |= 0x00000001u;
886}
888 _has_bits_[0] &= ~0x00000001u;
889}
891 if (field_ != NULL) field_->::bgs::protocol::presence::v1::Field::Clear();
893}
894inline const ::bgs::protocol::presence::v1::Field& FieldOperation::field() const {
895 // @@protoc_insertion_point(field_get:bgs.protocol.presence.v1.FieldOperation.field)
896 return field_ != NULL ? *field_ : *default_instance_->field_;
897}
898inline ::bgs::protocol::presence::v1::Field* FieldOperation::mutable_field() {
900 if (field_ == NULL) field_ = new ::bgs::protocol::presence::v1::Field;
901 // @@protoc_insertion_point(field_mutable:bgs.protocol.presence.v1.FieldOperation.field)
902 return field_;
903}
904inline ::bgs::protocol::presence::v1::Field* FieldOperation::release_field() {
907 field_ = NULL;
908 return temp;
909}
911 delete field_;
912 field_ = field;
913 if (field) {
915 } else {
917 }
918 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.presence.v1.FieldOperation.field)
919}
920
921// optional .bgs.protocol.presence.v1.FieldOperation.OperationType operation = 2 [default = SET];
922inline bool FieldOperation::has_operation() const {
923 return (_has_bits_[0] & 0x00000002u) != 0;
924}
926 _has_bits_[0] |= 0x00000002u;
927}
929 _has_bits_[0] &= ~0x00000002u;
930}
932 operation_ = 0;
934}
936 // @@protoc_insertion_point(field_get:bgs.protocol.presence.v1.FieldOperation.operation)
938}
942 operation_ = value;
943 // @@protoc_insertion_point(field_set:bgs.protocol.presence.v1.FieldOperation.operation)
944}
945
946// -------------------------------------------------------------------
947
948// PresenceState
949
950// optional .bgs.protocol.EntityId entity_id = 1;
951inline bool PresenceState::has_entity_id() const {
952 return (_has_bits_[0] & 0x00000001u) != 0;
953}
955 _has_bits_[0] |= 0x00000001u;
956}
958 _has_bits_[0] &= ~0x00000001u;
959}
961 if (entity_id_ != NULL) entity_id_->::bgs::protocol::EntityId::Clear();
963}
964inline const ::bgs::protocol::EntityId& PresenceState::entity_id() const {
965 // @@protoc_insertion_point(field_get:bgs.protocol.presence.v1.PresenceState.entity_id)
967}
968inline ::bgs::protocol::EntityId* PresenceState::mutable_entity_id() {
970 if (entity_id_ == NULL) entity_id_ = new ::bgs::protocol::EntityId;
971 // @@protoc_insertion_point(field_mutable:bgs.protocol.presence.v1.PresenceState.entity_id)
972 return entity_id_;
973}
974inline ::bgs::protocol::EntityId* PresenceState::release_entity_id() {
977 entity_id_ = NULL;
978 return temp;
979}
981 delete entity_id_;
983 if (entity_id) {
985 } else {
987 }
988 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.presence.v1.PresenceState.entity_id)
989}
990
991// repeated .bgs.protocol.presence.v1.FieldOperation field_operation = 2;
993 return field_operation_.size();
994}
996 field_operation_.Clear();
997}
998inline const ::bgs::protocol::presence::v1::FieldOperation& PresenceState::field_operation(int index) const {
999 // @@protoc_insertion_point(field_get:bgs.protocol.presence.v1.PresenceState.field_operation)
1000 return field_operation_.Get(index);
1001}
1002inline ::bgs::protocol::presence::v1::FieldOperation* PresenceState::mutable_field_operation(int index) {
1003 // @@protoc_insertion_point(field_mutable:bgs.protocol.presence.v1.PresenceState.field_operation)
1004 return field_operation_.Mutable(index);
1005}
1006inline ::bgs::protocol::presence::v1::FieldOperation* PresenceState::add_field_operation() {
1007 // @@protoc_insertion_point(field_add:bgs.protocol.presence.v1.PresenceState.field_operation)
1008 return field_operation_.Add();
1009}
1010inline const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::presence::v1::FieldOperation >&
1012 // @@protoc_insertion_point(field_list:bgs.protocol.presence.v1.PresenceState.field_operation)
1013 return field_operation_;
1014}
1015inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::presence::v1::FieldOperation >*
1017 // @@protoc_insertion_point(field_mutable_list:bgs.protocol.presence.v1.PresenceState.field_operation)
1018 return &field_operation_;
1019}
1020
1021// -------------------------------------------------------------------
1022
1023// ChannelState
1024
1025// optional .bgs.protocol.EntityId entity_id = 1;
1026inline bool ChannelState::has_entity_id() const {
1027 return (_has_bits_[0] & 0x00000001u) != 0;
1028}
1030 _has_bits_[0] |= 0x00000001u;
1031}
1033 _has_bits_[0] &= ~0x00000001u;
1034}
1036 if (entity_id_ != NULL) entity_id_->::bgs::protocol::EntityId::Clear();
1038}
1039inline const ::bgs::protocol::EntityId& ChannelState::entity_id() const {
1040 // @@protoc_insertion_point(field_get:bgs.protocol.presence.v1.ChannelState.entity_id)
1041 return entity_id_ != NULL ? *entity_id_ : *default_instance_->entity_id_;
1042}
1043inline ::bgs::protocol::EntityId* ChannelState::mutable_entity_id() {
1045 if (entity_id_ == NULL) entity_id_ = new ::bgs::protocol::EntityId;
1046 // @@protoc_insertion_point(field_mutable:bgs.protocol.presence.v1.ChannelState.entity_id)
1047 return entity_id_;
1048}
1049inline ::bgs::protocol::EntityId* ChannelState::release_entity_id() {
1052 entity_id_ = NULL;
1053 return temp;
1054}
1056 delete entity_id_;
1058 if (entity_id) {
1060 } else {
1062 }
1063 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.presence.v1.ChannelState.entity_id)
1064}
1065
1066// repeated .bgs.protocol.presence.v1.FieldOperation field_operation = 2;
1068 return field_operation_.size();
1069}
1071 field_operation_.Clear();
1072}
1073inline const ::bgs::protocol::presence::v1::FieldOperation& ChannelState::field_operation(int index) const {
1074 // @@protoc_insertion_point(field_get:bgs.protocol.presence.v1.ChannelState.field_operation)
1075 return field_operation_.Get(index);
1076}
1077inline ::bgs::protocol::presence::v1::FieldOperation* ChannelState::mutable_field_operation(int index) {
1078 // @@protoc_insertion_point(field_mutable:bgs.protocol.presence.v1.ChannelState.field_operation)
1079 return field_operation_.Mutable(index);
1080}
1081inline ::bgs::protocol::presence::v1::FieldOperation* ChannelState::add_field_operation() {
1082 // @@protoc_insertion_point(field_add:bgs.protocol.presence.v1.ChannelState.field_operation)
1083 return field_operation_.Add();
1084}
1085inline const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::presence::v1::FieldOperation >&
1087 // @@protoc_insertion_point(field_list:bgs.protocol.presence.v1.ChannelState.field_operation)
1088 return field_operation_;
1089}
1090inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::presence::v1::FieldOperation >*
1092 // @@protoc_insertion_point(field_mutable_list:bgs.protocol.presence.v1.ChannelState.field_operation)
1093 return &field_operation_;
1094}
1095
1096// optional bool healing = 3;
1097inline bool ChannelState::has_healing() const {
1098 return (_has_bits_[0] & 0x00000004u) != 0;
1099}
1101 _has_bits_[0] |= 0x00000004u;
1102}
1104 _has_bits_[0] &= ~0x00000004u;
1105}
1107 healing_ = false;
1109}
1110inline bool ChannelState::healing() const {
1111 // @@protoc_insertion_point(field_get:bgs.protocol.presence.v1.ChannelState.healing)
1112 return healing_;
1113}
1114inline void ChannelState::set_healing(bool value) {
1116 healing_ = value;
1117 // @@protoc_insertion_point(field_set:bgs.protocol.presence.v1.ChannelState.healing)
1118}
1119
1120// @@protoc_insertion_point(namespace_scope)
1121
1122} // namespace v1
1123} // namespace presence
1124} // namespace protocol
1125} // namespace bgs
1126
1127#ifndef SWIG
1128namespace google {
1129namespace protobuf {
1130template <> struct is_proto_enum< ::bgs::protocol::presence::v1::FieldOperation_OperationType> : ::google::protobuf::internal::true_type {};
1131template <>
1132inline const EnumDescriptor* GetEnumDescriptor< ::bgs::protocol::presence::v1::FieldOperation_OperationType>() {
1134}
1135} // namespace google
1136} // namespace protobuf
1137#endif // SWIG
1138
1139// @@protoc_insertion_point(global_scope)
1140
1141#endif // PROTOBUF_presence_5ftypes_2eproto__INCLUDED
#define TC_PROTO_API
Definition: Define.h:105
uint64_t uint64
Definition: Define.h:141
uint32_t uint32
Definition: Define.h:142
::google::protobuf::RepeatedPtrField< ::bgs::protocol::presence::v1::FieldOperation > field_operation_
static const ChannelState & default_instance()
inline ::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
friend void protobuf_ShutdownFile_presence_5ftypes_2eproto()
const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::presence::v1::FieldOperation > & field_operation() const
::google::protobuf::uint32 _has_bits_[1]
inline ::bgs::protocol::EntityId * mutable_entity_id()
inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::presence::v1::FieldOperation > * mutable_field_operation()
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
inline ::bgs::protocol::EntityId * release_entity_id()
inline ::bgs::protocol::presence::v1::FieldOperation * add_field_operation()
void set_allocated_entity_id(::bgs::protocol::EntityId *entity_id)
static ::google::protobuf::internal::ExtensionIdentifier< ::bgs::protocol::channel::v1::ChannelState, ::google::protobuf::internal::MessageTypeTraits< ::bgs::protocol::presence::v1::ChannelState >, 11, false > presence
ChannelState(const ChannelState &from)
const ::bgs::protocol::EntityId & entity_id() const
::google::protobuf::UnknownFieldSet _unknown_fields_
friend void protobuf_AssignDesc_presence_5ftypes_2eproto()
::google::protobuf::Metadata GetMetadata() const
ChannelState & operator=(const ChannelState &from)
friend void TC_PROTO_API protobuf_AddDesc_presence_5ftypes_2eproto()
static const ::google::protobuf::Descriptor * descriptor()
void set_unique_id(::google::protobuf::uint64 value)
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
FieldKey & operator=(const FieldKey &from)
inline ::google::protobuf::uint32 field() const
friend void protobuf_ShutdownFile_presence_5ftypes_2eproto()
::google::protobuf::Metadata GetMetadata() const
static const FieldKey & default_instance()
inline ::google::protobuf::uint64 unique_id() const
::google::protobuf::uint32 _has_bits_[1]
void set_program(::google::protobuf::uint32 value)
void set_group(::google::protobuf::uint32 value)
inline ::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
friend void protobuf_AssignDesc_presence_5ftypes_2eproto()
inline ::google::protobuf::uint32 group() const
static const ::google::protobuf::Descriptor * descriptor()
::google::protobuf::uint64 unique_id_
friend void TC_PROTO_API protobuf_AddDesc_presence_5ftypes_2eproto()
::google::protobuf::uint32 program_
void set_field(::google::protobuf::uint32 value)
::google::protobuf::UnknownFieldSet _unknown_fields_
inline ::google::protobuf::uint32 program() const
static const ::std::string & OperationType_Name(OperationType value)
FieldOperation(const FieldOperation &from)
inline ::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
static const ::google::protobuf::EnumDescriptor * OperationType_descriptor()
const ::bgs::protocol::presence::v1::Field & field() const
FieldOperation_OperationType OperationType
void set_operation(::bgs::protocol::presence::v1::FieldOperation_OperationType value)
static const FieldOperation & default_instance()
inline ::bgs::protocol::presence::v1::Field * mutable_field()
::google::protobuf::Metadata GetMetadata() const
inline ::bgs::protocol::presence::v1::Field * release_field()
inline ::bgs::protocol::presence::v1::FieldOperation_OperationType operation() const
::google::protobuf::UnknownFieldSet _unknown_fields_
::google::protobuf::uint32 _has_bits_[1]
static bool OperationType_Parse(const ::std::string &name, OperationType *value)
static const ::google::protobuf::Descriptor * descriptor()
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
friend void TC_PROTO_API protobuf_AddDesc_presence_5ftypes_2eproto()
::bgs::protocol::presence::v1::Field * field_
void set_allocated_field(::bgs::protocol::presence::v1::Field *field)
FieldOperation & operator=(const FieldOperation &from)
::google::protobuf::Metadata GetMetadata() const
inline ::bgs::protocol::presence::v1::FieldKey * release_key()
static const Field & default_instance()
::google::protobuf::uint32 _has_bits_[1]
inline ::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
::bgs::protocol::presence::v1::FieldKey * key_
friend void protobuf_ShutdownFile_presence_5ftypes_2eproto()
static const ::google::protobuf::Descriptor * descriptor()
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
Field & operator=(const Field &from)
const ::bgs::protocol::presence::v1::FieldKey & key() const
void set_allocated_value(::bgs::protocol::Variant *value)
inline ::bgs::protocol::presence::v1::FieldKey * mutable_key()
void SetCachedSize(int size) const
friend void protobuf_AssignDesc_presence_5ftypes_2eproto()
::bgs::protocol::Variant * value_
const ::bgs::protocol::Variant & value() const
friend void TC_PROTO_API protobuf_AddDesc_presence_5ftypes_2eproto()
inline ::bgs::protocol::Variant * release_value()
inline ::bgs::protocol::Variant * mutable_value()
::google::protobuf::UnknownFieldSet _unknown_fields_
void set_allocated_key(::bgs::protocol::presence::v1::FieldKey *key)
const ::bgs::protocol::EntityId & entity_id() const
const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::presence::v1::FieldOperation > & field_operation() const
::google::protobuf::uint32 _has_bits_[1]
inline ::bgs::protocol::presence::v1::FieldOperation * add_field_operation()
PresenceState & operator=(const PresenceState &from)
void set_allocated_entity_id(::bgs::protocol::EntityId *entity_id)
static const PresenceState & default_instance()
friend void protobuf_ShutdownFile_presence_5ftypes_2eproto()
::google::protobuf::Metadata GetMetadata() const
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
static const ::google::protobuf::Descriptor * descriptor()
inline ::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
::google::protobuf::UnknownFieldSet _unknown_fields_
::google::protobuf::RepeatedPtrField< ::bgs::protocol::presence::v1::FieldOperation > field_operation_
inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::presence::v1::FieldOperation > * mutable_field_operation()
PresenceState(const PresenceState &from)
inline ::bgs::protocol::EntityId * mutable_entity_id()
friend void TC_PROTO_API protobuf_AddDesc_presence_5ftypes_2eproto()
inline ::bgs::protocol::EntityId * release_entity_id()
static RichPresenceLocalizationKey * default_instance_
void set_program(::google::protobuf::uint32 value)
void set_localization_id(::google::protobuf::uint32 value)
RichPresenceLocalizationKey & operator=(const RichPresenceLocalizationKey &from)
inline ::google::protobuf::uint32 localization_id() const
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
inline ::google::protobuf::uint32 program() const
inline ::google::protobuf::uint32 stream() const
static const RichPresenceLocalizationKey & default_instance()
RichPresenceLocalizationKey * New() const
void set_stream(::google::protobuf::uint32 value)
void Swap(RichPresenceLocalizationKey *other)
inline ::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
RichPresenceLocalizationKey(const RichPresenceLocalizationKey &from)
static const ::google::protobuf::Descriptor * descriptor()
friend void TC_PROTO_API protobuf_AddDesc_presence_5ftypes_2eproto()
::google::protobuf::Metadata GetMetadata() const
constexpr std::size_t size()
Definition: UpdateField.h:796
void TC_PROTO_API protobuf_AddDesc_presence_5ftypes_2eproto()
void protobuf_ShutdownFile_presence_5ftypes_2eproto()
const int FieldOperation_OperationType_OperationType_ARRAYSIZE
bool FieldOperation_OperationType_Parse(const ::std::string &name, FieldOperation_OperationType *value)
TC_PROTO_APIconst ::google::protobuf::EnumDescriptor * FieldOperation_OperationType_descriptor()
const FieldOperation_OperationType FieldOperation_OperationType_OperationType_MIN
const ::std::string & FieldOperation_OperationType_Name(FieldOperation_OperationType value)
TC_PROTO_API bool FieldOperation_OperationType_IsValid(int value)
void protobuf_AssignDesc_presence_5ftypes_2eproto()
const FieldOperation_OperationType FieldOperation_OperationType_OperationType_MAX
Definition: Session.h:36