TrinityCore
attribute_types.pb.h
Go to the documentation of this file.
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: attribute_types.proto
3
4#ifndef PROTOBUF_attribute_5ftypes_2eproto__INCLUDED
5#define PROTOBUF_attribute_5ftypes_2eproto__INCLUDED
6
7#include <string>
8
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 "entity_types.pb.h"
29#include "Define.h" // for TC_PROTO_API
30// @@protoc_insertion_point(includes)
31
32namespace bgs {
33namespace protocol {
34
35// Internal implementation detail -- do not call these.
39
40class Variant;
41class Attribute;
42class AttributeFilter;
43
49};
54
55TC_PROTO_API const ::google::protobuf::EnumDescriptor* AttributeFilter_Operation_descriptor();
57 return ::google::protobuf::internal::NameOfEnum(
59}
61 const ::std::string& name, AttributeFilter_Operation* value) {
62 return ::google::protobuf::internal::ParseNamedEnum<AttributeFilter_Operation>(
64}
65// ===================================================================
66
67class TC_PROTO_API Variant : public ::google::protobuf::Message {
68 public:
70 virtual ~Variant();
71
72 Variant(const Variant& from);
73
74 inline Variant& operator=(const Variant& from) {
75 CopyFrom(from);
76 return *this;
77 }
78
79 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
80 return _unknown_fields_;
81 }
82
83 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
84 return &_unknown_fields_;
85 }
86
87 static const ::google::protobuf::Descriptor* descriptor();
88 static const Variant& default_instance();
89
90 void Swap(Variant* other);
91
92 // implements Message ----------------------------------------------
93
94 Variant* New() const;
95 int GetCachedSize() const { return _cached_size_; }
96 private:
97 void SharedCtor();
98 void SharedDtor();
99 void SetCachedSize(int size) const;
100 public:
101 ::google::protobuf::Metadata GetMetadata() const;
102
103 // nested types ----------------------------------------------------
104
105 // accessors -------------------------------------------------------
106
107 // optional bool bool_value = 2;
108 inline bool has_bool_value() const;
109 inline void clear_bool_value();
110 static const int kBoolValueFieldNumber = 2;
111 inline bool bool_value() const;
112 inline void set_bool_value(bool value);
113
114 // optional int64 int_value = 3;
115 inline bool has_int_value() const;
116 inline void clear_int_value();
117 static const int kIntValueFieldNumber = 3;
118 inline ::google::protobuf::int64 int_value() const;
119 inline void set_int_value(::google::protobuf::int64 value);
120
121 // optional double float_value = 4;
122 inline bool has_float_value() const;
123 inline void clear_float_value();
124 static const int kFloatValueFieldNumber = 4;
125 inline double float_value() const;
126 inline void set_float_value(double value);
127
128 // optional string string_value = 5;
129 inline bool has_string_value() const;
130 inline void clear_string_value();
131 static const int kStringValueFieldNumber = 5;
132 inline const ::std::string& string_value() const;
133 inline void set_string_value(const ::std::string& value);
134 inline void set_string_value(const char* value);
135 inline void set_string_value(const char* value, size_t size);
136 inline ::std::string* mutable_string_value();
137 inline ::std::string* release_string_value();
138 inline void set_allocated_string_value(::std::string* string_value);
139
140 // optional bytes blob_value = 6;
141 inline bool has_blob_value() const;
142 inline void clear_blob_value();
143 static const int kBlobValueFieldNumber = 6;
144 inline const ::std::string& blob_value() const;
145 inline void set_blob_value(const ::std::string& value);
146 inline void set_blob_value(const char* value);
147 inline void set_blob_value(const void* value, size_t size);
148 inline ::std::string* mutable_blob_value();
149 inline ::std::string* release_blob_value();
150 inline void set_allocated_blob_value(::std::string* blob_value);
151
152 // optional bytes message_value = 7;
153 inline bool has_message_value() const;
154 inline void clear_message_value();
155 static const int kMessageValueFieldNumber = 7;
156 inline const ::std::string& message_value() const;
157 inline void set_message_value(const ::std::string& value);
158 inline void set_message_value(const char* value);
159 inline void set_message_value(const void* value, size_t size);
160 inline ::std::string* mutable_message_value();
161 inline ::std::string* release_message_value();
162 inline void set_allocated_message_value(::std::string* message_value);
163
164 // optional string fourcc_value = 8;
165 inline bool has_fourcc_value() const;
166 inline void clear_fourcc_value();
167 static const int kFourccValueFieldNumber = 8;
168 inline const ::std::string& fourcc_value() const;
169 inline void set_fourcc_value(const ::std::string& value);
170 inline void set_fourcc_value(const char* value);
171 inline void set_fourcc_value(const char* value, size_t size);
172 inline ::std::string* mutable_fourcc_value();
173 inline ::std::string* release_fourcc_value();
174 inline void set_allocated_fourcc_value(::std::string* fourcc_value);
175
176 // optional uint64 uint_value = 9;
177 inline bool has_uint_value() const;
178 inline void clear_uint_value();
179 static const int kUintValueFieldNumber = 9;
180 inline ::google::protobuf::uint64 uint_value() const;
181 inline void set_uint_value(::google::protobuf::uint64 value);
182
183 // optional .bgs.protocol.EntityId entity_id_value = 10;
184 inline bool has_entity_id_value() const;
185 inline void clear_entity_id_value();
186 static const int kEntityIdValueFieldNumber = 10;
187 inline const ::bgs::protocol::EntityId& entity_id_value() const;
188 inline ::bgs::protocol::EntityId* mutable_entity_id_value();
189 inline ::bgs::protocol::EntityId* release_entity_id_value();
190 inline void set_allocated_entity_id_value(::bgs::protocol::EntityId* entity_id_value);
191
192 // @@protoc_insertion_point(class_scope:bgs.protocol.Variant)
193 private:
194 inline void set_has_bool_value();
195 inline void clear_has_bool_value();
196 inline void set_has_int_value();
197 inline void clear_has_int_value();
198 inline void set_has_float_value();
199 inline void clear_has_float_value();
200 inline void set_has_string_value();
201 inline void clear_has_string_value();
202 inline void set_has_blob_value();
203 inline void clear_has_blob_value();
204 inline void set_has_message_value();
205 inline void clear_has_message_value();
206 inline void set_has_fourcc_value();
207 inline void clear_has_fourcc_value();
208 inline void set_has_uint_value();
209 inline void clear_has_uint_value();
210 inline void set_has_entity_id_value();
211 inline void clear_has_entity_id_value();
212
213 ::google::protobuf::UnknownFieldSet _unknown_fields_;
214
216 mutable int _cached_size_;
219 ::std::string* string_value_;
220 ::std::string* blob_value_;
221 ::std::string* message_value_;
222 ::std::string* fourcc_value_;
229
232};
233// -------------------------------------------------------------------
234
235class TC_PROTO_API Attribute : public ::google::protobuf::Message {
236 public:
238 virtual ~Attribute();
239
240 Attribute(const Attribute& from);
241
242 inline Attribute& operator=(const Attribute& from) {
243 CopyFrom(from);
244 return *this;
245 }
246
247 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
248 return _unknown_fields_;
249 }
250
251 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
252 return &_unknown_fields_;
253 }
254
255 static const ::google::protobuf::Descriptor* descriptor();
257
258 void Swap(Attribute* other);
259
260 // implements Message ----------------------------------------------
261
262 Attribute* New() const;
263 int GetCachedSize() const { return _cached_size_; }
264 private:
267 void SetCachedSize(int size) const;
268 public:
269 ::google::protobuf::Metadata GetMetadata() const;
270
271 // nested types ----------------------------------------------------
272
273 // accessors -------------------------------------------------------
274
275 // required string name = 1;
276 inline bool has_name() const;
277 inline void clear_name();
278 static const int kNameFieldNumber = 1;
279 inline const ::std::string& name() const;
280 inline void set_name(const ::std::string& value);
281 inline void set_name(const char* value);
282 inline void set_name(const char* value, size_t size);
283 inline ::std::string* mutable_name();
284 inline ::std::string* release_name();
285 inline void set_allocated_name(::std::string* name);
286
287 // required .bgs.protocol.Variant value = 2;
288 inline bool has_value() const;
289 inline void clear_value();
290 static const int kValueFieldNumber = 2;
291 inline const ::bgs::protocol::Variant& value() const;
292 inline ::bgs::protocol::Variant* mutable_value();
293 inline ::bgs::protocol::Variant* release_value();
294 inline void set_allocated_value(::bgs::protocol::Variant* value);
295
296 // @@protoc_insertion_point(class_scope:bgs.protocol.Attribute)
297 private:
298 inline void set_has_name();
299 inline void clear_has_name();
300 inline void set_has_value();
301 inline void clear_has_value();
302
303 ::google::protobuf::UnknownFieldSet _unknown_fields_;
304
306 mutable int _cached_size_;
307 ::std::string* name_;
312
315};
316// -------------------------------------------------------------------
317
318class TC_PROTO_API AttributeFilter : public ::google::protobuf::Message {
319 public:
322
324
326 CopyFrom(from);
327 return *this;
328 }
329
330 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
331 return _unknown_fields_;
332 }
333
334 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
335 return &_unknown_fields_;
336 }
337
338 static const ::google::protobuf::Descriptor* descriptor();
340
341 void Swap(AttributeFilter* other);
342
343 // implements Message ----------------------------------------------
344
346 int GetCachedSize() const { return _cached_size_; }
347 private:
350 void SetCachedSize(int size) const;
351 public:
352 ::google::protobuf::Metadata GetMetadata() const;
353
354 // nested types ----------------------------------------------------
355
360 static const Operation MATCH_ALL_MOST_SPECIFIC = AttributeFilter_Operation_MATCH_ALL_MOST_SPECIFIC;
361 static inline bool Operation_IsValid(int value) {
363 }
364 static const Operation Operation_MIN =
366 static const Operation Operation_MAX =
368 static const int Operation_ARRAYSIZE =
370 static inline const ::google::protobuf::EnumDescriptor*
373 }
374 static inline const ::std::string& Operation_Name(Operation value) {
375 return AttributeFilter_Operation_Name(value);
376 }
377 static inline bool Operation_Parse(const ::std::string& name,
378 Operation* value) {
379 return AttributeFilter_Operation_Parse(name, value);
380 }
381
382 // accessors -------------------------------------------------------
383
384 // required .bgs.protocol.AttributeFilter.Operation op = 1;
385 inline bool has_op() const;
386 inline void clear_op();
387 static const int kOpFieldNumber = 1;
389 inline void set_op(::bgs::protocol::AttributeFilter_Operation value);
390
391 // repeated .bgs.protocol.Attribute attribute = 2;
392 inline int attribute_size() const;
393 inline void clear_attribute();
394 static const int kAttributeFieldNumber = 2;
395 inline const ::bgs::protocol::Attribute& attribute(int index) const;
396 inline ::bgs::protocol::Attribute* mutable_attribute(int index);
397 inline ::bgs::protocol::Attribute* add_attribute();
398 inline const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Attribute >&
399 attribute() const;
400 inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Attribute >*
401 mutable_attribute();
402
403 // @@protoc_insertion_point(class_scope:bgs.protocol.AttributeFilter)
404 private:
405 inline void set_has_op();
406 inline void clear_has_op();
407
408 ::google::protobuf::UnknownFieldSet _unknown_fields_;
409
411 mutable int _cached_size_;
412 ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Attribute > attribute_;
413 int op_;
417
420};
421// ===================================================================
422
423// ===================================================================
424
425// ===================================================================
426
427// Variant
428
429// optional bool bool_value = 2;
430inline bool Variant::has_bool_value() const {
431 return (_has_bits_[0] & 0x00000001u) != 0;
432}
434 _has_bits_[0] |= 0x00000001u;
435}
437 _has_bits_[0] &= ~0x00000001u;
438}
440 bool_value_ = false;
442}
443inline bool Variant::bool_value() const {
444 // @@protoc_insertion_point(field_get:bgs.protocol.Variant.bool_value)
445 return bool_value_;
446}
447inline void Variant::set_bool_value(bool value) {
449 bool_value_ = value;
450 // @@protoc_insertion_point(field_set:bgs.protocol.Variant.bool_value)
451}
452
453// optional int64 int_value = 3;
454inline bool Variant::has_int_value() const {
455 return (_has_bits_[0] & 0x00000002u) != 0;
456}
458 _has_bits_[0] |= 0x00000002u;
459}
461 _has_bits_[0] &= ~0x00000002u;
462}
464 int_value_ = GOOGLE_LONGLONG(0);
466}
468 // @@protoc_insertion_point(field_get:bgs.protocol.Variant.int_value)
469 return int_value_;
470}
473 int_value_ = value;
474 // @@protoc_insertion_point(field_set:bgs.protocol.Variant.int_value)
475}
476
477// optional double float_value = 4;
478inline bool Variant::has_float_value() const {
479 return (_has_bits_[0] & 0x00000004u) != 0;
480}
482 _has_bits_[0] |= 0x00000004u;
483}
485 _has_bits_[0] &= ~0x00000004u;
486}
488 float_value_ = 0;
490}
491inline double Variant::float_value() const {
492 // @@protoc_insertion_point(field_get:bgs.protocol.Variant.float_value)
493 return float_value_;
494}
495inline void Variant::set_float_value(double value) {
497 float_value_ = value;
498 // @@protoc_insertion_point(field_set:bgs.protocol.Variant.float_value)
499}
500
501// optional string string_value = 5;
502inline bool Variant::has_string_value() const {
503 return (_has_bits_[0] & 0x00000008u) != 0;
504}
506 _has_bits_[0] |= 0x00000008u;
507}
509 _has_bits_[0] &= ~0x00000008u;
510}
512 if (string_value_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
513 string_value_->clear();
514 }
516}
517inline const ::std::string& Variant::string_value() const {
518 // @@protoc_insertion_point(field_get:bgs.protocol.Variant.string_value)
519 return *string_value_;
520}
521inline void Variant::set_string_value(const ::std::string& value) {
523 if (string_value_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
524 string_value_ = new ::std::string;
525 }
526 string_value_->assign(value);
527 // @@protoc_insertion_point(field_set:bgs.protocol.Variant.string_value)
528}
529inline void Variant::set_string_value(const char* value) {
531 if (string_value_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
532 string_value_ = new ::std::string;
533 }
534 string_value_->assign(value);
535 // @@protoc_insertion_point(field_set_char:bgs.protocol.Variant.string_value)
536}
537inline void Variant::set_string_value(const char* value, size_t size) {
539 if (string_value_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
540 string_value_ = new ::std::string;
541 }
542 string_value_->assign(reinterpret_cast<const char*>(value), size);
543 // @@protoc_insertion_point(field_set_pointer:bgs.protocol.Variant.string_value)
544}
545inline ::std::string* Variant::mutable_string_value() {
547 if (string_value_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
548 string_value_ = new ::std::string;
549 }
550 // @@protoc_insertion_point(field_mutable:bgs.protocol.Variant.string_value)
551 return string_value_;
552}
553inline ::std::string* Variant::release_string_value() {
555 if (string_value_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
556 return NULL;
557 } else {
558 ::std::string* temp = string_value_;
559 string_value_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
560 return temp;
561 }
562}
563inline void Variant::set_allocated_string_value(::std::string* string_value) {
564 if (string_value_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
565 delete string_value_;
566 }
567 if (string_value) {
570 } else {
572 string_value_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
573 }
574 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.Variant.string_value)
575}
576
577// optional bytes blob_value = 6;
578inline bool Variant::has_blob_value() const {
579 return (_has_bits_[0] & 0x00000010u) != 0;
580}
582 _has_bits_[0] |= 0x00000010u;
583}
585 _has_bits_[0] &= ~0x00000010u;
586}
588 if (blob_value_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
589 blob_value_->clear();
590 }
592}
593inline const ::std::string& Variant::blob_value() const {
594 // @@protoc_insertion_point(field_get:bgs.protocol.Variant.blob_value)
595 return *blob_value_;
596}
597inline void Variant::set_blob_value(const ::std::string& value) {
599 if (blob_value_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
600 blob_value_ = new ::std::string;
601 }
602 blob_value_->assign(value);
603 // @@protoc_insertion_point(field_set:bgs.protocol.Variant.blob_value)
604}
605inline void Variant::set_blob_value(const char* value) {
607 if (blob_value_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
608 blob_value_ = new ::std::string;
609 }
610 blob_value_->assign(value);
611 // @@protoc_insertion_point(field_set_char:bgs.protocol.Variant.blob_value)
612}
613inline void Variant::set_blob_value(const void* value, size_t size) {
615 if (blob_value_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
616 blob_value_ = new ::std::string;
617 }
618 blob_value_->assign(reinterpret_cast<const char*>(value), size);
619 // @@protoc_insertion_point(field_set_pointer:bgs.protocol.Variant.blob_value)
620}
621inline ::std::string* Variant::mutable_blob_value() {
623 if (blob_value_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
624 blob_value_ = new ::std::string;
625 }
626 // @@protoc_insertion_point(field_mutable:bgs.protocol.Variant.blob_value)
627 return blob_value_;
628}
629inline ::std::string* Variant::release_blob_value() {
631 if (blob_value_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
632 return NULL;
633 } else {
634 ::std::string* temp = blob_value_;
635 blob_value_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
636 return temp;
637 }
638}
639inline void Variant::set_allocated_blob_value(::std::string* blob_value) {
640 if (blob_value_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
641 delete blob_value_;
642 }
643 if (blob_value) {
646 } else {
648 blob_value_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
649 }
650 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.Variant.blob_value)
651}
652
653// optional bytes message_value = 7;
654inline bool Variant::has_message_value() const {
655 return (_has_bits_[0] & 0x00000020u) != 0;
656}
658 _has_bits_[0] |= 0x00000020u;
659}
661 _has_bits_[0] &= ~0x00000020u;
662}
664 if (message_value_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
665 message_value_->clear();
666 }
668}
669inline const ::std::string& Variant::message_value() const {
670 // @@protoc_insertion_point(field_get:bgs.protocol.Variant.message_value)
671 return *message_value_;
672}
673inline void Variant::set_message_value(const ::std::string& value) {
675 if (message_value_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
676 message_value_ = new ::std::string;
677 }
678 message_value_->assign(value);
679 // @@protoc_insertion_point(field_set:bgs.protocol.Variant.message_value)
680}
681inline void Variant::set_message_value(const char* value) {
683 if (message_value_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
684 message_value_ = new ::std::string;
685 }
686 message_value_->assign(value);
687 // @@protoc_insertion_point(field_set_char:bgs.protocol.Variant.message_value)
688}
689inline void Variant::set_message_value(const void* value, size_t size) {
691 if (message_value_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
692 message_value_ = new ::std::string;
693 }
694 message_value_->assign(reinterpret_cast<const char*>(value), size);
695 // @@protoc_insertion_point(field_set_pointer:bgs.protocol.Variant.message_value)
696}
697inline ::std::string* Variant::mutable_message_value() {
699 if (message_value_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
700 message_value_ = new ::std::string;
701 }
702 // @@protoc_insertion_point(field_mutable:bgs.protocol.Variant.message_value)
703 return message_value_;
704}
705inline ::std::string* Variant::release_message_value() {
707 if (message_value_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
708 return NULL;
709 } else {
710 ::std::string* temp = message_value_;
711 message_value_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
712 return temp;
713 }
714}
715inline void Variant::set_allocated_message_value(::std::string* message_value) {
716 if (message_value_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
717 delete message_value_;
718 }
719 if (message_value) {
722 } else {
724 message_value_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
725 }
726 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.Variant.message_value)
727}
728
729// optional string fourcc_value = 8;
730inline bool Variant::has_fourcc_value() const {
731 return (_has_bits_[0] & 0x00000040u) != 0;
732}
734 _has_bits_[0] |= 0x00000040u;
735}
737 _has_bits_[0] &= ~0x00000040u;
738}
740 if (fourcc_value_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
741 fourcc_value_->clear();
742 }
744}
745inline const ::std::string& Variant::fourcc_value() const {
746 // @@protoc_insertion_point(field_get:bgs.protocol.Variant.fourcc_value)
747 return *fourcc_value_;
748}
749inline void Variant::set_fourcc_value(const ::std::string& value) {
751 if (fourcc_value_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
752 fourcc_value_ = new ::std::string;
753 }
754 fourcc_value_->assign(value);
755 // @@protoc_insertion_point(field_set:bgs.protocol.Variant.fourcc_value)
756}
757inline void Variant::set_fourcc_value(const char* value) {
759 if (fourcc_value_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
760 fourcc_value_ = new ::std::string;
761 }
762 fourcc_value_->assign(value);
763 // @@protoc_insertion_point(field_set_char:bgs.protocol.Variant.fourcc_value)
764}
765inline void Variant::set_fourcc_value(const char* value, size_t size) {
767 if (fourcc_value_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
768 fourcc_value_ = new ::std::string;
769 }
770 fourcc_value_->assign(reinterpret_cast<const char*>(value), size);
771 // @@protoc_insertion_point(field_set_pointer:bgs.protocol.Variant.fourcc_value)
772}
773inline ::std::string* Variant::mutable_fourcc_value() {
775 if (fourcc_value_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
776 fourcc_value_ = new ::std::string;
777 }
778 // @@protoc_insertion_point(field_mutable:bgs.protocol.Variant.fourcc_value)
779 return fourcc_value_;
780}
781inline ::std::string* Variant::release_fourcc_value() {
783 if (fourcc_value_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
784 return NULL;
785 } else {
786 ::std::string* temp = fourcc_value_;
787 fourcc_value_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
788 return temp;
789 }
790}
791inline void Variant::set_allocated_fourcc_value(::std::string* fourcc_value) {
792 if (fourcc_value_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
793 delete fourcc_value_;
794 }
795 if (fourcc_value) {
798 } else {
800 fourcc_value_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
801 }
802 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.Variant.fourcc_value)
803}
804
805// optional uint64 uint_value = 9;
806inline bool Variant::has_uint_value() const {
807 return (_has_bits_[0] & 0x00000080u) != 0;
808}
810 _has_bits_[0] |= 0x00000080u;
811}
813 _has_bits_[0] &= ~0x00000080u;
814}
816 uint_value_ = GOOGLE_ULONGLONG(0);
818}
820 // @@protoc_insertion_point(field_get:bgs.protocol.Variant.uint_value)
821 return uint_value_;
822}
825 uint_value_ = value;
826 // @@protoc_insertion_point(field_set:bgs.protocol.Variant.uint_value)
827}
828
829// optional .bgs.protocol.EntityId entity_id_value = 10;
830inline bool Variant::has_entity_id_value() const {
831 return (_has_bits_[0] & 0x00000100u) != 0;
832}
834 _has_bits_[0] |= 0x00000100u;
835}
837 _has_bits_[0] &= ~0x00000100u;
838}
840 if (entity_id_value_ != NULL) entity_id_value_->::bgs::protocol::EntityId::Clear();
842}
843inline const ::bgs::protocol::EntityId& Variant::entity_id_value() const {
844 // @@protoc_insertion_point(field_get:bgs.protocol.Variant.entity_id_value)
846}
847inline ::bgs::protocol::EntityId* Variant::mutable_entity_id_value() {
849 if (entity_id_value_ == NULL) entity_id_value_ = new ::bgs::protocol::EntityId;
850 // @@protoc_insertion_point(field_mutable:bgs.protocol.Variant.entity_id_value)
851 return entity_id_value_;
852}
853inline ::bgs::protocol::EntityId* Variant::release_entity_id_value() {
856 entity_id_value_ = NULL;
857 return temp;
858}
860 delete entity_id_value_;
862 if (entity_id_value) {
864 } else {
866 }
867 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.Variant.entity_id_value)
868}
869
870// -------------------------------------------------------------------
871
872// Attribute
873
874// required string name = 1;
875inline bool Attribute::has_name() const {
876 return (_has_bits_[0] & 0x00000001u) != 0;
877}
879 _has_bits_[0] |= 0x00000001u;
880}
882 _has_bits_[0] &= ~0x00000001u;
883}
885 if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
886 name_->clear();
887 }
889}
890inline const ::std::string& Attribute::name() const {
891 // @@protoc_insertion_point(field_get:bgs.protocol.Attribute.name)
892 return *name_;
893}
894inline void Attribute::set_name(const ::std::string& value) {
895 set_has_name();
896 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
897 name_ = new ::std::string;
898 }
899 name_->assign(value);
900 // @@protoc_insertion_point(field_set:bgs.protocol.Attribute.name)
901}
902inline void Attribute::set_name(const char* value) {
903 set_has_name();
904 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
905 name_ = new ::std::string;
906 }
907 name_->assign(value);
908 // @@protoc_insertion_point(field_set_char:bgs.protocol.Attribute.name)
909}
910inline void Attribute::set_name(const char* value, size_t size) {
911 set_has_name();
912 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
913 name_ = new ::std::string;
914 }
915 name_->assign(reinterpret_cast<const char*>(value), size);
916 // @@protoc_insertion_point(field_set_pointer:bgs.protocol.Attribute.name)
917}
918inline ::std::string* Attribute::mutable_name() {
919 set_has_name();
920 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
921 name_ = new ::std::string;
922 }
923 // @@protoc_insertion_point(field_mutable:bgs.protocol.Attribute.name)
924 return name_;
925}
926inline ::std::string* Attribute::release_name() {
928 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
929 return NULL;
930 } else {
931 ::std::string* temp = name_;
932 name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
933 return temp;
934 }
935}
936inline void Attribute::set_allocated_name(::std::string* name) {
937 if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
938 delete name_;
939 }
940 if (name) {
941 set_has_name();
942 name_ = name;
943 } else {
945 name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
946 }
947 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.Attribute.name)
948}
949
950// required .bgs.protocol.Variant value = 2;
951inline bool Attribute::has_value() const {
952 return (_has_bits_[0] & 0x00000002u) != 0;
953}
955 _has_bits_[0] |= 0x00000002u;
956}
958 _has_bits_[0] &= ~0x00000002u;
959}
961 if (value_ != NULL) value_->::bgs::protocol::Variant::Clear();
963}
964inline const ::bgs::protocol::Variant& Attribute::value() const {
965 // @@protoc_insertion_point(field_get:bgs.protocol.Attribute.value)
966 return value_ != NULL ? *value_ : *default_instance_->value_;
967}
968inline ::bgs::protocol::Variant* Attribute::mutable_value() {
970 if (value_ == NULL) value_ = new ::bgs::protocol::Variant;
971 // @@protoc_insertion_point(field_mutable:bgs.protocol.Attribute.value)
972 return value_;
973}
974inline ::bgs::protocol::Variant* Attribute::release_value() {
977 value_ = NULL;
978 return temp;
979}
981 delete value_;
982 value_ = value;
983 if (value) {
985 } else {
987 }
988 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.Attribute.value)
989}
990
991// -------------------------------------------------------------------
992
993// AttributeFilter
994
995// required .bgs.protocol.AttributeFilter.Operation op = 1;
996inline bool AttributeFilter::has_op() const {
997 return (_has_bits_[0] & 0x00000001u) != 0;
998}
1000 _has_bits_[0] |= 0x00000001u;
1001}
1003 _has_bits_[0] &= ~0x00000001u;
1004}
1006 op_ = 0;
1007 clear_has_op();
1008}
1010 // @@protoc_insertion_point(field_get:bgs.protocol.AttributeFilter.op)
1011 return static_cast< ::bgs::protocol::AttributeFilter_Operation >(op_);
1012}
1015 set_has_op();
1016 op_ = value;
1017 // @@protoc_insertion_point(field_set:bgs.protocol.AttributeFilter.op)
1018}
1019
1020// repeated .bgs.protocol.Attribute attribute = 2;
1022 return attribute_.size();
1023}
1025 attribute_.Clear();
1026}
1027inline const ::bgs::protocol::Attribute& AttributeFilter::attribute(int index) const {
1028 // @@protoc_insertion_point(field_get:bgs.protocol.AttributeFilter.attribute)
1029 return attribute_.Get(index);
1030}
1031inline ::bgs::protocol::Attribute* AttributeFilter::mutable_attribute(int index) {
1032 // @@protoc_insertion_point(field_mutable:bgs.protocol.AttributeFilter.attribute)
1033 return attribute_.Mutable(index);
1034}
1035inline ::bgs::protocol::Attribute* AttributeFilter::add_attribute() {
1036 // @@protoc_insertion_point(field_add:bgs.protocol.AttributeFilter.attribute)
1037 return attribute_.Add();
1038}
1039inline const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Attribute >&
1041 // @@protoc_insertion_point(field_list:bgs.protocol.AttributeFilter.attribute)
1042 return attribute_;
1043}
1044inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Attribute >*
1046 // @@protoc_insertion_point(field_mutable_list:bgs.protocol.AttributeFilter.attribute)
1047 return &attribute_;
1048}
1049
1050// @@protoc_insertion_point(namespace_scope)
1051
1052} // namespace protocol
1053} // namespace bgs
1054
1055#ifndef SWIG
1056namespace google {
1057namespace protobuf {
1058template <> struct is_proto_enum< ::bgs::protocol::AttributeFilter_Operation> : ::google::protobuf::internal::true_type {};
1059template <>
1060inline const EnumDescriptor* GetEnumDescriptor< ::bgs::protocol::AttributeFilter_Operation>() {
1062}
1063} // namespace google
1064} // namespace protobuf
1065#endif // SWIG
1066
1067// @@protoc_insertion_point(global_scope)
1068
1069#endif // PROTOBUF_attribute_5ftypes_2eproto__INCLUDED
int64_t int64
Definition: Define.h:137
#define TC_PROTO_API
Definition: Define.h:105
uint64_t uint64
Definition: Define.h:141
uint32_t uint32
Definition: Define.h:142
static const ::google::protobuf::EnumDescriptor * Operation_descriptor()
AttributeFilter * New() const
static const AttributeFilter & default_instance()
inline ::bgs::protocol::Attribute * add_attribute()
void set_op(::bgs::protocol::AttributeFilter_Operation value)
static const ::std::string & Operation_Name(Operation value)
AttributeFilter(const AttributeFilter &from)
AttributeFilter_Operation Operation
inline ::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
friend void TC_PROTO_API protobuf_AddDesc_attribute_5ftypes_2eproto()
static AttributeFilter * default_instance_
void Swap(AttributeFilter *other)
AttributeFilter & operator=(const AttributeFilter &from)
friend void protobuf_ShutdownFile_attribute_5ftypes_2eproto()
inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Attribute > * mutable_attribute()
const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Attribute > & attribute() const
static bool Operation_Parse(const ::std::string &name, Operation *value)
static bool Operation_IsValid(int value)
::google::protobuf::RepeatedPtrField< ::bgs::protocol::Attribute > attribute_
::google::protobuf::uint32 _has_bits_[1]
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
void SetCachedSize(int size) const
static const ::google::protobuf::Descriptor * descriptor()
::google::protobuf::UnknownFieldSet _unknown_fields_
friend void protobuf_AssignDesc_attribute_5ftypes_2eproto()
::google::protobuf::Metadata GetMetadata() const
inline ::bgs::protocol::AttributeFilter_Operation op() const
::google::protobuf::Metadata GetMetadata() const
inline ::std::string * release_name()
inline ::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
Attribute(const Attribute &from)
const ::bgs::protocol::Variant & value() const
void set_allocated_name(::std::string *name)
::google::protobuf::UnknownFieldSet _unknown_fields_
::bgs::protocol::Variant * value_
const ::std::string & name() const
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
friend void TC_PROTO_API protobuf_AddDesc_attribute_5ftypes_2eproto()
static const Attribute & default_instance()
void set_allocated_value(::bgs::protocol::Variant *value)
friend void protobuf_ShutdownFile_attribute_5ftypes_2eproto()
inline ::std::string * mutable_name()
inline ::bgs::protocol::Variant * mutable_value()
void SetCachedSize(int size) const
::google::protobuf::uint32 _has_bits_[1]
Attribute & operator=(const Attribute &from)
Attribute * New() const
void Swap(Attribute *other)
inline ::bgs::protocol::Variant * release_value()
static Attribute * default_instance_
void set_name(const ::std::string &value)
friend void protobuf_AssignDesc_attribute_5ftypes_2eproto()
static const ::google::protobuf::Descriptor * descriptor()
void set_allocated_string_value(::std::string *string_value)
inline ::google::protobuf::uint64 uint_value() const
void set_int_value(::google::protobuf::int64 value)
void set_float_value(double value)
inline ::std::string * mutable_message_value()
void set_uint_value(::google::protobuf::uint64 value)
void set_bool_value(bool value)
const ::bgs::protocol::EntityId & entity_id_value() const
::google::protobuf::uint64 uint_value_
::bgs::protocol::EntityId * entity_id_value_
inline ::std::string * mutable_string_value()
void set_blob_value(const ::std::string &value)
inline ::std::string * release_message_value()
inline ::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
inline ::std::string * release_fourcc_value()
static const ::google::protobuf::Descriptor * descriptor()
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
void set_fourcc_value(const ::std::string &value)
const ::std::string & fourcc_value() const
void set_message_value(const ::std::string &value)
void set_allocated_fourcc_value(::std::string *fourcc_value)
void set_allocated_message_value(::std::string *message_value)
Variant * New() const
inline ::std::string * mutable_fourcc_value()
void set_allocated_blob_value(::std::string *blob_value)
friend void TC_PROTO_API protobuf_AddDesc_attribute_5ftypes_2eproto()
::google::protobuf::UnknownFieldSet _unknown_fields_
::google::protobuf::uint32 _has_bits_[1]
::std::string * fourcc_value_
static const Variant & default_instance()
inline ::bgs::protocol::EntityId * mutable_entity_id_value()
::std::string * message_value_
::google::protobuf::Metadata GetMetadata() const
friend void protobuf_ShutdownFile_attribute_5ftypes_2eproto()
inline ::std::string * release_blob_value()
void Swap(Variant *other)
void set_allocated_entity_id_value(::bgs::protocol::EntityId *entity_id_value)
inline ::std::string * release_string_value()
inline ::bgs::protocol::EntityId * release_entity_id_value()
void set_string_value(const ::std::string &value)
void SetCachedSize(int size) const
Variant(const Variant &from)
::google::protobuf::int64 int_value_
const ::std::string & blob_value() const
inline ::google::protobuf::int64 int_value() const
const ::std::string & string_value() const
::std::string * string_value_
static Variant * default_instance_
friend void protobuf_AssignDesc_attribute_5ftypes_2eproto()
inline ::std::string * mutable_blob_value()
const ::std::string & message_value() const
Variant & operator=(const Variant &from)
constexpr std::size_t size()
Definition: UpdateField.h:796
void protobuf_AssignDesc_attribute_5ftypes_2eproto()
@ AttributeFilter_Operation_MATCH_ALL_MOST_SPECIFIC
@ AttributeFilter_Operation_MATCH_ANY
@ AttributeFilter_Operation_MATCH_NONE
@ AttributeFilter_Operation_MATCH_ALL
void protobuf_ShutdownFile_attribute_5ftypes_2eproto()
void TC_PROTO_API protobuf_AddDesc_attribute_5ftypes_2eproto()
const AttributeFilter_Operation AttributeFilter_Operation_Operation_MAX
const int AttributeFilter_Operation_Operation_ARRAYSIZE
TC_PROTO_APIconst ::google::protobuf::EnumDescriptor * AttributeFilter_Operation_descriptor()
bool AttributeFilter_Operation_Parse(const ::std::string &name, AttributeFilter_Operation *value)
const ::std::string & AttributeFilter_Operation_Name(AttributeFilter_Operation value)
const AttributeFilter_Operation AttributeFilter_Operation_Operation_MIN
TC_PROTO_API bool AttributeFilter_Operation_IsValid(int value)
Definition: Session.h:36