TrinityCore
challenge_service.pb.h
Go to the documentation of this file.
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: challenge_service.proto
3
4#ifndef PROTOBUF_challenge_5fservice_2eproto__INCLUDED
5#define PROTOBUF_challenge_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 "rpc_types.pb.h"
28#include "ServiceBase.h"
29#include "MessageBuffer.h"
30#include <functional>
31#include <type_traits>
32// @@protoc_insertion_point(includes)
33
34namespace bgs {
35namespace protocol {
36namespace challenge {
37namespace v1 {
38
39// Internal implementation detail -- do not call these.
43
46
47// ===================================================================
48
49class TC_PROTO_API ChallengeExternalRequest : public ::google::protobuf::Message {
50 public:
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();
71
73
74 // implements Message ----------------------------------------------
75
77 int GetCachedSize() const { return _cached_size_; }
78 private:
79 void SharedCtor();
80 void SharedDtor();
81 void SetCachedSize(int size) const;
82 public:
83 ::google::protobuf::Metadata GetMetadata() const;
84
85 // nested types ----------------------------------------------------
86
87 // accessors -------------------------------------------------------
88
89 // optional string request_token = 1;
90 inline bool has_request_token() const;
91 inline void clear_request_token();
92 static const int kRequestTokenFieldNumber = 1;
93 inline const ::std::string& request_token() const;
94 inline void set_request_token(const ::std::string& value);
95 inline void set_request_token(const char* value);
96 inline void set_request_token(const char* value, size_t size);
97 inline ::std::string* mutable_request_token();
98 inline ::std::string* release_request_token();
99 inline void set_allocated_request_token(::std::string* request_token);
100
101 // optional string payload_type = 2;
102 inline bool has_payload_type() const;
103 inline void clear_payload_type();
104 static const int kPayloadTypeFieldNumber = 2;
105 inline const ::std::string& payload_type() const;
106 inline void set_payload_type(const ::std::string& value);
107 inline void set_payload_type(const char* value);
108 inline void set_payload_type(const char* value, size_t size);
109 inline ::std::string* mutable_payload_type();
110 inline ::std::string* release_payload_type();
111 inline void set_allocated_payload_type(::std::string* payload_type);
112
113 // optional bytes payload = 3;
114 inline bool has_payload() const;
115 inline void clear_payload();
116 static const int kPayloadFieldNumber = 3;
117 inline const ::std::string& payload() const;
118 inline void set_payload(const ::std::string& value);
119 inline void set_payload(const char* value);
120 inline void set_payload(const void* value, size_t size);
121 inline ::std::string* mutable_payload();
122 inline ::std::string* release_payload();
123 inline void set_allocated_payload(::std::string* payload);
124
125 // @@protoc_insertion_point(class_scope:bgs.protocol.challenge.v1.ChallengeExternalRequest)
126 private:
127 inline void set_has_request_token();
128 inline void clear_has_request_token();
129 inline void set_has_payload_type();
130 inline void clear_has_payload_type();
131 inline void set_has_payload();
132 inline void clear_has_payload();
133
134 ::google::protobuf::UnknownFieldSet _unknown_fields_;
135
137 mutable int _cached_size_;
138 ::std::string* request_token_;
139 ::std::string* payload_type_;
140 ::std::string* payload_;
144
147};
148// -------------------------------------------------------------------
149
150class TC_PROTO_API ChallengeExternalResult : public ::google::protobuf::Message {
151 public:
154
156
158 CopyFrom(from);
159 return *this;
160 }
161
162 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
163 return _unknown_fields_;
164 }
165
166 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
167 return &_unknown_fields_;
168 }
169
170 static const ::google::protobuf::Descriptor* descriptor();
172
174
175 // implements Message ----------------------------------------------
176
178 int GetCachedSize() const { return _cached_size_; }
179 private:
182 void SetCachedSize(int size) const;
183 public:
184 ::google::protobuf::Metadata GetMetadata() const;
185
186 // nested types ----------------------------------------------------
187
188 // accessors -------------------------------------------------------
189
190 // optional string request_token = 1;
191 inline bool has_request_token() const;
192 inline void clear_request_token();
193 static const int kRequestTokenFieldNumber = 1;
194 inline const ::std::string& request_token() const;
195 inline void set_request_token(const ::std::string& value);
196 inline void set_request_token(const char* value);
197 inline void set_request_token(const char* value, size_t size);
198 inline ::std::string* mutable_request_token();
199 inline ::std::string* release_request_token();
200 inline void set_allocated_request_token(::std::string* request_token);
201
202 // optional bool passed = 2 [default = true];
203 inline bool has_passed() const;
204 inline void clear_passed();
205 static const int kPassedFieldNumber = 2;
206 inline bool passed() const;
207 inline void set_passed(bool value);
208
209 // @@protoc_insertion_point(class_scope:bgs.protocol.challenge.v1.ChallengeExternalResult)
210 private:
211 inline void set_has_request_token();
212 inline void clear_has_request_token();
213 inline void set_has_passed();
214 inline void clear_has_passed();
215
216 ::google::protobuf::UnknownFieldSet _unknown_fields_;
217
219 mutable int _cached_size_;
220 ::std::string* request_token_;
225
228};
229// ===================================================================
230
232{
233 public:
234
235 explicit ChallengeListener(bool use_original_hash);
241
242 typedef std::integral_constant<uint32, 0xBBDA171Fu> OriginalHash;
243 typedef std::integral_constant<uint32, 0xC6D90AB8u> NameHash;
244
245 static google::protobuf::ServiceDescriptor const* descriptor();
246
247 // client methods --------------------------------------------------
248 void OnExternalChallenge(::bgs::protocol::challenge::v1::ChallengeExternalRequest const* request, bool client = false, bool server = false);
249 void OnExternalChallengeResult(::bgs::protocol::challenge::v1::ChallengeExternalResult const* request, bool client = false, bool server = false);
250
251 void CallServerMethod(uint32 token, uint32 methodId, MessageBuffer buffer) final;
252};
253
254// ===================================================================
255
256// ===================================================================
257
258// ChallengeExternalRequest
259
260// optional string request_token = 1;
262 return (_has_bits_[0] & 0x00000001u) != 0;
263}
265 _has_bits_[0] |= 0x00000001u;
266}
268 _has_bits_[0] &= ~0x00000001u;
269}
271 if (request_token_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
272 request_token_->clear();
273 }
275}
276inline const ::std::string& ChallengeExternalRequest::request_token() const {
277 // @@protoc_insertion_point(field_get:bgs.protocol.challenge.v1.ChallengeExternalRequest.request_token)
278 return *request_token_;
279}
280inline void ChallengeExternalRequest::set_request_token(const ::std::string& value) {
282 if (request_token_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
283 request_token_ = new ::std::string;
284 }
285 request_token_->assign(value);
286 // @@protoc_insertion_point(field_set:bgs.protocol.challenge.v1.ChallengeExternalRequest.request_token)
287}
288inline void ChallengeExternalRequest::set_request_token(const char* value) {
290 if (request_token_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
291 request_token_ = new ::std::string;
292 }
293 request_token_->assign(value);
294 // @@protoc_insertion_point(field_set_char:bgs.protocol.challenge.v1.ChallengeExternalRequest.request_token)
295}
296inline void ChallengeExternalRequest::set_request_token(const char* value, size_t size) {
298 if (request_token_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
299 request_token_ = new ::std::string;
300 }
301 request_token_->assign(reinterpret_cast<const char*>(value), size);
302 // @@protoc_insertion_point(field_set_pointer:bgs.protocol.challenge.v1.ChallengeExternalRequest.request_token)
303}
306 if (request_token_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
307 request_token_ = new ::std::string;
308 }
309 // @@protoc_insertion_point(field_mutable:bgs.protocol.challenge.v1.ChallengeExternalRequest.request_token)
310 return request_token_;
311}
314 if (request_token_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
315 return NULL;
316 } else {
317 ::std::string* temp = request_token_;
318 request_token_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
319 return temp;
320 }
321}
322inline void ChallengeExternalRequest::set_allocated_request_token(::std::string* request_token) {
323 if (request_token_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
324 delete request_token_;
325 }
326 if (request_token) {
329 } else {
331 request_token_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
332 }
333 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.challenge.v1.ChallengeExternalRequest.request_token)
334}
335
336// optional string payload_type = 2;
338 return (_has_bits_[0] & 0x00000002u) != 0;
339}
341 _has_bits_[0] |= 0x00000002u;
342}
344 _has_bits_[0] &= ~0x00000002u;
345}
347 if (payload_type_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
348 payload_type_->clear();
349 }
351}
352inline const ::std::string& ChallengeExternalRequest::payload_type() const {
353 // @@protoc_insertion_point(field_get:bgs.protocol.challenge.v1.ChallengeExternalRequest.payload_type)
354 return *payload_type_;
355}
356inline void ChallengeExternalRequest::set_payload_type(const ::std::string& value) {
358 if (payload_type_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
359 payload_type_ = new ::std::string;
360 }
361 payload_type_->assign(value);
362 // @@protoc_insertion_point(field_set:bgs.protocol.challenge.v1.ChallengeExternalRequest.payload_type)
363}
364inline void ChallengeExternalRequest::set_payload_type(const char* value) {
366 if (payload_type_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
367 payload_type_ = new ::std::string;
368 }
369 payload_type_->assign(value);
370 // @@protoc_insertion_point(field_set_char:bgs.protocol.challenge.v1.ChallengeExternalRequest.payload_type)
371}
372inline void ChallengeExternalRequest::set_payload_type(const char* value, size_t size) {
374 if (payload_type_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
375 payload_type_ = new ::std::string;
376 }
377 payload_type_->assign(reinterpret_cast<const char*>(value), size);
378 // @@protoc_insertion_point(field_set_pointer:bgs.protocol.challenge.v1.ChallengeExternalRequest.payload_type)
379}
382 if (payload_type_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
383 payload_type_ = new ::std::string;
384 }
385 // @@protoc_insertion_point(field_mutable:bgs.protocol.challenge.v1.ChallengeExternalRequest.payload_type)
386 return payload_type_;
387}
390 if (payload_type_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
391 return NULL;
392 } else {
393 ::std::string* temp = payload_type_;
394 payload_type_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
395 return temp;
396 }
397}
398inline void ChallengeExternalRequest::set_allocated_payload_type(::std::string* payload_type) {
399 if (payload_type_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
400 delete payload_type_;
401 }
402 if (payload_type) {
405 } else {
407 payload_type_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
408 }
409 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.challenge.v1.ChallengeExternalRequest.payload_type)
410}
411
412// optional bytes payload = 3;
414 return (_has_bits_[0] & 0x00000004u) != 0;
415}
417 _has_bits_[0] |= 0x00000004u;
418}
420 _has_bits_[0] &= ~0x00000004u;
421}
423 if (payload_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
424 payload_->clear();
425 }
427}
428inline const ::std::string& ChallengeExternalRequest::payload() const {
429 // @@protoc_insertion_point(field_get:bgs.protocol.challenge.v1.ChallengeExternalRequest.payload)
430 return *payload_;
431}
432inline void ChallengeExternalRequest::set_payload(const ::std::string& value) {
434 if (payload_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
435 payload_ = new ::std::string;
436 }
437 payload_->assign(value);
438 // @@protoc_insertion_point(field_set:bgs.protocol.challenge.v1.ChallengeExternalRequest.payload)
439}
440inline void ChallengeExternalRequest::set_payload(const char* value) {
442 if (payload_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
443 payload_ = new ::std::string;
444 }
445 payload_->assign(value);
446 // @@protoc_insertion_point(field_set_char:bgs.protocol.challenge.v1.ChallengeExternalRequest.payload)
447}
448inline void ChallengeExternalRequest::set_payload(const void* value, size_t size) {
450 if (payload_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
451 payload_ = new ::std::string;
452 }
453 payload_->assign(reinterpret_cast<const char*>(value), size);
454 // @@protoc_insertion_point(field_set_pointer:bgs.protocol.challenge.v1.ChallengeExternalRequest.payload)
455}
458 if (payload_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
459 payload_ = new ::std::string;
460 }
461 // @@protoc_insertion_point(field_mutable:bgs.protocol.challenge.v1.ChallengeExternalRequest.payload)
462 return payload_;
463}
466 if (payload_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
467 return NULL;
468 } else {
469 ::std::string* temp = payload_;
470 payload_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
471 return temp;
472 }
473}
474inline void ChallengeExternalRequest::set_allocated_payload(::std::string* payload) {
475 if (payload_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
476 delete payload_;
477 }
478 if (payload) {
481 } else {
483 payload_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
484 }
485 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.challenge.v1.ChallengeExternalRequest.payload)
486}
487
488// -------------------------------------------------------------------
489
490// ChallengeExternalResult
491
492// optional string request_token = 1;
494 return (_has_bits_[0] & 0x00000001u) != 0;
495}
497 _has_bits_[0] |= 0x00000001u;
498}
500 _has_bits_[0] &= ~0x00000001u;
501}
503 if (request_token_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
504 request_token_->clear();
505 }
507}
508inline const ::std::string& ChallengeExternalResult::request_token() const {
509 // @@protoc_insertion_point(field_get:bgs.protocol.challenge.v1.ChallengeExternalResult.request_token)
510 return *request_token_;
511}
512inline void ChallengeExternalResult::set_request_token(const ::std::string& value) {
514 if (request_token_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
515 request_token_ = new ::std::string;
516 }
517 request_token_->assign(value);
518 // @@protoc_insertion_point(field_set:bgs.protocol.challenge.v1.ChallengeExternalResult.request_token)
519}
520inline void ChallengeExternalResult::set_request_token(const char* value) {
522 if (request_token_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
523 request_token_ = new ::std::string;
524 }
525 request_token_->assign(value);
526 // @@protoc_insertion_point(field_set_char:bgs.protocol.challenge.v1.ChallengeExternalResult.request_token)
527}
528inline void ChallengeExternalResult::set_request_token(const char* value, size_t size) {
530 if (request_token_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
531 request_token_ = new ::std::string;
532 }
533 request_token_->assign(reinterpret_cast<const char*>(value), size);
534 // @@protoc_insertion_point(field_set_pointer:bgs.protocol.challenge.v1.ChallengeExternalResult.request_token)
535}
538 if (request_token_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
539 request_token_ = new ::std::string;
540 }
541 // @@protoc_insertion_point(field_mutable:bgs.protocol.challenge.v1.ChallengeExternalResult.request_token)
542 return request_token_;
543}
546 if (request_token_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
547 return NULL;
548 } else {
549 ::std::string* temp = request_token_;
550 request_token_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
551 return temp;
552 }
553}
554inline void ChallengeExternalResult::set_allocated_request_token(::std::string* request_token) {
555 if (request_token_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
556 delete request_token_;
557 }
558 if (request_token) {
561 } else {
563 request_token_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
564 }
565 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.challenge.v1.ChallengeExternalResult.request_token)
566}
567
568// optional bool passed = 2 [default = true];
570 return (_has_bits_[0] & 0x00000002u) != 0;
571}
573 _has_bits_[0] |= 0x00000002u;
574}
576 _has_bits_[0] &= ~0x00000002u;
577}
579 passed_ = true;
581}
583 // @@protoc_insertion_point(field_get:bgs.protocol.challenge.v1.ChallengeExternalResult.passed)
584 return passed_;
585}
586inline void ChallengeExternalResult::set_passed(bool value) {
588 passed_ = value;
589 // @@protoc_insertion_point(field_set:bgs.protocol.challenge.v1.ChallengeExternalResult.passed)
590}
591
592// @@protoc_insertion_point(namespace_scope)
593
594} // namespace v1
595} // namespace challenge
596} // namespace protocol
597} // namespace bgs
598
599#ifndef SWIG
600namespace google {
601namespace protobuf {
602} // namespace google
603} // namespace protobuf
604#endif // SWIG
605
606// @@protoc_insertion_point(global_scope)
607
608#endif // PROTOBUF_challenge_5fservice_2eproto__INCLUDED
#define TC_PROTO_API
Definition: Define.h:105
uint32_t uint32
Definition: Define.h:142
void Swap(ChallengeExternalRequest *other)
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
friend void TC_PROTO_API protobuf_AddDesc_challenge_5fservice_2eproto()
void set_allocated_request_token(::std::string *request_token)
ChallengeExternalRequest & operator=(const ChallengeExternalRequest &from)
static const ChallengeExternalRequest & default_instance()
ChallengeExternalRequest(const ChallengeExternalRequest &from)
static const ::google::protobuf::Descriptor * descriptor()
inline ::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
::google::protobuf::Metadata GetMetadata() const
void set_allocated_payload_type(::std::string *payload_type)
ChallengeExternalResult & operator=(const ChallengeExternalResult &from)
ChallengeExternalResult(const ChallengeExternalResult &from)
friend void TC_PROTO_API protobuf_AddDesc_challenge_5fservice_2eproto()
inline ::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
void Swap(ChallengeExternalResult *other)
::google::protobuf::Metadata GetMetadata() const
static const ChallengeExternalResult & default_instance()
static const ::google::protobuf::Descriptor * descriptor()
void set_allocated_request_token(::std::string *request_token)
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
ChallengeListener & operator=(ChallengeListener &&)=delete
void CallServerMethod(uint32 token, uint32 methodId, MessageBuffer buffer) final
static google::protobuf::ServiceDescriptor const * descriptor()
void OnExternalChallenge(::bgs::protocol::challenge::v1::ChallengeExternalRequest const *request, bool client=false, bool server=false)
ChallengeListener & operator=(ChallengeListener const &)=delete
std::integral_constant< uint32, 0xC6D90AB8u > NameHash
ChallengeListener(ChallengeListener &&)=delete
ChallengeListener(ChallengeListener const &)=delete
void OnExternalChallengeResult(::bgs::protocol::challenge::v1::ChallengeExternalResult const *request, bool client=false, bool server=false)
std::integral_constant< uint32, 0xBBDA171Fu > OriginalHash
constexpr std::size_t size()
Definition: UpdateField.h:796
void protobuf_ShutdownFile_challenge_5fservice_2eproto()
void protobuf_AssignDesc_challenge_5fservice_2eproto()
void TC_PROTO_API protobuf_AddDesc_challenge_5fservice_2eproto()
Definition: Session.h:36