-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfb.pb.h
2410 lines (2125 loc) · 82.7 KB
/
fb.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: fb.proto
#ifndef PROTOBUF_fb_2eproto__INCLUDED
#define PROTOBUF_fb_2eproto__INCLUDED
#include <string>
#include <google/protobuf/stubs/common.h>
#if GOOGLE_PROTOBUF_VERSION < 3004000
#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 3004000 < 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/io/coded_stream.h>
#include <google/protobuf/arena.h>
#include <google/protobuf/arenastring.h>
#include <google/protobuf/generated_message_table_driven.h>
#include <google/protobuf/generated_message_util.h>
#include <google/protobuf/metadata.h>
#include <google/protobuf/message.h>
#include <google/protobuf/repeated_field.h> // IWYU pragma: export
#include <google/protobuf/extension_set.h> // IWYU pragma: export
#include <google/protobuf/unknown_field_set.h>
#include <google/protobuf/timestamp.pb.h>
// @@protoc_insertion_point(includes)
namespace protobuf_fb_2eproto {
// Internal implementation detail -- do not use these members.
struct TableStruct {
static const ::google::protobuf::internal::ParseTableField entries[];
static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
static const ::google::protobuf::internal::ParseTable schema[9];
static const ::google::protobuf::internal::FieldMetadata field_metadata[];
static const ::google::protobuf::internal::SerializationTable serialization_table[];
static const ::google::protobuf::uint32 offsets[];
};
void AddDescriptors();
void InitDefaultsFooImpl();
void InitDefaultsFoo();
void InitDefaultsListReplyImpl();
void InitDefaultsListReply();
void InitDefaultsRequestImpl();
void InitDefaultsRequest();
void InitDefaultsJoinRequestImpl();
void InitDefaultsJoinRequest();
void InitDefaultsJoinReplyImpl();
void InitDefaultsJoinReply();
void InitDefaultsMessageImpl();
void InitDefaultsMessage();
void InitDefaultsSyncMsgImpl();
void InitDefaultsSyncMsg();
void InitDefaultsNodeReqImpl();
void InitDefaultsNodeReq();
void InitDefaultsReplyImpl();
void InitDefaultsReply();
inline void InitDefaults() {
InitDefaultsFoo();
InitDefaultsListReply();
InitDefaultsRequest();
InitDefaultsJoinRequest();
InitDefaultsJoinReply();
InitDefaultsMessage();
InitDefaultsSyncMsg();
InitDefaultsNodeReq();
InitDefaultsReply();
}
} // namespace protobuf_fb_2eproto
namespace hw2 {
class Foo;
class FooDefaultTypeInternal;
extern FooDefaultTypeInternal _Foo_default_instance_;
class JoinReply;
class JoinReplyDefaultTypeInternal;
extern JoinReplyDefaultTypeInternal _JoinReply_default_instance_;
class JoinRequest;
class JoinRequestDefaultTypeInternal;
extern JoinRequestDefaultTypeInternal _JoinRequest_default_instance_;
class ListReply;
class ListReplyDefaultTypeInternal;
extern ListReplyDefaultTypeInternal _ListReply_default_instance_;
class Message;
class MessageDefaultTypeInternal;
extern MessageDefaultTypeInternal _Message_default_instance_;
class NodeReq;
class NodeReqDefaultTypeInternal;
extern NodeReqDefaultTypeInternal _NodeReq_default_instance_;
class Reply;
class ReplyDefaultTypeInternal;
extern ReplyDefaultTypeInternal _Reply_default_instance_;
class Request;
class RequestDefaultTypeInternal;
extern RequestDefaultTypeInternal _Request_default_instance_;
class SyncMsg;
class SyncMsgDefaultTypeInternal;
extern SyncMsgDefaultTypeInternal _SyncMsg_default_instance_;
} // namespace hw2
namespace hw2 {
// ===================================================================
class Foo : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw2.Foo) */ {
public:
Foo();
virtual ~Foo();
Foo(const Foo& from);
inline Foo& operator=(const Foo& from) {
CopyFrom(from);
return *this;
}
#if LANG_CXX11
Foo(Foo&& from) noexcept
: Foo() {
*this = ::std::move(from);
}
inline Foo& operator=(Foo&& from) noexcept {
if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
if (this != &from) InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
#endif
static const ::google::protobuf::Descriptor* descriptor();
static const Foo& default_instance();
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
static inline const Foo* internal_default_instance() {
return reinterpret_cast<const Foo*>(
&_Foo_default_instance_);
}
static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
0;
void Swap(Foo* other);
friend void swap(Foo& a, Foo& b) {
a.Swap(&b);
}
// implements Message ----------------------------------------------
inline Foo* New() const PROTOBUF_FINAL { return New(NULL); }
Foo* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
void CopyFrom(const Foo& from);
void MergeFrom(const Foo& from);
void Clear() PROTOBUF_FINAL;
bool IsInitialized() const PROTOBUF_FINAL;
size_t ByteSizeLong() const PROTOBUF_FINAL;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const PROTOBUF_FINAL;
void InternalSwap(Foo* other);
private:
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
return NULL;
}
inline void* MaybeArenaPtr() const {
return NULL;
}
public:
::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// @@protoc_insertion_point(class_scope:hw2.Foo)
private:
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
mutable int _cached_size_;
friend struct ::protobuf_fb_2eproto::TableStruct;
friend void ::protobuf_fb_2eproto::InitDefaultsFooImpl();
};
// -------------------------------------------------------------------
class ListReply : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw2.ListReply) */ {
public:
ListReply();
virtual ~ListReply();
ListReply(const ListReply& from);
inline ListReply& operator=(const ListReply& from) {
CopyFrom(from);
return *this;
}
#if LANG_CXX11
ListReply(ListReply&& from) noexcept
: ListReply() {
*this = ::std::move(from);
}
inline ListReply& operator=(ListReply&& from) noexcept {
if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
if (this != &from) InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
#endif
static const ::google::protobuf::Descriptor* descriptor();
static const ListReply& default_instance();
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
static inline const ListReply* internal_default_instance() {
return reinterpret_cast<const ListReply*>(
&_ListReply_default_instance_);
}
static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
1;
void Swap(ListReply* other);
friend void swap(ListReply& a, ListReply& b) {
a.Swap(&b);
}
// implements Message ----------------------------------------------
inline ListReply* New() const PROTOBUF_FINAL { return New(NULL); }
ListReply* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
void CopyFrom(const ListReply& from);
void MergeFrom(const ListReply& from);
void Clear() PROTOBUF_FINAL;
bool IsInitialized() const PROTOBUF_FINAL;
size_t ByteSizeLong() const PROTOBUF_FINAL;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const PROTOBUF_FINAL;
void InternalSwap(ListReply* other);
private:
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
return NULL;
}
inline void* MaybeArenaPtr() const {
return NULL;
}
public:
::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// repeated string all_rooms = 1;
int all_rooms_size() const;
void clear_all_rooms();
static const int kAllRoomsFieldNumber = 1;
const ::std::string& all_rooms(int index) const;
::std::string* mutable_all_rooms(int index);
void set_all_rooms(int index, const ::std::string& value);
#if LANG_CXX11
void set_all_rooms(int index, ::std::string&& value);
#endif
void set_all_rooms(int index, const char* value);
void set_all_rooms(int index, const char* value, size_t size);
::std::string* add_all_rooms();
void add_all_rooms(const ::std::string& value);
#if LANG_CXX11
void add_all_rooms(::std::string&& value);
#endif
void add_all_rooms(const char* value);
void add_all_rooms(const char* value, size_t size);
const ::google::protobuf::RepeatedPtrField< ::std::string>& all_rooms() const;
::google::protobuf::RepeatedPtrField< ::std::string>* mutable_all_rooms();
// repeated string joined_rooms = 2;
int joined_rooms_size() const;
void clear_joined_rooms();
static const int kJoinedRoomsFieldNumber = 2;
const ::std::string& joined_rooms(int index) const;
::std::string* mutable_joined_rooms(int index);
void set_joined_rooms(int index, const ::std::string& value);
#if LANG_CXX11
void set_joined_rooms(int index, ::std::string&& value);
#endif
void set_joined_rooms(int index, const char* value);
void set_joined_rooms(int index, const char* value, size_t size);
::std::string* add_joined_rooms();
void add_joined_rooms(const ::std::string& value);
#if LANG_CXX11
void add_joined_rooms(::std::string&& value);
#endif
void add_joined_rooms(const char* value);
void add_joined_rooms(const char* value, size_t size);
const ::google::protobuf::RepeatedPtrField< ::std::string>& joined_rooms() const;
::google::protobuf::RepeatedPtrField< ::std::string>* mutable_joined_rooms();
// @@protoc_insertion_point(class_scope:hw2.ListReply)
private:
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
::google::protobuf::RepeatedPtrField< ::std::string> all_rooms_;
::google::protobuf::RepeatedPtrField< ::std::string> joined_rooms_;
mutable int _cached_size_;
friend struct ::protobuf_fb_2eproto::TableStruct;
friend void ::protobuf_fb_2eproto::InitDefaultsListReplyImpl();
};
// -------------------------------------------------------------------
class Request : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw2.Request) */ {
public:
Request();
virtual ~Request();
Request(const Request& from);
inline Request& operator=(const Request& from) {
CopyFrom(from);
return *this;
}
#if LANG_CXX11
Request(Request&& from) noexcept
: Request() {
*this = ::std::move(from);
}
inline Request& operator=(Request&& from) noexcept {
if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
if (this != &from) InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
#endif
static const ::google::protobuf::Descriptor* descriptor();
static const Request& default_instance();
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
static inline const Request* internal_default_instance() {
return reinterpret_cast<const Request*>(
&_Request_default_instance_);
}
static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
2;
void Swap(Request* other);
friend void swap(Request& a, Request& b) {
a.Swap(&b);
}
// implements Message ----------------------------------------------
inline Request* New() const PROTOBUF_FINAL { return New(NULL); }
Request* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
void CopyFrom(const Request& from);
void MergeFrom(const Request& from);
void Clear() PROTOBUF_FINAL;
bool IsInitialized() const PROTOBUF_FINAL;
size_t ByteSizeLong() const PROTOBUF_FINAL;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const PROTOBUF_FINAL;
void InternalSwap(Request* other);
private:
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
return NULL;
}
inline void* MaybeArenaPtr() const {
return NULL;
}
public:
::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// repeated string arguments = 2;
int arguments_size() const;
void clear_arguments();
static const int kArgumentsFieldNumber = 2;
const ::std::string& arguments(int index) const;
::std::string* mutable_arguments(int index);
void set_arguments(int index, const ::std::string& value);
#if LANG_CXX11
void set_arguments(int index, ::std::string&& value);
#endif
void set_arguments(int index, const char* value);
void set_arguments(int index, const char* value, size_t size);
::std::string* add_arguments();
void add_arguments(const ::std::string& value);
#if LANG_CXX11
void add_arguments(::std::string&& value);
#endif
void add_arguments(const char* value);
void add_arguments(const char* value, size_t size);
const ::google::protobuf::RepeatedPtrField< ::std::string>& arguments() const;
::google::protobuf::RepeatedPtrField< ::std::string>* mutable_arguments();
// string username = 1;
void clear_username();
static const int kUsernameFieldNumber = 1;
const ::std::string& username() const;
void set_username(const ::std::string& value);
#if LANG_CXX11
void set_username(::std::string&& value);
#endif
void set_username(const char* value);
void set_username(const char* value, size_t size);
::std::string* mutable_username();
::std::string* release_username();
void set_allocated_username(::std::string* username);
// @@protoc_insertion_point(class_scope:hw2.Request)
private:
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
::google::protobuf::RepeatedPtrField< ::std::string> arguments_;
::google::protobuf::internal::ArenaStringPtr username_;
mutable int _cached_size_;
friend struct ::protobuf_fb_2eproto::TableStruct;
friend void ::protobuf_fb_2eproto::InitDefaultsRequestImpl();
};
// -------------------------------------------------------------------
class JoinRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw2.JoinRequest) */ {
public:
JoinRequest();
virtual ~JoinRequest();
JoinRequest(const JoinRequest& from);
inline JoinRequest& operator=(const JoinRequest& from) {
CopyFrom(from);
return *this;
}
#if LANG_CXX11
JoinRequest(JoinRequest&& from) noexcept
: JoinRequest() {
*this = ::std::move(from);
}
inline JoinRequest& operator=(JoinRequest&& from) noexcept {
if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
if (this != &from) InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
#endif
static const ::google::protobuf::Descriptor* descriptor();
static const JoinRequest& default_instance();
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
static inline const JoinRequest* internal_default_instance() {
return reinterpret_cast<const JoinRequest*>(
&_JoinRequest_default_instance_);
}
static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
3;
void Swap(JoinRequest* other);
friend void swap(JoinRequest& a, JoinRequest& b) {
a.Swap(&b);
}
// implements Message ----------------------------------------------
inline JoinRequest* New() const PROTOBUF_FINAL { return New(NULL); }
JoinRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
void CopyFrom(const JoinRequest& from);
void MergeFrom(const JoinRequest& from);
void Clear() PROTOBUF_FINAL;
bool IsInitialized() const PROTOBUF_FINAL;
size_t ByteSizeLong() const PROTOBUF_FINAL;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const PROTOBUF_FINAL;
void InternalSwap(JoinRequest* other);
private:
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
return NULL;
}
inline void* MaybeArenaPtr() const {
return NULL;
}
public:
::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// string hostname = 1;
void clear_hostname();
static const int kHostnameFieldNumber = 1;
const ::std::string& hostname() const;
void set_hostname(const ::std::string& value);
#if LANG_CXX11
void set_hostname(::std::string&& value);
#endif
void set_hostname(const char* value);
void set_hostname(const char* value, size_t size);
::std::string* mutable_hostname();
::std::string* release_hostname();
void set_allocated_hostname(::std::string* hostname);
// bool replica = 2;
void clear_replica();
static const int kReplicaFieldNumber = 2;
bool replica() const;
void set_replica(bool value);
// @@protoc_insertion_point(class_scope:hw2.JoinRequest)
private:
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
::google::protobuf::internal::ArenaStringPtr hostname_;
bool replica_;
mutable int _cached_size_;
friend struct ::protobuf_fb_2eproto::TableStruct;
friend void ::protobuf_fb_2eproto::InitDefaultsJoinRequestImpl();
};
// -------------------------------------------------------------------
class JoinReply : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw2.JoinReply) */ {
public:
JoinReply();
virtual ~JoinReply();
JoinReply(const JoinReply& from);
inline JoinReply& operator=(const JoinReply& from) {
CopyFrom(from);
return *this;
}
#if LANG_CXX11
JoinReply(JoinReply&& from) noexcept
: JoinReply() {
*this = ::std::move(from);
}
inline JoinReply& operator=(JoinReply&& from) noexcept {
if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
if (this != &from) InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
#endif
static const ::google::protobuf::Descriptor* descriptor();
static const JoinReply& default_instance();
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
static inline const JoinReply* internal_default_instance() {
return reinterpret_cast<const JoinReply*>(
&_JoinReply_default_instance_);
}
static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
4;
void Swap(JoinReply* other);
friend void swap(JoinReply& a, JoinReply& b) {
a.Swap(&b);
}
// implements Message ----------------------------------------------
inline JoinReply* New() const PROTOBUF_FINAL { return New(NULL); }
JoinReply* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
void CopyFrom(const JoinReply& from);
void MergeFrom(const JoinReply& from);
void Clear() PROTOBUF_FINAL;
bool IsInitialized() const PROTOBUF_FINAL;
size_t ByteSizeLong() const PROTOBUF_FINAL;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const PROTOBUF_FINAL;
void InternalSwap(JoinReply* other);
private:
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
return NULL;
}
inline void* MaybeArenaPtr() const {
return NULL;
}
public:
::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// repeated string slaves = 1;
int slaves_size() const;
void clear_slaves();
static const int kSlavesFieldNumber = 1;
const ::std::string& slaves(int index) const;
::std::string* mutable_slaves(int index);
void set_slaves(int index, const ::std::string& value);
#if LANG_CXX11
void set_slaves(int index, ::std::string&& value);
#endif
void set_slaves(int index, const char* value);
void set_slaves(int index, const char* value, size_t size);
::std::string* add_slaves();
void add_slaves(const ::std::string& value);
#if LANG_CXX11
void add_slaves(::std::string&& value);
#endif
void add_slaves(const char* value);
void add_slaves(const char* value, size_t size);
const ::google::protobuf::RepeatedPtrField< ::std::string>& slaves() const;
::google::protobuf::RepeatedPtrField< ::std::string>* mutable_slaves();
// repeated string workers = 2;
int workers_size() const;
void clear_workers();
static const int kWorkersFieldNumber = 2;
const ::std::string& workers(int index) const;
::std::string* mutable_workers(int index);
void set_workers(int index, const ::std::string& value);
#if LANG_CXX11
void set_workers(int index, ::std::string&& value);
#endif
void set_workers(int index, const char* value);
void set_workers(int index, const char* value, size_t size);
::std::string* add_workers();
void add_workers(const ::std::string& value);
#if LANG_CXX11
void add_workers(::std::string&& value);
#endif
void add_workers(const char* value);
void add_workers(const char* value, size_t size);
const ::google::protobuf::RepeatedPtrField< ::std::string>& workers() const;
::google::protobuf::RepeatedPtrField< ::std::string>* mutable_workers();
// @@protoc_insertion_point(class_scope:hw2.JoinReply)
private:
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
::google::protobuf::RepeatedPtrField< ::std::string> slaves_;
::google::protobuf::RepeatedPtrField< ::std::string> workers_;
mutable int _cached_size_;
friend struct ::protobuf_fb_2eproto::TableStruct;
friend void ::protobuf_fb_2eproto::InitDefaultsJoinReplyImpl();
};
// -------------------------------------------------------------------
class Message : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw2.Message) */ {
public:
Message();
virtual ~Message();
Message(const Message& from);
inline Message& operator=(const Message& from) {
CopyFrom(from);
return *this;
}
#if LANG_CXX11
Message(Message&& from) noexcept
: Message() {
*this = ::std::move(from);
}
inline Message& operator=(Message&& from) noexcept {
if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
if (this != &from) InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
#endif
static const ::google::protobuf::Descriptor* descriptor();
static const Message& default_instance();
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
static inline const Message* internal_default_instance() {
return reinterpret_cast<const Message*>(
&_Message_default_instance_);
}
static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
5;
void Swap(Message* other);
friend void swap(Message& a, Message& b) {
a.Swap(&b);
}
// implements Message ----------------------------------------------
inline Message* New() const PROTOBUF_FINAL { return New(NULL); }
Message* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
void CopyFrom(const Message& from);
void MergeFrom(const Message& from);
void Clear() PROTOBUF_FINAL;
bool IsInitialized() const PROTOBUF_FINAL;
size_t ByteSizeLong() const PROTOBUF_FINAL;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const PROTOBUF_FINAL;
void InternalSwap(Message* other);
private:
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
return NULL;
}
inline void* MaybeArenaPtr() const {
return NULL;
}
public:
::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// string username = 1;
void clear_username();
static const int kUsernameFieldNumber = 1;
const ::std::string& username() const;
void set_username(const ::std::string& value);
#if LANG_CXX11
void set_username(::std::string&& value);
#endif
void set_username(const char* value);
void set_username(const char* value, size_t size);
::std::string* mutable_username();
::std::string* release_username();
void set_allocated_username(::std::string* username);
// string msg = 2;
void clear_msg();
static const int kMsgFieldNumber = 2;
const ::std::string& msg() const;
void set_msg(const ::std::string& value);
#if LANG_CXX11
void set_msg(::std::string&& value);
#endif
void set_msg(const char* value);
void set_msg(const char* value, size_t size);
::std::string* mutable_msg();
::std::string* release_msg();
void set_allocated_msg(::std::string* msg);
// .google.protobuf.Timestamp timestamp = 3;
bool has_timestamp() const;
void clear_timestamp();
static const int kTimestampFieldNumber = 3;
const ::google::protobuf::Timestamp& timestamp() const;
::google::protobuf::Timestamp* mutable_timestamp();
::google::protobuf::Timestamp* release_timestamp();
void set_allocated_timestamp(::google::protobuf::Timestamp* timestamp);
// @@protoc_insertion_point(class_scope:hw2.Message)
private:
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
::google::protobuf::internal::ArenaStringPtr username_;
::google::protobuf::internal::ArenaStringPtr msg_;
::google::protobuf::Timestamp* timestamp_;
mutable int _cached_size_;
friend struct ::protobuf_fb_2eproto::TableStruct;
friend void ::protobuf_fb_2eproto::InitDefaultsMessageImpl();
};
// -------------------------------------------------------------------
class SyncMsg : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:hw2.SyncMsg) */ {
public:
SyncMsg();
virtual ~SyncMsg();
SyncMsg(const SyncMsg& from);
inline SyncMsg& operator=(const SyncMsg& from) {
CopyFrom(from);
return *this;
}
#if LANG_CXX11
SyncMsg(SyncMsg&& from) noexcept
: SyncMsg() {
*this = ::std::move(from);
}
inline SyncMsg& operator=(SyncMsg&& from) noexcept {
if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
if (this != &from) InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
#endif
static const ::google::protobuf::Descriptor* descriptor();
static const SyncMsg& default_instance();
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
static inline const SyncMsg* internal_default_instance() {
return reinterpret_cast<const SyncMsg*>(
&_SyncMsg_default_instance_);
}
static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
6;
void Swap(SyncMsg* other);
friend void swap(SyncMsg& a, SyncMsg& b) {
a.Swap(&b);
}
// implements Message ----------------------------------------------
inline SyncMsg* New() const PROTOBUF_FINAL { return New(NULL); }
SyncMsg* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
void CopyFrom(const SyncMsg& from);
void MergeFrom(const SyncMsg& from);
void Clear() PROTOBUF_FINAL;
bool IsInitialized() const PROTOBUF_FINAL;
size_t ByteSizeLong() const PROTOBUF_FINAL;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const PROTOBUF_FINAL;
void InternalSwap(SyncMsg* other);
private:
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
return NULL;
}
inline void* MaybeArenaPtr() const {
return NULL;
}
public:
::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// repeated string args = 3;
int args_size() const;
void clear_args();
static const int kArgsFieldNumber = 3;
const ::std::string& args(int index) const;
::std::string* mutable_args(int index);
void set_args(int index, const ::std::string& value);
#if LANG_CXX11
void set_args(int index, ::std::string&& value);
#endif
void set_args(int index, const char* value);
void set_args(int index, const char* value, size_t size);
::std::string* add_args();
void add_args(const ::std::string& value);
#if LANG_CXX11
void add_args(::std::string&& value);
#endif
void add_args(const char* value);
void add_args(const char* value, size_t size);
const ::google::protobuf::RepeatedPtrField< ::std::string>& args() const;
::google::protobuf::RepeatedPtrField< ::std::string>* mutable_args();
// string src = 1;
void clear_src();
static const int kSrcFieldNumber = 1;
const ::std::string& src() const;
void set_src(const ::std::string& value);
#if LANG_CXX11
void set_src(::std::string&& value);
#endif
void set_src(const char* value);
void set_src(const char* value, size_t size);
::std::string* mutable_src();
::std::string* release_src();
void set_allocated_src(::std::string* src);
// string cmd = 2;
void clear_cmd();
static const int kCmdFieldNumber = 2;
const ::std::string& cmd() const;
void set_cmd(const ::std::string& value);
#if LANG_CXX11
void set_cmd(::std::string&& value);
#endif
void set_cmd(const char* value);
void set_cmd(const char* value, size_t size);
::std::string* mutable_cmd();
::std::string* release_cmd();
void set_allocated_cmd(::std::string* cmd);
// .hw2.Message msg = 4;
bool has_msg() const;
void clear_msg();
static const int kMsgFieldNumber = 4;
const ::hw2::Message& msg() const;
::hw2::Message* mutable_msg();
::hw2::Message* release_msg();
void set_allocated_msg(::hw2::Message* msg);
// @@protoc_insertion_point(class_scope:hw2.SyncMsg)
private:
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
::google::protobuf::RepeatedPtrField< ::std::string> args_;
::google::protobuf::internal::ArenaStringPtr src_;
::google::protobuf::internal::ArenaStringPtr cmd_;