forked from madMAx43v3r/xpmclient
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprotocol.pb.h
More file actions
4210 lines (3819 loc) · 121 KB
/
protocol.pb.h
File metadata and controls
4210 lines (3819 loc) · 121 KB
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: protocol.proto
#ifndef PROTOBUF_protocol_2eproto__INCLUDED
#define PROTOBUF_protocol_2eproto__INCLUDED
#include <string>
#include <google/protobuf/stubs/common.h>
#if GOOGLE_PROTOBUF_VERSION < 2005000
#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 2005000 < 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)
namespace pool {
namespace proto {
// Internal implementation detail -- do not call these.
void protobuf_AddDesc_protocol_2eproto();
void protobuf_AssignDesc_protocol_2eproto();
void protobuf_ShutdownFile_protocol_2eproto();
class Block;
class Signal;
class ClientStats;
class Share;
class Request;
class ServerInfo;
class Work;
class Reply;
class ReqStats;
class ServerStats;
class Data;
enum Signal_Type {
Signal_Type_NEWBLOCK = 1,
Signal_Type_SHUTDOWN = 2
};
bool Signal_Type_IsValid(int value);
const Signal_Type Signal_Type_Type_MIN = Signal_Type_NEWBLOCK;
const Signal_Type Signal_Type_Type_MAX = Signal_Type_SHUTDOWN;
const int Signal_Type_Type_ARRAYSIZE = Signal_Type_Type_MAX + 1;
const ::google::protobuf::EnumDescriptor* Signal_Type_descriptor();
inline const ::std::string& Signal_Type_Name(Signal_Type value) {
return ::google::protobuf::internal::NameOfEnum(
Signal_Type_descriptor(), value);
}
inline bool Signal_Type_Parse(
const ::std::string& name, Signal_Type* value) {
return ::google::protobuf::internal::ParseNamedEnum<Signal_Type>(
Signal_Type_descriptor(), name, value);
}
enum Request_Type {
Request_Type_NONE = 0,
Request_Type_CONNECT = 1,
Request_Type_GETWORK = 2,
Request_Type_SHARE = 3,
Request_Type_STATS = 4,
Request_Type_PING = 5
};
bool Request_Type_IsValid(int value);
const Request_Type Request_Type_Type_MIN = Request_Type_NONE;
const Request_Type Request_Type_Type_MAX = Request_Type_PING;
const int Request_Type_Type_ARRAYSIZE = Request_Type_Type_MAX + 1;
const ::google::protobuf::EnumDescriptor* Request_Type_descriptor();
inline const ::std::string& Request_Type_Name(Request_Type value) {
return ::google::protobuf::internal::NameOfEnum(
Request_Type_descriptor(), value);
}
inline bool Request_Type_Parse(
const ::std::string& name, Request_Type* value) {
return ::google::protobuf::internal::ParseNamedEnum<Request_Type>(
Request_Type_descriptor(), name, value);
}
enum Reply_ErrType {
Reply_ErrType_NONE = 0,
Reply_ErrType_VERSION = 1,
Reply_ErrType_HEIGHT = 2,
Reply_ErrType_REQNONCE = 3,
Reply_ErrType_STALE = 4,
Reply_ErrType_INVALID = 5,
Reply_ErrType_DUPLICATE = 6
};
bool Reply_ErrType_IsValid(int value);
const Reply_ErrType Reply_ErrType_ErrType_MIN = Reply_ErrType_NONE;
const Reply_ErrType Reply_ErrType_ErrType_MAX = Reply_ErrType_DUPLICATE;
const int Reply_ErrType_ErrType_ARRAYSIZE = Reply_ErrType_ErrType_MAX + 1;
const ::google::protobuf::EnumDescriptor* Reply_ErrType_descriptor();
inline const ::std::string& Reply_ErrType_Name(Reply_ErrType value) {
return ::google::protobuf::internal::NameOfEnum(
Reply_ErrType_descriptor(), value);
}
inline bool Reply_ErrType_Parse(
const ::std::string& name, Reply_ErrType* value) {
return ::google::protobuf::internal::ParseNamedEnum<Reply_ErrType>(
Reply_ErrType_descriptor(), name, value);
}
// ===================================================================
class Block : public ::google::protobuf::Message {
public:
Block();
virtual ~Block();
Block(const Block& from);
inline Block& operator=(const Block& 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 Block& default_instance();
void Swap(Block* other);
// implements Message ----------------------------------------------
Block* New() const;
void CopyFrom(const ::google::protobuf::Message& from);
void MergeFrom(const ::google::protobuf::Message& from);
void CopyFrom(const Block& from);
void MergeFrom(const Block& 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 height = 1;
inline bool has_height() const;
inline void clear_height();
static const int kHeightFieldNumber = 1;
inline ::google::protobuf::uint32 height() const;
inline void set_height(::google::protobuf::uint32 value);
// required string hash = 2;
inline bool has_hash() const;
inline void clear_hash();
static const int kHashFieldNumber = 2;
inline const ::std::string& hash() const;
inline void set_hash(const ::std::string& value);
inline void set_hash(const char* value);
inline void set_hash(const char* value, size_t size);
inline ::std::string* mutable_hash();
inline ::std::string* release_hash();
inline void set_allocated_hash(::std::string* hash);
// required string prevhash = 3;
inline bool has_prevhash() const;
inline void clear_prevhash();
static const int kPrevhashFieldNumber = 3;
inline const ::std::string& prevhash() const;
inline void set_prevhash(const ::std::string& value);
inline void set_prevhash(const char* value);
inline void set_prevhash(const char* value, size_t size);
inline ::std::string* mutable_prevhash();
inline ::std::string* release_prevhash();
inline void set_allocated_prevhash(::std::string* prevhash);
// required uint32 reqdiff = 4;
inline bool has_reqdiff() const;
inline void clear_reqdiff();
static const int kReqdiffFieldNumber = 4;
inline ::google::protobuf::uint32 reqdiff() const;
inline void set_reqdiff(::google::protobuf::uint32 value);
// required uint32 minshare = 5;
inline bool has_minshare() const;
inline void clear_minshare();
static const int kMinshareFieldNumber = 5;
inline ::google::protobuf::uint32 minshare() const;
inline void set_minshare(::google::protobuf::uint32 value);
// @@protoc_insertion_point(class_scope:pool.proto.Block)
private:
inline void set_has_height();
inline void clear_has_height();
inline void set_has_hash();
inline void clear_has_hash();
inline void set_has_prevhash();
inline void clear_has_prevhash();
inline void set_has_reqdiff();
inline void clear_has_reqdiff();
inline void set_has_minshare();
inline void clear_has_minshare();
::google::protobuf::UnknownFieldSet _unknown_fields_;
::std::string* hash_;
::google::protobuf::uint32 height_;
::google::protobuf::uint32 reqdiff_;
::std::string* prevhash_;
::google::protobuf::uint32 minshare_;
mutable int _cached_size_;
::google::protobuf::uint32 _has_bits_[(5 + 31) / 32];
friend void protobuf_AddDesc_protocol_2eproto();
friend void protobuf_AssignDesc_protocol_2eproto();
friend void protobuf_ShutdownFile_protocol_2eproto();
void InitAsDefaultInstance();
static Block* default_instance_;
};
// -------------------------------------------------------------------
class Signal : public ::google::protobuf::Message {
public:
Signal();
virtual ~Signal();
Signal(const Signal& from);
inline Signal& operator=(const Signal& 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 Signal& default_instance();
void Swap(Signal* other);
// implements Message ----------------------------------------------
Signal* New() const;
void CopyFrom(const ::google::protobuf::Message& from);
void MergeFrom(const ::google::protobuf::Message& from);
void CopyFrom(const Signal& from);
void MergeFrom(const Signal& 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 Signal_Type Type;
static const Type NEWBLOCK = Signal_Type_NEWBLOCK;
static const Type SHUTDOWN = Signal_Type_SHUTDOWN;
static inline bool Type_IsValid(int value) {
return Signal_Type_IsValid(value);
}
static const Type Type_MIN =
Signal_Type_Type_MIN;
static const Type Type_MAX =
Signal_Type_Type_MAX;
static const int Type_ARRAYSIZE =
Signal_Type_Type_ARRAYSIZE;
static inline const ::google::protobuf::EnumDescriptor*
Type_descriptor() {
return Signal_Type_descriptor();
}
static inline const ::std::string& Type_Name(Type value) {
return Signal_Type_Name(value);
}
static inline bool Type_Parse(const ::std::string& name,
Type* value) {
return Signal_Type_Parse(name, value);
}
// accessors -------------------------------------------------------
// required .pool.proto.Signal.Type type = 1;
inline bool has_type() const;
inline void clear_type();
static const int kTypeFieldNumber = 1;
inline ::pool::proto::Signal_Type type() const;
inline void set_type(::pool::proto::Signal_Type value);
// optional .pool.proto.Block block = 2;
inline bool has_block() const;
inline void clear_block();
static const int kBlockFieldNumber = 2;
inline const ::pool::proto::Block& block() const;
inline ::pool::proto::Block* mutable_block();
inline ::pool::proto::Block* release_block();
inline void set_allocated_block(::pool::proto::Block* block);
// @@protoc_insertion_point(class_scope:pool.proto.Signal)
private:
inline void set_has_type();
inline void clear_has_type();
inline void set_has_block();
inline void clear_has_block();
::google::protobuf::UnknownFieldSet _unknown_fields_;
::pool::proto::Block* block_;
int type_;
mutable int _cached_size_;
::google::protobuf::uint32 _has_bits_[(2 + 31) / 32];
friend void protobuf_AddDesc_protocol_2eproto();
friend void protobuf_AssignDesc_protocol_2eproto();
friend void protobuf_ShutdownFile_protocol_2eproto();
void InitAsDefaultInstance();
static Signal* default_instance_;
};
// -------------------------------------------------------------------
class ClientStats : public ::google::protobuf::Message {
public:
ClientStats();
virtual ~ClientStats();
ClientStats(const ClientStats& from);
inline ClientStats& operator=(const ClientStats& 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 ClientStats& default_instance();
void Swap(ClientStats* other);
// implements Message ----------------------------------------------
ClientStats* New() const;
void CopyFrom(const ::google::protobuf::Message& from);
void MergeFrom(const ::google::protobuf::Message& from);
void CopyFrom(const ClientStats& from);
void MergeFrom(const ClientStats& 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 string addr = 1;
inline bool has_addr() const;
inline void clear_addr();
static const int kAddrFieldNumber = 1;
inline const ::std::string& addr() const;
inline void set_addr(const ::std::string& value);
inline void set_addr(const char* value);
inline void set_addr(const char* value, size_t size);
inline ::std::string* mutable_addr();
inline ::std::string* release_addr();
inline void set_allocated_addr(::std::string* addr);
// required string name = 2;
inline bool has_name() const;
inline void clear_name();
static const int kNameFieldNumber = 2;
inline const ::std::string& name() const;
inline void set_name(const ::std::string& value);
inline void set_name(const char* value);
inline void set_name(const char* value, size_t size);
inline ::std::string* mutable_name();
inline ::std::string* release_name();
inline void set_allocated_name(::std::string* name);
// required fixed64 clientid = 3;
inline bool has_clientid() const;
inline void clear_clientid();
static const int kClientidFieldNumber = 3;
inline ::google::protobuf::uint64 clientid() const;
inline void set_clientid(::google::protobuf::uint64 value);
// required fixed64 instanceid = 4;
inline bool has_instanceid() const;
inline void clear_instanceid();
static const int kInstanceidFieldNumber = 4;
inline ::google::protobuf::uint64 instanceid() const;
inline void set_instanceid(::google::protobuf::uint64 value);
// required uint32 version = 10;
inline bool has_version() const;
inline void clear_version();
static const int kVersionFieldNumber = 10;
inline ::google::protobuf::uint32 version() const;
inline void set_version(::google::protobuf::uint32 value);
// required float cpd = 11;
inline bool has_cpd() const;
inline void clear_cpd();
static const int kCpdFieldNumber = 11;
inline float cpd() const;
inline void set_cpd(float value);
// required uint32 latency = 12;
inline bool has_latency() const;
inline void clear_latency();
static const int kLatencyFieldNumber = 12;
inline ::google::protobuf::uint32 latency() const;
inline void set_latency(::google::protobuf::uint32 value);
// required uint32 temp = 13;
inline bool has_temp() const;
inline void clear_temp();
static const int kTempFieldNumber = 13;
inline ::google::protobuf::uint32 temp() const;
inline void set_temp(::google::protobuf::uint32 value);
// required uint32 errors = 14;
inline bool has_errors() const;
inline void clear_errors();
static const int kErrorsFieldNumber = 14;
inline ::google::protobuf::uint32 errors() const;
inline void set_errors(::google::protobuf::uint32 value);
// required uint32 ngpus = 15;
inline bool has_ngpus() const;
inline void clear_ngpus();
static const int kNgpusFieldNumber = 15;
inline ::google::protobuf::uint32 ngpus() const;
inline void set_ngpus(::google::protobuf::uint32 value);
// required uint32 height = 16;
inline bool has_height() const;
inline void clear_height();
static const int kHeightFieldNumber = 16;
inline ::google::protobuf::uint32 height() const;
inline void set_height(::google::protobuf::uint32 value);
// @@protoc_insertion_point(class_scope:pool.proto.ClientStats)
private:
inline void set_has_addr();
inline void clear_has_addr();
inline void set_has_name();
inline void clear_has_name();
inline void set_has_clientid();
inline void clear_has_clientid();
inline void set_has_instanceid();
inline void clear_has_instanceid();
inline void set_has_version();
inline void clear_has_version();
inline void set_has_cpd();
inline void clear_has_cpd();
inline void set_has_latency();
inline void clear_has_latency();
inline void set_has_temp();
inline void clear_has_temp();
inline void set_has_errors();
inline void clear_has_errors();
inline void set_has_ngpus();
inline void clear_has_ngpus();
inline void set_has_height();
inline void clear_has_height();
::google::protobuf::UnknownFieldSet _unknown_fields_;
::std::string* addr_;
::std::string* name_;
::google::protobuf::uint64 clientid_;
::google::protobuf::uint64 instanceid_;
::google::protobuf::uint32 version_;
float cpd_;
::google::protobuf::uint32 latency_;
::google::protobuf::uint32 temp_;
::google::protobuf::uint32 errors_;
::google::protobuf::uint32 ngpus_;
::google::protobuf::uint32 height_;
mutable int _cached_size_;
::google::protobuf::uint32 _has_bits_[(11 + 31) / 32];
friend void protobuf_AddDesc_protocol_2eproto();
friend void protobuf_AssignDesc_protocol_2eproto();
friend void protobuf_ShutdownFile_protocol_2eproto();
void InitAsDefaultInstance();
static ClientStats* default_instance_;
};
// -------------------------------------------------------------------
class Share : public ::google::protobuf::Message {
public:
Share();
virtual ~Share();
Share(const Share& from);
inline Share& operator=(const Share& 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 Share& default_instance();
void Swap(Share* other);
// implements Message ----------------------------------------------
Share* New() const;
void CopyFrom(const ::google::protobuf::Message& from);
void MergeFrom(const ::google::protobuf::Message& from);
void CopyFrom(const Share& from);
void MergeFrom(const Share& 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 string addr = 1;
inline bool has_addr() const;
inline void clear_addr();
static const int kAddrFieldNumber = 1;
inline const ::std::string& addr() const;
inline void set_addr(const ::std::string& value);
inline void set_addr(const char* value);
inline void set_addr(const char* value, size_t size);
inline ::std::string* mutable_addr();
inline ::std::string* release_addr();
inline void set_allocated_addr(::std::string* addr);
// required string name = 2;
inline bool has_name() const;
inline void clear_name();
static const int kNameFieldNumber = 2;
inline const ::std::string& name() const;
inline void set_name(const ::std::string& value);
inline void set_name(const char* value);
inline void set_name(const char* value, size_t size);
inline ::std::string* mutable_name();
inline ::std::string* release_name();
inline void set_allocated_name(::std::string* name);
// required fixed64 clientid = 3;
inline bool has_clientid() const;
inline void clear_clientid();
static const int kClientidFieldNumber = 3;
inline ::google::protobuf::uint64 clientid() const;
inline void set_clientid(::google::protobuf::uint64 value);
// optional uint32 gpuid = 4;
inline bool has_gpuid() const;
inline void clear_gpuid();
static const int kGpuidFieldNumber = 4;
inline ::google::protobuf::uint32 gpuid() const;
inline void set_gpuid(::google::protobuf::uint32 value);
// required string hash = 10;
inline bool has_hash() const;
inline void clear_hash();
static const int kHashFieldNumber = 10;
inline const ::std::string& hash() const;
inline void set_hash(const ::std::string& value);
inline void set_hash(const char* value);
inline void set_hash(const char* value, size_t size);
inline ::std::string* mutable_hash();
inline ::std::string* release_hash();
inline void set_allocated_hash(::std::string* hash);
// required string merkle = 11;
inline bool has_merkle() const;
inline void clear_merkle();
static const int kMerkleFieldNumber = 11;
inline const ::std::string& merkle() const;
inline void set_merkle(const ::std::string& value);
inline void set_merkle(const char* value);
inline void set_merkle(const char* value, size_t size);
inline ::std::string* mutable_merkle();
inline ::std::string* release_merkle();
inline void set_allocated_merkle(::std::string* merkle);
// required uint32 time = 12;
inline bool has_time() const;
inline void clear_time();
static const int kTimeFieldNumber = 12;
inline ::google::protobuf::uint32 time() const;
inline void set_time(::google::protobuf::uint32 value);
// required uint32 bits = 13;
inline bool has_bits() const;
inline void clear_bits();
static const int kBitsFieldNumber = 13;
inline ::google::protobuf::uint32 bits() const;
inline void set_bits(::google::protobuf::uint32 value);
// required uint32 nonce = 14;
inline bool has_nonce() const;
inline void clear_nonce();
static const int kNonceFieldNumber = 14;
inline ::google::protobuf::uint32 nonce() const;
inline void set_nonce(::google::protobuf::uint32 value);
// required string multi = 15;
inline bool has_multi() const;
inline void clear_multi();
static const int kMultiFieldNumber = 15;
inline const ::std::string& multi() const;
inline void set_multi(const ::std::string& value);
inline void set_multi(const char* value);
inline void set_multi(const char* value, size_t size);
inline ::std::string* mutable_multi();
inline ::std::string* release_multi();
inline void set_allocated_multi(::std::string* multi);
// optional string blockhash = 16;
inline bool has_blockhash() const;
inline void clear_blockhash();
static const int kBlockhashFieldNumber = 16;
inline const ::std::string& blockhash() const;
inline void set_blockhash(const ::std::string& value);
inline void set_blockhash(const char* value);
inline void set_blockhash(const char* value, size_t size);
inline ::std::string* mutable_blockhash();
inline ::std::string* release_blockhash();
inline void set_allocated_blockhash(::std::string* blockhash);
// required uint32 height = 20;
inline bool has_height() const;
inline void clear_height();
static const int kHeightFieldNumber = 20;
inline ::google::protobuf::uint32 height() const;
inline void set_height(::google::protobuf::uint32 value);
// required uint32 length = 21;
inline bool has_length() const;
inline void clear_length();
static const int kLengthFieldNumber = 21;
inline ::google::protobuf::uint32 length() const;
inline void set_length(::google::protobuf::uint32 value);
// required uint32 chaintype = 22;
inline bool has_chaintype() const;
inline void clear_chaintype();
static const int kChaintypeFieldNumber = 22;
inline ::google::protobuf::uint32 chaintype() const;
inline void set_chaintype(::google::protobuf::uint32 value);
// required bool isblock = 23;
inline bool has_isblock() const;
inline void clear_isblock();
static const int kIsblockFieldNumber = 23;
inline bool isblock() const;
inline void set_isblock(bool value);
// optional uint64 genvalue = 24;
inline bool has_genvalue() const;
inline void clear_genvalue();
static const int kGenvalueFieldNumber = 24;
inline ::google::protobuf::uint64 genvalue() const;
inline void set_genvalue(::google::protobuf::uint64 value);
// @@protoc_insertion_point(class_scope:pool.proto.Share)
private:
inline void set_has_addr();
inline void clear_has_addr();
inline void set_has_name();
inline void clear_has_name();
inline void set_has_clientid();
inline void clear_has_clientid();
inline void set_has_gpuid();
inline void clear_has_gpuid();
inline void set_has_hash();
inline void clear_has_hash();
inline void set_has_merkle();
inline void clear_has_merkle();
inline void set_has_time();
inline void clear_has_time();
inline void set_has_bits();
inline void clear_has_bits();
inline void set_has_nonce();
inline void clear_has_nonce();
inline void set_has_multi();
inline void clear_has_multi();
inline void set_has_blockhash();
inline void clear_has_blockhash();
inline void set_has_height();
inline void clear_has_height();
inline void set_has_length();
inline void clear_has_length();
inline void set_has_chaintype();
inline void clear_has_chaintype();
inline void set_has_isblock();
inline void clear_has_isblock();
inline void set_has_genvalue();
inline void clear_has_genvalue();
::google::protobuf::UnknownFieldSet _unknown_fields_;
::std::string* addr_;
::std::string* name_;
::google::protobuf::uint64 clientid_;
::std::string* hash_;
::google::protobuf::uint32 gpuid_;
::google::protobuf::uint32 time_;
::std::string* merkle_;
::google::protobuf::uint32 bits_;
::google::protobuf::uint32 nonce_;
::std::string* multi_;
::std::string* blockhash_;
::google::protobuf::uint32 height_;
::google::protobuf::uint32 length_;
::google::protobuf::uint32 chaintype_;
bool isblock_;
::google::protobuf::uint64 genvalue_;
mutable int _cached_size_;
::google::protobuf::uint32 _has_bits_[(16 + 31) / 32];
friend void protobuf_AddDesc_protocol_2eproto();
friend void protobuf_AssignDesc_protocol_2eproto();
friend void protobuf_ShutdownFile_protocol_2eproto();
void InitAsDefaultInstance();
static Share* default_instance_;
};
// -------------------------------------------------------------------
class Request : public ::google::protobuf::Message {
public:
Request();
virtual ~Request();
Request(const Request& from);
inline Request& operator=(const 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 Request& default_instance();
void Swap(Request* other);
// implements Message ----------------------------------------------
Request* New() const;
void CopyFrom(const ::google::protobuf::Message& from);
void MergeFrom(const ::google::protobuf::Message& from);
void CopyFrom(const Request& from);
void MergeFrom(const 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 ----------------------------------------------------
typedef Request_Type Type;
static const Type NONE = Request_Type_NONE;
static const Type CONNECT = Request_Type_CONNECT;
static const Type GETWORK = Request_Type_GETWORK;
static const Type SHARE = Request_Type_SHARE;
static const Type STATS = Request_Type_STATS;
static const Type PING = Request_Type_PING;
static inline bool Type_IsValid(int value) {
return Request_Type_IsValid(value);
}
static const Type Type_MIN =
Request_Type_Type_MIN;
static const Type Type_MAX =
Request_Type_Type_MAX;
static const int Type_ARRAYSIZE =
Request_Type_Type_ARRAYSIZE;
static inline const ::google::protobuf::EnumDescriptor*
Type_descriptor() {
return Request_Type_descriptor();
}
static inline const ::std::string& Type_Name(Type value) {
return Request_Type_Name(value);
}
static inline bool Type_Parse(const ::std::string& name,
Type* value) {
return Request_Type_Parse(name, value);
}
// accessors -------------------------------------------------------
// required .pool.proto.Request.Type type = 1;
inline bool has_type() const;
inline void clear_type();
static const int kTypeFieldNumber = 1;
inline ::pool::proto::Request_Type type() const;
inline void set_type(::pool::proto::Request_Type value);
// required uint32 reqid = 2;
inline bool has_reqid() const;
inline void clear_reqid();
static const int kReqidFieldNumber = 2;
inline ::google::protobuf::uint32 reqid() const;
inline void set_reqid(::google::protobuf::uint32 value);
// optional uint32 version = 10;
inline bool has_version() const;
inline void clear_version();
static const int kVersionFieldNumber = 10;
inline ::google::protobuf::uint32 version() const;
inline void set_version(::google::protobuf::uint32 value);
// optional uint32 height = 11;
inline bool has_height() const;
inline void clear_height();
static const int kHeightFieldNumber = 11;
inline ::google::protobuf::uint32 height() const;
inline void set_height(::google::protobuf::uint32 value);
// optional bytes reqnonce = 12;
inline bool has_reqnonce() const;
inline void clear_reqnonce();
static const int kReqnonceFieldNumber = 12;
inline const ::std::string& reqnonce() const;
inline void set_reqnonce(const ::std::string& value);
inline void set_reqnonce(const char* value);
inline void set_reqnonce(const void* value, size_t size);
inline ::std::string* mutable_reqnonce();
inline ::std::string* release_reqnonce();
inline void set_allocated_reqnonce(::std::string* reqnonce);
// optional .pool.proto.Share share = 20;
inline bool has_share() const;
inline void clear_share();
static const int kShareFieldNumber = 20;
inline const ::pool::proto::Share& share() const;
inline ::pool::proto::Share* mutable_share();
inline ::pool::proto::Share* release_share();
inline void set_allocated_share(::pool::proto::Share* share);
// optional .pool.proto.ClientStats stats = 21;
inline bool has_stats() const;
inline void clear_stats();
static const int kStatsFieldNumber = 21;
inline const ::pool::proto::ClientStats& stats() const;
inline ::pool::proto::ClientStats* mutable_stats();
inline ::pool::proto::ClientStats* release_stats();
inline void set_allocated_stats(::pool::proto::ClientStats* stats);
// @@protoc_insertion_point(class_scope:pool.proto.Request)
private:
inline void set_has_type();
inline void clear_has_type();
inline void set_has_reqid();
inline void clear_has_reqid();
inline void set_has_version();
inline void clear_has_version();
inline void set_has_height();
inline void clear_has_height();
inline void set_has_reqnonce();
inline void clear_has_reqnonce();
inline void set_has_share();
inline void clear_has_share();
inline void set_has_stats();
inline void clear_has_stats();
::google::protobuf::UnknownFieldSet _unknown_fields_;
int type_;
::google::protobuf::uint32 reqid_;
::google::protobuf::uint32 version_;
::google::protobuf::uint32 height_;
::std::string* reqnonce_;
::pool::proto::Share* share_;
::pool::proto::ClientStats* stats_;
mutable int _cached_size_;
::google::protobuf::uint32 _has_bits_[(7 + 31) / 32];
friend void protobuf_AddDesc_protocol_2eproto();
friend void protobuf_AssignDesc_protocol_2eproto();
friend void protobuf_ShutdownFile_protocol_2eproto();
void InitAsDefaultInstance();
static Request* default_instance_;
};
// -------------------------------------------------------------------