gitee.com/liuxuezhan/go-micro-v1.18.0@v1.0.0/router/proto/router.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // source: gitee.com/liuxuezhan/go-micro-v1.18.0/router/proto/router.proto 3 4 package go_micro_router 5 6 import ( 7 fmt "fmt" 8 proto "github.com/golang/protobuf/proto" 9 math "math" 10 ) 11 12 // Reference imports to suppress errors if they are not otherwise used. 13 var _ = proto.Marshal 14 var _ = fmt.Errorf 15 var _ = math.Inf 16 17 // This is a compile-time assertion to ensure that this generated file 18 // is compatible with the proto package it is being compiled against. 19 // A compilation error at this line likely means your copy of the 20 // proto package needs to be updated. 21 const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package 22 23 // AdvertType defines the type of advert 24 type AdvertType int32 25 26 const ( 27 AdvertType_AdvertAnnounce AdvertType = 0 28 AdvertType_AdvertUpdate AdvertType = 1 29 ) 30 31 var AdvertType_name = map[int32]string{ 32 0: "AdvertAnnounce", 33 1: "AdvertUpdate", 34 } 35 36 var AdvertType_value = map[string]int32{ 37 "AdvertAnnounce": 0, 38 "AdvertUpdate": 1, 39 } 40 41 func (x AdvertType) String() string { 42 return proto.EnumName(AdvertType_name, int32(x)) 43 } 44 45 func (AdvertType) EnumDescriptor() ([]byte, []int) { 46 return fileDescriptor_2dd64c6ec344e37e, []int{0} 47 } 48 49 // EventType defines the type of event 50 type EventType int32 51 52 const ( 53 EventType_Create EventType = 0 54 EventType_Delete EventType = 1 55 EventType_Update EventType = 2 56 ) 57 58 var EventType_name = map[int32]string{ 59 0: "Create", 60 1: "Delete", 61 2: "Update", 62 } 63 64 var EventType_value = map[string]int32{ 65 "Create": 0, 66 "Delete": 1, 67 "Update": 2, 68 } 69 70 func (x EventType) String() string { 71 return proto.EnumName(EventType_name, int32(x)) 72 } 73 74 func (EventType) EnumDescriptor() ([]byte, []int) { 75 return fileDescriptor_2dd64c6ec344e37e, []int{1} 76 } 77 78 // Empty request 79 type Request struct { 80 XXX_NoUnkeyedLiteral struct{} `json:"-"` 81 XXX_unrecognized []byte `json:"-"` 82 XXX_sizecache int32 `json:"-"` 83 } 84 85 func (m *Request) Reset() { *m = Request{} } 86 func (m *Request) String() string { return proto.CompactTextString(m) } 87 func (*Request) ProtoMessage() {} 88 func (*Request) Descriptor() ([]byte, []int) { 89 return fileDescriptor_2dd64c6ec344e37e, []int{0} 90 } 91 92 func (m *Request) XXX_Unmarshal(b []byte) error { 93 return xxx_messageInfo_Request.Unmarshal(m, b) 94 } 95 func (m *Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 96 return xxx_messageInfo_Request.Marshal(b, m, deterministic) 97 } 98 func (m *Request) XXX_Merge(src proto.Message) { 99 xxx_messageInfo_Request.Merge(m, src) 100 } 101 func (m *Request) XXX_Size() int { 102 return xxx_messageInfo_Request.Size(m) 103 } 104 func (m *Request) XXX_DiscardUnknown() { 105 xxx_messageInfo_Request.DiscardUnknown(m) 106 } 107 108 var xxx_messageInfo_Request proto.InternalMessageInfo 109 110 // Empty response 111 type Response struct { 112 XXX_NoUnkeyedLiteral struct{} `json:"-"` 113 XXX_unrecognized []byte `json:"-"` 114 XXX_sizecache int32 `json:"-"` 115 } 116 117 func (m *Response) Reset() { *m = Response{} } 118 func (m *Response) String() string { return proto.CompactTextString(m) } 119 func (*Response) ProtoMessage() {} 120 func (*Response) Descriptor() ([]byte, []int) { 121 return fileDescriptor_2dd64c6ec344e37e, []int{1} 122 } 123 124 func (m *Response) XXX_Unmarshal(b []byte) error { 125 return xxx_messageInfo_Response.Unmarshal(m, b) 126 } 127 func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 128 return xxx_messageInfo_Response.Marshal(b, m, deterministic) 129 } 130 func (m *Response) XXX_Merge(src proto.Message) { 131 xxx_messageInfo_Response.Merge(m, src) 132 } 133 func (m *Response) XXX_Size() int { 134 return xxx_messageInfo_Response.Size(m) 135 } 136 func (m *Response) XXX_DiscardUnknown() { 137 xxx_messageInfo_Response.DiscardUnknown(m) 138 } 139 140 var xxx_messageInfo_Response proto.InternalMessageInfo 141 142 // ListResponse is returned by List 143 type ListResponse struct { 144 Routes []*Route `protobuf:"bytes,1,rep,name=routes,proto3" json:"routes,omitempty"` 145 XXX_NoUnkeyedLiteral struct{} `json:"-"` 146 XXX_unrecognized []byte `json:"-"` 147 XXX_sizecache int32 `json:"-"` 148 } 149 150 func (m *ListResponse) Reset() { *m = ListResponse{} } 151 func (m *ListResponse) String() string { return proto.CompactTextString(m) } 152 func (*ListResponse) ProtoMessage() {} 153 func (*ListResponse) Descriptor() ([]byte, []int) { 154 return fileDescriptor_2dd64c6ec344e37e, []int{2} 155 } 156 157 func (m *ListResponse) XXX_Unmarshal(b []byte) error { 158 return xxx_messageInfo_ListResponse.Unmarshal(m, b) 159 } 160 func (m *ListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 161 return xxx_messageInfo_ListResponse.Marshal(b, m, deterministic) 162 } 163 func (m *ListResponse) XXX_Merge(src proto.Message) { 164 xxx_messageInfo_ListResponse.Merge(m, src) 165 } 166 func (m *ListResponse) XXX_Size() int { 167 return xxx_messageInfo_ListResponse.Size(m) 168 } 169 func (m *ListResponse) XXX_DiscardUnknown() { 170 xxx_messageInfo_ListResponse.DiscardUnknown(m) 171 } 172 173 var xxx_messageInfo_ListResponse proto.InternalMessageInfo 174 175 func (m *ListResponse) GetRoutes() []*Route { 176 if m != nil { 177 return m.Routes 178 } 179 return nil 180 } 181 182 // LookupRequest is made to Lookup 183 type LookupRequest struct { 184 Query *Query `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"` 185 XXX_NoUnkeyedLiteral struct{} `json:"-"` 186 XXX_unrecognized []byte `json:"-"` 187 XXX_sizecache int32 `json:"-"` 188 } 189 190 func (m *LookupRequest) Reset() { *m = LookupRequest{} } 191 func (m *LookupRequest) String() string { return proto.CompactTextString(m) } 192 func (*LookupRequest) ProtoMessage() {} 193 func (*LookupRequest) Descriptor() ([]byte, []int) { 194 return fileDescriptor_2dd64c6ec344e37e, []int{3} 195 } 196 197 func (m *LookupRequest) XXX_Unmarshal(b []byte) error { 198 return xxx_messageInfo_LookupRequest.Unmarshal(m, b) 199 } 200 func (m *LookupRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 201 return xxx_messageInfo_LookupRequest.Marshal(b, m, deterministic) 202 } 203 func (m *LookupRequest) XXX_Merge(src proto.Message) { 204 xxx_messageInfo_LookupRequest.Merge(m, src) 205 } 206 func (m *LookupRequest) XXX_Size() int { 207 return xxx_messageInfo_LookupRequest.Size(m) 208 } 209 func (m *LookupRequest) XXX_DiscardUnknown() { 210 xxx_messageInfo_LookupRequest.DiscardUnknown(m) 211 } 212 213 var xxx_messageInfo_LookupRequest proto.InternalMessageInfo 214 215 func (m *LookupRequest) GetQuery() *Query { 216 if m != nil { 217 return m.Query 218 } 219 return nil 220 } 221 222 // LookupResponse is returned by Lookup 223 type LookupResponse struct { 224 Routes []*Route `protobuf:"bytes,1,rep,name=routes,proto3" json:"routes,omitempty"` 225 XXX_NoUnkeyedLiteral struct{} `json:"-"` 226 XXX_unrecognized []byte `json:"-"` 227 XXX_sizecache int32 `json:"-"` 228 } 229 230 func (m *LookupResponse) Reset() { *m = LookupResponse{} } 231 func (m *LookupResponse) String() string { return proto.CompactTextString(m) } 232 func (*LookupResponse) ProtoMessage() {} 233 func (*LookupResponse) Descriptor() ([]byte, []int) { 234 return fileDescriptor_2dd64c6ec344e37e, []int{4} 235 } 236 237 func (m *LookupResponse) XXX_Unmarshal(b []byte) error { 238 return xxx_messageInfo_LookupResponse.Unmarshal(m, b) 239 } 240 func (m *LookupResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 241 return xxx_messageInfo_LookupResponse.Marshal(b, m, deterministic) 242 } 243 func (m *LookupResponse) XXX_Merge(src proto.Message) { 244 xxx_messageInfo_LookupResponse.Merge(m, src) 245 } 246 func (m *LookupResponse) XXX_Size() int { 247 return xxx_messageInfo_LookupResponse.Size(m) 248 } 249 func (m *LookupResponse) XXX_DiscardUnknown() { 250 xxx_messageInfo_LookupResponse.DiscardUnknown(m) 251 } 252 253 var xxx_messageInfo_LookupResponse proto.InternalMessageInfo 254 255 func (m *LookupResponse) GetRoutes() []*Route { 256 if m != nil { 257 return m.Routes 258 } 259 return nil 260 } 261 262 // QueryRequest queries Table for Routes 263 type QueryRequest struct { 264 Query *Query `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"` 265 XXX_NoUnkeyedLiteral struct{} `json:"-"` 266 XXX_unrecognized []byte `json:"-"` 267 XXX_sizecache int32 `json:"-"` 268 } 269 270 func (m *QueryRequest) Reset() { *m = QueryRequest{} } 271 func (m *QueryRequest) String() string { return proto.CompactTextString(m) } 272 func (*QueryRequest) ProtoMessage() {} 273 func (*QueryRequest) Descriptor() ([]byte, []int) { 274 return fileDescriptor_2dd64c6ec344e37e, []int{5} 275 } 276 277 func (m *QueryRequest) XXX_Unmarshal(b []byte) error { 278 return xxx_messageInfo_QueryRequest.Unmarshal(m, b) 279 } 280 func (m *QueryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 281 return xxx_messageInfo_QueryRequest.Marshal(b, m, deterministic) 282 } 283 func (m *QueryRequest) XXX_Merge(src proto.Message) { 284 xxx_messageInfo_QueryRequest.Merge(m, src) 285 } 286 func (m *QueryRequest) XXX_Size() int { 287 return xxx_messageInfo_QueryRequest.Size(m) 288 } 289 func (m *QueryRequest) XXX_DiscardUnknown() { 290 xxx_messageInfo_QueryRequest.DiscardUnknown(m) 291 } 292 293 var xxx_messageInfo_QueryRequest proto.InternalMessageInfo 294 295 func (m *QueryRequest) GetQuery() *Query { 296 if m != nil { 297 return m.Query 298 } 299 return nil 300 } 301 302 // QueryResponse is returned by Query 303 type QueryResponse struct { 304 Routes []*Route `protobuf:"bytes,1,rep,name=routes,proto3" json:"routes,omitempty"` 305 XXX_NoUnkeyedLiteral struct{} `json:"-"` 306 XXX_unrecognized []byte `json:"-"` 307 XXX_sizecache int32 `json:"-"` 308 } 309 310 func (m *QueryResponse) Reset() { *m = QueryResponse{} } 311 func (m *QueryResponse) String() string { return proto.CompactTextString(m) } 312 func (*QueryResponse) ProtoMessage() {} 313 func (*QueryResponse) Descriptor() ([]byte, []int) { 314 return fileDescriptor_2dd64c6ec344e37e, []int{6} 315 } 316 317 func (m *QueryResponse) XXX_Unmarshal(b []byte) error { 318 return xxx_messageInfo_QueryResponse.Unmarshal(m, b) 319 } 320 func (m *QueryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 321 return xxx_messageInfo_QueryResponse.Marshal(b, m, deterministic) 322 } 323 func (m *QueryResponse) XXX_Merge(src proto.Message) { 324 xxx_messageInfo_QueryResponse.Merge(m, src) 325 } 326 func (m *QueryResponse) XXX_Size() int { 327 return xxx_messageInfo_QueryResponse.Size(m) 328 } 329 func (m *QueryResponse) XXX_DiscardUnknown() { 330 xxx_messageInfo_QueryResponse.DiscardUnknown(m) 331 } 332 333 var xxx_messageInfo_QueryResponse proto.InternalMessageInfo 334 335 func (m *QueryResponse) GetRoutes() []*Route { 336 if m != nil { 337 return m.Routes 338 } 339 return nil 340 } 341 342 // WatchRequest is made to Watch Router 343 type WatchRequest struct { 344 XXX_NoUnkeyedLiteral struct{} `json:"-"` 345 XXX_unrecognized []byte `json:"-"` 346 XXX_sizecache int32 `json:"-"` 347 } 348 349 func (m *WatchRequest) Reset() { *m = WatchRequest{} } 350 func (m *WatchRequest) String() string { return proto.CompactTextString(m) } 351 func (*WatchRequest) ProtoMessage() {} 352 func (*WatchRequest) Descriptor() ([]byte, []int) { 353 return fileDescriptor_2dd64c6ec344e37e, []int{7} 354 } 355 356 func (m *WatchRequest) XXX_Unmarshal(b []byte) error { 357 return xxx_messageInfo_WatchRequest.Unmarshal(m, b) 358 } 359 func (m *WatchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 360 return xxx_messageInfo_WatchRequest.Marshal(b, m, deterministic) 361 } 362 func (m *WatchRequest) XXX_Merge(src proto.Message) { 363 xxx_messageInfo_WatchRequest.Merge(m, src) 364 } 365 func (m *WatchRequest) XXX_Size() int { 366 return xxx_messageInfo_WatchRequest.Size(m) 367 } 368 func (m *WatchRequest) XXX_DiscardUnknown() { 369 xxx_messageInfo_WatchRequest.DiscardUnknown(m) 370 } 371 372 var xxx_messageInfo_WatchRequest proto.InternalMessageInfo 373 374 // Advert is router advertsement streamed by Watch 375 type Advert struct { 376 // id of the advertising router 377 Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` 378 // type of advertisement 379 Type AdvertType `protobuf:"varint,2,opt,name=type,proto3,enum=go.micro.router.AdvertType" json:"type,omitempty"` 380 // unix timestamp of the advertisement 381 Timestamp int64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` 382 // TTL of the Advert 383 Ttl int64 `protobuf:"varint,4,opt,name=ttl,proto3" json:"ttl,omitempty"` 384 // events is a list of advertised events 385 Events []*Event `protobuf:"bytes,5,rep,name=events,proto3" json:"events,omitempty"` 386 XXX_NoUnkeyedLiteral struct{} `json:"-"` 387 XXX_unrecognized []byte `json:"-"` 388 XXX_sizecache int32 `json:"-"` 389 } 390 391 func (m *Advert) Reset() { *m = Advert{} } 392 func (m *Advert) String() string { return proto.CompactTextString(m) } 393 func (*Advert) ProtoMessage() {} 394 func (*Advert) Descriptor() ([]byte, []int) { 395 return fileDescriptor_2dd64c6ec344e37e, []int{8} 396 } 397 398 func (m *Advert) XXX_Unmarshal(b []byte) error { 399 return xxx_messageInfo_Advert.Unmarshal(m, b) 400 } 401 func (m *Advert) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 402 return xxx_messageInfo_Advert.Marshal(b, m, deterministic) 403 } 404 func (m *Advert) XXX_Merge(src proto.Message) { 405 xxx_messageInfo_Advert.Merge(m, src) 406 } 407 func (m *Advert) XXX_Size() int { 408 return xxx_messageInfo_Advert.Size(m) 409 } 410 func (m *Advert) XXX_DiscardUnknown() { 411 xxx_messageInfo_Advert.DiscardUnknown(m) 412 } 413 414 var xxx_messageInfo_Advert proto.InternalMessageInfo 415 416 func (m *Advert) GetId() string { 417 if m != nil { 418 return m.Id 419 } 420 return "" 421 } 422 423 func (m *Advert) GetType() AdvertType { 424 if m != nil { 425 return m.Type 426 } 427 return AdvertType_AdvertAnnounce 428 } 429 430 func (m *Advert) GetTimestamp() int64 { 431 if m != nil { 432 return m.Timestamp 433 } 434 return 0 435 } 436 437 func (m *Advert) GetTtl() int64 { 438 if m != nil { 439 return m.Ttl 440 } 441 return 0 442 } 443 444 func (m *Advert) GetEvents() []*Event { 445 if m != nil { 446 return m.Events 447 } 448 return nil 449 } 450 451 // Solicit solicits routes 452 type Solicit struct { 453 // id of the soliciting router 454 Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` 455 XXX_NoUnkeyedLiteral struct{} `json:"-"` 456 XXX_unrecognized []byte `json:"-"` 457 XXX_sizecache int32 `json:"-"` 458 } 459 460 func (m *Solicit) Reset() { *m = Solicit{} } 461 func (m *Solicit) String() string { return proto.CompactTextString(m) } 462 func (*Solicit) ProtoMessage() {} 463 func (*Solicit) Descriptor() ([]byte, []int) { 464 return fileDescriptor_2dd64c6ec344e37e, []int{9} 465 } 466 467 func (m *Solicit) XXX_Unmarshal(b []byte) error { 468 return xxx_messageInfo_Solicit.Unmarshal(m, b) 469 } 470 func (m *Solicit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 471 return xxx_messageInfo_Solicit.Marshal(b, m, deterministic) 472 } 473 func (m *Solicit) XXX_Merge(src proto.Message) { 474 xxx_messageInfo_Solicit.Merge(m, src) 475 } 476 func (m *Solicit) XXX_Size() int { 477 return xxx_messageInfo_Solicit.Size(m) 478 } 479 func (m *Solicit) XXX_DiscardUnknown() { 480 xxx_messageInfo_Solicit.DiscardUnknown(m) 481 } 482 483 var xxx_messageInfo_Solicit proto.InternalMessageInfo 484 485 func (m *Solicit) GetId() string { 486 if m != nil { 487 return m.Id 488 } 489 return "" 490 } 491 492 // ProcessResponse is returned by Process 493 type ProcessResponse struct { 494 XXX_NoUnkeyedLiteral struct{} `json:"-"` 495 XXX_unrecognized []byte `json:"-"` 496 XXX_sizecache int32 `json:"-"` 497 } 498 499 func (m *ProcessResponse) Reset() { *m = ProcessResponse{} } 500 func (m *ProcessResponse) String() string { return proto.CompactTextString(m) } 501 func (*ProcessResponse) ProtoMessage() {} 502 func (*ProcessResponse) Descriptor() ([]byte, []int) { 503 return fileDescriptor_2dd64c6ec344e37e, []int{10} 504 } 505 506 func (m *ProcessResponse) XXX_Unmarshal(b []byte) error { 507 return xxx_messageInfo_ProcessResponse.Unmarshal(m, b) 508 } 509 func (m *ProcessResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 510 return xxx_messageInfo_ProcessResponse.Marshal(b, m, deterministic) 511 } 512 func (m *ProcessResponse) XXX_Merge(src proto.Message) { 513 xxx_messageInfo_ProcessResponse.Merge(m, src) 514 } 515 func (m *ProcessResponse) XXX_Size() int { 516 return xxx_messageInfo_ProcessResponse.Size(m) 517 } 518 func (m *ProcessResponse) XXX_DiscardUnknown() { 519 xxx_messageInfo_ProcessResponse.DiscardUnknown(m) 520 } 521 522 var xxx_messageInfo_ProcessResponse proto.InternalMessageInfo 523 524 // CreateResponse is returned by Create 525 type CreateResponse struct { 526 XXX_NoUnkeyedLiteral struct{} `json:"-"` 527 XXX_unrecognized []byte `json:"-"` 528 XXX_sizecache int32 `json:"-"` 529 } 530 531 func (m *CreateResponse) Reset() { *m = CreateResponse{} } 532 func (m *CreateResponse) String() string { return proto.CompactTextString(m) } 533 func (*CreateResponse) ProtoMessage() {} 534 func (*CreateResponse) Descriptor() ([]byte, []int) { 535 return fileDescriptor_2dd64c6ec344e37e, []int{11} 536 } 537 538 func (m *CreateResponse) XXX_Unmarshal(b []byte) error { 539 return xxx_messageInfo_CreateResponse.Unmarshal(m, b) 540 } 541 func (m *CreateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 542 return xxx_messageInfo_CreateResponse.Marshal(b, m, deterministic) 543 } 544 func (m *CreateResponse) XXX_Merge(src proto.Message) { 545 xxx_messageInfo_CreateResponse.Merge(m, src) 546 } 547 func (m *CreateResponse) XXX_Size() int { 548 return xxx_messageInfo_CreateResponse.Size(m) 549 } 550 func (m *CreateResponse) XXX_DiscardUnknown() { 551 xxx_messageInfo_CreateResponse.DiscardUnknown(m) 552 } 553 554 var xxx_messageInfo_CreateResponse proto.InternalMessageInfo 555 556 // DeleteResponse is returned by Delete 557 type DeleteResponse struct { 558 XXX_NoUnkeyedLiteral struct{} `json:"-"` 559 XXX_unrecognized []byte `json:"-"` 560 XXX_sizecache int32 `json:"-"` 561 } 562 563 func (m *DeleteResponse) Reset() { *m = DeleteResponse{} } 564 func (m *DeleteResponse) String() string { return proto.CompactTextString(m) } 565 func (*DeleteResponse) ProtoMessage() {} 566 func (*DeleteResponse) Descriptor() ([]byte, []int) { 567 return fileDescriptor_2dd64c6ec344e37e, []int{12} 568 } 569 570 func (m *DeleteResponse) XXX_Unmarshal(b []byte) error { 571 return xxx_messageInfo_DeleteResponse.Unmarshal(m, b) 572 } 573 func (m *DeleteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 574 return xxx_messageInfo_DeleteResponse.Marshal(b, m, deterministic) 575 } 576 func (m *DeleteResponse) XXX_Merge(src proto.Message) { 577 xxx_messageInfo_DeleteResponse.Merge(m, src) 578 } 579 func (m *DeleteResponse) XXX_Size() int { 580 return xxx_messageInfo_DeleteResponse.Size(m) 581 } 582 func (m *DeleteResponse) XXX_DiscardUnknown() { 583 xxx_messageInfo_DeleteResponse.DiscardUnknown(m) 584 } 585 586 var xxx_messageInfo_DeleteResponse proto.InternalMessageInfo 587 588 // UpdateResponse is returned by Update 589 type UpdateResponse struct { 590 XXX_NoUnkeyedLiteral struct{} `json:"-"` 591 XXX_unrecognized []byte `json:"-"` 592 XXX_sizecache int32 `json:"-"` 593 } 594 595 func (m *UpdateResponse) Reset() { *m = UpdateResponse{} } 596 func (m *UpdateResponse) String() string { return proto.CompactTextString(m) } 597 func (*UpdateResponse) ProtoMessage() {} 598 func (*UpdateResponse) Descriptor() ([]byte, []int) { 599 return fileDescriptor_2dd64c6ec344e37e, []int{13} 600 } 601 602 func (m *UpdateResponse) XXX_Unmarshal(b []byte) error { 603 return xxx_messageInfo_UpdateResponse.Unmarshal(m, b) 604 } 605 func (m *UpdateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 606 return xxx_messageInfo_UpdateResponse.Marshal(b, m, deterministic) 607 } 608 func (m *UpdateResponse) XXX_Merge(src proto.Message) { 609 xxx_messageInfo_UpdateResponse.Merge(m, src) 610 } 611 func (m *UpdateResponse) XXX_Size() int { 612 return xxx_messageInfo_UpdateResponse.Size(m) 613 } 614 func (m *UpdateResponse) XXX_DiscardUnknown() { 615 xxx_messageInfo_UpdateResponse.DiscardUnknown(m) 616 } 617 618 var xxx_messageInfo_UpdateResponse proto.InternalMessageInfo 619 620 // Event is routing table event 621 type Event struct { 622 // type of event 623 Type EventType `protobuf:"varint,1,opt,name=type,proto3,enum=go.micro.router.EventType" json:"type,omitempty"` 624 // unix timestamp of event 625 Timestamp int64 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` 626 // service route 627 Route *Route `protobuf:"bytes,3,opt,name=route,proto3" json:"route,omitempty"` 628 XXX_NoUnkeyedLiteral struct{} `json:"-"` 629 XXX_unrecognized []byte `json:"-"` 630 XXX_sizecache int32 `json:"-"` 631 } 632 633 func (m *Event) Reset() { *m = Event{} } 634 func (m *Event) String() string { return proto.CompactTextString(m) } 635 func (*Event) ProtoMessage() {} 636 func (*Event) Descriptor() ([]byte, []int) { 637 return fileDescriptor_2dd64c6ec344e37e, []int{14} 638 } 639 640 func (m *Event) XXX_Unmarshal(b []byte) error { 641 return xxx_messageInfo_Event.Unmarshal(m, b) 642 } 643 func (m *Event) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 644 return xxx_messageInfo_Event.Marshal(b, m, deterministic) 645 } 646 func (m *Event) XXX_Merge(src proto.Message) { 647 xxx_messageInfo_Event.Merge(m, src) 648 } 649 func (m *Event) XXX_Size() int { 650 return xxx_messageInfo_Event.Size(m) 651 } 652 func (m *Event) XXX_DiscardUnknown() { 653 xxx_messageInfo_Event.DiscardUnknown(m) 654 } 655 656 var xxx_messageInfo_Event proto.InternalMessageInfo 657 658 func (m *Event) GetType() EventType { 659 if m != nil { 660 return m.Type 661 } 662 return EventType_Create 663 } 664 665 func (m *Event) GetTimestamp() int64 { 666 if m != nil { 667 return m.Timestamp 668 } 669 return 0 670 } 671 672 func (m *Event) GetRoute() *Route { 673 if m != nil { 674 return m.Route 675 } 676 return nil 677 } 678 679 // Query is passed in a LookupRequest 680 type Query struct { 681 // service to lookup 682 Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"` 683 // gateway to lookup 684 Gateway string `protobuf:"bytes,2,opt,name=gateway,proto3" json:"gateway,omitempty"` 685 // network to lookup 686 Network string `protobuf:"bytes,3,opt,name=network,proto3" json:"network,omitempty"` 687 XXX_NoUnkeyedLiteral struct{} `json:"-"` 688 XXX_unrecognized []byte `json:"-"` 689 XXX_sizecache int32 `json:"-"` 690 } 691 692 func (m *Query) Reset() { *m = Query{} } 693 func (m *Query) String() string { return proto.CompactTextString(m) } 694 func (*Query) ProtoMessage() {} 695 func (*Query) Descriptor() ([]byte, []int) { 696 return fileDescriptor_2dd64c6ec344e37e, []int{15} 697 } 698 699 func (m *Query) XXX_Unmarshal(b []byte) error { 700 return xxx_messageInfo_Query.Unmarshal(m, b) 701 } 702 func (m *Query) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 703 return xxx_messageInfo_Query.Marshal(b, m, deterministic) 704 } 705 func (m *Query) XXX_Merge(src proto.Message) { 706 xxx_messageInfo_Query.Merge(m, src) 707 } 708 func (m *Query) XXX_Size() int { 709 return xxx_messageInfo_Query.Size(m) 710 } 711 func (m *Query) XXX_DiscardUnknown() { 712 xxx_messageInfo_Query.DiscardUnknown(m) 713 } 714 715 var xxx_messageInfo_Query proto.InternalMessageInfo 716 717 func (m *Query) GetService() string { 718 if m != nil { 719 return m.Service 720 } 721 return "" 722 } 723 724 func (m *Query) GetGateway() string { 725 if m != nil { 726 return m.Gateway 727 } 728 return "" 729 } 730 731 func (m *Query) GetNetwork() string { 732 if m != nil { 733 return m.Network 734 } 735 return "" 736 } 737 738 // Route is a service route 739 type Route struct { 740 // service for the route 741 Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"` 742 // the address that advertise this route 743 Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` 744 // gateway as the next hop 745 Gateway string `protobuf:"bytes,3,opt,name=gateway,proto3" json:"gateway,omitempty"` 746 // the network for this destination 747 Network string `protobuf:"bytes,4,opt,name=network,proto3" json:"network,omitempty"` 748 // router if the router id 749 Router string `protobuf:"bytes,5,opt,name=router,proto3" json:"router,omitempty"` 750 // the network link 751 Link string `protobuf:"bytes,6,opt,name=link,proto3" json:"link,omitempty"` 752 // the metric / score of this route 753 Metric int64 `protobuf:"varint,7,opt,name=metric,proto3" json:"metric,omitempty"` 754 XXX_NoUnkeyedLiteral struct{} `json:"-"` 755 XXX_unrecognized []byte `json:"-"` 756 XXX_sizecache int32 `json:"-"` 757 } 758 759 func (m *Route) Reset() { *m = Route{} } 760 func (m *Route) String() string { return proto.CompactTextString(m) } 761 func (*Route) ProtoMessage() {} 762 func (*Route) Descriptor() ([]byte, []int) { 763 return fileDescriptor_2dd64c6ec344e37e, []int{16} 764 } 765 766 func (m *Route) XXX_Unmarshal(b []byte) error { 767 return xxx_messageInfo_Route.Unmarshal(m, b) 768 } 769 func (m *Route) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 770 return xxx_messageInfo_Route.Marshal(b, m, deterministic) 771 } 772 func (m *Route) XXX_Merge(src proto.Message) { 773 xxx_messageInfo_Route.Merge(m, src) 774 } 775 func (m *Route) XXX_Size() int { 776 return xxx_messageInfo_Route.Size(m) 777 } 778 func (m *Route) XXX_DiscardUnknown() { 779 xxx_messageInfo_Route.DiscardUnknown(m) 780 } 781 782 var xxx_messageInfo_Route proto.InternalMessageInfo 783 784 func (m *Route) GetService() string { 785 if m != nil { 786 return m.Service 787 } 788 return "" 789 } 790 791 func (m *Route) GetAddress() string { 792 if m != nil { 793 return m.Address 794 } 795 return "" 796 } 797 798 func (m *Route) GetGateway() string { 799 if m != nil { 800 return m.Gateway 801 } 802 return "" 803 } 804 805 func (m *Route) GetNetwork() string { 806 if m != nil { 807 return m.Network 808 } 809 return "" 810 } 811 812 func (m *Route) GetRouter() string { 813 if m != nil { 814 return m.Router 815 } 816 return "" 817 } 818 819 func (m *Route) GetLink() string { 820 if m != nil { 821 return m.Link 822 } 823 return "" 824 } 825 826 func (m *Route) GetMetric() int64 { 827 if m != nil { 828 return m.Metric 829 } 830 return 0 831 } 832 833 type Status struct { 834 Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` 835 Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` 836 XXX_NoUnkeyedLiteral struct{} `json:"-"` 837 XXX_unrecognized []byte `json:"-"` 838 XXX_sizecache int32 `json:"-"` 839 } 840 841 func (m *Status) Reset() { *m = Status{} } 842 func (m *Status) String() string { return proto.CompactTextString(m) } 843 func (*Status) ProtoMessage() {} 844 func (*Status) Descriptor() ([]byte, []int) { 845 return fileDescriptor_2dd64c6ec344e37e, []int{17} 846 } 847 848 func (m *Status) XXX_Unmarshal(b []byte) error { 849 return xxx_messageInfo_Status.Unmarshal(m, b) 850 } 851 func (m *Status) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 852 return xxx_messageInfo_Status.Marshal(b, m, deterministic) 853 } 854 func (m *Status) XXX_Merge(src proto.Message) { 855 xxx_messageInfo_Status.Merge(m, src) 856 } 857 func (m *Status) XXX_Size() int { 858 return xxx_messageInfo_Status.Size(m) 859 } 860 func (m *Status) XXX_DiscardUnknown() { 861 xxx_messageInfo_Status.DiscardUnknown(m) 862 } 863 864 var xxx_messageInfo_Status proto.InternalMessageInfo 865 866 func (m *Status) GetCode() string { 867 if m != nil { 868 return m.Code 869 } 870 return "" 871 } 872 873 func (m *Status) GetError() string { 874 if m != nil { 875 return m.Error 876 } 877 return "" 878 } 879 880 type StatusResponse struct { 881 Status *Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` 882 XXX_NoUnkeyedLiteral struct{} `json:"-"` 883 XXX_unrecognized []byte `json:"-"` 884 XXX_sizecache int32 `json:"-"` 885 } 886 887 func (m *StatusResponse) Reset() { *m = StatusResponse{} } 888 func (m *StatusResponse) String() string { return proto.CompactTextString(m) } 889 func (*StatusResponse) ProtoMessage() {} 890 func (*StatusResponse) Descriptor() ([]byte, []int) { 891 return fileDescriptor_2dd64c6ec344e37e, []int{18} 892 } 893 894 func (m *StatusResponse) XXX_Unmarshal(b []byte) error { 895 return xxx_messageInfo_StatusResponse.Unmarshal(m, b) 896 } 897 func (m *StatusResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 898 return xxx_messageInfo_StatusResponse.Marshal(b, m, deterministic) 899 } 900 func (m *StatusResponse) XXX_Merge(src proto.Message) { 901 xxx_messageInfo_StatusResponse.Merge(m, src) 902 } 903 func (m *StatusResponse) XXX_Size() int { 904 return xxx_messageInfo_StatusResponse.Size(m) 905 } 906 func (m *StatusResponse) XXX_DiscardUnknown() { 907 xxx_messageInfo_StatusResponse.DiscardUnknown(m) 908 } 909 910 var xxx_messageInfo_StatusResponse proto.InternalMessageInfo 911 912 func (m *StatusResponse) GetStatus() *Status { 913 if m != nil { 914 return m.Status 915 } 916 return nil 917 } 918 919 func init() { 920 proto.RegisterEnum("go.micro.router.AdvertType", AdvertType_name, AdvertType_value) 921 proto.RegisterEnum("go.micro.router.EventType", EventType_name, EventType_value) 922 proto.RegisterType((*Request)(nil), "go.micro.router.Request") 923 proto.RegisterType((*Response)(nil), "go.micro.router.Response") 924 proto.RegisterType((*ListResponse)(nil), "go.micro.router.ListResponse") 925 proto.RegisterType((*LookupRequest)(nil), "go.micro.router.LookupRequest") 926 proto.RegisterType((*LookupResponse)(nil), "go.micro.router.LookupResponse") 927 proto.RegisterType((*QueryRequest)(nil), "go.micro.router.QueryRequest") 928 proto.RegisterType((*QueryResponse)(nil), "go.micro.router.QueryResponse") 929 proto.RegisterType((*WatchRequest)(nil), "go.micro.router.WatchRequest") 930 proto.RegisterType((*Advert)(nil), "go.micro.router.Advert") 931 proto.RegisterType((*Solicit)(nil), "go.micro.router.Solicit") 932 proto.RegisterType((*ProcessResponse)(nil), "go.micro.router.ProcessResponse") 933 proto.RegisterType((*CreateResponse)(nil), "go.micro.router.CreateResponse") 934 proto.RegisterType((*DeleteResponse)(nil), "go.micro.router.DeleteResponse") 935 proto.RegisterType((*UpdateResponse)(nil), "go.micro.router.UpdateResponse") 936 proto.RegisterType((*Event)(nil), "go.micro.router.Event") 937 proto.RegisterType((*Query)(nil), "go.micro.router.Query") 938 proto.RegisterType((*Route)(nil), "go.micro.router.Route") 939 proto.RegisterType((*Status)(nil), "go.micro.router.Status") 940 proto.RegisterType((*StatusResponse)(nil), "go.micro.router.StatusResponse") 941 } 942 943 func init() { 944 proto.RegisterFile("gitee.com/liuxuezhan/go-micro-v1.18.0/router/proto/router.proto", fileDescriptor_2dd64c6ec344e37e) 945 } 946 947 var fileDescriptor_2dd64c6ec344e37e = []byte{ 948 // 736 bytes of a gzipped FileDescriptorProto 949 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x56, 0x4f, 0x4f, 0xdb, 0x4a, 950 0x10, 0xb7, 0x93, 0xd8, 0x79, 0x99, 0x17, 0x42, 0xde, 0xe8, 0x09, 0x4c, 0xde, 0x03, 0x22, 0x9f, 951 0x10, 0xa2, 0x4e, 0x15, 0xae, 0xfd, 0x43, 0xa0, 0x54, 0x95, 0xca, 0xa1, 0x35, 0xa0,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0xdb, 0x25, 0xdf, 0xc5, 0xf1, 0xef, 0x18, 986 0x46, 0xce, 0xb7, 0x5e, 0xdb, 0x78, 0x0c, 0x0d, 0xd5, 0x5e, 0xc2, 0x09, 0x7a, 0x65, 0xc2, 0x6a, 987 0x88, 0x4d, 0xc3, 0x62, 0x90, 0x18, 0x47, 0x0f, 0x23, 0x6b, 0x46, 0xd8, 0x5a, 0x61, 0x99, 0x77, 988 0xf2, 0x11, 0xea, 0x7a, 0xb2, 0xd1, 0x94, 0xa9, 0xd3, 0x2d, 0x19, 0x96, 0x97, 0x81, 0x85, 0xa7, 989 0x73, 0x16, 0x99, 0x0b, 0xd9, 0x35, 0x71, 0x62, 0x0e, 0xd3, 0xff, 0x5d, 0x01, 0xe7, 0x22, 0xba, 990 0x1a, 0x13, 0x3c, 0x29, 0x9e, 0x17, 0x0d, 0xc3, 0xbc, 0x02, 0x6e, 0x69, 0x21, 0x59, 0x39, 0x88, 991 0xe2, 0xc5, 0x33, 0x40, 0x96, 0x76, 0x98, 0x04, 0x51, 0x84, 0x7a, 0x06, 0xc8, 0xd2, 0xda, 0xb3, 992 0x70, 0x00, 0xb5, 0xfc, 0xc3, 0xfa, 0xc4, 0xed, 0x94, 0xa9, 0xb4, 0xf8, 0x25, 0xf6, 0x2d, 0xfc, 993 0x54, 0x6c, 0xad, 0x6d, 0xc3, 0x47, 0x4c, 0x03, 0xed, 0x98, 0xcc, 0x05, 0xd2, 0x95, 0x2b, 0xff, 994 0x14, 0x1c, 0xfe, 0x09, 0x00, 0x00, 0xff, 0xff, 0x47, 0x98, 0xd8, 0x20, 0x4b, 0x08, 0x00, 0x00, 995 }