TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
content_handle_types.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: content_handle_types.proto
3 
4 #ifndef PROTOBUF_content_5fhandle_5ftypes_2eproto__INCLUDED
5 #define PROTOBUF_content_5fhandle_5ftypes_2eproto__INCLUDED
6 
7 #include <string>
8 
10 
11 #if GOOGLE_PROTOBUF_VERSION < 2006000
12 #error This file was generated by a newer version of protoc which is
13 #error incompatible with your Protocol Buffer headers. Please update
14 #error your headers.
15 #endif
16 #if 2006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
17 #error This file was generated by an older version of protoc which is
18 #error incompatible with your Protocol Buffer headers. Please
19 #error regenerate this file with a newer version of protoc.
20 #endif
21 
27 #include "Define.h" // for TC_SHARED_API
28 // @@protoc_insertion_point(includes)
29 
30 namespace bgs {
31 namespace protocol {
32 
33 // Internal implementation detail -- do not call these.
37 
38 class ContentHandle;
39 
40 // ===================================================================
41 
43  public:
44  ContentHandle();
45  virtual ~ContentHandle();
46 
47  ContentHandle(const ContentHandle& from);
48 
49  inline ContentHandle& operator=(const ContentHandle& from) {
50  CopyFrom(from);
51  return *this;
52  }
53 
54  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
55  return _unknown_fields_;
56  }
57 
58  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
59  return &_unknown_fields_;
60  }
61 
62  static const ::google::protobuf::Descriptor* descriptor();
63  static const ContentHandle& default_instance();
64 
65  void Swap(ContentHandle* other);
66 
67  // implements Message ----------------------------------------------
68 
69  ContentHandle* New() const;
70  void CopyFrom(const ::google::protobuf::Message& from);
71  void MergeFrom(const ::google::protobuf::Message& from);
72  void CopyFrom(const ContentHandle& from);
73  void MergeFrom(const ContentHandle& from);
74  void Clear();
75  bool IsInitialized() const;
76 
77  int ByteSize() const;
78  bool MergePartialFromCodedStream(
80  void SerializeWithCachedSizes(
82  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
83  int GetCachedSize() const { return _cached_size_; }
84  private:
85  void SharedCtor();
86  void SharedDtor();
87  void SetCachedSize(int size) const;
88  public:
89  ::google::protobuf::Metadata GetMetadata() const;
90 
91  // nested types ----------------------------------------------------
92 
93  // accessors -------------------------------------------------------
94 
95  // required fixed32 region = 1;
96  inline bool has_region() const;
97  inline void clear_region();
98  static const int kRegionFieldNumber = 1;
99  inline ::google::protobuf::uint32 region() const;
100  inline void set_region(::google::protobuf::uint32 value);
101 
102  // required fixed32 usage = 2;
103  inline bool has_usage() const;
104  inline void clear_usage();
105  static const int kUsageFieldNumber = 2;
106  inline ::google::protobuf::uint32 usage() const;
107  inline void set_usage(::google::protobuf::uint32 value);
108 
109  // required bytes hash = 3;
110  inline bool has_hash() const;
111  inline void clear_hash();
112  static const int kHashFieldNumber = 3;
113  inline const ::std::string& hash() const;
114  inline void set_hash(const ::std::string& value);
115  inline void set_hash(const char* value);
116  inline void set_hash(const void* value, size_t size);
117  inline ::std::string* mutable_hash();
118  inline ::std::string* release_hash();
119  inline void set_allocated_hash(::std::string* hash);
120 
121  // optional string proto_url = 4;
122  inline bool has_proto_url() const;
123  inline void clear_proto_url();
124  static const int kProtoUrlFieldNumber = 4;
125  inline const ::std::string& proto_url() const;
126  inline void set_proto_url(const ::std::string& value);
127  inline void set_proto_url(const char* value);
128  inline void set_proto_url(const char* value, size_t size);
129  inline ::std::string* mutable_proto_url();
130  inline ::std::string* release_proto_url();
131  inline void set_allocated_proto_url(::std::string* proto_url);
132 
133  // @@protoc_insertion_point(class_scope:bgs.protocol.ContentHandle)
134  private:
135  inline void set_has_region();
136  inline void clear_has_region();
137  inline void set_has_usage();
138  inline void clear_has_usage();
139  inline void set_has_hash();
140  inline void clear_has_hash();
141  inline void set_has_proto_url();
142  inline void clear_has_proto_url();
143 
145 
147  mutable int _cached_size_;
150  ::std::string* hash_;
151  ::std::string* proto_url_;
155 
156  void InitAsDefaultInstance();
158 };
159 // ===================================================================
160 
161 
162 // ===================================================================
163 
164 
165 // ===================================================================
166 
167 // ContentHandle
168 
169 // required fixed32 region = 1;
170 inline bool ContentHandle::has_region() const {
171  return (_has_bits_[0] & 0x00000001u) != 0;
172 }
174  _has_bits_[0] |= 0x00000001u;
175 }
177  _has_bits_[0] &= ~0x00000001u;
178 }
180  region_ = 0u;
182 }
184  // @@protoc_insertion_point(field_get:bgs.protocol.ContentHandle.region)
185  return region_;
186 }
188  set_has_region();
189  region_ = value;
190  // @@protoc_insertion_point(field_set:bgs.protocol.ContentHandle.region)
191 }
192 
193 // required fixed32 usage = 2;
194 inline bool ContentHandle::has_usage() const {
195  return (_has_bits_[0] & 0x00000002u) != 0;
196 }
198  _has_bits_[0] |= 0x00000002u;
199 }
201  _has_bits_[0] &= ~0x00000002u;
202 }
204  usage_ = 0u;
205  clear_has_usage();
206 }
208  // @@protoc_insertion_point(field_get:bgs.protocol.ContentHandle.usage)
209  return usage_;
210 }
212  set_has_usage();
213  usage_ = value;
214  // @@protoc_insertion_point(field_set:bgs.protocol.ContentHandle.usage)
215 }
216 
217 // required bytes hash = 3;
218 inline bool ContentHandle::has_hash() const {
219  return (_has_bits_[0] & 0x00000004u) != 0;
220 }
222  _has_bits_[0] |= 0x00000004u;
223 }
225  _has_bits_[0] &= ~0x00000004u;
226 }
229  hash_->clear();
230  }
231  clear_has_hash();
232 }
233 inline const ::std::string& ContentHandle::hash() const {
234  // @@protoc_insertion_point(field_get:bgs.protocol.ContentHandle.hash)
235  return *hash_;
236 }
237 inline void ContentHandle::set_hash(const ::std::string& value) {
238  set_has_hash();
240  hash_ = new ::std::string;
241  }
242  hash_->assign(value);
243  // @@protoc_insertion_point(field_set:bgs.protocol.ContentHandle.hash)
244 }
245 inline void ContentHandle::set_hash(const char* value) {
246  set_has_hash();
248  hash_ = new ::std::string;
249  }
250  hash_->assign(value);
251  // @@protoc_insertion_point(field_set_char:bgs.protocol.ContentHandle.hash)
252 }
253 inline void ContentHandle::set_hash(const void* value, size_t size) {
254  set_has_hash();
256  hash_ = new ::std::string;
257  }
258  hash_->assign(reinterpret_cast<const char*>(value), size);
259  // @@protoc_insertion_point(field_set_pointer:bgs.protocol.ContentHandle.hash)
260 }
261 inline ::std::string* ContentHandle::mutable_hash() {
262  set_has_hash();
264  hash_ = new ::std::string;
265  }
266  // @@protoc_insertion_point(field_mutable:bgs.protocol.ContentHandle.hash)
267  return hash_;
268 }
269 inline ::std::string* ContentHandle::release_hash() {
270  clear_has_hash();
272  return NULL;
273  } else {
274  ::std::string* temp = hash_;
275  hash_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
276  return temp;
277  }
278 }
279 inline void ContentHandle::set_allocated_hash(::std::string* hash) {
281  delete hash_;
282  }
283  if (hash) {
284  set_has_hash();
285  hash_ = hash;
286  } else {
287  clear_has_hash();
288  hash_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
289  }
290  // @@protoc_insertion_point(field_set_allocated:bgs.protocol.ContentHandle.hash)
291 }
292 
293 // optional string proto_url = 4;
294 inline bool ContentHandle::has_proto_url() const {
295  return (_has_bits_[0] & 0x00000008u) != 0;
296 }
298  _has_bits_[0] |= 0x00000008u;
299 }
301  _has_bits_[0] &= ~0x00000008u;
302 }
305  proto_url_->clear();
306  }
308 }
309 inline const ::std::string& ContentHandle::proto_url() const {
310  // @@protoc_insertion_point(field_get:bgs.protocol.ContentHandle.proto_url)
311  return *proto_url_;
312 }
313 inline void ContentHandle::set_proto_url(const ::std::string& value) {
316  proto_url_ = new ::std::string;
317  }
318  proto_url_->assign(value);
319  // @@protoc_insertion_point(field_set:bgs.protocol.ContentHandle.proto_url)
320 }
321 inline void ContentHandle::set_proto_url(const char* value) {
324  proto_url_ = new ::std::string;
325  }
326  proto_url_->assign(value);
327  // @@protoc_insertion_point(field_set_char:bgs.protocol.ContentHandle.proto_url)
328 }
329 inline void ContentHandle::set_proto_url(const char* value, size_t size) {
332  proto_url_ = new ::std::string;
333  }
334  proto_url_->assign(reinterpret_cast<const char*>(value), size);
335  // @@protoc_insertion_point(field_set_pointer:bgs.protocol.ContentHandle.proto_url)
336 }
337 inline ::std::string* ContentHandle::mutable_proto_url() {
340  proto_url_ = new ::std::string;
341  }
342  // @@protoc_insertion_point(field_mutable:bgs.protocol.ContentHandle.proto_url)
343  return proto_url_;
344 }
345 inline ::std::string* ContentHandle::release_proto_url() {
348  return NULL;
349  } else {
350  ::std::string* temp = proto_url_;
352  return temp;
353  }
354 }
355 inline void ContentHandle::set_allocated_proto_url(::std::string* proto_url) {
357  delete proto_url_;
358  }
359  if (proto_url) {
362  } else {
365  }
366  // @@protoc_insertion_point(field_set_allocated:bgs.protocol.ContentHandle.proto_url)
367 }
368 
369 
370 // @@protoc_insertion_point(namespace_scope)
371 
372 } // namespace protocol
373 } // namespace bgs
374 
375 #ifndef SWIG
376 namespace google {
377 namespace protobuf {
378 
379 
380 } // namespace google
381 } // namespace protobuf
382 #endif // SWIG
383 
384 // @@protoc_insertion_point(global_scope)
385 
386 #endif // PROTOBUF_content_5fhandle_5ftypes_2eproto__INCLUDED
void set_usage(::google::protobuf::uint32 value)
Definition: content_handle_types.pb.h:211
::std::string * hash_
Definition: content_handle_types.pb.h:150
void set_has_usage()
Definition: content_handle_types.pb.h:197
void set_has_region()
Definition: content_handle_types.pb.h:173
void clear_hash()
Definition: content_handle_types.pb.h:227
bool has_region() const
Definition: content_handle_types.pb.h:170
ContentHandle & operator=(const ContentHandle &from)
Definition: content_handle_types.pb.h:49
void set_has_hash()
Definition: content_handle_types.pb.h:221
#define hash
Definition: private_namespace.h:186
Definition: Session.h:36
void set_hash(const ::std::string &value)
Definition: content_handle_types.pb.h:237
inline::std::string * mutable_hash()
Definition: content_handle_types.pb.h:261
Definition: unknown_field_set.h:74
void set_region(::google::protobuf::uint32 value)
Definition: content_handle_types.pb.h:187
uint8_t uint8
Definition: common.h:175
inline::std::string * mutable_proto_url()
Definition: content_handle_types.pb.h:337
arena_t NULL
Definition: jemalloc_internal.h:624
void clear_has_proto_url()
Definition: content_handle_types.pb.h:300
LIBPROTOBUF_EXPORTconst::std::string & GetEmptyStringAlreadyInited()
Definition: generated_message_util.h:79
void protobuf_ShutdownFile_content_5fhandle_5ftypes_2eproto()
inline::std::string * release_proto_url()
Definition: content_handle_types.pb.h:345
Definition: message.h:165
void clear_proto_url()
Definition: content_handle_types.pb.h:303
#define output
Definition: wire_format_lite.h:381
void set_has_proto_url()
Definition: content_handle_types.pb.h:297
Definition: coded_stream.h:156
const ::std::string & proto_url() const
Definition: content_handle_types.pb.h:309
Definition: content_handle_types.pb.h:42
void set_allocated_hash(::std::string *hash)
Definition: content_handle_types.pb.h:279
void clear_usage()
Definition: content_handle_types.pb.h:203
Definition: coded_stream.h:621
void clear_has_usage()
Definition: content_handle_types.pb.h:200
void clear_has_hash()
Definition: content_handle_types.pb.h:224
Definition: message.h:150
::google::protobuf::uint32 region_
Definition: content_handle_types.pb.h:148
#define input
Definition: wire_format_lite.h:242
::std::string * proto_url_
Definition: content_handle_types.pb.h:151
uint32_t uint32
Definition: common.h:177
bool has_proto_url() const
Definition: content_handle_types.pb.h:294
#define TC_SHARED_API
Definition: Define.h:128
void TC_SHARED_API protobuf_AddDesc_content_5fhandle_5ftypes_2eproto()
void set_proto_url(const ::std::string &value)
Definition: content_handle_types.pb.h:313
::google::protobuf::UnknownFieldSet _unknown_fields_
Definition: content_handle_types.pb.h:144
int GetCachedSize() const
Definition: content_handle_types.pb.h:83
inline::google::protobuf::uint32 region() const
Definition: content_handle_types.pb.h:183
::google::protobuf::uint32 _has_bits_[1]
Definition: content_handle_types.pb.h:146
inline::google::protobuf::uint32 usage() const
Definition: content_handle_types.pb.h:207
::google::protobuf::uint32 usage_
Definition: content_handle_types.pb.h:149
inline::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
Definition: content_handle_types.pb.h:58
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
Definition: content_handle_types.pb.h:54
const ::std::string & hash() const
Definition: content_handle_types.pb.h:233
Definition: BnetFileGenerator.h:47
int _cached_size_
Definition: content_handle_types.pb.h:147
const FieldDescriptor value
Definition: descriptor.h:1522
static ContentHandle * default_instance_
Definition: content_handle_types.pb.h:157
uint32_t uint32
Definition: g3dmath.h:168
bool has_usage() const
Definition: content_handle_types.pb.h:194
void protobuf_AssignDesc_content_5fhandle_5ftypes_2eproto()
bool has_hash() const
Definition: content_handle_types.pb.h:218
void clear_region()
Definition: content_handle_types.pb.h:179
void set_allocated_proto_url(::std::string *proto_url)
Definition: content_handle_types.pb.h:355
void clear_has_region()
Definition: content_handle_types.pb.h:176
inline::std::string * release_hash()
Definition: content_handle_types.pb.h:269