TrinityCore
Loading...
Searching...
No Matches
report_service.pb.h
Go to the documentation of this file.
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: report_service.proto
3
4#ifndef PROTOBUF_report_5fservice_2eproto__INCLUDED
5#define PROTOBUF_report_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>
27#include "account_types.pb.h"
28#include "report_types.pb.h"
29#include "rpc_types.pb.h"
30#include "ServiceBase.h"
31#include "MessageBuffer.h"
32#include <functional>
33#include <type_traits>
34// @@protoc_insertion_point(includes)
35
36namespace bgs {
37namespace protocol {
38namespace report {
39namespace v1 {
40
41// Internal implementation detail -- do not call these.
45
48
49// ===================================================================
50
51class TC_PROTO_API SendReportRequest : 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
74 void Swap(SendReportRequest* other);
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 .bgs.protocol.report.v1.Report report = 1;
92 inline bool has_report() const;
93 inline void clear_report();
94 static const int kReportFieldNumber = 1;
95 inline const ::bgs::protocol::report::v1::Report& report() const;
96 inline ::bgs::protocol::report::v1::Report* mutable_report();
97 inline ::bgs::protocol::report::v1::Report* release_report();
98 inline void set_allocated_report(::bgs::protocol::report::v1::Report* report);
99
100 // optional uint32 program = 2;
101 inline bool has_program() const;
102 inline void clear_program();
103 static const int kProgramFieldNumber = 2;
104 inline ::google::protobuf::uint32 program() const;
105 inline void set_program(::google::protobuf::uint32 value);
106
107 // @@protoc_insertion_point(class_scope:bgs.protocol.report.v1.SendReportRequest)
108 private:
109 inline void set_has_report();
110 inline void clear_has_report();
111 inline void set_has_program();
112 inline void clear_has_program();
113
114 ::google::protobuf::UnknownFieldSet _unknown_fields_;
115
116 ::google::protobuf::uint32 _has_bits_[1];
117 mutable int _cached_size_;
119 ::google::protobuf::uint32 program_;
123
126};
127// -------------------------------------------------------------------
128
129class TC_PROTO_API SubmitReportRequest : public ::google::protobuf::Message {
130 public:
133
135
137 CopyFrom(from);
138 return *this;
139 }
140
141 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
142 return _unknown_fields_;
143 }
144
145 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
146 return &_unknown_fields_;
147 }
148
149 static const ::google::protobuf::Descriptor* descriptor();
151
153
154 // implements Message ----------------------------------------------
155
157 int GetCachedSize() const { return _cached_size_; }
158 private:
161 void SetCachedSize(int size) const;
162 public:
163 ::google::protobuf::Metadata GetMetadata() const;
164
165 // nested types ----------------------------------------------------
166
167 // accessors -------------------------------------------------------
168
169 // optional .bgs.protocol.account.v1.GameAccountHandle agent_id = 1;
170 inline bool has_agent_id() const;
171 inline void clear_agent_id();
172 static const int kAgentIdFieldNumber = 1;
173 inline const ::bgs::protocol::account::v1::GameAccountHandle& agent_id() const;
174 inline ::bgs::protocol::account::v1::GameAccountHandle* mutable_agent_id();
175 inline ::bgs::protocol::account::v1::GameAccountHandle* release_agent_id();
176 inline void set_allocated_agent_id(::bgs::protocol::account::v1::GameAccountHandle* agent_id);
177
178 // optional .bgs.protocol.report.v1.ReportType report_type = 2;
179 inline bool has_report_type() const;
180 inline void clear_report_type();
181 static const int kReportTypeFieldNumber = 2;
182 inline const ::bgs::protocol::report::v1::ReportType& report_type() const;
183 inline ::bgs::protocol::report::v1::ReportType* mutable_report_type();
184 inline ::bgs::protocol::report::v1::ReportType* release_report_type();
185 inline void set_allocated_report_type(::bgs::protocol::report::v1::ReportType* report_type);
186
187 // optional uint32 program = 3;
188 inline bool has_program() const;
189 inline void clear_program();
190 static const int kProgramFieldNumber = 3;
191 inline ::google::protobuf::uint32 program() const;
192 inline void set_program(::google::protobuf::uint32 value);
193
194 // @@protoc_insertion_point(class_scope:bgs.protocol.report.v1.SubmitReportRequest)
195 private:
196 inline void set_has_agent_id();
197 inline void clear_has_agent_id();
198 inline void set_has_report_type();
199 inline void clear_has_report_type();
200 inline void set_has_program();
201 inline void clear_has_program();
202
203 ::google::protobuf::UnknownFieldSet _unknown_fields_;
204
205 ::google::protobuf::uint32 _has_bits_[1];
206 mutable int _cached_size_;
209 ::google::protobuf::uint32 program_;
213
216};
217// ===================================================================
218
220{
221 public:
222
223 explicit ReportService(bool use_original_hash);
224 ReportService(ReportService const&) = delete;
228 virtual ~ReportService();
229
230 typedef std::integral_constant<uint32, 0x7CAF61C9u> OriginalHash;
231 typedef std::integral_constant<uint32, 0x724F5F47u> NameHash;
232
233 static google::protobuf::ServiceDescriptor const* descriptor();
234
235 void CallServerMethod(uint32 token, uint32 methodId, MessageBuffer buffer) final;
236
237 protected:
238 // server methods --------------------------------------------------
239 virtual uint32 HandleSendReport(::bgs::protocol::report::v1::SendReportRequest const* request, ::bgs::protocol::NoData* response, std::function<void(ServiceBase*, uint32, ::google::protobuf::Message const*)>& continuation);
240 virtual uint32 HandleSubmitReport(::bgs::protocol::report::v1::SubmitReportRequest const* request, ::bgs::protocol::NoData* response, std::function<void(ServiceBase*, uint32, ::google::protobuf::Message const*)>& continuation);
241
242 private:
243 void ParseAndHandleSendReport(uint32 token, uint32 methodId, MessageBuffer& buffer);
245};
246
247// ===================================================================
248
249// ===================================================================
250
251// SendReportRequest
252
253// required .bgs.protocol.report.v1.Report report = 1;
254inline bool SendReportRequest::has_report() const {
255 return (_has_bits_[0] & 0x00000001u) != 0;
256}
258 _has_bits_[0] |= 0x00000001u;
259}
261 _has_bits_[0] &= ~0x00000001u;
262}
264 if (report_ != NULL) report_->::bgs::protocol::report::v1::Report::Clear();
266}
267inline const ::bgs::protocol::report::v1::Report& SendReportRequest::report() const {
268 // @@protoc_insertion_point(field_get:bgs.protocol.report.v1.SendReportRequest.report)
269 return report_ != NULL ? *report_ : *default_instance_->report_;
270}
271inline ::bgs::protocol::report::v1::Report* SendReportRequest::mutable_report() {
273 if (report_ == NULL) report_ = new ::bgs::protocol::report::v1::Report;
274 // @@protoc_insertion_point(field_mutable:bgs.protocol.report.v1.SendReportRequest.report)
275 return report_;
276}
277inline ::bgs::protocol::report::v1::Report* SendReportRequest::release_report() {
280 report_ = NULL;
281 return temp;
282}
284 delete report_;
285 report_ = report;
286 if (report) {
288 } else {
290 }
291 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.report.v1.SendReportRequest.report)
292}
293
294// optional uint32 program = 2;
296 return (_has_bits_[0] & 0x00000002u) != 0;
297}
299 _has_bits_[0] |= 0x00000002u;
300}
302 _has_bits_[0] &= ~0x00000002u;
303}
305 program_ = 0u;
307}
308inline ::google::protobuf::uint32 SendReportRequest::program() const {
309 // @@protoc_insertion_point(field_get:bgs.protocol.report.v1.SendReportRequest.program)
310 return program_;
311}
312inline void SendReportRequest::set_program(::google::protobuf::uint32 value) {
314 program_ = value;
315 // @@protoc_insertion_point(field_set:bgs.protocol.report.v1.SendReportRequest.program)
316}
317
318// -------------------------------------------------------------------
319
320// SubmitReportRequest
321
322// optional .bgs.protocol.account.v1.GameAccountHandle agent_id = 1;
324 return (_has_bits_[0] & 0x00000001u) != 0;
325}
327 _has_bits_[0] |= 0x00000001u;
328}
330 _has_bits_[0] &= ~0x00000001u;
331}
333 if (agent_id_ != NULL) agent_id_->::bgs::protocol::account::v1::GameAccountHandle::Clear();
335}
336inline const ::bgs::protocol::account::v1::GameAccountHandle& SubmitReportRequest::agent_id() const {
337 // @@protoc_insertion_point(field_get:bgs.protocol.report.v1.SubmitReportRequest.agent_id)
338 return agent_id_ != NULL ? *agent_id_ : *default_instance_->agent_id_;
339}
340inline ::bgs::protocol::account::v1::GameAccountHandle* SubmitReportRequest::mutable_agent_id() {
342 if (agent_id_ == NULL) agent_id_ = new ::bgs::protocol::account::v1::GameAccountHandle;
343 // @@protoc_insertion_point(field_mutable:bgs.protocol.report.v1.SubmitReportRequest.agent_id)
344 return agent_id_;
345}
346inline ::bgs::protocol::account::v1::GameAccountHandle* SubmitReportRequest::release_agent_id() {
349 agent_id_ = NULL;
350 return temp;
351}
353 delete agent_id_;
355 if (agent_id) {
357 } else {
359 }
360 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.report.v1.SubmitReportRequest.agent_id)
361}
362
363// optional .bgs.protocol.report.v1.ReportType report_type = 2;
365 return (_has_bits_[0] & 0x00000002u) != 0;
366}
368 _has_bits_[0] |= 0x00000002u;
369}
371 _has_bits_[0] &= ~0x00000002u;
372}
374 if (report_type_ != NULL) report_type_->::bgs::protocol::report::v1::ReportType::Clear();
376}
377inline const ::bgs::protocol::report::v1::ReportType& SubmitReportRequest::report_type() const {
378 // @@protoc_insertion_point(field_get:bgs.protocol.report.v1.SubmitReportRequest.report_type)
380}
381inline ::bgs::protocol::report::v1::ReportType* SubmitReportRequest::mutable_report_type() {
383 if (report_type_ == NULL) report_type_ = new ::bgs::protocol::report::v1::ReportType;
384 // @@protoc_insertion_point(field_mutable:bgs.protocol.report.v1.SubmitReportRequest.report_type)
385 return report_type_;
386}
387inline ::bgs::protocol::report::v1::ReportType* SubmitReportRequest::release_report_type() {
390 report_type_ = NULL;
391 return temp;
392}
394 delete report_type_;
396 if (report_type) {
398 } else {
400 }
401 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.report.v1.SubmitReportRequest.report_type)
402}
403
404// optional uint32 program = 3;
406 return (_has_bits_[0] & 0x00000004u) != 0;
407}
409 _has_bits_[0] |= 0x00000004u;
410}
412 _has_bits_[0] &= ~0x00000004u;
413}
418inline ::google::protobuf::uint32 SubmitReportRequest::program() const {
419 // @@protoc_insertion_point(field_get:bgs.protocol.report.v1.SubmitReportRequest.program)
420 return program_;
421}
422inline void SubmitReportRequest::set_program(::google::protobuf::uint32 value) {
424 program_ = value;
425 // @@protoc_insertion_point(field_set:bgs.protocol.report.v1.SubmitReportRequest.program)
426}
427
428// @@protoc_insertion_point(namespace_scope)
429
430} // namespace v1
431} // namespace report
432} // namespace protocol
433} // namespace bgs
434
435#ifndef SWIG
436namespace google {
437namespace protobuf {
438} // namespace google
439} // namespace protobuf
440#endif // SWIG
441
442// @@protoc_insertion_point(global_scope)
443
444#endif // PROTOBUF_report_5fservice_2eproto__INCLUDED
#define TC_PROTO_API
Definition Define.h:105
uint32_t uint32
Definition Define.h:154
virtual uint32 HandleSubmitReport(::bgs::protocol::report::v1::SubmitReportRequest const *request, ::bgs::protocol::NoData *response, std::function< void(ServiceBase *, uint32, ::google::protobuf::Message const *)> &continuation)
ReportService & operator=(ReportService const &)=delete
void ParseAndHandleSubmitReport(uint32 token, uint32 methodId, MessageBuffer &buffer)
std::integral_constant< uint32, 0x724F5F47u > NameHash
void CallServerMethod(uint32 token, uint32 methodId, MessageBuffer buffer) final
ReportService(bool use_original_hash)
std::integral_constant< uint32, 0x7CAF61C9u > OriginalHash
ReportService & operator=(ReportService &&)=delete
virtual uint32 HandleSendReport(::bgs::protocol::report::v1::SendReportRequest const *request, ::bgs::protocol::NoData *response, std::function< void(ServiceBase *, uint32, ::google::protobuf::Message const *)> &continuation)
void ParseAndHandleSendReport(uint32 token, uint32 methodId, MessageBuffer &buffer)
ReportService(ReportService const &)=delete
ReportService(ReportService &&)=delete
static google::protobuf::ServiceDescriptor const * descriptor()
const ::bgs::protocol::report::v1::Report & report() const
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
void set_program(::google::protobuf::uint32 value)
static const ::google::protobuf::Descriptor * descriptor()
static const SendReportRequest & default_instance()
SendReportRequest & operator=(const SendReportRequest &from)
::bgs::protocol::report::v1::Report * report_
inline ::bgs::protocol::report::v1::Report * release_report()
void set_allocated_report(::bgs::protocol::report::v1::Report *report)
SendReportRequest(const SendReportRequest &from)
friend void TC_PROTO_API protobuf_AddDesc_report_5fservice_2eproto()
inline ::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
inline ::google::protobuf::uint32 program() const
void Swap(SendReportRequest *other)
inline ::bgs::protocol::report::v1::Report * mutable_report()
::google::protobuf::UnknownFieldSet _unknown_fields_
::google::protobuf::Metadata GetMetadata() const
const ::bgs::protocol::report::v1::ReportType & report_type() const
inline ::bgs::protocol::report::v1::ReportType * release_report_type()
inline ::bgs::protocol::report::v1::ReportType * mutable_report_type()
inline ::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
static const SubmitReportRequest & default_instance()
void Swap(SubmitReportRequest *other)
void set_program(::google::protobuf::uint32 value)
SubmitReportRequest(const SubmitReportRequest &from)
void set_allocated_report_type(::bgs::protocol::report::v1::ReportType *report_type)
const ::bgs::protocol::account::v1::GameAccountHandle & agent_id() const
::google::protobuf::Metadata GetMetadata() const
friend void TC_PROTO_API protobuf_AddDesc_report_5fservice_2eproto()
static const ::google::protobuf::Descriptor * descriptor()
inline ::google::protobuf::uint32 program() const
::bgs::protocol::account::v1::GameAccountHandle * agent_id_
::google::protobuf::UnknownFieldSet _unknown_fields_
inline ::bgs::protocol::account::v1::GameAccountHandle * mutable_agent_id()
SubmitReportRequest & operator=(const SubmitReportRequest &from)
inline ::bgs::protocol::account::v1::GameAccountHandle * release_agent_id()
void set_allocated_agent_id(::bgs::protocol::account::v1::GameAccountHandle *agent_id)
::bgs::protocol::report::v1::ReportType * report_type_
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
void protobuf_AssignDesc_report_5fservice_2eproto()
void TC_PROTO_API protobuf_AddDesc_report_5fservice_2eproto()
void protobuf_ShutdownFile_report_5fservice_2eproto()
Definition Session.h:37