TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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 
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 
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 
35 namespace bgs {
36 namespace protocol {
37 namespace resources {
38 namespace v1 {
39 
40 // Internal implementation detail -- do not call these.
44 
46 
47 // ===================================================================
48 
50  public:
52  virtual ~ContentHandleRequest();
53 
55 
57  CopyFrom(from);
58  return *this;
59  }
60 
61  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
62  return _unknown_fields_;
63  }
64 
65  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
66  return &_unknown_fields_;
67  }
68 
69  static const ::google::protobuf::Descriptor* descriptor();
70  static const ContentHandleRequest& default_instance();
71 
72  void Swap(ContentHandleRequest* other);
73 
74  // implements Message ----------------------------------------------
75 
76  ContentHandleRequest* New() const;
77  void CopyFrom(const ::google::protobuf::Message& from);
78  void MergeFrom(const ::google::protobuf::Message& from);
79  void CopyFrom(const ContentHandleRequest& from);
80  void MergeFrom(const ContentHandleRequest& from);
81  void Clear();
82  bool IsInitialized() const;
83 
84  int ByteSize() const;
85  bool MergePartialFromCodedStream(
87  void SerializeWithCachedSizes(
89  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) 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  // required fixed32 program = 1;
103  inline bool has_program() const;
104  inline void clear_program();
105  static const int kProgramFieldNumber = 1;
106  inline ::google::protobuf::uint32 program() const;
107  inline void set_program(::google::protobuf::uint32 value);
108 
109  // required fixed32 stream = 2;
110  inline bool has_stream() const;
111  inline void clear_stream();
112  static const int kStreamFieldNumber = 2;
113  inline ::google::protobuf::uint32 stream() const;
114  inline void set_stream(::google::protobuf::uint32 value);
115 
116  // optional fixed32 version = 3 [default = 1701729619];
117  inline bool has_version() const;
118  inline void clear_version();
119  static const int kVersionFieldNumber = 3;
120  inline ::google::protobuf::uint32 version() const;
121  inline void set_version(::google::protobuf::uint32 value);
122 
123  // @@protoc_insertion_point(class_scope:bgs.protocol.resources.v1.ContentHandleRequest)
124  private:
125  inline void set_has_program();
126  inline void clear_has_program();
127  inline void set_has_stream();
128  inline void clear_has_stream();
129  inline void set_has_version();
130  inline void clear_has_version();
131 
133 
135  mutable int _cached_size_;
142 
143  void InitAsDefaultInstance();
145 };
146 // ===================================================================
147 
149 {
150  public:
151 
152  explicit ResourcesService(bool use_original_hash);
153  virtual ~ResourcesService();
154 
155  typedef std::integral_constant<uint32, 0xECBE75BAu> OriginalHash;
156  typedef std::integral_constant<uint32, 0x4B104C53u> NameHash;
157 
158  static google::protobuf::ServiceDescriptor const* descriptor();
159 
160  // client methods --------------------------------------------------
161 
162  void GetContentHandle(::bgs::protocol::resources::v1::ContentHandleRequest const* request, std::function<void(::bgs::protocol::ContentHandle const*)> responseCallback);
163  // server methods --------------------------------------------------
164 
165  void CallServerMethod(uint32 token, uint32 methodId, MessageBuffer buffer) override final;
166 
167  protected:
168  virtual uint32 HandleGetContentHandle(::bgs::protocol::resources::v1::ContentHandleRequest const* request, ::bgs::protocol::ContentHandle* response);
169 
170  private:
172 
174 };
175 
176 // ===================================================================
177 
178 
179 // ===================================================================
180 
181 // ContentHandleRequest
182 
183 // required fixed32 program = 1;
185  return (_has_bits_[0] & 0x00000001u) != 0;
186 }
188  _has_bits_[0] |= 0x00000001u;
189 }
191  _has_bits_[0] &= ~0x00000001u;
192 }
194  program_ = 0u;
196 }
198  // @@protoc_insertion_point(field_get:bgs.protocol.resources.v1.ContentHandleRequest.program)
199  return program_;
200 }
202  set_has_program();
203  program_ = value;
204  // @@protoc_insertion_point(field_set:bgs.protocol.resources.v1.ContentHandleRequest.program)
205 }
206 
207 // required fixed32 stream = 2;
208 inline bool ContentHandleRequest::has_stream() const {
209  return (_has_bits_[0] & 0x00000002u) != 0;
210 }
212  _has_bits_[0] |= 0x00000002u;
213 }
215  _has_bits_[0] &= ~0x00000002u;
216 }
218  stream_ = 0u;
220 }
222  // @@protoc_insertion_point(field_get:bgs.protocol.resources.v1.ContentHandleRequest.stream)
223  return stream_;
224 }
226  set_has_stream();
227  stream_ = value;
228  // @@protoc_insertion_point(field_set:bgs.protocol.resources.v1.ContentHandleRequest.stream)
229 }
230 
231 // optional fixed32 version = 3 [default = 1701729619];
233  return (_has_bits_[0] & 0x00000004u) != 0;
234 }
236  _has_bits_[0] |= 0x00000004u;
237 }
239  _has_bits_[0] &= ~0x00000004u;
240 }
242  version_ = 1701729619u;
244 }
246  // @@protoc_insertion_point(field_get:bgs.protocol.resources.v1.ContentHandleRequest.version)
247  return version_;
248 }
250  set_has_version();
251  version_ = value;
252  // @@protoc_insertion_point(field_set:bgs.protocol.resources.v1.ContentHandleRequest.version)
253 }
254 
255 
256 // @@protoc_insertion_point(namespace_scope)
257 
258 } // namespace v1
259 } // namespace resources
260 } // namespace protocol
261 } // namespace bgs
262 
263 #ifndef SWIG
264 namespace google {
265 namespace protobuf {
266 
267 
268 } // namespace google
269 } // namespace protobuf
270 #endif // SWIG
271 
272 // @@protoc_insertion_point(global_scope)
273 
274 #endif // PROTOBUF_resource_5fservice_2eproto__INCLUDED
void TC_SHARED_API protobuf_AddDesc_resource_5fservice_2eproto()
void set_has_version()
Definition: resource_service.pb.h:235
Definition: resource_service.pb.h:148
bool has_stream() const
Definition: resource_service.pb.h:208
::google::protobuf::uint32 stream_
Definition: resource_service.pb.h:137
Definition: Session.h:36
Definition: resource_service.pb.h:49
::google::protobuf::UnknownFieldSet _unknown_fields_
Definition: resource_service.pb.h:132
inline::google::protobuf::uint32 stream() const
Definition: resource_service.pb.h:221
void set_program(::google::protobuf::uint32 value)
Definition: resource_service.pb.h:201
Definition: unknown_field_set.h:74
uint8_t uint8
Definition: common.h:175
void clear_stream()
Definition: resource_service.pb.h:217
#define GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(TypeName)
Definition: common.h:89
void set_has_program()
Definition: resource_service.pb.h:187
Definition: descriptor.h:846
void clear_has_stream()
Definition: resource_service.pb.h:214
inline::google::protobuf::uint32 version() const
Definition: resource_service.pb.h:245
Definition: message.h:165
#define output
Definition: wire_format_lite.h:381
void clear_version()
Definition: resource_service.pb.h:241
Definition: coded_stream.h:156
ContentHandleRequest & operator=(const ContentHandleRequest &from)
Definition: resource_service.pb.h:56
void protobuf_AssignDesc_resource_5fservice_2eproto()
Definition: content_handle_types.pb.h:42
Definition: coded_stream.h:621
void set_has_stream()
Definition: resource_service.pb.h:211
bool has_program() const
Definition: resource_service.pb.h:184
Definition: message.h:150
int _cached_size_
Definition: resource_service.pb.h:135
#define input
Definition: wire_format_lite.h:242
uint32_t uint32
Definition: common.h:177
uint32_t uint32
Definition: Define.h:150
#define TC_SHARED_API
Definition: Define.h:128
::google::protobuf::uint32 program_
Definition: resource_service.pb.h:136
int GetCachedSize() const
Definition: resource_service.pb.h:90
::google::protobuf::uint32 version_
Definition: resource_service.pb.h:138
bool has_version() const
Definition: resource_service.pb.h:232
Definition: ServiceBase.h:34
std::integral_constant< uint32, 0x4B104C53u > NameHash
Definition: resource_service.pb.h:156
static ContentHandleRequest * default_instance_
Definition: resource_service.pb.h:144
void clear_has_version()
Definition: resource_service.pb.h:238
void clear_program()
Definition: resource_service.pb.h:193
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
Definition: resource_service.pb.h:61
inline::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
Definition: resource_service.pb.h:65
uint32 service_hash_
Definition: resource_service.pb.h:171
Definition: BnetFileGenerator.h:47
const FieldDescriptor value
Definition: descriptor.h:1522
void set_version(::google::protobuf::uint32 value)
Definition: resource_service.pb.h:249
uint32_t uint32
Definition: g3dmath.h:168
::google::protobuf::uint32 _has_bits_[1]
Definition: resource_service.pb.h:134
void protobuf_ShutdownFile_resource_5fservice_2eproto()
std::integral_constant< uint32, 0xECBE75BAu > OriginalHash
Definition: resource_service.pb.h:155
Definition: MessageBuffer.h:24
void clear_has_program()
Definition: resource_service.pb.h:190
void set_stream(::google::protobuf::uint32 value)
Definition: resource_service.pb.h:225
inline::google::protobuf::uint32 program() const
Definition: resource_service.pb.h:197