github.com/prysmaticlabs/prysm@v1.4.4/proto/eth/v1alpha1/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/v1alpha1/node.proto 6 7 package eth 8 9 import ( 10 context "context" 11 reflect "reflect" 12 sync "sync" 13 14 proto "github.com/golang/protobuf/proto" 15 empty "github.com/golang/protobuf/ptypes/empty" 16 timestamp "github.com/golang/protobuf/ptypes/timestamp" 17 _ "github.com/prysmaticlabs/prysm/proto/eth/ext" 18 _ "google.golang.org/genproto/googleapis/api/annotations" 19 grpc "google.golang.org/grpc" 20 codes "google.golang.org/grpc/codes" 21 status "google.golang.org/grpc/status" 22 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 23 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 24 ) 25 26 const ( 27 // Verify that this generated code is sufficiently up-to-date. 28 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 29 // Verify that runtime/protoimpl is sufficiently up-to-date. 30 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 31 ) 32 33 // This is a compile-time assertion that a sufficiently up-to-date version 34 // of the legacy proto package is being used. 35 const _ = proto.ProtoPackageIsVersion4 36 37 type PeerDirection int32 38 39 const ( 40 PeerDirection_UNKNOWN PeerDirection = 0 41 PeerDirection_INBOUND PeerDirection = 1 42 PeerDirection_OUTBOUND PeerDirection = 2 43 ) 44 45 // Enum value maps for PeerDirection. 46 var ( 47 PeerDirection_name = map[int32]string{ 48 0: "UNKNOWN", 49 1: "INBOUND", 50 2: "OUTBOUND", 51 } 52 PeerDirection_value = map[string]int32{ 53 "UNKNOWN": 0, 54 "INBOUND": 1, 55 "OUTBOUND": 2, 56 } 57 ) 58 59 func (x PeerDirection) Enum() *PeerDirection { 60 p := new(PeerDirection) 61 *p = x 62 return p 63 } 64 65 func (x PeerDirection) String() string { 66 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 67 } 68 69 func (PeerDirection) Descriptor() protoreflect.EnumDescriptor { 70 return file_proto_eth_v1alpha1_node_proto_enumTypes[0].Descriptor() 71 } 72 73 func (PeerDirection) Type() protoreflect.EnumType { 74 return &file_proto_eth_v1alpha1_node_proto_enumTypes[0] 75 } 76 77 func (x PeerDirection) Number() protoreflect.EnumNumber { 78 return protoreflect.EnumNumber(x) 79 } 80 81 // Deprecated: Use PeerDirection.Descriptor instead. 82 func (PeerDirection) EnumDescriptor() ([]byte, []int) { 83 return file_proto_eth_v1alpha1_node_proto_rawDescGZIP(), []int{0} 84 } 85 86 type ConnectionState int32 87 88 const ( 89 ConnectionState_DISCONNECTED ConnectionState = 0 90 ConnectionState_DISCONNECTING ConnectionState = 1 91 ConnectionState_CONNECTED ConnectionState = 2 92 ConnectionState_CONNECTING ConnectionState = 3 93 ) 94 95 // Enum value maps for ConnectionState. 96 var ( 97 ConnectionState_name = map[int32]string{ 98 0: "DISCONNECTED", 99 1: "DISCONNECTING", 100 2: "CONNECTED", 101 3: "CONNECTING", 102 } 103 ConnectionState_value = map[string]int32{ 104 "DISCONNECTED": 0, 105 "DISCONNECTING": 1, 106 "CONNECTED": 2, 107 "CONNECTING": 3, 108 } 109 ) 110 111 func (x ConnectionState) Enum() *ConnectionState { 112 p := new(ConnectionState) 113 *p = x 114 return p 115 } 116 117 func (x ConnectionState) String() string { 118 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 119 } 120 121 func (ConnectionState) Descriptor() protoreflect.EnumDescriptor { 122 return file_proto_eth_v1alpha1_node_proto_enumTypes[1].Descriptor() 123 } 124 125 func (ConnectionState) Type() protoreflect.EnumType { 126 return &file_proto_eth_v1alpha1_node_proto_enumTypes[1] 127 } 128 129 func (x ConnectionState) Number() protoreflect.EnumNumber { 130 return protoreflect.EnumNumber(x) 131 } 132 133 // Deprecated: Use ConnectionState.Descriptor instead. 134 func (ConnectionState) EnumDescriptor() ([]byte, []int) { 135 return file_proto_eth_v1alpha1_node_proto_rawDescGZIP(), []int{1} 136 } 137 138 type SyncStatus struct { 139 state protoimpl.MessageState 140 sizeCache protoimpl.SizeCache 141 unknownFields protoimpl.UnknownFields 142 143 Syncing bool `protobuf:"varint,1,opt,name=syncing,proto3" json:"syncing,omitempty"` 144 } 145 146 func (x *SyncStatus) Reset() { 147 *x = SyncStatus{} 148 if protoimpl.UnsafeEnabled { 149 mi := &file_proto_eth_v1alpha1_node_proto_msgTypes[0] 150 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 151 ms.StoreMessageInfo(mi) 152 } 153 } 154 155 func (x *SyncStatus) String() string { 156 return protoimpl.X.MessageStringOf(x) 157 } 158 159 func (*SyncStatus) ProtoMessage() {} 160 161 func (x *SyncStatus) ProtoReflect() protoreflect.Message { 162 mi := &file_proto_eth_v1alpha1_node_proto_msgTypes[0] 163 if protoimpl.UnsafeEnabled && x != nil { 164 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 165 if ms.LoadMessageInfo() == nil { 166 ms.StoreMessageInfo(mi) 167 } 168 return ms 169 } 170 return mi.MessageOf(x) 171 } 172 173 // Deprecated: Use SyncStatus.ProtoReflect.Descriptor instead. 174 func (*SyncStatus) Descriptor() ([]byte, []int) { 175 return file_proto_eth_v1alpha1_node_proto_rawDescGZIP(), []int{0} 176 } 177 178 func (x *SyncStatus) GetSyncing() bool { 179 if x != nil { 180 return x.Syncing 181 } 182 return false 183 } 184 185 type Genesis struct { 186 state protoimpl.MessageState 187 sizeCache protoimpl.SizeCache 188 unknownFields protoimpl.UnknownFields 189 190 GenesisTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=genesis_time,json=genesisTime,proto3" json:"genesis_time,omitempty"` 191 DepositContractAddress []byte `protobuf:"bytes,2,opt,name=deposit_contract_address,json=depositContractAddress,proto3" json:"deposit_contract_address,omitempty"` 192 GenesisValidatorsRoot []byte `protobuf:"bytes,3,opt,name=genesis_validators_root,json=genesisValidatorsRoot,proto3" json:"genesis_validators_root,omitempty" ssz-size:"32"` 193 } 194 195 func (x *Genesis) Reset() { 196 *x = Genesis{} 197 if protoimpl.UnsafeEnabled { 198 mi := &file_proto_eth_v1alpha1_node_proto_msgTypes[1] 199 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 200 ms.StoreMessageInfo(mi) 201 } 202 } 203 204 func (x *Genesis) String() string { 205 return protoimpl.X.MessageStringOf(x) 206 } 207 208 func (*Genesis) ProtoMessage() {} 209 210 func (x *Genesis) ProtoReflect() protoreflect.Message { 211 mi := &file_proto_eth_v1alpha1_node_proto_msgTypes[1] 212 if protoimpl.UnsafeEnabled && x != nil { 213 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 214 if ms.LoadMessageInfo() == nil { 215 ms.StoreMessageInfo(mi) 216 } 217 return ms 218 } 219 return mi.MessageOf(x) 220 } 221 222 // Deprecated: Use Genesis.ProtoReflect.Descriptor instead. 223 func (*Genesis) Descriptor() ([]byte, []int) { 224 return file_proto_eth_v1alpha1_node_proto_rawDescGZIP(), []int{1} 225 } 226 227 func (x *Genesis) GetGenesisTime() *timestamp.Timestamp { 228 if x != nil { 229 return x.GenesisTime 230 } 231 return nil 232 } 233 234 func (x *Genesis) GetDepositContractAddress() []byte { 235 if x != nil { 236 return x.DepositContractAddress 237 } 238 return nil 239 } 240 241 func (x *Genesis) GetGenesisValidatorsRoot() []byte { 242 if x != nil { 243 return x.GenesisValidatorsRoot 244 } 245 return nil 246 } 247 248 type Version struct { 249 state protoimpl.MessageState 250 sizeCache protoimpl.SizeCache 251 unknownFields protoimpl.UnknownFields 252 253 Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` 254 Metadata string `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` 255 } 256 257 func (x *Version) Reset() { 258 *x = Version{} 259 if protoimpl.UnsafeEnabled { 260 mi := &file_proto_eth_v1alpha1_node_proto_msgTypes[2] 261 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 262 ms.StoreMessageInfo(mi) 263 } 264 } 265 266 func (x *Version) String() string { 267 return protoimpl.X.MessageStringOf(x) 268 } 269 270 func (*Version) ProtoMessage() {} 271 272 func (x *Version) ProtoReflect() protoreflect.Message { 273 mi := &file_proto_eth_v1alpha1_node_proto_msgTypes[2] 274 if protoimpl.UnsafeEnabled && x != nil { 275 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 276 if ms.LoadMessageInfo() == nil { 277 ms.StoreMessageInfo(mi) 278 } 279 return ms 280 } 281 return mi.MessageOf(x) 282 } 283 284 // Deprecated: Use Version.ProtoReflect.Descriptor instead. 285 func (*Version) Descriptor() ([]byte, []int) { 286 return file_proto_eth_v1alpha1_node_proto_rawDescGZIP(), []int{2} 287 } 288 289 func (x *Version) GetVersion() string { 290 if x != nil { 291 return x.Version 292 } 293 return "" 294 } 295 296 func (x *Version) GetMetadata() string { 297 if x != nil { 298 return x.Metadata 299 } 300 return "" 301 } 302 303 type ImplementedServices struct { 304 state protoimpl.MessageState 305 sizeCache protoimpl.SizeCache 306 unknownFields protoimpl.UnknownFields 307 308 Services []string `protobuf:"bytes,1,rep,name=services,proto3" json:"services,omitempty"` 309 } 310 311 func (x *ImplementedServices) Reset() { 312 *x = ImplementedServices{} 313 if protoimpl.UnsafeEnabled { 314 mi := &file_proto_eth_v1alpha1_node_proto_msgTypes[3] 315 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 316 ms.StoreMessageInfo(mi) 317 } 318 } 319 320 func (x *ImplementedServices) String() string { 321 return protoimpl.X.MessageStringOf(x) 322 } 323 324 func (*ImplementedServices) ProtoMessage() {} 325 326 func (x *ImplementedServices) ProtoReflect() protoreflect.Message { 327 mi := &file_proto_eth_v1alpha1_node_proto_msgTypes[3] 328 if protoimpl.UnsafeEnabled && x != nil { 329 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 330 if ms.LoadMessageInfo() == nil { 331 ms.StoreMessageInfo(mi) 332 } 333 return ms 334 } 335 return mi.MessageOf(x) 336 } 337 338 // Deprecated: Use ImplementedServices.ProtoReflect.Descriptor instead. 339 func (*ImplementedServices) Descriptor() ([]byte, []int) { 340 return file_proto_eth_v1alpha1_node_proto_rawDescGZIP(), []int{3} 341 } 342 343 func (x *ImplementedServices) GetServices() []string { 344 if x != nil { 345 return x.Services 346 } 347 return nil 348 } 349 350 type PeerRequest struct { 351 state protoimpl.MessageState 352 sizeCache protoimpl.SizeCache 353 unknownFields protoimpl.UnknownFields 354 355 PeerId string `protobuf:"bytes,1,opt,name=peer_id,json=peerId,proto3" json:"peer_id,omitempty"` 356 } 357 358 func (x *PeerRequest) Reset() { 359 *x = PeerRequest{} 360 if protoimpl.UnsafeEnabled { 361 mi := &file_proto_eth_v1alpha1_node_proto_msgTypes[4] 362 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 363 ms.StoreMessageInfo(mi) 364 } 365 } 366 367 func (x *PeerRequest) String() string { 368 return protoimpl.X.MessageStringOf(x) 369 } 370 371 func (*PeerRequest) ProtoMessage() {} 372 373 func (x *PeerRequest) ProtoReflect() protoreflect.Message { 374 mi := &file_proto_eth_v1alpha1_node_proto_msgTypes[4] 375 if protoimpl.UnsafeEnabled && x != nil { 376 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 377 if ms.LoadMessageInfo() == nil { 378 ms.StoreMessageInfo(mi) 379 } 380 return ms 381 } 382 return mi.MessageOf(x) 383 } 384 385 // Deprecated: Use PeerRequest.ProtoReflect.Descriptor instead. 386 func (*PeerRequest) Descriptor() ([]byte, []int) { 387 return file_proto_eth_v1alpha1_node_proto_rawDescGZIP(), []int{4} 388 } 389 390 func (x *PeerRequest) GetPeerId() string { 391 if x != nil { 392 return x.PeerId 393 } 394 return "" 395 } 396 397 type Peers struct { 398 state protoimpl.MessageState 399 sizeCache protoimpl.SizeCache 400 unknownFields protoimpl.UnknownFields 401 402 Peers []*Peer `protobuf:"bytes,1,rep,name=peers,proto3" json:"peers,omitempty"` 403 } 404 405 func (x *Peers) Reset() { 406 *x = Peers{} 407 if protoimpl.UnsafeEnabled { 408 mi := &file_proto_eth_v1alpha1_node_proto_msgTypes[5] 409 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 410 ms.StoreMessageInfo(mi) 411 } 412 } 413 414 func (x *Peers) String() string { 415 return protoimpl.X.MessageStringOf(x) 416 } 417 418 func (*Peers) ProtoMessage() {} 419 420 func (x *Peers) ProtoReflect() protoreflect.Message { 421 mi := &file_proto_eth_v1alpha1_node_proto_msgTypes[5] 422 if protoimpl.UnsafeEnabled && x != nil { 423 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 424 if ms.LoadMessageInfo() == nil { 425 ms.StoreMessageInfo(mi) 426 } 427 return ms 428 } 429 return mi.MessageOf(x) 430 } 431 432 // Deprecated: Use Peers.ProtoReflect.Descriptor instead. 433 func (*Peers) Descriptor() ([]byte, []int) { 434 return file_proto_eth_v1alpha1_node_proto_rawDescGZIP(), []int{5} 435 } 436 437 func (x *Peers) GetPeers() []*Peer { 438 if x != nil { 439 return x.Peers 440 } 441 return nil 442 } 443 444 type Peer struct { 445 state protoimpl.MessageState 446 sizeCache protoimpl.SizeCache 447 unknownFields protoimpl.UnknownFields 448 449 Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` 450 Direction PeerDirection `protobuf:"varint,2,opt,name=direction,proto3,enum=ethereum.eth.v1alpha1.PeerDirection" json:"direction,omitempty"` 451 ConnectionState ConnectionState `protobuf:"varint,3,opt,name=connection_state,json=connectionState,proto3,enum=ethereum.eth.v1alpha1.ConnectionState" json:"connection_state,omitempty"` 452 PeerId string `protobuf:"bytes,4,opt,name=peer_id,json=peerId,proto3" json:"peer_id,omitempty"` 453 Enr string `protobuf:"bytes,5,opt,name=enr,proto3" json:"enr,omitempty"` 454 } 455 456 func (x *Peer) Reset() { 457 *x = Peer{} 458 if protoimpl.UnsafeEnabled { 459 mi := &file_proto_eth_v1alpha1_node_proto_msgTypes[6] 460 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 461 ms.StoreMessageInfo(mi) 462 } 463 } 464 465 func (x *Peer) String() string { 466 return protoimpl.X.MessageStringOf(x) 467 } 468 469 func (*Peer) ProtoMessage() {} 470 471 func (x *Peer) ProtoReflect() protoreflect.Message { 472 mi := &file_proto_eth_v1alpha1_node_proto_msgTypes[6] 473 if protoimpl.UnsafeEnabled && x != nil { 474 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 475 if ms.LoadMessageInfo() == nil { 476 ms.StoreMessageInfo(mi) 477 } 478 return ms 479 } 480 return mi.MessageOf(x) 481 } 482 483 // Deprecated: Use Peer.ProtoReflect.Descriptor instead. 484 func (*Peer) Descriptor() ([]byte, []int) { 485 return file_proto_eth_v1alpha1_node_proto_rawDescGZIP(), []int{6} 486 } 487 488 func (x *Peer) GetAddress() string { 489 if x != nil { 490 return x.Address 491 } 492 return "" 493 } 494 495 func (x *Peer) GetDirection() PeerDirection { 496 if x != nil { 497 return x.Direction 498 } 499 return PeerDirection_UNKNOWN 500 } 501 502 func (x *Peer) GetConnectionState() ConnectionState { 503 if x != nil { 504 return x.ConnectionState 505 } 506 return ConnectionState_DISCONNECTED 507 } 508 509 func (x *Peer) GetPeerId() string { 510 if x != nil { 511 return x.PeerId 512 } 513 return "" 514 } 515 516 func (x *Peer) GetEnr() string { 517 if x != nil { 518 return x.Enr 519 } 520 return "" 521 } 522 523 type HostData struct { 524 state protoimpl.MessageState 525 sizeCache protoimpl.SizeCache 526 unknownFields protoimpl.UnknownFields 527 528 Addresses []string `protobuf:"bytes,1,rep,name=addresses,proto3" json:"addresses,omitempty"` 529 PeerId string `protobuf:"bytes,2,opt,name=peer_id,json=peerId,proto3" json:"peer_id,omitempty"` 530 Enr string `protobuf:"bytes,3,opt,name=enr,proto3" json:"enr,omitempty"` 531 } 532 533 func (x *HostData) Reset() { 534 *x = HostData{} 535 if protoimpl.UnsafeEnabled { 536 mi := &file_proto_eth_v1alpha1_node_proto_msgTypes[7] 537 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 538 ms.StoreMessageInfo(mi) 539 } 540 } 541 542 func (x *HostData) String() string { 543 return protoimpl.X.MessageStringOf(x) 544 } 545 546 func (*HostData) ProtoMessage() {} 547 548 func (x *HostData) ProtoReflect() protoreflect.Message { 549 mi := &file_proto_eth_v1alpha1_node_proto_msgTypes[7] 550 if protoimpl.UnsafeEnabled && x != nil { 551 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 552 if ms.LoadMessageInfo() == nil { 553 ms.StoreMessageInfo(mi) 554 } 555 return ms 556 } 557 return mi.MessageOf(x) 558 } 559 560 // Deprecated: Use HostData.ProtoReflect.Descriptor instead. 561 func (*HostData) Descriptor() ([]byte, []int) { 562 return file_proto_eth_v1alpha1_node_proto_rawDescGZIP(), []int{7} 563 } 564 565 func (x *HostData) GetAddresses() []string { 566 if x != nil { 567 return x.Addresses 568 } 569 return nil 570 } 571 572 func (x *HostData) GetPeerId() string { 573 if x != nil { 574 return x.PeerId 575 } 576 return "" 577 } 578 579 func (x *HostData) GetEnr() string { 580 if x != nil { 581 return x.Enr 582 } 583 return "" 584 } 585 586 var File_proto_eth_v1alpha1_node_proto protoreflect.FileDescriptor 587 588 var file_proto_eth_v1alpha1_node_proto_rawDesc = []byte{ 589 0x0a, 0x1d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x65, 0x74, 0x68, 0x2f, 0x76, 0x31, 0x61, 0x6c, 590 0x70, 0x68, 0x61, 0x31, 0x2f, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 591 0x15, 0x65, 0x74, 0x68, 0x65, 0x72, 0x65, 0x75, 0x6d, 0x2e, 0x65, 0x74, 0x68, 0x2e, 0x76, 0x31, 592 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 593 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 594 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 595 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 596 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 597 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 598 0x74, 0x6f, 0x1a, 0x1b, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x65, 0x74, 0x68, 0x2f, 0x65, 0x78, 599 0x74, 0x2f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 600 0x26, 0x0a, 0x0a, 0x53, 0x79, 0x6e, 0x63, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x18, 0x0a, 601 0x07, 0x73, 0x79, 0x6e, 0x63, 0x69, 0x6e, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 602 0x73, 0x79, 0x6e, 0x63, 0x69, 0x6e, 0x67, 0x22, 0xc2, 0x01, 0x0a, 0x07, 0x47, 0x65, 0x6e, 0x65, 603 0x73, 0x69, 0x73, 0x12, 0x3d, 0x0a, 0x0c, 0x67, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x5f, 0x74, 604 0x69, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 605 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 606 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0b, 0x67, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x54, 0x69, 607 0x6d, 0x65, 0x12, 0x38, 0x0a, 0x18, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x5f, 0x63, 0x6f, 608 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 609 0x20, 0x01, 0x28, 0x0c, 0x52, 0x16, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x43, 0x6f, 0x6e, 610 0x74, 0x72, 0x61, 0x63, 0x74, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x3e, 0x0a, 0x17, 611 0x67, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x5f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 612 0x72, 0x73, 0x5f, 0x72, 0x6f, 0x6f, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x42, 0x06, 0x8a, 613 0xb5, 0x18, 0x02, 0x33, 0x32, 0x52, 0x15, 0x67, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x56, 0x61, 614 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x52, 0x6f, 0x6f, 0x74, 0x22, 0x3f, 0x0a, 0x07, 615 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 616 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 617 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 618 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x22, 0x31, 0x0a, 619 0x13, 0x49, 0x6d, 0x70, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x65, 0x64, 0x53, 0x65, 0x72, 0x76, 620 0x69, 0x63, 0x65, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 621 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 622 0x22, 0x26, 0x0a, 0x0b, 0x50, 0x65, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 623 0x17, 0x0a, 0x07, 0x70, 0x65, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 624 0x52, 0x06, 0x70, 0x65, 0x65, 0x72, 0x49, 0x64, 0x22, 0x3a, 0x0a, 0x05, 0x50, 0x65, 0x65, 0x72, 625 0x73, 0x12, 0x31, 0x0a, 0x05, 0x70, 0x65, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 626 0x32, 0x1b, 0x2e, 0x65, 0x74, 0x68, 0x65, 0x72, 0x65, 0x75, 0x6d, 0x2e, 0x65, 0x74, 0x68, 0x2e, 627 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x50, 0x65, 0x65, 0x72, 0x52, 0x05, 0x70, 628 0x65, 0x65, 0x72, 0x73, 0x22, 0xe2, 0x01, 0x0a, 0x04, 0x50, 0x65, 0x65, 0x72, 0x12, 0x18, 0x0a, 629 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 630 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x42, 0x0a, 0x09, 0x64, 0x69, 0x72, 0x65, 0x63, 631 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x24, 0x2e, 0x65, 0x74, 0x68, 632 0x65, 0x72, 0x65, 0x75, 0x6d, 0x2e, 0x65, 0x74, 0x68, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 633 0x61, 0x31, 0x2e, 0x50, 0x65, 0x65, 0x72, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 634 0x52, 0x09, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x51, 0x0a, 0x10, 0x63, 635 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 636 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x26, 0x2e, 0x65, 0x74, 0x68, 0x65, 0x72, 0x65, 0x75, 0x6d, 637 0x2e, 0x65, 0x74, 0x68, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x43, 0x6f, 638 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x0f, 0x63, 639 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x17, 640 0x0a, 0x07, 0x70, 0x65, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 641 0x06, 0x70, 0x65, 0x65, 0x72, 0x49, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x65, 0x6e, 0x72, 0x18, 0x05, 642 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x65, 0x6e, 0x72, 0x22, 0x53, 0x0a, 0x08, 0x48, 0x6f, 0x73, 643 0x74, 0x44, 0x61, 0x74, 0x61, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 644 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x09, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 645 0x73, 0x65, 0x73, 0x12, 0x17, 0x0a, 0x07, 0x70, 0x65, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 646 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x65, 0x65, 0x72, 0x49, 0x64, 0x12, 0x10, 0x0a, 0x03, 647 0x65, 0x6e, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x65, 0x6e, 0x72, 0x2a, 0x37, 648 0x0a, 0x0d, 0x50, 0x65, 0x65, 0x72, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 649 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 650 0x49, 0x4e, 0x42, 0x4f, 0x55, 0x4e, 0x44, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x4f, 0x55, 0x54, 651 0x42, 0x4f, 0x55, 0x4e, 0x44, 0x10, 0x02, 0x2a, 0x55, 0x0a, 0x0f, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 652 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x10, 0x0a, 0x0c, 0x44, 0x49, 653 0x53, 0x43, 0x4f, 0x4e, 0x4e, 0x45, 0x43, 0x54, 0x45, 0x44, 0x10, 0x00, 0x12, 0x11, 0x0a, 0x0d, 654 0x44, 0x49, 0x53, 0x43, 0x4f, 0x4e, 0x4e, 0x45, 0x43, 0x54, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 655 0x0d, 0x0a, 0x09, 0x43, 0x4f, 0x4e, 0x4e, 0x45, 0x43, 0x54, 0x45, 0x44, 0x10, 0x02, 0x12, 0x0e, 656 0x0a, 0x0a, 0x43, 0x4f, 0x4e, 0x4e, 0x45, 0x43, 0x54, 0x49, 0x4e, 0x47, 0x10, 0x03, 0x32, 0x85, 657 0x06, 0x0a, 0x04, 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x6e, 0x0a, 0x0d, 0x47, 0x65, 0x74, 0x53, 0x79, 658 0x6e, 0x63, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 659 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 660 0x1a, 0x21, 0x2e, 0x65, 0x74, 0x68, 0x65, 0x72, 0x65, 0x75, 0x6d, 0x2e, 0x65, 0x74, 0x68, 0x2e, 661 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x53, 0x79, 0x6e, 0x63, 0x53, 0x74, 0x61, 662 0x74, 0x75, 0x73, 0x22, 0x22, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1c, 0x12, 0x1a, 0x2f, 0x65, 0x74, 663 0x68, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x6e, 0x6f, 0x64, 0x65, 0x2f, 664 0x73, 0x79, 0x6e, 0x63, 0x69, 0x6e, 0x67, 0x12, 0x68, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x47, 0x65, 665 0x6e, 0x65, 0x73, 0x69, 0x73, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 666 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x1e, 0x2e, 667 0x65, 0x74, 0x68, 0x65, 0x72, 0x65, 0x75, 0x6d, 0x2e, 0x65, 0x74, 0x68, 0x2e, 0x76, 0x31, 0x61, 668 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x22, 0x22, 0x82, 669 0xd3, 0xe4, 0x93, 0x02, 0x1c, 0x12, 0x1a, 0x2f, 0x65, 0x74, 0x68, 0x2f, 0x76, 0x31, 0x61, 0x6c, 670 0x70, 0x68, 0x61, 0x31, 0x2f, 0x6e, 0x6f, 0x64, 0x65, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x73, 0x69, 671 0x73, 0x12, 0x68, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 672 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 673 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x1e, 0x2e, 0x65, 0x74, 0x68, 0x65, 0x72, 0x65, 674 0x75, 0x6d, 0x2e, 0x65, 0x74, 0x68, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 675 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x22, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1c, 0x12, 676 0x1a, 0x2f, 0x65, 0x74, 0x68, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x6e, 677 0x6f, 0x64, 0x65, 0x2f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x82, 0x01, 0x0a, 0x17, 678 0x4c, 0x69, 0x73, 0x74, 0x49, 0x6d, 0x70, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x65, 0x64, 0x53, 679 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 680 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 681 0x2a, 0x2e, 0x65, 0x74, 0x68, 0x65, 0x72, 0x65, 0x75, 0x6d, 0x2e, 0x65, 0x74, 0x68, 0x2e, 0x76, 682 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x49, 0x6d, 0x70, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 683 0x74, 0x65, 0x64, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x22, 0x23, 0x82, 0xd3, 0xe4, 684 0x93, 0x02, 0x1d, 0x12, 0x1b, 0x2f, 0x65, 0x74, 0x68, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 685 0x61, 0x31, 0x2f, 0x6e, 0x6f, 0x64, 0x65, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 686 0x12, 0x62, 0x0a, 0x07, 0x47, 0x65, 0x74, 0x48, 0x6f, 0x73, 0x74, 0x12, 0x16, 0x2e, 0x67, 0x6f, 687 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 688 0x70, 0x74, 0x79, 0x1a, 0x1f, 0x2e, 0x65, 0x74, 0x68, 0x65, 0x72, 0x65, 0x75, 0x6d, 0x2e, 0x65, 689 0x74, 0x68, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x48, 0x6f, 0x73, 0x74, 690 0x44, 0x61, 0x74, 0x61, 0x22, 0x1e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x18, 0x12, 0x16, 0x2f, 0x65, 691 0x74, 0x68, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x6e, 0x6f, 0x64, 0x65, 692 0x2f, 0x70, 0x32, 0x70, 0x12, 0x6b, 0x0a, 0x07, 0x47, 0x65, 0x74, 0x50, 0x65, 0x65, 0x72, 0x12, 693 0x22, 0x2e, 0x65, 0x74, 0x68, 0x65, 0x72, 0x65, 0x75, 0x6d, 0x2e, 0x65, 0x74, 0x68, 0x2e, 0x76, 694 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x50, 0x65, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 695 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x65, 0x74, 0x68, 0x65, 0x72, 0x65, 0x75, 0x6d, 0x2e, 0x65, 696 0x74, 0x68, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x50, 0x65, 0x65, 0x72, 697 0x22, 0x1f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x19, 0x12, 0x17, 0x2f, 0x65, 0x74, 0x68, 0x2f, 0x76, 698 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x6e, 0x6f, 0x64, 0x65, 0x2f, 0x70, 0x65, 0x65, 699 0x72, 0x12, 0x63, 0x0a, 0x09, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x65, 0x65, 0x72, 0x73, 0x12, 0x16, 700 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 701 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x1c, 0x2e, 0x65, 0x74, 0x68, 0x65, 0x72, 0x65, 0x75, 702 0x6d, 0x2e, 0x65, 0x74, 0x68, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x50, 703 0x65, 0x65, 0x72, 0x73, 0x22, 0x20, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1a, 0x12, 0x18, 0x2f, 0x65, 704 0x74, 0x68, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x6e, 0x6f, 0x64, 0x65, 705 0x2f, 0x70, 0x65, 0x65, 0x72, 0x73, 0x42, 0x8f, 0x01, 0x0a, 0x19, 0x6f, 0x72, 0x67, 0x2e, 0x65, 706 0x74, 0x68, 0x65, 0x72, 0x65, 0x75, 0x6d, 0x2e, 0x65, 0x74, 0x68, 0x2e, 0x76, 0x31, 0x61, 0x6c, 707 0x70, 0x68, 0x61, 0x31, 0x42, 0x09, 0x4e, 0x6f, 0x64, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 708 0x01, 0x5a, 0x35, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x70, 0x72, 709 0x79, 0x73, 0x6d, 0x61, 0x74, 0x69, 0x63, 0x6c, 0x61, 0x62, 0x73, 0x2f, 0x70, 0x72, 0x79, 0x73, 710 0x6d, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x65, 0x74, 0x68, 0x2f, 0x76, 0x31, 0x61, 0x6c, 711 0x70, 0x68, 0x61, 0x31, 0x3b, 0x65, 0x74, 0x68, 0xaa, 0x02, 0x15, 0x45, 0x74, 0x68, 0x65, 0x72, 712 0x65, 0x75, 0x6d, 0x2e, 0x45, 0x74, 0x68, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 713 0xca, 0x02, 0x15, 0x45, 0x74, 0x68, 0x65, 0x72, 0x65, 0x75, 0x6d, 0x5c, 0x45, 0x74, 0x68, 0x5c, 714 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 715 } 716 717 var ( 718 file_proto_eth_v1alpha1_node_proto_rawDescOnce sync.Once 719 file_proto_eth_v1alpha1_node_proto_rawDescData = file_proto_eth_v1alpha1_node_proto_rawDesc 720 ) 721 722 func file_proto_eth_v1alpha1_node_proto_rawDescGZIP() []byte { 723 file_proto_eth_v1alpha1_node_proto_rawDescOnce.Do(func() { 724 file_proto_eth_v1alpha1_node_proto_rawDescData = protoimpl.X.CompressGZIP(file_proto_eth_v1alpha1_node_proto_rawDescData) 725 }) 726 return file_proto_eth_v1alpha1_node_proto_rawDescData 727 } 728 729 var file_proto_eth_v1alpha1_node_proto_enumTypes = make([]protoimpl.EnumInfo, 2) 730 var file_proto_eth_v1alpha1_node_proto_msgTypes = make([]protoimpl.MessageInfo, 8) 731 var file_proto_eth_v1alpha1_node_proto_goTypes = []interface{}{ 732 (PeerDirection)(0), // 0: ethereum.eth.v1alpha1.PeerDirection 733 (ConnectionState)(0), // 1: ethereum.eth.v1alpha1.ConnectionState 734 (*SyncStatus)(nil), // 2: ethereum.eth.v1alpha1.SyncStatus 735 (*Genesis)(nil), // 3: ethereum.eth.v1alpha1.Genesis 736 (*Version)(nil), // 4: ethereum.eth.v1alpha1.Version 737 (*ImplementedServices)(nil), // 5: ethereum.eth.v1alpha1.ImplementedServices 738 (*PeerRequest)(nil), // 6: ethereum.eth.v1alpha1.PeerRequest 739 (*Peers)(nil), // 7: ethereum.eth.v1alpha1.Peers 740 (*Peer)(nil), // 8: ethereum.eth.v1alpha1.Peer 741 (*HostData)(nil), // 9: ethereum.eth.v1alpha1.HostData 742 (*timestamp.Timestamp)(nil), // 10: google.protobuf.Timestamp 743 (*empty.Empty)(nil), // 11: google.protobuf.Empty 744 } 745 var file_proto_eth_v1alpha1_node_proto_depIdxs = []int32{ 746 10, // 0: ethereum.eth.v1alpha1.Genesis.genesis_time:type_name -> google.protobuf.Timestamp 747 8, // 1: ethereum.eth.v1alpha1.Peers.peers:type_name -> ethereum.eth.v1alpha1.Peer 748 0, // 2: ethereum.eth.v1alpha1.Peer.direction:type_name -> ethereum.eth.v1alpha1.PeerDirection 749 1, // 3: ethereum.eth.v1alpha1.Peer.connection_state:type_name -> ethereum.eth.v1alpha1.ConnectionState 750 11, // 4: ethereum.eth.v1alpha1.Node.GetSyncStatus:input_type -> google.protobuf.Empty 751 11, // 5: ethereum.eth.v1alpha1.Node.GetGenesis:input_type -> google.protobuf.Empty 752 11, // 6: ethereum.eth.v1alpha1.Node.GetVersion:input_type -> google.protobuf.Empty 753 11, // 7: ethereum.eth.v1alpha1.Node.ListImplementedServices:input_type -> google.protobuf.Empty 754 11, // 8: ethereum.eth.v1alpha1.Node.GetHost:input_type -> google.protobuf.Empty 755 6, // 9: ethereum.eth.v1alpha1.Node.GetPeer:input_type -> ethereum.eth.v1alpha1.PeerRequest 756 11, // 10: ethereum.eth.v1alpha1.Node.ListPeers:input_type -> google.protobuf.Empty 757 2, // 11: ethereum.eth.v1alpha1.Node.GetSyncStatus:output_type -> ethereum.eth.v1alpha1.SyncStatus 758 3, // 12: ethereum.eth.v1alpha1.Node.GetGenesis:output_type -> ethereum.eth.v1alpha1.Genesis 759 4, // 13: ethereum.eth.v1alpha1.Node.GetVersion:output_type -> ethereum.eth.v1alpha1.Version 760 5, // 14: ethereum.eth.v1alpha1.Node.ListImplementedServices:output_type -> ethereum.eth.v1alpha1.ImplementedServices 761 9, // 15: ethereum.eth.v1alpha1.Node.GetHost:output_type -> ethereum.eth.v1alpha1.HostData 762 8, // 16: ethereum.eth.v1alpha1.Node.GetPeer:output_type -> ethereum.eth.v1alpha1.Peer 763 7, // 17: ethereum.eth.v1alpha1.Node.ListPeers:output_type -> ethereum.eth.v1alpha1.Peers 764 11, // [11:18] is the sub-list for method output_type 765 4, // [4:11] is the sub-list for method input_type 766 4, // [4:4] is the sub-list for extension type_name 767 4, // [4:4] is the sub-list for extension extendee 768 0, // [0:4] is the sub-list for field type_name 769 } 770 771 func init() { file_proto_eth_v1alpha1_node_proto_init() } 772 func file_proto_eth_v1alpha1_node_proto_init() { 773 if File_proto_eth_v1alpha1_node_proto != nil { 774 return 775 } 776 if !protoimpl.UnsafeEnabled { 777 file_proto_eth_v1alpha1_node_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 778 switch v := v.(*SyncStatus); i { 779 case 0: 780 return &v.state 781 case 1: 782 return &v.sizeCache 783 case 2: 784 return &v.unknownFields 785 default: 786 return nil 787 } 788 } 789 file_proto_eth_v1alpha1_node_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 790 switch v := v.(*Genesis); i { 791 case 0: 792 return &v.state 793 case 1: 794 return &v.sizeCache 795 case 2: 796 return &v.unknownFields 797 default: 798 return nil 799 } 800 } 801 file_proto_eth_v1alpha1_node_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 802 switch v := v.(*Version); i { 803 case 0: 804 return &v.state 805 case 1: 806 return &v.sizeCache 807 case 2: 808 return &v.unknownFields 809 default: 810 return nil 811 } 812 } 813 file_proto_eth_v1alpha1_node_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 814 switch v := v.(*ImplementedServices); i { 815 case 0: 816 return &v.state 817 case 1: 818 return &v.sizeCache 819 case 2: 820 return &v.unknownFields 821 default: 822 return nil 823 } 824 } 825 file_proto_eth_v1alpha1_node_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { 826 switch v := v.(*PeerRequest); i { 827 case 0: 828 return &v.state 829 case 1: 830 return &v.sizeCache 831 case 2: 832 return &v.unknownFields 833 default: 834 return nil 835 } 836 } 837 file_proto_eth_v1alpha1_node_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { 838 switch v := v.(*Peers); i { 839 case 0: 840 return &v.state 841 case 1: 842 return &v.sizeCache 843 case 2: 844 return &v.unknownFields 845 default: 846 return nil 847 } 848 } 849 file_proto_eth_v1alpha1_node_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { 850 switch v := v.(*Peer); i { 851 case 0: 852 return &v.state 853 case 1: 854 return &v.sizeCache 855 case 2: 856 return &v.unknownFields 857 default: 858 return nil 859 } 860 } 861 file_proto_eth_v1alpha1_node_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { 862 switch v := v.(*HostData); i { 863 case 0: 864 return &v.state 865 case 1: 866 return &v.sizeCache 867 case 2: 868 return &v.unknownFields 869 default: 870 return nil 871 } 872 } 873 } 874 type x struct{} 875 out := protoimpl.TypeBuilder{ 876 File: protoimpl.DescBuilder{ 877 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 878 RawDescriptor: file_proto_eth_v1alpha1_node_proto_rawDesc, 879 NumEnums: 2, 880 NumMessages: 8, 881 NumExtensions: 0, 882 NumServices: 1, 883 }, 884 GoTypes: file_proto_eth_v1alpha1_node_proto_goTypes, 885 DependencyIndexes: file_proto_eth_v1alpha1_node_proto_depIdxs, 886 EnumInfos: file_proto_eth_v1alpha1_node_proto_enumTypes, 887 MessageInfos: file_proto_eth_v1alpha1_node_proto_msgTypes, 888 }.Build() 889 File_proto_eth_v1alpha1_node_proto = out.File 890 file_proto_eth_v1alpha1_node_proto_rawDesc = nil 891 file_proto_eth_v1alpha1_node_proto_goTypes = nil 892 file_proto_eth_v1alpha1_node_proto_depIdxs = nil 893 } 894 895 // Reference imports to suppress errors if they are not otherwise used. 896 var _ context.Context 897 var _ grpc.ClientConnInterface 898 899 // This is a compile-time assertion to ensure that this generated file 900 // is compatible with the grpc package it is being compiled against. 901 const _ = grpc.SupportPackageIsVersion6 902 903 // NodeClient is the client API for Node service. 904 // 905 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 906 type NodeClient interface { 907 GetSyncStatus(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*SyncStatus, error) 908 GetGenesis(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*Genesis, error) 909 GetVersion(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*Version, error) 910 ListImplementedServices(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*ImplementedServices, error) 911 GetHost(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*HostData, error) 912 GetPeer(ctx context.Context, in *PeerRequest, opts ...grpc.CallOption) (*Peer, error) 913 ListPeers(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*Peers, error) 914 } 915 916 type nodeClient struct { 917 cc grpc.ClientConnInterface 918 } 919 920 func NewNodeClient(cc grpc.ClientConnInterface) NodeClient { 921 return &nodeClient{cc} 922 } 923 924 func (c *nodeClient) GetSyncStatus(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*SyncStatus, error) { 925 out := new(SyncStatus) 926 err := c.cc.Invoke(ctx, "/ethereum.eth.v1alpha1.Node/GetSyncStatus", in, out, opts...) 927 if err != nil { 928 return nil, err 929 } 930 return out, nil 931 } 932 933 func (c *nodeClient) GetGenesis(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*Genesis, error) { 934 out := new(Genesis) 935 err := c.cc.Invoke(ctx, "/ethereum.eth.v1alpha1.Node/GetGenesis", in, out, opts...) 936 if err != nil { 937 return nil, err 938 } 939 return out, nil 940 } 941 942 func (c *nodeClient) GetVersion(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*Version, error) { 943 out := new(Version) 944 err := c.cc.Invoke(ctx, "/ethereum.eth.v1alpha1.Node/GetVersion", in, out, opts...) 945 if err != nil { 946 return nil, err 947 } 948 return out, nil 949 } 950 951 func (c *nodeClient) ListImplementedServices(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*ImplementedServices, error) { 952 out := new(ImplementedServices) 953 err := c.cc.Invoke(ctx, "/ethereum.eth.v1alpha1.Node/ListImplementedServices", in, out, opts...) 954 if err != nil { 955 return nil, err 956 } 957 return out, nil 958 } 959 960 func (c *nodeClient) GetHost(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*HostData, error) { 961 out := new(HostData) 962 err := c.cc.Invoke(ctx, "/ethereum.eth.v1alpha1.Node/GetHost", in, out, opts...) 963 if err != nil { 964 return nil, err 965 } 966 return out, nil 967 } 968 969 func (c *nodeClient) GetPeer(ctx context.Context, in *PeerRequest, opts ...grpc.CallOption) (*Peer, error) { 970 out := new(Peer) 971 err := c.cc.Invoke(ctx, "/ethereum.eth.v1alpha1.Node/GetPeer", in, out, opts...) 972 if err != nil { 973 return nil, err 974 } 975 return out, nil 976 } 977 978 func (c *nodeClient) ListPeers(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*Peers, error) { 979 out := new(Peers) 980 err := c.cc.Invoke(ctx, "/ethereum.eth.v1alpha1.Node/ListPeers", in, out, opts...) 981 if err != nil { 982 return nil, err 983 } 984 return out, nil 985 } 986 987 // NodeServer is the server API for Node service. 988 type NodeServer interface { 989 GetSyncStatus(context.Context, *empty.Empty) (*SyncStatus, error) 990 GetGenesis(context.Context, *empty.Empty) (*Genesis, error) 991 GetVersion(context.Context, *empty.Empty) (*Version, error) 992 ListImplementedServices(context.Context, *empty.Empty) (*ImplementedServices, error) 993 GetHost(context.Context, *empty.Empty) (*HostData, error) 994 GetPeer(context.Context, *PeerRequest) (*Peer, error) 995 ListPeers(context.Context, *empty.Empty) (*Peers, error) 996 } 997 998 // UnimplementedNodeServer can be embedded to have forward compatible implementations. 999 type UnimplementedNodeServer struct { 1000 } 1001 1002 func (*UnimplementedNodeServer) GetSyncStatus(context.Context, *empty.Empty) (*SyncStatus, error) { 1003 return nil, status.Errorf(codes.Unimplemented, "method GetSyncStatus not implemented") 1004 } 1005 func (*UnimplementedNodeServer) GetGenesis(context.Context, *empty.Empty) (*Genesis, error) { 1006 return nil, status.Errorf(codes.Unimplemented, "method GetGenesis not implemented") 1007 } 1008 func (*UnimplementedNodeServer) GetVersion(context.Context, *empty.Empty) (*Version, error) { 1009 return nil, status.Errorf(codes.Unimplemented, "method GetVersion not implemented") 1010 } 1011 func (*UnimplementedNodeServer) ListImplementedServices(context.Context, *empty.Empty) (*ImplementedServices, error) { 1012 return nil, status.Errorf(codes.Unimplemented, "method ListImplementedServices not implemented") 1013 } 1014 func (*UnimplementedNodeServer) GetHost(context.Context, *empty.Empty) (*HostData, error) { 1015 return nil, status.Errorf(codes.Unimplemented, "method GetHost not implemented") 1016 } 1017 func (*UnimplementedNodeServer) GetPeer(context.Context, *PeerRequest) (*Peer, error) { 1018 return nil, status.Errorf(codes.Unimplemented, "method GetPeer not implemented") 1019 } 1020 func (*UnimplementedNodeServer) ListPeers(context.Context, *empty.Empty) (*Peers, error) { 1021 return nil, status.Errorf(codes.Unimplemented, "method ListPeers not implemented") 1022 } 1023 1024 func RegisterNodeServer(s *grpc.Server, srv NodeServer) { 1025 s.RegisterService(&_Node_serviceDesc, srv) 1026 } 1027 1028 func _Node_GetSyncStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1029 in := new(empty.Empty) 1030 if err := dec(in); err != nil { 1031 return nil, err 1032 } 1033 if interceptor == nil { 1034 return srv.(NodeServer).GetSyncStatus(ctx, in) 1035 } 1036 info := &grpc.UnaryServerInfo{ 1037 Server: srv, 1038 FullMethod: "/ethereum.eth.v1alpha1.Node/GetSyncStatus", 1039 } 1040 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1041 return srv.(NodeServer).GetSyncStatus(ctx, req.(*empty.Empty)) 1042 } 1043 return interceptor(ctx, in, info, handler) 1044 } 1045 1046 func _Node_GetGenesis_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1047 in := new(empty.Empty) 1048 if err := dec(in); err != nil { 1049 return nil, err 1050 } 1051 if interceptor == nil { 1052 return srv.(NodeServer).GetGenesis(ctx, in) 1053 } 1054 info := &grpc.UnaryServerInfo{ 1055 Server: srv, 1056 FullMethod: "/ethereum.eth.v1alpha1.Node/GetGenesis", 1057 } 1058 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1059 return srv.(NodeServer).GetGenesis(ctx, req.(*empty.Empty)) 1060 } 1061 return interceptor(ctx, in, info, handler) 1062 } 1063 1064 func _Node_GetVersion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1065 in := new(empty.Empty) 1066 if err := dec(in); err != nil { 1067 return nil, err 1068 } 1069 if interceptor == nil { 1070 return srv.(NodeServer).GetVersion(ctx, in) 1071 } 1072 info := &grpc.UnaryServerInfo{ 1073 Server: srv, 1074 FullMethod: "/ethereum.eth.v1alpha1.Node/GetVersion", 1075 } 1076 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1077 return srv.(NodeServer).GetVersion(ctx, req.(*empty.Empty)) 1078 } 1079 return interceptor(ctx, in, info, handler) 1080 } 1081 1082 func _Node_ListImplementedServices_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1083 in := new(empty.Empty) 1084 if err := dec(in); err != nil { 1085 return nil, err 1086 } 1087 if interceptor == nil { 1088 return srv.(NodeServer).ListImplementedServices(ctx, in) 1089 } 1090 info := &grpc.UnaryServerInfo{ 1091 Server: srv, 1092 FullMethod: "/ethereum.eth.v1alpha1.Node/ListImplementedServices", 1093 } 1094 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1095 return srv.(NodeServer).ListImplementedServices(ctx, req.(*empty.Empty)) 1096 } 1097 return interceptor(ctx, in, info, handler) 1098 } 1099 1100 func _Node_GetHost_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1101 in := new(empty.Empty) 1102 if err := dec(in); err != nil { 1103 return nil, err 1104 } 1105 if interceptor == nil { 1106 return srv.(NodeServer).GetHost(ctx, in) 1107 } 1108 info := &grpc.UnaryServerInfo{ 1109 Server: srv, 1110 FullMethod: "/ethereum.eth.v1alpha1.Node/GetHost", 1111 } 1112 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1113 return srv.(NodeServer).GetHost(ctx, req.(*empty.Empty)) 1114 } 1115 return interceptor(ctx, in, info, handler) 1116 } 1117 1118 func _Node_GetPeer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1119 in := new(PeerRequest) 1120 if err := dec(in); err != nil { 1121 return nil, err 1122 } 1123 if interceptor == nil { 1124 return srv.(NodeServer).GetPeer(ctx, in) 1125 } 1126 info := &grpc.UnaryServerInfo{ 1127 Server: srv, 1128 FullMethod: "/ethereum.eth.v1alpha1.Node/GetPeer", 1129 } 1130 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1131 return srv.(NodeServer).GetPeer(ctx, req.(*PeerRequest)) 1132 } 1133 return interceptor(ctx, in, info, handler) 1134 } 1135 1136 func _Node_ListPeers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1137 in := new(empty.Empty) 1138 if err := dec(in); err != nil { 1139 return nil, err 1140 } 1141 if interceptor == nil { 1142 return srv.(NodeServer).ListPeers(ctx, in) 1143 } 1144 info := &grpc.UnaryServerInfo{ 1145 Server: srv, 1146 FullMethod: "/ethereum.eth.v1alpha1.Node/ListPeers", 1147 } 1148 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1149 return srv.(NodeServer).ListPeers(ctx, req.(*empty.Empty)) 1150 } 1151 return interceptor(ctx, in, info, handler) 1152 } 1153 1154 var _Node_serviceDesc = grpc.ServiceDesc{ 1155 ServiceName: "ethereum.eth.v1alpha1.Node", 1156 HandlerType: (*NodeServer)(nil), 1157 Methods: []grpc.MethodDesc{ 1158 { 1159 MethodName: "GetSyncStatus", 1160 Handler: _Node_GetSyncStatus_Handler, 1161 }, 1162 { 1163 MethodName: "GetGenesis", 1164 Handler: _Node_GetGenesis_Handler, 1165 }, 1166 { 1167 MethodName: "GetVersion", 1168 Handler: _Node_GetVersion_Handler, 1169 }, 1170 { 1171 MethodName: "ListImplementedServices", 1172 Handler: _Node_ListImplementedServices_Handler, 1173 }, 1174 { 1175 MethodName: "GetHost", 1176 Handler: _Node_GetHost_Handler, 1177 }, 1178 { 1179 MethodName: "GetPeer", 1180 Handler: _Node_GetPeer_Handler, 1181 }, 1182 { 1183 MethodName: "ListPeers", 1184 Handler: _Node_ListPeers_Handler, 1185 }, 1186 }, 1187 Streams: []grpc.StreamDesc{}, 1188 Metadata: "proto/eth/v1alpha1/node.proto", 1189 }