TrinityCore
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
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/unknown_field_set.h>
27#include "Define.h" // for TC_PROTO_API
28// @@protoc_insertion_point(includes)
29
30namespace bgs {
31namespace protocol {
32
33// Internal implementation detail -- do not call these.
37
38class ContentHandle;
40
41// ===================================================================
42
43class TC_PROTO_API ContentHandle : public ::google::protobuf::Message {
44 public:
46 virtual ~ContentHandle();
47
49
50 inline ContentHandle& operator=(const ContentHandle& from) {
51 CopyFrom(from);
52 return *this;
53 }
54
55 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
56 return _unknown_fields_;
57 }
58
59 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
60 return &_unknown_fields_;
61 }
62
63 static const ::google::protobuf::Descriptor* descriptor();
65
66 void Swap(ContentHandle* other);
67
68 // implements Message ----------------------------------------------
69
71 int GetCachedSize() const { return _cached_size_; }
72 private:
73 void SharedCtor();
74 void SharedDtor();
75 void SetCachedSize(int size) const;
76 public:
77 ::google::protobuf::Metadata GetMetadata() const;
78
79 // nested types ----------------------------------------------------
80
81 // accessors -------------------------------------------------------
82
83 // required fixed32 region = 1;
84 inline bool has_region() const;
85 inline void clear_region();
86 static const int kRegionFieldNumber = 1;
88 inline void set_region(::google::protobuf::uint32 value);
89
90 // required fixed32 usage = 2;
91 inline bool has_usage() const;
92 inline void clear_usage();
93 static const int kUsageFieldNumber = 2;
95 inline void set_usage(::google::protobuf::uint32 value);
96
97 // required bytes hash = 3;
98 inline bool has_hash() const;
99 inline void clear_hash();
100 static const int kHashFieldNumber = 3;
101 inline const ::std::string& hash() const;
102 inline void set_hash(const ::std::string& value);
103 inline void set_hash(const char* value);
104 inline void set_hash(const void* value, size_t size);
105 inline ::std::string* mutable_hash();
106 inline ::std::string* release_hash();
107 inline void set_allocated_hash(::std::string* hash);
108
109 // optional string proto_url = 4;
110 inline bool has_proto_url() const;
111 inline void clear_proto_url();
112 static const int kProtoUrlFieldNumber = 4;
113 inline const ::std::string& proto_url() const;
114 inline void set_proto_url(const ::std::string& value);
115 inline void set_proto_url(const char* value);
116 inline void set_proto_url(const char* value, size_t size);
117 inline ::std::string* mutable_proto_url();
118 inline ::std::string* release_proto_url();
119 inline void set_allocated_proto_url(::std::string* proto_url);
120
121 // @@protoc_insertion_point(class_scope:bgs.protocol.ContentHandle)
122 private:
123 inline void set_has_region();
124 inline void clear_has_region();
125 inline void set_has_usage();
126 inline void clear_has_usage();
127 inline void set_has_hash();
128 inline void clear_has_hash();
129 inline void set_has_proto_url();
130 inline void clear_has_proto_url();
131
132 ::google::protobuf::UnknownFieldSet _unknown_fields_;
133
135 mutable int _cached_size_;
138 ::std::string* hash_;
139 ::std::string* proto_url_;
143
146};
147// -------------------------------------------------------------------
148
149class TC_PROTO_API TitleIconContentHandle : public ::google::protobuf::Message {
150 public:
153
155
157 CopyFrom(from);
158 return *this;
159 }
160
161 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
162 return _unknown_fields_;
163 }
164
165 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
166 return &_unknown_fields_;
167 }
168
169 static const ::google::protobuf::Descriptor* descriptor();
171
173
174 // implements Message ----------------------------------------------
175
177 int GetCachedSize() const { return _cached_size_; }
178 private:
181 void SetCachedSize(int size) const;
182 public:
183 ::google::protobuf::Metadata GetMetadata() const;
184
185 // nested types ----------------------------------------------------
186
187 // accessors -------------------------------------------------------
188
189 // optional uint32 title_id = 1;
190 inline bool has_title_id() const;
191 inline void clear_title_id();
192 static const int kTitleIdFieldNumber = 1;
193 inline ::google::protobuf::uint32 title_id() const;
194 inline void set_title_id(::google::protobuf::uint32 value);
195
196 // optional .bgs.protocol.ContentHandle content_handle = 2;
197 inline bool has_content_handle() const;
198 inline void clear_content_handle();
199 static const int kContentHandleFieldNumber = 2;
200 inline const ::bgs::protocol::ContentHandle& content_handle() const;
201 inline ::bgs::protocol::ContentHandle* mutable_content_handle();
202 inline ::bgs::protocol::ContentHandle* release_content_handle();
203 inline void set_allocated_content_handle(::bgs::protocol::ContentHandle* content_handle);
204
205 // @@protoc_insertion_point(class_scope:bgs.protocol.TitleIconContentHandle)
206 private:
207 inline void set_has_title_id();
208 inline void clear_has_title_id();
209 inline void set_has_content_handle();
210 inline void clear_has_content_handle();
211
212 ::google::protobuf::UnknownFieldSet _unknown_fields_;
213
215 mutable int _cached_size_;
221
224};
225// ===================================================================
226
227// ===================================================================
228
229// ===================================================================
230
231// ContentHandle
232
233// required fixed32 region = 1;
234inline bool ContentHandle::has_region() const {
235 return (_has_bits_[0] & 0x00000001u) != 0;
236}
238 _has_bits_[0] |= 0x00000001u;
239}
241 _has_bits_[0] &= ~0x00000001u;
242}
244 region_ = 0u;
246}
248 // @@protoc_insertion_point(field_get:bgs.protocol.ContentHandle.region)
249 return region_;
250}
253 region_ = value;
254 // @@protoc_insertion_point(field_set:bgs.protocol.ContentHandle.region)
255}
256
257// required fixed32 usage = 2;
258inline bool ContentHandle::has_usage() const {
259 return (_has_bits_[0] & 0x00000002u) != 0;
260}
262 _has_bits_[0] |= 0x00000002u;
263}
265 _has_bits_[0] &= ~0x00000002u;
266}
268 usage_ = 0u;
270}
272 // @@protoc_insertion_point(field_get:bgs.protocol.ContentHandle.usage)
273 return usage_;
274}
277 usage_ = value;
278 // @@protoc_insertion_point(field_set:bgs.protocol.ContentHandle.usage)
279}
280
281// required bytes hash = 3;
282inline bool ContentHandle::has_hash() const {
283 return (_has_bits_[0] & 0x00000004u) != 0;
284}
286 _has_bits_[0] |= 0x00000004u;
287}
289 _has_bits_[0] &= ~0x00000004u;
290}
292 if (hash_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
293 hash_->clear();
294 }
296}
297inline const ::std::string& ContentHandle::hash() const {
298 // @@protoc_insertion_point(field_get:bgs.protocol.ContentHandle.hash)
299 return *hash_;
300}
301inline void ContentHandle::set_hash(const ::std::string& value) {
302 set_has_hash();
303 if (hash_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
304 hash_ = new ::std::string;
305 }
306 hash_->assign(value);
307 // @@protoc_insertion_point(field_set:bgs.protocol.ContentHandle.hash)
308}
309inline void ContentHandle::set_hash(const char* value) {
310 set_has_hash();
311 if (hash_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
312 hash_ = new ::std::string;
313 }
314 hash_->assign(value);
315 // @@protoc_insertion_point(field_set_char:bgs.protocol.ContentHandle.hash)
316}
317inline void ContentHandle::set_hash(const void* value, size_t size) {
318 set_has_hash();
319 if (hash_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
320 hash_ = new ::std::string;
321 }
322 hash_->assign(reinterpret_cast<const char*>(value), size);
323 // @@protoc_insertion_point(field_set_pointer:bgs.protocol.ContentHandle.hash)
324}
325inline ::std::string* ContentHandle::mutable_hash() {
326 set_has_hash();
327 if (hash_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
328 hash_ = new ::std::string;
329 }
330 // @@protoc_insertion_point(field_mutable:bgs.protocol.ContentHandle.hash)
331 return hash_;
332}
333inline ::std::string* ContentHandle::release_hash() {
335 if (hash_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
336 return NULL;
337 } else {
338 ::std::string* temp = hash_;
339 hash_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
340 return temp;
341 }
342}
343inline void ContentHandle::set_allocated_hash(::std::string* hash) {
344 if (hash_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
345 delete hash_;
346 }
347 if (hash) {
348 set_has_hash();
349 hash_ = hash;
350 } else {
352 hash_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
353 }
354 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.ContentHandle.hash)
355}
356
357// optional string proto_url = 4;
358inline bool ContentHandle::has_proto_url() const {
359 return (_has_bits_[0] & 0x00000008u) != 0;
360}
362 _has_bits_[0] |= 0x00000008u;
363}
365 _has_bits_[0] &= ~0x00000008u;
366}
368 if (proto_url_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
369 proto_url_->clear();
370 }
372}
373inline const ::std::string& ContentHandle::proto_url() const {
374 // @@protoc_insertion_point(field_get:bgs.protocol.ContentHandle.proto_url)
375 return *proto_url_;
376}
377inline void ContentHandle::set_proto_url(const ::std::string& value) {
379 if (proto_url_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
380 proto_url_ = new ::std::string;
381 }
382 proto_url_->assign(value);
383 // @@protoc_insertion_point(field_set:bgs.protocol.ContentHandle.proto_url)
384}
385inline void ContentHandle::set_proto_url(const char* value) {
387 if (proto_url_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
388 proto_url_ = new ::std::string;
389 }
390 proto_url_->assign(value);
391 // @@protoc_insertion_point(field_set_char:bgs.protocol.ContentHandle.proto_url)
392}
393inline void ContentHandle::set_proto_url(const char* value, size_t size) {
395 if (proto_url_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
396 proto_url_ = new ::std::string;
397 }
398 proto_url_->assign(reinterpret_cast<const char*>(value), size);
399 // @@protoc_insertion_point(field_set_pointer:bgs.protocol.ContentHandle.proto_url)
400}
401inline ::std::string* ContentHandle::mutable_proto_url() {
403 if (proto_url_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
404 proto_url_ = new ::std::string;
405 }
406 // @@protoc_insertion_point(field_mutable:bgs.protocol.ContentHandle.proto_url)
407 return proto_url_;
408}
409inline ::std::string* ContentHandle::release_proto_url() {
411 if (proto_url_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
412 return NULL;
413 } else {
414 ::std::string* temp = proto_url_;
415 proto_url_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
416 return temp;
417 }
418}
419inline void ContentHandle::set_allocated_proto_url(::std::string* proto_url) {
420 if (proto_url_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
421 delete proto_url_;
422 }
423 if (proto_url) {
426 } else {
428 proto_url_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
429 }
430 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.ContentHandle.proto_url)
431}
432
433// -------------------------------------------------------------------
434
435// TitleIconContentHandle
436
437// optional uint32 title_id = 1;
439 return (_has_bits_[0] & 0x00000001u) != 0;
440}
442 _has_bits_[0] |= 0x00000001u;
443}
445 _has_bits_[0] &= ~0x00000001u;
446}
448 title_id_ = 0u;
450}
452 // @@protoc_insertion_point(field_get:bgs.protocol.TitleIconContentHandle.title_id)
453 return title_id_;
454}
457 title_id_ = value;
458 // @@protoc_insertion_point(field_set:bgs.protocol.TitleIconContentHandle.title_id)
459}
460
461// optional .bgs.protocol.ContentHandle content_handle = 2;
463 return (_has_bits_[0] & 0x00000002u) != 0;
464}
466 _has_bits_[0] |= 0x00000002u;
467}
469 _has_bits_[0] &= ~0x00000002u;
470}
472 if (content_handle_ != NULL) content_handle_->::bgs::protocol::ContentHandle::Clear();
474}
475inline const ::bgs::protocol::ContentHandle& TitleIconContentHandle::content_handle() const {
476 // @@protoc_insertion_point(field_get:bgs.protocol.TitleIconContentHandle.content_handle)
478}
479inline ::bgs::protocol::ContentHandle* TitleIconContentHandle::mutable_content_handle() {
481 if (content_handle_ == NULL) content_handle_ = new ::bgs::protocol::ContentHandle;
482 // @@protoc_insertion_point(field_mutable:bgs.protocol.TitleIconContentHandle.content_handle)
483 return content_handle_;
484}
485inline ::bgs::protocol::ContentHandle* TitleIconContentHandle::release_content_handle() {
488 content_handle_ = NULL;
489 return temp;
490}
492 delete content_handle_;
494 if (content_handle) {
496 } else {
498 }
499 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.TitleIconContentHandle.content_handle)
500}
501
502// @@protoc_insertion_point(namespace_scope)
503
504} // namespace protocol
505} // namespace bgs
506
507#ifndef SWIG
508namespace google {
509namespace protobuf {
510} // namespace google
511} // namespace protobuf
512#endif // SWIG
513
514// @@protoc_insertion_point(global_scope)
515
516#endif // PROTOBUF_content_5fhandle_5ftypes_2eproto__INCLUDED
#define TC_PROTO_API
Definition: Define.h:105
uint32_t uint32
Definition: Define.h:142
void set_hash(const ::std::string &value)
void set_proto_url(const ::std::string &value)
::google::protobuf::uint32 usage_
static ContentHandle * default_instance_
void set_region(::google::protobuf::uint32 value)
::google::protobuf::uint32 region_
ContentHandle & operator=(const ContentHandle &from)
::google::protobuf::Metadata GetMetadata() const
::google::protobuf::UnknownFieldSet _unknown_fields_
inline ::google::protobuf::uint32 usage() const
void Swap(ContentHandle *other)
friend void TC_PROTO_API protobuf_AddDesc_content_5fhandle_5ftypes_2eproto()
ContentHandle(const ContentHandle &from)
void SetCachedSize(int size) const
inline ::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
const ::std::string & proto_url() const
ContentHandle * New() const
static const ContentHandle & default_instance()
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
void set_allocated_proto_url(::std::string *proto_url)
inline ::std::string * mutable_proto_url()
inline ::std::string * mutable_hash()
static const ::google::protobuf::Descriptor * descriptor()
const ::std::string & hash() const
friend void protobuf_AssignDesc_content_5fhandle_5ftypes_2eproto()
void set_allocated_hash(::std::string *hash)
::google::protobuf::uint32 _has_bits_[1]
inline ::google::protobuf::uint32 region() const
inline ::std::string * release_proto_url()
friend void protobuf_ShutdownFile_content_5fhandle_5ftypes_2eproto()
inline ::std::string * release_hash()
void set_usage(::google::protobuf::uint32 value)
::bgs::protocol::ContentHandle * content_handle_
void set_allocated_content_handle(::bgs::protocol::ContentHandle *content_handle)
TitleIconContentHandle & operator=(const TitleIconContentHandle &from)
::google::protobuf::Metadata GetMetadata() const
inline ::bgs::protocol::ContentHandle * release_content_handle()
friend void TC_PROTO_API protobuf_AddDesc_content_5fhandle_5ftypes_2eproto()
void Swap(TitleIconContentHandle *other)
inline ::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
TitleIconContentHandle(const TitleIconContentHandle &from)
static TitleIconContentHandle * default_instance_
::google::protobuf::uint32 _has_bits_[1]
inline ::google::protobuf::uint32 title_id() const
void set_title_id(::google::protobuf::uint32 value)
inline ::bgs::protocol::ContentHandle * mutable_content_handle()
friend void protobuf_AssignDesc_content_5fhandle_5ftypes_2eproto()
::google::protobuf::UnknownFieldSet _unknown_fields_
const ::bgs::protocol::ContentHandle & content_handle() const
TitleIconContentHandle * New() const
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
friend void protobuf_ShutdownFile_content_5fhandle_5ftypes_2eproto()
static const TitleIconContentHandle & default_instance()
static const ::google::protobuf::Descriptor * descriptor()
constexpr std::size_t size()
Definition: UpdateField.h:796
void protobuf_ShutdownFile_content_5fhandle_5ftypes_2eproto()
void protobuf_AssignDesc_content_5fhandle_5ftypes_2eproto()
void TC_PROTO_API protobuf_AddDesc_content_5fhandle_5ftypes_2eproto()
Definition: Session.h:36