TrinityCore
message_types.pb.h
Go to the documentation of this file.
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: message_types.proto
3
4#ifndef PROTOBUF_message_5ftypes_2eproto__INCLUDED
5#define PROTOBUF_message_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 "Define.h" // for TC_PROTO_API
29// @@protoc_insertion_point(includes)
30
31namespace bgs {
32namespace protocol {
33
34// Internal implementation detail -- do not call these.
38
39class MessageId;
40
43 TYPING_STOP = 1
44};
49
50TC_PROTO_API const ::google::protobuf::EnumDescriptor* TypingIndicator_descriptor();
51inline const ::std::string& TypingIndicator_Name(TypingIndicator value) {
52 return ::google::protobuf::internal::NameOfEnum(
54}
56 const ::std::string& name, TypingIndicator* value) {
57 return ::google::protobuf::internal::ParseNamedEnum<TypingIndicator>(
58 TypingIndicator_descriptor(), name, value);
59}
60// ===================================================================
61
62class TC_PROTO_API MessageId : public ::google::protobuf::Message {
63 public:
65 virtual ~MessageId();
66
67 MessageId(const MessageId& from);
68
69 inline MessageId& operator=(const MessageId& from) {
70 CopyFrom(from);
71 return *this;
72 }
73
74 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
75 return _unknown_fields_;
76 }
77
78 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
79 return &_unknown_fields_;
80 }
81
82 static const ::google::protobuf::Descriptor* descriptor();
83 static const MessageId& default_instance();
84
85 void Swap(MessageId* other);
86
87 // implements Message ----------------------------------------------
88
89 MessageId* New() const;
90 int GetCachedSize() const { return _cached_size_; }
91 private:
92 void SharedCtor();
93 void SharedDtor();
94 void SetCachedSize(int size) const;
95 public:
96 ::google::protobuf::Metadata GetMetadata() const;
97
98 // nested types ----------------------------------------------------
99
100 // accessors -------------------------------------------------------
101
102 // optional uint64 epoch = 1;
103 inline bool has_epoch() const;
104 inline void clear_epoch();
105 static const int kEpochFieldNumber = 1;
107 inline void set_epoch(::google::protobuf::uint64 value);
108
109 // optional uint64 position = 2;
110 inline bool has_position() const;
111 inline void clear_position();
112 static const int kPositionFieldNumber = 2;
113 inline ::google::protobuf::uint64 position() const;
114 inline void set_position(::google::protobuf::uint64 value);
115
116 // @@protoc_insertion_point(class_scope:bgs.protocol.MessageId)
117 private:
118 inline void set_has_epoch();
119 inline void clear_has_epoch();
120 inline void set_has_position();
121 inline void clear_has_position();
122
123 ::google::protobuf::UnknownFieldSet _unknown_fields_;
124
126 mutable int _cached_size_;
132
135};
136// ===================================================================
137
138// ===================================================================
139
140// ===================================================================
141
142// MessageId
143
144// optional uint64 epoch = 1;
145inline bool MessageId::has_epoch() const {
146 return (_has_bits_[0] & 0x00000001u) != 0;
147}
149 _has_bits_[0] |= 0x00000001u;
150}
152 _has_bits_[0] &= ~0x00000001u;
153}
155 epoch_ = GOOGLE_ULONGLONG(0);
157}
159 // @@protoc_insertion_point(field_get:bgs.protocol.MessageId.epoch)
160 return epoch_;
161}
164 epoch_ = value;
165 // @@protoc_insertion_point(field_set:bgs.protocol.MessageId.epoch)
166}
167
168// optional uint64 position = 2;
169inline bool MessageId::has_position() const {
170 return (_has_bits_[0] & 0x00000002u) != 0;
171}
173 _has_bits_[0] |= 0x00000002u;
174}
176 _has_bits_[0] &= ~0x00000002u;
177}
179 position_ = GOOGLE_ULONGLONG(0);
181}
183 // @@protoc_insertion_point(field_get:bgs.protocol.MessageId.position)
184 return position_;
185}
188 position_ = value;
189 // @@protoc_insertion_point(field_set:bgs.protocol.MessageId.position)
190}
191
192// @@protoc_insertion_point(namespace_scope)
193
194} // namespace protocol
195} // namespace bgs
196
197#ifndef SWIG
198namespace google {
199namespace protobuf {
200template <> struct is_proto_enum< ::bgs::protocol::TypingIndicator> : ::google::protobuf::internal::true_type {};
201template <>
202inline const EnumDescriptor* GetEnumDescriptor< ::bgs::protocol::TypingIndicator>() {
204}
205} // namespace google
206} // namespace protobuf
207#endif // SWIG
208
209// @@protoc_insertion_point(global_scope)
210
211#endif // PROTOBUF_message_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::Metadata GetMetadata() const
MessageId * New() const
static MessageId * default_instance_
inline ::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
void set_epoch(::google::protobuf::uint64 value)
::google::protobuf::UnknownFieldSet _unknown_fields_
::google::protobuf::uint64 position_
void SetCachedSize(int size) const
friend void protobuf_ShutdownFile_message_5ftypes_2eproto()
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
friend void protobuf_AssignDesc_message_5ftypes_2eproto()
friend void TC_PROTO_API protobuf_AddDesc_message_5ftypes_2eproto()
::google::protobuf::uint32 _has_bits_[1]
static const MessageId & default_instance()
inline ::google::protobuf::uint64 epoch() const
MessageId(const MessageId &from)
void set_position(::google::protobuf::uint64 value)
inline ::google::protobuf::uint64 position() const
MessageId & operator=(const MessageId &from)
static const ::google::protobuf::Descriptor * descriptor()
void Swap(MessageId *other)
::google::protobuf::uint64 epoch_
constexpr std::size_t size()
Definition: UpdateField.h:796
void TC_PROTO_API protobuf_AddDesc_message_5ftypes_2eproto()
void protobuf_ShutdownFile_message_5ftypes_2eproto()
const int TypingIndicator_ARRAYSIZE
const TypingIndicator TypingIndicator_MIN
const ::std::string & TypingIndicator_Name(TypingIndicator value)
bool TypingIndicator_Parse(const ::std::string &name, TypingIndicator *value)
TC_PROTO_API bool TypingIndicator_IsValid(int value)
void protobuf_AssignDesc_message_5ftypes_2eproto()
const TypingIndicator TypingIndicator_MAX
TC_PROTO_APIconst ::google::protobuf::EnumDescriptor * TypingIndicator_descriptor()
Definition: Session.h:36