TrinityCore
report_types.pb.h
Go to the documentation of this file.
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: api/client/v2/report_types.proto
3
4#ifndef PROTOBUF_api_2fclient_2fv2_2freport_5ftypes_2eproto__INCLUDED
5#define PROTOBUF_api_2fclient_2fv2_2freport_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>
29#include "account_types.pb.h"
30#include "message_types.pb.h"
32#include "Define.h" // for TC_PROTO_API
33// @@protoc_insertion_point(includes)
34
35namespace bgs {
36namespace protocol {
37namespace report {
38namespace v2 {
39
40// Internal implementation detail -- do not call these.
44
45class ReportItem;
46class UserOptions;
47class ClubOptions;
48class EntityOptions;
49
56};
61
62TC_PROTO_API const ::google::protobuf::EnumDescriptor* IssueType_descriptor();
63inline const ::std::string& IssueType_Name(IssueType value) {
64 return ::google::protobuf::internal::NameOfEnum(
65 IssueType_descriptor(), value);
66}
67inline bool IssueType_Parse(
68 const ::std::string& name, IssueType* value) {
69 return ::google::protobuf::internal::ParseNamedEnum<IssueType>(
70 IssueType_descriptor(), name, value);
71}
80};
85
86TC_PROTO_API const ::google::protobuf::EnumDescriptor* UserSource_descriptor();
87inline const ::std::string& UserSource_Name(UserSource value) {
88 return ::google::protobuf::internal::NameOfEnum(
89 UserSource_descriptor(), value);
90}
91inline bool UserSource_Parse(
92 const ::std::string& name, UserSource* value) {
93 return ::google::protobuf::internal::ParseNamedEnum<UserSource>(
94 UserSource_descriptor(), name, value);
95}
110
111TC_PROTO_API const ::google::protobuf::EnumDescriptor* ClubSource_descriptor();
112inline const ::std::string& ClubSource_Name(ClubSource value) {
113 return ::google::protobuf::internal::NameOfEnum(
114 ClubSource_descriptor(), value);
115}
117 const ::std::string& name, ClubSource* value) {
118 return ::google::protobuf::internal::ParseNamedEnum<ClubSource>(
119 ClubSource_descriptor(), name, value);
120}
121// ===================================================================
122
123class TC_PROTO_API ReportItem : public ::google::protobuf::Message {
124 public:
126 virtual ~ReportItem();
127
128 ReportItem(const ReportItem& from);
129
130 inline ReportItem& operator=(const ReportItem& from) {
131 CopyFrom(from);
132 return *this;
133 }
134
135 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
136 return _unknown_fields_;
137 }
138
139 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
140 return &_unknown_fields_;
141 }
142
143 static const ::google::protobuf::Descriptor* descriptor();
145
146 enum TypeCase {
147 kMessageId = 1,
148 TYPE_NOT_SET = 0,
149 };
150
151 void Swap(ReportItem* other);
152
153 // implements Message ----------------------------------------------
154
155 ReportItem* New() const;
156 int GetCachedSize() const { return _cached_size_; }
157 private:
160 void SetCachedSize(int size) const;
161 public:
162 ::google::protobuf::Metadata GetMetadata() const;
163
164 // nested types ----------------------------------------------------
165
166 // accessors -------------------------------------------------------
167
168 // optional .bgs.protocol.MessageId message_id = 1;
169 inline bool has_message_id() const;
170 inline void clear_message_id();
171 static const int kMessageIdFieldNumber = 1;
172 inline const ::bgs::protocol::MessageId& message_id() const;
173 inline ::bgs::protocol::MessageId* mutable_message_id();
174 inline ::bgs::protocol::MessageId* release_message_id();
175 inline void set_allocated_message_id(::bgs::protocol::MessageId* message_id);
176
177 inline TypeCase type_case() const;
178 // @@protoc_insertion_point(class_scope:bgs.protocol.report.v2.ReportItem)
179 private:
180 inline void set_has_message_id();
181
182 inline bool has_type();
184 inline void clear_has_type();
185
186 ::google::protobuf::UnknownFieldSet _unknown_fields_;
187
189 mutable int _cached_size_;
190 union TypeUnion {
192 } type_;
194
198
201};
202// -------------------------------------------------------------------
203
204class TC_PROTO_API UserOptions : public ::google::protobuf::Message {
205 public:
207 virtual ~UserOptions();
208
210
211 inline UserOptions& operator=(const UserOptions& from) {
212 CopyFrom(from);
213 return *this;
214 }
215
216 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
217 return _unknown_fields_;
218 }
219
220 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
221 return &_unknown_fields_;
222 }
223
224 static const ::google::protobuf::Descriptor* descriptor();
226
227 void Swap(UserOptions* other);
228
229 // implements Message ----------------------------------------------
230
231 UserOptions* New() const;
232 int GetCachedSize() const { return _cached_size_; }
233 private:
236 void SetCachedSize(int size) const;
237 public:
238 ::google::protobuf::Metadata GetMetadata() const;
239
240 // nested types ----------------------------------------------------
241
242 // accessors -------------------------------------------------------
243
244 // optional .bgs.protocol.account.v1.AccountId target_id = 1;
245 inline bool has_target_id() const;
246 inline void clear_target_id();
247 static const int kTargetIdFieldNumber = 1;
248 inline const ::bgs::protocol::account::v1::AccountId& target_id() const;
249 inline ::bgs::protocol::account::v1::AccountId* mutable_target_id();
250 inline ::bgs::protocol::account::v1::AccountId* release_target_id();
251 inline void set_allocated_target_id(::bgs::protocol::account::v1::AccountId* target_id);
252
253 // optional .bgs.protocol.report.v2.IssueType type = 2;
254 inline bool has_type() const;
255 inline void clear_type();
256 static const int kTypeFieldNumber = 2;
258 inline void set_type(::bgs::protocol::report::v2::IssueType value);
259
260 // optional .bgs.protocol.report.v2.UserSource source = 3;
261 inline bool has_source() const;
262 inline void clear_source();
263 static const int kSourceFieldNumber = 3;
265 inline void set_source(::bgs::protocol::report::v2::UserSource value);
266
267 // optional .bgs.protocol.report.v2.ReportItem item = 4;
268 inline bool has_item() const;
269 inline void clear_item();
270 static const int kItemFieldNumber = 4;
271 inline const ::bgs::protocol::report::v2::ReportItem& item() const;
272 inline ::bgs::protocol::report::v2::ReportItem* mutable_item();
273 inline ::bgs::protocol::report::v2::ReportItem* release_item();
274 inline void set_allocated_item(::bgs::protocol::report::v2::ReportItem* item);
275
276 // @@protoc_insertion_point(class_scope:bgs.protocol.report.v2.UserOptions)
277 private:
278 inline void set_has_target_id();
279 inline void clear_has_target_id();
280 inline void set_has_type();
281 inline void clear_has_type();
282 inline void set_has_source();
283 inline void clear_has_source();
284 inline void set_has_item();
285 inline void clear_has_item();
286
287 ::google::protobuf::UnknownFieldSet _unknown_fields_;
288
290 mutable int _cached_size_;
292 int type_;
298
301};
302// -------------------------------------------------------------------
303
304class TC_PROTO_API ClubOptions : public ::google::protobuf::Message {
305 public:
307 virtual ~ClubOptions();
308
310
311 inline ClubOptions& operator=(const ClubOptions& from) {
312 CopyFrom(from);
313 return *this;
314 }
315
316 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
317 return _unknown_fields_;
318 }
319
320 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
321 return &_unknown_fields_;
322 }
323
324 static const ::google::protobuf::Descriptor* descriptor();
326
327 void Swap(ClubOptions* other);
328
329 // implements Message ----------------------------------------------
330
331 ClubOptions* New() const;
332 int GetCachedSize() const { return _cached_size_; }
333 private:
336 void SetCachedSize(int size) const;
337 public:
338 ::google::protobuf::Metadata GetMetadata() const;
339
340 // nested types ----------------------------------------------------
341
342 // accessors -------------------------------------------------------
343
344 // optional uint64 club_id = 1;
345 inline bool has_club_id() const;
346 inline void clear_club_id();
347 static const int kClubIdFieldNumber = 1;
348 inline ::google::protobuf::uint64 club_id() const;
349 inline void set_club_id(::google::protobuf::uint64 value);
350
351 // optional uint64 stream_id = 2;
352 inline bool has_stream_id() const;
353 inline void clear_stream_id();
354 static const int kStreamIdFieldNumber = 2;
355 inline ::google::protobuf::uint64 stream_id() const;
356 inline void set_stream_id(::google::protobuf::uint64 value);
357
358 // optional .bgs.protocol.report.v2.IssueType type = 3;
359 inline bool has_type() const;
360 inline void clear_type();
361 static const int kTypeFieldNumber = 3;
363 inline void set_type(::bgs::protocol::report::v2::IssueType value);
364
365 // optional .bgs.protocol.report.v2.ClubSource source = 4;
366 inline bool has_source() const;
367 inline void clear_source();
368 static const int kSourceFieldNumber = 4;
370 inline void set_source(::bgs::protocol::report::v2::ClubSource value);
371
372 // optional .bgs.protocol.report.v2.ReportItem item = 5;
373 inline bool has_item() const;
374 inline void clear_item();
375 static const int kItemFieldNumber = 5;
376 inline const ::bgs::protocol::report::v2::ReportItem& item() const;
377 inline ::bgs::protocol::report::v2::ReportItem* mutable_item();
378 inline ::bgs::protocol::report::v2::ReportItem* release_item();
379 inline void set_allocated_item(::bgs::protocol::report::v2::ReportItem* item);
380
381 // @@protoc_insertion_point(class_scope:bgs.protocol.report.v2.ClubOptions)
382 private:
383 inline void set_has_club_id();
384 inline void clear_has_club_id();
385 inline void set_has_stream_id();
386 inline void clear_has_stream_id();
387 inline void set_has_type();
388 inline void clear_has_type();
389 inline void set_has_source();
390 inline void clear_has_source();
391 inline void set_has_item();
392 inline void clear_has_item();
393
394 ::google::protobuf::UnknownFieldSet _unknown_fields_;
395
397 mutable int _cached_size_;
400 int type_;
406
409};
410// -------------------------------------------------------------------
411
412class TC_PROTO_API EntityOptions : public ::google::protobuf::Message {
413 public:
415 virtual ~EntityOptions();
416
418
419 inline EntityOptions& operator=(const EntityOptions& from) {
420 CopyFrom(from);
421 return *this;
422 }
423
424 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
425 return _unknown_fields_;
426 }
427
428 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
429 return &_unknown_fields_;
430 }
431
432 static const ::google::protobuf::Descriptor* descriptor();
434
435 void Swap(EntityOptions* other);
436
437 // implements Message ----------------------------------------------
438
440 int GetCachedSize() const { return _cached_size_; }
441 private:
444 void SetCachedSize(int size) const;
445 public:
446 ::google::protobuf::Metadata GetMetadata() const;
447
448 // nested types ----------------------------------------------------
449
450 // accessors -------------------------------------------------------
451
452 // optional string entity_id = 1;
453 inline bool has_entity_id() const;
454 inline void clear_entity_id();
455 static const int kEntityIdFieldNumber = 1;
456 inline const ::std::string& entity_id() const;
457 inline void set_entity_id(const ::std::string& value);
458 inline void set_entity_id(const char* value);
459 inline void set_entity_id(const char* value, size_t size);
460 inline ::std::string* mutable_entity_id();
461 inline ::std::string* release_entity_id();
462 inline void set_allocated_entity_id(::std::string* entity_id);
463
464 // optional string entity_type = 2;
465 inline bool has_entity_type() const;
466 inline void clear_entity_type();
467 static const int kEntityTypeFieldNumber = 2;
468 inline const ::std::string& entity_type() const;
469 inline void set_entity_type(const ::std::string& value);
470 inline void set_entity_type(const char* value);
471 inline void set_entity_type(const char* value, size_t size);
472 inline ::std::string* mutable_entity_type();
473 inline ::std::string* release_entity_type();
474 inline void set_allocated_entity_type(::std::string* entity_type);
475
476 // repeated .bgs.protocol.v2.Attribute attribute = 5;
477 inline int attribute_size() const;
478 inline void clear_attribute();
479 static const int kAttributeFieldNumber = 5;
480 inline const ::bgs::protocol::v2::Attribute& attribute(int index) const;
481 inline ::bgs::protocol::v2::Attribute* mutable_attribute(int index);
482 inline ::bgs::protocol::v2::Attribute* add_attribute();
483 inline const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::v2::Attribute >&
484 attribute() const;
485 inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::v2::Attribute >*
486 mutable_attribute();
487
488 // @@protoc_insertion_point(class_scope:bgs.protocol.report.v2.EntityOptions)
489 private:
490 inline void set_has_entity_id();
491 inline void clear_has_entity_id();
492 inline void set_has_entity_type();
493 inline void clear_has_entity_type();
494
495 ::google::protobuf::UnknownFieldSet _unknown_fields_;
496
498 mutable int _cached_size_;
499 ::std::string* entity_id_;
500 ::std::string* entity_type_;
501 ::google::protobuf::RepeatedPtrField< ::bgs::protocol::v2::Attribute > attribute_;
505
508};
509// ===================================================================
510
511// ===================================================================
512
513// ===================================================================
514
515// ReportItem
516
517// optional .bgs.protocol.MessageId message_id = 1;
518inline bool ReportItem::has_message_id() const {
519 return type_case() == kMessageId;
520}
523}
525 if (has_message_id()) {
526 delete type_.message_id_;
528 }
529}
530inline const ::bgs::protocol::MessageId& ReportItem::message_id() const {
533}
534inline ::bgs::protocol::MessageId* ReportItem::mutable_message_id() {
535 if (!has_message_id()) {
536 clear_type();
538 type_.message_id_ = new ::bgs::protocol::MessageId;
539 }
540 return type_.message_id_;
541}
542inline ::bgs::protocol::MessageId* ReportItem::release_message_id() {
543 if (has_message_id()) {
546 type_.message_id_ = NULL;
547 return temp;
548 } else {
549 return NULL;
550 }
551}
553 clear_type();
554 if (message_id) {
557 }
558}
559
560inline bool ReportItem::has_type() {
561 return type_case() != TYPE_NOT_SET;
562}
565}
568}
569// -------------------------------------------------------------------
570
571// UserOptions
572
573// optional .bgs.protocol.account.v1.AccountId target_id = 1;
574inline bool UserOptions::has_target_id() const {
575 return (_has_bits_[0] & 0x00000001u) != 0;
576}
578 _has_bits_[0] |= 0x00000001u;
579}
581 _has_bits_[0] &= ~0x00000001u;
582}
584 if (target_id_ != NULL) target_id_->::bgs::protocol::account::v1::AccountId::Clear();
586}
587inline const ::bgs::protocol::account::v1::AccountId& UserOptions::target_id() const {
588 // @@protoc_insertion_point(field_get:bgs.protocol.report.v2.UserOptions.target_id)
590}
591inline ::bgs::protocol::account::v1::AccountId* UserOptions::mutable_target_id() {
593 if (target_id_ == NULL) target_id_ = new ::bgs::protocol::account::v1::AccountId;
594 // @@protoc_insertion_point(field_mutable:bgs.protocol.report.v2.UserOptions.target_id)
595 return target_id_;
596}
597inline ::bgs::protocol::account::v1::AccountId* UserOptions::release_target_id() {
600 target_id_ = NULL;
601 return temp;
602}
604 delete target_id_;
606 if (target_id) {
608 } else {
610 }
611 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.report.v2.UserOptions.target_id)
612}
613
614// optional .bgs.protocol.report.v2.IssueType type = 2;
615inline bool UserOptions::has_type() const {
616 return (_has_bits_[0] & 0x00000002u) != 0;
617}
619 _has_bits_[0] |= 0x00000002u;
620}
622 _has_bits_[0] &= ~0x00000002u;
623}
625 type_ = 0;
627}
629 // @@protoc_insertion_point(field_get:bgs.protocol.report.v2.UserOptions.type)
630 return static_cast< ::bgs::protocol::report::v2::IssueType >(type_);
631}
634 set_has_type();
635 type_ = value;
636 // @@protoc_insertion_point(field_set:bgs.protocol.report.v2.UserOptions.type)
637}
638
639// optional .bgs.protocol.report.v2.UserSource source = 3;
640inline bool UserOptions::has_source() const {
641 return (_has_bits_[0] & 0x00000004u) != 0;
642}
644 _has_bits_[0] |= 0x00000004u;
645}
647 _has_bits_[0] &= ~0x00000004u;
648}
650 source_ = 0;
652}
654 // @@protoc_insertion_point(field_get:bgs.protocol.report.v2.UserOptions.source)
655 return static_cast< ::bgs::protocol::report::v2::UserSource >(source_);
656}
660 source_ = value;
661 // @@protoc_insertion_point(field_set:bgs.protocol.report.v2.UserOptions.source)
662}
663
664// optional .bgs.protocol.report.v2.ReportItem item = 4;
665inline bool UserOptions::has_item() const {
666 return (_has_bits_[0] & 0x00000008u) != 0;
667}
669 _has_bits_[0] |= 0x00000008u;
670}
672 _has_bits_[0] &= ~0x00000008u;
673}
675 if (item_ != NULL) item_->::bgs::protocol::report::v2::ReportItem::Clear();
677}
678inline const ::bgs::protocol::report::v2::ReportItem& UserOptions::item() const {
679 // @@protoc_insertion_point(field_get:bgs.protocol.report.v2.UserOptions.item)
680 return item_ != NULL ? *item_ : *default_instance_->item_;
681}
682inline ::bgs::protocol::report::v2::ReportItem* UserOptions::mutable_item() {
683 set_has_item();
684 if (item_ == NULL) item_ = new ::bgs::protocol::report::v2::ReportItem;
685 // @@protoc_insertion_point(field_mutable:bgs.protocol.report.v2.UserOptions.item)
686 return item_;
687}
688inline ::bgs::protocol::report::v2::ReportItem* UserOptions::release_item() {
691 item_ = NULL;
692 return temp;
693}
695 delete item_;
696 item_ = item;
697 if (item) {
698 set_has_item();
699 } else {
701 }
702 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.report.v2.UserOptions.item)
703}
704
705// -------------------------------------------------------------------
706
707// ClubOptions
708
709// optional uint64 club_id = 1;
710inline bool ClubOptions::has_club_id() const {
711 return (_has_bits_[0] & 0x00000001u) != 0;
712}
714 _has_bits_[0] |= 0x00000001u;
715}
717 _has_bits_[0] &= ~0x00000001u;
718}
720 club_id_ = GOOGLE_ULONGLONG(0);
722}
724 // @@protoc_insertion_point(field_get:bgs.protocol.report.v2.ClubOptions.club_id)
725 return club_id_;
726}
729 club_id_ = value;
730 // @@protoc_insertion_point(field_set:bgs.protocol.report.v2.ClubOptions.club_id)
731}
732
733// optional uint64 stream_id = 2;
734inline bool ClubOptions::has_stream_id() const {
735 return (_has_bits_[0] & 0x00000002u) != 0;
736}
738 _has_bits_[0] |= 0x00000002u;
739}
741 _has_bits_[0] &= ~0x00000002u;
742}
744 stream_id_ = GOOGLE_ULONGLONG(0);
746}
748 // @@protoc_insertion_point(field_get:bgs.protocol.report.v2.ClubOptions.stream_id)
749 return stream_id_;
750}
753 stream_id_ = value;
754 // @@protoc_insertion_point(field_set:bgs.protocol.report.v2.ClubOptions.stream_id)
755}
756
757// optional .bgs.protocol.report.v2.IssueType type = 3;
758inline bool ClubOptions::has_type() const {
759 return (_has_bits_[0] & 0x00000004u) != 0;
760}
762 _has_bits_[0] |= 0x00000004u;
763}
765 _has_bits_[0] &= ~0x00000004u;
766}
768 type_ = 0;
770}
772 // @@protoc_insertion_point(field_get:bgs.protocol.report.v2.ClubOptions.type)
773 return static_cast< ::bgs::protocol::report::v2::IssueType >(type_);
774}
777 set_has_type();
778 type_ = value;
779 // @@protoc_insertion_point(field_set:bgs.protocol.report.v2.ClubOptions.type)
780}
781
782// optional .bgs.protocol.report.v2.ClubSource source = 4;
783inline bool ClubOptions::has_source() const {
784 return (_has_bits_[0] & 0x00000008u) != 0;
785}
787 _has_bits_[0] |= 0x00000008u;
788}
790 _has_bits_[0] &= ~0x00000008u;
791}
793 source_ = 0;
795}
797 // @@protoc_insertion_point(field_get:bgs.protocol.report.v2.ClubOptions.source)
798 return static_cast< ::bgs::protocol::report::v2::ClubSource >(source_);
799}
803 source_ = value;
804 // @@protoc_insertion_point(field_set:bgs.protocol.report.v2.ClubOptions.source)
805}
806
807// optional .bgs.protocol.report.v2.ReportItem item = 5;
808inline bool ClubOptions::has_item() const {
809 return (_has_bits_[0] & 0x00000010u) != 0;
810}
812 _has_bits_[0] |= 0x00000010u;
813}
815 _has_bits_[0] &= ~0x00000010u;
816}
818 if (item_ != NULL) item_->::bgs::protocol::report::v2::ReportItem::Clear();
820}
821inline const ::bgs::protocol::report::v2::ReportItem& ClubOptions::item() const {
822 // @@protoc_insertion_point(field_get:bgs.protocol.report.v2.ClubOptions.item)
823 return item_ != NULL ? *item_ : *default_instance_->item_;
824}
825inline ::bgs::protocol::report::v2::ReportItem* ClubOptions::mutable_item() {
826 set_has_item();
827 if (item_ == NULL) item_ = new ::bgs::protocol::report::v2::ReportItem;
828 // @@protoc_insertion_point(field_mutable:bgs.protocol.report.v2.ClubOptions.item)
829 return item_;
830}
831inline ::bgs::protocol::report::v2::ReportItem* ClubOptions::release_item() {
834 item_ = NULL;
835 return temp;
836}
838 delete item_;
839 item_ = item;
840 if (item) {
841 set_has_item();
842 } else {
844 }
845 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.report.v2.ClubOptions.item)
846}
847
848// -------------------------------------------------------------------
849
850// EntityOptions
851
852// optional string entity_id = 1;
853inline bool EntityOptions::has_entity_id() const {
854 return (_has_bits_[0] & 0x00000001u) != 0;
855}
857 _has_bits_[0] |= 0x00000001u;
858}
860 _has_bits_[0] &= ~0x00000001u;
861}
863 if (entity_id_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
864 entity_id_->clear();
865 }
867}
868inline const ::std::string& EntityOptions::entity_id() const {
869 // @@protoc_insertion_point(field_get:bgs.protocol.report.v2.EntityOptions.entity_id)
870 return *entity_id_;
871}
872inline void EntityOptions::set_entity_id(const ::std::string& value) {
874 if (entity_id_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
875 entity_id_ = new ::std::string;
876 }
877 entity_id_->assign(value);
878 // @@protoc_insertion_point(field_set:bgs.protocol.report.v2.EntityOptions.entity_id)
879}
880inline void EntityOptions::set_entity_id(const char* value) {
882 if (entity_id_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
883 entity_id_ = new ::std::string;
884 }
885 entity_id_->assign(value);
886 // @@protoc_insertion_point(field_set_char:bgs.protocol.report.v2.EntityOptions.entity_id)
887}
888inline void EntityOptions::set_entity_id(const char* value, size_t size) {
890 if (entity_id_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
891 entity_id_ = new ::std::string;
892 }
893 entity_id_->assign(reinterpret_cast<const char*>(value), size);
894 // @@protoc_insertion_point(field_set_pointer:bgs.protocol.report.v2.EntityOptions.entity_id)
895}
896inline ::std::string* EntityOptions::mutable_entity_id() {
898 if (entity_id_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
899 entity_id_ = new ::std::string;
900 }
901 // @@protoc_insertion_point(field_mutable:bgs.protocol.report.v2.EntityOptions.entity_id)
902 return entity_id_;
903}
904inline ::std::string* EntityOptions::release_entity_id() {
906 if (entity_id_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
907 return NULL;
908 } else {
909 ::std::string* temp = entity_id_;
910 entity_id_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
911 return temp;
912 }
913}
914inline void EntityOptions::set_allocated_entity_id(::std::string* entity_id) {
915 if (entity_id_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
916 delete entity_id_;
917 }
918 if (entity_id) {
921 } else {
923 entity_id_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
924 }
925 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.report.v2.EntityOptions.entity_id)
926}
927
928// optional string entity_type = 2;
930 return (_has_bits_[0] & 0x00000002u) != 0;
931}
933 _has_bits_[0] |= 0x00000002u;
934}
936 _has_bits_[0] &= ~0x00000002u;
937}
939 if (entity_type_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
940 entity_type_->clear();
941 }
943}
944inline const ::std::string& EntityOptions::entity_type() const {
945 // @@protoc_insertion_point(field_get:bgs.protocol.report.v2.EntityOptions.entity_type)
946 return *entity_type_;
947}
948inline void EntityOptions::set_entity_type(const ::std::string& value) {
950 if (entity_type_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
951 entity_type_ = new ::std::string;
952 }
953 entity_type_->assign(value);
954 // @@protoc_insertion_point(field_set:bgs.protocol.report.v2.EntityOptions.entity_type)
955}
956inline void EntityOptions::set_entity_type(const char* value) {
958 if (entity_type_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
959 entity_type_ = new ::std::string;
960 }
961 entity_type_->assign(value);
962 // @@protoc_insertion_point(field_set_char:bgs.protocol.report.v2.EntityOptions.entity_type)
963}
964inline void EntityOptions::set_entity_type(const char* value, size_t size) {
966 if (entity_type_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
967 entity_type_ = new ::std::string;
968 }
969 entity_type_->assign(reinterpret_cast<const char*>(value), size);
970 // @@protoc_insertion_point(field_set_pointer:bgs.protocol.report.v2.EntityOptions.entity_type)
971}
972inline ::std::string* EntityOptions::mutable_entity_type() {
974 if (entity_type_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
975 entity_type_ = new ::std::string;
976 }
977 // @@protoc_insertion_point(field_mutable:bgs.protocol.report.v2.EntityOptions.entity_type)
978 return entity_type_;
979}
980inline ::std::string* EntityOptions::release_entity_type() {
982 if (entity_type_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
983 return NULL;
984 } else {
985 ::std::string* temp = entity_type_;
986 entity_type_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
987 return temp;
988 }
989}
990inline void EntityOptions::set_allocated_entity_type(::std::string* entity_type) {
991 if (entity_type_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
992 delete entity_type_;
993 }
994 if (entity_type) {
997 } else {
999 entity_type_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1000 }
1001 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.report.v2.EntityOptions.entity_type)
1002}
1003
1004// repeated .bgs.protocol.v2.Attribute attribute = 5;
1006 return attribute_.size();
1007}
1009 attribute_.Clear();
1010}
1011inline const ::bgs::protocol::v2::Attribute& EntityOptions::attribute(int index) const {
1012 // @@protoc_insertion_point(field_get:bgs.protocol.report.v2.EntityOptions.attribute)
1013 return attribute_.Get(index);
1014}
1015inline ::bgs::protocol::v2::Attribute* EntityOptions::mutable_attribute(int index) {
1016 // @@protoc_insertion_point(field_mutable:bgs.protocol.report.v2.EntityOptions.attribute)
1017 return attribute_.Mutable(index);
1018}
1019inline ::bgs::protocol::v2::Attribute* EntityOptions::add_attribute() {
1020 // @@protoc_insertion_point(field_add:bgs.protocol.report.v2.EntityOptions.attribute)
1021 return attribute_.Add();
1022}
1023inline const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::v2::Attribute >&
1025 // @@protoc_insertion_point(field_list:bgs.protocol.report.v2.EntityOptions.attribute)
1026 return attribute_;
1027}
1028inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::v2::Attribute >*
1030 // @@protoc_insertion_point(field_mutable_list:bgs.protocol.report.v2.EntityOptions.attribute)
1031 return &attribute_;
1032}
1033
1034// @@protoc_insertion_point(namespace_scope)
1035
1036} // namespace v2
1037} // namespace report
1038} // namespace protocol
1039} // namespace bgs
1040
1041#ifndef SWIG
1042namespace google {
1043namespace protobuf {
1044template <> struct is_proto_enum< ::bgs::protocol::report::v2::IssueType> : ::google::protobuf::internal::true_type {};
1045template <>
1046inline const EnumDescriptor* GetEnumDescriptor< ::bgs::protocol::report::v2::IssueType>() {
1048}
1049template <> struct is_proto_enum< ::bgs::protocol::report::v2::UserSource> : ::google::protobuf::internal::true_type {};
1050template <>
1051inline const EnumDescriptor* GetEnumDescriptor< ::bgs::protocol::report::v2::UserSource>() {
1053}
1054template <> struct is_proto_enum< ::bgs::protocol::report::v2::ClubSource> : ::google::protobuf::internal::true_type {};
1055template <>
1056inline const EnumDescriptor* GetEnumDescriptor< ::bgs::protocol::report::v2::ClubSource>() {
1058}
1059} // namespace google
1060} // namespace protobuf
1061#endif // SWIG
1062
1063// @@protoc_insertion_point(global_scope)
1064
1065#endif // PROTOBUF_api_2fclient_2fv2_2freport_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
static const MessageId & default_instance()
::google::protobuf::uint64 club_id_
const ::bgs::protocol::report::v2::ReportItem & item() const
void set_club_id(::google::protobuf::uint64 value)
static const ::google::protobuf::Descriptor * descriptor()
inline ::bgs::protocol::report::v2::IssueType type() const
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
inline ::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
::google::protobuf::Metadata GetMetadata() const
friend void protobuf_AssignDesc_api_2fclient_2fv2_2freport_5ftypes_2eproto()
::google::protobuf::uint32 _has_bits_[1]
inline ::google::protobuf::uint64 club_id() const
void set_allocated_item(::bgs::protocol::report::v2::ReportItem *item)
void set_type(::bgs::protocol::report::v2::IssueType value)
void set_source(::bgs::protocol::report::v2::ClubSource value)
inline ::google::protobuf::uint64 stream_id() const
::bgs::protocol::report::v2::ReportItem * item_
inline ::bgs::protocol::report::v2::ReportItem * mutable_item()
::google::protobuf::UnknownFieldSet _unknown_fields_
ClubOptions(const ClubOptions &from)
inline ::bgs::protocol::report::v2::ReportItem * release_item()
::google::protobuf::uint64 stream_id_
void set_stream_id(::google::protobuf::uint64 value)
ClubOptions & operator=(const ClubOptions &from)
static const ClubOptions & default_instance()
inline ::bgs::protocol::report::v2::ClubSource source() const
friend void protobuf_ShutdownFile_api_2fclient_2fv2_2freport_5ftypes_2eproto()
friend void TC_PROTO_API protobuf_AddDesc_api_2fclient_2fv2_2freport_5ftypes_2eproto()
inline ::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
void set_allocated_entity_type(::std::string *entity_type)
static const ::google::protobuf::Descriptor * descriptor()
EntityOptions & operator=(const EntityOptions &from)
::google::protobuf::uint32 _has_bits_[1]
const ::std::string & entity_type() const
friend void protobuf_AssignDesc_api_2fclient_2fv2_2freport_5ftypes_2eproto()
inline ::bgs::protocol::v2::Attribute * add_attribute()
void set_entity_type(const ::std::string &value)
static const EntityOptions & default_instance()
inline ::std::string * mutable_entity_id()
void set_allocated_entity_id(::std::string *entity_id)
::google::protobuf::UnknownFieldSet _unknown_fields_
::google::protobuf::RepeatedPtrField< ::bgs::protocol::v2::Attribute > attribute_
void Swap(EntityOptions *other)
inline ::std::string * release_entity_type()
const ::std::string & entity_id() const
::google::protobuf::Metadata GetMetadata() const
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::v2::Attribute > * mutable_attribute()
inline ::std::string * mutable_entity_type()
friend void protobuf_ShutdownFile_api_2fclient_2fv2_2freport_5ftypes_2eproto()
const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::v2::Attribute > & attribute() const
friend void TC_PROTO_API protobuf_AddDesc_api_2fclient_2fv2_2freport_5ftypes_2eproto()
inline ::std::string * release_entity_id()
EntityOptions(const EntityOptions &from)
void set_entity_id(const ::std::string &value)
inline ::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
static const ::google::protobuf::Descriptor * descriptor()
inline ::bgs::protocol::MessageId * release_message_id()
ReportItem & operator=(const ReportItem &from)
friend void protobuf_AssignDesc_api_2fclient_2fv2_2freport_5ftypes_2eproto()
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
::google::protobuf::Metadata GetMetadata() const
::google::protobuf::UnknownFieldSet _unknown_fields_
::google::protobuf::uint32 _oneof_case_[1]
static const ReportItem & default_instance()
inline ::bgs::protocol::MessageId * mutable_message_id()
void set_allocated_message_id(::bgs::protocol::MessageId *message_id)
const ::bgs::protocol::MessageId & message_id() const
union bgs::protocol::report::v2::ReportItem::TypeUnion type_
ReportItem(const ReportItem &from)
friend void protobuf_ShutdownFile_api_2fclient_2fv2_2freport_5ftypes_2eproto()
friend void TC_PROTO_API protobuf_AddDesc_api_2fclient_2fv2_2freport_5ftypes_2eproto()
friend void protobuf_AssignDesc_api_2fclient_2fv2_2freport_5ftypes_2eproto()
static const ::google::protobuf::Descriptor * descriptor()
::bgs::protocol::account::v1::AccountId * target_id_
const ::bgs::protocol::account::v1::AccountId & target_id() const
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
inline ::bgs::protocol::account::v1::AccountId * mutable_target_id()
::google::protobuf::Metadata GetMetadata() const
void set_source(::bgs::protocol::report::v2::UserSource value)
void set_type(::bgs::protocol::report::v2::IssueType value)
UserOptions & operator=(const UserOptions &from)
::bgs::protocol::report::v2::ReportItem * item_
inline ::bgs::protocol::report::v2::ReportItem * mutable_item()
static const UserOptions & default_instance()
inline ::bgs::protocol::report::v2::UserSource source() const
inline ::bgs::protocol::report::v2::ReportItem * release_item()
::google::protobuf::uint32 _has_bits_[1]
UserOptions(const UserOptions &from)
::google::protobuf::UnknownFieldSet _unknown_fields_
const ::bgs::protocol::report::v2::ReportItem & item() const
void set_allocated_target_id(::bgs::protocol::account::v1::AccountId *target_id)
inline ::bgs::protocol::report::v2::IssueType type() const
inline ::bgs::protocol::account::v1::AccountId * release_target_id()
friend void protobuf_ShutdownFile_api_2fclient_2fv2_2freport_5ftypes_2eproto()
friend void TC_PROTO_API protobuf_AddDesc_api_2fclient_2fv2_2freport_5ftypes_2eproto()
inline ::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
void set_allocated_item(::bgs::protocol::report::v2::ReportItem *item)
constexpr std::size_t size()
Definition: UpdateField.h:796
TC_PROTO_APIconst ::google::protobuf::EnumDescriptor * IssueType_descriptor()
const ::std::string & ClubSource_Name(ClubSource value)
const UserSource UserSource_MAX
bool ClubSource_Parse(const ::std::string &name, ClubSource *value)
const ::std::string & UserSource_Name(UserSource value)
TC_PROTO_APIconst ::google::protobuf::EnumDescriptor * ClubSource_descriptor()
const IssueType IssueType_MAX
const ::std::string & IssueType_Name(IssueType value)
TC_PROTO_API bool UserSource_IsValid(int value)
void protobuf_AssignDesc_api_2fclient_2fv2_2freport_5ftypes_2eproto()
void TC_PROTO_API protobuf_AddDesc_api_2fclient_2fv2_2freport_5ftypes_2eproto()
const ClubSource ClubSource_MIN
bool IssueType_Parse(const ::std::string &name, IssueType *value)
TC_PROTO_APIconst ::google::protobuf::EnumDescriptor * UserSource_descriptor()
void protobuf_ShutdownFile_api_2fclient_2fv2_2freport_5ftypes_2eproto()
const ClubSource ClubSource_MAX
bool UserSource_Parse(const ::std::string &name, UserSource *value)
TC_PROTO_API bool ClubSource_IsValid(int value)
const UserSource UserSource_MIN
TC_PROTO_API bool IssueType_IsValid(int value)
const IssueType IssueType_MIN
Definition: Session.h:36