TrinityCore
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 // @@protoc_insertion_point(class_scope:bgs.protocol.report.v1.SendReportRequest)
101 private:
102 inline void set_has_report();
103 inline void clear_has_report();
104
105 ::google::protobuf::UnknownFieldSet _unknown_fields_;
106
108 mutable int _cached_size_;
113
116};
117// -------------------------------------------------------------------
118
119class TC_PROTO_API SubmitReportRequest : public ::google::protobuf::Message {
120 public:
123
125
127 CopyFrom(from);
128 return *this;
129 }
130
131 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
132 return _unknown_fields_;
133 }
134
135 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
136 return &_unknown_fields_;
137 }
138
139 static const ::google::protobuf::Descriptor* descriptor();
141
143
144 // implements Message ----------------------------------------------
145
147 int GetCachedSize() const { return _cached_size_; }
148 private:
151 void SetCachedSize(int size) const;
152 public:
153 ::google::protobuf::Metadata GetMetadata() const;
154
155 // nested types ----------------------------------------------------
156
157 // accessors -------------------------------------------------------
158
159 // optional .bgs.protocol.account.v1.GameAccountHandle agent_id = 1;
160 inline bool has_agent_id() const;
161 inline void clear_agent_id();
162 static const int kAgentIdFieldNumber = 1;
163 inline const ::bgs::protocol::account::v1::GameAccountHandle& agent_id() const;
164 inline ::bgs::protocol::account::v1::GameAccountHandle* mutable_agent_id();
165 inline ::bgs::protocol::account::v1::GameAccountHandle* release_agent_id();
166 inline void set_allocated_agent_id(::bgs::protocol::account::v1::GameAccountHandle* agent_id);
167
168 // optional .bgs.protocol.report.v1.ReportType report_type = 2;
169 inline bool has_report_type() const;
170 inline void clear_report_type();
171 static const int kReportTypeFieldNumber = 2;
172 inline const ::bgs::protocol::report::v1::ReportType& report_type() const;
175 inline void set_allocated_report_type(::bgs::protocol::report::v1::ReportType* report_type);
176
177 // @@protoc_insertion_point(class_scope:bgs.protocol.report.v1.SubmitReportRequest)
178 private:
179 inline void set_has_agent_id();
180 inline void clear_has_agent_id();
181 inline void set_has_report_type();
182 inline void clear_has_report_type();
183
184 ::google::protobuf::UnknownFieldSet _unknown_fields_;
185
187 mutable int _cached_size_;
193
196};
197// ===================================================================
198
200{
201 public:
202
203 explicit ReportService(bool use_original_hash);
204 ReportService(ReportService const&) = delete;
208 virtual ~ReportService();
209
210 typedef std::integral_constant<uint32, 0x7CAF61C9u> OriginalHash;
211 typedef std::integral_constant<uint32, 0x724F5F47u> NameHash;
212
213 static google::protobuf::ServiceDescriptor const* descriptor();
214
215 void CallServerMethod(uint32 token, uint32 methodId, MessageBuffer buffer) final;
216
217 protected:
218 // server methods --------------------------------------------------
219 virtual uint32 HandleSendReport(::bgs::protocol::report::v1::SendReportRequest const* request, ::bgs::protocol::NoData* response, std::function<void(ServiceBase*, uint32, ::google::protobuf::Message const*)>& continuation);
220 virtual uint32 HandleSubmitReport(::bgs::protocol::report::v1::SubmitReportRequest const* request, ::bgs::protocol::NoData* response, std::function<void(ServiceBase*, uint32, ::google::protobuf::Message const*)>& continuation);
221
222 private:
223 void ParseAndHandleSendReport(uint32 token, uint32 methodId, MessageBuffer& buffer);
225};
226
227// ===================================================================
228
229// ===================================================================
230
231// SendReportRequest
232
233// required .bgs.protocol.report.v1.Report report = 1;
234inline bool SendReportRequest::has_report() const {
235 return (_has_bits_[0] & 0x00000001u) != 0;
236}
238 _has_bits_[0] |= 0x00000001u;
239}
241 _has_bits_[0] &= ~0x00000001u;
242}
244 if (report_ != NULL) report_->::bgs::protocol::report::v1::Report::Clear();
246}
247inline const ::bgs::protocol::report::v1::Report& SendReportRequest::report() const {
248 // @@protoc_insertion_point(field_get:bgs.protocol.report.v1.SendReportRequest.report)
249 return report_ != NULL ? *report_ : *default_instance_->report_;
250}
251inline ::bgs::protocol::report::v1::Report* SendReportRequest::mutable_report() {
253 if (report_ == NULL) report_ = new ::bgs::protocol::report::v1::Report;
254 // @@protoc_insertion_point(field_mutable:bgs.protocol.report.v1.SendReportRequest.report)
255 return report_;
256}
257inline ::bgs::protocol::report::v1::Report* SendReportRequest::release_report() {
260 report_ = NULL;
261 return temp;
262}
264 delete report_;
265 report_ = report;
266 if (report) {
268 } else {
270 }
271 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.report.v1.SendReportRequest.report)
272}
273
274// -------------------------------------------------------------------
275
276// SubmitReportRequest
277
278// optional .bgs.protocol.account.v1.GameAccountHandle agent_id = 1;
280 return (_has_bits_[0] & 0x00000001u) != 0;
281}
283 _has_bits_[0] |= 0x00000001u;
284}
286 _has_bits_[0] &= ~0x00000001u;
287}
289 if (agent_id_ != NULL) agent_id_->::bgs::protocol::account::v1::GameAccountHandle::Clear();
291}
292inline const ::bgs::protocol::account::v1::GameAccountHandle& SubmitReportRequest::agent_id() const {
293 // @@protoc_insertion_point(field_get:bgs.protocol.report.v1.SubmitReportRequest.agent_id)
294 return agent_id_ != NULL ? *agent_id_ : *default_instance_->agent_id_;
295}
296inline ::bgs::protocol::account::v1::GameAccountHandle* SubmitReportRequest::mutable_agent_id() {
298 if (agent_id_ == NULL) agent_id_ = new ::bgs::protocol::account::v1::GameAccountHandle;
299 // @@protoc_insertion_point(field_mutable:bgs.protocol.report.v1.SubmitReportRequest.agent_id)
300 return agent_id_;
301}
302inline ::bgs::protocol::account::v1::GameAccountHandle* SubmitReportRequest::release_agent_id() {
305 agent_id_ = NULL;
306 return temp;
307}
309 delete agent_id_;
311 if (agent_id) {
313 } else {
315 }
316 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.report.v1.SubmitReportRequest.agent_id)
317}
318
319// optional .bgs.protocol.report.v1.ReportType report_type = 2;
321 return (_has_bits_[0] & 0x00000002u) != 0;
322}
324 _has_bits_[0] |= 0x00000002u;
325}
327 _has_bits_[0] &= ~0x00000002u;
328}
330 if (report_type_ != NULL) report_type_->::bgs::protocol::report::v1::ReportType::Clear();
332}
334 // @@protoc_insertion_point(field_get:bgs.protocol.report.v1.SubmitReportRequest.report_type)
336}
340 // @@protoc_insertion_point(field_mutable:bgs.protocol.report.v1.SubmitReportRequest.report_type)
341 return report_type_;
342}
346 report_type_ = NULL;
347 return temp;
348}
350 delete report_type_;
352 if (report_type) {
354 } else {
356 }
357 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.report.v1.SubmitReportRequest.report_type)
358}
359
360// @@protoc_insertion_point(namespace_scope)
361
362} // namespace v1
363} // namespace report
364} // namespace protocol
365} // namespace bgs
366
367#ifndef SWIG
368namespace google {
369namespace protobuf {
370} // namespace google
371} // namespace protobuf
372#endif // SWIG
373
374// @@protoc_insertion_point(global_scope)
375
376#endif // PROTOBUF_report_5fservice_2eproto__INCLUDED
#define TC_PROTO_API
Definition: Define.h:105
uint32_t uint32
Definition: Define.h:142
ReportType
Definition: SupportMgr.h:29
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
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()
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)
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()
::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
constexpr std::size_t size()
Definition: UpdateField.h:796
void protobuf_AssignDesc_report_5fservice_2eproto()
void TC_PROTO_API protobuf_AddDesc_report_5fservice_2eproto()
void protobuf_ShutdownFile_report_5fservice_2eproto()
Definition: Session.h:36