TrinityCore
resource_service.pb.h
Go to the documentation of this file.
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: resource_service.proto
3
4#ifndef PROTOBUF_resource_5fservice_2eproto__INCLUDED
5#define PROTOBUF_resource_5fservice_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>
28#include "rpc_types.pb.h"
29#include "ServiceBase.h"
30#include "MessageBuffer.h"
31#include <functional>
32#include <type_traits>
33// @@protoc_insertion_point(includes)
34
35namespace bgs {
36namespace protocol {
37namespace resources {
38namespace v1 {
39
40// Internal implementation detail -- do not call these.
44
48
49// ===================================================================
50
51class TC_PROTO_API ContentHandleRequest : public ::google::protobuf::Message {
52 public:
55
57
59 CopyFrom(from);
60 return *this;
61 }
62
63 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
64 return _unknown_fields_;
65 }
66
67 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
68 return &_unknown_fields_;
69 }
70
71 static const ::google::protobuf::Descriptor* descriptor();
73
75
76 // implements Message ----------------------------------------------
77
79 int GetCachedSize() const { return _cached_size_; }
80 private:
81 void SharedCtor();
82 void SharedDtor();
83 void SetCachedSize(int size) const;
84 public:
85 ::google::protobuf::Metadata GetMetadata() const;
86
87 // nested types ----------------------------------------------------
88
89 // accessors -------------------------------------------------------
90
91 // required fixed32 program = 1;
92 inline bool has_program() const;
93 inline void clear_program();
94 static const int kProgramFieldNumber = 1;
96 inline void set_program(::google::protobuf::uint32 value);
97
98 // required fixed32 stream = 2;
99 inline bool has_stream() const;
100 inline void clear_stream();
101 static const int kStreamFieldNumber = 2;
103 inline void set_stream(::google::protobuf::uint32 value);
104
105 // optional fixed32 version = 3 [default = 1701729619];
106 inline bool has_version() const;
107 inline void clear_version();
108 static const int kVersionFieldNumber = 3;
109 inline ::google::protobuf::uint32 version() const;
110 inline void set_version(::google::protobuf::uint32 value);
111
112 // @@protoc_insertion_point(class_scope:bgs.protocol.resources.v1.ContentHandleRequest)
113 private:
114 inline void set_has_program();
115 inline void clear_has_program();
116 inline void set_has_stream();
117 inline void clear_has_stream();
118 inline void set_has_version();
119 inline void clear_has_version();
120
121 ::google::protobuf::UnknownFieldSet _unknown_fields_;
122
124 mutable int _cached_size_;
131
134};
135// -------------------------------------------------------------------
136
137class TC_PROTO_API GetTitleIconsRequest : public ::google::protobuf::Message {
138 public:
141
143
145 CopyFrom(from);
146 return *this;
147 }
148
149 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
150 return _unknown_fields_;
151 }
152
153 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
154 return &_unknown_fields_;
155 }
156
157 static const ::google::protobuf::Descriptor* descriptor();
159
161
162 // implements Message ----------------------------------------------
163
165 int GetCachedSize() const { return _cached_size_; }
166 private:
169 void SetCachedSize(int size) const;
170 public:
171 ::google::protobuf::Metadata GetMetadata() const;
172
173 // nested types ----------------------------------------------------
174
175 // accessors -------------------------------------------------------
176
177 // repeated uint32 title_ids = 1 [packed = true];
178 inline int title_ids_size() const;
179 inline void clear_title_ids();
180 static const int kTitleIdsFieldNumber = 1;
181 inline ::google::protobuf::uint32 title_ids(int index) const;
182 inline void set_title_ids(int index, ::google::protobuf::uint32 value);
183 inline void add_title_ids(::google::protobuf::uint32 value);
184 inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
185 title_ids() const;
186 inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
187 mutable_title_ids();
188
189 // optional uint32 usage = 2;
190 inline bool has_usage() const;
191 inline void clear_usage();
192 static const int kUsageFieldNumber = 2;
194 inline void set_usage(::google::protobuf::uint32 value);
195
196 // optional uint32 version = 3;
197 inline bool has_version() const;
198 inline void clear_version();
199 static const int kVersionFieldNumber = 3;
200 inline ::google::protobuf::uint32 version() const;
201 inline void set_version(::google::protobuf::uint32 value);
202
203 // @@protoc_insertion_point(class_scope:bgs.protocol.resources.v1.GetTitleIconsRequest)
204 private:
205 inline void set_has_usage();
206 inline void clear_has_usage();
207 inline void set_has_version();
208 inline void clear_has_version();
209
210 ::google::protobuf::UnknownFieldSet _unknown_fields_;
211
213 mutable int _cached_size_;
214 ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > title_ids_;
220
223};
224// -------------------------------------------------------------------
225
226class TC_PROTO_API GetTitleIconsResponse : public ::google::protobuf::Message {
227 public:
230
232
234 CopyFrom(from);
235 return *this;
236 }
237
238 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
239 return _unknown_fields_;
240 }
241
242 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
243 return &_unknown_fields_;
244 }
245
246 static const ::google::protobuf::Descriptor* descriptor();
248
250
251 // implements Message ----------------------------------------------
252
254 int GetCachedSize() const { return _cached_size_; }
255 private:
258 void SetCachedSize(int size) const;
259 public:
260 ::google::protobuf::Metadata GetMetadata() const;
261
262 // nested types ----------------------------------------------------
263
264 // accessors -------------------------------------------------------
265
266 // repeated .bgs.protocol.TitleIconContentHandle title_icon_content_handles = 1;
267 inline int title_icon_content_handles_size() const;
268 inline void clear_title_icon_content_handles();
269 static const int kTitleIconContentHandlesFieldNumber = 1;
270 inline const ::bgs::protocol::TitleIconContentHandle& title_icon_content_handles(int index) const;
271 inline ::bgs::protocol::TitleIconContentHandle* mutable_title_icon_content_handles(int index);
272 inline ::bgs::protocol::TitleIconContentHandle* add_title_icon_content_handles();
273 inline const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::TitleIconContentHandle >&
274 title_icon_content_handles() const;
275 inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::TitleIconContentHandle >*
276 mutable_title_icon_content_handles();
277
278 // @@protoc_insertion_point(class_scope:bgs.protocol.resources.v1.GetTitleIconsResponse)
279 private:
280
281 ::google::protobuf::UnknownFieldSet _unknown_fields_;
282
284 mutable int _cached_size_;
285 ::google::protobuf::RepeatedPtrField< ::bgs::protocol::TitleIconContentHandle > title_icon_content_handles_;
289
292};
293// ===================================================================
294
296{
297 public:
298
299 explicit ResourcesService(bool use_original_hash);
305
306 typedef std::integral_constant<uint32, 0xECBE75BAu> OriginalHash;
307 typedef std::integral_constant<uint32, 0x4B104C53u> NameHash;
308
309 static google::protobuf::ServiceDescriptor const* descriptor();
310
311 void CallServerMethod(uint32 token, uint32 methodId, MessageBuffer buffer) final;
312
313 protected:
314 // server methods --------------------------------------------------
315 virtual uint32 HandleGetContentHandle(::bgs::protocol::resources::v1::ContentHandleRequest const* request, ::bgs::protocol::ContentHandle* response, std::function<void(ServiceBase*, uint32, ::google::protobuf::Message const*)>& continuation);
316 virtual uint32 HandleGetTitleIcons(::bgs::protocol::resources::v1::GetTitleIconsRequest const* request, ::bgs::protocol::resources::v1::GetTitleIconsResponse* response, std::function<void(ServiceBase*, uint32, ::google::protobuf::Message const*)>& continuation);
317
318 private:
321};
322
323// ===================================================================
324
325// ===================================================================
326
327// ContentHandleRequest
328
329// required fixed32 program = 1;
331 return (_has_bits_[0] & 0x00000001u) != 0;
332}
334 _has_bits_[0] |= 0x00000001u;
335}
337 _has_bits_[0] &= ~0x00000001u;
338}
340 program_ = 0u;
342}
344 // @@protoc_insertion_point(field_get:bgs.protocol.resources.v1.ContentHandleRequest.program)
345 return program_;
346}
349 program_ = value;
350 // @@protoc_insertion_point(field_set:bgs.protocol.resources.v1.ContentHandleRequest.program)
351}
352
353// required fixed32 stream = 2;
355 return (_has_bits_[0] & 0x00000002u) != 0;
356}
358 _has_bits_[0] |= 0x00000002u;
359}
361 _has_bits_[0] &= ~0x00000002u;
362}
364 stream_ = 0u;
366}
368 // @@protoc_insertion_point(field_get:bgs.protocol.resources.v1.ContentHandleRequest.stream)
369 return stream_;
370}
373 stream_ = value;
374 // @@protoc_insertion_point(field_set:bgs.protocol.resources.v1.ContentHandleRequest.stream)
375}
376
377// optional fixed32 version = 3 [default = 1701729619];
379 return (_has_bits_[0] & 0x00000004u) != 0;
380}
382 _has_bits_[0] |= 0x00000004u;
383}
385 _has_bits_[0] &= ~0x00000004u;
386}
388 version_ = 1701729619u;
390}
392 // @@protoc_insertion_point(field_get:bgs.protocol.resources.v1.ContentHandleRequest.version)
393 return version_;
394}
397 version_ = value;
398 // @@protoc_insertion_point(field_set:bgs.protocol.resources.v1.ContentHandleRequest.version)
399}
400
401// -------------------------------------------------------------------
402
403// GetTitleIconsRequest
404
405// repeated uint32 title_ids = 1 [packed = true];
407 return title_ids_.size();
408}
410 title_ids_.Clear();
411}
413 // @@protoc_insertion_point(field_get:bgs.protocol.resources.v1.GetTitleIconsRequest.title_ids)
414 return title_ids_.Get(index);
415}
417 title_ids_.Set(index, value);
418 // @@protoc_insertion_point(field_set:bgs.protocol.resources.v1.GetTitleIconsRequest.title_ids)
419}
421 title_ids_.Add(value);
422 // @@protoc_insertion_point(field_add:bgs.protocol.resources.v1.GetTitleIconsRequest.title_ids)
423}
424inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
426 // @@protoc_insertion_point(field_list:bgs.protocol.resources.v1.GetTitleIconsRequest.title_ids)
427 return title_ids_;
428}
429inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
431 // @@protoc_insertion_point(field_mutable_list:bgs.protocol.resources.v1.GetTitleIconsRequest.title_ids)
432 return &title_ids_;
433}
434
435// optional uint32 usage = 2;
437 return (_has_bits_[0] & 0x00000002u) != 0;
438}
440 _has_bits_[0] |= 0x00000002u;
441}
443 _has_bits_[0] &= ~0x00000002u;
444}
446 usage_ = 0u;
448}
450 // @@protoc_insertion_point(field_get:bgs.protocol.resources.v1.GetTitleIconsRequest.usage)
451 return usage_;
452}
455 usage_ = value;
456 // @@protoc_insertion_point(field_set:bgs.protocol.resources.v1.GetTitleIconsRequest.usage)
457}
458
459// optional uint32 version = 3;
461 return (_has_bits_[0] & 0x00000004u) != 0;
462}
464 _has_bits_[0] |= 0x00000004u;
465}
467 _has_bits_[0] &= ~0x00000004u;
468}
470 version_ = 0u;
472}
474 // @@protoc_insertion_point(field_get:bgs.protocol.resources.v1.GetTitleIconsRequest.version)
475 return version_;
476}
479 version_ = value;
480 // @@protoc_insertion_point(field_set:bgs.protocol.resources.v1.GetTitleIconsRequest.version)
481}
482
483// -------------------------------------------------------------------
484
485// GetTitleIconsResponse
486
487// repeated .bgs.protocol.TitleIconContentHandle title_icon_content_handles = 1;
489 return title_icon_content_handles_.size();
490}
493}
494inline const ::bgs::protocol::TitleIconContentHandle& GetTitleIconsResponse::title_icon_content_handles(int index) const {
495 // @@protoc_insertion_point(field_get:bgs.protocol.resources.v1.GetTitleIconsResponse.title_icon_content_handles)
496 return title_icon_content_handles_.Get(index);
497}
498inline ::bgs::protocol::TitleIconContentHandle* GetTitleIconsResponse::mutable_title_icon_content_handles(int index) {
499 // @@protoc_insertion_point(field_mutable:bgs.protocol.resources.v1.GetTitleIconsResponse.title_icon_content_handles)
500 return title_icon_content_handles_.Mutable(index);
501}
502inline ::bgs::protocol::TitleIconContentHandle* GetTitleIconsResponse::add_title_icon_content_handles() {
503 // @@protoc_insertion_point(field_add:bgs.protocol.resources.v1.GetTitleIconsResponse.title_icon_content_handles)
504 return title_icon_content_handles_.Add();
505}
506inline const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::TitleIconContentHandle >&
508 // @@protoc_insertion_point(field_list:bgs.protocol.resources.v1.GetTitleIconsResponse.title_icon_content_handles)
510}
511inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::TitleIconContentHandle >*
513 // @@protoc_insertion_point(field_mutable_list:bgs.protocol.resources.v1.GetTitleIconsResponse.title_icon_content_handles)
515}
516
517// @@protoc_insertion_point(namespace_scope)
518
519} // namespace v1
520} // namespace resources
521} // namespace protocol
522} // namespace bgs
523
524#ifndef SWIG
525namespace google {
526namespace protobuf {
527} // namespace google
528} // namespace protobuf
529#endif // SWIG
530
531// @@protoc_insertion_point(global_scope)
532
533#endif // PROTOBUF_resource_5fservice_2eproto__INCLUDED
#define TC_PROTO_API
Definition: Define.h:105
uint32_t uint32
Definition: Define.h:142
ContentHandleRequest(const ContentHandleRequest &from)
::google::protobuf::Metadata GetMetadata() const
void set_stream(::google::protobuf::uint32 value)
void set_version(::google::protobuf::uint32 value)
static const ContentHandleRequest & default_instance()
static const ::google::protobuf::Descriptor * descriptor()
::google::protobuf::UnknownFieldSet _unknown_fields_
inline ::google::protobuf::uint32 version() const
void Swap(ContentHandleRequest *other)
inline ::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
inline ::google::protobuf::uint32 program() const
void set_program(::google::protobuf::uint32 value)
friend void TC_PROTO_API protobuf_AddDesc_resource_5fservice_2eproto()
inline ::google::protobuf::uint32 stream() const
ContentHandleRequest & operator=(const ContentHandleRequest &from)
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
inline ::google::protobuf::uint32 version() const
::google::protobuf::RepeatedField< ::google::protobuf::uint32 > title_ids_
void add_title_ids(::google::protobuf::uint32 value)
::google::protobuf::Metadata GetMetadata() const
void set_usage(::google::protobuf::uint32 value)
inline ::google::protobuf::uint32 usage() const
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
inline ::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
void set_version(::google::protobuf::uint32 value)
GetTitleIconsRequest & operator=(const GetTitleIconsRequest &from)
inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > * mutable_title_ids()
::google::protobuf::UnknownFieldSet _unknown_fields_
GetTitleIconsRequest(const GetTitleIconsRequest &from)
static const GetTitleIconsRequest & default_instance()
friend void TC_PROTO_API protobuf_AddDesc_resource_5fservice_2eproto()
static const ::google::protobuf::Descriptor * descriptor()
const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > & title_ids() const
void set_title_ids(int index, ::google::protobuf::uint32 value)
void Swap(GetTitleIconsRequest *other)
inline ::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
static const GetTitleIconsResponse & default_instance()
inline ::bgs::protocol::TitleIconContentHandle * add_title_icon_content_handles()
::google::protobuf::UnknownFieldSet _unknown_fields_
GetTitleIconsResponse & operator=(const GetTitleIconsResponse &from)
void Swap(GetTitleIconsResponse *other)
inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::TitleIconContentHandle > * mutable_title_icon_content_handles()
friend void TC_PROTO_API protobuf_AddDesc_resource_5fservice_2eproto()
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
::google::protobuf::Metadata GetMetadata() const
const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::TitleIconContentHandle > & title_icon_content_handles() const
GetTitleIconsResponse(const GetTitleIconsResponse &from)
::google::protobuf::RepeatedPtrField< ::bgs::protocol::TitleIconContentHandle > title_icon_content_handles_
static const ::google::protobuf::Descriptor * descriptor()
ResourcesService & operator=(ResourcesService const &)=delete
std::integral_constant< uint32, 0x4B104C53u > NameHash
ResourcesService & operator=(ResourcesService &&)=delete
ResourcesService(ResourcesService const &)=delete
static google::protobuf::ServiceDescriptor const * descriptor()
virtual uint32 HandleGetContentHandle(::bgs::protocol::resources::v1::ContentHandleRequest const *request, ::bgs::protocol::ContentHandle *response, std::function< void(ServiceBase *, uint32, ::google::protobuf::Message const *)> &continuation)
std::integral_constant< uint32, 0xECBE75BAu > OriginalHash
void ParseAndHandleGetTitleIcons(uint32 token, uint32 methodId, MessageBuffer &buffer)
virtual uint32 HandleGetTitleIcons(::bgs::protocol::resources::v1::GetTitleIconsRequest const *request, ::bgs::protocol::resources::v1::GetTitleIconsResponse *response, std::function< void(ServiceBase *, uint32, ::google::protobuf::Message const *)> &continuation)
ResourcesService(ResourcesService &&)=delete
void CallServerMethod(uint32 token, uint32 methodId, MessageBuffer buffer) final
void ParseAndHandleGetContentHandle(uint32 token, uint32 methodId, MessageBuffer &buffer)
constexpr std::size_t size()
Definition: UpdateField.h:796
void TC_PROTO_API protobuf_AddDesc_resource_5fservice_2eproto()
void protobuf_ShutdownFile_resource_5fservice_2eproto()
void protobuf_AssignDesc_resource_5fservice_2eproto()
Definition: Session.h:36