/
dag.pb.go
4134 lines (3971 loc) · 99.8 KB
/
dag.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: dag.proto
package pb
import (
bytes "bytes"
context "context"
fmt "fmt"
io "io"
math "math"
math_bits "math/bits"
reflect "reflect"
strings "strings"
_ "github.com/gogo/protobuf/gogoproto"
proto "github.com/gogo/protobuf/proto"
github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
)
// 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
// DagPutResponse contains the hashes of ipld nodes generated
// by the dag put request
type DagPutResponse struct {
// an array of hashes (cids) of the root ipld nod
Hashes []string `protobuf:"bytes,1,rep,name=hashes,proto3" json:"hashes,omitempty"`
}
func (m *DagPutResponse) Reset() { *m = DagPutResponse{} }
func (*DagPutResponse) ProtoMessage() {}
func (*DagPutResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_228b96b95413374c, []int{0}
}
func (m *DagPutResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *DagPutResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_DagPutResponse.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 *DagPutResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_DagPutResponse.Merge(m, src)
}
func (m *DagPutResponse) XXX_Size() int {
return m.Size()
}
func (m *DagPutResponse) XXX_DiscardUnknown() {
xxx_messageInfo_DagPutResponse.DiscardUnknown(m)
}
var xxx_messageInfo_DagPutResponse proto.InternalMessageInfo
func (m *DagPutResponse) GetHashes() []string {
if m != nil {
return m.Hashes
}
return nil
}
// DagPut allows us to store arbitrary bytes as a custom IPLD object
type DagPutRequest struct {
// data that we will be storing
Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
// the object encoding type (raw, cbor, protobuf, etc...)
ObjectEncoding string `protobuf:"bytes,2,opt,name=objectEncoding,proto3" json:"objectEncoding,omitempty"`
// the serialization format (raw, cbor, protobuf, etc...)
SerializationFormat string `protobuf:"bytes,3,opt,name=serializationFormat,proto3" json:"serializationFormat,omitempty"`
// the hash function to to use (sha2-256, sha3-512, etc...)
HashFunc string `protobuf:"bytes,4,opt,name=hashFunc,proto3" json:"hashFunc,omitempty"`
// the cid version to use (0, 1)
CidVersion int64 `protobuf:"varint,5,opt,name=cidVersion,proto3" json:"cidVersion,omitempty"`
}
func (m *DagPutRequest) Reset() { *m = DagPutRequest{} }
func (*DagPutRequest) ProtoMessage() {}
func (*DagPutRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_228b96b95413374c, []int{1}
}
func (m *DagPutRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *DagPutRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_DagPutRequest.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 *DagPutRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_DagPutRequest.Merge(m, src)
}
func (m *DagPutRequest) XXX_Size() int {
return m.Size()
}
func (m *DagPutRequest) XXX_DiscardUnknown() {
xxx_messageInfo_DagPutRequest.DiscardUnknown(m)
}
var xxx_messageInfo_DagPutRequest proto.InternalMessageInfo
func (m *DagPutRequest) GetData() []byte {
if m != nil {
return m.Data
}
return nil
}
func (m *DagPutRequest) GetObjectEncoding() string {
if m != nil {
return m.ObjectEncoding
}
return ""
}
func (m *DagPutRequest) GetSerializationFormat() string {
if m != nil {
return m.SerializationFormat
}
return ""
}
func (m *DagPutRequest) GetHashFunc() string {
if m != nil {
return m.HashFunc
}
return ""
}
func (m *DagPutRequest) GetCidVersion() int64 {
if m != nil {
return m.CidVersion
}
return 0
}
// DagGetRequest is used to retrieve the raw data
// of an ipld dag node for the specified hash. This can
// then be used by libraries like go-ipld-format to
// decoded into a dag object on the client side using
// merkledag.DecodeProtobuf and passing in the returned bytes
type DagGetRequest struct {
// the hash of the ipld node to get
Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
}
func (m *DagGetRequest) Reset() { *m = DagGetRequest{} }
func (*DagGetRequest) ProtoMessage() {}
func (*DagGetRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_228b96b95413374c, []int{2}
}
func (m *DagGetRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *DagGetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_DagGetRequest.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 *DagGetRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_DagGetRequest.Merge(m, src)
}
func (m *DagGetRequest) XXX_Size() int {
return m.Size()
}
func (m *DagGetRequest) XXX_DiscardUnknown() {
xxx_messageInfo_DagGetRequest.DiscardUnknown(m)
}
var xxx_messageInfo_DagGetRequest proto.InternalMessageInfo
func (m *DagGetRequest) GetHash() string {
if m != nil {
return m.Hash
}
return ""
}
// DagGetResponse is a response to DagGetRequest
// that returns the raw data of the matching ipld node
type DagGetResponse struct {
// the raw data of the ipld node
RawData []byte `protobuf:"bytes,1,opt,name=rawData,proto3" json:"rawData,omitempty"`
}
func (m *DagGetResponse) Reset() { *m = DagGetResponse{} }
func (*DagGetResponse) ProtoMessage() {}
func (*DagGetResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_228b96b95413374c, []int{3}
}
func (m *DagGetResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *DagGetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_DagGetResponse.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 *DagGetResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_DagGetResponse.Merge(m, src)
}
func (m *DagGetResponse) XXX_Size() int {
return m.Size()
}
func (m *DagGetResponse) XXX_DiscardUnknown() {
xxx_messageInfo_DagGetResponse.DiscardUnknown(m)
}
var xxx_messageInfo_DagGetResponse proto.InternalMessageInfo
func (m *DagGetResponse) GetRawData() []byte {
if m != nil {
return m.RawData
}
return nil
}
// NewIPLDNodeRequest is used to create a new ipld node
type NewIPLDNodeRequest struct {
// links are optional hashes to include as links of the node
// the name is used as the key, while the value of the key is used as the hash
Links map[string]string `protobuf:"bytes,1,rep,name=links,proto3" json:"links,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// data to store as part of the data field
Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
// the hash function to to use (sha2-256, sha3-512, etc...)
HashFunc string `protobuf:"bytes,3,opt,name=hashFunc,proto3" json:"hashFunc,omitempty"`
}
func (m *NewIPLDNodeRequest) Reset() { *m = NewIPLDNodeRequest{} }
func (*NewIPLDNodeRequest) ProtoMessage() {}
func (*NewIPLDNodeRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_228b96b95413374c, []int{4}
}
func (m *NewIPLDNodeRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *NewIPLDNodeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_NewIPLDNodeRequest.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 *NewIPLDNodeRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_NewIPLDNodeRequest.Merge(m, src)
}
func (m *NewIPLDNodeRequest) XXX_Size() int {
return m.Size()
}
func (m *NewIPLDNodeRequest) XXX_DiscardUnknown() {
xxx_messageInfo_NewIPLDNodeRequest.DiscardUnknown(m)
}
var xxx_messageInfo_NewIPLDNodeRequest proto.InternalMessageInfo
func (m *NewIPLDNodeRequest) GetLinks() map[string]string {
if m != nil {
return m.Links
}
return nil
}
func (m *NewIPLDNodeRequest) GetData() []byte {
if m != nil {
return m.Data
}
return nil
}
func (m *NewIPLDNodeRequest) GetHashFunc() string {
if m != nil {
return m.HashFunc
}
return ""
}
// AddLinksRequest is used to add links to an existing ipld node
type AddLinksRequest struct {
// links are optional hashes to include as links of the node
// the name is used as the key, while the value of the key is used as the hash
Links map[string]string `protobuf:"bytes,1,rep,name=links,proto3" json:"links,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// the hash of the node we want to add lin skto
Hash string `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"`
// the hash function to to use (sha2-256, sha3-512, etc...)
HashFunc string `protobuf:"bytes,3,opt,name=hashFunc,proto3" json:"hashFunc,omitempty"`
}
func (m *AddLinksRequest) Reset() { *m = AddLinksRequest{} }
func (*AddLinksRequest) ProtoMessage() {}
func (*AddLinksRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_228b96b95413374c, []int{5}
}
func (m *AddLinksRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *AddLinksRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_AddLinksRequest.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 *AddLinksRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_AddLinksRequest.Merge(m, src)
}
func (m *AddLinksRequest) XXX_Size() int {
return m.Size()
}
func (m *AddLinksRequest) XXX_DiscardUnknown() {
xxx_messageInfo_AddLinksRequest.DiscardUnknown(m)
}
var xxx_messageInfo_AddLinksRequest proto.InternalMessageInfo
func (m *AddLinksRequest) GetLinks() map[string]string {
if m != nil {
return m.Links
}
return nil
}
func (m *AddLinksRequest) GetHash() string {
if m != nil {
return m.Hash
}
return ""
}
func (m *AddLinksRequest) GetHashFunc() string {
if m != nil {
return m.HashFunc
}
return ""
}
// GetLinksRequest is used to return all the links associated with a particular hash
type GetLinksRequest struct {
// the hash to request links for
Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
}
func (m *GetLinksRequest) Reset() { *m = GetLinksRequest{} }
func (*GetLinksRequest) ProtoMessage() {}
func (*GetLinksRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_228b96b95413374c, []int{6}
}
func (m *GetLinksRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *GetLinksRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_GetLinksRequest.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 *GetLinksRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetLinksRequest.Merge(m, src)
}
func (m *GetLinksRequest) XXX_Size() int {
return m.Size()
}
func (m *GetLinksRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetLinksRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetLinksRequest proto.InternalMessageInfo
func (m *GetLinksRequest) GetHash() string {
if m != nil {
return m.Hash
}
return ""
}
// GetLinksResponse returns all the links for the
// associated hash that was requested
type GetLinksResponse struct {
// each of the links referenced by the requested hash
Links []*IPLDLink `protobuf:"bytes,1,rep,name=links,proto3" json:"links,omitempty"`
}
func (m *GetLinksResponse) Reset() { *m = GetLinksResponse{} }
func (*GetLinksResponse) ProtoMessage() {}
func (*GetLinksResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_228b96b95413374c, []int{7}
}
func (m *GetLinksResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *GetLinksResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_GetLinksResponse.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 *GetLinksResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetLinksResponse.Merge(m, src)
}
func (m *GetLinksResponse) XXX_Size() int {
return m.Size()
}
func (m *GetLinksResponse) XXX_DiscardUnknown() {
xxx_messageInfo_GetLinksResponse.DiscardUnknown(m)
}
var xxx_messageInfo_GetLinksResponse proto.InternalMessageInfo
func (m *GetLinksResponse) GetLinks() []*IPLDLink {
if m != nil {
return m.Links
}
return nil
}
// An IPFS MerkleDAG Link
type IPLDLink struct {
// multihash of the target object
Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
// utf string name. should be unique per object
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
// cumulative size of target object
Size_ uint64 `protobuf:"varint,3,opt,name=size,proto3" json:"size,omitempty"`
}
func (m *IPLDLink) Reset() { *m = IPLDLink{} }
func (*IPLDLink) ProtoMessage() {}
func (*IPLDLink) Descriptor() ([]byte, []int) {
return fileDescriptor_228b96b95413374c, []int{8}
}
func (m *IPLDLink) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *IPLDLink) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_IPLDLink.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 *IPLDLink) XXX_Merge(src proto.Message) {
xxx_messageInfo_IPLDLink.Merge(m, src)
}
func (m *IPLDLink) XXX_Size() int {
return m.Size()
}
func (m *IPLDLink) XXX_DiscardUnknown() {
xxx_messageInfo_IPLDLink.DiscardUnknown(m)
}
var xxx_messageInfo_IPLDLink proto.InternalMessageInfo
func (m *IPLDLink) GetHash() []byte {
if m != nil {
return m.Hash
}
return nil
}
func (m *IPLDLink) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *IPLDLink) GetSize_() uint64 {
if m != nil {
return m.Size_
}
return 0
}
// An IPFS MerkleDAG Node
type IPLDNode struct {
// refs to other objects
Links []*IPLDLink `protobuf:"bytes,2,rep,name=links,proto3" json:"links,omitempty"`
// opaque user data
Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
}
func (m *IPLDNode) Reset() { *m = IPLDNode{} }
func (*IPLDNode) ProtoMessage() {}
func (*IPLDNode) Descriptor() ([]byte, []int) {
return fileDescriptor_228b96b95413374c, []int{9}
}
func (m *IPLDNode) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *IPLDNode) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_IPLDNode.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 *IPLDNode) XXX_Merge(src proto.Message) {
xxx_messageInfo_IPLDNode.Merge(m, src)
}
func (m *IPLDNode) XXX_Size() int {
return m.Size()
}
func (m *IPLDNode) XXX_DiscardUnknown() {
xxx_messageInfo_IPLDNode.DiscardUnknown(m)
}
var xxx_messageInfo_IPLDNode proto.InternalMessageInfo
func (m *IPLDNode) GetLinks() []*IPLDLink {
if m != nil {
return m.Links
}
return nil
}
func (m *IPLDNode) GetData() []byte {
if m != nil {
return m.Data
}
return nil
}
func init() {
proto.RegisterType((*DagPutResponse)(nil), "pb.DagPutResponse")
proto.RegisterType((*DagPutRequest)(nil), "pb.DagPutRequest")
proto.RegisterType((*DagGetRequest)(nil), "pb.DagGetRequest")
proto.RegisterType((*DagGetResponse)(nil), "pb.DagGetResponse")
proto.RegisterType((*NewIPLDNodeRequest)(nil), "pb.NewIPLDNodeRequest")
proto.RegisterMapType((map[string]string)(nil), "pb.NewIPLDNodeRequest.LinksEntry")
proto.RegisterType((*AddLinksRequest)(nil), "pb.AddLinksRequest")
proto.RegisterMapType((map[string]string)(nil), "pb.AddLinksRequest.LinksEntry")
proto.RegisterType((*GetLinksRequest)(nil), "pb.GetLinksRequest")
proto.RegisterType((*GetLinksResponse)(nil), "pb.GetLinksResponse")
proto.RegisterType((*IPLDLink)(nil), "pb.IPLDLink")
proto.RegisterType((*IPLDNode)(nil), "pb.IPLDNode")
}
func init() { proto.RegisterFile("dag.proto", fileDescriptor_228b96b95413374c) }
var fileDescriptor_228b96b95413374c = []byte{
// 598 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x54, 0xcd, 0x6e, 0xd3, 0x40,
0x10, 0xf6, 0x3a, 0x69, 0x49, 0xa6, 0x21, 0x2d, 0xdb, 0xaa, 0xb2, 0x72, 0x58, 0x05, 0x23, 0x50,
0x84, 0x44, 0x0a, 0xa5, 0xa2, 0x15, 0x3d, 0xb5, 0x4a, 0x13, 0x55, 0xaa, 0xaa, 0xc8, 0x42, 0xdc,
0xd7, 0xf1, 0xe2, 0x98, 0x26, 0xde, 0xe0, 0x1f, 0xaa, 0xf6, 0xc4, 0x23, 0xf0, 0x0a, 0xdc, 0xb8,
0x72, 0x02, 0xde, 0x80, 0x63, 0x8f, 0x3d, 0x36, 0xce, 0x0b, 0x70, 0xe4, 0x88, 0xbc, 0xb6, 0x63,
0x3b, 0x38, 0x47, 0x6e, 0x33, 0xe3, 0xef, 0xdb, 0xfd, 0xbe, 0x99, 0x59, 0x43, 0xd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, 0x43, 0xcd, 0xa3,
0xfe, 0x29, 0x7e, 0x21, 0xa2, 0xbe, 0xef, 0xe1, 0x07, 0x21, 0x3b, 0xf7, 0xf6, 0x1a, 0x38, 0x5b,
0x8a, 0xbc, 0xaa, 0x52, 0x4c, 0xe9, 0xb1, 0x94, 0x92, 0xee, 0xfc, 0x9c, 0x92, 0xd9, 0x70, 0x55,
0xc2, 0x87, 0xb0, 0x96, 0xd9, 0x50, 0xbc, 0x5d, 0xbc, 0xb2, 0x4b, 0xee, 0x3b, 0x84, 0x7a, 0xb2,
0x27, 0x6f, 0xb8, 0xe0, 0x6f, 0x16, 0xec, 0xce, 0x12, 0xf2, 0x3e, 0x54, 0x92, 0x71, 0x45, 0xb4,
0x85, 0x19, 0x37, 0xb6, 0xf2, 0xc5, 0x84, 0x78, 0xbc, 0x77, 0x3b, 0x25, 0xd2, 0xdd, 0x94, 0xa0,
0xdf, 0x53, 0x82, 0xfe, 0x4c, 0x09, 0xfa, 0x14, 0x10, 0xf4, 0x35, 0x20, 0xe8, 0x47, 0x40, 0xd0,
0xaf, 0x80, 0xa0, 0x9b, 0x80, 0xa0, 0xbb, 0x80, 0xa0, 0xcf, 0x33, 0x22, 0xdd, 0xcc, 0x88, 0x74,
0x3b, 0x23, 0x92, 0xbe, 0x2a, 0x7e, 0x78, 0x2f, 0xff, 0x06, 0x00, 0x00, 0xff, 0xff, 0x58, 0x59,
0xcc, 0xd0, 0x30, 0x05, 0x00, 0x00,
}
func (this *DagPutResponse) VerboseEqual(that interface{}) error {
if that == nil {
if this == nil {
return nil
}
return fmt.Errorf("that == nil && this != nil")
}
that1, ok := that.(*DagPutResponse)
if !ok {
that2, ok := that.(DagPutResponse)
if ok {
that1 = &that2
} else {
return fmt.Errorf("that is not of type *DagPutResponse")
}
}
if that1 == nil {
if this == nil {
return nil
}
return fmt.Errorf("that is type *DagPutResponse but is nil && this != nil")
} else if this == nil {
return fmt.Errorf("that is type *DagPutResponse but is not nil && this == nil")
}
if len(this.Hashes) != len(that1.Hashes) {
return fmt.Errorf("Hashes this(%v) Not Equal that(%v)", len(this.Hashes), len(that1.Hashes))
}
for i := range this.Hashes {
if this.Hashes[i] != that1.Hashes[i] {
return fmt.Errorf("Hashes this[%v](%v) Not Equal that[%v](%v)", i, this.Hashes[i], i, that1.Hashes[i])
}
}
return nil
}
func (this *DagPutResponse) Equal(that interface{}) bool {
if that == nil {
return this == nil
}
that1, ok := that.(*DagPutResponse)
if !ok {
that2, ok := that.(DagPutResponse)
if ok {
that1 = &that2
} else {
return false
}
}
if that1 == nil {
return this == nil
} else if this == nil {
return false
}
if len(this.Hashes) != len(that1.Hashes) {
return false
}
for i := range this.Hashes {
if this.Hashes[i] != that1.Hashes[i] {
return false
}
}
return true
}
func (this *DagPutRequest) VerboseEqual(that interface{}) error {
if that == nil {
if this == nil {
return nil
}
return fmt.Errorf("that == nil && this != nil")
}
that1, ok := that.(*DagPutRequest)
if !ok {
that2, ok := that.(DagPutRequest)
if ok {
that1 = &that2
} else {
return fmt.Errorf("that is not of type *DagPutRequest")
}
}
if that1 == nil {
if this == nil {
return nil
}
return fmt.Errorf("that is type *DagPutRequest but is nil && this != nil")
} else if this == nil {
return fmt.Errorf("that is type *DagPutRequest but is not nil && this == nil")
}
if !bytes.Equal(this.Data, that1.Data) {
return fmt.Errorf("Data this(%v) Not Equal that(%v)", this.Data, that1.Data)
}
if this.ObjectEncoding != that1.ObjectEncoding {
return fmt.Errorf("ObjectEncoding this(%v) Not Equal that(%v)", this.ObjectEncoding, that1.ObjectEncoding)
}
if this.SerializationFormat != that1.SerializationFormat {
return fmt.Errorf("SerializationFormat this(%v) Not Equal that(%v)", this.SerializationFormat, that1.SerializationFormat)
}
if this.HashFunc != that1.HashFunc {
return fmt.Errorf("HashFunc this(%v) Not Equal that(%v)", this.HashFunc, that1.HashFunc)
}
if this.CidVersion != that1.CidVersion {
return fmt.Errorf("CidVersion this(%v) Not Equal that(%v)", this.CidVersion, that1.CidVersion)
}
return nil
}
func (this *DagPutRequest) Equal(that interface{}) bool {
if that == nil {
return this == nil
}
that1, ok := that.(*DagPutRequest)
if !ok {
that2, ok := that.(DagPutRequest)
if ok {
that1 = &that2
} else {
return false
}
}
if that1 == nil {
return this == nil
} else if this == nil {
return false
}
if !bytes.Equal(this.Data, that1.Data) {
return false
}
if this.ObjectEncoding != that1.ObjectEncoding {
return false
}
if this.SerializationFormat != that1.SerializationFormat {
return false
}
if this.HashFunc != that1.HashFunc {
return false
}
if this.CidVersion != that1.CidVersion {
return false
}
return true
}
func (this *DagGetRequest) VerboseEqual(that interface{}) error {
if that == nil {
if this == nil {
return nil
}
return fmt.Errorf("that == nil && this != nil")
}
that1, ok := that.(*DagGetRequest)
if !ok {
that2, ok := that.(DagGetRequest)
if ok {
that1 = &that2
} else {
return fmt.Errorf("that is not of type *DagGetRequest")
}
}
if that1 == nil {
if this == nil {
return nil
}
return fmt.Errorf("that is type *DagGetRequest but is nil && this != nil")
} else if this == nil {
return fmt.Errorf("that is type *DagGetRequest but is not nil && this == nil")
}
if this.Hash != that1.Hash {
return fmt.Errorf("Hash this(%v) Not Equal that(%v)", this.Hash, that1.Hash)
}
return nil
}
func (this *DagGetRequest) Equal(that interface{}) bool {
if that == nil {
return this == nil
}
that1, ok := that.(*DagGetRequest)
if !ok {
that2, ok := that.(DagGetRequest)
if ok {
that1 = &that2
} else {
return false
}
}
if that1 == nil {
return this == nil
} else if this == nil {
return false
}
if this.Hash != that1.Hash {
return false
}
return true
}
func (this *DagGetResponse) VerboseEqual(that interface{}) error {
if that == nil {
if this == nil {
return nil
}
return fmt.Errorf("that == nil && this != nil")
}
that1, ok := that.(*DagGetResponse)
if !ok {
that2, ok := that.(DagGetResponse)
if ok {
that1 = &that2
} else {
return fmt.Errorf("that is not of type *DagGetResponse")
}
}
if that1 == nil {
if this == nil {
return nil
}
return fmt.Errorf("that is type *DagGetResponse but is nil && this != nil")
} else if this == nil {
return fmt.Errorf("that is type *DagGetResponse but is not nil && this == nil")
}
if !bytes.Equal(this.RawData, that1.RawData) {
return fmt.Errorf("RawData this(%v) Not Equal that(%v)", this.RawData, that1.RawData)
}
return nil
}
func (this *DagGetResponse) Equal(that interface{}) bool {
if that == nil {
return this == nil
}
that1, ok := that.(*DagGetResponse)
if !ok {
that2, ok := that.(DagGetResponse)
if ok {
that1 = &that2
} else {
return false
}
}
if that1 == nil {
return this == nil
} else if this == nil {
return false
}
if !bytes.Equal(this.RawData, that1.RawData) {
return false
}
return true
}
func (this *NewIPLDNodeRequest) VerboseEqual(that interface{}) error {
if that == nil {
if this == nil {
return nil
}
return fmt.Errorf("that == nil && this != nil")
}
that1, ok := that.(*NewIPLDNodeRequest)
if !ok {
that2, ok := that.(NewIPLDNodeRequest)
if ok {
that1 = &that2
} else {
return fmt.Errorf("that is not of type *NewIPLDNodeRequest")
}
}
if that1 == nil {
if this == nil {
return nil
}
return fmt.Errorf("that is type *NewIPLDNodeRequest but is nil && this != nil")
} else if this == nil {
return fmt.Errorf("that is type *NewIPLDNodeRequest but is not nil && this == nil")
}
if len(this.Links) != len(that1.Links) {
return fmt.Errorf("Links this(%v) Not Equal that(%v)", len(this.Links), len(that1.Links))
}
for i := range this.Links {
if this.Links[i] != that1.Links[i] {
return fmt.Errorf("Links this[%v](%v) Not Equal that[%v](%v)", i, this.Links[i], i, that1.Links[i])
}
}
if !bytes.Equal(this.Data, that1.Data) {
return fmt.Errorf("Data this(%v) Not Equal that(%v)", this.Data, that1.Data)
}
if this.HashFunc != that1.HashFunc {
return fmt.Errorf("HashFunc this(%v) Not Equal that(%v)", this.HashFunc, that1.HashFunc)
}
return nil
}
func (this *NewIPLDNodeRequest) Equal(that interface{}) bool {
if that == nil {
return this == nil
}
that1, ok := that.(*NewIPLDNodeRequest)
if !ok {
that2, ok := that.(NewIPLDNodeRequest)
if ok {
that1 = &that2
} else {
return false
}
}
if that1 == nil {
return this == nil
} else if this == nil {
return false
}
if len(this.Links) != len(that1.Links) {
return false
}
for i := range this.Links {
if this.Links[i] != that1.Links[i] {
return false
}
}
if !bytes.Equal(this.Data, that1.Data) {
return false
}
if this.HashFunc != that1.HashFunc {
return false
}
return true
}
func (this *AddLinksRequest) VerboseEqual(that interface{}) error {
if that == nil {
if this == nil {
return nil
}
return fmt.Errorf("that == nil && this != nil")
}
that1, ok := that.(*AddLinksRequest)
if !ok {
that2, ok := that.(AddLinksRequest)
if ok {
that1 = &that2
} else {
return fmt.Errorf("that is not of type *AddLinksRequest")
}
}
if that1 == nil {
if this == nil {
return nil
}
return fmt.Errorf("that is type *AddLinksRequest but is nil && this != nil")
} else if this == nil {