forked from pnill/cartographer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpacket.pb.h
2173 lines (1975 loc) · 69.5 KB
/
packet.pb.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: packet.proto
#ifndef PROTOBUF_packet_2eproto__INCLUDED
#define PROTOBUF_packet_2eproto__INCLUDED
#include <string>
#include <google/protobuf/stubs/common.h>
#if GOOGLE_PROTOBUF_VERSION < 2006000
#error This file was generated by a newer version of protoc which is
#error incompatible with your Protocol Buffer headers. Please update
#error your headers.
#endif
#if 2006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
#error This file was generated by an older version of protoc which is
#error incompatible with your Protocol Buffer headers. Please
#error regenerate this file with a newer version of protoc.
#endif
#include <google/protobuf/generated_message_util.h>
#include <google/protobuf/message.h>
#include <google/protobuf/repeated_field.h>
#include <google/protobuf/extension_set.h>
#include <google/protobuf/generated_enum_reflection.h>
#include <google/protobuf/unknown_field_set.h>
// @@protoc_insertion_point(includes)
// Internal implementation detail -- do not call these.
void protobuf_AddDesc_packet_2eproto();
void protobuf_AssignDesc_packet_2eproto();
void protobuf_ShutdownFile_packet_2eproto();
class Packet;
class login_request;
class login_reply;
class secure_request;
class secure_reply;
class xnaddr_request;
class xnaddr_reply;
enum Packet_Type {
Packet_Type_login_request = 2,
Packet_Type_login_reply = 3,
Packet_Type_secure_request = 4,
Packet_Type_secure_reply = 5,
Packet_Type_xnaddr_request = 6,
Packet_Type_xnaddr_reply = 7
};
bool Packet_Type_IsValid(int value);
const Packet_Type Packet_Type_Type_MIN = Packet_Type_login_request;
const Packet_Type Packet_Type_Type_MAX = Packet_Type_xnaddr_reply;
const int Packet_Type_Type_ARRAYSIZE = Packet_Type_Type_MAX + 1;
const ::google::protobuf::EnumDescriptor* Packet_Type_descriptor();
inline const ::std::string& Packet_Type_Name(Packet_Type value) {
return ::google::protobuf::internal::NameOfEnum(
Packet_Type_descriptor(), value);
}
inline bool Packet_Type_Parse(
const ::std::string& name, Packet_Type* value) {
return ::google::protobuf::internal::ParseNamedEnum<Packet_Type>(
Packet_Type_descriptor(), name, value);
}
// ===================================================================
class Packet : public ::google::protobuf::Message {
public:
Packet();
virtual ~Packet();
Packet(const Packet& from);
inline Packet& operator=(const Packet& from) {
CopyFrom(from);
return *this;
}
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
return _unknown_fields_;
}
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
return &_unknown_fields_;
}
static const ::google::protobuf::Descriptor* descriptor();
static const Packet& default_instance();
void Swap(Packet* other);
// implements Message ----------------------------------------------
Packet* New() const;
void CopyFrom(const ::google::protobuf::Message& from);
void MergeFrom(const ::google::protobuf::Message& from);
void CopyFrom(const Packet& from);
void MergeFrom(const Packet& from);
void Clear();
bool IsInitialized() const;
int ByteSize() const;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input);
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const;
::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
int GetCachedSize() const { return _cached_size_; }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const;
public:
::google::protobuf::Metadata GetMetadata() const;
// nested types ----------------------------------------------------
typedef Packet_Type Type;
static const Type login_request = Packet_Type_login_request;
static const Type login_reply = Packet_Type_login_reply;
static const Type secure_request = Packet_Type_secure_request;
static const Type secure_reply = Packet_Type_secure_reply;
static const Type xnaddr_request = Packet_Type_xnaddr_request;
static const Type xnaddr_reply = Packet_Type_xnaddr_reply;
static inline bool Type_IsValid(int value) {
return Packet_Type_IsValid(value);
}
static const Type Type_MIN =
Packet_Type_Type_MIN;
static const Type Type_MAX =
Packet_Type_Type_MAX;
static const int Type_ARRAYSIZE =
Packet_Type_Type_ARRAYSIZE;
static inline const ::google::protobuf::EnumDescriptor*
Type_descriptor() {
return Packet_Type_descriptor();
}
static inline const ::std::string& Type_Name(Type value) {
return Packet_Type_Name(value);
}
static inline bool Type_Parse(const ::std::string& name,
Type* value) {
return Packet_Type_Parse(name, value);
}
// accessors -------------------------------------------------------
// required .Packet.Type type = 1;
inline bool has_type() const;
inline void clear_type();
static const int kTypeFieldNumber = 1;
inline ::Packet_Type type() const;
inline void set_type(::Packet_Type value);
// optional .login_request lrequest = 2;
inline bool has_lrequest() const;
inline void clear_lrequest();
static const int kLrequestFieldNumber = 2;
inline const ::login_request& lrequest() const;
inline ::login_request* mutable_lrequest();
inline ::login_request* release_lrequest();
inline void set_allocated_lrequest(::login_request* lrequest);
// optional .login_reply lreply = 3;
inline bool has_lreply() const;
inline void clear_lreply();
static const int kLreplyFieldNumber = 3;
inline const ::login_reply& lreply() const;
inline ::login_reply* mutable_lreply();
inline ::login_reply* release_lreply();
inline void set_allocated_lreply(::login_reply* lreply);
// optional .secure_request srequest = 4;
inline bool has_srequest() const;
inline void clear_srequest();
static const int kSrequestFieldNumber = 4;
inline const ::secure_request& srequest() const;
inline ::secure_request* mutable_srequest();
inline ::secure_request* release_srequest();
inline void set_allocated_srequest(::secure_request* srequest);
// optional .secure_reply sreply = 5;
inline bool has_sreply() const;
inline void clear_sreply();
static const int kSreplyFieldNumber = 5;
inline const ::secure_reply& sreply() const;
inline ::secure_reply* mutable_sreply();
inline ::secure_reply* release_sreply();
inline void set_allocated_sreply(::secure_reply* sreply);
// optional .xnaddr_request xrequest = 6;
inline bool has_xrequest() const;
inline void clear_xrequest();
static const int kXrequestFieldNumber = 6;
inline const ::xnaddr_request& xrequest() const;
inline ::xnaddr_request* mutable_xrequest();
inline ::xnaddr_request* release_xrequest();
inline void set_allocated_xrequest(::xnaddr_request* xrequest);
// optional .xnaddr_reply xreply = 7;
inline bool has_xreply() const;
inline void clear_xreply();
static const int kXreplyFieldNumber = 7;
inline const ::xnaddr_reply& xreply() const;
inline ::xnaddr_reply* mutable_xreply();
inline ::xnaddr_reply* release_xreply();
inline void set_allocated_xreply(::xnaddr_reply* xreply);
// @@protoc_insertion_point(class_scope:Packet)
private:
inline void set_has_type();
inline void clear_has_type();
inline void set_has_lrequest();
inline void clear_has_lrequest();
inline void set_has_lreply();
inline void clear_has_lreply();
inline void set_has_srequest();
inline void clear_has_srequest();
inline void set_has_sreply();
inline void clear_has_sreply();
inline void set_has_xrequest();
inline void clear_has_xrequest();
inline void set_has_xreply();
inline void clear_has_xreply();
::google::protobuf::UnknownFieldSet _unknown_fields_;
::google::protobuf::uint32 _has_bits_[1];
mutable int _cached_size_;
::login_request* lrequest_;
::login_reply* lreply_;
::secure_request* srequest_;
::secure_reply* sreply_;
::xnaddr_request* xrequest_;
::xnaddr_reply* xreply_;
int type_;
friend void protobuf_AddDesc_packet_2eproto();
friend void protobuf_AssignDesc_packet_2eproto();
friend void protobuf_ShutdownFile_packet_2eproto();
void InitAsDefaultInstance();
static Packet* default_instance_;
};
// -------------------------------------------------------------------
class login_request : public ::google::protobuf::Message {
public:
login_request();
virtual ~login_request();
login_request(const login_request& from);
inline login_request& operator=(const login_request& from) {
CopyFrom(from);
return *this;
}
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
return _unknown_fields_;
}
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
return &_unknown_fields_;
}
static const ::google::protobuf::Descriptor* descriptor();
static const login_request& default_instance();
void Swap(login_request* other);
// implements Message ----------------------------------------------
login_request* New() const;
void CopyFrom(const ::google::protobuf::Message& from);
void MergeFrom(const ::google::protobuf::Message& from);
void CopyFrom(const login_request& from);
void MergeFrom(const login_request& from);
void Clear();
bool IsInitialized() const;
int ByteSize() const;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input);
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const;
::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
int GetCachedSize() const { return _cached_size_; }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const;
public:
::google::protobuf::Metadata GetMetadata() const;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// required bytes login_token = 1;
inline bool has_login_token() const;
inline void clear_login_token();
static const int kLoginTokenFieldNumber = 1;
inline const ::std::string& login_token() const;
inline void set_login_token(const ::std::string& value);
inline void set_login_token(const char* value);
inline void set_login_token(const void* value, size_t size);
inline ::std::string* mutable_login_token();
inline ::std::string* release_login_token();
inline void set_allocated_login_token(::std::string* login_token);
// required uint32 port = 2;
inline bool has_port() const;
inline void clear_port();
static const int kPortFieldNumber = 2;
inline ::google::protobuf::uint32 port() const;
inline void set_port(::google::protobuf::uint32 value);
// @@protoc_insertion_point(class_scope:login_request)
private:
inline void set_has_login_token();
inline void clear_has_login_token();
inline void set_has_port();
inline void clear_has_port();
::google::protobuf::UnknownFieldSet _unknown_fields_;
::google::protobuf::uint32 _has_bits_[1];
mutable int _cached_size_;
::std::string* login_token_;
::google::protobuf::uint32 port_;
friend void protobuf_AddDesc_packet_2eproto();
friend void protobuf_AssignDesc_packet_2eproto();
friend void protobuf_ShutdownFile_packet_2eproto();
void InitAsDefaultInstance();
static login_request* default_instance_;
};
// -------------------------------------------------------------------
class login_reply : public ::google::protobuf::Message {
public:
login_reply();
virtual ~login_reply();
login_reply(const login_reply& from);
inline login_reply& operator=(const login_reply& from) {
CopyFrom(from);
return *this;
}
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
return _unknown_fields_;
}
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
return &_unknown_fields_;
}
static const ::google::protobuf::Descriptor* descriptor();
static const login_reply& default_instance();
void Swap(login_reply* other);
// implements Message ----------------------------------------------
login_reply* New() const;
void CopyFrom(const ::google::protobuf::Message& from);
void MergeFrom(const ::google::protobuf::Message& from);
void CopyFrom(const login_reply& from);
void MergeFrom(const login_reply& from);
void Clear();
bool IsInitialized() const;
int ByteSize() const;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input);
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const;
::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
int GetCachedSize() const { return _cached_size_; }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const;
public:
::google::protobuf::Metadata GetMetadata() const;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// required uint32 secure_addr = 1;
inline bool has_secure_addr() const;
inline void clear_secure_addr();
static const int kSecureAddrFieldNumber = 1;
inline ::google::protobuf::uint32 secure_addr() const;
inline void set_secure_addr(::google::protobuf::uint32 value);
// required uint32 xnaddr = 2;
inline bool has_xnaddr() const;
inline void clear_xnaddr();
static const int kXnaddrFieldNumber = 2;
inline ::google::protobuf::uint32 xnaddr() const;
inline void set_xnaddr(::google::protobuf::uint32 value);
// required int32 port = 3;
inline bool has_port() const;
inline void clear_port();
static const int kPortFieldNumber = 3;
inline ::google::protobuf::int32 port() const;
inline void set_port(::google::protobuf::int32 value);
// required bytes abEnet = 4;
inline bool has_abenet() const;
inline void clear_abenet();
static const int kAbEnetFieldNumber = 4;
inline const ::std::string& abenet() const;
inline void set_abenet(const ::std::string& value);
inline void set_abenet(const char* value);
inline void set_abenet(const void* value, size_t size);
inline ::std::string* mutable_abenet();
inline ::std::string* release_abenet();
inline void set_allocated_abenet(::std::string* abenet);
// required bytes abOnline = 5;
inline bool has_abonline() const;
inline void clear_abonline();
static const int kAbOnlineFieldNumber = 5;
inline const ::std::string& abonline() const;
inline void set_abonline(const ::std::string& value);
inline void set_abonline(const char* value);
inline void set_abonline(const void* value, size_t size);
inline ::std::string* mutable_abonline();
inline ::std::string* release_abonline();
inline void set_allocated_abonline(::std::string* abonline);
// required int64 xuid = 6;
inline bool has_xuid() const;
inline void clear_xuid();
static const int kXuidFieldNumber = 6;
inline ::google::protobuf::int64 xuid() const;
inline void set_xuid(::google::protobuf::int64 value);
// required bytes username = 7;
inline bool has_username() const;
inline void clear_username();
static const int kUsernameFieldNumber = 7;
inline const ::std::string& username() const;
inline void set_username(const ::std::string& value);
inline void set_username(const char* value);
inline void set_username(const void* value, size_t size);
inline ::std::string* mutable_username();
inline ::std::string* release_username();
inline void set_allocated_username(::std::string* username);
// @@protoc_insertion_point(class_scope:login_reply)
private:
inline void set_has_secure_addr();
inline void clear_has_secure_addr();
inline void set_has_xnaddr();
inline void clear_has_xnaddr();
inline void set_has_port();
inline void clear_has_port();
inline void set_has_abenet();
inline void clear_has_abenet();
inline void set_has_abonline();
inline void clear_has_abonline();
inline void set_has_xuid();
inline void clear_has_xuid();
inline void set_has_username();
inline void clear_has_username();
::google::protobuf::UnknownFieldSet _unknown_fields_;
::google::protobuf::uint32 _has_bits_[1];
mutable int _cached_size_;
::google::protobuf::uint32 secure_addr_;
::google::protobuf::uint32 xnaddr_;
::std::string* abenet_;
::std::string* abonline_;
::google::protobuf::int64 xuid_;
::std::string* username_;
::google::protobuf::int32 port_;
friend void protobuf_AddDesc_packet_2eproto();
friend void protobuf_AssignDesc_packet_2eproto();
friend void protobuf_ShutdownFile_packet_2eproto();
void InitAsDefaultInstance();
static login_reply* default_instance_;
};
// -------------------------------------------------------------------
class secure_request : public ::google::protobuf::Message {
public:
secure_request();
virtual ~secure_request();
secure_request(const secure_request& from);
inline secure_request& operator=(const secure_request& from) {
CopyFrom(from);
return *this;
}
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
return _unknown_fields_;
}
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
return &_unknown_fields_;
}
static const ::google::protobuf::Descriptor* descriptor();
static const secure_request& default_instance();
void Swap(secure_request* other);
// implements Message ----------------------------------------------
secure_request* New() const;
void CopyFrom(const ::google::protobuf::Message& from);
void MergeFrom(const ::google::protobuf::Message& from);
void CopyFrom(const secure_request& from);
void MergeFrom(const secure_request& from);
void Clear();
bool IsInitialized() const;
int ByteSize() const;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input);
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const;
::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
int GetCachedSize() const { return _cached_size_; }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const;
public:
::google::protobuf::Metadata GetMetadata() const;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// required bytes abEnet = 1;
inline bool has_abenet() const;
inline void clear_abenet();
static const int kAbEnetFieldNumber = 1;
inline const ::std::string& abenet() const;
inline void set_abenet(const ::std::string& value);
inline void set_abenet(const char* value);
inline void set_abenet(const void* value, size_t size);
inline ::std::string* mutable_abenet();
inline ::std::string* release_abenet();
inline void set_allocated_abenet(::std::string* abenet);
// @@protoc_insertion_point(class_scope:secure_request)
private:
inline void set_has_abenet();
inline void clear_has_abenet();
::google::protobuf::UnknownFieldSet _unknown_fields_;
::google::protobuf::uint32 _has_bits_[1];
mutable int _cached_size_;
::std::string* abenet_;
friend void protobuf_AddDesc_packet_2eproto();
friend void protobuf_AssignDesc_packet_2eproto();
friend void protobuf_ShutdownFile_packet_2eproto();
void InitAsDefaultInstance();
static secure_request* default_instance_;
};
// -------------------------------------------------------------------
class secure_reply : public ::google::protobuf::Message {
public:
secure_reply();
virtual ~secure_reply();
secure_reply(const secure_reply& from);
inline secure_reply& operator=(const secure_reply& from) {
CopyFrom(from);
return *this;
}
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
return _unknown_fields_;
}
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
return &_unknown_fields_;
}
static const ::google::protobuf::Descriptor* descriptor();
static const secure_reply& default_instance();
void Swap(secure_reply* other);
// implements Message ----------------------------------------------
secure_reply* New() const;
void CopyFrom(const ::google::protobuf::Message& from);
void MergeFrom(const ::google::protobuf::Message& from);
void CopyFrom(const secure_reply& from);
void MergeFrom(const secure_reply& from);
void Clear();
bool IsInitialized() const;
int ByteSize() const;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input);
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const;
::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
int GetCachedSize() const { return _cached_size_; }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const;
public:
::google::protobuf::Metadata GetMetadata() const;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// required uint32 secure = 1;
inline bool has_secure() const;
inline void clear_secure();
static const int kSecureFieldNumber = 1;
inline ::google::protobuf::uint32 secure() const;
inline void set_secure(::google::protobuf::uint32 value);
// required uint32 xnaddr = 2;
inline bool has_xnaddr() const;
inline void clear_xnaddr();
static const int kXnaddrFieldNumber = 2;
inline ::google::protobuf::uint32 xnaddr() const;
inline void set_xnaddr(::google::protobuf::uint32 value);
// required uint32 port = 3;
inline bool has_port() const;
inline void clear_port();
static const int kPortFieldNumber = 3;
inline ::google::protobuf::uint32 port() const;
inline void set_port(::google::protobuf::uint32 value);
// required bytes abEnet = 4;
inline bool has_abenet() const;
inline void clear_abenet();
static const int kAbEnetFieldNumber = 4;
inline const ::std::string& abenet() const;
inline void set_abenet(const ::std::string& value);
inline void set_abenet(const char* value);
inline void set_abenet(const void* value, size_t size);
inline ::std::string* mutable_abenet();
inline ::std::string* release_abenet();
inline void set_allocated_abenet(::std::string* abenet);
// required bytes abOnline = 5;
inline bool has_abonline() const;
inline void clear_abonline();
static const int kAbOnlineFieldNumber = 5;
inline const ::std::string& abonline() const;
inline void set_abonline(const ::std::string& value);
inline void set_abonline(const char* value);
inline void set_abonline(const void* value, size_t size);
inline ::std::string* mutable_abonline();
inline ::std::string* release_abonline();
inline void set_allocated_abonline(::std::string* abonline);
// @@protoc_insertion_point(class_scope:secure_reply)
private:
inline void set_has_secure();
inline void clear_has_secure();
inline void set_has_xnaddr();
inline void clear_has_xnaddr();
inline void set_has_port();
inline void clear_has_port();
inline void set_has_abenet();
inline void clear_has_abenet();
inline void set_has_abonline();
inline void clear_has_abonline();
::google::protobuf::UnknownFieldSet _unknown_fields_;
::google::protobuf::uint32 _has_bits_[1];
mutable int _cached_size_;
::google::protobuf::uint32 secure_;
::google::protobuf::uint32 xnaddr_;
::std::string* abenet_;
::std::string* abonline_;
::google::protobuf::uint32 port_;
friend void protobuf_AddDesc_packet_2eproto();
friend void protobuf_AssignDesc_packet_2eproto();
friend void protobuf_ShutdownFile_packet_2eproto();
void InitAsDefaultInstance();
static secure_reply* default_instance_;
};
// -------------------------------------------------------------------
class xnaddr_request : public ::google::protobuf::Message {
public:
xnaddr_request();
virtual ~xnaddr_request();
xnaddr_request(const xnaddr_request& from);
inline xnaddr_request& operator=(const xnaddr_request& from) {
CopyFrom(from);
return *this;
}
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
return _unknown_fields_;
}
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
return &_unknown_fields_;
}
static const ::google::protobuf::Descriptor* descriptor();
static const xnaddr_request& default_instance();
void Swap(xnaddr_request* other);
// implements Message ----------------------------------------------
xnaddr_request* New() const;
void CopyFrom(const ::google::protobuf::Message& from);
void MergeFrom(const ::google::protobuf::Message& from);
void CopyFrom(const xnaddr_request& from);
void MergeFrom(const xnaddr_request& from);
void Clear();
bool IsInitialized() const;
int ByteSize() const;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input);
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const;
::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
int GetCachedSize() const { return _cached_size_; }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const;
public:
::google::protobuf::Metadata GetMetadata() const;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// required uint32 secure = 1;
inline bool has_secure() const;
inline void clear_secure();
static const int kSecureFieldNumber = 1;
inline ::google::protobuf::uint32 secure() const;
inline void set_secure(::google::protobuf::uint32 value);
// @@protoc_insertion_point(class_scope:xnaddr_request)
private:
inline void set_has_secure();
inline void clear_has_secure();
::google::protobuf::UnknownFieldSet _unknown_fields_;
::google::protobuf::uint32 _has_bits_[1];
mutable int _cached_size_;
::google::protobuf::uint32 secure_;
friend void protobuf_AddDesc_packet_2eproto();
friend void protobuf_AssignDesc_packet_2eproto();
friend void protobuf_ShutdownFile_packet_2eproto();
void InitAsDefaultInstance();
static xnaddr_request* default_instance_;
};
// -------------------------------------------------------------------
class xnaddr_reply : public ::google::protobuf::Message {
public:
xnaddr_reply();
virtual ~xnaddr_reply();
xnaddr_reply(const xnaddr_reply& from);
inline xnaddr_reply& operator=(const xnaddr_reply& from) {
CopyFrom(from);
return *this;
}
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
return _unknown_fields_;
}
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
return &_unknown_fields_;
}
static const ::google::protobuf::Descriptor* descriptor();
static const xnaddr_reply& default_instance();
void Swap(xnaddr_reply* other);
// implements Message ----------------------------------------------
xnaddr_reply* New() const;
void CopyFrom(const ::google::protobuf::Message& from);
void MergeFrom(const ::google::protobuf::Message& from);
void CopyFrom(const xnaddr_reply& from);
void MergeFrom(const xnaddr_reply& from);
void Clear();
bool IsInitialized() const;
int ByteSize() const;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input);
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const;
::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
int GetCachedSize() const { return _cached_size_; }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const;
public:
::google::protobuf::Metadata GetMetadata() const;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// required uint32 xnaddr = 1;
inline bool has_xnaddr() const;
inline void clear_xnaddr();
static const int kXnaddrFieldNumber = 1;
inline ::google::protobuf::uint32 xnaddr() const;
inline void set_xnaddr(::google::protobuf::uint32 value);
// required uint32 port = 2;
inline bool has_port() const;
inline void clear_port();
static const int kPortFieldNumber = 2;
inline ::google::protobuf::uint32 port() const;
inline void set_port(::google::protobuf::uint32 value);
// required bytes abEnet = 3;
inline bool has_abenet() const;
inline void clear_abenet();
static const int kAbEnetFieldNumber = 3;
inline const ::std::string& abenet() const;
inline void set_abenet(const ::std::string& value);
inline void set_abenet(const char* value);
inline void set_abenet(const void* value, size_t size);
inline ::std::string* mutable_abenet();
inline ::std::string* release_abenet();
inline void set_allocated_abenet(::std::string* abenet);
// required bytes abOnline = 4;
inline bool has_abonline() const;
inline void clear_abonline();
static const int kAbOnlineFieldNumber = 4;
inline const ::std::string& abonline() const;
inline void set_abonline(const ::std::string& value);
inline void set_abonline(const char* value);
inline void set_abonline(const void* value, size_t size);
inline ::std::string* mutable_abonline();
inline ::std::string* release_abonline();
inline void set_allocated_abonline(::std::string* abonline);
// @@protoc_insertion_point(class_scope:xnaddr_reply)
private:
inline void set_has_xnaddr();
inline void clear_has_xnaddr();
inline void set_has_port();
inline void clear_has_port();
inline void set_has_abenet();
inline void clear_has_abenet();
inline void set_has_abonline();
inline void clear_has_abonline();
::google::protobuf::UnknownFieldSet _unknown_fields_;
::google::protobuf::uint32 _has_bits_[1];
mutable int _cached_size_;
::google::protobuf::uint32 xnaddr_;
::google::protobuf::uint32 port_;
::std::string* abenet_;
::std::string* abonline_;
friend void protobuf_AddDesc_packet_2eproto();
friend void protobuf_AssignDesc_packet_2eproto();
friend void protobuf_ShutdownFile_packet_2eproto();
void InitAsDefaultInstance();
static xnaddr_reply* default_instance_;
};
// ===================================================================
// ===================================================================
// Packet
// required .Packet.Type type = 1;
inline bool Packet::has_type() const {
return (_has_bits_[0] & 0x00000001u) != 0;
}
inline void Packet::set_has_type() {
_has_bits_[0] |= 0x00000001u;
}
inline void Packet::clear_has_type() {
_has_bits_[0] &= ~0x00000001u;
}
inline void Packet::clear_type() {
type_ = 2;
clear_has_type();
}
inline ::Packet_Type Packet::type() const {
// @@protoc_insertion_point(field_get:Packet.type)
return static_cast< ::Packet_Type >(type_);
}
inline void Packet::set_type(::Packet_Type value) {
assert(::Packet_Type_IsValid(value));
set_has_type();
type_ = value;
// @@protoc_insertion_point(field_set:Packet.type)
}
// optional .login_request lrequest = 2;
inline bool Packet::has_lrequest() const {
return (_has_bits_[0] & 0x00000002u) != 0;
}
inline void Packet::set_has_lrequest() {
_has_bits_[0] |= 0x00000002u;
}
inline void Packet::clear_has_lrequest() {
_has_bits_[0] &= ~0x00000002u;
}
inline void Packet::clear_lrequest() {
if (lrequest_ != NULL) lrequest_->::login_request::Clear();
clear_has_lrequest();
}
inline const ::login_request& Packet::lrequest() const {
// @@protoc_insertion_point(field_get:Packet.lrequest)
return lrequest_ != NULL ? *lrequest_ : *default_instance_->lrequest_;
}
inline ::login_request* Packet::mutable_lrequest() {
set_has_lrequest();
if (lrequest_ == NULL) lrequest_ = new ::login_request;
// @@protoc_insertion_point(field_mutable:Packet.lrequest)
return lrequest_;
}
inline ::login_request* Packet::release_lrequest() {
clear_has_lrequest();
::login_request* temp = lrequest_;
lrequest_ = NULL;
return temp;
}
inline void Packet::set_allocated_lrequest(::login_request* lrequest) {
delete lrequest_;
lrequest_ = lrequest;
if (lrequest) {
set_has_lrequest();
} else {
clear_has_lrequest();
}
// @@protoc_insertion_point(field_set_allocated:Packet.lrequest)
}
// optional .login_reply lreply = 3;
inline bool Packet::has_lreply() const {
return (_has_bits_[0] & 0x00000004u) != 0;
}
inline void Packet::set_has_lreply() {
_has_bits_[0] |= 0x00000004u;
}
inline void Packet::clear_has_lreply() {
_has_bits_[0] &= ~0x00000004u;
}
inline void Packet::clear_lreply() {
if (lreply_ != NULL) lreply_->::login_reply::Clear();
clear_has_lreply();
}
inline const ::login_reply& Packet::lreply() const {
// @@protoc_insertion_point(field_get:Packet.lreply)
return lreply_ != NULL ? *lreply_ : *default_instance_->lreply_;
}
inline ::login_reply* Packet::mutable_lreply() {
set_has_lreply();
if (lreply_ == NULL) lreply_ = new ::login_reply;
// @@protoc_insertion_point(field_mutable:Packet.lreply)
return lreply_;
}