github.com/ZihuaZhang/fabric-protos-go@v1.0.7/gossip/message.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // source: gossip/message.proto 3 4 package gossip 5 6 import ( 7 context "context" 8 fmt "fmt" 9 proto "github.com/golang/protobuf/proto" 10 peer "github.com/ZihuaZhang/fabric-protos-go/peer" 11 grpc "google.golang.org/grpc" 12 codes "google.golang.org/grpc/codes" 13 status "google.golang.org/grpc/status" 14 math "math" 15 ) 16 17 // Reference imports to suppress errors if they are not otherwise used. 18 var _ = proto.Marshal 19 var _ = fmt.Errorf 20 var _ = math.Inf 21 22 // This is a compile-time assertion to ensure that this generated file 23 // is compatible with the proto package it is being compiled against. 24 // A compilation error at this line likely means your copy of the 25 // proto package needs to be updated. 26 const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package 27 28 type PullMsgType int32 29 30 const ( 31 PullMsgType_UNDEFINED PullMsgType = 0 32 PullMsgType_BLOCK_MSG PullMsgType = 1 33 PullMsgType_IDENTITY_MSG PullMsgType = 2 34 ) 35 36 var PullMsgType_name = map[int32]string{ 37 0: "UNDEFINED", 38 1: "BLOCK_MSG", 39 2: "IDENTITY_MSG", 40 } 41 42 var PullMsgType_value = map[string]int32{ 43 "UNDEFINED": 0, 44 "BLOCK_MSG": 1, 45 "IDENTITY_MSG": 2, 46 } 47 48 func (x PullMsgType) String() string { 49 return proto.EnumName(PullMsgType_name, int32(x)) 50 } 51 52 func (PullMsgType) EnumDescriptor() ([]byte, []int) { 53 return fileDescriptor_24518b295636120e, []int{0} 54 } 55 56 type GossipMessage_Tag int32 57 58 const ( 59 GossipMessage_UNDEFINED GossipMessage_Tag = 0 60 GossipMessage_EMPTY GossipMessage_Tag = 1 61 GossipMessage_ORG_ONLY GossipMessage_Tag = 2 62 GossipMessage_CHAN_ONLY GossipMessage_Tag = 3 63 GossipMessage_CHAN_AND_ORG GossipMessage_Tag = 4 64 GossipMessage_CHAN_OR_ORG GossipMessage_Tag = 5 65 ) 66 67 var GossipMessage_Tag_name = map[int32]string{ 68 0: "UNDEFINED", 69 1: "EMPTY", 70 2: "ORG_ONLY", 71 3: "CHAN_ONLY", 72 4: "CHAN_AND_ORG", 73 5: "CHAN_OR_ORG", 74 } 75 76 var GossipMessage_Tag_value = map[string]int32{ 77 "UNDEFINED": 0, 78 "EMPTY": 1, 79 "ORG_ONLY": 2, 80 "CHAN_ONLY": 3, 81 "CHAN_AND_ORG": 4, 82 "CHAN_OR_ORG": 5, 83 } 84 85 func (x GossipMessage_Tag) String() string { 86 return proto.EnumName(GossipMessage_Tag_name, int32(x)) 87 } 88 89 func (GossipMessage_Tag) EnumDescriptor() ([]byte, []int) { 90 return fileDescriptor_24518b295636120e, []int{3, 0} 91 } 92 93 // Envelope contains a marshalled 94 // GossipMessage and a signature over it. 95 // It may also contain a SecretEnvelope 96 // which is a marshalled Secret 97 type Envelope struct { 98 Payload []byte `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` 99 Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` 100 SecretEnvelope *SecretEnvelope `protobuf:"bytes,3,opt,name=secret_envelope,json=secretEnvelope,proto3" json:"secret_envelope,omitempty"` 101 XXX_NoUnkeyedLiteral struct{} `json:"-"` 102 XXX_unrecognized []byte `json:"-"` 103 XXX_sizecache int32 `json:"-"` 104 } 105 106 func (m *Envelope) Reset() { *m = Envelope{} } 107 func (m *Envelope) String() string { return proto.CompactTextString(m) } 108 func (*Envelope) ProtoMessage() {} 109 func (*Envelope) Descriptor() ([]byte, []int) { 110 return fileDescriptor_24518b295636120e, []int{0} 111 } 112 113 func (m *Envelope) XXX_Unmarshal(b []byte) error { 114 return xxx_messageInfo_Envelope.Unmarshal(m, b) 115 } 116 func (m *Envelope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 117 return xxx_messageInfo_Envelope.Marshal(b, m, deterministic) 118 } 119 func (m *Envelope) XXX_Merge(src proto.Message) { 120 xxx_messageInfo_Envelope.Merge(m, src) 121 } 122 func (m *Envelope) XXX_Size() int { 123 return xxx_messageInfo_Envelope.Size(m) 124 } 125 func (m *Envelope) XXX_DiscardUnknown() { 126 xxx_messageInfo_Envelope.DiscardUnknown(m) 127 } 128 129 var xxx_messageInfo_Envelope proto.InternalMessageInfo 130 131 func (m *Envelope) GetPayload() []byte { 132 if m != nil { 133 return m.Payload 134 } 135 return nil 136 } 137 138 func (m *Envelope) GetSignature() []byte { 139 if m != nil { 140 return m.Signature 141 } 142 return nil 143 } 144 145 func (m *Envelope) GetSecretEnvelope() *SecretEnvelope { 146 if m != nil { 147 return m.SecretEnvelope 148 } 149 return nil 150 } 151 152 // SecretEnvelope is a marshalled Secret 153 // and a signature over it. 154 // The signature should be validated by the peer 155 // that signed the Envelope the SecretEnvelope 156 // came with 157 type SecretEnvelope struct { 158 Payload []byte `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` 159 Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` 160 XXX_NoUnkeyedLiteral struct{} `json:"-"` 161 XXX_unrecognized []byte `json:"-"` 162 XXX_sizecache int32 `json:"-"` 163 } 164 165 func (m *SecretEnvelope) Reset() { *m = SecretEnvelope{} } 166 func (m *SecretEnvelope) String() string { return proto.CompactTextString(m) } 167 func (*SecretEnvelope) ProtoMessage() {} 168 func (*SecretEnvelope) Descriptor() ([]byte, []int) { 169 return fileDescriptor_24518b295636120e, []int{1} 170 } 171 172 func (m *SecretEnvelope) XXX_Unmarshal(b []byte) error { 173 return xxx_messageInfo_SecretEnvelope.Unmarshal(m, b) 174 } 175 func (m *SecretEnvelope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 176 return xxx_messageInfo_SecretEnvelope.Marshal(b, m, deterministic) 177 } 178 func (m *SecretEnvelope) XXX_Merge(src proto.Message) { 179 xxx_messageInfo_SecretEnvelope.Merge(m, src) 180 } 181 func (m *SecretEnvelope) XXX_Size() int { 182 return xxx_messageInfo_SecretEnvelope.Size(m) 183 } 184 func (m *SecretEnvelope) XXX_DiscardUnknown() { 185 xxx_messageInfo_SecretEnvelope.DiscardUnknown(m) 186 } 187 188 var xxx_messageInfo_SecretEnvelope proto.InternalMessageInfo 189 190 func (m *SecretEnvelope) GetPayload() []byte { 191 if m != nil { 192 return m.Payload 193 } 194 return nil 195 } 196 197 func (m *SecretEnvelope) GetSignature() []byte { 198 if m != nil { 199 return m.Signature 200 } 201 return nil 202 } 203 204 // Secret is an entity that might be omitted 205 // from an Envelope when the remote peer that is receiving 206 // the Envelope shouldn't know the secret's content. 207 type Secret struct { 208 // Types that are valid to be assigned to Content: 209 // 210 // *Secret_InternalEndpoint 211 Content isSecret_Content `protobuf_oneof:"content"` 212 XXX_NoUnkeyedLiteral struct{} `json:"-"` 213 XXX_unrecognized []byte `json:"-"` 214 XXX_sizecache int32 `json:"-"` 215 } 216 217 func (m *Secret) Reset() { *m = Secret{} } 218 func (m *Secret) String() string { return proto.CompactTextString(m) } 219 func (*Secret) ProtoMessage() {} 220 func (*Secret) Descriptor() ([]byte, []int) { 221 return fileDescriptor_24518b295636120e, []int{2} 222 } 223 224 func (m *Secret) XXX_Unmarshal(b []byte) error { 225 return xxx_messageInfo_Secret.Unmarshal(m, b) 226 } 227 func (m *Secret) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 228 return xxx_messageInfo_Secret.Marshal(b, m, deterministic) 229 } 230 func (m *Secret) XXX_Merge(src proto.Message) { 231 xxx_messageInfo_Secret.Merge(m, src) 232 } 233 func (m *Secret) XXX_Size() int { 234 return xxx_messageInfo_Secret.Size(m) 235 } 236 func (m *Secret) XXX_DiscardUnknown() { 237 xxx_messageInfo_Secret.DiscardUnknown(m) 238 } 239 240 var xxx_messageInfo_Secret proto.InternalMessageInfo 241 242 type isSecret_Content interface { 243 isSecret_Content() 244 } 245 246 type Secret_InternalEndpoint struct { 247 InternalEndpoint string `protobuf:"bytes,1,opt,name=internalEndpoint,proto3,oneof"` 248 } 249 250 func (*Secret_InternalEndpoint) isSecret_Content() {} 251 252 func (m *Secret) GetContent() isSecret_Content { 253 if m != nil { 254 return m.Content 255 } 256 return nil 257 } 258 259 func (m *Secret) GetInternalEndpoint() string { 260 if x, ok := m.GetContent().(*Secret_InternalEndpoint); ok { 261 return x.InternalEndpoint 262 } 263 return "" 264 } 265 266 // XXX_OneofWrappers is for the internal use of the proto package. 267 func (*Secret) XXX_OneofWrappers() []interface{} { 268 return []interface{}{ 269 (*Secret_InternalEndpoint)(nil), 270 } 271 } 272 273 // GossipMessage defines the message sent in a gossip network 274 type GossipMessage struct { 275 // used mainly for testing, but will might be used in the future 276 // for ensuring message delivery by acking 277 Nonce uint64 `protobuf:"varint,1,opt,name=nonce,proto3" json:"nonce,omitempty"` 278 // The channel of the message. 279 // Some GossipMessages may set this to nil, because 280 // they are cross-channels but some may not 281 Channel []byte `protobuf:"bytes,2,opt,name=channel,proto3" json:"channel,omitempty"` 282 // determines to which peers it is allowed 283 // to forward the message 284 Tag GossipMessage_Tag `protobuf:"varint,3,opt,name=tag,proto3,enum=gossip.GossipMessage_Tag" json:"tag,omitempty"` 285 // Types that are valid to be assigned to Content: 286 // 287 // *GossipMessage_AliveMsg 288 // *GossipMessage_MemReq 289 // *GossipMessage_MemRes 290 // *GossipMessage_DataMsg 291 // *GossipMessage_Hello 292 // *GossipMessage_DataDig 293 // *GossipMessage_DataReq 294 // *GossipMessage_DataUpdate 295 // *GossipMessage_Empty 296 // *GossipMessage_Conn 297 // *GossipMessage_StateInfo 298 // *GossipMessage_StateSnapshot 299 // *GossipMessage_StateInfoPullReq 300 // *GossipMessage_StateRequest 301 // *GossipMessage_StateResponse 302 // *GossipMessage_LeadershipMsg 303 // *GossipMessage_PeerIdentity 304 // *GossipMessage_Ack 305 // *GossipMessage_PrivateReq 306 // *GossipMessage_PrivateRes 307 // *GossipMessage_PrivateData 308 Content isGossipMessage_Content `protobuf_oneof:"content"` 309 XXX_NoUnkeyedLiteral struct{} `json:"-"` 310 XXX_unrecognized []byte `json:"-"` 311 XXX_sizecache int32 `json:"-"` 312 } 313 314 func (m *GossipMessage) Reset() { *m = GossipMessage{} } 315 func (m *GossipMessage) String() string { return proto.CompactTextString(m) } 316 func (*GossipMessage) ProtoMessage() {} 317 func (*GossipMessage) Descriptor() ([]byte, []int) { 318 return fileDescriptor_24518b295636120e, []int{3} 319 } 320 321 func (m *GossipMessage) XXX_Unmarshal(b []byte) error { 322 return xxx_messageInfo_GossipMessage.Unmarshal(m, b) 323 } 324 func (m *GossipMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 325 return xxx_messageInfo_GossipMessage.Marshal(b, m, deterministic) 326 } 327 func (m *GossipMessage) XXX_Merge(src proto.Message) { 328 xxx_messageInfo_GossipMessage.Merge(m, src) 329 } 330 func (m *GossipMessage) XXX_Size() int { 331 return xxx_messageInfo_GossipMessage.Size(m) 332 } 333 func (m *GossipMessage) XXX_DiscardUnknown() { 334 xxx_messageInfo_GossipMessage.DiscardUnknown(m) 335 } 336 337 var xxx_messageInfo_GossipMessage proto.InternalMessageInfo 338 339 func (m *GossipMessage) GetNonce() uint64 { 340 if m != nil { 341 return m.Nonce 342 } 343 return 0 344 } 345 346 func (m *GossipMessage) GetChannel() []byte { 347 if m != nil { 348 return m.Channel 349 } 350 return nil 351 } 352 353 func (m *GossipMessage) GetTag() GossipMessage_Tag { 354 if m != nil { 355 return m.Tag 356 } 357 return GossipMessage_UNDEFINED 358 } 359 360 type isGossipMessage_Content interface { 361 isGossipMessage_Content() 362 } 363 364 type GossipMessage_AliveMsg struct { 365 AliveMsg *AliveMessage `protobuf:"bytes,5,opt,name=alive_msg,json=aliveMsg,proto3,oneof"` 366 } 367 368 type GossipMessage_MemReq struct { 369 MemReq *MembershipRequest `protobuf:"bytes,6,opt,name=mem_req,json=memReq,proto3,oneof"` 370 } 371 372 type GossipMessage_MemRes struct { 373 MemRes *MembershipResponse `protobuf:"bytes,7,opt,name=mem_res,json=memRes,proto3,oneof"` 374 } 375 376 type GossipMessage_DataMsg struct { 377 DataMsg *DataMessage `protobuf:"bytes,8,opt,name=data_msg,json=dataMsg,proto3,oneof"` 378 } 379 380 type GossipMessage_Hello struct { 381 Hello *GossipHello `protobuf:"bytes,9,opt,name=hello,proto3,oneof"` 382 } 383 384 type GossipMessage_DataDig struct { 385 DataDig *DataDigest `protobuf:"bytes,10,opt,name=data_dig,json=dataDig,proto3,oneof"` 386 } 387 388 type GossipMessage_DataReq struct { 389 DataReq *DataRequest `protobuf:"bytes,11,opt,name=data_req,json=dataReq,proto3,oneof"` 390 } 391 392 type GossipMessage_DataUpdate struct { 393 DataUpdate *DataUpdate `protobuf:"bytes,12,opt,name=data_update,json=dataUpdate,proto3,oneof"` 394 } 395 396 type GossipMessage_Empty struct { 397 Empty *Empty `protobuf:"bytes,13,opt,name=empty,proto3,oneof"` 398 } 399 400 type GossipMessage_Conn struct { 401 Conn *ConnEstablish `protobuf:"bytes,14,opt,name=conn,proto3,oneof"` 402 } 403 404 type GossipMessage_StateInfo struct { 405 StateInfo *StateInfo `protobuf:"bytes,15,opt,name=state_info,json=stateInfo,proto3,oneof"` 406 } 407 408 type GossipMessage_StateSnapshot struct { 409 StateSnapshot *StateInfoSnapshot `protobuf:"bytes,16,opt,name=state_snapshot,json=stateSnapshot,proto3,oneof"` 410 } 411 412 type GossipMessage_StateInfoPullReq struct { 413 StateInfoPullReq *StateInfoPullRequest `protobuf:"bytes,17,opt,name=state_info_pull_req,json=stateInfoPullReq,proto3,oneof"` 414 } 415 416 type GossipMessage_StateRequest struct { 417 StateRequest *RemoteStateRequest `protobuf:"bytes,18,opt,name=state_request,json=stateRequest,proto3,oneof"` 418 } 419 420 type GossipMessage_StateResponse struct { 421 StateResponse *RemoteStateResponse `protobuf:"bytes,19,opt,name=state_response,json=stateResponse,proto3,oneof"` 422 } 423 424 type GossipMessage_LeadershipMsg struct { 425 LeadershipMsg *LeadershipMessage `protobuf:"bytes,20,opt,name=leadership_msg,json=leadershipMsg,proto3,oneof"` 426 } 427 428 type GossipMessage_PeerIdentity struct { 429 PeerIdentity *PeerIdentity `protobuf:"bytes,21,opt,name=peer_identity,json=peerIdentity,proto3,oneof"` 430 } 431 432 type GossipMessage_Ack struct { 433 Ack *Acknowledgement `protobuf:"bytes,22,opt,name=ack,proto3,oneof"` 434 } 435 436 type GossipMessage_PrivateReq struct { 437 PrivateReq *RemotePvtDataRequest `protobuf:"bytes,23,opt,name=privateReq,proto3,oneof"` 438 } 439 440 type GossipMessage_PrivateRes struct { 441 PrivateRes *RemotePvtDataResponse `protobuf:"bytes,24,opt,name=privateRes,proto3,oneof"` 442 } 443 444 type GossipMessage_PrivateData struct { 445 PrivateData *PrivateDataMessage `protobuf:"bytes,25,opt,name=private_data,json=privateData,proto3,oneof"` 446 } 447 448 func (*GossipMessage_AliveMsg) isGossipMessage_Content() {} 449 450 func (*GossipMessage_MemReq) isGossipMessage_Content() {} 451 452 func (*GossipMessage_MemRes) isGossipMessage_Content() {} 453 454 func (*GossipMessage_DataMsg) isGossipMessage_Content() {} 455 456 func (*GossipMessage_Hello) isGossipMessage_Content() {} 457 458 func (*GossipMessage_DataDig) isGossipMessage_Content() {} 459 460 func (*GossipMessage_DataReq) isGossipMessage_Content() {} 461 462 func (*GossipMessage_DataUpdate) isGossipMessage_Content() {} 463 464 func (*GossipMessage_Empty) isGossipMessage_Content() {} 465 466 func (*GossipMessage_Conn) isGossipMessage_Content() {} 467 468 func (*GossipMessage_StateInfo) isGossipMessage_Content() {} 469 470 func (*GossipMessage_StateSnapshot) isGossipMessage_Content() {} 471 472 func (*GossipMessage_StateInfoPullReq) isGossipMessage_Content() {} 473 474 func (*GossipMessage_StateRequest) isGossipMessage_Content() {} 475 476 func (*GossipMessage_StateResponse) isGossipMessage_Content() {} 477 478 func (*GossipMessage_LeadershipMsg) isGossipMessage_Content() {} 479 480 func (*GossipMessage_PeerIdentity) isGossipMessage_Content() {} 481 482 func (*GossipMessage_Ack) isGossipMessage_Content() {} 483 484 func (*GossipMessage_PrivateReq) isGossipMessage_Content() {} 485 486 func (*GossipMessage_PrivateRes) isGossipMessage_Content() {} 487 488 func (*GossipMessage_PrivateData) isGossipMessage_Content() {} 489 490 func (m *GossipMessage) GetContent() isGossipMessage_Content { 491 if m != nil { 492 return m.Content 493 } 494 return nil 495 } 496 497 func (m *GossipMessage) GetAliveMsg() *AliveMessage { 498 if x, ok := m.GetContent().(*GossipMessage_AliveMsg); ok { 499 return x.AliveMsg 500 } 501 return nil 502 } 503 504 func (m *GossipMessage) GetMemReq() *MembershipRequest { 505 if x, ok := m.GetContent().(*GossipMessage_MemReq); ok { 506 return x.MemReq 507 } 508 return nil 509 } 510 511 func (m *GossipMessage) GetMemRes() *MembershipResponse { 512 if x, ok := m.GetContent().(*GossipMessage_MemRes); ok { 513 return x.MemRes 514 } 515 return nil 516 } 517 518 func (m *GossipMessage) GetDataMsg() *DataMessage { 519 if x, ok := m.GetContent().(*GossipMessage_DataMsg); ok { 520 return x.DataMsg 521 } 522 return nil 523 } 524 525 func (m *GossipMessage) GetHello() *GossipHello { 526 if x, ok := m.GetContent().(*GossipMessage_Hello); ok { 527 return x.Hello 528 } 529 return nil 530 } 531 532 func (m *GossipMessage) GetDataDig() *DataDigest { 533 if x, ok := m.GetContent().(*GossipMessage_DataDig); ok { 534 return x.DataDig 535 } 536 return nil 537 } 538 539 func (m *GossipMessage) GetDataReq() *DataRequest { 540 if x, ok := m.GetContent().(*GossipMessage_DataReq); ok { 541 return x.DataReq 542 } 543 return nil 544 } 545 546 func (m *GossipMessage) GetDataUpdate() *DataUpdate { 547 if x, ok := m.GetContent().(*GossipMessage_DataUpdate); ok { 548 return x.DataUpdate 549 } 550 return nil 551 } 552 553 func (m *GossipMessage) GetEmpty() *Empty { 554 if x, ok := m.GetContent().(*GossipMessage_Empty); ok { 555 return x.Empty 556 } 557 return nil 558 } 559 560 func (m *GossipMessage) GetConn() *ConnEstablish { 561 if x, ok := m.GetContent().(*GossipMessage_Conn); ok { 562 return x.Conn 563 } 564 return nil 565 } 566 567 func (m *GossipMessage) GetStateInfo() *StateInfo { 568 if x, ok := m.GetContent().(*GossipMessage_StateInfo); ok { 569 return x.StateInfo 570 } 571 return nil 572 } 573 574 func (m *GossipMessage) GetStateSnapshot() *StateInfoSnapshot { 575 if x, ok := m.GetContent().(*GossipMessage_StateSnapshot); ok { 576 return x.StateSnapshot 577 } 578 return nil 579 } 580 581 func (m *GossipMessage) GetStateInfoPullReq() *StateInfoPullRequest { 582 if x, ok := m.GetContent().(*GossipMessage_StateInfoPullReq); ok { 583 return x.StateInfoPullReq 584 } 585 return nil 586 } 587 588 func (m *GossipMessage) GetStateRequest() *RemoteStateRequest { 589 if x, ok := m.GetContent().(*GossipMessage_StateRequest); ok { 590 return x.StateRequest 591 } 592 return nil 593 } 594 595 func (m *GossipMessage) GetStateResponse() *RemoteStateResponse { 596 if x, ok := m.GetContent().(*GossipMessage_StateResponse); ok { 597 return x.StateResponse 598 } 599 return nil 600 } 601 602 func (m *GossipMessage) GetLeadershipMsg() *LeadershipMessage { 603 if x, ok := m.GetContent().(*GossipMessage_LeadershipMsg); ok { 604 return x.LeadershipMsg 605 } 606 return nil 607 } 608 609 func (m *GossipMessage) GetPeerIdentity() *PeerIdentity { 610 if x, ok := m.GetContent().(*GossipMessage_PeerIdentity); ok { 611 return x.PeerIdentity 612 } 613 return nil 614 } 615 616 func (m *GossipMessage) GetAck() *Acknowledgement { 617 if x, ok := m.GetContent().(*GossipMessage_Ack); ok { 618 return x.Ack 619 } 620 return nil 621 } 622 623 func (m *GossipMessage) GetPrivateReq() *RemotePvtDataRequest { 624 if x, ok := m.GetContent().(*GossipMessage_PrivateReq); ok { 625 return x.PrivateReq 626 } 627 return nil 628 } 629 630 func (m *GossipMessage) GetPrivateRes() *RemotePvtDataResponse { 631 if x, ok := m.GetContent().(*GossipMessage_PrivateRes); ok { 632 return x.PrivateRes 633 } 634 return nil 635 } 636 637 func (m *GossipMessage) GetPrivateData() *PrivateDataMessage { 638 if x, ok := m.GetContent().(*GossipMessage_PrivateData); ok { 639 return x.PrivateData 640 } 641 return nil 642 } 643 644 // XXX_OneofWrappers is for the internal use of the proto package. 645 func (*GossipMessage) XXX_OneofWrappers() []interface{} { 646 return []interface{}{ 647 (*GossipMessage_AliveMsg)(nil), 648 (*GossipMessage_MemReq)(nil), 649 (*GossipMessage_MemRes)(nil), 650 (*GossipMessage_DataMsg)(nil), 651 (*GossipMessage_Hello)(nil), 652 (*GossipMessage_DataDig)(nil), 653 (*GossipMessage_DataReq)(nil), 654 (*GossipMessage_DataUpdate)(nil), 655 (*GossipMessage_Empty)(nil), 656 (*GossipMessage_Conn)(nil), 657 (*GossipMessage_StateInfo)(nil), 658 (*GossipMessage_StateSnapshot)(nil), 659 (*GossipMessage_StateInfoPullReq)(nil), 660 (*GossipMessage_StateRequest)(nil), 661 (*GossipMessage_StateResponse)(nil), 662 (*GossipMessage_LeadershipMsg)(nil), 663 (*GossipMessage_PeerIdentity)(nil), 664 (*GossipMessage_Ack)(nil), 665 (*GossipMessage_PrivateReq)(nil), 666 (*GossipMessage_PrivateRes)(nil), 667 (*GossipMessage_PrivateData)(nil), 668 } 669 } 670 671 // StateInfo is used for a peer to relay its state information 672 // to other peers 673 type StateInfo struct { 674 Timestamp *PeerTime `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` 675 PkiId []byte `protobuf:"bytes,3,opt,name=pki_id,json=pkiId,proto3" json:"pki_id,omitempty"` 676 // channel_MAC is an authentication code that proves 677 // that the peer that sent this message knows 678 // the name of the channel. 679 Channel_MAC []byte `protobuf:"bytes,4,opt,name=channel_MAC,json=channelMAC,proto3" json:"channel_MAC,omitempty"` 680 Properties *Properties `protobuf:"bytes,5,opt,name=properties,proto3" json:"properties,omitempty"` 681 XXX_NoUnkeyedLiteral struct{} `json:"-"` 682 XXX_unrecognized []byte `json:"-"` 683 XXX_sizecache int32 `json:"-"` 684 } 685 686 func (m *StateInfo) Reset() { *m = StateInfo{} } 687 func (m *StateInfo) String() string { return proto.CompactTextString(m) } 688 func (*StateInfo) ProtoMessage() {} 689 func (*StateInfo) Descriptor() ([]byte, []int) { 690 return fileDescriptor_24518b295636120e, []int{4} 691 } 692 693 func (m *StateInfo) XXX_Unmarshal(b []byte) error { 694 return xxx_messageInfo_StateInfo.Unmarshal(m, b) 695 } 696 func (m *StateInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 697 return xxx_messageInfo_StateInfo.Marshal(b, m, deterministic) 698 } 699 func (m *StateInfo) XXX_Merge(src proto.Message) { 700 xxx_messageInfo_StateInfo.Merge(m, src) 701 } 702 func (m *StateInfo) XXX_Size() int { 703 return xxx_messageInfo_StateInfo.Size(m) 704 } 705 func (m *StateInfo) XXX_DiscardUnknown() { 706 xxx_messageInfo_StateInfo.DiscardUnknown(m) 707 } 708 709 var xxx_messageInfo_StateInfo proto.InternalMessageInfo 710 711 func (m *StateInfo) GetTimestamp() *PeerTime { 712 if m != nil { 713 return m.Timestamp 714 } 715 return nil 716 } 717 718 func (m *StateInfo) GetPkiId() []byte { 719 if m != nil { 720 return m.PkiId 721 } 722 return nil 723 } 724 725 func (m *StateInfo) GetChannel_MAC() []byte { 726 if m != nil { 727 return m.Channel_MAC 728 } 729 return nil 730 } 731 732 func (m *StateInfo) GetProperties() *Properties { 733 if m != nil { 734 return m.Properties 735 } 736 return nil 737 } 738 739 type Properties struct { 740 LedgerHeight uint64 `protobuf:"varint,1,opt,name=ledger_height,json=ledgerHeight,proto3" json:"ledger_height,omitempty"` 741 LeftChannel bool `protobuf:"varint,2,opt,name=left_channel,json=leftChannel,proto3" json:"left_channel,omitempty"` 742 Chaincodes []*Chaincode `protobuf:"bytes,3,rep,name=chaincodes,proto3" json:"chaincodes,omitempty"` 743 XXX_NoUnkeyedLiteral struct{} `json:"-"` 744 XXX_unrecognized []byte `json:"-"` 745 XXX_sizecache int32 `json:"-"` 746 } 747 748 func (m *Properties) Reset() { *m = Properties{} } 749 func (m *Properties) String() string { return proto.CompactTextString(m) } 750 func (*Properties) ProtoMessage() {} 751 func (*Properties) Descriptor() ([]byte, []int) { 752 return fileDescriptor_24518b295636120e, []int{5} 753 } 754 755 func (m *Properties) XXX_Unmarshal(b []byte) error { 756 return xxx_messageInfo_Properties.Unmarshal(m, b) 757 } 758 func (m *Properties) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 759 return xxx_messageInfo_Properties.Marshal(b, m, deterministic) 760 } 761 func (m *Properties) XXX_Merge(src proto.Message) { 762 xxx_messageInfo_Properties.Merge(m, src) 763 } 764 func (m *Properties) XXX_Size() int { 765 return xxx_messageInfo_Properties.Size(m) 766 } 767 func (m *Properties) XXX_DiscardUnknown() { 768 xxx_messageInfo_Properties.DiscardUnknown(m) 769 } 770 771 var xxx_messageInfo_Properties proto.InternalMessageInfo 772 773 func (m *Properties) GetLedgerHeight() uint64 { 774 if m != nil { 775 return m.LedgerHeight 776 } 777 return 0 778 } 779 780 func (m *Properties) GetLeftChannel() bool { 781 if m != nil { 782 return m.LeftChannel 783 } 784 return false 785 } 786 787 func (m *Properties) GetChaincodes() []*Chaincode { 788 if m != nil { 789 return m.Chaincodes 790 } 791 return nil 792 } 793 794 // StateInfoSnapshot is an aggregation of StateInfo messages 795 type StateInfoSnapshot struct { 796 Elements []*Envelope `protobuf:"bytes,1,rep,name=elements,proto3" json:"elements,omitempty"` 797 XXX_NoUnkeyedLiteral struct{} `json:"-"` 798 XXX_unrecognized []byte `json:"-"` 799 XXX_sizecache int32 `json:"-"` 800 } 801 802 func (m *StateInfoSnapshot) Reset() { *m = StateInfoSnapshot{} } 803 func (m *StateInfoSnapshot) String() string { return proto.CompactTextString(m) } 804 func (*StateInfoSnapshot) ProtoMessage() {} 805 func (*StateInfoSnapshot) Descriptor() ([]byte, []int) { 806 return fileDescriptor_24518b295636120e, []int{6} 807 } 808 809 func (m *StateInfoSnapshot) XXX_Unmarshal(b []byte) error { 810 return xxx_messageInfo_StateInfoSnapshot.Unmarshal(m, b) 811 } 812 func (m *StateInfoSnapshot) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 813 return xxx_messageInfo_StateInfoSnapshot.Marshal(b, m, deterministic) 814 } 815 func (m *StateInfoSnapshot) XXX_Merge(src proto.Message) { 816 xxx_messageInfo_StateInfoSnapshot.Merge(m, src) 817 } 818 func (m *StateInfoSnapshot) XXX_Size() int { 819 return xxx_messageInfo_StateInfoSnapshot.Size(m) 820 } 821 func (m *StateInfoSnapshot) XXX_DiscardUnknown() { 822 xxx_messageInfo_StateInfoSnapshot.DiscardUnknown(m) 823 } 824 825 var xxx_messageInfo_StateInfoSnapshot proto.InternalMessageInfo 826 827 func (m *StateInfoSnapshot) GetElements() []*Envelope { 828 if m != nil { 829 return m.Elements 830 } 831 return nil 832 } 833 834 // StateInfoPullRequest is used to fetch a StateInfoSnapshot 835 // from a remote peer 836 type StateInfoPullRequest struct { 837 // channel_MAC is an authentication code that proves 838 // that the peer that sent this message knows 839 // the name of the channel. 840 Channel_MAC []byte `protobuf:"bytes,1,opt,name=channel_MAC,json=channelMAC,proto3" json:"channel_MAC,omitempty"` 841 XXX_NoUnkeyedLiteral struct{} `json:"-"` 842 XXX_unrecognized []byte `json:"-"` 843 XXX_sizecache int32 `json:"-"` 844 } 845 846 func (m *StateInfoPullRequest) Reset() { *m = StateInfoPullRequest{} } 847 func (m *StateInfoPullRequest) String() string { return proto.CompactTextString(m) } 848 func (*StateInfoPullRequest) ProtoMessage() {} 849 func (*StateInfoPullRequest) Descriptor() ([]byte, []int) { 850 return fileDescriptor_24518b295636120e, []int{7} 851 } 852 853 func (m *StateInfoPullRequest) XXX_Unmarshal(b []byte) error { 854 return xxx_messageInfo_StateInfoPullRequest.Unmarshal(m, b) 855 } 856 func (m *StateInfoPullRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 857 return xxx_messageInfo_StateInfoPullRequest.Marshal(b, m, deterministic) 858 } 859 func (m *StateInfoPullRequest) XXX_Merge(src proto.Message) { 860 xxx_messageInfo_StateInfoPullRequest.Merge(m, src) 861 } 862 func (m *StateInfoPullRequest) XXX_Size() int { 863 return xxx_messageInfo_StateInfoPullRequest.Size(m) 864 } 865 func (m *StateInfoPullRequest) XXX_DiscardUnknown() { 866 xxx_messageInfo_StateInfoPullRequest.DiscardUnknown(m) 867 } 868 869 var xxx_messageInfo_StateInfoPullRequest proto.InternalMessageInfo 870 871 func (m *StateInfoPullRequest) GetChannel_MAC() []byte { 872 if m != nil { 873 return m.Channel_MAC 874 } 875 return nil 876 } 877 878 // ConnEstablish is the message used for the gossip handshake 879 // Whenever a peer connects to another peer, it handshakes 880 // with it by sending this message that proves its identity 881 type ConnEstablish struct { 882 PkiId []byte `protobuf:"bytes,1,opt,name=pki_id,json=pkiId,proto3" json:"pki_id,omitempty"` 883 Identity []byte `protobuf:"bytes,2,opt,name=identity,proto3" json:"identity,omitempty"` 884 TlsCertHash []byte `protobuf:"bytes,3,opt,name=tls_cert_hash,json=tlsCertHash,proto3" json:"tls_cert_hash,omitempty"` 885 Probe bool `protobuf:"varint,4,opt,name=probe,proto3" json:"probe,omitempty"` 886 XXX_NoUnkeyedLiteral struct{} `json:"-"` 887 XXX_unrecognized []byte `json:"-"` 888 XXX_sizecache int32 `json:"-"` 889 } 890 891 func (m *ConnEstablish) Reset() { *m = ConnEstablish{} } 892 func (m *ConnEstablish) String() string { return proto.CompactTextString(m) } 893 func (*ConnEstablish) ProtoMessage() {} 894 func (*ConnEstablish) Descriptor() ([]byte, []int) { 895 return fileDescriptor_24518b295636120e, []int{8} 896 } 897 898 func (m *ConnEstablish) XXX_Unmarshal(b []byte) error { 899 return xxx_messageInfo_ConnEstablish.Unmarshal(m, b) 900 } 901 func (m *ConnEstablish) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 902 return xxx_messageInfo_ConnEstablish.Marshal(b, m, deterministic) 903 } 904 func (m *ConnEstablish) XXX_Merge(src proto.Message) { 905 xxx_messageInfo_ConnEstablish.Merge(m, src) 906 } 907 func (m *ConnEstablish) XXX_Size() int { 908 return xxx_messageInfo_ConnEstablish.Size(m) 909 } 910 func (m *ConnEstablish) XXX_DiscardUnknown() { 911 xxx_messageInfo_ConnEstablish.DiscardUnknown(m) 912 } 913 914 var xxx_messageInfo_ConnEstablish proto.InternalMessageInfo 915 916 func (m *ConnEstablish) GetPkiId() []byte { 917 if m != nil { 918 return m.PkiId 919 } 920 return nil 921 } 922 923 func (m *ConnEstablish) GetIdentity() []byte { 924 if m != nil { 925 return m.Identity 926 } 927 return nil 928 } 929 930 func (m *ConnEstablish) GetTlsCertHash() []byte { 931 if m != nil { 932 return m.TlsCertHash 933 } 934 return nil 935 } 936 937 func (m *ConnEstablish) GetProbe() bool { 938 if m != nil { 939 return m.Probe 940 } 941 return false 942 } 943 944 // PeerIdentity defines the identity of the peer 945 // Used to make other peers learn of the identity 946 // of a certain peer 947 type PeerIdentity struct { 948 PkiId []byte `protobuf:"bytes,1,opt,name=pki_id,json=pkiId,proto3" json:"pki_id,omitempty"` 949 Cert []byte `protobuf:"bytes,2,opt,name=cert,proto3" json:"cert,omitempty"` 950 Metadata []byte `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"` 951 XXX_NoUnkeyedLiteral struct{} `json:"-"` 952 XXX_unrecognized []byte `json:"-"` 953 XXX_sizecache int32 `json:"-"` 954 } 955 956 func (m *PeerIdentity) Reset() { *m = PeerIdentity{} } 957 func (m *PeerIdentity) String() string { return proto.CompactTextString(m) } 958 func (*PeerIdentity) ProtoMessage() {} 959 func (*PeerIdentity) Descriptor() ([]byte, []int) { 960 return fileDescriptor_24518b295636120e, []int{9} 961 } 962 963 func (m *PeerIdentity) XXX_Unmarshal(b []byte) error { 964 return xxx_messageInfo_PeerIdentity.Unmarshal(m, b) 965 } 966 func (m *PeerIdentity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 967 return xxx_messageInfo_PeerIdentity.Marshal(b, m, deterministic) 968 } 969 func (m *PeerIdentity) XXX_Merge(src proto.Message) { 970 xxx_messageInfo_PeerIdentity.Merge(m, src) 971 } 972 func (m *PeerIdentity) XXX_Size() int { 973 return xxx_messageInfo_PeerIdentity.Size(m) 974 } 975 func (m *PeerIdentity) XXX_DiscardUnknown() { 976 xxx_messageInfo_PeerIdentity.DiscardUnknown(m) 977 } 978 979 var xxx_messageInfo_PeerIdentity proto.InternalMessageInfo 980 981 func (m *PeerIdentity) GetPkiId() []byte { 982 if m != nil { 983 return m.PkiId 984 } 985 return nil 986 } 987 988 func (m *PeerIdentity) GetCert() []byte { 989 if m != nil { 990 return m.Cert 991 } 992 return nil 993 } 994 995 func (m *PeerIdentity) GetMetadata() []byte { 996 if m != nil { 997 return m.Metadata 998 } 999 return nil 1000 } 1001 1002 // DataRequest is a message used for a peer to request 1003 // certain data blocks from a remote peer 1004 type DataRequest struct { 1005 Nonce uint64 `protobuf:"varint,1,opt,name=nonce,proto3" json:"nonce,omitempty"` 1006 Digests [][]byte `protobuf:"bytes,2,rep,name=digests,proto3" json:"digests,omitempty"` 1007 MsgType PullMsgType `protobuf:"varint,3,opt,name=msg_type,json=msgType,proto3,enum=gossip.PullMsgType" json:"msg_type,omitempty"` 1008 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1009 XXX_unrecognized []byte `json:"-"` 1010 XXX_sizecache int32 `json:"-"` 1011 } 1012 1013 func (m *DataRequest) Reset() { *m = DataRequest{} } 1014 func (m *DataRequest) String() string { return proto.CompactTextString(m) } 1015 func (*DataRequest) ProtoMessage() {} 1016 func (*DataRequest) Descriptor() ([]byte, []int) { 1017 return fileDescriptor_24518b295636120e, []int{10} 1018 } 1019 1020 func (m *DataRequest) XXX_Unmarshal(b []byte) error { 1021 return xxx_messageInfo_DataRequest.Unmarshal(m, b) 1022 } 1023 func (m *DataRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1024 return xxx_messageInfo_DataRequest.Marshal(b, m, deterministic) 1025 } 1026 func (m *DataRequest) XXX_Merge(src proto.Message) { 1027 xxx_messageInfo_DataRequest.Merge(m, src) 1028 } 1029 func (m *DataRequest) XXX_Size() int { 1030 return xxx_messageInfo_DataRequest.Size(m) 1031 } 1032 func (m *DataRequest) XXX_DiscardUnknown() { 1033 xxx_messageInfo_DataRequest.DiscardUnknown(m) 1034 } 1035 1036 var xxx_messageInfo_DataRequest proto.InternalMessageInfo 1037 1038 func (m *DataRequest) GetNonce() uint64 { 1039 if m != nil { 1040 return m.Nonce 1041 } 1042 return 0 1043 } 1044 1045 func (m *DataRequest) GetDigests() [][]byte { 1046 if m != nil { 1047 return m.Digests 1048 } 1049 return nil 1050 } 1051 1052 func (m *DataRequest) GetMsgType() PullMsgType { 1053 if m != nil { 1054 return m.MsgType 1055 } 1056 return PullMsgType_UNDEFINED 1057 } 1058 1059 // GossipHello is the message that is used for the peer to initiate 1060 // a pull round with another peer 1061 type GossipHello struct { 1062 Nonce uint64 `protobuf:"varint,1,opt,name=nonce,proto3" json:"nonce,omitempty"` 1063 Metadata []byte `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` 1064 MsgType PullMsgType `protobuf:"varint,3,opt,name=msg_type,json=msgType,proto3,enum=gossip.PullMsgType" json:"msg_type,omitempty"` 1065 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1066 XXX_unrecognized []byte `json:"-"` 1067 XXX_sizecache int32 `json:"-"` 1068 } 1069 1070 func (m *GossipHello) Reset() { *m = GossipHello{} } 1071 func (m *GossipHello) String() string { return proto.CompactTextString(m) } 1072 func (*GossipHello) ProtoMessage() {} 1073 func (*GossipHello) Descriptor() ([]byte, []int) { 1074 return fileDescriptor_24518b295636120e, []int{11} 1075 } 1076 1077 func (m *GossipHello) XXX_Unmarshal(b []byte) error { 1078 return xxx_messageInfo_GossipHello.Unmarshal(m, b) 1079 } 1080 func (m *GossipHello) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1081 return xxx_messageInfo_GossipHello.Marshal(b, m, deterministic) 1082 } 1083 func (m *GossipHello) XXX_Merge(src proto.Message) { 1084 xxx_messageInfo_GossipHello.Merge(m, src) 1085 } 1086 func (m *GossipHello) XXX_Size() int { 1087 return xxx_messageInfo_GossipHello.Size(m) 1088 } 1089 func (m *GossipHello) XXX_DiscardUnknown() { 1090 xxx_messageInfo_GossipHello.DiscardUnknown(m) 1091 } 1092 1093 var xxx_messageInfo_GossipHello proto.InternalMessageInfo 1094 1095 func (m *GossipHello) GetNonce() uint64 { 1096 if m != nil { 1097 return m.Nonce 1098 } 1099 return 0 1100 } 1101 1102 func (m *GossipHello) GetMetadata() []byte { 1103 if m != nil { 1104 return m.Metadata 1105 } 1106 return nil 1107 } 1108 1109 func (m *GossipHello) GetMsgType() PullMsgType { 1110 if m != nil { 1111 return m.MsgType 1112 } 1113 return PullMsgType_UNDEFINED 1114 } 1115 1116 // DataUpdate is the final message in the pull phase 1117 // sent from the receiver to the initiator 1118 type DataUpdate struct { 1119 Nonce uint64 `protobuf:"varint,1,opt,name=nonce,proto3" json:"nonce,omitempty"` 1120 Data []*Envelope `protobuf:"bytes,2,rep,name=data,proto3" json:"data,omitempty"` 1121 MsgType PullMsgType `protobuf:"varint,3,opt,name=msg_type,json=msgType,proto3,enum=gossip.PullMsgType" json:"msg_type,omitempty"` 1122 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1123 XXX_unrecognized []byte `json:"-"` 1124 XXX_sizecache int32 `json:"-"` 1125 } 1126 1127 func (m *DataUpdate) Reset() { *m = DataUpdate{} } 1128 func (m *DataUpdate) String() string { return proto.CompactTextString(m) } 1129 func (*DataUpdate) ProtoMessage() {} 1130 func (*DataUpdate) Descriptor() ([]byte, []int) { 1131 return fileDescriptor_24518b295636120e, []int{12} 1132 } 1133 1134 func (m *DataUpdate) XXX_Unmarshal(b []byte) error { 1135 return xxx_messageInfo_DataUpdate.Unmarshal(m, b) 1136 } 1137 func (m *DataUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1138 return xxx_messageInfo_DataUpdate.Marshal(b, m, deterministic) 1139 } 1140 func (m *DataUpdate) XXX_Merge(src proto.Message) { 1141 xxx_messageInfo_DataUpdate.Merge(m, src) 1142 } 1143 func (m *DataUpdate) XXX_Size() int { 1144 return xxx_messageInfo_DataUpdate.Size(m) 1145 } 1146 func (m *DataUpdate) XXX_DiscardUnknown() { 1147 xxx_messageInfo_DataUpdate.DiscardUnknown(m) 1148 } 1149 1150 var xxx_messageInfo_DataUpdate proto.InternalMessageInfo 1151 1152 func (m *DataUpdate) GetNonce() uint64 { 1153 if m != nil { 1154 return m.Nonce 1155 } 1156 return 0 1157 } 1158 1159 func (m *DataUpdate) GetData() []*Envelope { 1160 if m != nil { 1161 return m.Data 1162 } 1163 return nil 1164 } 1165 1166 func (m *DataUpdate) GetMsgType() PullMsgType { 1167 if m != nil { 1168 return m.MsgType 1169 } 1170 return PullMsgType_UNDEFINED 1171 } 1172 1173 // DataDigest is the message sent from the receiver peer 1174 // to the initator peer and contains the data items it has 1175 type DataDigest struct { 1176 Nonce uint64 `protobuf:"varint,1,opt,name=nonce,proto3" json:"nonce,omitempty"` 1177 Digests [][]byte `protobuf:"bytes,2,rep,name=digests,proto3" json:"digests,omitempty"` 1178 MsgType PullMsgType `protobuf:"varint,3,opt,name=msg_type,json=msgType,proto3,enum=gossip.PullMsgType" json:"msg_type,omitempty"` 1179 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1180 XXX_unrecognized []byte `json:"-"` 1181 XXX_sizecache int32 `json:"-"` 1182 } 1183 1184 func (m *DataDigest) Reset() { *m = DataDigest{} } 1185 func (m *DataDigest) String() string { return proto.CompactTextString(m) } 1186 func (*DataDigest) ProtoMessage() {} 1187 func (*DataDigest) Descriptor() ([]byte, []int) { 1188 return fileDescriptor_24518b295636120e, []int{13} 1189 } 1190 1191 func (m *DataDigest) XXX_Unmarshal(b []byte) error { 1192 return xxx_messageInfo_DataDigest.Unmarshal(m, b) 1193 } 1194 func (m *DataDigest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1195 return xxx_messageInfo_DataDigest.Marshal(b, m, deterministic) 1196 } 1197 func (m *DataDigest) XXX_Merge(src proto.Message) { 1198 xxx_messageInfo_DataDigest.Merge(m, src) 1199 } 1200 func (m *DataDigest) XXX_Size() int { 1201 return xxx_messageInfo_DataDigest.Size(m) 1202 } 1203 func (m *DataDigest) XXX_DiscardUnknown() { 1204 xxx_messageInfo_DataDigest.DiscardUnknown(m) 1205 } 1206 1207 var xxx_messageInfo_DataDigest proto.InternalMessageInfo 1208 1209 func (m *DataDigest) GetNonce() uint64 { 1210 if m != nil { 1211 return m.Nonce 1212 } 1213 return 0 1214 } 1215 1216 func (m *DataDigest) GetDigests() [][]byte { 1217 if m != nil { 1218 return m.Digests 1219 } 1220 return nil 1221 } 1222 1223 func (m *DataDigest) GetMsgType() PullMsgType { 1224 if m != nil { 1225 return m.MsgType 1226 } 1227 return PullMsgType_UNDEFINED 1228 } 1229 1230 // DataMessage is the message that contains a block 1231 type DataMessage struct { 1232 Payload *Payload `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` 1233 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1234 XXX_unrecognized []byte `json:"-"` 1235 XXX_sizecache int32 `json:"-"` 1236 } 1237 1238 func (m *DataMessage) Reset() { *m = DataMessage{} } 1239 func (m *DataMessage) String() string { return proto.CompactTextString(m) } 1240 func (*DataMessage) ProtoMessage() {} 1241 func (*DataMessage) Descriptor() ([]byte, []int) { 1242 return fileDescriptor_24518b295636120e, []int{14} 1243 } 1244 1245 func (m *DataMessage) XXX_Unmarshal(b []byte) error { 1246 return xxx_messageInfo_DataMessage.Unmarshal(m, b) 1247 } 1248 func (m *DataMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1249 return xxx_messageInfo_DataMessage.Marshal(b, m, deterministic) 1250 } 1251 func (m *DataMessage) XXX_Merge(src proto.Message) { 1252 xxx_messageInfo_DataMessage.Merge(m, src) 1253 } 1254 func (m *DataMessage) XXX_Size() int { 1255 return xxx_messageInfo_DataMessage.Size(m) 1256 } 1257 func (m *DataMessage) XXX_DiscardUnknown() { 1258 xxx_messageInfo_DataMessage.DiscardUnknown(m) 1259 } 1260 1261 var xxx_messageInfo_DataMessage proto.InternalMessageInfo 1262 1263 func (m *DataMessage) GetPayload() *Payload { 1264 if m != nil { 1265 return m.Payload 1266 } 1267 return nil 1268 } 1269 1270 // PrivateDataMessage message which includes private 1271 // data information to distributed once transaction 1272 // has been endorsed 1273 type PrivateDataMessage struct { 1274 Payload *PrivatePayload `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` 1275 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1276 XXX_unrecognized []byte `json:"-"` 1277 XXX_sizecache int32 `json:"-"` 1278 } 1279 1280 func (m *PrivateDataMessage) Reset() { *m = PrivateDataMessage{} } 1281 func (m *PrivateDataMessage) String() string { return proto.CompactTextString(m) } 1282 func (*PrivateDataMessage) ProtoMessage() {} 1283 func (*PrivateDataMessage) Descriptor() ([]byte, []int) { 1284 return fileDescriptor_24518b295636120e, []int{15} 1285 } 1286 1287 func (m *PrivateDataMessage) XXX_Unmarshal(b []byte) error { 1288 return xxx_messageInfo_PrivateDataMessage.Unmarshal(m, b) 1289 } 1290 func (m *PrivateDataMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1291 return xxx_messageInfo_PrivateDataMessage.Marshal(b, m, deterministic) 1292 } 1293 func (m *PrivateDataMessage) XXX_Merge(src proto.Message) { 1294 xxx_messageInfo_PrivateDataMessage.Merge(m, src) 1295 } 1296 func (m *PrivateDataMessage) XXX_Size() int { 1297 return xxx_messageInfo_PrivateDataMessage.Size(m) 1298 } 1299 func (m *PrivateDataMessage) XXX_DiscardUnknown() { 1300 xxx_messageInfo_PrivateDataMessage.DiscardUnknown(m) 1301 } 1302 1303 var xxx_messageInfo_PrivateDataMessage proto.InternalMessageInfo 1304 1305 func (m *PrivateDataMessage) GetPayload() *PrivatePayload { 1306 if m != nil { 1307 return m.Payload 1308 } 1309 return nil 1310 } 1311 1312 // Payload contains a block 1313 type Payload struct { 1314 SeqNum uint64 `protobuf:"varint,1,opt,name=seq_num,json=seqNum,proto3" json:"seq_num,omitempty"` 1315 Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` 1316 PrivateData [][]byte `protobuf:"bytes,3,rep,name=private_data,json=privateData,proto3" json:"private_data,omitempty"` 1317 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1318 XXX_unrecognized []byte `json:"-"` 1319 XXX_sizecache int32 `json:"-"` 1320 } 1321 1322 func (m *Payload) Reset() { *m = Payload{} } 1323 func (m *Payload) String() string { return proto.CompactTextString(m) } 1324 func (*Payload) ProtoMessage() {} 1325 func (*Payload) Descriptor() ([]byte, []int) { 1326 return fileDescriptor_24518b295636120e, []int{16} 1327 } 1328 1329 func (m *Payload) XXX_Unmarshal(b []byte) error { 1330 return xxx_messageInfo_Payload.Unmarshal(m, b) 1331 } 1332 func (m *Payload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1333 return xxx_messageInfo_Payload.Marshal(b, m, deterministic) 1334 } 1335 func (m *Payload) XXX_Merge(src proto.Message) { 1336 xxx_messageInfo_Payload.Merge(m, src) 1337 } 1338 func (m *Payload) XXX_Size() int { 1339 return xxx_messageInfo_Payload.Size(m) 1340 } 1341 func (m *Payload) XXX_DiscardUnknown() { 1342 xxx_messageInfo_Payload.DiscardUnknown(m) 1343 } 1344 1345 var xxx_messageInfo_Payload proto.InternalMessageInfo 1346 1347 func (m *Payload) GetSeqNum() uint64 { 1348 if m != nil { 1349 return m.SeqNum 1350 } 1351 return 0 1352 } 1353 1354 func (m *Payload) GetData() []byte { 1355 if m != nil { 1356 return m.Data 1357 } 1358 return nil 1359 } 1360 1361 func (m *Payload) GetPrivateData() [][]byte { 1362 if m != nil { 1363 return m.PrivateData 1364 } 1365 return nil 1366 } 1367 1368 // PrivatePayload payload to encapsulate private 1369 // data with collection name to enable routing 1370 // based on collection partitioning 1371 type PrivatePayload struct { 1372 CollectionName string `protobuf:"bytes,1,opt,name=collection_name,json=collectionName,proto3" json:"collection_name,omitempty"` 1373 Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` 1374 TxId string `protobuf:"bytes,3,opt,name=tx_id,json=txId,proto3" json:"tx_id,omitempty"` 1375 PrivateRwset []byte `protobuf:"bytes,4,opt,name=private_rwset,json=privateRwset,proto3" json:"private_rwset,omitempty"` 1376 PrivateSimHeight uint64 `protobuf:"varint,5,opt,name=private_sim_height,json=privateSimHeight,proto3" json:"private_sim_height,omitempty"` 1377 CollectionConfigs *peer.CollectionConfigPackage `protobuf:"bytes,6,opt,name=collection_configs,json=collectionConfigs,proto3" json:"collection_configs,omitempty"` 1378 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1379 XXX_unrecognized []byte `json:"-"` 1380 XXX_sizecache int32 `json:"-"` 1381 } 1382 1383 func (m *PrivatePayload) Reset() { *m = PrivatePayload{} } 1384 func (m *PrivatePayload) String() string { return proto.CompactTextString(m) } 1385 func (*PrivatePayload) ProtoMessage() {} 1386 func (*PrivatePayload) Descriptor() ([]byte, []int) { 1387 return fileDescriptor_24518b295636120e, []int{17} 1388 } 1389 1390 func (m *PrivatePayload) XXX_Unmarshal(b []byte) error { 1391 return xxx_messageInfo_PrivatePayload.Unmarshal(m, b) 1392 } 1393 func (m *PrivatePayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1394 return xxx_messageInfo_PrivatePayload.Marshal(b, m, deterministic) 1395 } 1396 func (m *PrivatePayload) XXX_Merge(src proto.Message) { 1397 xxx_messageInfo_PrivatePayload.Merge(m, src) 1398 } 1399 func (m *PrivatePayload) XXX_Size() int { 1400 return xxx_messageInfo_PrivatePayload.Size(m) 1401 } 1402 func (m *PrivatePayload) XXX_DiscardUnknown() { 1403 xxx_messageInfo_PrivatePayload.DiscardUnknown(m) 1404 } 1405 1406 var xxx_messageInfo_PrivatePayload proto.InternalMessageInfo 1407 1408 func (m *PrivatePayload) GetCollectionName() string { 1409 if m != nil { 1410 return m.CollectionName 1411 } 1412 return "" 1413 } 1414 1415 func (m *PrivatePayload) GetNamespace() string { 1416 if m != nil { 1417 return m.Namespace 1418 } 1419 return "" 1420 } 1421 1422 func (m *PrivatePayload) GetTxId() string { 1423 if m != nil { 1424 return m.TxId 1425 } 1426 return "" 1427 } 1428 1429 func (m *PrivatePayload) GetPrivateRwset() []byte { 1430 if m != nil { 1431 return m.PrivateRwset 1432 } 1433 return nil 1434 } 1435 1436 func (m *PrivatePayload) GetPrivateSimHeight() uint64 { 1437 if m != nil { 1438 return m.PrivateSimHeight 1439 } 1440 return 0 1441 } 1442 1443 func (m *PrivatePayload) GetCollectionConfigs() *peer.CollectionConfigPackage { 1444 if m != nil { 1445 return m.CollectionConfigs 1446 } 1447 return nil 1448 } 1449 1450 // AliveMessage is sent to inform remote peers 1451 // of a peer's existence and activity 1452 type AliveMessage struct { 1453 Membership *Member `protobuf:"bytes,1,opt,name=membership,proto3" json:"membership,omitempty"` 1454 Timestamp *PeerTime `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` 1455 Identity []byte `protobuf:"bytes,4,opt,name=identity,proto3" json:"identity,omitempty"` 1456 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1457 XXX_unrecognized []byte `json:"-"` 1458 XXX_sizecache int32 `json:"-"` 1459 } 1460 1461 func (m *AliveMessage) Reset() { *m = AliveMessage{} } 1462 func (m *AliveMessage) String() string { return proto.CompactTextString(m) } 1463 func (*AliveMessage) ProtoMessage() {} 1464 func (*AliveMessage) Descriptor() ([]byte, []int) { 1465 return fileDescriptor_24518b295636120e, []int{18} 1466 } 1467 1468 func (m *AliveMessage) XXX_Unmarshal(b []byte) error { 1469 return xxx_messageInfo_AliveMessage.Unmarshal(m, b) 1470 } 1471 func (m *AliveMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1472 return xxx_messageInfo_AliveMessage.Marshal(b, m, deterministic) 1473 } 1474 func (m *AliveMessage) XXX_Merge(src proto.Message) { 1475 xxx_messageInfo_AliveMessage.Merge(m, src) 1476 } 1477 func (m *AliveMessage) XXX_Size() int { 1478 return xxx_messageInfo_AliveMessage.Size(m) 1479 } 1480 func (m *AliveMessage) XXX_DiscardUnknown() { 1481 xxx_messageInfo_AliveMessage.DiscardUnknown(m) 1482 } 1483 1484 var xxx_messageInfo_AliveMessage proto.InternalMessageInfo 1485 1486 func (m *AliveMessage) GetMembership() *Member { 1487 if m != nil { 1488 return m.Membership 1489 } 1490 return nil 1491 } 1492 1493 func (m *AliveMessage) GetTimestamp() *PeerTime { 1494 if m != nil { 1495 return m.Timestamp 1496 } 1497 return nil 1498 } 1499 1500 func (m *AliveMessage) GetIdentity() []byte { 1501 if m != nil { 1502 return m.Identity 1503 } 1504 return nil 1505 } 1506 1507 // Leadership Message is sent during leader election to inform 1508 // remote peers about intent of peer to proclaim itself as leader 1509 type LeadershipMessage struct { 1510 PkiId []byte `protobuf:"bytes,1,opt,name=pki_id,json=pkiId,proto3" json:"pki_id,omitempty"` 1511 Timestamp *PeerTime `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` 1512 IsDeclaration bool `protobuf:"varint,3,opt,name=is_declaration,json=isDeclaration,proto3" json:"is_declaration,omitempty"` 1513 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1514 XXX_unrecognized []byte `json:"-"` 1515 XXX_sizecache int32 `json:"-"` 1516 } 1517 1518 func (m *LeadershipMessage) Reset() { *m = LeadershipMessage{} } 1519 func (m *LeadershipMessage) String() string { return proto.CompactTextString(m) } 1520 func (*LeadershipMessage) ProtoMessage() {} 1521 func (*LeadershipMessage) Descriptor() ([]byte, []int) { 1522 return fileDescriptor_24518b295636120e, []int{19} 1523 } 1524 1525 func (m *LeadershipMessage) XXX_Unmarshal(b []byte) error { 1526 return xxx_messageInfo_LeadershipMessage.Unmarshal(m, b) 1527 } 1528 func (m *LeadershipMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1529 return xxx_messageInfo_LeadershipMessage.Marshal(b, m, deterministic) 1530 } 1531 func (m *LeadershipMessage) XXX_Merge(src proto.Message) { 1532 xxx_messageInfo_LeadershipMessage.Merge(m, src) 1533 } 1534 func (m *LeadershipMessage) XXX_Size() int { 1535 return xxx_messageInfo_LeadershipMessage.Size(m) 1536 } 1537 func (m *LeadershipMessage) XXX_DiscardUnknown() { 1538 xxx_messageInfo_LeadershipMessage.DiscardUnknown(m) 1539 } 1540 1541 var xxx_messageInfo_LeadershipMessage proto.InternalMessageInfo 1542 1543 func (m *LeadershipMessage) GetPkiId() []byte { 1544 if m != nil { 1545 return m.PkiId 1546 } 1547 return nil 1548 } 1549 1550 func (m *LeadershipMessage) GetTimestamp() *PeerTime { 1551 if m != nil { 1552 return m.Timestamp 1553 } 1554 return nil 1555 } 1556 1557 func (m *LeadershipMessage) GetIsDeclaration() bool { 1558 if m != nil { 1559 return m.IsDeclaration 1560 } 1561 return false 1562 } 1563 1564 // PeerTime defines the logical time of a peer's life 1565 type PeerTime struct { 1566 IncNum uint64 `protobuf:"varint,1,opt,name=inc_num,json=incNum,proto3" json:"inc_num,omitempty"` 1567 SeqNum uint64 `protobuf:"varint,2,opt,name=seq_num,json=seqNum,proto3" json:"seq_num,omitempty"` 1568 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1569 XXX_unrecognized []byte `json:"-"` 1570 XXX_sizecache int32 `json:"-"` 1571 } 1572 1573 func (m *PeerTime) Reset() { *m = PeerTime{} } 1574 func (m *PeerTime) String() string { return proto.CompactTextString(m) } 1575 func (*PeerTime) ProtoMessage() {} 1576 func (*PeerTime) Descriptor() ([]byte, []int) { 1577 return fileDescriptor_24518b295636120e, []int{20} 1578 } 1579 1580 func (m *PeerTime) XXX_Unmarshal(b []byte) error { 1581 return xxx_messageInfo_PeerTime.Unmarshal(m, b) 1582 } 1583 func (m *PeerTime) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1584 return xxx_messageInfo_PeerTime.Marshal(b, m, deterministic) 1585 } 1586 func (m *PeerTime) XXX_Merge(src proto.Message) { 1587 xxx_messageInfo_PeerTime.Merge(m, src) 1588 } 1589 func (m *PeerTime) XXX_Size() int { 1590 return xxx_messageInfo_PeerTime.Size(m) 1591 } 1592 func (m *PeerTime) XXX_DiscardUnknown() { 1593 xxx_messageInfo_PeerTime.DiscardUnknown(m) 1594 } 1595 1596 var xxx_messageInfo_PeerTime proto.InternalMessageInfo 1597 1598 func (m *PeerTime) GetIncNum() uint64 { 1599 if m != nil { 1600 return m.IncNum 1601 } 1602 return 0 1603 } 1604 1605 func (m *PeerTime) GetSeqNum() uint64 { 1606 if m != nil { 1607 return m.SeqNum 1608 } 1609 return 0 1610 } 1611 1612 // MembershipRequest is used to ask membership information 1613 // from a remote peer 1614 type MembershipRequest struct { 1615 SelfInformation *Envelope `protobuf:"bytes,1,opt,name=self_information,json=selfInformation,proto3" json:"self_information,omitempty"` 1616 Known [][]byte `protobuf:"bytes,2,rep,name=known,proto3" json:"known,omitempty"` 1617 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1618 XXX_unrecognized []byte `json:"-"` 1619 XXX_sizecache int32 `json:"-"` 1620 } 1621 1622 func (m *MembershipRequest) Reset() { *m = MembershipRequest{} } 1623 func (m *MembershipRequest) String() string { return proto.CompactTextString(m) } 1624 func (*MembershipRequest) ProtoMessage() {} 1625 func (*MembershipRequest) Descriptor() ([]byte, []int) { 1626 return fileDescriptor_24518b295636120e, []int{21} 1627 } 1628 1629 func (m *MembershipRequest) XXX_Unmarshal(b []byte) error { 1630 return xxx_messageInfo_MembershipRequest.Unmarshal(m, b) 1631 } 1632 func (m *MembershipRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1633 return xxx_messageInfo_MembershipRequest.Marshal(b, m, deterministic) 1634 } 1635 func (m *MembershipRequest) XXX_Merge(src proto.Message) { 1636 xxx_messageInfo_MembershipRequest.Merge(m, src) 1637 } 1638 func (m *MembershipRequest) XXX_Size() int { 1639 return xxx_messageInfo_MembershipRequest.Size(m) 1640 } 1641 func (m *MembershipRequest) XXX_DiscardUnknown() { 1642 xxx_messageInfo_MembershipRequest.DiscardUnknown(m) 1643 } 1644 1645 var xxx_messageInfo_MembershipRequest proto.InternalMessageInfo 1646 1647 func (m *MembershipRequest) GetSelfInformation() *Envelope { 1648 if m != nil { 1649 return m.SelfInformation 1650 } 1651 return nil 1652 } 1653 1654 func (m *MembershipRequest) GetKnown() [][]byte { 1655 if m != nil { 1656 return m.Known 1657 } 1658 return nil 1659 } 1660 1661 // MembershipResponse is used for replying to MembershipRequests 1662 type MembershipResponse struct { 1663 Alive []*Envelope `protobuf:"bytes,1,rep,name=alive,proto3" json:"alive,omitempty"` 1664 Dead []*Envelope `protobuf:"bytes,2,rep,name=dead,proto3" json:"dead,omitempty"` 1665 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1666 XXX_unrecognized []byte `json:"-"` 1667 XXX_sizecache int32 `json:"-"` 1668 } 1669 1670 func (m *MembershipResponse) Reset() { *m = MembershipResponse{} } 1671 func (m *MembershipResponse) String() string { return proto.CompactTextString(m) } 1672 func (*MembershipResponse) ProtoMessage() {} 1673 func (*MembershipResponse) Descriptor() ([]byte, []int) { 1674 return fileDescriptor_24518b295636120e, []int{22} 1675 } 1676 1677 func (m *MembershipResponse) XXX_Unmarshal(b []byte) error { 1678 return xxx_messageInfo_MembershipResponse.Unmarshal(m, b) 1679 } 1680 func (m *MembershipResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1681 return xxx_messageInfo_MembershipResponse.Marshal(b, m, deterministic) 1682 } 1683 func (m *MembershipResponse) XXX_Merge(src proto.Message) { 1684 xxx_messageInfo_MembershipResponse.Merge(m, src) 1685 } 1686 func (m *MembershipResponse) XXX_Size() int { 1687 return xxx_messageInfo_MembershipResponse.Size(m) 1688 } 1689 func (m *MembershipResponse) XXX_DiscardUnknown() { 1690 xxx_messageInfo_MembershipResponse.DiscardUnknown(m) 1691 } 1692 1693 var xxx_messageInfo_MembershipResponse proto.InternalMessageInfo 1694 1695 func (m *MembershipResponse) GetAlive() []*Envelope { 1696 if m != nil { 1697 return m.Alive 1698 } 1699 return nil 1700 } 1701 1702 func (m *MembershipResponse) GetDead() []*Envelope { 1703 if m != nil { 1704 return m.Dead 1705 } 1706 return nil 1707 } 1708 1709 // Member holds membership-related information 1710 // about a peer 1711 type Member struct { 1712 Endpoint string `protobuf:"bytes,1,opt,name=endpoint,proto3" json:"endpoint,omitempty"` 1713 Metadata []byte `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` 1714 PkiId []byte `protobuf:"bytes,3,opt,name=pki_id,json=pkiId,proto3" json:"pki_id,omitempty"` 1715 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1716 XXX_unrecognized []byte `json:"-"` 1717 XXX_sizecache int32 `json:"-"` 1718 } 1719 1720 func (m *Member) Reset() { *m = Member{} } 1721 func (m *Member) String() string { return proto.CompactTextString(m) } 1722 func (*Member) ProtoMessage() {} 1723 func (*Member) Descriptor() ([]byte, []int) { 1724 return fileDescriptor_24518b295636120e, []int{23} 1725 } 1726 1727 func (m *Member) XXX_Unmarshal(b []byte) error { 1728 return xxx_messageInfo_Member.Unmarshal(m, b) 1729 } 1730 func (m *Member) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1731 return xxx_messageInfo_Member.Marshal(b, m, deterministic) 1732 } 1733 func (m *Member) XXX_Merge(src proto.Message) { 1734 xxx_messageInfo_Member.Merge(m, src) 1735 } 1736 func (m *Member) XXX_Size() int { 1737 return xxx_messageInfo_Member.Size(m) 1738 } 1739 func (m *Member) XXX_DiscardUnknown() { 1740 xxx_messageInfo_Member.DiscardUnknown(m) 1741 } 1742 1743 var xxx_messageInfo_Member proto.InternalMessageInfo 1744 1745 func (m *Member) GetEndpoint() string { 1746 if m != nil { 1747 return m.Endpoint 1748 } 1749 return "" 1750 } 1751 1752 func (m *Member) GetMetadata() []byte { 1753 if m != nil { 1754 return m.Metadata 1755 } 1756 return nil 1757 } 1758 1759 func (m *Member) GetPkiId() []byte { 1760 if m != nil { 1761 return m.PkiId 1762 } 1763 return nil 1764 } 1765 1766 // Empty is used for pinging and in tests 1767 type Empty struct { 1768 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1769 XXX_unrecognized []byte `json:"-"` 1770 XXX_sizecache int32 `json:"-"` 1771 } 1772 1773 func (m *Empty) Reset() { *m = Empty{} } 1774 func (m *Empty) String() string { return proto.CompactTextString(m) } 1775 func (*Empty) ProtoMessage() {} 1776 func (*Empty) Descriptor() ([]byte, []int) { 1777 return fileDescriptor_24518b295636120e, []int{24} 1778 } 1779 1780 func (m *Empty) XXX_Unmarshal(b []byte) error { 1781 return xxx_messageInfo_Empty.Unmarshal(m, b) 1782 } 1783 func (m *Empty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1784 return xxx_messageInfo_Empty.Marshal(b, m, deterministic) 1785 } 1786 func (m *Empty) XXX_Merge(src proto.Message) { 1787 xxx_messageInfo_Empty.Merge(m, src) 1788 } 1789 func (m *Empty) XXX_Size() int { 1790 return xxx_messageInfo_Empty.Size(m) 1791 } 1792 func (m *Empty) XXX_DiscardUnknown() { 1793 xxx_messageInfo_Empty.DiscardUnknown(m) 1794 } 1795 1796 var xxx_messageInfo_Empty proto.InternalMessageInfo 1797 1798 // RemoteStateRequest is used to ask a set of blocks 1799 // from a remote peer 1800 type RemoteStateRequest struct { 1801 StartSeqNum uint64 `protobuf:"varint,1,opt,name=start_seq_num,json=startSeqNum,proto3" json:"start_seq_num,omitempty"` 1802 EndSeqNum uint64 `protobuf:"varint,2,opt,name=end_seq_num,json=endSeqNum,proto3" json:"end_seq_num,omitempty"` 1803 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1804 XXX_unrecognized []byte `json:"-"` 1805 XXX_sizecache int32 `json:"-"` 1806 } 1807 1808 func (m *RemoteStateRequest) Reset() { *m = RemoteStateRequest{} } 1809 func (m *RemoteStateRequest) String() string { return proto.CompactTextString(m) } 1810 func (*RemoteStateRequest) ProtoMessage() {} 1811 func (*RemoteStateRequest) Descriptor() ([]byte, []int) { 1812 return fileDescriptor_24518b295636120e, []int{25} 1813 } 1814 1815 func (m *RemoteStateRequest) XXX_Unmarshal(b []byte) error { 1816 return xxx_messageInfo_RemoteStateRequest.Unmarshal(m, b) 1817 } 1818 func (m *RemoteStateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1819 return xxx_messageInfo_RemoteStateRequest.Marshal(b, m, deterministic) 1820 } 1821 func (m *RemoteStateRequest) XXX_Merge(src proto.Message) { 1822 xxx_messageInfo_RemoteStateRequest.Merge(m, src) 1823 } 1824 func (m *RemoteStateRequest) XXX_Size() int { 1825 return xxx_messageInfo_RemoteStateRequest.Size(m) 1826 } 1827 func (m *RemoteStateRequest) XXX_DiscardUnknown() { 1828 xxx_messageInfo_RemoteStateRequest.DiscardUnknown(m) 1829 } 1830 1831 var xxx_messageInfo_RemoteStateRequest proto.InternalMessageInfo 1832 1833 func (m *RemoteStateRequest) GetStartSeqNum() uint64 { 1834 if m != nil { 1835 return m.StartSeqNum 1836 } 1837 return 0 1838 } 1839 1840 func (m *RemoteStateRequest) GetEndSeqNum() uint64 { 1841 if m != nil { 1842 return m.EndSeqNum 1843 } 1844 return 0 1845 } 1846 1847 // RemoteStateResponse is used to send a set of blocks 1848 // to a remote peer 1849 type RemoteStateResponse struct { 1850 Payloads []*Payload `protobuf:"bytes,1,rep,name=payloads,proto3" json:"payloads,omitempty"` 1851 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1852 XXX_unrecognized []byte `json:"-"` 1853 XXX_sizecache int32 `json:"-"` 1854 } 1855 1856 func (m *RemoteStateResponse) Reset() { *m = RemoteStateResponse{} } 1857 func (m *RemoteStateResponse) String() string { return proto.CompactTextString(m) } 1858 func (*RemoteStateResponse) ProtoMessage() {} 1859 func (*RemoteStateResponse) Descriptor() ([]byte, []int) { 1860 return fileDescriptor_24518b295636120e, []int{26} 1861 } 1862 1863 func (m *RemoteStateResponse) XXX_Unmarshal(b []byte) error { 1864 return xxx_messageInfo_RemoteStateResponse.Unmarshal(m, b) 1865 } 1866 func (m *RemoteStateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1867 return xxx_messageInfo_RemoteStateResponse.Marshal(b, m, deterministic) 1868 } 1869 func (m *RemoteStateResponse) XXX_Merge(src proto.Message) { 1870 xxx_messageInfo_RemoteStateResponse.Merge(m, src) 1871 } 1872 func (m *RemoteStateResponse) XXX_Size() int { 1873 return xxx_messageInfo_RemoteStateResponse.Size(m) 1874 } 1875 func (m *RemoteStateResponse) XXX_DiscardUnknown() { 1876 xxx_messageInfo_RemoteStateResponse.DiscardUnknown(m) 1877 } 1878 1879 var xxx_messageInfo_RemoteStateResponse proto.InternalMessageInfo 1880 1881 func (m *RemoteStateResponse) GetPayloads() []*Payload { 1882 if m != nil { 1883 return m.Payloads 1884 } 1885 return nil 1886 } 1887 1888 // RemotePrivateDataRequest message used to request 1889 // missing private rwset 1890 type RemotePvtDataRequest struct { 1891 Digests []*PvtDataDigest `protobuf:"bytes,1,rep,name=digests,proto3" json:"digests,omitempty"` 1892 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1893 XXX_unrecognized []byte `json:"-"` 1894 XXX_sizecache int32 `json:"-"` 1895 } 1896 1897 func (m *RemotePvtDataRequest) Reset() { *m = RemotePvtDataRequest{} } 1898 func (m *RemotePvtDataRequest) String() string { return proto.CompactTextString(m) } 1899 func (*RemotePvtDataRequest) ProtoMessage() {} 1900 func (*RemotePvtDataRequest) Descriptor() ([]byte, []int) { 1901 return fileDescriptor_24518b295636120e, []int{27} 1902 } 1903 1904 func (m *RemotePvtDataRequest) XXX_Unmarshal(b []byte) error { 1905 return xxx_messageInfo_RemotePvtDataRequest.Unmarshal(m, b) 1906 } 1907 func (m *RemotePvtDataRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1908 return xxx_messageInfo_RemotePvtDataRequest.Marshal(b, m, deterministic) 1909 } 1910 func (m *RemotePvtDataRequest) XXX_Merge(src proto.Message) { 1911 xxx_messageInfo_RemotePvtDataRequest.Merge(m, src) 1912 } 1913 func (m *RemotePvtDataRequest) XXX_Size() int { 1914 return xxx_messageInfo_RemotePvtDataRequest.Size(m) 1915 } 1916 func (m *RemotePvtDataRequest) XXX_DiscardUnknown() { 1917 xxx_messageInfo_RemotePvtDataRequest.DiscardUnknown(m) 1918 } 1919 1920 var xxx_messageInfo_RemotePvtDataRequest proto.InternalMessageInfo 1921 1922 func (m *RemotePvtDataRequest) GetDigests() []*PvtDataDigest { 1923 if m != nil { 1924 return m.Digests 1925 } 1926 return nil 1927 } 1928 1929 // PvtDataDigest defines a digest of private data 1930 type PvtDataDigest struct { 1931 TxId string `protobuf:"bytes,1,opt,name=tx_id,json=txId,proto3" json:"tx_id,omitempty"` 1932 Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` 1933 Collection string `protobuf:"bytes,3,opt,name=collection,proto3" json:"collection,omitempty"` 1934 BlockSeq uint64 `protobuf:"varint,4,opt,name=block_seq,json=blockSeq,proto3" json:"block_seq,omitempty"` 1935 SeqInBlock uint64 `protobuf:"varint,5,opt,name=seq_in_block,json=seqInBlock,proto3" json:"seq_in_block,omitempty"` 1936 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1937 XXX_unrecognized []byte `json:"-"` 1938 XXX_sizecache int32 `json:"-"` 1939 } 1940 1941 func (m *PvtDataDigest) Reset() { *m = PvtDataDigest{} } 1942 func (m *PvtDataDigest) String() string { return proto.CompactTextString(m) } 1943 func (*PvtDataDigest) ProtoMessage() {} 1944 func (*PvtDataDigest) Descriptor() ([]byte, []int) { 1945 return fileDescriptor_24518b295636120e, []int{28} 1946 } 1947 1948 func (m *PvtDataDigest) XXX_Unmarshal(b []byte) error { 1949 return xxx_messageInfo_PvtDataDigest.Unmarshal(m, b) 1950 } 1951 func (m *PvtDataDigest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1952 return xxx_messageInfo_PvtDataDigest.Marshal(b, m, deterministic) 1953 } 1954 func (m *PvtDataDigest) XXX_Merge(src proto.Message) { 1955 xxx_messageInfo_PvtDataDigest.Merge(m, src) 1956 } 1957 func (m *PvtDataDigest) XXX_Size() int { 1958 return xxx_messageInfo_PvtDataDigest.Size(m) 1959 } 1960 func (m *PvtDataDigest) XXX_DiscardUnknown() { 1961 xxx_messageInfo_PvtDataDigest.DiscardUnknown(m) 1962 } 1963 1964 var xxx_messageInfo_PvtDataDigest proto.InternalMessageInfo 1965 1966 func (m *PvtDataDigest) GetTxId() string { 1967 if m != nil { 1968 return m.TxId 1969 } 1970 return "" 1971 } 1972 1973 func (m *PvtDataDigest) GetNamespace() string { 1974 if m != nil { 1975 return m.Namespace 1976 } 1977 return "" 1978 } 1979 1980 func (m *PvtDataDigest) GetCollection() string { 1981 if m != nil { 1982 return m.Collection 1983 } 1984 return "" 1985 } 1986 1987 func (m *PvtDataDigest) GetBlockSeq() uint64 { 1988 if m != nil { 1989 return m.BlockSeq 1990 } 1991 return 0 1992 } 1993 1994 func (m *PvtDataDigest) GetSeqInBlock() uint64 { 1995 if m != nil { 1996 return m.SeqInBlock 1997 } 1998 return 0 1999 } 2000 2001 // RemotePrivateData message to response on private 2002 // data replication request 2003 type RemotePvtDataResponse struct { 2004 Elements []*PvtDataElement `protobuf:"bytes,1,rep,name=elements,proto3" json:"elements,omitempty"` 2005 XXX_NoUnkeyedLiteral struct{} `json:"-"` 2006 XXX_unrecognized []byte `json:"-"` 2007 XXX_sizecache int32 `json:"-"` 2008 } 2009 2010 func (m *RemotePvtDataResponse) Reset() { *m = RemotePvtDataResponse{} } 2011 func (m *RemotePvtDataResponse) String() string { return proto.CompactTextString(m) } 2012 func (*RemotePvtDataResponse) ProtoMessage() {} 2013 func (*RemotePvtDataResponse) Descriptor() ([]byte, []int) { 2014 return fileDescriptor_24518b295636120e, []int{29} 2015 } 2016 2017 func (m *RemotePvtDataResponse) XXX_Unmarshal(b []byte) error { 2018 return xxx_messageInfo_RemotePvtDataResponse.Unmarshal(m, b) 2019 } 2020 func (m *RemotePvtDataResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2021 return xxx_messageInfo_RemotePvtDataResponse.Marshal(b, m, deterministic) 2022 } 2023 func (m *RemotePvtDataResponse) XXX_Merge(src proto.Message) { 2024 xxx_messageInfo_RemotePvtDataResponse.Merge(m, src) 2025 } 2026 func (m *RemotePvtDataResponse) XXX_Size() int { 2027 return xxx_messageInfo_RemotePvtDataResponse.Size(m) 2028 } 2029 func (m *RemotePvtDataResponse) XXX_DiscardUnknown() { 2030 xxx_messageInfo_RemotePvtDataResponse.DiscardUnknown(m) 2031 } 2032 2033 var xxx_messageInfo_RemotePvtDataResponse proto.InternalMessageInfo 2034 2035 func (m *RemotePvtDataResponse) GetElements() []*PvtDataElement { 2036 if m != nil { 2037 return m.Elements 2038 } 2039 return nil 2040 } 2041 2042 type PvtDataElement struct { 2043 Digest *PvtDataDigest `protobuf:"bytes,1,opt,name=digest,proto3" json:"digest,omitempty"` 2044 // the payload is a marshaled kvrwset.KVRWSet 2045 Payload [][]byte `protobuf:"bytes,2,rep,name=payload,proto3" json:"payload,omitempty"` 2046 XXX_NoUnkeyedLiteral struct{} `json:"-"` 2047 XXX_unrecognized []byte `json:"-"` 2048 XXX_sizecache int32 `json:"-"` 2049 } 2050 2051 func (m *PvtDataElement) Reset() { *m = PvtDataElement{} } 2052 func (m *PvtDataElement) String() string { return proto.CompactTextString(m) } 2053 func (*PvtDataElement) ProtoMessage() {} 2054 func (*PvtDataElement) Descriptor() ([]byte, []int) { 2055 return fileDescriptor_24518b295636120e, []int{30} 2056 } 2057 2058 func (m *PvtDataElement) XXX_Unmarshal(b []byte) error { 2059 return xxx_messageInfo_PvtDataElement.Unmarshal(m, b) 2060 } 2061 func (m *PvtDataElement) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2062 return xxx_messageInfo_PvtDataElement.Marshal(b, m, deterministic) 2063 } 2064 func (m *PvtDataElement) XXX_Merge(src proto.Message) { 2065 xxx_messageInfo_PvtDataElement.Merge(m, src) 2066 } 2067 func (m *PvtDataElement) XXX_Size() int { 2068 return xxx_messageInfo_PvtDataElement.Size(m) 2069 } 2070 func (m *PvtDataElement) XXX_DiscardUnknown() { 2071 xxx_messageInfo_PvtDataElement.DiscardUnknown(m) 2072 } 2073 2074 var xxx_messageInfo_PvtDataElement proto.InternalMessageInfo 2075 2076 func (m *PvtDataElement) GetDigest() *PvtDataDigest { 2077 if m != nil { 2078 return m.Digest 2079 } 2080 return nil 2081 } 2082 2083 func (m *PvtDataElement) GetPayload() [][]byte { 2084 if m != nil { 2085 return m.Payload 2086 } 2087 return nil 2088 } 2089 2090 // PvtPayload augments private rwset data and tx index 2091 // inside the block 2092 type PvtDataPayload struct { 2093 TxSeqInBlock uint64 `protobuf:"varint,1,opt,name=tx_seq_in_block,json=txSeqInBlock,proto3" json:"tx_seq_in_block,omitempty"` 2094 // Encodes marhslaed bytes of rwset.TxPvtReadWriteSet 2095 // defined in rwset.proto 2096 Payload []byte `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"` 2097 XXX_NoUnkeyedLiteral struct{} `json:"-"` 2098 XXX_unrecognized []byte `json:"-"` 2099 XXX_sizecache int32 `json:"-"` 2100 } 2101 2102 func (m *PvtDataPayload) Reset() { *m = PvtDataPayload{} } 2103 func (m *PvtDataPayload) String() string { return proto.CompactTextString(m) } 2104 func (*PvtDataPayload) ProtoMessage() {} 2105 func (*PvtDataPayload) Descriptor() ([]byte, []int) { 2106 return fileDescriptor_24518b295636120e, []int{31} 2107 } 2108 2109 func (m *PvtDataPayload) XXX_Unmarshal(b []byte) error { 2110 return xxx_messageInfo_PvtDataPayload.Unmarshal(m, b) 2111 } 2112 func (m *PvtDataPayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2113 return xxx_messageInfo_PvtDataPayload.Marshal(b, m, deterministic) 2114 } 2115 func (m *PvtDataPayload) XXX_Merge(src proto.Message) { 2116 xxx_messageInfo_PvtDataPayload.Merge(m, src) 2117 } 2118 func (m *PvtDataPayload) XXX_Size() int { 2119 return xxx_messageInfo_PvtDataPayload.Size(m) 2120 } 2121 func (m *PvtDataPayload) XXX_DiscardUnknown() { 2122 xxx_messageInfo_PvtDataPayload.DiscardUnknown(m) 2123 } 2124 2125 var xxx_messageInfo_PvtDataPayload proto.InternalMessageInfo 2126 2127 func (m *PvtDataPayload) GetTxSeqInBlock() uint64 { 2128 if m != nil { 2129 return m.TxSeqInBlock 2130 } 2131 return 0 2132 } 2133 2134 func (m *PvtDataPayload) GetPayload() []byte { 2135 if m != nil { 2136 return m.Payload 2137 } 2138 return nil 2139 } 2140 2141 type Acknowledgement struct { 2142 Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` 2143 XXX_NoUnkeyedLiteral struct{} `json:"-"` 2144 XXX_unrecognized []byte `json:"-"` 2145 XXX_sizecache int32 `json:"-"` 2146 } 2147 2148 func (m *Acknowledgement) Reset() { *m = Acknowledgement{} } 2149 func (m *Acknowledgement) String() string { return proto.CompactTextString(m) } 2150 func (*Acknowledgement) ProtoMessage() {} 2151 func (*Acknowledgement) Descriptor() ([]byte, []int) { 2152 return fileDescriptor_24518b295636120e, []int{32} 2153 } 2154 2155 func (m *Acknowledgement) XXX_Unmarshal(b []byte) error { 2156 return xxx_messageInfo_Acknowledgement.Unmarshal(m, b) 2157 } 2158 func (m *Acknowledgement) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2159 return xxx_messageInfo_Acknowledgement.Marshal(b, m, deterministic) 2160 } 2161 func (m *Acknowledgement) XXX_Merge(src proto.Message) { 2162 xxx_messageInfo_Acknowledgement.Merge(m, src) 2163 } 2164 func (m *Acknowledgement) XXX_Size() int { 2165 return xxx_messageInfo_Acknowledgement.Size(m) 2166 } 2167 func (m *Acknowledgement) XXX_DiscardUnknown() { 2168 xxx_messageInfo_Acknowledgement.DiscardUnknown(m) 2169 } 2170 2171 var xxx_messageInfo_Acknowledgement proto.InternalMessageInfo 2172 2173 func (m *Acknowledgement) GetError() string { 2174 if m != nil { 2175 return m.Error 2176 } 2177 return "" 2178 } 2179 2180 // Chaincode represents a Chaincode that is installed 2181 // on a peer 2182 type Chaincode struct { 2183 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 2184 Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` 2185 Metadata []byte `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"` 2186 XXX_NoUnkeyedLiteral struct{} `json:"-"` 2187 XXX_unrecognized []byte `json:"-"` 2188 XXX_sizecache int32 `json:"-"` 2189 } 2190 2191 func (m *Chaincode) Reset() { *m = Chaincode{} } 2192 func (m *Chaincode) String() string { return proto.CompactTextString(m) } 2193 func (*Chaincode) ProtoMessage() {} 2194 func (*Chaincode) Descriptor() ([]byte, []int) { 2195 return fileDescriptor_24518b295636120e, []int{33} 2196 } 2197 2198 func (m *Chaincode) XXX_Unmarshal(b []byte) error { 2199 return xxx_messageInfo_Chaincode.Unmarshal(m, b) 2200 } 2201 func (m *Chaincode) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2202 return xxx_messageInfo_Chaincode.Marshal(b, m, deterministic) 2203 } 2204 func (m *Chaincode) XXX_Merge(src proto.Message) { 2205 xxx_messageInfo_Chaincode.Merge(m, src) 2206 } 2207 func (m *Chaincode) XXX_Size() int { 2208 return xxx_messageInfo_Chaincode.Size(m) 2209 } 2210 func (m *Chaincode) XXX_DiscardUnknown() { 2211 xxx_messageInfo_Chaincode.DiscardUnknown(m) 2212 } 2213 2214 var xxx_messageInfo_Chaincode proto.InternalMessageInfo 2215 2216 func (m *Chaincode) GetName() string { 2217 if m != nil { 2218 return m.Name 2219 } 2220 return "" 2221 } 2222 2223 func (m *Chaincode) GetVersion() string { 2224 if m != nil { 2225 return m.Version 2226 } 2227 return "" 2228 } 2229 2230 func (m *Chaincode) GetMetadata() []byte { 2231 if m != nil { 2232 return m.Metadata 2233 } 2234 return nil 2235 } 2236 2237 func init() { 2238 proto.RegisterEnum("gossip.PullMsgType", PullMsgType_name, PullMsgType_value) 2239 proto.RegisterEnum("gossip.GossipMessage_Tag", GossipMessage_Tag_name, GossipMessage_Tag_value) 2240 proto.RegisterType((*Envelope)(nil), "gossip.Envelope") 2241 proto.RegisterType((*SecretEnvelope)(nil), "gossip.SecretEnvelope") 2242 proto.RegisterType((*Secret)(nil), "gossip.Secret") 2243 proto.RegisterType((*GossipMessage)(nil), "gossip.GossipMessage") 2244 proto.RegisterType((*StateInfo)(nil), "gossip.StateInfo") 2245 proto.RegisterType((*Properties)(nil), "gossip.Properties") 2246 proto.RegisterType((*StateInfoSnapshot)(nil), "gossip.StateInfoSnapshot") 2247 proto.RegisterType((*StateInfoPullRequest)(nil), "gossip.StateInfoPullRequest") 2248 proto.RegisterType((*ConnEstablish)(nil), "gossip.ConnEstablish") 2249 proto.RegisterType((*PeerIdentity)(nil), "gossip.PeerIdentity") 2250 proto.RegisterType((*DataRequest)(nil), "gossip.DataRequest") 2251 proto.RegisterType((*GossipHello)(nil), "gossip.GossipHello") 2252 proto.RegisterType((*DataUpdate)(nil), "gossip.DataUpdate") 2253 proto.RegisterType((*DataDigest)(nil), "gossip.DataDigest") 2254 proto.RegisterType((*DataMessage)(nil), "gossip.DataMessage") 2255 proto.RegisterType((*PrivateDataMessage)(nil), "gossip.PrivateDataMessage") 2256 proto.RegisterType((*Payload)(nil), "gossip.Payload") 2257 proto.RegisterType((*PrivatePayload)(nil), "gossip.PrivatePayload") 2258 proto.RegisterType((*AliveMessage)(nil), "gossip.AliveMessage") 2259 proto.RegisterType((*LeadershipMessage)(nil), "gossip.LeadershipMessage") 2260 proto.RegisterType((*PeerTime)(nil), "gossip.PeerTime") 2261 proto.RegisterType((*MembershipRequest)(nil), "gossip.MembershipRequest") 2262 proto.RegisterType((*MembershipResponse)(nil), "gossip.MembershipResponse") 2263 proto.RegisterType((*Member)(nil), "gossip.Member") 2264 proto.RegisterType((*Empty)(nil), "gossip.Empty") 2265 proto.RegisterType((*RemoteStateRequest)(nil), "gossip.RemoteStateRequest") 2266 proto.RegisterType((*RemoteStateResponse)(nil), "gossip.RemoteStateResponse") 2267 proto.RegisterType((*RemotePvtDataRequest)(nil), "gossip.RemotePvtDataRequest") 2268 proto.RegisterType((*PvtDataDigest)(nil), "gossip.PvtDataDigest") 2269 proto.RegisterType((*RemotePvtDataResponse)(nil), "gossip.RemotePvtDataResponse") 2270 proto.RegisterType((*PvtDataElement)(nil), "gossip.PvtDataElement") 2271 proto.RegisterType((*PvtDataPayload)(nil), "gossip.PvtDataPayload") 2272 proto.RegisterType((*Acknowledgement)(nil), "gossip.Acknowledgement") 2273 proto.RegisterType((*Chaincode)(nil), "gossip.Chaincode") 2274 } 2275 2276 func init() { proto.RegisterFile("gossip/message.proto", fileDescriptor_24518b295636120e) } 2277 2278 var fileDescriptor_24518b295636120e = []byte{ 2279 // 1895 bytes of a gzipped FileDescriptorProto 2280 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x58, 0x5b, 0x53, 0xe3, 0xc8, 2281 0x15, 0x46, 0xe0, 0xeb, 0xf1, 0x05, 0xd3, 0xc0, 0x8c, 0x96, 0xdd, 0xec, 0xb2, 0xca, 0x4e, 0x76, 2282 0x92, 0x99, 0x31, 0x13, 0x36, 0xb7, 0xaa, 0x4d, 0x32, 0x05, 0xb6, 0x17, 0xbb, 0x76, 0xec, 0x21, 2283 0x82, 0x49, 0x42, 0x5e, 0x54, 0x8d, 0xd4, 0xc8, 0x2a, 0xa4, 0x96, 0x50, 0x37, 0x2c, 0x54, 0xe5, 2284 0x25, 0x95, 0x87, 0xad, 0xca, 0x4b, 0x7e, 0x43, 0x9e, 0xf2, 0x37, 0x53, 0xdd, 0xad, 0xab, 0x0d, 2285 0x54, 0xcd, 0x54, 0xe5, 0xcd, 0xe7, 0xde, 0x7d, 0xfa, 0x9c, 0xef, 0x1c, 0x19, 0xb6, 0xdc, 0x90, 2286 0x31, 0x2f, 0xda, 0x0b, 0x08, 0x63, 0xd8, 0x25, 0xfd, 0x28, 0x0e, 0x79, 0x88, 0x6a, 0x8a, 0xbb, 2287 0xb3, 0x1d, 0x11, 0x12, 0xef, 0xd9, 0xa1, 0xef, 0x13, 0x9b, 0x7b, 0x21, 0x55, 0x62, 0xe3, 0x9f, 2288 0x1a, 0x34, 0x46, 0xf4, 0x86, 0xf8, 0x61, 0x44, 0x90, 0x0e, 0xf5, 0x08, 0xdf, 0xf9, 0x21, 0x76, 2289 0x74, 0x6d, 0x57, 0x7b, 0xde, 0x36, 0x53, 0x12, 0x7d, 0x06, 0x4d, 0xe6, 0xb9, 0x14, 0xf3, 0xeb, 2290 0x98, 0xe8, 0xab, 0x52, 0x96, 0x33, 0xd0, 0x1b, 0x58, 0x67, 0xc4, 0x8e, 0x09, 0xb7, 0x48, 0xe2, 2291 0x4a, 0x5f, 0xdb, 0xd5, 0x9e, 0xb7, 0xf6, 0x9f, 0xf4, 0x55, 0xf4, 0xfe, 0x89, 0x14, 0xa7, 0x81, 2292 0xcc, 0x2e, 0x2b, 0xd1, 0xc6, 0x18, 0xba, 0x65, 0x8d, 0x8f, 0x3d, 0x8a, 0x71, 0x00, 0x35, 0xe5, 2293 0x09, 0xbd, 0x84, 0x9e, 0x47, 0x39, 0x89, 0x29, 0xf6, 0x47, 0xd4, 0x89, 0x42, 0x8f, 0x72, 0xe9, 2294 0xaa, 0x39, 0x5e, 0x31, 0x97, 0x24, 0x87, 0x4d, 0xa8, 0xdb, 0x21, 0xe5, 0x84, 0x72, 0xe3, 0xc7, 2295 0x16, 0x74, 0x8e, 0xe4, 0xb1, 0xa7, 0x2a, 0x93, 0x68, 0x0b, 0xaa, 0x34, 0xa4, 0x36, 0x91, 0xf6, 2296 0x15, 0x53, 0x11, 0xe2, 0x88, 0xf6, 0x1c, 0x53, 0x4a, 0xfc, 0xe4, 0x18, 0x29, 0x89, 0x5e, 0xc0, 2297 0x1a, 0xc7, 0xae, 0xcc, 0x41, 0x77, 0xff, 0x93, 0x34, 0x07, 0x25, 0x9f, 0xfd, 0x53, 0xec, 0x9a, 2298 0x42, 0x0b, 0x7d, 0x03, 0x4d, 0xec, 0x7b, 0x37, 0xc4, 0x0a, 0x98, 0xab, 0x57, 0x65, 0xda, 0xb6, 2299 0x52, 0x93, 0x03, 0x21, 0x48, 0x2c, 0xc6, 0x2b, 0x66, 0x43, 0x2a, 0x4e, 0x99, 0x8b, 0x7e, 0x05, 2300 0xf5, 0x80, 0x04, 0x56, 0x4c, 0xae, 0xf4, 0x9a, 0x34, 0xc9, 0xa2, 0x4c, 0x49, 0x70, 0x4e, 0x62, 2301 0x36, 0xf7, 0x22, 0x93, 0x5c, 0x5d, 0x13, 0xc6, 0xc7, 0x2b, 0x66, 0x2d, 0x20, 0x81, 0x49, 0xae, 2302 0xd0, 0xaf, 0x53, 0x2b, 0xa6, 0xd7, 0xa5, 0xd5, 0xce, 0x7d, 0x56, 0x2c, 0x0a, 0x29, 0x23, 0x99, 2303 0x19, 0x43, 0xaf, 0xa1, 0xe1, 0x60, 0x8e, 0xe5, 0x01, 0x1b, 0xd2, 0x6e, 0x33, 0xb5, 0x1b, 0x62, 2304 0x8e, 0xf3, 0xf3, 0xd5, 0x85, 0x9a, 0x38, 0xde, 0x0b, 0xa8, 0xce, 0x89, 0xef, 0x87, 0x7a, 0xb3, 2305 0xac, 0xae, 0x52, 0x30, 0x16, 0xa2, 0xf1, 0x8a, 0xa9, 0x74, 0xd0, 0x5e, 0xe2, 0xde, 0xf1, 0x5c, 2306 0x1d, 0xa4, 0x3e, 0x2a, 0xba, 0x1f, 0x7a, 0xae, 0xba, 0x85, 0xf4, 0x3e, 0xf4, 0xdc, 0xec, 0x3c, 2307 0xe2, 0xf6, 0xad, 0xe5, 0xf3, 0xe4, 0xf7, 0x96, 0x16, 0xea, 0xe2, 0x2d, 0x69, 0x71, 0x1d, 0x39, 2308 0x98, 0x13, 0xbd, 0xbd, 0x1c, 0xe5, 0xbd, 0x94, 0x8c, 0x57, 0x4c, 0x70, 0x32, 0x0a, 0x3d, 0x83, 2309 0x2a, 0x09, 0x22, 0x7e, 0xa7, 0x77, 0xa4, 0x41, 0x27, 0x35, 0x18, 0x09, 0xa6, 0xb8, 0x80, 0x94, 2310 0xa2, 0x17, 0x50, 0xb1, 0x43, 0x4a, 0xf5, 0xae, 0xd4, 0xda, 0x4e, 0xb5, 0x06, 0x21, 0xa5, 0x23, 2311 0xc6, 0xf1, 0xb9, 0xef, 0xb1, 0xf9, 0x78, 0xc5, 0x94, 0x4a, 0x68, 0x1f, 0x80, 0x71, 0xcc, 0x89, 2312 0xe5, 0xd1, 0x8b, 0x50, 0x5f, 0x97, 0x26, 0x1b, 0x59, 0x9b, 0x08, 0xc9, 0x84, 0x5e, 0x88, 0xec, 2313 0x34, 0x59, 0x4a, 0xa0, 0x43, 0xe8, 0x2a, 0x1b, 0x46, 0x71, 0xc4, 0xe6, 0x21, 0xd7, 0x7b, 0xe5, 2314 0x47, 0xcf, 0xec, 0x4e, 0x12, 0x85, 0xf1, 0x8a, 0xd9, 0x91, 0x26, 0x29, 0x03, 0x4d, 0x61, 0x33, 2315 0x8f, 0x6b, 0x45, 0xd7, 0xbe, 0x2f, 0xf3, 0xb7, 0x21, 0x1d, 0x7d, 0xb6, 0xe4, 0xe8, 0xf8, 0xda, 2316 0xf7, 0xf3, 0x44, 0xf6, 0xd8, 0x02, 0x1f, 0x1d, 0x80, 0xf2, 0x2f, 0x9c, 0x08, 0x25, 0x1d, 0x95, 2317 0x0b, 0xca, 0x24, 0x41, 0xc8, 0x89, 0x74, 0x97, 0xbb, 0x69, 0xb3, 0x02, 0x8d, 0x86, 0xe9, 0xad, 2318 0xe2, 0xa4, 0xe4, 0xf4, 0x4d, 0xe9, 0xe3, 0xd3, 0x7b, 0x7d, 0x64, 0x55, 0xd9, 0x61, 0x45, 0x86, 2319 0xc8, 0x8d, 0x4f, 0xb0, 0xa3, 0x8a, 0x57, 0x96, 0xe8, 0x56, 0x39, 0x37, 0x6f, 0x33, 0x69, 0x5e, 2320 0xa8, 0x9d, 0xdc, 0x44, 0x94, 0xeb, 0xb7, 0xd0, 0x11, 0xe8, 0x68, 0x79, 0x0e, 0xa1, 0xdc, 0xe3, 2321 0x77, 0xfa, 0x76, 0xb9, 0x0d, 0x8f, 0x09, 0x89, 0x27, 0x89, 0x4c, 0x5c, 0x23, 0x2a, 0xd0, 0xa2, 2322 0xd9, 0xb1, 0x7d, 0xa9, 0x3f, 0x91, 0x26, 0x4f, 0xb3, 0xce, 0xb5, 0x2f, 0x69, 0xf8, 0x83, 0x4f, 2323 0x1c, 0x97, 0x04, 0x84, 0x8a, 0xcb, 0x0b, 0x2d, 0xf4, 0x47, 0x80, 0x28, 0xf6, 0x6e, 0x54, 0x16, 2324 0xf4, 0xa7, 0xe5, 0xe4, 0xab, 0xfb, 0x1e, 0xdf, 0xf0, 0x72, 0x15, 0x17, 0x2c, 0xd0, 0x9b, 0x82, 2325 0x3d, 0xd3, 0x75, 0x69, 0xff, 0x93, 0x07, 0xec, 0xb3, 0x8c, 0x15, 0x4c, 0xd0, 0x1b, 0x68, 0x27, 2326 0x94, 0x25, 0x0a, 0x5d, 0xff, 0xa4, 0xfc, 0x6c, 0xc7, 0x4a, 0x56, 0x6e, 0xeb, 0x56, 0x94, 0x73, 2327 0x0d, 0x0b, 0xd6, 0x4e, 0xb1, 0x8b, 0x3a, 0xd0, 0x7c, 0x3f, 0x1b, 0x8e, 0xbe, 0x9b, 0xcc, 0x46, 2328 0xc3, 0xde, 0x0a, 0x6a, 0x42, 0x75, 0x34, 0x3d, 0x3e, 0x3d, 0xeb, 0x69, 0xa8, 0x0d, 0x8d, 0x77, 2329 0xe6, 0x91, 0xf5, 0x6e, 0xf6, 0xf6, 0xac, 0xb7, 0x2a, 0xf4, 0x06, 0xe3, 0x83, 0x99, 0x22, 0xd7, 2330 0x50, 0x0f, 0xda, 0x92, 0x3c, 0x98, 0x0d, 0xad, 0x77, 0xe6, 0x51, 0xaf, 0x82, 0xd6, 0xa1, 0xa5, 2331 0x14, 0x4c, 0xc9, 0xa8, 0x16, 0x91, 0xf8, 0xbf, 0x1a, 0x34, 0xb3, 0x8a, 0x44, 0x7d, 0x68, 0x72, 2332 0x2f, 0x20, 0x8c, 0xe3, 0x20, 0x92, 0x88, 0xdb, 0xda, 0xef, 0x15, 0x5f, 0xe8, 0xd4, 0x0b, 0x88, 2333 0x99, 0xab, 0xa0, 0x6d, 0xa8, 0x45, 0x97, 0x9e, 0xe5, 0x39, 0x12, 0x88, 0xdb, 0x66, 0x35, 0xba, 2334 0xf4, 0x26, 0x0e, 0xfa, 0x02, 0x5a, 0x09, 0x4e, 0x5b, 0xd3, 0x83, 0x81, 0x5e, 0x91, 0x32, 0x48, 2335 0x58, 0xd3, 0x83, 0x81, 0xe8, 0xd0, 0x28, 0x0e, 0x23, 0x12, 0x73, 0x8f, 0xb0, 0x04, 0x91, 0x51, 2336 0x9e, 0xa0, 0x54, 0x62, 0x16, 0xb4, 0x8c, 0x1f, 0x35, 0x80, 0x5c, 0x84, 0x7e, 0x0a, 0x1d, 0xf9, 2337 0xf4, 0xb1, 0x35, 0x27, 0x9e, 0x3b, 0xe7, 0xc9, 0xe0, 0x68, 0x2b, 0xe6, 0x58, 0xf2, 0xd0, 0x97, 2338 0xd0, 0xf6, 0xc9, 0x05, 0xb7, 0x8a, 0x43, 0xa4, 0x61, 0xb6, 0x04, 0x6f, 0x90, 0x0c, 0x92, 0x5f, 2339 0x82, 0x38, 0x98, 0x47, 0xed, 0xd0, 0x21, 0x4c, 0x5f, 0xdb, 0x5d, 0x2b, 0x82, 0xc5, 0x20, 0x95, 2340 0x98, 0x05, 0x25, 0xe3, 0x00, 0x36, 0x96, 0xd0, 0x00, 0xbd, 0x84, 0x06, 0xf1, 0x65, 0x21, 0x32, 2341 0x5d, 0x93, 0x5e, 0xb2, 0xcc, 0x65, 0x33, 0x39, 0xd3, 0x30, 0x7e, 0x0b, 0x5b, 0xf7, 0xe1, 0xc0, 2342 0x62, 0xe6, 0xb4, 0xc5, 0xcc, 0x19, 0x7f, 0x87, 0x4e, 0x09, 0xf4, 0x0a, 0x4f, 0xa0, 0x15, 0x9f, 2343 0x60, 0x07, 0x1a, 0x59, 0xab, 0xa9, 0xd1, 0x99, 0xd1, 0xc8, 0x80, 0x0e, 0xf7, 0x99, 0x65, 0x93, 2344 0x98, 0x5b, 0x73, 0xcc, 0xe6, 0xc9, 0xe3, 0xb5, 0xb8, 0xcf, 0x06, 0x24, 0xe6, 0x63, 0xcc, 0xe6, 2345 0x62, 0x1e, 0x47, 0x71, 0x78, 0x4e, 0xe4, 0xe3, 0x35, 0x4c, 0x45, 0x18, 0xef, 0xa1, 0x5d, 0x6c, 2346 0xd4, 0x87, 0x82, 0x23, 0xa8, 0x08, 0xe7, 0x49, 0x60, 0xf9, 0x5b, 0x1c, 0x28, 0x20, 0x1c, 0xcb, 2347 0x8e, 0x50, 0xf1, 0x32, 0xda, 0x08, 0xa0, 0x55, 0xe8, 0xc7, 0x87, 0x77, 0x01, 0x47, 0xce, 0x29, 2348 0xa6, 0xaf, 0xee, 0xae, 0x89, 0x5d, 0x20, 0x21, 0x51, 0x1f, 0x1a, 0x01, 0x73, 0x2d, 0x7e, 0x97, 2349 0x2c, 0x45, 0xdd, 0x7c, 0x58, 0x89, 0xdc, 0x4e, 0x99, 0x7b, 0x7a, 0x17, 0x11, 0xb3, 0x1e, 0xa8, 2350 0x1f, 0x46, 0x08, 0xad, 0xc2, 0x94, 0x7c, 0x20, 0x5c, 0xf1, 0xbc, 0xab, 0xe5, 0xf3, 0x7e, 0x70, 2351 0xc0, 0x5b, 0x80, 0x7c, 0x00, 0x3e, 0x10, 0xef, 0x2b, 0xa8, 0x24, 0xb1, 0xee, 0xaf, 0x9d, 0xca, 2352 0x47, 0x45, 0xf6, 0x55, 0x64, 0x35, 0xe0, 0xff, 0xef, 0x89, 0xfd, 0x9d, 0x7a, 0xc7, 0x74, 0xa7, 2353 0xfb, 0x79, 0x79, 0xc1, 0x6c, 0xed, 0xaf, 0x67, 0xd6, 0x8a, 0x9d, 0x6d, 0x9c, 0xc6, 0x77, 0x80, 2354 0x96, 0x71, 0x11, 0xbd, 0x5e, 0x74, 0xf0, 0x64, 0x01, 0x44, 0x97, 0xfc, 0x9c, 0x41, 0x3d, 0xe1, 2355 0xa1, 0xa7, 0x50, 0x67, 0xe4, 0xca, 0xa2, 0xd7, 0x41, 0x72, 0xdd, 0x1a, 0x23, 0x57, 0xb3, 0xeb, 2356 0x40, 0x54, 0x67, 0xe1, 0x55, 0x55, 0x5e, 0xbf, 0x5c, 0xc0, 0xec, 0x35, 0x99, 0x88, 0x12, 0x2a, 2357 0xff, 0x7b, 0x15, 0xba, 0xe5, 0xb0, 0xe8, 0x6b, 0x58, 0xcf, 0xb7, 0x7d, 0x8b, 0xe2, 0x40, 0x65, 2358 0xb6, 0x69, 0x76, 0x73, 0xf6, 0x0c, 0x07, 0x44, 0x2c, 0xd4, 0x42, 0xca, 0x22, 0x6c, 0xab, 0x85, 2359 0xba, 0x69, 0xe6, 0x0c, 0xb4, 0x09, 0x55, 0x7e, 0x9b, 0x82, 0x68, 0xd3, 0xac, 0xf0, 0xdb, 0x89, 2360 0x23, 0xf0, 0x2d, 0x3d, 0x51, 0xfc, 0x03, 0x23, 0x3c, 0x41, 0xd1, 0xf4, 0x98, 0xa6, 0xe0, 0xa1, 2361 0x97, 0x80, 0x52, 0x25, 0xe6, 0x05, 0x29, 0x12, 0x56, 0xe5, 0x75, 0x7b, 0x89, 0xe4, 0xc4, 0x0b, 2362 0x12, 0x34, 0x9c, 0x01, 0x2a, 0x1c, 0xd7, 0x0e, 0xe9, 0x85, 0xe7, 0xb2, 0x64, 0xb9, 0xfd, 0x42, 2363 0x7d, 0xac, 0xb0, 0xfe, 0x20, 0xd3, 0x18, 0x48, 0x85, 0x63, 0x6c, 0x5f, 0x62, 0x97, 0x98, 0x1b, 2364 0xf6, 0x82, 0x80, 0x19, 0xff, 0xd2, 0xa0, 0x5d, 0x5c, 0x9f, 0x51, 0x1f, 0x20, 0xc8, 0xb6, 0xdc, 2365 0xe4, 0xc9, 0xba, 0xe5, 0xfd, 0xd7, 0x2c, 0x68, 0x7c, 0xf0, 0xb8, 0x29, 0x82, 0x5a, 0xa5, 0x0c, 2366 0x6a, 0xc6, 0x3f, 0x34, 0xd8, 0x58, 0xda, 0x43, 0x1e, 0x02, 0xa8, 0x0f, 0x0d, 0xfc, 0x0c, 0xba, 2367 0x1e, 0xb3, 0x1c, 0x62, 0xfb, 0x38, 0xc6, 0x22, 0x05, 0xf2, 0xa9, 0x1a, 0x66, 0xc7, 0x63, 0xc3, 2368 0x9c, 0x69, 0xfc, 0x1e, 0x1a, 0xa9, 0xb5, 0x28, 0x3f, 0x8f, 0xda, 0xc5, 0xf2, 0xf3, 0xa8, 0x2d, 2369 0xca, 0xaf, 0x50, 0x97, 0xab, 0xc5, 0xba, 0x34, 0x2e, 0x60, 0x63, 0xe9, 0xcb, 0x02, 0x7d, 0x0b, 2370 0x3d, 0x46, 0xfc, 0x0b, 0xb9, 0x52, 0xc6, 0x81, 0x8a, 0xad, 0x95, 0x0f, 0x9c, 0x41, 0xc4, 0xba, 2371 0xd0, 0x9c, 0xe4, 0x8a, 0xa2, 0xdf, 0xc5, 0x8a, 0x44, 0x93, 0xbe, 0x56, 0x84, 0x71, 0x0e, 0x68, 2372 0xf9, 0x5b, 0x04, 0xfd, 0x0c, 0xaa, 0xf2, 0xd3, 0xe7, 0xc1, 0xe1, 0xa5, 0xc4, 0x12, 0xa7, 0x08, 2373 0x76, 0x1e, 0xc1, 0x29, 0x82, 0x1d, 0xe3, 0x2f, 0x50, 0x53, 0x31, 0xc4, 0x9b, 0x91, 0xd2, 0xb7, 2374 0xa1, 0x99, 0xd1, 0x8f, 0x62, 0xec, 0xfd, 0xab, 0x85, 0x51, 0x87, 0xaa, 0xfc, 0x34, 0x30, 0xfe, 2375 0x0a, 0x68, 0x79, 0x01, 0x16, 0xa3, 0x8d, 0x71, 0x1c, 0x73, 0xab, 0xdc, 0xfa, 0x2d, 0xc9, 0x3c, 2376 0x51, 0xfd, 0xff, 0x39, 0xb4, 0x08, 0x75, 0xac, 0xf2, 0x23, 0x34, 0x09, 0x75, 0x94, 0xdc, 0x38, 2377 0x84, 0xcd, 0x7b, 0xd6, 0x62, 0xf4, 0x02, 0x1a, 0x09, 0xca, 0xa4, 0x03, 0x7e, 0x09, 0xce, 0x32, 2378 0x05, 0xe3, 0x08, 0xb6, 0xee, 0x5b, 0x35, 0xd1, 0x5e, 0x8e, 0xb5, 0xca, 0x47, 0xf6, 0x29, 0x93, 2379 0x28, 0x2a, 0xa4, 0xce, 0x20, 0xd8, 0xf8, 0x8f, 0x06, 0x9d, 0x92, 0x28, 0x47, 0x0b, 0xad, 0x80, 2380 0x16, 0x8f, 0x03, 0xcc, 0xe7, 0x00, 0x79, 0xf7, 0x26, 0x28, 0x53, 0xe0, 0xa0, 0x4f, 0xa1, 0x79, 2381 0xee, 0x87, 0xf6, 0xa5, 0xc8, 0x89, 0x6c, 0xac, 0x8a, 0xd9, 0x90, 0x8c, 0x13, 0x72, 0x85, 0x76, 2382 0xa1, 0x2d, 0x52, 0xe5, 0x51, 0x4b, 0xb2, 0x12, 0x74, 0x01, 0x46, 0xae, 0x26, 0xf4, 0x50, 0x70, 2383 0x8c, 0xef, 0x61, 0xfb, 0xde, 0xbd, 0x18, 0xed, 0x2f, 0xed, 0x44, 0x4f, 0x16, 0xae, 0x3b, 0x52, 2384 0xe2, 0xc2, 0x66, 0x74, 0x06, 0xdd, 0xb2, 0x0c, 0xbd, 0x82, 0x9a, 0xca, 0x46, 0x52, 0xf8, 0x0f, 2385 0xa4, 0x2c, 0x51, 0x2a, 0xfe, 0xad, 0x91, 0x8c, 0xb3, 0x74, 0x38, 0xfc, 0x29, 0x73, 0x9d, 0x02, 2386 0xf8, 0x33, 0x58, 0xe7, 0xb7, 0x56, 0xe9, 0x7a, 0xc9, 0x1a, 0xc9, 0x6f, 0x4f, 0xb2, 0x0b, 0x96, 2387 0x5d, 0x16, 0xff, 0x29, 0x31, 0xbe, 0x86, 0xf5, 0x85, 0xcf, 0x10, 0xd1, 0x74, 0x24, 0x8e, 0xc3, 2388 0x38, 0x79, 0x1f, 0x45, 0x18, 0xef, 0xa1, 0x99, 0x2d, 0x93, 0x62, 0x02, 0x15, 0x86, 0x85, 0xfc, 2389 0x2d, 0x62, 0xdc, 0x90, 0x98, 0x89, 0x07, 0x52, 0xef, 0x97, 0x92, 0x8f, 0x6d, 0x4e, 0xbf, 0xf8, 2390 0x03, 0xb4, 0x0a, 0x93, 0x78, 0xf1, 0x93, 0xa1, 0x03, 0xcd, 0xc3, 0xb7, 0xef, 0x06, 0xdf, 0x5b, 2391 0xd3, 0x93, 0xa3, 0x9e, 0x26, 0xbe, 0x0c, 0x26, 0xc3, 0xd1, 0xec, 0x74, 0x72, 0x7a, 0x26, 0x39, 2392 0xab, 0xfb, 0x17, 0x50, 0x53, 0x9b, 0x10, 0xfa, 0x0d, 0xb4, 0xd5, 0xaf, 0x13, 0x1e, 0x13, 0x1c, 2393 0xa0, 0xa5, 0xc6, 0xde, 0x59, 0xe2, 0x3c, 0xd7, 0x5e, 0x6b, 0x02, 0x0e, 0x8e, 0x3d, 0xea, 0xa2, 2394 0xf2, 0x87, 0xfb, 0x4e, 0x99, 0x3c, 0xfc, 0x33, 0x7c, 0x15, 0xc6, 0x6e, 0x7f, 0x7e, 0x17, 0x91, 2395 0x58, 0x2d, 0xe8, 0xfd, 0x0b, 0x7c, 0x1e, 0x7b, 0x76, 0x3a, 0x75, 0x94, 0xf6, 0xdf, 0xfa, 0xae, 2396 0xc7, 0xe7, 0xd7, 0xe7, 0x7d, 0x3b, 0x0c, 0xf6, 0x0a, 0xca, 0x7b, 0x4a, 0xf9, 0x95, 0x52, 0x7e, 2397 0xe5, 0x86, 0x7b, 0x4a, 0xff, 0xbc, 0x26, 0x39, 0xdf, 0xfc, 0x2f, 0x00, 0x00, 0xff, 0xff, 0xa6, 2398 0xdd, 0x37, 0x76, 0x98, 0x13, 0x00, 0x00, 2399 } 2400 2401 // Reference imports to suppress errors if they are not otherwise used. 2402 var _ context.Context 2403 var _ grpc.ClientConn 2404 2405 // This is a compile-time assertion to ensure that this generated file 2406 // is compatible with the grpc package it is being compiled against. 2407 const _ = grpc.SupportPackageIsVersion4 2408 2409 // GossipClient is the client API for Gossip service. 2410 // 2411 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 2412 type GossipClient interface { 2413 // GossipStream is the gRPC stream used for sending and receiving messages 2414 GossipStream(ctx context.Context, opts ...grpc.CallOption) (Gossip_GossipStreamClient, error) 2415 // Ping is used to probe a remote peer's aliveness 2416 Ping(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error) 2417 } 2418 2419 type gossipClient struct { 2420 cc *grpc.ClientConn 2421 } 2422 2423 func NewGossipClient(cc *grpc.ClientConn) GossipClient { 2424 return &gossipClient{cc} 2425 } 2426 2427 func (c *gossipClient) GossipStream(ctx context.Context, opts ...grpc.CallOption) (Gossip_GossipStreamClient, error) { 2428 stream, err := c.cc.NewStream(ctx, &_Gossip_serviceDesc.Streams[0], "/gossip.Gossip/GossipStream", opts...) 2429 if err != nil { 2430 return nil, err 2431 } 2432 x := &gossipGossipStreamClient{stream} 2433 return x, nil 2434 } 2435 2436 type Gossip_GossipStreamClient interface { 2437 Send(*Envelope) error 2438 Recv() (*Envelope, error) 2439 grpc.ClientStream 2440 } 2441 2442 type gossipGossipStreamClient struct { 2443 grpc.ClientStream 2444 } 2445 2446 func (x *gossipGossipStreamClient) Send(m *Envelope) error { 2447 return x.ClientStream.SendMsg(m) 2448 } 2449 2450 func (x *gossipGossipStreamClient) Recv() (*Envelope, error) { 2451 m := new(Envelope) 2452 if err := x.ClientStream.RecvMsg(m); err != nil { 2453 return nil, err 2454 } 2455 return m, nil 2456 } 2457 2458 func (c *gossipClient) Ping(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error) { 2459 out := new(Empty) 2460 err := c.cc.Invoke(ctx, "/gossip.Gossip/Ping", in, out, opts...) 2461 if err != nil { 2462 return nil, err 2463 } 2464 return out, nil 2465 } 2466 2467 // GossipServer is the server API for Gossip service. 2468 type GossipServer interface { 2469 // GossipStream is the gRPC stream used for sending and receiving messages 2470 GossipStream(Gossip_GossipStreamServer) error 2471 // Ping is used to probe a remote peer's aliveness 2472 Ping(context.Context, *Empty) (*Empty, error) 2473 } 2474 2475 // UnimplementedGossipServer can be embedded to have forward compatible implementations. 2476 type UnimplementedGossipServer struct { 2477 } 2478 2479 func (*UnimplementedGossipServer) GossipStream(srv Gossip_GossipStreamServer) error { 2480 return status.Errorf(codes.Unimplemented, "method GossipStream not implemented") 2481 } 2482 func (*UnimplementedGossipServer) Ping(ctx context.Context, req *Empty) (*Empty, error) { 2483 return nil, status.Errorf(codes.Unimplemented, "method Ping not implemented") 2484 } 2485 2486 func RegisterGossipServer(s *grpc.Server, srv GossipServer) { 2487 s.RegisterService(&_Gossip_serviceDesc, srv) 2488 } 2489 2490 func _Gossip_GossipStream_Handler(srv interface{}, stream grpc.ServerStream) error { 2491 return srv.(GossipServer).GossipStream(&gossipGossipStreamServer{stream}) 2492 } 2493 2494 type Gossip_GossipStreamServer interface { 2495 Send(*Envelope) error 2496 Recv() (*Envelope, error) 2497 grpc.ServerStream 2498 } 2499 2500 type gossipGossipStreamServer struct { 2501 grpc.ServerStream 2502 } 2503 2504 func (x *gossipGossipStreamServer) Send(m *Envelope) error { 2505 return x.ServerStream.SendMsg(m) 2506 } 2507 2508 func (x *gossipGossipStreamServer) Recv() (*Envelope, error) { 2509 m := new(Envelope) 2510 if err := x.ServerStream.RecvMsg(m); err != nil { 2511 return nil, err 2512 } 2513 return m, nil 2514 } 2515 2516 func _Gossip_Ping_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2517 in := new(Empty) 2518 if err := dec(in); err != nil { 2519 return nil, err 2520 } 2521 if interceptor == nil { 2522 return srv.(GossipServer).Ping(ctx, in) 2523 } 2524 info := &grpc.UnaryServerInfo{ 2525 Server: srv, 2526 FullMethod: "/gossip.Gossip/Ping", 2527 } 2528 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2529 return srv.(GossipServer).Ping(ctx, req.(*Empty)) 2530 } 2531 return interceptor(ctx, in, info, handler) 2532 } 2533 2534 var _Gossip_serviceDesc = grpc.ServiceDesc{ 2535 ServiceName: "gossip.Gossip", 2536 HandlerType: (*GossipServer)(nil), 2537 Methods: []grpc.MethodDesc{ 2538 { 2539 MethodName: "Ping", 2540 Handler: _Gossip_Ping_Handler, 2541 }, 2542 }, 2543 Streams: []grpc.StreamDesc{ 2544 { 2545 StreamName: "GossipStream", 2546 Handler: _Gossip_GossipStream_Handler, 2547 ServerStreams: true, 2548 ClientStreams: true, 2549 }, 2550 }, 2551 Metadata: "gossip/message.proto", 2552 }