-
Notifications
You must be signed in to change notification settings - Fork 7
/
message.pb.go
3427 lines (3012 loc) · 113 KB
/
message.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
// Copyright the Hyperledger Fabric contributors. All rights reserved.
//
// SPDX-License-Identifier: Apache-2.0
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.31.0
// protoc (unknown)
// source: gossip/message.proto
package gossip
import (
peer "github.com/hyperledger/fabric-protos-go-apiv2/peer"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type PullMsgType int32
const (
PullMsgType_UNDEFINED PullMsgType = 0
PullMsgType_BLOCK_MSG PullMsgType = 1
PullMsgType_IDENTITY_MSG PullMsgType = 2
)
// Enum value maps for PullMsgType.
var (
PullMsgType_name = map[int32]string{
0: "UNDEFINED",
1: "BLOCK_MSG",
2: "IDENTITY_MSG",
}
PullMsgType_value = map[string]int32{
"UNDEFINED": 0,
"BLOCK_MSG": 1,
"IDENTITY_MSG": 2,
}
)
func (x PullMsgType) Enum() *PullMsgType {
p := new(PullMsgType)
*p = x
return p
}
func (x PullMsgType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (PullMsgType) Descriptor() protoreflect.EnumDescriptor {
return file_gossip_message_proto_enumTypes[0].Descriptor()
}
func (PullMsgType) Type() protoreflect.EnumType {
return &file_gossip_message_proto_enumTypes[0]
}
func (x PullMsgType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use PullMsgType.Descriptor instead.
func (PullMsgType) EnumDescriptor() ([]byte, []int) {
return file_gossip_message_proto_rawDescGZIP(), []int{0}
}
type GossipMessage_Tag int32
const (
GossipMessage_UNDEFINED GossipMessage_Tag = 0
GossipMessage_EMPTY GossipMessage_Tag = 1
GossipMessage_ORG_ONLY GossipMessage_Tag = 2
GossipMessage_CHAN_ONLY GossipMessage_Tag = 3
GossipMessage_CHAN_AND_ORG GossipMessage_Tag = 4
GossipMessage_CHAN_OR_ORG GossipMessage_Tag = 5
)
// Enum value maps for GossipMessage_Tag.
var (
GossipMessage_Tag_name = map[int32]string{
0: "UNDEFINED",
1: "EMPTY",
2: "ORG_ONLY",
3: "CHAN_ONLY",
4: "CHAN_AND_ORG",
5: "CHAN_OR_ORG",
}
GossipMessage_Tag_value = map[string]int32{
"UNDEFINED": 0,
"EMPTY": 1,
"ORG_ONLY": 2,
"CHAN_ONLY": 3,
"CHAN_AND_ORG": 4,
"CHAN_OR_ORG": 5,
}
)
func (x GossipMessage_Tag) Enum() *GossipMessage_Tag {
p := new(GossipMessage_Tag)
*p = x
return p
}
func (x GossipMessage_Tag) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (GossipMessage_Tag) Descriptor() protoreflect.EnumDescriptor {
return file_gossip_message_proto_enumTypes[1].Descriptor()
}
func (GossipMessage_Tag) Type() protoreflect.EnumType {
return &file_gossip_message_proto_enumTypes[1]
}
func (x GossipMessage_Tag) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use GossipMessage_Tag.Descriptor instead.
func (GossipMessage_Tag) EnumDescriptor() ([]byte, []int) {
return file_gossip_message_proto_rawDescGZIP(), []int{3, 0}
}
// Envelope contains a marshalled
// GossipMessage and a signature over it.
// It may also contain a SecretEnvelope
// which is a marshalled Secret
type Envelope struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Payload []byte `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"`
Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
SecretEnvelope *SecretEnvelope `protobuf:"bytes,3,opt,name=secret_envelope,json=secretEnvelope,proto3" json:"secret_envelope,omitempty"`
}
func (x *Envelope) Reset() {
*x = Envelope{}
if protoimpl.UnsafeEnabled {
mi := &file_gossip_message_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Envelope) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Envelope) ProtoMessage() {}
func (x *Envelope) ProtoReflect() protoreflect.Message {
mi := &file_gossip_message_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Envelope.ProtoReflect.Descriptor instead.
func (*Envelope) Descriptor() ([]byte, []int) {
return file_gossip_message_proto_rawDescGZIP(), []int{0}
}
func (x *Envelope) GetPayload() []byte {
if x != nil {
return x.Payload
}
return nil
}
func (x *Envelope) GetSignature() []byte {
if x != nil {
return x.Signature
}
return nil
}
func (x *Envelope) GetSecretEnvelope() *SecretEnvelope {
if x != nil {
return x.SecretEnvelope
}
return nil
}
// SecretEnvelope is a marshalled Secret
// and a signature over it.
// The signature should be validated by the peer
// that signed the Envelope the SecretEnvelope
// came with
type SecretEnvelope struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Payload []byte `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"`
Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
}
func (x *SecretEnvelope) Reset() {
*x = SecretEnvelope{}
if protoimpl.UnsafeEnabled {
mi := &file_gossip_message_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *SecretEnvelope) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SecretEnvelope) ProtoMessage() {}
func (x *SecretEnvelope) ProtoReflect() protoreflect.Message {
mi := &file_gossip_message_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use SecretEnvelope.ProtoReflect.Descriptor instead.
func (*SecretEnvelope) Descriptor() ([]byte, []int) {
return file_gossip_message_proto_rawDescGZIP(), []int{1}
}
func (x *SecretEnvelope) GetPayload() []byte {
if x != nil {
return x.Payload
}
return nil
}
func (x *SecretEnvelope) GetSignature() []byte {
if x != nil {
return x.Signature
}
return nil
}
// Secret is an entity that might be omitted
// from an Envelope when the remote peer that is receiving
// the Envelope shouldn't know the secret's content.
type Secret struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Types that are assignable to Content:
//
// *Secret_InternalEndpoint
Content isSecret_Content `protobuf_oneof:"content"`
}
func (x *Secret) Reset() {
*x = Secret{}
if protoimpl.UnsafeEnabled {
mi := &file_gossip_message_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Secret) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Secret) ProtoMessage() {}
func (x *Secret) ProtoReflect() protoreflect.Message {
mi := &file_gossip_message_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Secret.ProtoReflect.Descriptor instead.
func (*Secret) Descriptor() ([]byte, []int) {
return file_gossip_message_proto_rawDescGZIP(), []int{2}
}
func (m *Secret) GetContent() isSecret_Content {
if m != nil {
return m.Content
}
return nil
}
func (x *Secret) GetInternalEndpoint() string {
if x, ok := x.GetContent().(*Secret_InternalEndpoint); ok {
return x.InternalEndpoint
}
return ""
}
type isSecret_Content interface {
isSecret_Content()
}
type Secret_InternalEndpoint struct {
InternalEndpoint string `protobuf:"bytes,1,opt,name=internalEndpoint,proto3,oneof"`
}
func (*Secret_InternalEndpoint) isSecret_Content() {}
// GossipMessage defines the message sent in a gossip network
type GossipMessage struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// used mainly for testing, but will might be used in the future
// for ensuring message delivery by acking
Nonce uint64 `protobuf:"varint,1,opt,name=nonce,proto3" json:"nonce,omitempty"`
// The channel of the message.
// Some GossipMessages may set this to nil, because
// they are cross-channels but some may not
Channel []byte `protobuf:"bytes,2,opt,name=channel,proto3" json:"channel,omitempty"`
// determines to which peers it is allowed
// to forward the message
Tag GossipMessage_Tag `protobuf:"varint,3,opt,name=tag,proto3,enum=gossip.GossipMessage_Tag" json:"tag,omitempty"`
// Types that are assignable to Content:
//
// *GossipMessage_AliveMsg
// *GossipMessage_MemReq
// *GossipMessage_MemRes
// *GossipMessage_DataMsg
// *GossipMessage_Hello
// *GossipMessage_DataDig
// *GossipMessage_DataReq
// *GossipMessage_DataUpdate
// *GossipMessage_Empty
// *GossipMessage_Conn
// *GossipMessage_StateInfo
// *GossipMessage_StateSnapshot
// *GossipMessage_StateInfoPullReq
// *GossipMessage_StateRequest
// *GossipMessage_StateResponse
// *GossipMessage_LeadershipMsg
// *GossipMessage_PeerIdentity
// *GossipMessage_Ack
// *GossipMessage_PrivateReq
// *GossipMessage_PrivateRes
// *GossipMessage_PrivateData
Content isGossipMessage_Content `protobuf_oneof:"content"`
}
func (x *GossipMessage) Reset() {
*x = GossipMessage{}
if protoimpl.UnsafeEnabled {
mi := &file_gossip_message_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GossipMessage) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GossipMessage) ProtoMessage() {}
func (x *GossipMessage) ProtoReflect() protoreflect.Message {
mi := &file_gossip_message_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GossipMessage.ProtoReflect.Descriptor instead.
func (*GossipMessage) Descriptor() ([]byte, []int) {
return file_gossip_message_proto_rawDescGZIP(), []int{3}
}
func (x *GossipMessage) GetNonce() uint64 {
if x != nil {
return x.Nonce
}
return 0
}
func (x *GossipMessage) GetChannel() []byte {
if x != nil {
return x.Channel
}
return nil
}
func (x *GossipMessage) GetTag() GossipMessage_Tag {
if x != nil {
return x.Tag
}
return GossipMessage_UNDEFINED
}
func (m *GossipMessage) GetContent() isGossipMessage_Content {
if m != nil {
return m.Content
}
return nil
}
func (x *GossipMessage) GetAliveMsg() *AliveMessage {
if x, ok := x.GetContent().(*GossipMessage_AliveMsg); ok {
return x.AliveMsg
}
return nil
}
func (x *GossipMessage) GetMemReq() *MembershipRequest {
if x, ok := x.GetContent().(*GossipMessage_MemReq); ok {
return x.MemReq
}
return nil
}
func (x *GossipMessage) GetMemRes() *MembershipResponse {
if x, ok := x.GetContent().(*GossipMessage_MemRes); ok {
return x.MemRes
}
return nil
}
func (x *GossipMessage) GetDataMsg() *DataMessage {
if x, ok := x.GetContent().(*GossipMessage_DataMsg); ok {
return x.DataMsg
}
return nil
}
func (x *GossipMessage) GetHello() *GossipHello {
if x, ok := x.GetContent().(*GossipMessage_Hello); ok {
return x.Hello
}
return nil
}
func (x *GossipMessage) GetDataDig() *DataDigest {
if x, ok := x.GetContent().(*GossipMessage_DataDig); ok {
return x.DataDig
}
return nil
}
func (x *GossipMessage) GetDataReq() *DataRequest {
if x, ok := x.GetContent().(*GossipMessage_DataReq); ok {
return x.DataReq
}
return nil
}
func (x *GossipMessage) GetDataUpdate() *DataUpdate {
if x, ok := x.GetContent().(*GossipMessage_DataUpdate); ok {
return x.DataUpdate
}
return nil
}
func (x *GossipMessage) GetEmpty() *Empty {
if x, ok := x.GetContent().(*GossipMessage_Empty); ok {
return x.Empty
}
return nil
}
func (x *GossipMessage) GetConn() *ConnEstablish {
if x, ok := x.GetContent().(*GossipMessage_Conn); ok {
return x.Conn
}
return nil
}
func (x *GossipMessage) GetStateInfo() *StateInfo {
if x, ok := x.GetContent().(*GossipMessage_StateInfo); ok {
return x.StateInfo
}
return nil
}
func (x *GossipMessage) GetStateSnapshot() *StateInfoSnapshot {
if x, ok := x.GetContent().(*GossipMessage_StateSnapshot); ok {
return x.StateSnapshot
}
return nil
}
func (x *GossipMessage) GetStateInfoPullReq() *StateInfoPullRequest {
if x, ok := x.GetContent().(*GossipMessage_StateInfoPullReq); ok {
return x.StateInfoPullReq
}
return nil
}
func (x *GossipMessage) GetStateRequest() *RemoteStateRequest {
if x, ok := x.GetContent().(*GossipMessage_StateRequest); ok {
return x.StateRequest
}
return nil
}
func (x *GossipMessage) GetStateResponse() *RemoteStateResponse {
if x, ok := x.GetContent().(*GossipMessage_StateResponse); ok {
return x.StateResponse
}
return nil
}
func (x *GossipMessage) GetLeadershipMsg() *LeadershipMessage {
if x, ok := x.GetContent().(*GossipMessage_LeadershipMsg); ok {
return x.LeadershipMsg
}
return nil
}
func (x *GossipMessage) GetPeerIdentity() *PeerIdentity {
if x, ok := x.GetContent().(*GossipMessage_PeerIdentity); ok {
return x.PeerIdentity
}
return nil
}
func (x *GossipMessage) GetAck() *Acknowledgement {
if x, ok := x.GetContent().(*GossipMessage_Ack); ok {
return x.Ack
}
return nil
}
func (x *GossipMessage) GetPrivateReq() *RemotePvtDataRequest {
if x, ok := x.GetContent().(*GossipMessage_PrivateReq); ok {
return x.PrivateReq
}
return nil
}
func (x *GossipMessage) GetPrivateRes() *RemotePvtDataResponse {
if x, ok := x.GetContent().(*GossipMessage_PrivateRes); ok {
return x.PrivateRes
}
return nil
}
func (x *GossipMessage) GetPrivateData() *PrivateDataMessage {
if x, ok := x.GetContent().(*GossipMessage_PrivateData); ok {
return x.PrivateData
}
return nil
}
type isGossipMessage_Content interface {
isGossipMessage_Content()
}
type GossipMessage_AliveMsg struct {
// Membership
AliveMsg *AliveMessage `protobuf:"bytes,5,opt,name=alive_msg,json=aliveMsg,proto3,oneof"`
}
type GossipMessage_MemReq struct {
MemReq *MembershipRequest `protobuf:"bytes,6,opt,name=mem_req,json=memReq,proto3,oneof"`
}
type GossipMessage_MemRes struct {
MemRes *MembershipResponse `protobuf:"bytes,7,opt,name=mem_res,json=memRes,proto3,oneof"`
}
type GossipMessage_DataMsg struct {
// Contains a ledger block
DataMsg *DataMessage `protobuf:"bytes,8,opt,name=data_msg,json=dataMsg,proto3,oneof"`
}
type GossipMessage_Hello struct {
// Used for push&pull
Hello *GossipHello `protobuf:"bytes,9,opt,name=hello,proto3,oneof"`
}
type GossipMessage_DataDig struct {
DataDig *DataDigest `protobuf:"bytes,10,opt,name=data_dig,json=dataDig,proto3,oneof"`
}
type GossipMessage_DataReq struct {
DataReq *DataRequest `protobuf:"bytes,11,opt,name=data_req,json=dataReq,proto3,oneof"`
}
type GossipMessage_DataUpdate struct {
DataUpdate *DataUpdate `protobuf:"bytes,12,opt,name=data_update,json=dataUpdate,proto3,oneof"`
}
type GossipMessage_Empty struct {
// Empty message, used for pinging
Empty *Empty `protobuf:"bytes,13,opt,name=empty,proto3,oneof"`
}
type GossipMessage_Conn struct {
// ConnEstablish, used for establishing a connection
Conn *ConnEstablish `protobuf:"bytes,14,opt,name=conn,proto3,oneof"`
}
type GossipMessage_StateInfo struct {
// Used for relaying information
// about state
StateInfo *StateInfo `protobuf:"bytes,15,opt,name=state_info,json=stateInfo,proto3,oneof"`
}
type GossipMessage_StateSnapshot struct {
// Used for sending sets of StateInfo messages
StateSnapshot *StateInfoSnapshot `protobuf:"bytes,16,opt,name=state_snapshot,json=stateSnapshot,proto3,oneof"`
}
type GossipMessage_StateInfoPullReq struct {
// Used for asking for StateInfoSnapshots
StateInfoPullReq *StateInfoPullRequest `protobuf:"bytes,17,opt,name=state_info_pull_req,json=stateInfoPullReq,proto3,oneof"`
}
type GossipMessage_StateRequest struct {
// Used to ask from a remote peer a set of blocks
StateRequest *RemoteStateRequest `protobuf:"bytes,18,opt,name=state_request,json=stateRequest,proto3,oneof"`
}
type GossipMessage_StateResponse struct {
// Used to send a set of blocks to a remote peer
StateResponse *RemoteStateResponse `protobuf:"bytes,19,opt,name=state_response,json=stateResponse,proto3,oneof"`
}
type GossipMessage_LeadershipMsg struct {
// Used to indicate intent of peer to become leader
LeadershipMsg *LeadershipMessage `protobuf:"bytes,20,opt,name=leadership_msg,json=leadershipMsg,proto3,oneof"`
}
type GossipMessage_PeerIdentity struct {
// Used to learn of a peer's certificate
PeerIdentity *PeerIdentity `protobuf:"bytes,21,opt,name=peer_identity,json=peerIdentity,proto3,oneof"`
}
type GossipMessage_Ack struct {
Ack *Acknowledgement `protobuf:"bytes,22,opt,name=ack,proto3,oneof"`
}
type GossipMessage_PrivateReq struct {
// Used to request private data
PrivateReq *RemotePvtDataRequest `protobuf:"bytes,23,opt,name=privateReq,proto3,oneof"`
}
type GossipMessage_PrivateRes struct {
// Used to respond to private data requests
PrivateRes *RemotePvtDataResponse `protobuf:"bytes,24,opt,name=privateRes,proto3,oneof"`
}
type GossipMessage_PrivateData struct {
// Encapsulates private data used to distribute
// private rwset after the endorsement
PrivateData *PrivateDataMessage `protobuf:"bytes,25,opt,name=private_data,json=privateData,proto3,oneof"`
}
func (*GossipMessage_AliveMsg) isGossipMessage_Content() {}
func (*GossipMessage_MemReq) isGossipMessage_Content() {}
func (*GossipMessage_MemRes) isGossipMessage_Content() {}
func (*GossipMessage_DataMsg) isGossipMessage_Content() {}
func (*GossipMessage_Hello) isGossipMessage_Content() {}
func (*GossipMessage_DataDig) isGossipMessage_Content() {}
func (*GossipMessage_DataReq) isGossipMessage_Content() {}
func (*GossipMessage_DataUpdate) isGossipMessage_Content() {}
func (*GossipMessage_Empty) isGossipMessage_Content() {}
func (*GossipMessage_Conn) isGossipMessage_Content() {}
func (*GossipMessage_StateInfo) isGossipMessage_Content() {}
func (*GossipMessage_StateSnapshot) isGossipMessage_Content() {}
func (*GossipMessage_StateInfoPullReq) isGossipMessage_Content() {}
func (*GossipMessage_StateRequest) isGossipMessage_Content() {}
func (*GossipMessage_StateResponse) isGossipMessage_Content() {}
func (*GossipMessage_LeadershipMsg) isGossipMessage_Content() {}
func (*GossipMessage_PeerIdentity) isGossipMessage_Content() {}
func (*GossipMessage_Ack) isGossipMessage_Content() {}
func (*GossipMessage_PrivateReq) isGossipMessage_Content() {}
func (*GossipMessage_PrivateRes) isGossipMessage_Content() {}
func (*GossipMessage_PrivateData) isGossipMessage_Content() {}
// StateInfo is used for a peer to relay its state information
// to other peers
type StateInfo struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Timestamp *PeerTime `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
PkiId []byte `protobuf:"bytes,3,opt,name=pki_id,json=pkiId,proto3" json:"pki_id,omitempty"`
// channel_MAC is an authentication code that proves
// that the peer that sent this message knows
// the name of the channel.
Channel_MAC []byte `protobuf:"bytes,4,opt,name=channel_MAC,json=channelMAC,proto3" json:"channel_MAC,omitempty"`
Properties *Properties `protobuf:"bytes,5,opt,name=properties,proto3" json:"properties,omitempty"`
}
func (x *StateInfo) Reset() {
*x = StateInfo{}
if protoimpl.UnsafeEnabled {
mi := &file_gossip_message_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *StateInfo) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*StateInfo) ProtoMessage() {}
func (x *StateInfo) ProtoReflect() protoreflect.Message {
mi := &file_gossip_message_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use StateInfo.ProtoReflect.Descriptor instead.
func (*StateInfo) Descriptor() ([]byte, []int) {
return file_gossip_message_proto_rawDescGZIP(), []int{4}
}
func (x *StateInfo) GetTimestamp() *PeerTime {
if x != nil {
return x.Timestamp
}
return nil
}
func (x *StateInfo) GetPkiId() []byte {
if x != nil {
return x.PkiId
}
return nil
}
func (x *StateInfo) GetChannel_MAC() []byte {
if x != nil {
return x.Channel_MAC
}
return nil
}
func (x *StateInfo) GetProperties() *Properties {
if x != nil {
return x.Properties
}
return nil
}
type Properties struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
LedgerHeight uint64 `protobuf:"varint,1,opt,name=ledger_height,json=ledgerHeight,proto3" json:"ledger_height,omitempty"`
LeftChannel bool `protobuf:"varint,2,opt,name=left_channel,json=leftChannel,proto3" json:"left_channel,omitempty"`
Chaincodes []*Chaincode `protobuf:"bytes,3,rep,name=chaincodes,proto3" json:"chaincodes,omitempty"`
}
func (x *Properties) Reset() {
*x = Properties{}
if protoimpl.UnsafeEnabled {
mi := &file_gossip_message_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Properties) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Properties) ProtoMessage() {}
func (x *Properties) ProtoReflect() protoreflect.Message {
mi := &file_gossip_message_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Properties.ProtoReflect.Descriptor instead.
func (*Properties) Descriptor() ([]byte, []int) {
return file_gossip_message_proto_rawDescGZIP(), []int{5}
}
func (x *Properties) GetLedgerHeight() uint64 {
if x != nil {
return x.LedgerHeight
}
return 0
}
func (x *Properties) GetLeftChannel() bool {
if x != nil {
return x.LeftChannel
}
return false
}
func (x *Properties) GetChaincodes() []*Chaincode {
if x != nil {
return x.Chaincodes
}
return nil
}
// StateInfoSnapshot is an aggregation of StateInfo messages
type StateInfoSnapshot struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Elements []*Envelope `protobuf:"bytes,1,rep,name=elements,proto3" json:"elements,omitempty"`
}
func (x *StateInfoSnapshot) Reset() {
*x = StateInfoSnapshot{}
if protoimpl.UnsafeEnabled {
mi := &file_gossip_message_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *StateInfoSnapshot) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*StateInfoSnapshot) ProtoMessage() {}
func (x *StateInfoSnapshot) ProtoReflect() protoreflect.Message {
mi := &file_gossip_message_proto_msgTypes[6]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use StateInfoSnapshot.ProtoReflect.Descriptor instead.
func (*StateInfoSnapshot) Descriptor() ([]byte, []int) {
return file_gossip_message_proto_rawDescGZIP(), []int{6}
}
func (x *StateInfoSnapshot) GetElements() []*Envelope {
if x != nil {
return x.Elements
}
return nil
}
// StateInfoPullRequest is used to fetch a StateInfoSnapshot
// from a remote peer
type StateInfoPullRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// channel_MAC is an authentication code that proves
// that the peer that sent this message knows
// the name of the channel.
Channel_MAC []byte `protobuf:"bytes,1,opt,name=channel_MAC,json=channelMAC,proto3" json:"channel_MAC,omitempty"`
}
func (x *StateInfoPullRequest) Reset() {
*x = StateInfoPullRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_gossip_message_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *StateInfoPullRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*StateInfoPullRequest) ProtoMessage() {}
func (x *StateInfoPullRequest) ProtoReflect() protoreflect.Message {
mi := &file_gossip_message_proto_msgTypes[7]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use StateInfoPullRequest.ProtoReflect.Descriptor instead.
func (*StateInfoPullRequest) Descriptor() ([]byte, []int) {
return file_gossip_message_proto_rawDescGZIP(), []int{7}
}
func (x *StateInfoPullRequest) GetChannel_MAC() []byte {
if x != nil {
return x.Channel_MAC
}
return nil
}
// ConnEstablish is the message used for the gossip handshake
// Whenever a peer connects to another peer, it handshakes
// with it by sending this message that proves its identity
type ConnEstablish struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
PkiId []byte `protobuf:"bytes,1,opt,name=pki_id,json=pkiId,proto3" json:"pki_id,omitempty"`
Identity []byte `protobuf:"bytes,2,opt,name=identity,proto3" json:"identity,omitempty"`
TlsCertHash []byte `protobuf:"bytes,3,opt,name=tls_cert_hash,json=tlsCertHash,proto3" json:"tls_cert_hash,omitempty"`
Probe bool `protobuf:"varint,4,opt,name=probe,proto3" json:"probe,omitempty"`
}
func (x *ConnEstablish) Reset() {
*x = ConnEstablish{}
if protoimpl.UnsafeEnabled {
mi := &file_gossip_message_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ConnEstablish) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ConnEstablish) ProtoMessage() {}
func (x *ConnEstablish) ProtoReflect() protoreflect.Message {
mi := &file_gossip_message_proto_msgTypes[8]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {