github.com/prysmaticlabs/prysm@v1.4.4/proto/eth/v1/node.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.25.0 4 // protoc v3.15.8 5 // source: proto/eth/v1/node.proto 6 7 package v1 8 9 import ( 10 context "context" 11 reflect "reflect" 12 sync "sync" 13 14 proto "github.com/golang/protobuf/proto" 15 _ "github.com/golang/protobuf/protoc-gen-go/descriptor" 16 empty "github.com/golang/protobuf/ptypes/empty" 17 github_com_prysmaticlabs_eth2_types "github.com/prysmaticlabs/eth2-types" 18 github_com_prysmaticlabs_go_bitfield "github.com/prysmaticlabs/go-bitfield" 19 _ "github.com/prysmaticlabs/prysm/proto/eth/ext" 20 _ "google.golang.org/genproto/googleapis/api/annotations" 21 grpc "google.golang.org/grpc" 22 codes "google.golang.org/grpc/codes" 23 status "google.golang.org/grpc/status" 24 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 25 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 26 ) 27 28 const ( 29 // Verify that this generated code is sufficiently up-to-date. 30 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 31 // Verify that runtime/protoimpl is sufficiently up-to-date. 32 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 33 ) 34 35 // This is a compile-time assertion that a sufficiently up-to-date version 36 // of the legacy proto package is being used. 37 const _ = proto.ProtoPackageIsVersion4 38 39 type PeerDirection int32 40 41 const ( 42 PeerDirection_INBOUND PeerDirection = 0 43 PeerDirection_OUTBOUND PeerDirection = 1 44 ) 45 46 // Enum value maps for PeerDirection. 47 var ( 48 PeerDirection_name = map[int32]string{ 49 0: "INBOUND", 50 1: "OUTBOUND", 51 } 52 PeerDirection_value = map[string]int32{ 53 "INBOUND": 0, 54 "OUTBOUND": 1, 55 } 56 ) 57 58 func (x PeerDirection) Enum() *PeerDirection { 59 p := new(PeerDirection) 60 *p = x 61 return p 62 } 63 64 func (x PeerDirection) String() string { 65 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 66 } 67 68 func (PeerDirection) Descriptor() protoreflect.EnumDescriptor { 69 return file_proto_eth_v1_node_proto_enumTypes[0].Descriptor() 70 } 71 72 func (PeerDirection) Type() protoreflect.EnumType { 73 return &file_proto_eth_v1_node_proto_enumTypes[0] 74 } 75 76 func (x PeerDirection) Number() protoreflect.EnumNumber { 77 return protoreflect.EnumNumber(x) 78 } 79 80 // Deprecated: Use PeerDirection.Descriptor instead. 81 func (PeerDirection) EnumDescriptor() ([]byte, []int) { 82 return file_proto_eth_v1_node_proto_rawDescGZIP(), []int{0} 83 } 84 85 type ConnectionState int32 86 87 const ( 88 ConnectionState_DISCONNECTED ConnectionState = 0 89 ConnectionState_CONNECTING ConnectionState = 1 90 ConnectionState_CONNECTED ConnectionState = 2 91 ConnectionState_DISCONNECTING ConnectionState = 3 92 ) 93 94 // Enum value maps for ConnectionState. 95 var ( 96 ConnectionState_name = map[int32]string{ 97 0: "DISCONNECTED", 98 1: "CONNECTING", 99 2: "CONNECTED", 100 3: "DISCONNECTING", 101 } 102 ConnectionState_value = map[string]int32{ 103 "DISCONNECTED": 0, 104 "CONNECTING": 1, 105 "CONNECTED": 2, 106 "DISCONNECTING": 3, 107 } 108 ) 109 110 func (x ConnectionState) Enum() *ConnectionState { 111 p := new(ConnectionState) 112 *p = x 113 return p 114 } 115 116 func (x ConnectionState) String() string { 117 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 118 } 119 120 func (ConnectionState) Descriptor() protoreflect.EnumDescriptor { 121 return file_proto_eth_v1_node_proto_enumTypes[1].Descriptor() 122 } 123 124 func (ConnectionState) Type() protoreflect.EnumType { 125 return &file_proto_eth_v1_node_proto_enumTypes[1] 126 } 127 128 func (x ConnectionState) Number() protoreflect.EnumNumber { 129 return protoreflect.EnumNumber(x) 130 } 131 132 // Deprecated: Use ConnectionState.Descriptor instead. 133 func (ConnectionState) EnumDescriptor() ([]byte, []int) { 134 return file_proto_eth_v1_node_proto_rawDescGZIP(), []int{1} 135 } 136 137 type IdentityResponse struct { 138 state protoimpl.MessageState 139 sizeCache protoimpl.SizeCache 140 unknownFields protoimpl.UnknownFields 141 142 Data *Identity `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` 143 } 144 145 func (x *IdentityResponse) Reset() { 146 *x = IdentityResponse{} 147 if protoimpl.UnsafeEnabled { 148 mi := &file_proto_eth_v1_node_proto_msgTypes[0] 149 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 150 ms.StoreMessageInfo(mi) 151 } 152 } 153 154 func (x *IdentityResponse) String() string { 155 return protoimpl.X.MessageStringOf(x) 156 } 157 158 func (*IdentityResponse) ProtoMessage() {} 159 160 func (x *IdentityResponse) ProtoReflect() protoreflect.Message { 161 mi := &file_proto_eth_v1_node_proto_msgTypes[0] 162 if protoimpl.UnsafeEnabled && x != nil { 163 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 164 if ms.LoadMessageInfo() == nil { 165 ms.StoreMessageInfo(mi) 166 } 167 return ms 168 } 169 return mi.MessageOf(x) 170 } 171 172 // Deprecated: Use IdentityResponse.ProtoReflect.Descriptor instead. 173 func (*IdentityResponse) Descriptor() ([]byte, []int) { 174 return file_proto_eth_v1_node_proto_rawDescGZIP(), []int{0} 175 } 176 177 func (x *IdentityResponse) GetData() *Identity { 178 if x != nil { 179 return x.Data 180 } 181 return nil 182 } 183 184 type Identity struct { 185 state protoimpl.MessageState 186 sizeCache protoimpl.SizeCache 187 unknownFields protoimpl.UnknownFields 188 189 PeerId string `protobuf:"bytes,1,opt,name=peer_id,json=peerId,proto3" json:"peer_id,omitempty"` 190 Enr string `protobuf:"bytes,2,opt,name=enr,proto3" json:"enr,omitempty"` 191 P2PAddresses []string `protobuf:"bytes,3,rep,name=p2p_addresses,json=p2pAddresses,proto3" json:"p2p_addresses,omitempty"` 192 DiscoveryAddresses []string `protobuf:"bytes,4,rep,name=discovery_addresses,json=discoveryAddresses,proto3" json:"discovery_addresses,omitempty"` 193 Metadata *Metadata `protobuf:"bytes,5,opt,name=metadata,proto3" json:"metadata,omitempty"` 194 } 195 196 func (x *Identity) Reset() { 197 *x = Identity{} 198 if protoimpl.UnsafeEnabled { 199 mi := &file_proto_eth_v1_node_proto_msgTypes[1] 200 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 201 ms.StoreMessageInfo(mi) 202 } 203 } 204 205 func (x *Identity) String() string { 206 return protoimpl.X.MessageStringOf(x) 207 } 208 209 func (*Identity) ProtoMessage() {} 210 211 func (x *Identity) ProtoReflect() protoreflect.Message { 212 mi := &file_proto_eth_v1_node_proto_msgTypes[1] 213 if protoimpl.UnsafeEnabled && x != nil { 214 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 215 if ms.LoadMessageInfo() == nil { 216 ms.StoreMessageInfo(mi) 217 } 218 return ms 219 } 220 return mi.MessageOf(x) 221 } 222 223 // Deprecated: Use Identity.ProtoReflect.Descriptor instead. 224 func (*Identity) Descriptor() ([]byte, []int) { 225 return file_proto_eth_v1_node_proto_rawDescGZIP(), []int{1} 226 } 227 228 func (x *Identity) GetPeerId() string { 229 if x != nil { 230 return x.PeerId 231 } 232 return "" 233 } 234 235 func (x *Identity) GetEnr() string { 236 if x != nil { 237 return x.Enr 238 } 239 return "" 240 } 241 242 func (x *Identity) GetP2PAddresses() []string { 243 if x != nil { 244 return x.P2PAddresses 245 } 246 return nil 247 } 248 249 func (x *Identity) GetDiscoveryAddresses() []string { 250 if x != nil { 251 return x.DiscoveryAddresses 252 } 253 return nil 254 } 255 256 func (x *Identity) GetMetadata() *Metadata { 257 if x != nil { 258 return x.Metadata 259 } 260 return nil 261 } 262 263 type Metadata struct { 264 state protoimpl.MessageState 265 sizeCache protoimpl.SizeCache 266 unknownFields protoimpl.UnknownFields 267 268 SeqNumber uint64 `protobuf:"varint,1,opt,name=seq_number,json=seqNumber,proto3" json:"seq_number,omitempty"` 269 Attnets github_com_prysmaticlabs_go_bitfield.Bitvector64 `protobuf:"bytes,2,opt,name=attnets,proto3" json:"attnets,omitempty" cast-type:"github.com/prysmaticlabs/go-bitfield.Bitvector64" ssz-size:"8"` 270 } 271 272 func (x *Metadata) Reset() { 273 *x = Metadata{} 274 if protoimpl.UnsafeEnabled { 275 mi := &file_proto_eth_v1_node_proto_msgTypes[2] 276 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 277 ms.StoreMessageInfo(mi) 278 } 279 } 280 281 func (x *Metadata) String() string { 282 return protoimpl.X.MessageStringOf(x) 283 } 284 285 func (*Metadata) ProtoMessage() {} 286 287 func (x *Metadata) ProtoReflect() protoreflect.Message { 288 mi := &file_proto_eth_v1_node_proto_msgTypes[2] 289 if protoimpl.UnsafeEnabled && x != nil { 290 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 291 if ms.LoadMessageInfo() == nil { 292 ms.StoreMessageInfo(mi) 293 } 294 return ms 295 } 296 return mi.MessageOf(x) 297 } 298 299 // Deprecated: Use Metadata.ProtoReflect.Descriptor instead. 300 func (*Metadata) Descriptor() ([]byte, []int) { 301 return file_proto_eth_v1_node_proto_rawDescGZIP(), []int{2} 302 } 303 304 func (x *Metadata) GetSeqNumber() uint64 { 305 if x != nil { 306 return x.SeqNumber 307 } 308 return 0 309 } 310 311 func (x *Metadata) GetAttnets() github_com_prysmaticlabs_go_bitfield.Bitvector64 { 312 if x != nil { 313 return x.Attnets 314 } 315 return github_com_prysmaticlabs_go_bitfield.Bitvector64(nil) 316 } 317 318 type PeerRequest struct { 319 state protoimpl.MessageState 320 sizeCache protoimpl.SizeCache 321 unknownFields protoimpl.UnknownFields 322 323 PeerId string `protobuf:"bytes,1,opt,name=peer_id,json=peerId,proto3" json:"peer_id,omitempty"` 324 } 325 326 func (x *PeerRequest) Reset() { 327 *x = PeerRequest{} 328 if protoimpl.UnsafeEnabled { 329 mi := &file_proto_eth_v1_node_proto_msgTypes[3] 330 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 331 ms.StoreMessageInfo(mi) 332 } 333 } 334 335 func (x *PeerRequest) String() string { 336 return protoimpl.X.MessageStringOf(x) 337 } 338 339 func (*PeerRequest) ProtoMessage() {} 340 341 func (x *PeerRequest) ProtoReflect() protoreflect.Message { 342 mi := &file_proto_eth_v1_node_proto_msgTypes[3] 343 if protoimpl.UnsafeEnabled && x != nil { 344 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 345 if ms.LoadMessageInfo() == nil { 346 ms.StoreMessageInfo(mi) 347 } 348 return ms 349 } 350 return mi.MessageOf(x) 351 } 352 353 // Deprecated: Use PeerRequest.ProtoReflect.Descriptor instead. 354 func (*PeerRequest) Descriptor() ([]byte, []int) { 355 return file_proto_eth_v1_node_proto_rawDescGZIP(), []int{3} 356 } 357 358 func (x *PeerRequest) GetPeerId() string { 359 if x != nil { 360 return x.PeerId 361 } 362 return "" 363 } 364 365 type PeersRequest struct { 366 state protoimpl.MessageState 367 sizeCache protoimpl.SizeCache 368 unknownFields protoimpl.UnknownFields 369 370 State []ConnectionState `protobuf:"varint,1,rep,packed,name=state,proto3,enum=ethereum.eth.v1.ConnectionState" json:"state,omitempty"` 371 Direction []PeerDirection `protobuf:"varint,2,rep,packed,name=direction,proto3,enum=ethereum.eth.v1.PeerDirection" json:"direction,omitempty"` 372 } 373 374 func (x *PeersRequest) Reset() { 375 *x = PeersRequest{} 376 if protoimpl.UnsafeEnabled { 377 mi := &file_proto_eth_v1_node_proto_msgTypes[4] 378 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 379 ms.StoreMessageInfo(mi) 380 } 381 } 382 383 func (x *PeersRequest) String() string { 384 return protoimpl.X.MessageStringOf(x) 385 } 386 387 func (*PeersRequest) ProtoMessage() {} 388 389 func (x *PeersRequest) ProtoReflect() protoreflect.Message { 390 mi := &file_proto_eth_v1_node_proto_msgTypes[4] 391 if protoimpl.UnsafeEnabled && x != nil { 392 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 393 if ms.LoadMessageInfo() == nil { 394 ms.StoreMessageInfo(mi) 395 } 396 return ms 397 } 398 return mi.MessageOf(x) 399 } 400 401 // Deprecated: Use PeersRequest.ProtoReflect.Descriptor instead. 402 func (*PeersRequest) Descriptor() ([]byte, []int) { 403 return file_proto_eth_v1_node_proto_rawDescGZIP(), []int{4} 404 } 405 406 func (x *PeersRequest) GetState() []ConnectionState { 407 if x != nil { 408 return x.State 409 } 410 return nil 411 } 412 413 func (x *PeersRequest) GetDirection() []PeerDirection { 414 if x != nil { 415 return x.Direction 416 } 417 return nil 418 } 419 420 type PeerResponse struct { 421 state protoimpl.MessageState 422 sizeCache protoimpl.SizeCache 423 unknownFields protoimpl.UnknownFields 424 425 Data *Peer `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` 426 Meta *PeerResponse_Meta `protobuf:"bytes,2,opt,name=meta,proto3" json:"meta,omitempty"` 427 } 428 429 func (x *PeerResponse) Reset() { 430 *x = PeerResponse{} 431 if protoimpl.UnsafeEnabled { 432 mi := &file_proto_eth_v1_node_proto_msgTypes[5] 433 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 434 ms.StoreMessageInfo(mi) 435 } 436 } 437 438 func (x *PeerResponse) String() string { 439 return protoimpl.X.MessageStringOf(x) 440 } 441 442 func (*PeerResponse) ProtoMessage() {} 443 444 func (x *PeerResponse) ProtoReflect() protoreflect.Message { 445 mi := &file_proto_eth_v1_node_proto_msgTypes[5] 446 if protoimpl.UnsafeEnabled && x != nil { 447 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 448 if ms.LoadMessageInfo() == nil { 449 ms.StoreMessageInfo(mi) 450 } 451 return ms 452 } 453 return mi.MessageOf(x) 454 } 455 456 // Deprecated: Use PeerResponse.ProtoReflect.Descriptor instead. 457 func (*PeerResponse) Descriptor() ([]byte, []int) { 458 return file_proto_eth_v1_node_proto_rawDescGZIP(), []int{5} 459 } 460 461 func (x *PeerResponse) GetData() *Peer { 462 if x != nil { 463 return x.Data 464 } 465 return nil 466 } 467 468 func (x *PeerResponse) GetMeta() *PeerResponse_Meta { 469 if x != nil { 470 return x.Meta 471 } 472 return nil 473 } 474 475 type PeersResponse struct { 476 state protoimpl.MessageState 477 sizeCache protoimpl.SizeCache 478 unknownFields protoimpl.UnknownFields 479 480 Data []*Peer `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` 481 } 482 483 func (x *PeersResponse) Reset() { 484 *x = PeersResponse{} 485 if protoimpl.UnsafeEnabled { 486 mi := &file_proto_eth_v1_node_proto_msgTypes[6] 487 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 488 ms.StoreMessageInfo(mi) 489 } 490 } 491 492 func (x *PeersResponse) String() string { 493 return protoimpl.X.MessageStringOf(x) 494 } 495 496 func (*PeersResponse) ProtoMessage() {} 497 498 func (x *PeersResponse) ProtoReflect() protoreflect.Message { 499 mi := &file_proto_eth_v1_node_proto_msgTypes[6] 500 if protoimpl.UnsafeEnabled && x != nil { 501 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 502 if ms.LoadMessageInfo() == nil { 503 ms.StoreMessageInfo(mi) 504 } 505 return ms 506 } 507 return mi.MessageOf(x) 508 } 509 510 // Deprecated: Use PeersResponse.ProtoReflect.Descriptor instead. 511 func (*PeersResponse) Descriptor() ([]byte, []int) { 512 return file_proto_eth_v1_node_proto_rawDescGZIP(), []int{6} 513 } 514 515 func (x *PeersResponse) GetData() []*Peer { 516 if x != nil { 517 return x.Data 518 } 519 return nil 520 } 521 522 type PeerCountResponse struct { 523 state protoimpl.MessageState 524 sizeCache protoimpl.SizeCache 525 unknownFields protoimpl.UnknownFields 526 527 Data *PeerCountResponse_PeerCount `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` 528 } 529 530 func (x *PeerCountResponse) Reset() { 531 *x = PeerCountResponse{} 532 if protoimpl.UnsafeEnabled { 533 mi := &file_proto_eth_v1_node_proto_msgTypes[7] 534 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 535 ms.StoreMessageInfo(mi) 536 } 537 } 538 539 func (x *PeerCountResponse) String() string { 540 return protoimpl.X.MessageStringOf(x) 541 } 542 543 func (*PeerCountResponse) ProtoMessage() {} 544 545 func (x *PeerCountResponse) ProtoReflect() protoreflect.Message { 546 mi := &file_proto_eth_v1_node_proto_msgTypes[7] 547 if protoimpl.UnsafeEnabled && x != nil { 548 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 549 if ms.LoadMessageInfo() == nil { 550 ms.StoreMessageInfo(mi) 551 } 552 return ms 553 } 554 return mi.MessageOf(x) 555 } 556 557 // Deprecated: Use PeerCountResponse.ProtoReflect.Descriptor instead. 558 func (*PeerCountResponse) Descriptor() ([]byte, []int) { 559 return file_proto_eth_v1_node_proto_rawDescGZIP(), []int{7} 560 } 561 562 func (x *PeerCountResponse) GetData() *PeerCountResponse_PeerCount { 563 if x != nil { 564 return x.Data 565 } 566 return nil 567 } 568 569 type Peer struct { 570 state protoimpl.MessageState 571 sizeCache protoimpl.SizeCache 572 unknownFields protoimpl.UnknownFields 573 574 PeerId string `protobuf:"bytes,1,opt,name=peer_id,json=peerId,proto3" json:"peer_id,omitempty"` 575 Enr string `protobuf:"bytes,2,opt,name=enr,proto3" json:"enr,omitempty"` 576 LastSeenP2PAddress string `protobuf:"bytes,3,opt,name=last_seen_p2p_address,json=lastSeenP2pAddress,proto3" json:"last_seen_p2p_address,omitempty"` 577 State ConnectionState `protobuf:"varint,4,opt,name=state,proto3,enum=ethereum.eth.v1.ConnectionState" json:"state,omitempty"` 578 Direction PeerDirection `protobuf:"varint,5,opt,name=direction,proto3,enum=ethereum.eth.v1.PeerDirection" json:"direction,omitempty"` 579 } 580 581 func (x *Peer) Reset() { 582 *x = Peer{} 583 if protoimpl.UnsafeEnabled { 584 mi := &file_proto_eth_v1_node_proto_msgTypes[8] 585 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 586 ms.StoreMessageInfo(mi) 587 } 588 } 589 590 func (x *Peer) String() string { 591 return protoimpl.X.MessageStringOf(x) 592 } 593 594 func (*Peer) ProtoMessage() {} 595 596 func (x *Peer) ProtoReflect() protoreflect.Message { 597 mi := &file_proto_eth_v1_node_proto_msgTypes[8] 598 if protoimpl.UnsafeEnabled && x != nil { 599 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 600 if ms.LoadMessageInfo() == nil { 601 ms.StoreMessageInfo(mi) 602 } 603 return ms 604 } 605 return mi.MessageOf(x) 606 } 607 608 // Deprecated: Use Peer.ProtoReflect.Descriptor instead. 609 func (*Peer) Descriptor() ([]byte, []int) { 610 return file_proto_eth_v1_node_proto_rawDescGZIP(), []int{8} 611 } 612 613 func (x *Peer) GetPeerId() string { 614 if x != nil { 615 return x.PeerId 616 } 617 return "" 618 } 619 620 func (x *Peer) GetEnr() string { 621 if x != nil { 622 return x.Enr 623 } 624 return "" 625 } 626 627 func (x *Peer) GetLastSeenP2PAddress() string { 628 if x != nil { 629 return x.LastSeenP2PAddress 630 } 631 return "" 632 } 633 634 func (x *Peer) GetState() ConnectionState { 635 if x != nil { 636 return x.State 637 } 638 return ConnectionState_DISCONNECTED 639 } 640 641 func (x *Peer) GetDirection() PeerDirection { 642 if x != nil { 643 return x.Direction 644 } 645 return PeerDirection_INBOUND 646 } 647 648 type VersionResponse struct { 649 state protoimpl.MessageState 650 sizeCache protoimpl.SizeCache 651 unknownFields protoimpl.UnknownFields 652 653 Data *Version `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` 654 } 655 656 func (x *VersionResponse) Reset() { 657 *x = VersionResponse{} 658 if protoimpl.UnsafeEnabled { 659 mi := &file_proto_eth_v1_node_proto_msgTypes[9] 660 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 661 ms.StoreMessageInfo(mi) 662 } 663 } 664 665 func (x *VersionResponse) String() string { 666 return protoimpl.X.MessageStringOf(x) 667 } 668 669 func (*VersionResponse) ProtoMessage() {} 670 671 func (x *VersionResponse) ProtoReflect() protoreflect.Message { 672 mi := &file_proto_eth_v1_node_proto_msgTypes[9] 673 if protoimpl.UnsafeEnabled && x != nil { 674 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 675 if ms.LoadMessageInfo() == nil { 676 ms.StoreMessageInfo(mi) 677 } 678 return ms 679 } 680 return mi.MessageOf(x) 681 } 682 683 // Deprecated: Use VersionResponse.ProtoReflect.Descriptor instead. 684 func (*VersionResponse) Descriptor() ([]byte, []int) { 685 return file_proto_eth_v1_node_proto_rawDescGZIP(), []int{9} 686 } 687 688 func (x *VersionResponse) GetData() *Version { 689 if x != nil { 690 return x.Data 691 } 692 return nil 693 } 694 695 type Version struct { 696 state protoimpl.MessageState 697 sizeCache protoimpl.SizeCache 698 unknownFields protoimpl.UnknownFields 699 700 Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` 701 } 702 703 func (x *Version) Reset() { 704 *x = Version{} 705 if protoimpl.UnsafeEnabled { 706 mi := &file_proto_eth_v1_node_proto_msgTypes[10] 707 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 708 ms.StoreMessageInfo(mi) 709 } 710 } 711 712 func (x *Version) String() string { 713 return protoimpl.X.MessageStringOf(x) 714 } 715 716 func (*Version) ProtoMessage() {} 717 718 func (x *Version) ProtoReflect() protoreflect.Message { 719 mi := &file_proto_eth_v1_node_proto_msgTypes[10] 720 if protoimpl.UnsafeEnabled && x != nil { 721 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 722 if ms.LoadMessageInfo() == nil { 723 ms.StoreMessageInfo(mi) 724 } 725 return ms 726 } 727 return mi.MessageOf(x) 728 } 729 730 // Deprecated: Use Version.ProtoReflect.Descriptor instead. 731 func (*Version) Descriptor() ([]byte, []int) { 732 return file_proto_eth_v1_node_proto_rawDescGZIP(), []int{10} 733 } 734 735 func (x *Version) GetVersion() string { 736 if x != nil { 737 return x.Version 738 } 739 return "" 740 } 741 742 type SyncingResponse struct { 743 state protoimpl.MessageState 744 sizeCache protoimpl.SizeCache 745 unknownFields protoimpl.UnknownFields 746 747 Data *SyncInfo `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` 748 } 749 750 func (x *SyncingResponse) Reset() { 751 *x = SyncingResponse{} 752 if protoimpl.UnsafeEnabled { 753 mi := &file_proto_eth_v1_node_proto_msgTypes[11] 754 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 755 ms.StoreMessageInfo(mi) 756 } 757 } 758 759 func (x *SyncingResponse) String() string { 760 return protoimpl.X.MessageStringOf(x) 761 } 762 763 func (*SyncingResponse) ProtoMessage() {} 764 765 func (x *SyncingResponse) ProtoReflect() protoreflect.Message { 766 mi := &file_proto_eth_v1_node_proto_msgTypes[11] 767 if protoimpl.UnsafeEnabled && x != nil { 768 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 769 if ms.LoadMessageInfo() == nil { 770 ms.StoreMessageInfo(mi) 771 } 772 return ms 773 } 774 return mi.MessageOf(x) 775 } 776 777 // Deprecated: Use SyncingResponse.ProtoReflect.Descriptor instead. 778 func (*SyncingResponse) Descriptor() ([]byte, []int) { 779 return file_proto_eth_v1_node_proto_rawDescGZIP(), []int{11} 780 } 781 782 func (x *SyncingResponse) GetData() *SyncInfo { 783 if x != nil { 784 return x.Data 785 } 786 return nil 787 } 788 789 type SyncInfo struct { 790 state protoimpl.MessageState 791 sizeCache protoimpl.SizeCache 792 unknownFields protoimpl.UnknownFields 793 794 HeadSlot github_com_prysmaticlabs_eth2_types.Slot `protobuf:"varint,1,opt,name=head_slot,json=headSlot,proto3" json:"head_slot,omitempty" cast-type:"github.com/prysmaticlabs/eth2-types.Slot"` 795 SyncDistance github_com_prysmaticlabs_eth2_types.Slot `protobuf:"varint,2,opt,name=sync_distance,json=syncDistance,proto3" json:"sync_distance,omitempty" cast-type:"github.com/prysmaticlabs/eth2-types.Slot"` 796 IsSyncing bool `protobuf:"varint,3,opt,name=is_syncing,json=isSyncing,proto3" json:"is_syncing,omitempty"` 797 } 798 799 func (x *SyncInfo) Reset() { 800 *x = SyncInfo{} 801 if protoimpl.UnsafeEnabled { 802 mi := &file_proto_eth_v1_node_proto_msgTypes[12] 803 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 804 ms.StoreMessageInfo(mi) 805 } 806 } 807 808 func (x *SyncInfo) String() string { 809 return protoimpl.X.MessageStringOf(x) 810 } 811 812 func (*SyncInfo) ProtoMessage() {} 813 814 func (x *SyncInfo) ProtoReflect() protoreflect.Message { 815 mi := &file_proto_eth_v1_node_proto_msgTypes[12] 816 if protoimpl.UnsafeEnabled && x != nil { 817 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 818 if ms.LoadMessageInfo() == nil { 819 ms.StoreMessageInfo(mi) 820 } 821 return ms 822 } 823 return mi.MessageOf(x) 824 } 825 826 // Deprecated: Use SyncInfo.ProtoReflect.Descriptor instead. 827 func (*SyncInfo) Descriptor() ([]byte, []int) { 828 return file_proto_eth_v1_node_proto_rawDescGZIP(), []int{12} 829 } 830 831 func (x *SyncInfo) GetHeadSlot() github_com_prysmaticlabs_eth2_types.Slot { 832 if x != nil { 833 return x.HeadSlot 834 } 835 return github_com_prysmaticlabs_eth2_types.Slot(0) 836 } 837 838 func (x *SyncInfo) GetSyncDistance() github_com_prysmaticlabs_eth2_types.Slot { 839 if x != nil { 840 return x.SyncDistance 841 } 842 return github_com_prysmaticlabs_eth2_types.Slot(0) 843 } 844 845 func (x *SyncInfo) GetIsSyncing() bool { 846 if x != nil { 847 return x.IsSyncing 848 } 849 return false 850 } 851 852 type PeerResponse_Meta struct { 853 state protoimpl.MessageState 854 sizeCache protoimpl.SizeCache 855 unknownFields protoimpl.UnknownFields 856 857 Count uint64 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"` 858 } 859 860 func (x *PeerResponse_Meta) Reset() { 861 *x = PeerResponse_Meta{} 862 if protoimpl.UnsafeEnabled { 863 mi := &file_proto_eth_v1_node_proto_msgTypes[13] 864 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 865 ms.StoreMessageInfo(mi) 866 } 867 } 868 869 func (x *PeerResponse_Meta) String() string { 870 return protoimpl.X.MessageStringOf(x) 871 } 872 873 func (*PeerResponse_Meta) ProtoMessage() {} 874 875 func (x *PeerResponse_Meta) ProtoReflect() protoreflect.Message { 876 mi := &file_proto_eth_v1_node_proto_msgTypes[13] 877 if protoimpl.UnsafeEnabled && x != nil { 878 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 879 if ms.LoadMessageInfo() == nil { 880 ms.StoreMessageInfo(mi) 881 } 882 return ms 883 } 884 return mi.MessageOf(x) 885 } 886 887 // Deprecated: Use PeerResponse_Meta.ProtoReflect.Descriptor instead. 888 func (*PeerResponse_Meta) Descriptor() ([]byte, []int) { 889 return file_proto_eth_v1_node_proto_rawDescGZIP(), []int{5, 0} 890 } 891 892 func (x *PeerResponse_Meta) GetCount() uint64 { 893 if x != nil { 894 return x.Count 895 } 896 return 0 897 } 898 899 type PeerCountResponse_PeerCount struct { 900 state protoimpl.MessageState 901 sizeCache protoimpl.SizeCache 902 unknownFields protoimpl.UnknownFields 903 904 Disconnected uint64 `protobuf:"varint,1,opt,name=disconnected,proto3" json:"disconnected,omitempty"` 905 Connecting uint64 `protobuf:"varint,2,opt,name=connecting,proto3" json:"connecting,omitempty"` 906 Connected uint64 `protobuf:"varint,3,opt,name=connected,proto3" json:"connected,omitempty"` 907 Disconnecting uint64 `protobuf:"varint,4,opt,name=disconnecting,proto3" json:"disconnecting,omitempty"` 908 } 909 910 func (x *PeerCountResponse_PeerCount) Reset() { 911 *x = PeerCountResponse_PeerCount{} 912 if protoimpl.UnsafeEnabled { 913 mi := &file_proto_eth_v1_node_proto_msgTypes[14] 914 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 915 ms.StoreMessageInfo(mi) 916 } 917 } 918 919 func (x *PeerCountResponse_PeerCount) String() string { 920 return protoimpl.X.MessageStringOf(x) 921 } 922 923 func (*PeerCountResponse_PeerCount) ProtoMessage() {} 924 925 func (x *PeerCountResponse_PeerCount) ProtoReflect() protoreflect.Message { 926 mi := &file_proto_eth_v1_node_proto_msgTypes[14] 927 if protoimpl.UnsafeEnabled && x != nil { 928 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 929 if ms.LoadMessageInfo() == nil { 930 ms.StoreMessageInfo(mi) 931 } 932 return ms 933 } 934 return mi.MessageOf(x) 935 } 936 937 // Deprecated: Use PeerCountResponse_PeerCount.ProtoReflect.Descriptor instead. 938 func (*PeerCountResponse_PeerCount) Descriptor() ([]byte, []int) { 939 return file_proto_eth_v1_node_proto_rawDescGZIP(), []int{7, 0} 940 } 941 942 func (x *PeerCountResponse_PeerCount) GetDisconnected() uint64 { 943 if x != nil { 944 return x.Disconnected 945 } 946 return 0 947 } 948 949 func (x *PeerCountResponse_PeerCount) GetConnecting() uint64 { 950 if x != nil { 951 return x.Connecting 952 } 953 return 0 954 } 955 956 func (x *PeerCountResponse_PeerCount) GetConnected() uint64 { 957 if x != nil { 958 return x.Connected 959 } 960 return 0 961 } 962 963 func (x *PeerCountResponse_PeerCount) GetDisconnecting() uint64 { 964 if x != nil { 965 return x.Disconnecting 966 } 967 return 0 968 } 969 970 var File_proto_eth_v1_node_proto protoreflect.FileDescriptor 971 972 var file_proto_eth_v1_node_proto_rawDesc = []byte{ 973 0x0a, 0x17, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x65, 0x74, 0x68, 0x2f, 0x76, 0x31, 0x2f, 0x6e, 974 0x6f, 0x64, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0f, 0x65, 0x74, 0x68, 0x65, 0x72, 975 0x65, 0x75, 0x6d, 0x2e, 0x65, 0x74, 0x68, 0x2e, 0x76, 0x31, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 976 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 977 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 978 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 979 0x70, 0x74, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 980 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 981 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x65, 982 0x74, 0x68, 0x2f, 0x65, 0x78, 0x74, 0x2f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 983 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x41, 0x0a, 0x10, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 984 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2d, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 985 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x65, 0x74, 0x68, 0x65, 0x72, 0x65, 0x75, 986 0x6d, 0x2e, 0x65, 0x74, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 987 0x79, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0xc2, 0x01, 0x0a, 0x08, 0x49, 0x64, 0x65, 0x6e, 988 0x74, 0x69, 0x74, 0x79, 0x12, 0x17, 0x0a, 0x07, 0x70, 0x65, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 989 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x65, 0x65, 0x72, 0x49, 0x64, 0x12, 0x10, 0x0a, 990 0x03, 0x65, 0x6e, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x65, 0x6e, 0x72, 0x12, 991 0x23, 0x0a, 0x0d, 0x70, 0x32, 0x70, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 992 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0c, 0x70, 0x32, 0x70, 0x41, 0x64, 0x64, 0x72, 0x65, 993 0x73, 0x73, 0x65, 0x73, 0x12, 0x2f, 0x0a, 0x13, 0x64, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 994 0x79, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 995 0x09, 0x52, 0x12, 0x64, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x41, 0x64, 0x64, 0x72, 996 0x65, 0x73, 0x73, 0x65, 0x73, 0x12, 0x35, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 997 0x61, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x65, 0x74, 0x68, 0x65, 0x72, 0x65, 998 0x75, 0x6d, 0x2e, 0x65, 0x74, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 999 0x74, 0x61, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x22, 0x7e, 0x0a, 0x08, 1000 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x65, 0x71, 0x5f, 1001 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x73, 0x65, 1002 0x71, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x53, 0x0a, 0x07, 0x61, 0x74, 0x74, 0x6e, 0x65, 1003 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x42, 0x39, 0x8a, 0xb5, 0x18, 0x01, 0x38, 0x82, 1004 0xb5, 0x18, 0x30, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x70, 0x72, 1005 0x79, 0x73, 0x6d, 0x61, 0x74, 0x69, 0x63, 0x6c, 0x61, 0x62, 0x73, 0x2f, 0x67, 0x6f, 0x2d, 0x62, 1006 0x69, 0x74, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x2e, 0x42, 0x69, 0x74, 0x76, 0x65, 0x63, 0x74, 0x6f, 1007 0x72, 0x36, 0x34, 0x52, 0x07, 0x61, 0x74, 0x74, 0x6e, 0x65, 0x74, 0x73, 0x22, 0x26, 0x0a, 0x0b, 1008 0x50, 0x65, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x07, 0x70, 1009 0x65, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x65, 1010 0x65, 0x72, 0x49, 0x64, 0x22, 0x84, 0x01, 0x0a, 0x0c, 0x50, 0x65, 0x65, 0x72, 0x73, 0x52, 0x65, 1011 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x36, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 1012 0x20, 0x03, 0x28, 0x0e, 0x32, 0x20, 0x2e, 0x65, 0x74, 0x68, 0x65, 0x72, 0x65, 0x75, 0x6d, 0x2e, 1013 0x65, 0x74, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 1014 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x3c, 0x0a, 1015 0x09, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0e, 1016 0x32, 0x1e, 0x2e, 0x65, 0x74, 0x68, 0x65, 0x72, 0x65, 0x75, 0x6d, 0x2e, 0x65, 0x74, 0x68, 0x2e, 1017 0x76, 0x31, 0x2e, 0x50, 0x65, 0x65, 0x72, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 1018 0x52, 0x09, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x8f, 0x01, 0x0a, 0x0c, 1019 0x50, 0x65, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x29, 0x0a, 0x04, 1020 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x65, 0x74, 0x68, 1021 0x65, 0x72, 0x65, 0x75, 0x6d, 0x2e, 0x65, 0x74, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x65, 0x65, 1022 0x72, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x36, 0x0a, 0x04, 0x6d, 0x65, 0x74, 0x61, 0x18, 1023 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x65, 0x74, 0x68, 0x65, 0x72, 0x65, 0x75, 0x6d, 1024 0x2e, 0x65, 0x74, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x65, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 1025 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x52, 0x04, 0x6d, 0x65, 0x74, 0x61, 0x1a, 1026 0x1c, 0x0a, 0x04, 0x4d, 0x65, 0x74, 0x61, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 1027 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x3a, 0x0a, 1028 0x0d, 0x50, 0x65, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x29, 1029 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x65, 1030 0x74, 0x68, 0x65, 0x72, 0x65, 0x75, 0x6d, 0x2e, 0x65, 0x74, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x50, 1031 0x65, 0x65, 0x72, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0xeb, 0x01, 0x0a, 0x11, 0x50, 0x65, 1032 0x65, 0x72, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 1033 0x40, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 1034 0x65, 0x74, 0x68, 0x65, 0x72, 0x65, 0x75, 0x6d, 0x2e, 0x65, 0x74, 0x68, 0x2e, 0x76, 0x31, 0x2e, 1035 0x50, 0x65, 0x65, 0x72, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 1036 0x65, 0x2e, 0x50, 0x65, 0x65, 0x72, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x04, 0x64, 0x61, 0x74, 1037 0x61, 0x1a, 0x93, 0x01, 0x0a, 0x09, 0x50, 0x65, 0x65, 0x72, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 1038 0x22, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x65, 0x64, 0x18, 1039 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0c, 0x64, 0x69, 0x73, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 1040 0x74, 0x65, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6e, 1041 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 1042 0x69, 0x6e, 0x67, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x65, 0x64, 1043 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x65, 1044 0x64, 0x12, 0x24, 0x0a, 0x0d, 0x64, 0x69, 0x73, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 1045 0x6e, 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, 0x64, 0x69, 0x73, 0x63, 0x6f, 0x6e, 1046 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6e, 0x67, 0x22, 0xda, 0x01, 0x0a, 0x04, 0x50, 0x65, 0x65, 0x72, 1047 0x12, 0x17, 0x0a, 0x07, 0x70, 0x65, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 1048 0x09, 0x52, 0x06, 0x70, 0x65, 0x65, 0x72, 0x49, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x65, 0x6e, 0x72, 1049 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x65, 0x6e, 0x72, 0x12, 0x31, 0x0a, 0x15, 0x6c, 1050 0x61, 0x73, 0x74, 0x5f, 0x73, 0x65, 0x65, 0x6e, 0x5f, 0x70, 0x32, 0x70, 0x5f, 0x61, 0x64, 0x64, 1051 0x72, 0x65, 0x73, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x12, 0x6c, 0x61, 0x73, 0x74, 1052 0x53, 0x65, 0x65, 0x6e, 0x50, 0x32, 0x70, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x36, 1053 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x20, 0x2e, 1054 0x65, 0x74, 0x68, 0x65, 0x72, 0x65, 0x75, 0x6d, 0x2e, 0x65, 0x74, 0x68, 0x2e, 0x76, 0x31, 0x2e, 1055 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 1056 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x3c, 0x0a, 0x09, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 1057 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x65, 0x74, 0x68, 0x65, 1058 0x72, 0x65, 0x75, 0x6d, 0x2e, 0x65, 0x74, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x65, 0x65, 0x72, 1059 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x09, 0x64, 0x69, 0x72, 0x65, 0x63, 1060 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3f, 0x0a, 0x0f, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 1061 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2c, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 1062 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x65, 0x74, 0x68, 0x65, 0x72, 0x65, 0x75, 0x6d, 1063 0x2e, 0x65, 0x74, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 1064 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x23, 0x0a, 0x07, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 1065 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 1066 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x40, 0x0a, 0x0f, 0x53, 0x79, 1067 0x6e, 0x63, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2d, 0x0a, 1068 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x65, 0x74, 1069 0x68, 0x65, 0x72, 0x65, 0x75, 0x6d, 0x2e, 0x65, 0x74, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x79, 1070 0x6e, 0x63, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0xc7, 0x01, 0x0a, 1071 0x08, 0x53, 0x79, 0x6e, 0x63, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x49, 0x0a, 0x09, 0x68, 0x65, 0x61, 1072 0x64, 0x5f, 0x73, 0x6c, 0x6f, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x42, 0x2c, 0x82, 0xb5, 1073 0x18, 0x28, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x70, 0x72, 0x79, 1074 0x73, 0x6d, 0x61, 0x74, 0x69, 0x63, 0x6c, 0x61, 0x62, 0x73, 0x2f, 0x65, 0x74, 0x68, 0x32, 0x2d, 1075 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x53, 0x6c, 0x6f, 0x74, 0x52, 0x08, 0x68, 0x65, 0x61, 0x64, 1076 0x53, 0x6c, 0x6f, 0x74, 0x12, 0x51, 0x0a, 0x0d, 0x73, 0x79, 0x6e, 0x63, 0x5f, 0x64, 0x69, 0x73, 1077 0x74, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x42, 0x2c, 0x82, 0xb5, 0x18, 1078 0x28, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x70, 0x72, 0x79, 0x73, 1079 0x6d, 0x61, 0x74, 0x69, 0x63, 0x6c, 0x61, 0x62, 0x73, 0x2f, 0x65, 0x74, 0x68, 0x32, 0x2d, 0x74, 1080 0x79, 0x70, 0x65, 0x73, 0x2e, 0x53, 0x6c, 0x6f, 0x74, 0x52, 0x0c, 0x73, 0x79, 0x6e, 0x63, 0x44, 1081 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x69, 0x73, 0x5f, 0x73, 0x79, 1082 0x6e, 0x63, 0x69, 0x6e, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x69, 0x73, 0x53, 1083 0x79, 0x6e, 0x63, 0x69, 0x6e, 0x67, 0x2a, 0x2a, 0x0a, 0x0d, 0x50, 0x65, 0x65, 0x72, 0x44, 0x69, 1084 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x0b, 0x0a, 0x07, 0x49, 0x4e, 0x42, 0x4f, 0x55, 1085 0x4e, 0x44, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x4f, 0x55, 0x54, 0x42, 0x4f, 0x55, 0x4e, 0x44, 1086 0x10, 0x01, 0x2a, 0x55, 0x0a, 0x0f, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 1087 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x10, 0x0a, 0x0c, 0x44, 0x49, 0x53, 0x43, 0x4f, 0x4e, 0x4e, 1088 0x45, 0x43, 0x54, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0e, 0x0a, 0x0a, 0x43, 0x4f, 0x4e, 0x4e, 0x45, 1089 0x43, 0x54, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x43, 0x4f, 0x4e, 0x4e, 0x45, 1090 0x43, 0x54, 0x45, 0x44, 0x10, 0x02, 0x12, 0x11, 0x0a, 0x0d, 0x44, 0x49, 0x53, 0x43, 0x4f, 0x4e, 1091 0x4e, 0x45, 0x43, 0x54, 0x49, 0x4e, 0x47, 0x10, 0x03, 0x32, 0xde, 0x05, 0x0a, 0x0a, 0x42, 0x65, 1092 0x61, 0x63, 0x6f, 0x6e, 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x67, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x49, 1093 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 1094 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 1095 0x21, 0x2e, 0x65, 0x74, 0x68, 0x65, 0x72, 0x65, 0x75, 0x6d, 0x2e, 0x65, 0x74, 0x68, 0x2e, 0x76, 1096 0x31, 0x2e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 1097 0x73, 0x65, 0x22, 0x1d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x17, 0x12, 0x15, 0x2f, 0x65, 0x74, 0x68, 1098 0x2f, 0x76, 0x31, 0x2f, 0x6e, 0x6f, 0x64, 0x65, 0x2f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 1099 0x79, 0x12, 0x66, 0x0a, 0x09, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x65, 0x65, 0x72, 0x73, 0x12, 0x1d, 1100 0x2e, 0x65, 0x74, 0x68, 0x65, 0x72, 0x65, 0x75, 0x6d, 0x2e, 0x65, 0x74, 0x68, 0x2e, 0x76, 0x31, 1101 0x2e, 0x50, 0x65, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 1102 0x65, 0x74, 0x68, 0x65, 0x72, 0x65, 0x75, 0x6d, 0x2e, 0x65, 0x74, 0x68, 0x2e, 0x76, 0x31, 0x2e, 1103 0x50, 0x65, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1a, 0x82, 1104 0xd3, 0xe4, 0x93, 0x02, 0x14, 0x12, 0x12, 0x2f, 0x65, 0x74, 0x68, 0x2f, 0x76, 0x31, 0x2f, 0x6e, 1105 0x6f, 0x64, 0x65, 0x2f, 0x70, 0x65, 0x65, 0x72, 0x73, 0x12, 0x6c, 0x0a, 0x07, 0x47, 0x65, 0x74, 1106 0x50, 0x65, 0x65, 0x72, 0x12, 0x1c, 0x2e, 0x65, 0x74, 0x68, 0x65, 0x72, 0x65, 0x75, 0x6d, 0x2e, 1107 0x65, 0x74, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x65, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 1108 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x65, 0x74, 0x68, 0x65, 0x72, 0x65, 0x75, 0x6d, 0x2e, 0x65, 0x74, 1109 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x65, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 1110 0x65, 0x22, 0x24, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1e, 0x12, 0x1c, 0x2f, 0x65, 0x74, 0x68, 0x2f, 1111 0x76, 0x31, 0x2f, 0x6e, 0x6f, 0x64, 0x65, 0x2f, 0x70, 0x65, 0x65, 0x72, 0x73, 0x2f, 0x7b, 0x70, 1112 0x65, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x7d, 0x12, 0x68, 0x0a, 0x09, 0x50, 0x65, 0x65, 0x72, 0x43, 1113 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 1114 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x22, 0x2e, 0x65, 1115 0x74, 0x68, 0x65, 0x72, 0x65, 0x75, 0x6d, 0x2e, 0x65, 0x74, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x50, 1116 0x65, 0x65, 0x72, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 1117 0x22, 0x1f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x19, 0x12, 0x17, 0x2f, 0x65, 0x74, 0x68, 0x2f, 0x76, 1118 0x31, 0x2f, 0x6e, 0x6f, 0x64, 0x65, 0x2f, 0x70, 0x65, 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 1119 0x74, 0x12, 0x67, 0x0a, 0x0d, 0x47, 0x65, 0x74, 0x53, 0x79, 0x6e, 0x63, 0x53, 0x74, 0x61, 0x74, 1120 0x75, 0x73, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 1121 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x20, 0x2e, 0x65, 0x74, 0x68, 1122 0x65, 0x72, 0x65, 0x75, 0x6d, 0x2e, 0x65, 0x74, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x79, 0x6e, 1123 0x63, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1c, 0x82, 0xd3, 1124 0xe4, 0x93, 0x02, 0x16, 0x12, 0x14, 0x2f, 0x65, 0x74, 0x68, 0x2f, 0x76, 0x31, 0x2f, 0x6e, 0x6f, 1125 0x64, 0x65, 0x2f, 0x73, 0x79, 0x6e, 0x63, 0x69, 0x6e, 0x67, 0x12, 0x64, 0x0a, 0x0a, 0x47, 0x65, 1126 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 1127 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 1128 0x1a, 0x20, 0x2e, 0x65, 0x74, 0x68, 0x65, 0x72, 0x65, 0x75, 0x6d, 0x2e, 0x65, 0x74, 0x68, 0x2e, 1129 0x76, 0x31, 0x2e, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 1130 0x73, 0x65, 0x22, 0x1c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x16, 0x12, 0x14, 0x2f, 0x65, 0x74, 0x68, 1131 0x2f, 0x76, 0x31, 0x2f, 0x6e, 0x6f, 0x64, 0x65, 0x2f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 1132 0x12, 0x58, 0x0a, 0x09, 0x47, 0x65, 0x74, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x12, 0x16, 0x2e, 1133 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 1134 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 1135 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x1b, 0x82, 1136 0xd3, 0xe4, 0x93, 0x02, 0x15, 0x12, 0x13, 0x2f, 0x65, 0x74, 0x68, 0x2f, 0x76, 0x31, 0x2f, 0x6e, 1137 0x6f, 0x64, 0x65, 0x2f, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x42, 0x79, 0x0a, 0x13, 0x6f, 0x72, 1138 0x67, 0x2e, 0x65, 0x74, 0x68, 0x65, 0x72, 0x65, 0x75, 0x6d, 0x2e, 0x65, 0x74, 0x68, 0x2e, 0x76, 1139 0x31, 0x42, 0x0f, 0x42, 0x65, 0x61, 0x63, 0x6f, 0x6e, 0x4e, 0x6f, 0x64, 0x65, 0x50, 0x72, 0x6f, 1140 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 1141 0x2f, 0x70, 0x72, 0x79, 0x73, 0x6d, 0x61, 0x74, 0x69, 0x63, 0x6c, 0x61, 0x62, 0x73, 0x2f, 0x70, 1142 0x72, 0x79, 0x73, 0x6d, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x65, 0x74, 0x68, 0x2f, 0x76, 1143 0x31, 0xaa, 0x02, 0x0f, 0x45, 0x74, 0x68, 0x65, 0x72, 0x65, 0x75, 0x6d, 0x2e, 0x45, 0x74, 0x68, 1144 0x2e, 0x76, 0x31, 0xca, 0x02, 0x0f, 0x45, 0x74, 0x68, 0x65, 0x72, 0x65, 0x75, 0x6d, 0x5c, 0x45, 1145 0x74, 0x68, 0x5c, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 1146 } 1147 1148 var ( 1149 file_proto_eth_v1_node_proto_rawDescOnce sync.Once 1150 file_proto_eth_v1_node_proto_rawDescData = file_proto_eth_v1_node_proto_rawDesc 1151 ) 1152 1153 func file_proto_eth_v1_node_proto_rawDescGZIP() []byte { 1154 file_proto_eth_v1_node_proto_rawDescOnce.Do(func() { 1155 file_proto_eth_v1_node_proto_rawDescData = protoimpl.X.CompressGZIP(file_proto_eth_v1_node_proto_rawDescData) 1156 }) 1157 return file_proto_eth_v1_node_proto_rawDescData 1158 } 1159 1160 var file_proto_eth_v1_node_proto_enumTypes = make([]protoimpl.EnumInfo, 2) 1161 var file_proto_eth_v1_node_proto_msgTypes = make([]protoimpl.MessageInfo, 15) 1162 var file_proto_eth_v1_node_proto_goTypes = []interface{}{ 1163 (PeerDirection)(0), // 0: ethereum.eth.v1.PeerDirection 1164 (ConnectionState)(0), // 1: ethereum.eth.v1.ConnectionState 1165 (*IdentityResponse)(nil), // 2: ethereum.eth.v1.IdentityResponse 1166 (*Identity)(nil), // 3: ethereum.eth.v1.Identity 1167 (*Metadata)(nil), // 4: ethereum.eth.v1.Metadata 1168 (*PeerRequest)(nil), // 5: ethereum.eth.v1.PeerRequest 1169 (*PeersRequest)(nil), // 6: ethereum.eth.v1.PeersRequest 1170 (*PeerResponse)(nil), // 7: ethereum.eth.v1.PeerResponse 1171 (*PeersResponse)(nil), // 8: ethereum.eth.v1.PeersResponse 1172 (*PeerCountResponse)(nil), // 9: ethereum.eth.v1.PeerCountResponse 1173 (*Peer)(nil), // 10: ethereum.eth.v1.Peer 1174 (*VersionResponse)(nil), // 11: ethereum.eth.v1.VersionResponse 1175 (*Version)(nil), // 12: ethereum.eth.v1.Version 1176 (*SyncingResponse)(nil), // 13: ethereum.eth.v1.SyncingResponse 1177 (*SyncInfo)(nil), // 14: ethereum.eth.v1.SyncInfo 1178 (*PeerResponse_Meta)(nil), // 15: ethereum.eth.v1.PeerResponse.Meta 1179 (*PeerCountResponse_PeerCount)(nil), // 16: ethereum.eth.v1.PeerCountResponse.PeerCount 1180 (*empty.Empty)(nil), // 17: google.protobuf.Empty 1181 } 1182 var file_proto_eth_v1_node_proto_depIdxs = []int32{ 1183 3, // 0: ethereum.eth.v1.IdentityResponse.data:type_name -> ethereum.eth.v1.Identity 1184 4, // 1: ethereum.eth.v1.Identity.metadata:type_name -> ethereum.eth.v1.Metadata 1185 1, // 2: ethereum.eth.v1.PeersRequest.state:type_name -> ethereum.eth.v1.ConnectionState 1186 0, // 3: ethereum.eth.v1.PeersRequest.direction:type_name -> ethereum.eth.v1.PeerDirection 1187 10, // 4: ethereum.eth.v1.PeerResponse.data:type_name -> ethereum.eth.v1.Peer 1188 15, // 5: ethereum.eth.v1.PeerResponse.meta:type_name -> ethereum.eth.v1.PeerResponse.Meta 1189 10, // 6: ethereum.eth.v1.PeersResponse.data:type_name -> ethereum.eth.v1.Peer 1190 16, // 7: ethereum.eth.v1.PeerCountResponse.data:type_name -> ethereum.eth.v1.PeerCountResponse.PeerCount 1191 1, // 8: ethereum.eth.v1.Peer.state:type_name -> ethereum.eth.v1.ConnectionState 1192 0, // 9: ethereum.eth.v1.Peer.direction:type_name -> ethereum.eth.v1.PeerDirection 1193 12, // 10: ethereum.eth.v1.VersionResponse.data:type_name -> ethereum.eth.v1.Version 1194 14, // 11: ethereum.eth.v1.SyncingResponse.data:type_name -> ethereum.eth.v1.SyncInfo 1195 17, // 12: ethereum.eth.v1.BeaconNode.GetIdentity:input_type -> google.protobuf.Empty 1196 6, // 13: ethereum.eth.v1.BeaconNode.ListPeers:input_type -> ethereum.eth.v1.PeersRequest 1197 5, // 14: ethereum.eth.v1.BeaconNode.GetPeer:input_type -> ethereum.eth.v1.PeerRequest 1198 17, // 15: ethereum.eth.v1.BeaconNode.PeerCount:input_type -> google.protobuf.Empty 1199 17, // 16: ethereum.eth.v1.BeaconNode.GetSyncStatus:input_type -> google.protobuf.Empty 1200 17, // 17: ethereum.eth.v1.BeaconNode.GetVersion:input_type -> google.protobuf.Empty 1201 17, // 18: ethereum.eth.v1.BeaconNode.GetHealth:input_type -> google.protobuf.Empty 1202 2, // 19: ethereum.eth.v1.BeaconNode.GetIdentity:output_type -> ethereum.eth.v1.IdentityResponse 1203 8, // 20: ethereum.eth.v1.BeaconNode.ListPeers:output_type -> ethereum.eth.v1.PeersResponse 1204 7, // 21: ethereum.eth.v1.BeaconNode.GetPeer:output_type -> ethereum.eth.v1.PeerResponse 1205 9, // 22: ethereum.eth.v1.BeaconNode.PeerCount:output_type -> ethereum.eth.v1.PeerCountResponse 1206 13, // 23: ethereum.eth.v1.BeaconNode.GetSyncStatus:output_type -> ethereum.eth.v1.SyncingResponse 1207 11, // 24: ethereum.eth.v1.BeaconNode.GetVersion:output_type -> ethereum.eth.v1.VersionResponse 1208 17, // 25: ethereum.eth.v1.BeaconNode.GetHealth:output_type -> google.protobuf.Empty 1209 19, // [19:26] is the sub-list for method output_type 1210 12, // [12:19] is the sub-list for method input_type 1211 12, // [12:12] is the sub-list for extension type_name 1212 12, // [12:12] is the sub-list for extension extendee 1213 0, // [0:12] is the sub-list for field type_name 1214 } 1215 1216 func init() { file_proto_eth_v1_node_proto_init() } 1217 func file_proto_eth_v1_node_proto_init() { 1218 if File_proto_eth_v1_node_proto != nil { 1219 return 1220 } 1221 if !protoimpl.UnsafeEnabled { 1222 file_proto_eth_v1_node_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 1223 switch v := v.(*IdentityResponse); i { 1224 case 0: 1225 return &v.state 1226 case 1: 1227 return &v.sizeCache 1228 case 2: 1229 return &v.unknownFields 1230 default: 1231 return nil 1232 } 1233 } 1234 file_proto_eth_v1_node_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 1235 switch v := v.(*Identity); i { 1236 case 0: 1237 return &v.state 1238 case 1: 1239 return &v.sizeCache 1240 case 2: 1241 return &v.unknownFields 1242 default: 1243 return nil 1244 } 1245 } 1246 file_proto_eth_v1_node_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 1247 switch v := v.(*Metadata); i { 1248 case 0: 1249 return &v.state 1250 case 1: 1251 return &v.sizeCache 1252 case 2: 1253 return &v.unknownFields 1254 default: 1255 return nil 1256 } 1257 } 1258 file_proto_eth_v1_node_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 1259 switch v := v.(*PeerRequest); i { 1260 case 0: 1261 return &v.state 1262 case 1: 1263 return &v.sizeCache 1264 case 2: 1265 return &v.unknownFields 1266 default: 1267 return nil 1268 } 1269 } 1270 file_proto_eth_v1_node_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { 1271 switch v := v.(*PeersRequest); i { 1272 case 0: 1273 return &v.state 1274 case 1: 1275 return &v.sizeCache 1276 case 2: 1277 return &v.unknownFields 1278 default: 1279 return nil 1280 } 1281 } 1282 file_proto_eth_v1_node_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { 1283 switch v := v.(*PeerResponse); i { 1284 case 0: 1285 return &v.state 1286 case 1: 1287 return &v.sizeCache 1288 case 2: 1289 return &v.unknownFields 1290 default: 1291 return nil 1292 } 1293 } 1294 file_proto_eth_v1_node_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { 1295 switch v := v.(*PeersResponse); i { 1296 case 0: 1297 return &v.state 1298 case 1: 1299 return &v.sizeCache 1300 case 2: 1301 return &v.unknownFields 1302 default: 1303 return nil 1304 } 1305 } 1306 file_proto_eth_v1_node_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { 1307 switch v := v.(*PeerCountResponse); i { 1308 case 0: 1309 return &v.state 1310 case 1: 1311 return &v.sizeCache 1312 case 2: 1313 return &v.unknownFields 1314 default: 1315 return nil 1316 } 1317 } 1318 file_proto_eth_v1_node_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { 1319 switch v := v.(*Peer); i { 1320 case 0: 1321 return &v.state 1322 case 1: 1323 return &v.sizeCache 1324 case 2: 1325 return &v.unknownFields 1326 default: 1327 return nil 1328 } 1329 } 1330 file_proto_eth_v1_node_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { 1331 switch v := v.(*VersionResponse); i { 1332 case 0: 1333 return &v.state 1334 case 1: 1335 return &v.sizeCache 1336 case 2: 1337 return &v.unknownFields 1338 default: 1339 return nil 1340 } 1341 } 1342 file_proto_eth_v1_node_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { 1343 switch v := v.(*Version); i { 1344 case 0: 1345 return &v.state 1346 case 1: 1347 return &v.sizeCache 1348 case 2: 1349 return &v.unknownFields 1350 default: 1351 return nil 1352 } 1353 } 1354 file_proto_eth_v1_node_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { 1355 switch v := v.(*SyncingResponse); i { 1356 case 0: 1357 return &v.state 1358 case 1: 1359 return &v.sizeCache 1360 case 2: 1361 return &v.unknownFields 1362 default: 1363 return nil 1364 } 1365 } 1366 file_proto_eth_v1_node_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { 1367 switch v := v.(*SyncInfo); i { 1368 case 0: 1369 return &v.state 1370 case 1: 1371 return &v.sizeCache 1372 case 2: 1373 return &v.unknownFields 1374 default: 1375 return nil 1376 } 1377 } 1378 file_proto_eth_v1_node_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { 1379 switch v := v.(*PeerResponse_Meta); i { 1380 case 0: 1381 return &v.state 1382 case 1: 1383 return &v.sizeCache 1384 case 2: 1385 return &v.unknownFields 1386 default: 1387 return nil 1388 } 1389 } 1390 file_proto_eth_v1_node_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { 1391 switch v := v.(*PeerCountResponse_PeerCount); i { 1392 case 0: 1393 return &v.state 1394 case 1: 1395 return &v.sizeCache 1396 case 2: 1397 return &v.unknownFields 1398 default: 1399 return nil 1400 } 1401 } 1402 } 1403 type x struct{} 1404 out := protoimpl.TypeBuilder{ 1405 File: protoimpl.DescBuilder{ 1406 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 1407 RawDescriptor: file_proto_eth_v1_node_proto_rawDesc, 1408 NumEnums: 2, 1409 NumMessages: 15, 1410 NumExtensions: 0, 1411 NumServices: 1, 1412 }, 1413 GoTypes: file_proto_eth_v1_node_proto_goTypes, 1414 DependencyIndexes: file_proto_eth_v1_node_proto_depIdxs, 1415 EnumInfos: file_proto_eth_v1_node_proto_enumTypes, 1416 MessageInfos: file_proto_eth_v1_node_proto_msgTypes, 1417 }.Build() 1418 File_proto_eth_v1_node_proto = out.File 1419 file_proto_eth_v1_node_proto_rawDesc = nil 1420 file_proto_eth_v1_node_proto_goTypes = nil 1421 file_proto_eth_v1_node_proto_depIdxs = nil 1422 } 1423 1424 // Reference imports to suppress errors if they are not otherwise used. 1425 var _ context.Context 1426 var _ grpc.ClientConnInterface 1427 1428 // This is a compile-time assertion to ensure that this generated file 1429 // is compatible with the grpc package it is being compiled against. 1430 const _ = grpc.SupportPackageIsVersion6 1431 1432 // BeaconNodeClient is the client API for BeaconNode service. 1433 // 1434 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 1435 type BeaconNodeClient interface { 1436 GetIdentity(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*IdentityResponse, error) 1437 ListPeers(ctx context.Context, in *PeersRequest, opts ...grpc.CallOption) (*PeersResponse, error) 1438 GetPeer(ctx context.Context, in *PeerRequest, opts ...grpc.CallOption) (*PeerResponse, error) 1439 PeerCount(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*PeerCountResponse, error) 1440 GetSyncStatus(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*SyncingResponse, error) 1441 GetVersion(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*VersionResponse, error) 1442 GetHealth(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error) 1443 } 1444 1445 type beaconNodeClient struct { 1446 cc grpc.ClientConnInterface 1447 } 1448 1449 func NewBeaconNodeClient(cc grpc.ClientConnInterface) BeaconNodeClient { 1450 return &beaconNodeClient{cc} 1451 } 1452 1453 func (c *beaconNodeClient) GetIdentity(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*IdentityResponse, error) { 1454 out := new(IdentityResponse) 1455 err := c.cc.Invoke(ctx, "/ethereum.eth.v1.BeaconNode/GetIdentity", in, out, opts...) 1456 if err != nil { 1457 return nil, err 1458 } 1459 return out, nil 1460 } 1461 1462 func (c *beaconNodeClient) ListPeers(ctx context.Context, in *PeersRequest, opts ...grpc.CallOption) (*PeersResponse, error) { 1463 out := new(PeersResponse) 1464 err := c.cc.Invoke(ctx, "/ethereum.eth.v1.BeaconNode/ListPeers", in, out, opts...) 1465 if err != nil { 1466 return nil, err 1467 } 1468 return out, nil 1469 } 1470 1471 func (c *beaconNodeClient) GetPeer(ctx context.Context, in *PeerRequest, opts ...grpc.CallOption) (*PeerResponse, error) { 1472 out := new(PeerResponse) 1473 err := c.cc.Invoke(ctx, "/ethereum.eth.v1.BeaconNode/GetPeer", in, out, opts...) 1474 if err != nil { 1475 return nil, err 1476 } 1477 return out, nil 1478 } 1479 1480 func (c *beaconNodeClient) PeerCount(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*PeerCountResponse, error) { 1481 out := new(PeerCountResponse) 1482 err := c.cc.Invoke(ctx, "/ethereum.eth.v1.BeaconNode/PeerCount", in, out, opts...) 1483 if err != nil { 1484 return nil, err 1485 } 1486 return out, nil 1487 } 1488 1489 func (c *beaconNodeClient) GetSyncStatus(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*SyncingResponse, error) { 1490 out := new(SyncingResponse) 1491 err := c.cc.Invoke(ctx, "/ethereum.eth.v1.BeaconNode/GetSyncStatus", in, out, opts...) 1492 if err != nil { 1493 return nil, err 1494 } 1495 return out, nil 1496 } 1497 1498 func (c *beaconNodeClient) GetVersion(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*VersionResponse, error) { 1499 out := new(VersionResponse) 1500 err := c.cc.Invoke(ctx, "/ethereum.eth.v1.BeaconNode/GetVersion", in, out, opts...) 1501 if err != nil { 1502 return nil, err 1503 } 1504 return out, nil 1505 } 1506 1507 func (c *beaconNodeClient) GetHealth(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error) { 1508 out := new(empty.Empty) 1509 err := c.cc.Invoke(ctx, "/ethereum.eth.v1.BeaconNode/GetHealth", in, out, opts...) 1510 if err != nil { 1511 return nil, err 1512 } 1513 return out, nil 1514 } 1515 1516 // BeaconNodeServer is the server API for BeaconNode service. 1517 type BeaconNodeServer interface { 1518 GetIdentity(context.Context, *empty.Empty) (*IdentityResponse, error) 1519 ListPeers(context.Context, *PeersRequest) (*PeersResponse, error) 1520 GetPeer(context.Context, *PeerRequest) (*PeerResponse, error) 1521 PeerCount(context.Context, *empty.Empty) (*PeerCountResponse, error) 1522 GetSyncStatus(context.Context, *empty.Empty) (*SyncingResponse, error) 1523 GetVersion(context.Context, *empty.Empty) (*VersionResponse, error) 1524 GetHealth(context.Context, *empty.Empty) (*empty.Empty, error) 1525 } 1526 1527 // UnimplementedBeaconNodeServer can be embedded to have forward compatible implementations. 1528 type UnimplementedBeaconNodeServer struct { 1529 } 1530 1531 func (*UnimplementedBeaconNodeServer) GetIdentity(context.Context, *empty.Empty) (*IdentityResponse, error) { 1532 return nil, status.Errorf(codes.Unimplemented, "method GetIdentity not implemented") 1533 } 1534 func (*UnimplementedBeaconNodeServer) ListPeers(context.Context, *PeersRequest) (*PeersResponse, error) { 1535 return nil, status.Errorf(codes.Unimplemented, "method ListPeers not implemented") 1536 } 1537 func (*UnimplementedBeaconNodeServer) GetPeer(context.Context, *PeerRequest) (*PeerResponse, error) { 1538 return nil, status.Errorf(codes.Unimplemented, "method GetPeer not implemented") 1539 } 1540 func (*UnimplementedBeaconNodeServer) PeerCount(context.Context, *empty.Empty) (*PeerCountResponse, error) { 1541 return nil, status.Errorf(codes.Unimplemented, "method PeerCount not implemented") 1542 } 1543 func (*UnimplementedBeaconNodeServer) GetSyncStatus(context.Context, *empty.Empty) (*SyncingResponse, error) { 1544 return nil, status.Errorf(codes.Unimplemented, "method GetSyncStatus not implemented") 1545 } 1546 func (*UnimplementedBeaconNodeServer) GetVersion(context.Context, *empty.Empty) (*VersionResponse, error) { 1547 return nil, status.Errorf(codes.Unimplemented, "method GetVersion not implemented") 1548 } 1549 func (*UnimplementedBeaconNodeServer) GetHealth(context.Context, *empty.Empty) (*empty.Empty, error) { 1550 return nil, status.Errorf(codes.Unimplemented, "method GetHealth not implemented") 1551 } 1552 1553 func RegisterBeaconNodeServer(s *grpc.Server, srv BeaconNodeServer) { 1554 s.RegisterService(&_BeaconNode_serviceDesc, srv) 1555 } 1556 1557 func _BeaconNode_GetIdentity_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1558 in := new(empty.Empty) 1559 if err := dec(in); err != nil { 1560 return nil, err 1561 } 1562 if interceptor == nil { 1563 return srv.(BeaconNodeServer).GetIdentity(ctx, in) 1564 } 1565 info := &grpc.UnaryServerInfo{ 1566 Server: srv, 1567 FullMethod: "/ethereum.eth.v1.BeaconNode/GetIdentity", 1568 } 1569 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1570 return srv.(BeaconNodeServer).GetIdentity(ctx, req.(*empty.Empty)) 1571 } 1572 return interceptor(ctx, in, info, handler) 1573 } 1574 1575 func _BeaconNode_ListPeers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1576 in := new(PeersRequest) 1577 if err := dec(in); err != nil { 1578 return nil, err 1579 } 1580 if interceptor == nil { 1581 return srv.(BeaconNodeServer).ListPeers(ctx, in) 1582 } 1583 info := &grpc.UnaryServerInfo{ 1584 Server: srv, 1585 FullMethod: "/ethereum.eth.v1.BeaconNode/ListPeers", 1586 } 1587 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1588 return srv.(BeaconNodeServer).ListPeers(ctx, req.(*PeersRequest)) 1589 } 1590 return interceptor(ctx, in, info, handler) 1591 } 1592 1593 func _BeaconNode_GetPeer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1594 in := new(PeerRequest) 1595 if err := dec(in); err != nil { 1596 return nil, err 1597 } 1598 if interceptor == nil { 1599 return srv.(BeaconNodeServer).GetPeer(ctx, in) 1600 } 1601 info := &grpc.UnaryServerInfo{ 1602 Server: srv, 1603 FullMethod: "/ethereum.eth.v1.BeaconNode/GetPeer", 1604 } 1605 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1606 return srv.(BeaconNodeServer).GetPeer(ctx, req.(*PeerRequest)) 1607 } 1608 return interceptor(ctx, in, info, handler) 1609 } 1610 1611 func _BeaconNode_PeerCount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1612 in := new(empty.Empty) 1613 if err := dec(in); err != nil { 1614 return nil, err 1615 } 1616 if interceptor == nil { 1617 return srv.(BeaconNodeServer).PeerCount(ctx, in) 1618 } 1619 info := &grpc.UnaryServerInfo{ 1620 Server: srv, 1621 FullMethod: "/ethereum.eth.v1.BeaconNode/PeerCount", 1622 } 1623 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1624 return srv.(BeaconNodeServer).PeerCount(ctx, req.(*empty.Empty)) 1625 } 1626 return interceptor(ctx, in, info, handler) 1627 } 1628 1629 func _BeaconNode_GetSyncStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1630 in := new(empty.Empty) 1631 if err := dec(in); err != nil { 1632 return nil, err 1633 } 1634 if interceptor == nil { 1635 return srv.(BeaconNodeServer).GetSyncStatus(ctx, in) 1636 } 1637 info := &grpc.UnaryServerInfo{ 1638 Server: srv, 1639 FullMethod: "/ethereum.eth.v1.BeaconNode/GetSyncStatus", 1640 } 1641 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1642 return srv.(BeaconNodeServer).GetSyncStatus(ctx, req.(*empty.Empty)) 1643 } 1644 return interceptor(ctx, in, info, handler) 1645 } 1646 1647 func _BeaconNode_GetVersion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1648 in := new(empty.Empty) 1649 if err := dec(in); err != nil { 1650 return nil, err 1651 } 1652 if interceptor == nil { 1653 return srv.(BeaconNodeServer).GetVersion(ctx, in) 1654 } 1655 info := &grpc.UnaryServerInfo{ 1656 Server: srv, 1657 FullMethod: "/ethereum.eth.v1.BeaconNode/GetVersion", 1658 } 1659 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1660 return srv.(BeaconNodeServer).GetVersion(ctx, req.(*empty.Empty)) 1661 } 1662 return interceptor(ctx, in, info, handler) 1663 } 1664 1665 func _BeaconNode_GetHealth_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1666 in := new(empty.Empty) 1667 if err := dec(in); err != nil { 1668 return nil, err 1669 } 1670 if interceptor == nil { 1671 return srv.(BeaconNodeServer).GetHealth(ctx, in) 1672 } 1673 info := &grpc.UnaryServerInfo{ 1674 Server: srv, 1675 FullMethod: "/ethereum.eth.v1.BeaconNode/GetHealth", 1676 } 1677 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1678 return srv.(BeaconNodeServer).GetHealth(ctx, req.(*empty.Empty)) 1679 } 1680 return interceptor(ctx, in, info, handler) 1681 } 1682 1683 var _BeaconNode_serviceDesc = grpc.ServiceDesc{ 1684 ServiceName: "ethereum.eth.v1.BeaconNode", 1685 HandlerType: (*BeaconNodeServer)(nil), 1686 Methods: []grpc.MethodDesc{ 1687 { 1688 MethodName: "GetIdentity", 1689 Handler: _BeaconNode_GetIdentity_Handler, 1690 }, 1691 { 1692 MethodName: "ListPeers", 1693 Handler: _BeaconNode_ListPeers_Handler, 1694 }, 1695 { 1696 MethodName: "GetPeer", 1697 Handler: _BeaconNode_GetPeer_Handler, 1698 }, 1699 { 1700 MethodName: "PeerCount", 1701 Handler: _BeaconNode_PeerCount_Handler, 1702 }, 1703 { 1704 MethodName: "GetSyncStatus", 1705 Handler: _BeaconNode_GetSyncStatus_Handler, 1706 }, 1707 { 1708 MethodName: "GetVersion", 1709 Handler: _BeaconNode_GetVersion_Handler, 1710 }, 1711 { 1712 MethodName: "GetHealth", 1713 Handler: _BeaconNode_GetHealth_Handler, 1714 }, 1715 }, 1716 Streams: []grpc.StreamDesc{}, 1717 Metadata: "proto/eth/v1/node.proto", 1718 }