-
Notifications
You must be signed in to change notification settings - Fork 0
/
net.pb.go
5662 lines (5416 loc) · 136 KB
/
net.pb.go
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
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: net.proto
package net_pb
import (
context "context"
fmt "fmt"
_ "github.com/gogo/protobuf/gogoproto"
proto "github.com/gogo/protobuf/proto"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
io "io"
math "math"
math_bits "math/bits"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
// Log represents a thread log.
type Log struct {
// ID of the log.
ID *ProtoPeerID `protobuf:"bytes,1,opt,name=ID,proto3,customtype=ProtoPeerID" json:"ID,omitempty"`
// pubKey of the log.
PubKey *ProtoPubKey `protobuf:"bytes,2,opt,name=pubKey,proto3,customtype=ProtoPubKey" json:"pubKey,omitempty"`
// addrs of the log.
Addrs []ProtoAddr `protobuf:"bytes,3,rep,name=addrs,proto3,customtype=ProtoAddr" json:"addrs,omitempty"`
// head of the log.
Head *ProtoCid `protobuf:"bytes,4,opt,name=head,proto3,customtype=ProtoCid" json:"head,omitempty"`
// position of the log
Counter int64 `protobuf:"varint,5,opt,name=counter,proto3" json:"counter,omitempty"`
}
func (m *Log) Reset() { *m = Log{} }
func (m *Log) String() string { return proto.CompactTextString(m) }
func (*Log) ProtoMessage() {}
func (*Log) Descriptor() ([]byte, []int) {
return fileDescriptor_a5b10ce944527a32, []int{0}
}
func (m *Log) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *Log) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_Log.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *Log) XXX_Merge(src proto.Message) {
xxx_messageInfo_Log.Merge(m, src)
}
func (m *Log) XXX_Size() int {
return m.Size()
}
func (m *Log) XXX_DiscardUnknown() {
xxx_messageInfo_Log.DiscardUnknown(m)
}
var xxx_messageInfo_Log proto.InternalMessageInfo
func (m *Log) GetCounter() int64 {
if m != nil {
return m.Counter
}
return 0
}
// Record is a thread record containing link data.
type Log_Record struct {
// recordNode is the top-level node's raw data.
RecordNode []byte `protobuf:"bytes,1,opt,name=recordNode,proto3" json:"recordNode,omitempty"`
// eventNode is the event node's raw data.
EventNode []byte `protobuf:"bytes,2,opt,name=eventNode,proto3" json:"eventNode,omitempty"`
// headerNode is the header node's raw data.
HeaderNode []byte `protobuf:"bytes,3,opt,name=headerNode,proto3" json:"headerNode,omitempty"`
// bodyNode is the body node's raw data.
BodyNode []byte `protobuf:"bytes,4,opt,name=bodyNode,proto3" json:"bodyNode,omitempty"`
}
func (m *Log_Record) Reset() { *m = Log_Record{} }
func (m *Log_Record) String() string { return proto.CompactTextString(m) }
func (*Log_Record) ProtoMessage() {}
func (*Log_Record) Descriptor() ([]byte, []int) {
return fileDescriptor_a5b10ce944527a32, []int{0, 0}
}
func (m *Log_Record) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *Log_Record) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_Log_Record.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *Log_Record) XXX_Merge(src proto.Message) {
xxx_messageInfo_Log_Record.Merge(m, src)
}
func (m *Log_Record) XXX_Size() int {
return m.Size()
}
func (m *Log_Record) XXX_DiscardUnknown() {
xxx_messageInfo_Log_Record.DiscardUnknown(m)
}
var xxx_messageInfo_Log_Record proto.InternalMessageInfo
func (m *Log_Record) GetRecordNode() []byte {
if m != nil {
return m.RecordNode
}
return nil
}
func (m *Log_Record) GetEventNode() []byte {
if m != nil {
return m.EventNode
}
return nil
}
func (m *Log_Record) GetHeaderNode() []byte {
if m != nil {
return m.HeaderNode
}
return nil
}
func (m *Log_Record) GetBodyNode() []byte {
if m != nil {
return m.BodyNode
}
return nil
}
// GetLogsRequest is used to request thread logs.
type GetLogsRequest struct {
// body is the message body.
Body *GetLogsRequest_Body `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"`
}
func (m *GetLogsRequest) Reset() { *m = GetLogsRequest{} }
func (m *GetLogsRequest) String() string { return proto.CompactTextString(m) }
func (*GetLogsRequest) ProtoMessage() {}
func (*GetLogsRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_a5b10ce944527a32, []int{1}
}
func (m *GetLogsRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *GetLogsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_GetLogsRequest.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *GetLogsRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetLogsRequest.Merge(m, src)
}
func (m *GetLogsRequest) XXX_Size() int {
return m.Size()
}
func (m *GetLogsRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetLogsRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetLogsRequest proto.InternalMessageInfo
func (m *GetLogsRequest) GetBody() *GetLogsRequest_Body {
if m != nil {
return m.Body
}
return nil
}
type GetLogsRequest_Body struct {
// threadID is the target thread's ID.
ThreadID *ProtoThreadID `protobuf:"bytes,1,opt,name=threadID,proto3,customtype=ProtoThreadID" json:"threadID,omitempty"`
// serviceKey for the thread.
ServiceKey *ProtoKey `protobuf:"bytes,2,opt,name=serviceKey,proto3,customtype=ProtoKey" json:"serviceKey,omitempty"`
}
func (m *GetLogsRequest_Body) Reset() { *m = GetLogsRequest_Body{} }
func (m *GetLogsRequest_Body) String() string { return proto.CompactTextString(m) }
func (*GetLogsRequest_Body) ProtoMessage() {}
func (*GetLogsRequest_Body) Descriptor() ([]byte, []int) {
return fileDescriptor_a5b10ce944527a32, []int{1, 0}
}
func (m *GetLogsRequest_Body) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *GetLogsRequest_Body) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_GetLogsRequest_Body.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *GetLogsRequest_Body) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetLogsRequest_Body.Merge(m, src)
}
func (m *GetLogsRequest_Body) XXX_Size() int {
return m.Size()
}
func (m *GetLogsRequest_Body) XXX_DiscardUnknown() {
xxx_messageInfo_GetLogsRequest_Body.DiscardUnknown(m)
}
var xxx_messageInfo_GetLogsRequest_Body proto.InternalMessageInfo
// GetLogsReply is the response from a GetLogsRequest.
type GetLogsReply struct {
// logs are the result of the request.
Logs []*Log `protobuf:"bytes,1,rep,name=logs,proto3" json:"logs,omitempty"`
}
func (m *GetLogsReply) Reset() { *m = GetLogsReply{} }
func (m *GetLogsReply) String() string { return proto.CompactTextString(m) }
func (*GetLogsReply) ProtoMessage() {}
func (*GetLogsReply) Descriptor() ([]byte, []int) {
return fileDescriptor_a5b10ce944527a32, []int{2}
}
func (m *GetLogsReply) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *GetLogsReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_GetLogsReply.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *GetLogsReply) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetLogsReply.Merge(m, src)
}
func (m *GetLogsReply) XXX_Size() int {
return m.Size()
}
func (m *GetLogsReply) XXX_DiscardUnknown() {
xxx_messageInfo_GetLogsReply.DiscardUnknown(m)
}
var xxx_messageInfo_GetLogsReply proto.InternalMessageInfo
func (m *GetLogsReply) GetLogs() []*Log {
if m != nil {
return m.Logs
}
return nil
}
// PushLogRequest is used to push a thread log to a peer.
type PushLogRequest struct {
// body is the message body.
Body *PushLogRequest_Body `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"`
}
func (m *PushLogRequest) Reset() { *m = PushLogRequest{} }
func (m *PushLogRequest) String() string { return proto.CompactTextString(m) }
func (*PushLogRequest) ProtoMessage() {}
func (*PushLogRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_a5b10ce944527a32, []int{3}
}
func (m *PushLogRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *PushLogRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_PushLogRequest.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *PushLogRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_PushLogRequest.Merge(m, src)
}
func (m *PushLogRequest) XXX_Size() int {
return m.Size()
}
func (m *PushLogRequest) XXX_DiscardUnknown() {
xxx_messageInfo_PushLogRequest.DiscardUnknown(m)
}
var xxx_messageInfo_PushLogRequest proto.InternalMessageInfo
func (m *PushLogRequest) GetBody() *PushLogRequest_Body {
if m != nil {
return m.Body
}
return nil
}
type PushLogRequest_Body struct {
// threadID is the target thread's ID.
ThreadID *ProtoThreadID `protobuf:"bytes,1,opt,name=threadID,proto3,customtype=ProtoThreadID" json:"threadID,omitempty"`
// serviceKey for the thread.
ServiceKey *ProtoKey `protobuf:"bytes,2,opt,name=serviceKey,proto3,customtype=ProtoKey" json:"serviceKey,omitempty"`
// readKey for the thread.
ReadKey *ProtoKey `protobuf:"bytes,3,opt,name=readKey,proto3,customtype=ProtoKey" json:"readKey,omitempty"`
// log is the actual log payload.
Log *Log `protobuf:"bytes,4,opt,name=log,proto3" json:"log,omitempty"`
}
func (m *PushLogRequest_Body) Reset() { *m = PushLogRequest_Body{} }
func (m *PushLogRequest_Body) String() string { return proto.CompactTextString(m) }
func (*PushLogRequest_Body) ProtoMessage() {}
func (*PushLogRequest_Body) Descriptor() ([]byte, []int) {
return fileDescriptor_a5b10ce944527a32, []int{3, 0}
}
func (m *PushLogRequest_Body) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *PushLogRequest_Body) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_PushLogRequest_Body.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *PushLogRequest_Body) XXX_Merge(src proto.Message) {
xxx_messageInfo_PushLogRequest_Body.Merge(m, src)
}
func (m *PushLogRequest_Body) XXX_Size() int {
return m.Size()
}
func (m *PushLogRequest_Body) XXX_DiscardUnknown() {
xxx_messageInfo_PushLogRequest_Body.DiscardUnknown(m)
}
var xxx_messageInfo_PushLogRequest_Body proto.InternalMessageInfo
func (m *PushLogRequest_Body) GetLog() *Log {
if m != nil {
return m.Log
}
return nil
}
// PushLogReply is the response from a PushLogRequest.
type PushLogReply struct {
}
func (m *PushLogReply) Reset() { *m = PushLogReply{} }
func (m *PushLogReply) String() string { return proto.CompactTextString(m) }
func (*PushLogReply) ProtoMessage() {}
func (*PushLogReply) Descriptor() ([]byte, []int) {
return fileDescriptor_a5b10ce944527a32, []int{4}
}
func (m *PushLogReply) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *PushLogReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_PushLogReply.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *PushLogReply) XXX_Merge(src proto.Message) {
xxx_messageInfo_PushLogReply.Merge(m, src)
}
func (m *PushLogReply) XXX_Size() int {
return m.Size()
}
func (m *PushLogReply) XXX_DiscardUnknown() {
xxx_messageInfo_PushLogReply.DiscardUnknown(m)
}
var xxx_messageInfo_PushLogReply proto.InternalMessageInfo
// GetRecordsRequest is used to request records from a log address.
type GetRecordsRequest struct {
// body is the message body.
Body *GetRecordsRequest_Body `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"`
}
func (m *GetRecordsRequest) Reset() { *m = GetRecordsRequest{} }
func (m *GetRecordsRequest) String() string { return proto.CompactTextString(m) }
func (*GetRecordsRequest) ProtoMessage() {}
func (*GetRecordsRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_a5b10ce944527a32, []int{5}
}
func (m *GetRecordsRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *GetRecordsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_GetRecordsRequest.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *GetRecordsRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetRecordsRequest.Merge(m, src)
}
func (m *GetRecordsRequest) XXX_Size() int {
return m.Size()
}
func (m *GetRecordsRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetRecordsRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetRecordsRequest proto.InternalMessageInfo
func (m *GetRecordsRequest) GetBody() *GetRecordsRequest_Body {
if m != nil {
return m.Body
}
return nil
}
type GetRecordsRequest_Body struct {
// threadID is the target thread's ID.
ThreadID *ProtoThreadID `protobuf:"bytes,1,opt,name=threadID,proto3,customtype=ProtoThreadID" json:"threadID,omitempty"`
// serviceKey for the thread.
ServiceKey *ProtoKey `protobuf:"bytes,2,opt,name=serviceKey,proto3,customtype=ProtoKey" json:"serviceKey,omitempty"`
// List of requested logs.
Logs []*GetRecordsRequest_Body_LogEntry `protobuf:"bytes,3,rep,name=logs,proto3" json:"logs,omitempty"`
}
func (m *GetRecordsRequest_Body) Reset() { *m = GetRecordsRequest_Body{} }
func (m *GetRecordsRequest_Body) String() string { return proto.CompactTextString(m) }
func (*GetRecordsRequest_Body) ProtoMessage() {}
func (*GetRecordsRequest_Body) Descriptor() ([]byte, []int) {
return fileDescriptor_a5b10ce944527a32, []int{5, 0}
}
func (m *GetRecordsRequest_Body) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *GetRecordsRequest_Body) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_GetRecordsRequest_Body.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *GetRecordsRequest_Body) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetRecordsRequest_Body.Merge(m, src)
}
func (m *GetRecordsRequest_Body) XXX_Size() int {
return m.Size()
}
func (m *GetRecordsRequest_Body) XXX_DiscardUnknown() {
xxx_messageInfo_GetRecordsRequest_Body.DiscardUnknown(m)
}
var xxx_messageInfo_GetRecordsRequest_Body proto.InternalMessageInfo
func (m *GetRecordsRequest_Body) GetLogs() []*GetRecordsRequest_Body_LogEntry {
if m != nil {
return m.Logs
}
return nil
}
// LogEntry represents a single log.
type GetRecordsRequest_Body_LogEntry struct {
// logID of this entry.
LogID *ProtoPeerID `protobuf:"bytes,1,opt,name=logID,proto3,customtype=ProtoPeerID" json:"logID,omitempty"`
// offset tells the recipient at which point to consider records new for the reply.
Offset *ProtoCid `protobuf:"bytes,2,opt,name=offset,proto3,customtype=ProtoCid" json:"offset,omitempty"`
// limit indicates the max number of records to return.
Limit int32 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"`
// counter indicates the position of record
Counter int64 `protobuf:"varint,4,opt,name=counter,proto3" json:"counter,omitempty"`
}
func (m *GetRecordsRequest_Body_LogEntry) Reset() { *m = GetRecordsRequest_Body_LogEntry{} }
func (m *GetRecordsRequest_Body_LogEntry) String() string { return proto.CompactTextString(m) }
func (*GetRecordsRequest_Body_LogEntry) ProtoMessage() {}
func (*GetRecordsRequest_Body_LogEntry) Descriptor() ([]byte, []int) {
return fileDescriptor_a5b10ce944527a32, []int{5, 0, 0}
}
func (m *GetRecordsRequest_Body_LogEntry) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *GetRecordsRequest_Body_LogEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_GetRecordsRequest_Body_LogEntry.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *GetRecordsRequest_Body_LogEntry) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetRecordsRequest_Body_LogEntry.Merge(m, src)
}
func (m *GetRecordsRequest_Body_LogEntry) XXX_Size() int {
return m.Size()
}
func (m *GetRecordsRequest_Body_LogEntry) XXX_DiscardUnknown() {
xxx_messageInfo_GetRecordsRequest_Body_LogEntry.DiscardUnknown(m)
}
var xxx_messageInfo_GetRecordsRequest_Body_LogEntry proto.InternalMessageInfo
func (m *GetRecordsRequest_Body_LogEntry) GetLimit() int32 {
if m != nil {
return m.Limit
}
return 0
}
func (m *GetRecordsRequest_Body_LogEntry) GetCounter() int64 {
if m != nil {
return m.Counter
}
return 0
}
// GetRecordsReply contains records requested with a GetRecordsRequest.
type GetRecordsReply struct {
// records are the result of the request.
Logs []*GetRecordsReply_LogEntry `protobuf:"bytes,1,rep,name=logs,proto3" json:"logs,omitempty"`
}
func (m *GetRecordsReply) Reset() { *m = GetRecordsReply{} }
func (m *GetRecordsReply) String() string { return proto.CompactTextString(m) }
func (*GetRecordsReply) ProtoMessage() {}
func (*GetRecordsReply) Descriptor() ([]byte, []int) {
return fileDescriptor_a5b10ce944527a32, []int{6}
}
func (m *GetRecordsReply) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *GetRecordsReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_GetRecordsReply.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *GetRecordsReply) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetRecordsReply.Merge(m, src)
}
func (m *GetRecordsReply) XXX_Size() int {
return m.Size()
}
func (m *GetRecordsReply) XXX_DiscardUnknown() {
xxx_messageInfo_GetRecordsReply.DiscardUnknown(m)
}
var xxx_messageInfo_GetRecordsReply proto.InternalMessageInfo
func (m *GetRecordsReply) GetLogs() []*GetRecordsReply_LogEntry {
if m != nil {
return m.Logs
}
return nil
}
// LogEntry represents a single log.
type GetRecordsReply_LogEntry struct {
// logID of this entry.
LogID *ProtoPeerID `protobuf:"bytes,1,opt,name=logID,proto3,customtype=ProtoPeerID" json:"logID,omitempty"`
// records returned for this entry.
Records []*Log_Record `protobuf:"bytes,2,rep,name=records,proto3" json:"records,omitempty"`
// log contains new log info that was missing from the request.
Log *Log `protobuf:"bytes,3,opt,name=log,proto3" json:"log,omitempty"`
}
func (m *GetRecordsReply_LogEntry) Reset() { *m = GetRecordsReply_LogEntry{} }
func (m *GetRecordsReply_LogEntry) String() string { return proto.CompactTextString(m) }
func (*GetRecordsReply_LogEntry) ProtoMessage() {}
func (*GetRecordsReply_LogEntry) Descriptor() ([]byte, []int) {
return fileDescriptor_a5b10ce944527a32, []int{6, 0}
}
func (m *GetRecordsReply_LogEntry) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *GetRecordsReply_LogEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_GetRecordsReply_LogEntry.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *GetRecordsReply_LogEntry) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetRecordsReply_LogEntry.Merge(m, src)
}
func (m *GetRecordsReply_LogEntry) XXX_Size() int {
return m.Size()
}
func (m *GetRecordsReply_LogEntry) XXX_DiscardUnknown() {
xxx_messageInfo_GetRecordsReply_LogEntry.DiscardUnknown(m)
}
var xxx_messageInfo_GetRecordsReply_LogEntry proto.InternalMessageInfo
func (m *GetRecordsReply_LogEntry) GetRecords() []*Log_Record {
if m != nil {
return m.Records
}
return nil
}
func (m *GetRecordsReply_LogEntry) GetLog() *Log {
if m != nil {
return m.Log
}
return nil
}
// PushRecordRequest is used to push a log record to a peer.
type PushRecordRequest struct {
// body is the message body.
Body *PushRecordRequest_Body `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"`
// position of the record
Counter int64 `protobuf:"varint,3,opt,name=counter,proto3" json:"counter,omitempty"`
}
func (m *PushRecordRequest) Reset() { *m = PushRecordRequest{} }
func (m *PushRecordRequest) String() string { return proto.CompactTextString(m) }
func (*PushRecordRequest) ProtoMessage() {}
func (*PushRecordRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_a5b10ce944527a32, []int{7}
}
func (m *PushRecordRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *PushRecordRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_PushRecordRequest.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *PushRecordRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_PushRecordRequest.Merge(m, src)
}
func (m *PushRecordRequest) XXX_Size() int {
return m.Size()
}
func (m *PushRecordRequest) XXX_DiscardUnknown() {
xxx_messageInfo_PushRecordRequest.DiscardUnknown(m)
}
var xxx_messageInfo_PushRecordRequest proto.InternalMessageInfo
func (m *PushRecordRequest) GetBody() *PushRecordRequest_Body {
if m != nil {
return m.Body
}
return nil
}
func (m *PushRecordRequest) GetCounter() int64 {
if m != nil {
return m.Counter
}
return 0
}
type PushRecordRequest_Body struct {
// threadID is the target thread's ID.
ThreadID *ProtoThreadID `protobuf:"bytes,1,opt,name=threadID,proto3,customtype=ProtoThreadID" json:"threadID,omitempty"`
// logID is the target log's ID.
LogID *ProtoPeerID `protobuf:"bytes,2,opt,name=logID,proto3,customtype=ProtoPeerID" json:"logID,omitempty"`
// record is the actual record payload.
Record *Log_Record `protobuf:"bytes,3,opt,name=record,proto3" json:"record,omitempty"`
}
func (m *PushRecordRequest_Body) Reset() { *m = PushRecordRequest_Body{} }
func (m *PushRecordRequest_Body) String() string { return proto.CompactTextString(m) }
func (*PushRecordRequest_Body) ProtoMessage() {}
func (*PushRecordRequest_Body) Descriptor() ([]byte, []int) {
return fileDescriptor_a5b10ce944527a32, []int{7, 0}
}
func (m *PushRecordRequest_Body) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *PushRecordRequest_Body) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_PushRecordRequest_Body.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *PushRecordRequest_Body) XXX_Merge(src proto.Message) {
xxx_messageInfo_PushRecordRequest_Body.Merge(m, src)
}
func (m *PushRecordRequest_Body) XXX_Size() int {
return m.Size()
}
func (m *PushRecordRequest_Body) XXX_DiscardUnknown() {
xxx_messageInfo_PushRecordRequest_Body.DiscardUnknown(m)
}
var xxx_messageInfo_PushRecordRequest_Body proto.InternalMessageInfo
func (m *PushRecordRequest_Body) GetRecord() *Log_Record {
if m != nil {
return m.Record
}
return nil
}
// PushRecordReply is the response from a PushRecordRequest.
type PushRecordReply struct {
}
func (m *PushRecordReply) Reset() { *m = PushRecordReply{} }
func (m *PushRecordReply) String() string { return proto.CompactTextString(m) }
func (*PushRecordReply) ProtoMessage() {}
func (*PushRecordReply) Descriptor() ([]byte, []int) {
return fileDescriptor_a5b10ce944527a32, []int{8}
}
func (m *PushRecordReply) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *PushRecordReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_PushRecordReply.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *PushRecordReply) XXX_Merge(src proto.Message) {
xxx_messageInfo_PushRecordReply.Merge(m, src)
}
func (m *PushRecordReply) XXX_Size() int {
return m.Size()
}
func (m *PushRecordReply) XXX_DiscardUnknown() {
xxx_messageInfo_PushRecordReply.DiscardUnknown(m)
}
var xxx_messageInfo_PushRecordReply proto.InternalMessageInfo
// ExchangeEdgesRequest is used to exchange address/heads edges with a peer.
type ExchangeEdgesRequest struct {
// body is the message body.
Body *ExchangeEdgesRequest_Body `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"`
}
func (m *ExchangeEdgesRequest) Reset() { *m = ExchangeEdgesRequest{} }
func (m *ExchangeEdgesRequest) String() string { return proto.CompactTextString(m) }
func (*ExchangeEdgesRequest) ProtoMessage() {}
func (*ExchangeEdgesRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_a5b10ce944527a32, []int{9}
}
func (m *ExchangeEdgesRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *ExchangeEdgesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_ExchangeEdgesRequest.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *ExchangeEdgesRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ExchangeEdgesRequest.Merge(m, src)
}
func (m *ExchangeEdgesRequest) XXX_Size() int {
return m.Size()
}
func (m *ExchangeEdgesRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ExchangeEdgesRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ExchangeEdgesRequest proto.InternalMessageInfo
func (m *ExchangeEdgesRequest) GetBody() *ExchangeEdgesRequest_Body {
if m != nil {
return m.Body
}
return nil
}
type ExchangeEdgesRequest_Body struct {
// threads is a list of requested thread IDs with its local edges.
Threads []*ExchangeEdgesRequest_Body_ThreadEntry `protobuf:"bytes,1,rep,name=threads,proto3" json:"threads,omitempty"`
}
func (m *ExchangeEdgesRequest_Body) Reset() { *m = ExchangeEdgesRequest_Body{} }
func (m *ExchangeEdgesRequest_Body) String() string { return proto.CompactTextString(m) }
func (*ExchangeEdgesRequest_Body) ProtoMessage() {}
func (*ExchangeEdgesRequest_Body) Descriptor() ([]byte, []int) {
return fileDescriptor_a5b10ce944527a32, []int{9, 0}
}
func (m *ExchangeEdgesRequest_Body) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *ExchangeEdgesRequest_Body) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_ExchangeEdgesRequest_Body.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *ExchangeEdgesRequest_Body) XXX_Merge(src proto.Message) {
xxx_messageInfo_ExchangeEdgesRequest_Body.Merge(m, src)
}
func (m *ExchangeEdgesRequest_Body) XXX_Size() int {
return m.Size()
}
func (m *ExchangeEdgesRequest_Body) XXX_DiscardUnknown() {
xxx_messageInfo_ExchangeEdgesRequest_Body.DiscardUnknown(m)
}
var xxx_messageInfo_ExchangeEdgesRequest_Body proto.InternalMessageInfo
func (m *ExchangeEdgesRequest_Body) GetThreads() []*ExchangeEdgesRequest_Body_ThreadEntry {
if m != nil {
return m.Threads
}
return nil
}
type ExchangeEdgesRequest_Body_ThreadEntry struct {
// threadID is the target thread's ID.
ThreadID *ProtoThreadID `protobuf:"bytes,1,opt,name=threadID,proto3,customtype=ProtoThreadID" json:"threadID,omitempty"`
// addressEdge is the current hash of peers addresses stored on a requester.
AddressEdge uint64 `protobuf:"varint,2,opt,name=addressEdge,proto3" json:"addressEdge,omitempty"`
// headsEdge is the current hash of the log's heads stored on a requester.
HeadsEdge uint64 `protobuf:"varint,3,opt,name=headsEdge,proto3" json:"headsEdge,omitempty"`
}
func (m *ExchangeEdgesRequest_Body_ThreadEntry) Reset() { *m = ExchangeEdgesRequest_Body_ThreadEntry{} }
func (m *ExchangeEdgesRequest_Body_ThreadEntry) String() string { return proto.CompactTextString(m) }
func (*ExchangeEdgesRequest_Body_ThreadEntry) ProtoMessage() {}
func (*ExchangeEdgesRequest_Body_ThreadEntry) Descriptor() ([]byte, []int) {
return fileDescriptor_a5b10ce944527a32, []int{9, 0, 0}
}
func (m *ExchangeEdgesRequest_Body_ThreadEntry) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *ExchangeEdgesRequest_Body_ThreadEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_ExchangeEdgesRequest_Body_ThreadEntry.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *ExchangeEdgesRequest_Body_ThreadEntry) XXX_Merge(src proto.Message) {
xxx_messageInfo_ExchangeEdgesRequest_Body_ThreadEntry.Merge(m, src)
}
func (m *ExchangeEdgesRequest_Body_ThreadEntry) XXX_Size() int {
return m.Size()
}
func (m *ExchangeEdgesRequest_Body_ThreadEntry) XXX_DiscardUnknown() {
xxx_messageInfo_ExchangeEdgesRequest_Body_ThreadEntry.DiscardUnknown(m)
}
var xxx_messageInfo_ExchangeEdgesRequest_Body_ThreadEntry proto.InternalMessageInfo
func (m *ExchangeEdgesRequest_Body_ThreadEntry) GetAddressEdge() uint64 {
if m != nil {
return m.AddressEdge
}
return 0
}
func (m *ExchangeEdgesRequest_Body_ThreadEntry) GetHeadsEdge() uint64 {
if m != nil {
return m.HeadsEdge
}
return 0
}
// ExchangeEdgesReply contains edges requested with an ExchangeEdgesRequest.
type ExchangeEdgesReply struct {
// edges contains edge information about requested threads.
Edges []*ExchangeEdgesReply_ThreadEdges `protobuf:"bytes,1,rep,name=edges,proto3" json:"edges,omitempty"`
}
func (m *ExchangeEdgesReply) Reset() { *m = ExchangeEdgesReply{} }
func (m *ExchangeEdgesReply) String() string { return proto.CompactTextString(m) }
func (*ExchangeEdgesReply) ProtoMessage() {}
func (*ExchangeEdgesReply) Descriptor() ([]byte, []int) {
return fileDescriptor_a5b10ce944527a32, []int{10}
}
func (m *ExchangeEdgesReply) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *ExchangeEdgesReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_ExchangeEdgesReply.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *ExchangeEdgesReply) XXX_Merge(src proto.Message) {
xxx_messageInfo_ExchangeEdgesReply.Merge(m, src)
}
func (m *ExchangeEdgesReply) XXX_Size() int {
return m.Size()
}