TrinityCore
authentication_service.pb.h
Go to the documentation of this file.
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: authentication_service.proto
3
4#ifndef PROTOBUF_authentication_5fservice_2eproto__INCLUDED
5#define PROTOBUF_authentication_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 "entity_types.pb.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 authentication {
38namespace v1 {
39
40// Internal implementation detail -- do not call these.
44
45class LogonRequest;
46class LogonResult;
50class VersionInfo;
55
56// ===================================================================
57
58class TC_PROTO_API LogonRequest : public ::google::protobuf::Message {
59 public:
61 virtual ~LogonRequest();
62
64
65 inline LogonRequest& operator=(const LogonRequest& from) {
66 CopyFrom(from);
67 return *this;
68 }
69
70 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
71 return _unknown_fields_;
72 }
73
74 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
75 return &_unknown_fields_;
76 }
77
78 static const ::google::protobuf::Descriptor* descriptor();
80
81 void Swap(LogonRequest* other);
82
83 // implements Message ----------------------------------------------
84
85 LogonRequest* New() const;
86 int GetCachedSize() const { return _cached_size_; }
87 private:
88 void SharedCtor();
89 void SharedDtor();
90 void SetCachedSize(int size) const;
91 public:
92 ::google::protobuf::Metadata GetMetadata() const;
93
94 // nested types ----------------------------------------------------
95
96 // accessors -------------------------------------------------------
97
98 // optional string program = 1;
99 inline bool has_program() const;
100 inline void clear_program();
101 static const int kProgramFieldNumber = 1;
102 inline const ::std::string& program() const;
103 inline void set_program(const ::std::string& value);
104 inline void set_program(const char* value);
105 inline void set_program(const char* value, size_t size);
106 inline ::std::string* mutable_program();
107 inline ::std::string* release_program();
108 inline void set_allocated_program(::std::string* program);
109
110 // optional string platform = 2;
111 inline bool has_platform() const;
112 inline void clear_platform();
113 static const int kPlatformFieldNumber = 2;
114 inline const ::std::string& platform() const;
115 inline void set_platform(const ::std::string& value);
116 inline void set_platform(const char* value);
117 inline void set_platform(const char* value, size_t size);
118 inline ::std::string* mutable_platform();
119 inline ::std::string* release_platform();
120 inline void set_allocated_platform(::std::string* platform);
121
122 // optional string locale = 3;
123 inline bool has_locale() const;
124 inline void clear_locale();
125 static const int kLocaleFieldNumber = 3;
126 inline const ::std::string& locale() const;
127 inline void set_locale(const ::std::string& value);
128 inline void set_locale(const char* value);
129 inline void set_locale(const char* value, size_t size);
130 inline ::std::string* mutable_locale();
131 inline ::std::string* release_locale();
132 inline void set_allocated_locale(::std::string* locale);
133
134 // optional string email = 4;
135 inline bool has_email() const;
136 inline void clear_email();
137 static const int kEmailFieldNumber = 4;
138 inline const ::std::string& email() const;
139 inline void set_email(const ::std::string& value);
140 inline void set_email(const char* value);
141 inline void set_email(const char* value, size_t size);
142 inline ::std::string* mutable_email();
143 inline ::std::string* release_email();
144 inline void set_allocated_email(::std::string* email);
145
146 // optional string version = 5;
147 inline bool has_version() const;
148 inline void clear_version();
149 static const int kVersionFieldNumber = 5;
150 inline const ::std::string& version() const;
151 inline void set_version(const ::std::string& value);
152 inline void set_version(const char* value);
153 inline void set_version(const char* value, size_t size);
154 inline ::std::string* mutable_version();
155 inline ::std::string* release_version();
156 inline void set_allocated_version(::std::string* version);
157
158 // optional int32 application_version = 6;
159 inline bool has_application_version() const;
160 inline void clear_application_version();
161 static const int kApplicationVersionFieldNumber = 6;
162 inline ::google::protobuf::int32 application_version() const;
163 inline void set_application_version(::google::protobuf::int32 value);
164
165 // optional bool public_computer = 7;
166 inline bool has_public_computer() const;
167 inline void clear_public_computer();
168 static const int kPublicComputerFieldNumber = 7;
169 inline bool public_computer() const;
170 inline void set_public_computer(bool value);
171
172 // optional bool allow_logon_queue_notifications = 10 [default = false];
173 inline bool has_allow_logon_queue_notifications() const;
174 inline void clear_allow_logon_queue_notifications();
175 static const int kAllowLogonQueueNotificationsFieldNumber = 10;
176 inline bool allow_logon_queue_notifications() const;
177 inline void set_allow_logon_queue_notifications(bool value);
178
179 // optional bytes cached_web_credentials = 12;
180 inline bool has_cached_web_credentials() const;
181 inline void clear_cached_web_credentials();
182 static const int kCachedWebCredentialsFieldNumber = 12;
183 inline const ::std::string& cached_web_credentials() const;
184 inline void set_cached_web_credentials(const ::std::string& value);
185 inline void set_cached_web_credentials(const char* value);
186 inline void set_cached_web_credentials(const void* value, size_t size);
187 inline ::std::string* mutable_cached_web_credentials();
188 inline ::std::string* release_cached_web_credentials();
189 inline void set_allocated_cached_web_credentials(::std::string* cached_web_credentials);
190
191 // optional string user_agent = 14;
192 inline bool has_user_agent() const;
193 inline void clear_user_agent();
194 static const int kUserAgentFieldNumber = 14;
195 inline const ::std::string& user_agent() const;
196 inline void set_user_agent(const ::std::string& value);
197 inline void set_user_agent(const char* value);
198 inline void set_user_agent(const char* value, size_t size);
199 inline ::std::string* mutable_user_agent();
200 inline ::std::string* release_user_agent();
201 inline void set_allocated_user_agent(::std::string* user_agent);
202
203 // optional string device_id = 15;
204 inline bool has_device_id() const;
205 inline void clear_device_id();
206 static const int kDeviceIdFieldNumber = 15;
207 inline const ::std::string& device_id() const;
208 inline void set_device_id(const ::std::string& value);
209 inline void set_device_id(const char* value);
210 inline void set_device_id(const char* value, size_t size);
211 inline ::std::string* mutable_device_id();
212 inline ::std::string* release_device_id();
213 inline void set_allocated_device_id(::std::string* device_id);
214
215 // optional string phone_number = 16;
216 inline bool has_phone_number() const;
217 inline void clear_phone_number();
218 static const int kPhoneNumberFieldNumber = 16;
219 inline const ::std::string& phone_number() const;
220 inline void set_phone_number(const ::std::string& value);
221 inline void set_phone_number(const char* value);
222 inline void set_phone_number(const char* value, size_t size);
223 inline ::std::string* mutable_phone_number();
224 inline ::std::string* release_phone_number();
225 inline void set_allocated_phone_number(::std::string* phone_number);
226
227 // optional string auth_platform = 17;
228 inline bool has_auth_platform() const;
229 inline void clear_auth_platform();
230 static const int kAuthPlatformFieldNumber = 17;
231 inline const ::std::string& auth_platform() const;
232 inline void set_auth_platform(const ::std::string& value);
233 inline void set_auth_platform(const char* value);
234 inline void set_auth_platform(const char* value, size_t size);
235 inline ::std::string* mutable_auth_platform();
236 inline ::std::string* release_auth_platform();
237 inline void set_allocated_auth_platform(::std::string* auth_platform);
238
239 // @@protoc_insertion_point(class_scope:bgs.protocol.authentication.v1.LogonRequest)
240 private:
241 inline void set_has_program();
242 inline void clear_has_program();
243 inline void set_has_platform();
244 inline void clear_has_platform();
245 inline void set_has_locale();
246 inline void clear_has_locale();
247 inline void set_has_email();
248 inline void clear_has_email();
249 inline void set_has_version();
250 inline void clear_has_version();
251 inline void set_has_application_version();
252 inline void clear_has_application_version();
253 inline void set_has_public_computer();
254 inline void clear_has_public_computer();
255 inline void set_has_allow_logon_queue_notifications();
256 inline void clear_has_allow_logon_queue_notifications();
257 inline void set_has_cached_web_credentials();
258 inline void clear_has_cached_web_credentials();
259 inline void set_has_user_agent();
260 inline void clear_has_user_agent();
261 inline void set_has_device_id();
262 inline void clear_has_device_id();
263 inline void set_has_phone_number();
264 inline void clear_has_phone_number();
265 inline void set_has_auth_platform();
266 inline void clear_has_auth_platform();
267
268 ::google::protobuf::UnknownFieldSet _unknown_fields_;
269
271 mutable int _cached_size_;
272 ::std::string* program_;
273 ::std::string* platform_;
274 ::std::string* locale_;
275 ::std::string* email_;
276 ::std::string* version_;
281 ::std::string* user_agent_;
282 ::std::string* device_id_;
283 ::std::string* phone_number_;
284 ::std::string* auth_platform_;
288
291};
292// -------------------------------------------------------------------
293
294class TC_PROTO_API LogonResult : public ::google::protobuf::Message {
295 public:
297 virtual ~LogonResult();
298
300
301 inline LogonResult& operator=(const LogonResult& from) {
302 CopyFrom(from);
303 return *this;
304 }
305
306 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
307 return _unknown_fields_;
308 }
309
310 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
311 return &_unknown_fields_;
312 }
313
314 static const ::google::protobuf::Descriptor* descriptor();
316
317 void Swap(LogonResult* other);
318
319 // implements Message ----------------------------------------------
320
321 LogonResult* New() const;
322 int GetCachedSize() const { return _cached_size_; }
323 private:
326 void SetCachedSize(int size) const;
327 public:
328 ::google::protobuf::Metadata GetMetadata() const;
329
330 // nested types ----------------------------------------------------
331
332 // accessors -------------------------------------------------------
333
334 // required uint32 error_code = 1;
335 inline bool has_error_code() const;
336 inline void clear_error_code();
337 static const int kErrorCodeFieldNumber = 1;
338 inline ::google::protobuf::uint32 error_code() const;
339 inline void set_error_code(::google::protobuf::uint32 value);
340
341 // optional .bgs.protocol.EntityId account_id = 2;
342 inline bool has_account_id() const;
343 inline void clear_account_id();
344 static const int kAccountIdFieldNumber = 2;
345 inline const ::bgs::protocol::EntityId& account_id() const;
346 inline ::bgs::protocol::EntityId* mutable_account_id();
347 inline ::bgs::protocol::EntityId* release_account_id();
348 inline void set_allocated_account_id(::bgs::protocol::EntityId* account_id);
349
350 // repeated .bgs.protocol.EntityId game_account_id = 3;
351 inline int game_account_id_size() const;
352 inline void clear_game_account_id();
353 static const int kGameAccountIdFieldNumber = 3;
354 inline const ::bgs::protocol::EntityId& game_account_id(int index) const;
355 inline ::bgs::protocol::EntityId* mutable_game_account_id(int index);
356 inline ::bgs::protocol::EntityId* add_game_account_id();
357 inline const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::EntityId >&
358 game_account_id() const;
359 inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::EntityId >*
360 mutable_game_account_id();
361
362 // optional string email = 4;
363 inline bool has_email() const;
364 inline void clear_email();
365 static const int kEmailFieldNumber = 4;
366 inline const ::std::string& email() const;
367 inline void set_email(const ::std::string& value);
368 inline void set_email(const char* value);
369 inline void set_email(const char* value, size_t size);
370 inline ::std::string* mutable_email();
371 inline ::std::string* release_email();
372 inline void set_allocated_email(::std::string* email);
373
374 // repeated uint32 available_region = 5;
375 inline int available_region_size() const;
376 inline void clear_available_region();
377 static const int kAvailableRegionFieldNumber = 5;
378 inline ::google::protobuf::uint32 available_region(int index) const;
379 inline void set_available_region(int index, ::google::protobuf::uint32 value);
380 inline void add_available_region(::google::protobuf::uint32 value);
381 inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
382 available_region() const;
383 inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
384 mutable_available_region();
385
386 // optional uint32 connected_region = 6;
387 inline bool has_connected_region() const;
388 inline void clear_connected_region();
389 static const int kConnectedRegionFieldNumber = 6;
390 inline ::google::protobuf::uint32 connected_region() const;
391 inline void set_connected_region(::google::protobuf::uint32 value);
392
393 // optional string battle_tag = 7;
394 inline bool has_battle_tag() const;
395 inline void clear_battle_tag();
396 static const int kBattleTagFieldNumber = 7;
397 inline const ::std::string& battle_tag() const;
398 inline void set_battle_tag(const ::std::string& value);
399 inline void set_battle_tag(const char* value);
400 inline void set_battle_tag(const char* value, size_t size);
401 inline ::std::string* mutable_battle_tag();
402 inline ::std::string* release_battle_tag();
403 inline void set_allocated_battle_tag(::std::string* battle_tag);
404
405 // optional string geoip_country = 8;
406 inline bool has_geoip_country() const;
407 inline void clear_geoip_country();
408 static const int kGeoipCountryFieldNumber = 8;
409 inline const ::std::string& geoip_country() const;
410 inline void set_geoip_country(const ::std::string& value);
411 inline void set_geoip_country(const char* value);
412 inline void set_geoip_country(const char* value, size_t size);
413 inline ::std::string* mutable_geoip_country();
414 inline ::std::string* release_geoip_country();
415 inline void set_allocated_geoip_country(::std::string* geoip_country);
416
417 // optional bytes session_key = 9;
418 inline bool has_session_key() const;
419 inline void clear_session_key();
420 static const int kSessionKeyFieldNumber = 9;
421 inline const ::std::string& session_key() const;
422 inline void set_session_key(const ::std::string& value);
423 inline void set_session_key(const char* value);
424 inline void set_session_key(const void* value, size_t size);
425 inline ::std::string* mutable_session_key();
426 inline ::std::string* release_session_key();
427 inline void set_allocated_session_key(::std::string* session_key);
428
429 // optional bool restricted_mode = 10;
430 inline bool has_restricted_mode() const;
431 inline void clear_restricted_mode();
432 static const int kRestrictedModeFieldNumber = 10;
433 inline bool restricted_mode() const;
434 inline void set_restricted_mode(bool value);
435
436 // optional string client_id = 11;
437 inline bool has_client_id() const;
438 inline void clear_client_id();
439 static const int kClientIdFieldNumber = 11;
440 inline const ::std::string& client_id() const;
441 inline void set_client_id(const ::std::string& value);
442 inline void set_client_id(const char* value);
443 inline void set_client_id(const char* value, size_t size);
444 inline ::std::string* mutable_client_id();
445 inline ::std::string* release_client_id();
446 inline void set_allocated_client_id(::std::string* client_id);
447
448 // @@protoc_insertion_point(class_scope:bgs.protocol.authentication.v1.LogonResult)
449 private:
450 inline void set_has_error_code();
451 inline void clear_has_error_code();
452 inline void set_has_account_id();
453 inline void clear_has_account_id();
454 inline void set_has_email();
455 inline void clear_has_email();
456 inline void set_has_connected_region();
457 inline void clear_has_connected_region();
458 inline void set_has_battle_tag();
459 inline void clear_has_battle_tag();
460 inline void set_has_geoip_country();
461 inline void clear_has_geoip_country();
462 inline void set_has_session_key();
463 inline void clear_has_session_key();
464 inline void set_has_restricted_mode();
465 inline void clear_has_restricted_mode();
466 inline void set_has_client_id();
467 inline void clear_has_client_id();
468
469 ::google::protobuf::UnknownFieldSet _unknown_fields_;
470
472 mutable int _cached_size_;
474 ::google::protobuf::RepeatedPtrField< ::bgs::protocol::EntityId > game_account_id_;
477 ::std::string* email_;
478 ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > available_region_;
479 ::std::string* battle_tag_;
480 ::std::string* geoip_country_;
481 ::std::string* session_key_;
482 ::std::string* client_id_;
487
490};
491// -------------------------------------------------------------------
492
493class TC_PROTO_API LogonUpdateRequest : public ::google::protobuf::Message {
494 public:
497
499
501 CopyFrom(from);
502 return *this;
503 }
504
505 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
506 return _unknown_fields_;
507 }
508
509 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
510 return &_unknown_fields_;
511 }
512
513 static const ::google::protobuf::Descriptor* descriptor();
515
517
518 // implements Message ----------------------------------------------
519
521 int GetCachedSize() const { return _cached_size_; }
522 private:
525 void SetCachedSize(int size) const;
526 public:
527 ::google::protobuf::Metadata GetMetadata() const;
528
529 // nested types ----------------------------------------------------
530
531 // accessors -------------------------------------------------------
532
533 // required uint32 error_code = 1;
534 inline bool has_error_code() const;
535 inline void clear_error_code();
536 static const int kErrorCodeFieldNumber = 1;
537 inline ::google::protobuf::uint32 error_code() const;
538 inline void set_error_code(::google::protobuf::uint32 value);
539
540 // @@protoc_insertion_point(class_scope:bgs.protocol.authentication.v1.LogonUpdateRequest)
541 private:
542 inline void set_has_error_code();
543 inline void clear_has_error_code();
544
545 ::google::protobuf::UnknownFieldSet _unknown_fields_;
546
548 mutable int _cached_size_;
553
556};
557// -------------------------------------------------------------------
558
559class TC_PROTO_API LogonQueueUpdateRequest : public ::google::protobuf::Message {
560 public:
563
565
567 CopyFrom(from);
568 return *this;
569 }
570
571 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
572 return _unknown_fields_;
573 }
574
575 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
576 return &_unknown_fields_;
577 }
578
579 static const ::google::protobuf::Descriptor* descriptor();
581
583
584 // implements Message ----------------------------------------------
585
587 int GetCachedSize() const { return _cached_size_; }
588 private:
591 void SetCachedSize(int size) const;
592 public:
593 ::google::protobuf::Metadata GetMetadata() const;
594
595 // nested types ----------------------------------------------------
596
597 // accessors -------------------------------------------------------
598
599 // required uint32 position = 1;
600 inline bool has_position() const;
601 inline void clear_position();
602 static const int kPositionFieldNumber = 1;
603 inline ::google::protobuf::uint32 position() const;
604 inline void set_position(::google::protobuf::uint32 value);
605
606 // required uint64 estimated_time = 2;
607 inline bool has_estimated_time() const;
608 inline void clear_estimated_time();
609 static const int kEstimatedTimeFieldNumber = 2;
610 inline ::google::protobuf::uint64 estimated_time() const;
611 inline void set_estimated_time(::google::protobuf::uint64 value);
612
613 // required uint64 eta_deviation_in_sec = 3;
614 inline bool has_eta_deviation_in_sec() const;
615 inline void clear_eta_deviation_in_sec();
616 static const int kEtaDeviationInSecFieldNumber = 3;
617 inline ::google::protobuf::uint64 eta_deviation_in_sec() const;
618 inline void set_eta_deviation_in_sec(::google::protobuf::uint64 value);
619
620 // @@protoc_insertion_point(class_scope:bgs.protocol.authentication.v1.LogonQueueUpdateRequest)
621 private:
622 inline void set_has_position();
623 inline void clear_has_position();
624 inline void set_has_estimated_time();
625 inline void clear_has_estimated_time();
626 inline void set_has_eta_deviation_in_sec();
627 inline void clear_has_eta_deviation_in_sec();
628
629 ::google::protobuf::UnknownFieldSet _unknown_fields_;
630
632 mutable int _cached_size_;
639
642};
643// -------------------------------------------------------------------
644
645class TC_PROTO_API ServerStateChangeRequest : public ::google::protobuf::Message {
646 public:
649
651
653 CopyFrom(from);
654 return *this;
655 }
656
657 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
658 return _unknown_fields_;
659 }
660
661 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
662 return &_unknown_fields_;
663 }
664
665 static const ::google::protobuf::Descriptor* descriptor();
667
669
670 // implements Message ----------------------------------------------
671
673 int GetCachedSize() const { return _cached_size_; }
674 private:
677 void SetCachedSize(int size) const;
678 public:
679 ::google::protobuf::Metadata GetMetadata() const;
680
681 // nested types ----------------------------------------------------
682
683 // accessors -------------------------------------------------------
684
685 // required uint32 state = 1;
686 inline bool has_state() const;
687 inline void clear_state();
688 static const int kStateFieldNumber = 1;
690 inline void set_state(::google::protobuf::uint32 value);
691
692 // required uint64 event_time = 2;
693 inline bool has_event_time() const;
694 inline void clear_event_time();
695 static const int kEventTimeFieldNumber = 2;
696 inline ::google::protobuf::uint64 event_time() const;
697 inline void set_event_time(::google::protobuf::uint64 value);
698
699 // @@protoc_insertion_point(class_scope:bgs.protocol.authentication.v1.ServerStateChangeRequest)
700 private:
701 inline void set_has_state();
702 inline void clear_has_state();
703 inline void set_has_event_time();
704 inline void clear_has_event_time();
705
706 ::google::protobuf::UnknownFieldSet _unknown_fields_;
707
709 mutable int _cached_size_;
715
718};
719// -------------------------------------------------------------------
720
721class TC_PROTO_API VersionInfo : public ::google::protobuf::Message {
722 public:
724 virtual ~VersionInfo();
725
727
728 inline VersionInfo& operator=(const VersionInfo& from) {
729 CopyFrom(from);
730 return *this;
731 }
732
733 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
734 return _unknown_fields_;
735 }
736
737 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
738 return &_unknown_fields_;
739 }
740
741 static const ::google::protobuf::Descriptor* descriptor();
743
744 void Swap(VersionInfo* other);
745
746 // implements Message ----------------------------------------------
747
748 VersionInfo* New() const;
749 int GetCachedSize() const { return _cached_size_; }
750 private:
753 void SetCachedSize(int size) const;
754 public:
755 ::google::protobuf::Metadata GetMetadata() const;
756
757 // nested types ----------------------------------------------------
758
759 // accessors -------------------------------------------------------
760
761 // optional uint32 number = 1;
762 inline bool has_number() const;
763 inline void clear_number();
764 static const int kNumberFieldNumber = 1;
766 inline void set_number(::google::protobuf::uint32 value);
767
768 // optional string patch = 2;
769 inline bool has_patch() const;
770 inline void clear_patch();
771 static const int kPatchFieldNumber = 2;
772 inline const ::std::string& patch() const;
773 inline void set_patch(const ::std::string& value);
774 inline void set_patch(const char* value);
775 inline void set_patch(const char* value, size_t size);
776 inline ::std::string* mutable_patch();
777 inline ::std::string* release_patch();
778 inline void set_allocated_patch(::std::string* patch);
779
780 // optional bool is_optional = 3;
781 inline bool has_is_optional() const;
782 inline void clear_is_optional();
783 static const int kIsOptionalFieldNumber = 3;
784 inline bool is_optional() const;
785 inline void set_is_optional(bool value);
786
787 // optional uint64 kick_time = 4;
788 inline bool has_kick_time() const;
789 inline void clear_kick_time();
790 static const int kKickTimeFieldNumber = 4;
791 inline ::google::protobuf::uint64 kick_time() const;
792 inline void set_kick_time(::google::protobuf::uint64 value);
793
794 // @@protoc_insertion_point(class_scope:bgs.protocol.authentication.v1.VersionInfo)
795 private:
796 inline void set_has_number();
797 inline void clear_has_number();
798 inline void set_has_patch();
799 inline void clear_has_patch();
800 inline void set_has_is_optional();
801 inline void clear_has_is_optional();
802 inline void set_has_kick_time();
803 inline void clear_has_kick_time();
804
805 ::google::protobuf::UnknownFieldSet _unknown_fields_;
806
808 mutable int _cached_size_;
809 ::std::string* patch_;
816
819};
820// -------------------------------------------------------------------
821
822class TC_PROTO_API VersionInfoNotification : public ::google::protobuf::Message {
823 public:
826
828
830 CopyFrom(from);
831 return *this;
832 }
833
834 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
835 return _unknown_fields_;
836 }
837
838 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
839 return &_unknown_fields_;
840 }
841
842 static const ::google::protobuf::Descriptor* descriptor();
844
846
847 // implements Message ----------------------------------------------
848
850 int GetCachedSize() const { return _cached_size_; }
851 private:
854 void SetCachedSize(int size) const;
855 public:
856 ::google::protobuf::Metadata GetMetadata() const;
857
858 // nested types ----------------------------------------------------
859
860 // accessors -------------------------------------------------------
861
862 // optional .bgs.protocol.authentication.v1.VersionInfo version_info = 1;
863 inline bool has_version_info() const;
864 inline void clear_version_info();
865 static const int kVersionInfoFieldNumber = 1;
866 inline const ::bgs::protocol::authentication::v1::VersionInfo& version_info() const;
867 inline ::bgs::protocol::authentication::v1::VersionInfo* mutable_version_info();
868 inline ::bgs::protocol::authentication::v1::VersionInfo* release_version_info();
869 inline void set_allocated_version_info(::bgs::protocol::authentication::v1::VersionInfo* version_info);
870
871 // @@protoc_insertion_point(class_scope:bgs.protocol.authentication.v1.VersionInfoNotification)
872 private:
873 inline void set_has_version_info();
874 inline void clear_has_version_info();
875
876 ::google::protobuf::UnknownFieldSet _unknown_fields_;
877
879 mutable int _cached_size_;
884
887};
888// -------------------------------------------------------------------
889
890class TC_PROTO_API GenerateWebCredentialsRequest : public ::google::protobuf::Message {
891 public:
894
896
898 CopyFrom(from);
899 return *this;
900 }
901
902 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
903 return _unknown_fields_;
904 }
905
906 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
907 return &_unknown_fields_;
908 }
909
910 static const ::google::protobuf::Descriptor* descriptor();
912
914
915 // implements Message ----------------------------------------------
916
918 int GetCachedSize() const { return _cached_size_; }
919 private:
922 void SetCachedSize(int size) const;
923 public:
924 ::google::protobuf::Metadata GetMetadata() const;
925
926 // nested types ----------------------------------------------------
927
928 // accessors -------------------------------------------------------
929
930 // optional fixed32 program = 1;
931 inline bool has_program() const;
932 inline void clear_program();
933 static const int kProgramFieldNumber = 1;
934 inline ::google::protobuf::uint32 program() const;
935 inline void set_program(::google::protobuf::uint32 value);
936
937 // @@protoc_insertion_point(class_scope:bgs.protocol.authentication.v1.GenerateWebCredentialsRequest)
938 private:
939 inline void set_has_program();
940 inline void clear_has_program();
941
942 ::google::protobuf::UnknownFieldSet _unknown_fields_;
943
945 mutable int _cached_size_;
950
953};
954// -------------------------------------------------------------------
955
956class TC_PROTO_API GenerateWebCredentialsResponse : public ::google::protobuf::Message {
957 public:
960
962
964 CopyFrom(from);
965 return *this;
966 }
967
968 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
969 return _unknown_fields_;
970 }
971
972 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
973 return &_unknown_fields_;
974 }
975
976 static const ::google::protobuf::Descriptor* descriptor();
978
980
981 // implements Message ----------------------------------------------
982
984 int GetCachedSize() const { return _cached_size_; }
985 private:
988 void SetCachedSize(int size) const;
989 public:
990 ::google::protobuf::Metadata GetMetadata() const;
991
992 // nested types ----------------------------------------------------
993
994 // accessors -------------------------------------------------------
995
996 // optional bytes web_credentials = 1;
997 inline bool has_web_credentials() const;
998 inline void clear_web_credentials();
999 static const int kWebCredentialsFieldNumber = 1;
1000 inline const ::std::string& web_credentials() const;
1001 inline void set_web_credentials(const ::std::string& value);
1002 inline void set_web_credentials(const char* value);
1003 inline void set_web_credentials(const void* value, size_t size);
1004 inline ::std::string* mutable_web_credentials();
1005 inline ::std::string* release_web_credentials();
1006 inline void set_allocated_web_credentials(::std::string* web_credentials);
1007
1008 // @@protoc_insertion_point(class_scope:bgs.protocol.authentication.v1.GenerateWebCredentialsResponse)
1009 private:
1010 inline void set_has_web_credentials();
1011 inline void clear_has_web_credentials();
1012
1013 ::google::protobuf::UnknownFieldSet _unknown_fields_;
1014
1016 mutable int _cached_size_;
1017 ::std::string* web_credentials_;
1021
1024};
1025// -------------------------------------------------------------------
1026
1027class TC_PROTO_API VerifyWebCredentialsRequest : public ::google::protobuf::Message {
1028 public:
1031
1033
1035 CopyFrom(from);
1036 return *this;
1037 }
1038
1039 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
1040 return _unknown_fields_;
1041 }
1042
1043 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
1044 return &_unknown_fields_;
1045 }
1046
1047 static const ::google::protobuf::Descriptor* descriptor();
1049
1051
1052 // implements Message ----------------------------------------------
1053
1055 int GetCachedSize() const { return _cached_size_; }
1056 private:
1059 void SetCachedSize(int size) const;
1060 public:
1061 ::google::protobuf::Metadata GetMetadata() const;
1062
1063 // nested types ----------------------------------------------------
1064
1065 // accessors -------------------------------------------------------
1066
1067 // optional bytes web_credentials = 1;
1068 inline bool has_web_credentials() const;
1069 inline void clear_web_credentials();
1070 static const int kWebCredentialsFieldNumber = 1;
1071 inline const ::std::string& web_credentials() const;
1072 inline void set_web_credentials(const ::std::string& value);
1073 inline void set_web_credentials(const char* value);
1074 inline void set_web_credentials(const void* value, size_t size);
1075 inline ::std::string* mutable_web_credentials();
1076 inline ::std::string* release_web_credentials();
1077 inline void set_allocated_web_credentials(::std::string* web_credentials);
1078
1079 // @@protoc_insertion_point(class_scope:bgs.protocol.authentication.v1.VerifyWebCredentialsRequest)
1080 private:
1081 inline void set_has_web_credentials();
1082 inline void clear_has_web_credentials();
1083
1084 ::google::protobuf::UnknownFieldSet _unknown_fields_;
1085
1087 mutable int _cached_size_;
1088 ::std::string* web_credentials_;
1092
1095};
1096// ===================================================================
1097
1099{
1100 public:
1101
1102 explicit AuthenticationListener(bool use_original_hash);
1108
1109 typedef std::integral_constant<uint32, 0x71240E35u> OriginalHash;
1110 typedef std::integral_constant<uint32, 0x4DA86228u> NameHash;
1111
1112 static google::protobuf::ServiceDescriptor const* descriptor();
1113
1114 // client methods --------------------------------------------------
1115 void OnServerStateChange(::bgs::protocol::authentication::v1::ServerStateChangeRequest const* request, bool client = false, bool server = false);
1116 void OnLogonComplete(::bgs::protocol::authentication::v1::LogonResult const* request, bool client = false, bool server = false);
1117 void OnLogonUpdate(::bgs::protocol::authentication::v1::LogonUpdateRequest const* request, bool client = false, bool server = false);
1118 void OnVersionInfoUpdated(::bgs::protocol::authentication::v1::VersionInfoNotification const* request, bool client = false, bool server = false);
1119 void OnLogonQueueUpdate(::bgs::protocol::authentication::v1::LogonQueueUpdateRequest const* request, bool client = false, bool server = false);
1120 void OnLogonQueueEnd(::bgs::protocol::NoData const* request, bool client = false, bool server = false);
1121
1122 void CallServerMethod(uint32 token, uint32 methodId, MessageBuffer buffer) final;
1123};
1124
1125// -------------------------------------------------------------------
1126
1128{
1129 public:
1130
1131 explicit AuthenticationService(bool use_original_hash);
1137
1138 typedef std::integral_constant<uint32, 0xDECFC01u> OriginalHash;
1139 typedef std::integral_constant<uint32, 0xFF5A6AC3u> NameHash;
1140
1141 static google::protobuf::ServiceDescriptor const* descriptor();
1142
1143 void CallServerMethod(uint32 token, uint32 methodId, MessageBuffer buffer) final;
1144
1145 protected:
1146 // server methods --------------------------------------------------
1147 virtual uint32 HandleLogon(::bgs::protocol::authentication::v1::LogonRequest const* request, ::bgs::protocol::NoData* response, std::function<void(ServiceBase*, uint32, ::google::protobuf::Message const*)>& continuation);
1148 virtual uint32 HandleVerifyWebCredentials(::bgs::protocol::authentication::v1::VerifyWebCredentialsRequest const* request, ::bgs::protocol::NoData* response, std::function<void(ServiceBase*, uint32, ::google::protobuf::Message const*)>& continuation);
1150
1151 private:
1152 void ParseAndHandleLogon(uint32 token, uint32 methodId, MessageBuffer& buffer);
1155};
1156
1157// ===================================================================
1158
1159// ===================================================================
1160
1161// LogonRequest
1162
1163// optional string program = 1;
1164inline bool LogonRequest::has_program() const {
1165 return (_has_bits_[0] & 0x00000001u) != 0;
1166}
1168 _has_bits_[0] |= 0x00000001u;
1169}
1171 _has_bits_[0] &= ~0x00000001u;
1172}
1174 if (program_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1175 program_->clear();
1176 }
1178}
1179inline const ::std::string& LogonRequest::program() const {
1180 // @@protoc_insertion_point(field_get:bgs.protocol.authentication.v1.LogonRequest.program)
1181 return *program_;
1182}
1183inline void LogonRequest::set_program(const ::std::string& value) {
1185 if (program_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1186 program_ = new ::std::string;
1187 }
1188 program_->assign(value);
1189 // @@protoc_insertion_point(field_set:bgs.protocol.authentication.v1.LogonRequest.program)
1190}
1191inline void LogonRequest::set_program(const char* value) {
1193 if (program_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1194 program_ = new ::std::string;
1195 }
1196 program_->assign(value);
1197 // @@protoc_insertion_point(field_set_char:bgs.protocol.authentication.v1.LogonRequest.program)
1198}
1199inline void LogonRequest::set_program(const char* value, size_t size) {
1201 if (program_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1202 program_ = new ::std::string;
1203 }
1204 program_->assign(reinterpret_cast<const char*>(value), size);
1205 // @@protoc_insertion_point(field_set_pointer:bgs.protocol.authentication.v1.LogonRequest.program)
1206}
1207inline ::std::string* LogonRequest::mutable_program() {
1209 if (program_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1210 program_ = new ::std::string;
1211 }
1212 // @@protoc_insertion_point(field_mutable:bgs.protocol.authentication.v1.LogonRequest.program)
1213 return program_;
1214}
1215inline ::std::string* LogonRequest::release_program() {
1217 if (program_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1218 return NULL;
1219 } else {
1220 ::std::string* temp = program_;
1221 program_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1222 return temp;
1223 }
1224}
1225inline void LogonRequest::set_allocated_program(::std::string* program) {
1226 if (program_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1227 delete program_;
1228 }
1229 if (program) {
1231 program_ = program;
1232 } else {
1234 program_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1235 }
1236 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.authentication.v1.LogonRequest.program)
1237}
1238
1239// optional string platform = 2;
1240inline bool LogonRequest::has_platform() const {
1241 return (_has_bits_[0] & 0x00000002u) != 0;
1242}
1244 _has_bits_[0] |= 0x00000002u;
1245}
1247 _has_bits_[0] &= ~0x00000002u;
1248}
1250 if (platform_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1251 platform_->clear();
1252 }
1254}
1255inline const ::std::string& LogonRequest::platform() const {
1256 // @@protoc_insertion_point(field_get:bgs.protocol.authentication.v1.LogonRequest.platform)
1257 return *platform_;
1258}
1259inline void LogonRequest::set_platform(const ::std::string& value) {
1261 if (platform_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1262 platform_ = new ::std::string;
1263 }
1264 platform_->assign(value);
1265 // @@protoc_insertion_point(field_set:bgs.protocol.authentication.v1.LogonRequest.platform)
1266}
1267inline void LogonRequest::set_platform(const char* value) {
1269 if (platform_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1270 platform_ = new ::std::string;
1271 }
1272 platform_->assign(value);
1273 // @@protoc_insertion_point(field_set_char:bgs.protocol.authentication.v1.LogonRequest.platform)
1274}
1275inline void LogonRequest::set_platform(const char* value, size_t size) {
1277 if (platform_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1278 platform_ = new ::std::string;
1279 }
1280 platform_->assign(reinterpret_cast<const char*>(value), size);
1281 // @@protoc_insertion_point(field_set_pointer:bgs.protocol.authentication.v1.LogonRequest.platform)
1282}
1283inline ::std::string* LogonRequest::mutable_platform() {
1285 if (platform_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1286 platform_ = new ::std::string;
1287 }
1288 // @@protoc_insertion_point(field_mutable:bgs.protocol.authentication.v1.LogonRequest.platform)
1289 return platform_;
1290}
1291inline ::std::string* LogonRequest::release_platform() {
1293 if (platform_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1294 return NULL;
1295 } else {
1296 ::std::string* temp = platform_;
1297 platform_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1298 return temp;
1299 }
1300}
1301inline void LogonRequest::set_allocated_platform(::std::string* platform) {
1302 if (platform_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1303 delete platform_;
1304 }
1305 if (platform) {
1308 } else {
1310 platform_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1311 }
1312 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.authentication.v1.LogonRequest.platform)
1313}
1314
1315// optional string locale = 3;
1316inline bool LogonRequest::has_locale() const {
1317 return (_has_bits_[0] & 0x00000004u) != 0;
1318}
1320 _has_bits_[0] |= 0x00000004u;
1321}
1323 _has_bits_[0] &= ~0x00000004u;
1324}
1326 if (locale_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1327 locale_->clear();
1328 }
1330}
1331inline const ::std::string& LogonRequest::locale() const {
1332 // @@protoc_insertion_point(field_get:bgs.protocol.authentication.v1.LogonRequest.locale)
1333 return *locale_;
1334}
1335inline void LogonRequest::set_locale(const ::std::string& value) {
1337 if (locale_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1338 locale_ = new ::std::string;
1339 }
1340 locale_->assign(value);
1341 // @@protoc_insertion_point(field_set:bgs.protocol.authentication.v1.LogonRequest.locale)
1342}
1343inline void LogonRequest::set_locale(const char* value) {
1345 if (locale_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1346 locale_ = new ::std::string;
1347 }
1348 locale_->assign(value);
1349 // @@protoc_insertion_point(field_set_char:bgs.protocol.authentication.v1.LogonRequest.locale)
1350}
1351inline void LogonRequest::set_locale(const char* value, size_t size) {
1353 if (locale_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1354 locale_ = new ::std::string;
1355 }
1356 locale_->assign(reinterpret_cast<const char*>(value), size);
1357 // @@protoc_insertion_point(field_set_pointer:bgs.protocol.authentication.v1.LogonRequest.locale)
1358}
1359inline ::std::string* LogonRequest::mutable_locale() {
1361 if (locale_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1362 locale_ = new ::std::string;
1363 }
1364 // @@protoc_insertion_point(field_mutable:bgs.protocol.authentication.v1.LogonRequest.locale)
1365 return locale_;
1366}
1367inline ::std::string* LogonRequest::release_locale() {
1369 if (locale_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1370 return NULL;
1371 } else {
1372 ::std::string* temp = locale_;
1373 locale_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1374 return temp;
1375 }
1376}
1377inline void LogonRequest::set_allocated_locale(::std::string* locale) {
1378 if (locale_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1379 delete locale_;
1380 }
1381 if (locale) {
1383 locale_ = locale;
1384 } else {
1386 locale_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1387 }
1388 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.authentication.v1.LogonRequest.locale)
1389}
1390
1391// optional string email = 4;
1392inline bool LogonRequest::has_email() const {
1393 return (_has_bits_[0] & 0x00000008u) != 0;
1394}
1396 _has_bits_[0] |= 0x00000008u;
1397}
1399 _has_bits_[0] &= ~0x00000008u;
1400}
1402 if (email_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1403 email_->clear();
1404 }
1406}
1407inline const ::std::string& LogonRequest::email() const {
1408 // @@protoc_insertion_point(field_get:bgs.protocol.authentication.v1.LogonRequest.email)
1409 return *email_;
1410}
1411inline void LogonRequest::set_email(const ::std::string& value) {
1412 set_has_email();
1413 if (email_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1414 email_ = new ::std::string;
1415 }
1416 email_->assign(value);
1417 // @@protoc_insertion_point(field_set:bgs.protocol.authentication.v1.LogonRequest.email)
1418}
1419inline void LogonRequest::set_email(const char* value) {
1420 set_has_email();
1421 if (email_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1422 email_ = new ::std::string;
1423 }
1424 email_->assign(value);
1425 // @@protoc_insertion_point(field_set_char:bgs.protocol.authentication.v1.LogonRequest.email)
1426}
1427inline void LogonRequest::set_email(const char* value, size_t size) {
1428 set_has_email();
1429 if (email_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1430 email_ = new ::std::string;
1431 }
1432 email_->assign(reinterpret_cast<const char*>(value), size);
1433 // @@protoc_insertion_point(field_set_pointer:bgs.protocol.authentication.v1.LogonRequest.email)
1434}
1435inline ::std::string* LogonRequest::mutable_email() {
1436 set_has_email();
1437 if (email_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1438 email_ = new ::std::string;
1439 }
1440 // @@protoc_insertion_point(field_mutable:bgs.protocol.authentication.v1.LogonRequest.email)
1441 return email_;
1442}
1443inline ::std::string* LogonRequest::release_email() {
1445 if (email_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1446 return NULL;
1447 } else {
1448 ::std::string* temp = email_;
1449 email_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1450 return temp;
1451 }
1452}
1453inline void LogonRequest::set_allocated_email(::std::string* email) {
1454 if (email_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1455 delete email_;
1456 }
1457 if (email) {
1458 set_has_email();
1459 email_ = email;
1460 } else {
1462 email_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1463 }
1464 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.authentication.v1.LogonRequest.email)
1465}
1466
1467// optional string version = 5;
1468inline bool LogonRequest::has_version() const {
1469 return (_has_bits_[0] & 0x00000010u) != 0;
1470}
1472 _has_bits_[0] |= 0x00000010u;
1473}
1475 _has_bits_[0] &= ~0x00000010u;
1476}
1478 if (version_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1479 version_->clear();
1480 }
1482}
1483inline const ::std::string& LogonRequest::version() const {
1484 // @@protoc_insertion_point(field_get:bgs.protocol.authentication.v1.LogonRequest.version)
1485 return *version_;
1486}
1487inline void LogonRequest::set_version(const ::std::string& value) {
1489 if (version_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1490 version_ = new ::std::string;
1491 }
1492 version_->assign(value);
1493 // @@protoc_insertion_point(field_set:bgs.protocol.authentication.v1.LogonRequest.version)
1494}
1495inline void LogonRequest::set_version(const char* value) {
1497 if (version_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1498 version_ = new ::std::string;
1499 }
1500 version_->assign(value);
1501 // @@protoc_insertion_point(field_set_char:bgs.protocol.authentication.v1.LogonRequest.version)
1502}
1503inline void LogonRequest::set_version(const char* value, size_t size) {
1505 if (version_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1506 version_ = new ::std::string;
1507 }
1508 version_->assign(reinterpret_cast<const char*>(value), size);
1509 // @@protoc_insertion_point(field_set_pointer:bgs.protocol.authentication.v1.LogonRequest.version)
1510}
1511inline ::std::string* LogonRequest::mutable_version() {
1513 if (version_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1514 version_ = new ::std::string;
1515 }
1516 // @@protoc_insertion_point(field_mutable:bgs.protocol.authentication.v1.LogonRequest.version)
1517 return version_;
1518}
1519inline ::std::string* LogonRequest::release_version() {
1521 if (version_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1522 return NULL;
1523 } else {
1524 ::std::string* temp = version_;
1525 version_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1526 return temp;
1527 }
1528}
1529inline void LogonRequest::set_allocated_version(::std::string* version) {
1530 if (version_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1531 delete version_;
1532 }
1533 if (version) {
1535 version_ = version;
1536 } else {
1538 version_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1539 }
1540 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.authentication.v1.LogonRequest.version)
1541}
1542
1543// optional int32 application_version = 6;
1545 return (_has_bits_[0] & 0x00000020u) != 0;
1546}
1548 _has_bits_[0] |= 0x00000020u;
1549}
1551 _has_bits_[0] &= ~0x00000020u;
1552}
1556}
1558 // @@protoc_insertion_point(field_get:bgs.protocol.authentication.v1.LogonRequest.application_version)
1559 return application_version_;
1560}
1563 application_version_ = value;
1564 // @@protoc_insertion_point(field_set:bgs.protocol.authentication.v1.LogonRequest.application_version)
1565}
1566
1567// optional bool public_computer = 7;
1569 return (_has_bits_[0] & 0x00000040u) != 0;
1570}
1572 _has_bits_[0] |= 0x00000040u;
1573}
1575 _has_bits_[0] &= ~0x00000040u;
1576}
1578 public_computer_ = false;
1580}
1582 // @@protoc_insertion_point(field_get:bgs.protocol.authentication.v1.LogonRequest.public_computer)
1583 return public_computer_;
1584}
1585inline void LogonRequest::set_public_computer(bool value) {
1587 public_computer_ = value;
1588 // @@protoc_insertion_point(field_set:bgs.protocol.authentication.v1.LogonRequest.public_computer)
1589}
1590
1591// optional bool allow_logon_queue_notifications = 10 [default = false];
1593 return (_has_bits_[0] & 0x00000080u) != 0;
1594}
1596 _has_bits_[0] |= 0x00000080u;
1597}
1599 _has_bits_[0] &= ~0x00000080u;
1600}
1604}
1606 // @@protoc_insertion_point(field_get:bgs.protocol.authentication.v1.LogonRequest.allow_logon_queue_notifications)
1608}
1612 // @@protoc_insertion_point(field_set:bgs.protocol.authentication.v1.LogonRequest.allow_logon_queue_notifications)
1613}
1614
1615// optional bytes cached_web_credentials = 12;
1617 return (_has_bits_[0] & 0x00000100u) != 0;
1618}
1620 _has_bits_[0] |= 0x00000100u;
1621}
1623 _has_bits_[0] &= ~0x00000100u;
1624}
1626 if (cached_web_credentials_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1627 cached_web_credentials_->clear();
1628 }
1630}
1631inline const ::std::string& LogonRequest::cached_web_credentials() const {
1632 // @@protoc_insertion_point(field_get:bgs.protocol.authentication.v1.LogonRequest.cached_web_credentials)
1634}
1635inline void LogonRequest::set_cached_web_credentials(const ::std::string& value) {
1637 if (cached_web_credentials_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1638 cached_web_credentials_ = new ::std::string;
1639 }
1640 cached_web_credentials_->assign(value);
1641 // @@protoc_insertion_point(field_set:bgs.protocol.authentication.v1.LogonRequest.cached_web_credentials)
1642}
1643inline void LogonRequest::set_cached_web_credentials(const char* value) {
1645 if (cached_web_credentials_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1646 cached_web_credentials_ = new ::std::string;
1647 }
1648 cached_web_credentials_->assign(value);
1649 // @@protoc_insertion_point(field_set_char:bgs.protocol.authentication.v1.LogonRequest.cached_web_credentials)
1650}
1651inline void LogonRequest::set_cached_web_credentials(const void* value, size_t size) {
1653 if (cached_web_credentials_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1654 cached_web_credentials_ = new ::std::string;
1655 }
1656 cached_web_credentials_->assign(reinterpret_cast<const char*>(value), size);
1657 // @@protoc_insertion_point(field_set_pointer:bgs.protocol.authentication.v1.LogonRequest.cached_web_credentials)
1658}
1661 if (cached_web_credentials_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1662 cached_web_credentials_ = new ::std::string;
1663 }
1664 // @@protoc_insertion_point(field_mutable:bgs.protocol.authentication.v1.LogonRequest.cached_web_credentials)
1666}
1669 if (cached_web_credentials_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1670 return NULL;
1671 } else {
1672 ::std::string* temp = cached_web_credentials_;
1673 cached_web_credentials_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1674 return temp;
1675 }
1676}
1677inline void LogonRequest::set_allocated_cached_web_credentials(::std::string* cached_web_credentials) {
1678 if (cached_web_credentials_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1680 }
1684 } else {
1686 cached_web_credentials_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1687 }
1688 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.authentication.v1.LogonRequest.cached_web_credentials)
1689}
1690
1691// optional string user_agent = 14;
1692inline bool LogonRequest::has_user_agent() const {
1693 return (_has_bits_[0] & 0x00000200u) != 0;
1694}
1696 _has_bits_[0] |= 0x00000200u;
1697}
1699 _has_bits_[0] &= ~0x00000200u;
1700}
1702 if (user_agent_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1703 user_agent_->clear();
1704 }
1706}
1707inline const ::std::string& LogonRequest::user_agent() const {
1708 // @@protoc_insertion_point(field_get:bgs.protocol.authentication.v1.LogonRequest.user_agent)
1709 return *user_agent_;
1710}
1711inline void LogonRequest::set_user_agent(const ::std::string& value) {
1713 if (user_agent_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1714 user_agent_ = new ::std::string;
1715 }
1716 user_agent_->assign(value);
1717 // @@protoc_insertion_point(field_set:bgs.protocol.authentication.v1.LogonRequest.user_agent)
1718}
1719inline void LogonRequest::set_user_agent(const char* value) {
1721 if (user_agent_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1722 user_agent_ = new ::std::string;
1723 }
1724 user_agent_->assign(value);
1725 // @@protoc_insertion_point(field_set_char:bgs.protocol.authentication.v1.LogonRequest.user_agent)
1726}
1727inline void LogonRequest::set_user_agent(const char* value, size_t size) {
1729 if (user_agent_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1730 user_agent_ = new ::std::string;
1731 }
1732 user_agent_->assign(reinterpret_cast<const char*>(value), size);
1733 // @@protoc_insertion_point(field_set_pointer:bgs.protocol.authentication.v1.LogonRequest.user_agent)
1734}
1735inline ::std::string* LogonRequest::mutable_user_agent() {
1737 if (user_agent_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1738 user_agent_ = new ::std::string;
1739 }
1740 // @@protoc_insertion_point(field_mutable:bgs.protocol.authentication.v1.LogonRequest.user_agent)
1741 return user_agent_;
1742}
1743inline ::std::string* LogonRequest::release_user_agent() {
1745 if (user_agent_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1746 return NULL;
1747 } else {
1748 ::std::string* temp = user_agent_;
1749 user_agent_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1750 return temp;
1751 }
1752}
1753inline void LogonRequest::set_allocated_user_agent(::std::string* user_agent) {
1754 if (user_agent_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1755 delete user_agent_;
1756 }
1757 if (user_agent) {
1760 } else {
1762 user_agent_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1763 }
1764 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.authentication.v1.LogonRequest.user_agent)
1765}
1766
1767// optional string device_id = 15;
1768inline bool LogonRequest::has_device_id() const {
1769 return (_has_bits_[0] & 0x00000400u) != 0;
1770}
1772 _has_bits_[0] |= 0x00000400u;
1773}
1775 _has_bits_[0] &= ~0x00000400u;
1776}
1778 if (device_id_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1779 device_id_->clear();
1780 }
1782}
1783inline const ::std::string& LogonRequest::device_id() const {
1784 // @@protoc_insertion_point(field_get:bgs.protocol.authentication.v1.LogonRequest.device_id)
1785 return *device_id_;
1786}
1787inline void LogonRequest::set_device_id(const ::std::string& value) {
1789 if (device_id_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1790 device_id_ = new ::std::string;
1791 }
1792 device_id_->assign(value);
1793 // @@protoc_insertion_point(field_set:bgs.protocol.authentication.v1.LogonRequest.device_id)
1794}
1795inline void LogonRequest::set_device_id(const char* value) {
1797 if (device_id_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1798 device_id_ = new ::std::string;
1799 }
1800 device_id_->assign(value);
1801 // @@protoc_insertion_point(field_set_char:bgs.protocol.authentication.v1.LogonRequest.device_id)
1802}
1803inline void LogonRequest::set_device_id(const char* value, size_t size) {
1805 if (device_id_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1806 device_id_ = new ::std::string;
1807 }
1808 device_id_->assign(reinterpret_cast<const char*>(value), size);
1809 // @@protoc_insertion_point(field_set_pointer:bgs.protocol.authentication.v1.LogonRequest.device_id)
1810}
1811inline ::std::string* LogonRequest::mutable_device_id() {
1813 if (device_id_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1814 device_id_ = new ::std::string;
1815 }
1816 // @@protoc_insertion_point(field_mutable:bgs.protocol.authentication.v1.LogonRequest.device_id)
1817 return device_id_;
1818}
1819inline ::std::string* LogonRequest::release_device_id() {
1821 if (device_id_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1822 return NULL;
1823 } else {
1824 ::std::string* temp = device_id_;
1825 device_id_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1826 return temp;
1827 }
1828}
1829inline void LogonRequest::set_allocated_device_id(::std::string* device_id) {
1830 if (device_id_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1831 delete device_id_;
1832 }
1833 if (device_id) {
1836 } else {
1838 device_id_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1839 }
1840 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.authentication.v1.LogonRequest.device_id)
1841}
1842
1843// optional string phone_number = 16;
1845 return (_has_bits_[0] & 0x00000800u) != 0;
1846}
1848 _has_bits_[0] |= 0x00000800u;
1849}
1851 _has_bits_[0] &= ~0x00000800u;
1852}
1854 if (phone_number_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1855 phone_number_->clear();
1856 }
1858}
1859inline const ::std::string& LogonRequest::phone_number() const {
1860 // @@protoc_insertion_point(field_get:bgs.protocol.authentication.v1.LogonRequest.phone_number)
1861 return *phone_number_;
1862}
1863inline void LogonRequest::set_phone_number(const ::std::string& value) {
1865 if (phone_number_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1866 phone_number_ = new ::std::string;
1867 }
1868 phone_number_->assign(value);
1869 // @@protoc_insertion_point(field_set:bgs.protocol.authentication.v1.LogonRequest.phone_number)
1870}
1871inline void LogonRequest::set_phone_number(const char* value) {
1873 if (phone_number_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1874 phone_number_ = new ::std::string;
1875 }
1876 phone_number_->assign(value);
1877 // @@protoc_insertion_point(field_set_char:bgs.protocol.authentication.v1.LogonRequest.phone_number)
1878}
1879inline void LogonRequest::set_phone_number(const char* value, size_t size) {
1881 if (phone_number_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1882 phone_number_ = new ::std::string;
1883 }
1884 phone_number_->assign(reinterpret_cast<const char*>(value), size);
1885 // @@protoc_insertion_point(field_set_pointer:bgs.protocol.authentication.v1.LogonRequest.phone_number)
1886}
1887inline ::std::string* LogonRequest::mutable_phone_number() {
1889 if (phone_number_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1890 phone_number_ = new ::std::string;
1891 }
1892 // @@protoc_insertion_point(field_mutable:bgs.protocol.authentication.v1.LogonRequest.phone_number)
1893 return phone_number_;
1894}
1895inline ::std::string* LogonRequest::release_phone_number() {
1897 if (phone_number_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1898 return NULL;
1899 } else {
1900 ::std::string* temp = phone_number_;
1901 phone_number_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1902 return temp;
1903 }
1904}
1905inline void LogonRequest::set_allocated_phone_number(::std::string* phone_number) {
1906 if (phone_number_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1907 delete phone_number_;
1908 }
1909 if (phone_number) {
1912 } else {
1914 phone_number_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1915 }
1916 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.authentication.v1.LogonRequest.phone_number)
1917}
1918
1919// optional string auth_platform = 17;
1921 return (_has_bits_[0] & 0x00001000u) != 0;
1922}
1924 _has_bits_[0] |= 0x00001000u;
1925}
1927 _has_bits_[0] &= ~0x00001000u;
1928}
1930 if (auth_platform_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1931 auth_platform_->clear();
1932 }
1934}
1935inline const ::std::string& LogonRequest::auth_platform() const {
1936 // @@protoc_insertion_point(field_get:bgs.protocol.authentication.v1.LogonRequest.auth_platform)
1937 return *auth_platform_;
1938}
1939inline void LogonRequest::set_auth_platform(const ::std::string& value) {
1941 if (auth_platform_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1942 auth_platform_ = new ::std::string;
1943 }
1944 auth_platform_->assign(value);
1945 // @@protoc_insertion_point(field_set:bgs.protocol.authentication.v1.LogonRequest.auth_platform)
1946}
1947inline void LogonRequest::set_auth_platform(const char* value) {
1949 if (auth_platform_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1950 auth_platform_ = new ::std::string;
1951 }
1952 auth_platform_->assign(value);
1953 // @@protoc_insertion_point(field_set_char:bgs.protocol.authentication.v1.LogonRequest.auth_platform)
1954}
1955inline void LogonRequest::set_auth_platform(const char* value, size_t size) {
1957 if (auth_platform_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1958 auth_platform_ = new ::std::string;
1959 }
1960 auth_platform_->assign(reinterpret_cast<const char*>(value), size);
1961 // @@protoc_insertion_point(field_set_pointer:bgs.protocol.authentication.v1.LogonRequest.auth_platform)
1962}
1965 if (auth_platform_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1966 auth_platform_ = new ::std::string;
1967 }
1968 // @@protoc_insertion_point(field_mutable:bgs.protocol.authentication.v1.LogonRequest.auth_platform)
1969 return auth_platform_;
1970}
1973 if (auth_platform_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1974 return NULL;
1975 } else {
1976 ::std::string* temp = auth_platform_;
1977 auth_platform_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1978 return temp;
1979 }
1980}
1981inline void LogonRequest::set_allocated_auth_platform(::std::string* auth_platform) {
1982 if (auth_platform_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1983 delete auth_platform_;
1984 }
1985 if (auth_platform) {
1988 } else {
1990 auth_platform_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1991 }
1992 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.authentication.v1.LogonRequest.auth_platform)
1993}
1994
1995// -------------------------------------------------------------------
1996
1997// LogonResult
1998
1999// required uint32 error_code = 1;
2000inline bool LogonResult::has_error_code() const {
2001 return (_has_bits_[0] & 0x00000001u) != 0;
2002}
2004 _has_bits_[0] |= 0x00000001u;
2005}
2007 _has_bits_[0] &= ~0x00000001u;
2008}
2010 error_code_ = 0u;
2012}
2014 // @@protoc_insertion_point(field_get:bgs.protocol.authentication.v1.LogonResult.error_code)
2015 return error_code_;
2016}
2019 error_code_ = value;
2020 // @@protoc_insertion_point(field_set:bgs.protocol.authentication.v1.LogonResult.error_code)
2021}
2022
2023// optional .bgs.protocol.EntityId account_id = 2;
2024inline bool LogonResult::has_account_id() const {
2025 return (_has_bits_[0] & 0x00000002u) != 0;
2026}
2028 _has_bits_[0] |= 0x00000002u;
2029}
2031 _has_bits_[0] &= ~0x00000002u;
2032}
2034 if (account_id_ != NULL) account_id_->::bgs::protocol::EntityId::Clear();
2036}
2037inline const ::bgs::protocol::EntityId& LogonResult::account_id() const {
2038 // @@protoc_insertion_point(field_get:bgs.protocol.authentication.v1.LogonResult.account_id)
2040}
2041inline ::bgs::protocol::EntityId* LogonResult::mutable_account_id() {
2043 if (account_id_ == NULL) account_id_ = new ::bgs::protocol::EntityId;
2044 // @@protoc_insertion_point(field_mutable:bgs.protocol.authentication.v1.LogonResult.account_id)
2045 return account_id_;
2046}
2047inline ::bgs::protocol::EntityId* LogonResult::release_account_id() {
2050 account_id_ = NULL;
2051 return temp;
2052}
2054 delete account_id_;
2056 if (account_id) {
2058 } else {
2060 }
2061 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.authentication.v1.LogonResult.account_id)
2062}
2063
2064// repeated .bgs.protocol.EntityId game_account_id = 3;
2066 return game_account_id_.size();
2067}
2069 game_account_id_.Clear();
2070}
2071inline const ::bgs::protocol::EntityId& LogonResult::game_account_id(int index) const {
2072 // @@protoc_insertion_point(field_get:bgs.protocol.authentication.v1.LogonResult.game_account_id)
2073 return game_account_id_.Get(index);
2074}
2075inline ::bgs::protocol::EntityId* LogonResult::mutable_game_account_id(int index) {
2076 // @@protoc_insertion_point(field_mutable:bgs.protocol.authentication.v1.LogonResult.game_account_id)
2077 return game_account_id_.Mutable(index);
2078}
2079inline ::bgs::protocol::EntityId* LogonResult::add_game_account_id() {
2080 // @@protoc_insertion_point(field_add:bgs.protocol.authentication.v1.LogonResult.game_account_id)
2081 return game_account_id_.Add();
2082}
2083inline const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::EntityId >&
2085 // @@protoc_insertion_point(field_list:bgs.protocol.authentication.v1.LogonResult.game_account_id)
2086 return game_account_id_;
2087}
2088inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::EntityId >*
2090 // @@protoc_insertion_point(field_mutable_list:bgs.protocol.authentication.v1.LogonResult.game_account_id)
2091 return &game_account_id_;
2092}
2093
2094// optional string email = 4;
2095inline bool LogonResult::has_email() const {
2096 return (_has_bits_[0] & 0x00000008u) != 0;
2097}
2099 _has_bits_[0] |= 0x00000008u;
2100}
2102 _has_bits_[0] &= ~0x00000008u;
2103}
2105 if (email_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2106 email_->clear();
2107 }
2109}
2110inline const ::std::string& LogonResult::email() const {
2111 // @@protoc_insertion_point(field_get:bgs.protocol.authentication.v1.LogonResult.email)
2112 return *email_;
2113}
2114inline void LogonResult::set_email(const ::std::string& value) {
2115 set_has_email();
2116 if (email_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2117 email_ = new ::std::string;
2118 }
2119 email_->assign(value);
2120 // @@protoc_insertion_point(field_set:bgs.protocol.authentication.v1.LogonResult.email)
2121}
2122inline void LogonResult::set_email(const char* value) {
2123 set_has_email();
2124 if (email_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2125 email_ = new ::std::string;
2126 }
2127 email_->assign(value);
2128 // @@protoc_insertion_point(field_set_char:bgs.protocol.authentication.v1.LogonResult.email)
2129}
2130inline void LogonResult::set_email(const char* value, size_t size) {
2131 set_has_email();
2132 if (email_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2133 email_ = new ::std::string;
2134 }
2135 email_->assign(reinterpret_cast<const char*>(value), size);
2136 // @@protoc_insertion_point(field_set_pointer:bgs.protocol.authentication.v1.LogonResult.email)
2137}
2138inline ::std::string* LogonResult::mutable_email() {
2139 set_has_email();
2140 if (email_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2141 email_ = new ::std::string;
2142 }
2143 // @@protoc_insertion_point(field_mutable:bgs.protocol.authentication.v1.LogonResult.email)
2144 return email_;
2145}
2146inline ::std::string* LogonResult::release_email() {
2148 if (email_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2149 return NULL;
2150 } else {
2151 ::std::string* temp = email_;
2152 email_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2153 return temp;
2154 }
2155}
2156inline void LogonResult::set_allocated_email(::std::string* email) {
2157 if (email_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2158 delete email_;
2159 }
2160 if (email) {
2161 set_has_email();
2162 email_ = email;
2163 } else {
2165 email_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2166 }
2167 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.authentication.v1.LogonResult.email)
2168}
2169
2170// repeated uint32 available_region = 5;
2172 return available_region_.size();
2173}
2175 available_region_.Clear();
2176}
2178 // @@protoc_insertion_point(field_get:bgs.protocol.authentication.v1.LogonResult.available_region)
2179 return available_region_.Get(index);
2180}
2182 available_region_.Set(index, value);
2183 // @@protoc_insertion_point(field_set:bgs.protocol.authentication.v1.LogonResult.available_region)
2184}
2186 available_region_.Add(value);
2187 // @@protoc_insertion_point(field_add:bgs.protocol.authentication.v1.LogonResult.available_region)
2188}
2189inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
2191 // @@protoc_insertion_point(field_list:bgs.protocol.authentication.v1.LogonResult.available_region)
2192 return available_region_;
2193}
2194inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
2196 // @@protoc_insertion_point(field_mutable_list:bgs.protocol.authentication.v1.LogonResult.available_region)
2197 return &available_region_;
2198}
2199
2200// optional uint32 connected_region = 6;
2202 return (_has_bits_[0] & 0x00000020u) != 0;
2203}
2205 _has_bits_[0] |= 0x00000020u;
2206}
2208 _has_bits_[0] &= ~0x00000020u;
2209}
2211 connected_region_ = 0u;
2213}
2215 // @@protoc_insertion_point(field_get:bgs.protocol.authentication.v1.LogonResult.connected_region)
2216 return connected_region_;
2217}
2220 connected_region_ = value;
2221 // @@protoc_insertion_point(field_set:bgs.protocol.authentication.v1.LogonResult.connected_region)
2222}
2223
2224// optional string battle_tag = 7;
2225inline bool LogonResult::has_battle_tag() const {
2226 return (_has_bits_[0] & 0x00000040u) != 0;
2227}
2229 _has_bits_[0] |= 0x00000040u;
2230}
2232 _has_bits_[0] &= ~0x00000040u;
2233}
2235 if (battle_tag_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2236 battle_tag_->clear();
2237 }
2239}
2240inline const ::std::string& LogonResult::battle_tag() const {
2241 // @@protoc_insertion_point(field_get:bgs.protocol.authentication.v1.LogonResult.battle_tag)
2242 return *battle_tag_;
2243}
2244inline void LogonResult::set_battle_tag(const ::std::string& value) {
2246 if (battle_tag_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2247 battle_tag_ = new ::std::string;
2248 }
2249 battle_tag_->assign(value);
2250 // @@protoc_insertion_point(field_set:bgs.protocol.authentication.v1.LogonResult.battle_tag)
2251}
2252inline void LogonResult::set_battle_tag(const char* value) {
2254 if (battle_tag_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2255 battle_tag_ = new ::std::string;
2256 }
2257 battle_tag_->assign(value);
2258 // @@protoc_insertion_point(field_set_char:bgs.protocol.authentication.v1.LogonResult.battle_tag)
2259}
2260inline void LogonResult::set_battle_tag(const char* value, size_t size) {
2262 if (battle_tag_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2263 battle_tag_ = new ::std::string;
2264 }
2265 battle_tag_->assign(reinterpret_cast<const char*>(value), size);
2266 // @@protoc_insertion_point(field_set_pointer:bgs.protocol.authentication.v1.LogonResult.battle_tag)
2267}
2268inline ::std::string* LogonResult::mutable_battle_tag() {
2270 if (battle_tag_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2271 battle_tag_ = new ::std::string;
2272 }
2273 // @@protoc_insertion_point(field_mutable:bgs.protocol.authentication.v1.LogonResult.battle_tag)
2274 return battle_tag_;
2275}
2276inline ::std::string* LogonResult::release_battle_tag() {
2278 if (battle_tag_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2279 return NULL;
2280 } else {
2281 ::std::string* temp = battle_tag_;
2282 battle_tag_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2283 return temp;
2284 }
2285}
2286inline void LogonResult::set_allocated_battle_tag(::std::string* battle_tag) {
2287 if (battle_tag_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2288 delete battle_tag_;
2289 }
2290 if (battle_tag) {
2293 } else {
2295 battle_tag_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2296 }
2297 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.authentication.v1.LogonResult.battle_tag)
2298}
2299
2300// optional string geoip_country = 8;
2302 return (_has_bits_[0] & 0x00000080u) != 0;
2303}
2305 _has_bits_[0] |= 0x00000080u;
2306}
2308 _has_bits_[0] &= ~0x00000080u;
2309}
2311 if (geoip_country_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2312 geoip_country_->clear();
2313 }
2315}
2316inline const ::std::string& LogonResult::geoip_country() const {
2317 // @@protoc_insertion_point(field_get:bgs.protocol.authentication.v1.LogonResult.geoip_country)
2318 return *geoip_country_;
2319}
2320inline void LogonResult::set_geoip_country(const ::std::string& value) {
2322 if (geoip_country_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2323 geoip_country_ = new ::std::string;
2324 }
2325 geoip_country_->assign(value);
2326 // @@protoc_insertion_point(field_set:bgs.protocol.authentication.v1.LogonResult.geoip_country)
2327}
2328inline void LogonResult::set_geoip_country(const char* value) {
2330 if (geoip_country_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2331 geoip_country_ = new ::std::string;
2332 }
2333 geoip_country_->assign(value);
2334 // @@protoc_insertion_point(field_set_char:bgs.protocol.authentication.v1.LogonResult.geoip_country)
2335}
2336inline void LogonResult::set_geoip_country(const char* value, size_t size) {
2338 if (geoip_country_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2339 geoip_country_ = new ::std::string;
2340 }
2341 geoip_country_->assign(reinterpret_cast<const char*>(value), size);
2342 // @@protoc_insertion_point(field_set_pointer:bgs.protocol.authentication.v1.LogonResult.geoip_country)
2343}
2344inline ::std::string* LogonResult::mutable_geoip_country() {
2346 if (geoip_country_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2347 geoip_country_ = new ::std::string;
2348 }
2349 // @@protoc_insertion_point(field_mutable:bgs.protocol.authentication.v1.LogonResult.geoip_country)
2350 return geoip_country_;
2351}
2352inline ::std::string* LogonResult::release_geoip_country() {
2354 if (geoip_country_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2355 return NULL;
2356 } else {
2357 ::std::string* temp = geoip_country_;
2358 geoip_country_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2359 return temp;
2360 }
2361}
2362inline void LogonResult::set_allocated_geoip_country(::std::string* geoip_country) {
2363 if (geoip_country_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2364 delete geoip_country_;
2365 }
2366 if (geoip_country) {
2369 } else {
2371 geoip_country_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2372 }
2373 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.authentication.v1.LogonResult.geoip_country)
2374}
2375
2376// optional bytes session_key = 9;
2377inline bool LogonResult::has_session_key() const {
2378 return (_has_bits_[0] & 0x00000100u) != 0;
2379}
2381 _has_bits_[0] |= 0x00000100u;
2382}
2384 _has_bits_[0] &= ~0x00000100u;
2385}
2387 if (session_key_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2388 session_key_->clear();
2389 }
2391}
2392inline const ::std::string& LogonResult::session_key() const {
2393 // @@protoc_insertion_point(field_get:bgs.protocol.authentication.v1.LogonResult.session_key)
2394 return *session_key_;
2395}
2396inline void LogonResult::set_session_key(const ::std::string& value) {
2398 if (session_key_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2399 session_key_ = new ::std::string;
2400 }
2401 session_key_->assign(value);
2402 // @@protoc_insertion_point(field_set:bgs.protocol.authentication.v1.LogonResult.session_key)
2403}
2404inline void LogonResult::set_session_key(const char* value) {
2406 if (session_key_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2407 session_key_ = new ::std::string;
2408 }
2409 session_key_->assign(value);
2410 // @@protoc_insertion_point(field_set_char:bgs.protocol.authentication.v1.LogonResult.session_key)
2411}
2412inline void LogonResult::set_session_key(const void* value, size_t size) {
2414 if (session_key_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2415 session_key_ = new ::std::string;
2416 }
2417 session_key_->assign(reinterpret_cast<const char*>(value), size);
2418 // @@protoc_insertion_point(field_set_pointer:bgs.protocol.authentication.v1.LogonResult.session_key)
2419}
2420inline ::std::string* LogonResult::mutable_session_key() {
2422 if (session_key_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2423 session_key_ = new ::std::string;
2424 }
2425 // @@protoc_insertion_point(field_mutable:bgs.protocol.authentication.v1.LogonResult.session_key)
2426 return session_key_;
2427}
2428inline ::std::string* LogonResult::release_session_key() {
2430 if (session_key_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2431 return NULL;
2432 } else {
2433 ::std::string* temp = session_key_;
2434 session_key_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2435 return temp;
2436 }
2437}
2438inline void LogonResult::set_allocated_session_key(::std::string* session_key) {
2439 if (session_key_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2440 delete session_key_;
2441 }
2442 if (session_key) {
2445 } else {
2447 session_key_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2448 }
2449 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.authentication.v1.LogonResult.session_key)
2450}
2451
2452// optional bool restricted_mode = 10;
2454 return (_has_bits_[0] & 0x00000200u) != 0;
2455}
2457 _has_bits_[0] |= 0x00000200u;
2458}
2460 _has_bits_[0] &= ~0x00000200u;
2461}
2463 restricted_mode_ = false;
2465}
2466inline bool LogonResult::restricted_mode() const {
2467 // @@protoc_insertion_point(field_get:bgs.protocol.authentication.v1.LogonResult.restricted_mode)
2468 return restricted_mode_;
2469}
2470inline void LogonResult::set_restricted_mode(bool value) {
2472 restricted_mode_ = value;
2473 // @@protoc_insertion_point(field_set:bgs.protocol.authentication.v1.LogonResult.restricted_mode)
2474}
2475
2476// optional string client_id = 11;
2477inline bool LogonResult::has_client_id() const {
2478 return (_has_bits_[0] & 0x00000400u) != 0;
2479}
2481 _has_bits_[0] |= 0x00000400u;
2482}
2484 _has_bits_[0] &= ~0x00000400u;
2485}
2487 if (client_id_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2488 client_id_->clear();
2489 }
2491}
2492inline const ::std::string& LogonResult::client_id() const {
2493 // @@protoc_insertion_point(field_get:bgs.protocol.authentication.v1.LogonResult.client_id)
2494 return *client_id_;
2495}
2496inline void LogonResult::set_client_id(const ::std::string& value) {
2498 if (client_id_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2499 client_id_ = new ::std::string;
2500 }
2501 client_id_->assign(value);
2502 // @@protoc_insertion_point(field_set:bgs.protocol.authentication.v1.LogonResult.client_id)
2503}
2504inline void LogonResult::set_client_id(const char* value) {
2506 if (client_id_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2507 client_id_ = new ::std::string;
2508 }
2509 client_id_->assign(value);
2510 // @@protoc_insertion_point(field_set_char:bgs.protocol.authentication.v1.LogonResult.client_id)
2511}
2512inline void LogonResult::set_client_id(const char* value, size_t size) {
2514 if (client_id_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2515 client_id_ = new ::std::string;
2516 }
2517 client_id_->assign(reinterpret_cast<const char*>(value), size);
2518 // @@protoc_insertion_point(field_set_pointer:bgs.protocol.authentication.v1.LogonResult.client_id)
2519}
2520inline ::std::string* LogonResult::mutable_client_id() {
2522 if (client_id_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2523 client_id_ = new ::std::string;
2524 }
2525 // @@protoc_insertion_point(field_mutable:bgs.protocol.authentication.v1.LogonResult.client_id)
2526 return client_id_;
2527}
2528inline ::std::string* LogonResult::release_client_id() {
2530 if (client_id_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2531 return NULL;
2532 } else {
2533 ::std::string* temp = client_id_;
2534 client_id_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2535 return temp;
2536 }
2537}
2538inline void LogonResult::set_allocated_client_id(::std::string* client_id) {
2539 if (client_id_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2540 delete client_id_;
2541 }
2542 if (client_id) {
2545 } else {
2547 client_id_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2548 }
2549 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.authentication.v1.LogonResult.client_id)
2550}
2551
2552// -------------------------------------------------------------------
2553
2554// LogonUpdateRequest
2555
2556// required uint32 error_code = 1;
2558 return (_has_bits_[0] & 0x00000001u) != 0;
2559}
2561 _has_bits_[0] |= 0x00000001u;
2562}
2564 _has_bits_[0] &= ~0x00000001u;
2565}
2567 error_code_ = 0u;
2569}
2571 // @@protoc_insertion_point(field_get:bgs.protocol.authentication.v1.LogonUpdateRequest.error_code)
2572 return error_code_;
2573}
2576 error_code_ = value;
2577 // @@protoc_insertion_point(field_set:bgs.protocol.authentication.v1.LogonUpdateRequest.error_code)
2578}
2579
2580// -------------------------------------------------------------------
2581
2582// LogonQueueUpdateRequest
2583
2584// required uint32 position = 1;
2586 return (_has_bits_[0] & 0x00000001u) != 0;
2587}
2589 _has_bits_[0] |= 0x00000001u;
2590}
2592 _has_bits_[0] &= ~0x00000001u;
2593}
2595 position_ = 0u;
2597}
2599 // @@protoc_insertion_point(field_get:bgs.protocol.authentication.v1.LogonQueueUpdateRequest.position)
2600 return position_;
2601}
2604 position_ = value;
2605 // @@protoc_insertion_point(field_set:bgs.protocol.authentication.v1.LogonQueueUpdateRequest.position)
2606}
2607
2608// required uint64 estimated_time = 2;
2610 return (_has_bits_[0] & 0x00000002u) != 0;
2611}
2613 _has_bits_[0] |= 0x00000002u;
2614}
2616 _has_bits_[0] &= ~0x00000002u;
2617}
2619 estimated_time_ = GOOGLE_ULONGLONG(0);
2621}
2623 // @@protoc_insertion_point(field_get:bgs.protocol.authentication.v1.LogonQueueUpdateRequest.estimated_time)
2624 return estimated_time_;
2625}
2628 estimated_time_ = value;
2629 // @@protoc_insertion_point(field_set:bgs.protocol.authentication.v1.LogonQueueUpdateRequest.estimated_time)
2630}
2631
2632// required uint64 eta_deviation_in_sec = 3;
2634 return (_has_bits_[0] & 0x00000004u) != 0;
2635}
2637 _has_bits_[0] |= 0x00000004u;
2638}
2640 _has_bits_[0] &= ~0x00000004u;
2641}
2643 eta_deviation_in_sec_ = GOOGLE_ULONGLONG(0);
2645}
2647 // @@protoc_insertion_point(field_get:bgs.protocol.authentication.v1.LogonQueueUpdateRequest.eta_deviation_in_sec)
2648 return eta_deviation_in_sec_;
2649}
2652 eta_deviation_in_sec_ = value;
2653 // @@protoc_insertion_point(field_set:bgs.protocol.authentication.v1.LogonQueueUpdateRequest.eta_deviation_in_sec)
2654}
2655
2656// -------------------------------------------------------------------
2657
2658// ServerStateChangeRequest
2659
2660// required uint32 state = 1;
2662 return (_has_bits_[0] & 0x00000001u) != 0;
2663}
2665 _has_bits_[0] |= 0x00000001u;
2666}
2668 _has_bits_[0] &= ~0x00000001u;
2669}
2671 state_ = 0u;
2673}
2675 // @@protoc_insertion_point(field_get:bgs.protocol.authentication.v1.ServerStateChangeRequest.state)
2676 return state_;
2677}
2679 set_has_state();
2680 state_ = value;
2681 // @@protoc_insertion_point(field_set:bgs.protocol.authentication.v1.ServerStateChangeRequest.state)
2682}
2683
2684// required uint64 event_time = 2;
2686 return (_has_bits_[0] & 0x00000002u) != 0;
2687}
2689 _has_bits_[0] |= 0x00000002u;
2690}
2692 _has_bits_[0] &= ~0x00000002u;
2693}
2695 event_time_ = GOOGLE_ULONGLONG(0);
2697}
2699 // @@protoc_insertion_point(field_get:bgs.protocol.authentication.v1.ServerStateChangeRequest.event_time)
2700 return event_time_;
2701}
2704 event_time_ = value;
2705 // @@protoc_insertion_point(field_set:bgs.protocol.authentication.v1.ServerStateChangeRequest.event_time)
2706}
2707
2708// -------------------------------------------------------------------
2709
2710// VersionInfo
2711
2712// optional uint32 number = 1;
2713inline bool VersionInfo::has_number() const {
2714 return (_has_bits_[0] & 0x00000001u) != 0;
2715}
2717 _has_bits_[0] |= 0x00000001u;
2718}
2720 _has_bits_[0] &= ~0x00000001u;
2721}
2723 number_ = 0u;
2725}
2727 // @@protoc_insertion_point(field_get:bgs.protocol.authentication.v1.VersionInfo.number)
2728 return number_;
2729}
2732 number_ = value;
2733 // @@protoc_insertion_point(field_set:bgs.protocol.authentication.v1.VersionInfo.number)
2734}
2735
2736// optional string patch = 2;
2737inline bool VersionInfo::has_patch() const {
2738 return (_has_bits_[0] & 0x00000002u) != 0;
2739}
2741 _has_bits_[0] |= 0x00000002u;
2742}
2744 _has_bits_[0] &= ~0x00000002u;
2745}
2747 if (patch_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2748 patch_->clear();
2749 }
2751}
2752inline const ::std::string& VersionInfo::patch() const {
2753 // @@protoc_insertion_point(field_get:bgs.protocol.authentication.v1.VersionInfo.patch)
2754 return *patch_;
2755}
2756inline void VersionInfo::set_patch(const ::std::string& value) {
2757 set_has_patch();
2758 if (patch_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2759 patch_ = new ::std::string;
2760 }
2761 patch_->assign(value);
2762 // @@protoc_insertion_point(field_set:bgs.protocol.authentication.v1.VersionInfo.patch)
2763}
2764inline void VersionInfo::set_patch(const char* value) {
2765 set_has_patch();
2766 if (patch_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2767 patch_ = new ::std::string;
2768 }
2769 patch_->assign(value);
2770 // @@protoc_insertion_point(field_set_char:bgs.protocol.authentication.v1.VersionInfo.patch)
2771}
2772inline void VersionInfo::set_patch(const char* value, size_t size) {
2773 set_has_patch();
2774 if (patch_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2775 patch_ = new ::std::string;
2776 }
2777 patch_->assign(reinterpret_cast<const char*>(value), size);
2778 // @@protoc_insertion_point(field_set_pointer:bgs.protocol.authentication.v1.VersionInfo.patch)
2779}
2780inline ::std::string* VersionInfo::mutable_patch() {
2781 set_has_patch();
2782 if (patch_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2783 patch_ = new ::std::string;
2784 }
2785 // @@protoc_insertion_point(field_mutable:bgs.protocol.authentication.v1.VersionInfo.patch)
2786 return patch_;
2787}
2788inline ::std::string* VersionInfo::release_patch() {
2790 if (patch_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2791 return NULL;
2792 } else {
2793 ::std::string* temp = patch_;
2794 patch_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2795 return temp;
2796 }
2797}
2798inline void VersionInfo::set_allocated_patch(::std::string* patch) {
2799 if (patch_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2800 delete patch_;
2801 }
2802 if (patch) {
2803 set_has_patch();
2804 patch_ = patch;
2805 } else {
2807 patch_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2808 }
2809 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.authentication.v1.VersionInfo.patch)
2810}
2811
2812// optional bool is_optional = 3;
2813inline bool VersionInfo::has_is_optional() const {
2814 return (_has_bits_[0] & 0x00000004u) != 0;
2815}
2817 _has_bits_[0] |= 0x00000004u;
2818}
2820 _has_bits_[0] &= ~0x00000004u;
2821}
2823 is_optional_ = false;
2825}
2826inline bool VersionInfo::is_optional() const {
2827 // @@protoc_insertion_point(field_get:bgs.protocol.authentication.v1.VersionInfo.is_optional)
2828 return is_optional_;
2829}
2830inline void VersionInfo::set_is_optional(bool value) {
2832 is_optional_ = value;
2833 // @@protoc_insertion_point(field_set:bgs.protocol.authentication.v1.VersionInfo.is_optional)
2834}
2835
2836// optional uint64 kick_time = 4;
2837inline bool VersionInfo::has_kick_time() const {
2838 return (_has_bits_[0] & 0x00000008u) != 0;
2839}
2841 _has_bits_[0] |= 0x00000008u;
2842}
2844 _has_bits_[0] &= ~0x00000008u;
2845}
2847 kick_time_ = GOOGLE_ULONGLONG(0);
2849}
2851 // @@protoc_insertion_point(field_get:bgs.protocol.authentication.v1.VersionInfo.kick_time)
2852 return kick_time_;
2853}
2856 kick_time_ = value;
2857 // @@protoc_insertion_point(field_set:bgs.protocol.authentication.v1.VersionInfo.kick_time)
2858}
2859
2860// -------------------------------------------------------------------
2861
2862// VersionInfoNotification
2863
2864// optional .bgs.protocol.authentication.v1.VersionInfo version_info = 1;
2866 return (_has_bits_[0] & 0x00000001u) != 0;
2867}
2869 _has_bits_[0] |= 0x00000001u;
2870}
2872 _has_bits_[0] &= ~0x00000001u;
2873}
2875 if (version_info_ != NULL) version_info_->::bgs::protocol::authentication::v1::VersionInfo::Clear();
2877}
2878inline const ::bgs::protocol::authentication::v1::VersionInfo& VersionInfoNotification::version_info() const {
2879 // @@protoc_insertion_point(field_get:bgs.protocol.authentication.v1.VersionInfoNotification.version_info)
2881}
2882inline ::bgs::protocol::authentication::v1::VersionInfo* VersionInfoNotification::mutable_version_info() {
2884 if (version_info_ == NULL) version_info_ = new ::bgs::protocol::authentication::v1::VersionInfo;
2885 // @@protoc_insertion_point(field_mutable:bgs.protocol.authentication.v1.VersionInfoNotification.version_info)
2886 return version_info_;
2887}
2888inline ::bgs::protocol::authentication::v1::VersionInfo* VersionInfoNotification::release_version_info() {
2891 version_info_ = NULL;
2892 return temp;
2893}
2895 delete version_info_;
2897 if (version_info) {
2899 } else {
2901 }
2902 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.authentication.v1.VersionInfoNotification.version_info)
2903}
2904
2905// -------------------------------------------------------------------
2906
2907// GenerateWebCredentialsRequest
2908
2909// optional fixed32 program = 1;
2911 return (_has_bits_[0] & 0x00000001u) != 0;
2912}
2914 _has_bits_[0] |= 0x00000001u;
2915}
2917 _has_bits_[0] &= ~0x00000001u;
2918}
2920 program_ = 0u;
2922}
2924 // @@protoc_insertion_point(field_get:bgs.protocol.authentication.v1.GenerateWebCredentialsRequest.program)
2925 return program_;
2926}
2929 program_ = value;
2930 // @@protoc_insertion_point(field_set:bgs.protocol.authentication.v1.GenerateWebCredentialsRequest.program)
2931}
2932
2933// -------------------------------------------------------------------
2934
2935// GenerateWebCredentialsResponse
2936
2937// optional bytes web_credentials = 1;
2939 return (_has_bits_[0] & 0x00000001u) != 0;
2940}
2942 _has_bits_[0] |= 0x00000001u;
2943}
2945 _has_bits_[0] &= ~0x00000001u;
2946}
2948 if (web_credentials_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2949 web_credentials_->clear();
2950 }
2952}
2953inline const ::std::string& GenerateWebCredentialsResponse::web_credentials() const {
2954 // @@protoc_insertion_point(field_get:bgs.protocol.authentication.v1.GenerateWebCredentialsResponse.web_credentials)
2955 return *web_credentials_;
2956}
2957inline void GenerateWebCredentialsResponse::set_web_credentials(const ::std::string& value) {
2959 if (web_credentials_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2960 web_credentials_ = new ::std::string;
2961 }
2962 web_credentials_->assign(value);
2963 // @@protoc_insertion_point(field_set:bgs.protocol.authentication.v1.GenerateWebCredentialsResponse.web_credentials)
2964}
2967 if (web_credentials_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2968 web_credentials_ = new ::std::string;
2969 }
2970 web_credentials_->assign(value);
2971 // @@protoc_insertion_point(field_set_char:bgs.protocol.authentication.v1.GenerateWebCredentialsResponse.web_credentials)
2972}
2973inline void GenerateWebCredentialsResponse::set_web_credentials(const void* value, size_t size) {
2975 if (web_credentials_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2976 web_credentials_ = new ::std::string;
2977 }
2978 web_credentials_->assign(reinterpret_cast<const char*>(value), size);
2979 // @@protoc_insertion_point(field_set_pointer:bgs.protocol.authentication.v1.GenerateWebCredentialsResponse.web_credentials)
2980}
2983 if (web_credentials_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2984 web_credentials_ = new ::std::string;
2985 }
2986 // @@protoc_insertion_point(field_mutable:bgs.protocol.authentication.v1.GenerateWebCredentialsResponse.web_credentials)
2987 return web_credentials_;
2988}
2991 if (web_credentials_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2992 return NULL;
2993 } else {
2994 ::std::string* temp = web_credentials_;
2995 web_credentials_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2996 return temp;
2997 }
2998}
2999inline void GenerateWebCredentialsResponse::set_allocated_web_credentials(::std::string* web_credentials) {
3000 if (web_credentials_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
3001 delete web_credentials_;
3002 }
3003 if (web_credentials) {
3006 } else {
3008 web_credentials_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3009 }
3010 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.authentication.v1.GenerateWebCredentialsResponse.web_credentials)
3011}
3012
3013// -------------------------------------------------------------------
3014
3015// VerifyWebCredentialsRequest
3016
3017// optional bytes web_credentials = 1;
3019 return (_has_bits_[0] & 0x00000001u) != 0;
3020}
3022 _has_bits_[0] |= 0x00000001u;
3023}
3025 _has_bits_[0] &= ~0x00000001u;
3026}
3028 if (web_credentials_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
3029 web_credentials_->clear();
3030 }
3032}
3033inline const ::std::string& VerifyWebCredentialsRequest::web_credentials() const {
3034 // @@protoc_insertion_point(field_get:bgs.protocol.authentication.v1.VerifyWebCredentialsRequest.web_credentials)
3035 return *web_credentials_;
3036}
3037inline void VerifyWebCredentialsRequest::set_web_credentials(const ::std::string& value) {
3039 if (web_credentials_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
3040 web_credentials_ = new ::std::string;
3041 }
3042 web_credentials_->assign(value);
3043 // @@protoc_insertion_point(field_set:bgs.protocol.authentication.v1.VerifyWebCredentialsRequest.web_credentials)
3044}
3047 if (web_credentials_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
3048 web_credentials_ = new ::std::string;
3049 }
3050 web_credentials_->assign(value);
3051 // @@protoc_insertion_point(field_set_char:bgs.protocol.authentication.v1.VerifyWebCredentialsRequest.web_credentials)
3052}
3053inline void VerifyWebCredentialsRequest::set_web_credentials(const void* value, size_t size) {
3055 if (web_credentials_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
3056 web_credentials_ = new ::std::string;
3057 }
3058 web_credentials_->assign(reinterpret_cast<const char*>(value), size);
3059 // @@protoc_insertion_point(field_set_pointer:bgs.protocol.authentication.v1.VerifyWebCredentialsRequest.web_credentials)
3060}
3063 if (web_credentials_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
3064 web_credentials_ = new ::std::string;
3065 }
3066 // @@protoc_insertion_point(field_mutable:bgs.protocol.authentication.v1.VerifyWebCredentialsRequest.web_credentials)
3067 return web_credentials_;
3068}
3071 if (web_credentials_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
3072 return NULL;
3073 } else {
3074 ::std::string* temp = web_credentials_;
3075 web_credentials_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3076 return temp;
3077 }
3078}
3079inline void VerifyWebCredentialsRequest::set_allocated_web_credentials(::std::string* web_credentials) {
3080 if (web_credentials_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
3081 delete web_credentials_;
3082 }
3083 if (web_credentials) {
3086 } else {
3088 web_credentials_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3089 }
3090 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.authentication.v1.VerifyWebCredentialsRequest.web_credentials)
3091}
3092
3093// @@protoc_insertion_point(namespace_scope)
3094
3095} // namespace v1
3096} // namespace authentication
3097} // namespace protocol
3098} // namespace bgs
3099
3100#ifndef SWIG
3101namespace google {
3102namespace protobuf {
3103} // namespace google
3104} // namespace protobuf
3105#endif // SWIG
3106
3107// @@protoc_insertion_point(global_scope)
3108
3109#endif // PROTOBUF_authentication_5fservice_2eproto__INCLUDED
#define TC_PROTO_API
Definition: Define.h:105
int32_t int32
Definition: Define.h:138
uint64_t uint64
Definition: Define.h:141
uint32_t uint32
Definition: Define.h:142
std::integral_constant< uint32, 0x4DA86228u > NameHash
AuthenticationListener & operator=(AuthenticationListener &&)=delete
void OnServerStateChange(::bgs::protocol::authentication::v1::ServerStateChangeRequest const *request, bool client=false, bool server=false)
static google::protobuf::ServiceDescriptor const * descriptor()
void OnLogonUpdate(::bgs::protocol::authentication::v1::LogonUpdateRequest const *request, bool client=false, bool server=false)
std::integral_constant< uint32, 0x71240E35u > OriginalHash
void OnLogonComplete(::bgs::protocol::authentication::v1::LogonResult const *request, bool client=false, bool server=false)
AuthenticationListener(AuthenticationListener &&)=delete
void OnLogonQueueEnd(::bgs::protocol::NoData const *request, bool client=false, bool server=false)
AuthenticationListener & operator=(AuthenticationListener const &)=delete
void OnLogonQueueUpdate(::bgs::protocol::authentication::v1::LogonQueueUpdateRequest const *request, bool client=false, bool server=false)
void OnVersionInfoUpdated(::bgs::protocol::authentication::v1::VersionInfoNotification const *request, bool client=false, bool server=false)
AuthenticationListener(AuthenticationListener const &)=delete
void CallServerMethod(uint32 token, uint32 methodId, MessageBuffer buffer) final
AuthenticationService & operator=(AuthenticationService &&)=delete
std::integral_constant< uint32, 0xFF5A6AC3u > NameHash
virtual uint32 HandleVerifyWebCredentials(::bgs::protocol::authentication::v1::VerifyWebCredentialsRequest const *request, ::bgs::protocol::NoData *response, std::function< void(ServiceBase *, uint32, ::google::protobuf::Message const *)> &continuation)
AuthenticationService & operator=(AuthenticationService const &)=delete
virtual uint32 HandleGenerateWebCredentials(::bgs::protocol::authentication::v1::GenerateWebCredentialsRequest const *request, ::bgs::protocol::authentication::v1::GenerateWebCredentialsResponse *response, std::function< void(ServiceBase *, uint32, ::google::protobuf::Message const *)> &continuation)
void ParseAndHandleVerifyWebCredentials(uint32 token, uint32 methodId, MessageBuffer &buffer)
void CallServerMethod(uint32 token, uint32 methodId, MessageBuffer buffer) final
AuthenticationService(AuthenticationService &&)=delete
virtual uint32 HandleLogon(::bgs::protocol::authentication::v1::LogonRequest const *request, ::bgs::protocol::NoData *response, std::function< void(ServiceBase *, uint32, ::google::protobuf::Message const *)> &continuation)
void ParseAndHandleLogon(uint32 token, uint32 methodId, MessageBuffer &buffer)
void ParseAndHandleGenerateWebCredentials(uint32 token, uint32 methodId, MessageBuffer &buffer)
std::integral_constant< uint32, 0xDECFC01u > OriginalHash
static google::protobuf::ServiceDescriptor const * descriptor()
AuthenticationService(AuthenticationService const &)=delete
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
static const GenerateWebCredentialsRequest & default_instance()
inline ::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
void Swap(GenerateWebCredentialsRequest *other)
GenerateWebCredentialsRequest(const GenerateWebCredentialsRequest &from)
GenerateWebCredentialsRequest & operator=(const GenerateWebCredentialsRequest &from)
static const ::google::protobuf::Descriptor * descriptor()
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
GenerateWebCredentialsResponse & operator=(const GenerateWebCredentialsResponse &from)
static const GenerateWebCredentialsResponse & default_instance()
GenerateWebCredentialsResponse(const GenerateWebCredentialsResponse &from)
inline ::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
static const ::google::protobuf::Descriptor * descriptor()
void Swap(GenerateWebCredentialsResponse *other)
::google::protobuf::Metadata GetMetadata() const
static const LogonQueueUpdateRequest & default_instance()
inline ::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
LogonQueueUpdateRequest(const LogonQueueUpdateRequest &from)
LogonQueueUpdateRequest & operator=(const LogonQueueUpdateRequest &from)
friend void TC_PROTO_API protobuf_AddDesc_authentication_5fservice_2eproto()
static const ::google::protobuf::Descriptor * descriptor()
void set_application_version(::google::protobuf::int32 value)
LogonRequest & operator=(const LogonRequest &from)
void set_allocated_phone_number(::std::string *phone_number)
void set_allocated_auth_platform(::std::string *auth_platform)
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
void set_allocated_cached_web_credentials(::std::string *cached_web_credentials)
static const ::google::protobuf::Descriptor * descriptor()
inline ::google::protobuf::int32 application_version() const
friend void TC_PROTO_API protobuf_AddDesc_authentication_5fservice_2eproto()
::google::protobuf::Metadata GetMetadata() const
::google::protobuf::UnknownFieldSet _unknown_fields_
inline ::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
static const LogonRequest & default_instance()
inline ::bgs::protocol::EntityId * add_game_account_id()
inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::EntityId > * mutable_game_account_id()
inline ::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
inline ::bgs::protocol::EntityId * release_account_id()
::google::protobuf::RepeatedField< ::google::protobuf::uint32 > available_region_
friend void protobuf_ShutdownFile_authentication_5fservice_2eproto()
static const LogonResult & default_instance()
static const ::google::protobuf::Descriptor * descriptor()
const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > & available_region() const
inline ::bgs::protocol::EntityId * mutable_account_id()
void set_available_region(int index, ::google::protobuf::uint32 value)
void set_error_code(::google::protobuf::uint32 value)
inline ::google::protobuf::uint32 connected_region() const
const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::EntityId > & game_account_id() const
void add_available_region(::google::protobuf::uint32 value)
LogonResult & operator=(const LogonResult &from)
::google::protobuf::RepeatedPtrField< ::bgs::protocol::EntityId > game_account_id_
inline ::google::protobuf::uint32 error_code() const
friend void TC_PROTO_API protobuf_AddDesc_authentication_5fservice_2eproto()
::google::protobuf::Metadata GetMetadata() const
::google::protobuf::UnknownFieldSet _unknown_fields_
const ::bgs::protocol::EntityId & account_id() const
void set_allocated_session_key(::std::string *session_key)
void set_connected_region(::google::protobuf::uint32 value)
void set_allocated_account_id(::bgs::protocol::EntityId *account_id)
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > * mutable_available_region()
void set_allocated_geoip_country(::std::string *geoip_country)
LogonUpdateRequest & operator=(const LogonUpdateRequest &from)
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
inline ::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
static const ::google::protobuf::Descriptor * descriptor()
::google::protobuf::Metadata GetMetadata() const
friend void TC_PROTO_API protobuf_AddDesc_authentication_5fservice_2eproto()
static const LogonUpdateRequest & default_instance()
LogonUpdateRequest(const LogonUpdateRequest &from)
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
ServerStateChangeRequest(const ServerStateChangeRequest &from)
static const ServerStateChangeRequest & default_instance()
ServerStateChangeRequest & operator=(const ServerStateChangeRequest &from)
friend void TC_PROTO_API protobuf_AddDesc_authentication_5fservice_2eproto()
::google::protobuf::Metadata GetMetadata() const
inline ::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
static const ::google::protobuf::Descriptor * descriptor()
static const VerifyWebCredentialsRequest & default_instance()
VerifyWebCredentialsRequest & operator=(const VerifyWebCredentialsRequest &from)
static const ::google::protobuf::Descriptor * descriptor()
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
VerifyWebCredentialsRequest(const VerifyWebCredentialsRequest &from)
friend void TC_PROTO_API protobuf_AddDesc_authentication_5fservice_2eproto()
inline ::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
static const ::google::protobuf::Descriptor * descriptor()
::google::protobuf::Metadata GetMetadata() const
VersionInfoNotification & operator=(const VersionInfoNotification &from)
const ::bgs::protocol::authentication::v1::VersionInfo & version_info() const
inline ::bgs::protocol::authentication::v1::VersionInfo * mutable_version_info()
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
VersionInfoNotification(const VersionInfoNotification &from)
void set_allocated_version_info(::bgs::protocol::authentication::v1::VersionInfo *version_info)
::bgs::protocol::authentication::v1::VersionInfo * version_info_
inline ::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
friend void TC_PROTO_API protobuf_AddDesc_authentication_5fservice_2eproto()
static const VersionInfoNotification & default_instance()
inline ::bgs::protocol::authentication::v1::VersionInfo * release_version_info()
inline ::google::protobuf::uint64 kick_time() const
friend void protobuf_ShutdownFile_authentication_5fservice_2eproto()
::google::protobuf::UnknownFieldSet _unknown_fields_
inline ::google::protobuf::uint32 number() const
VersionInfo & operator=(const VersionInfo &from)
void set_kick_time(::google::protobuf::uint64 value)
static const VersionInfo & default_instance()
inline ::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
void set_number(::google::protobuf::uint32 value)
friend void TC_PROTO_API protobuf_AddDesc_authentication_5fservice_2eproto()
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
static const ::google::protobuf::Descriptor * descriptor()
::google::protobuf::Metadata GetMetadata() const
constexpr std::size_t size()
Definition: UpdateField.h:796
void protobuf_ShutdownFile_authentication_5fservice_2eproto()
void TC_PROTO_API protobuf_AddDesc_authentication_5fservice_2eproto()
void protobuf_AssignDesc_authentication_5fservice_2eproto()
Definition: Session.h:36