github.com/ronaksoft/rony@v0.16.26-0.20230807065236-1743dbfe6959/msg.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.27.1 4 // protoc v3.17.3 5 // source: msg.proto 6 7 package rony 8 9 import ( 10 reflect "reflect" 11 sync "sync" 12 13 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 14 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 15 ) 16 17 const ( 18 // Verify that this generated code is sufficiently up-to-date. 19 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 20 // Verify that runtime/protoimpl is sufficiently up-to-date. 21 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 22 ) 23 24 // RedirectReason 25 type RedirectReason int32 26 27 const ( 28 RedirectReason_ReplicaSetSession RedirectReason = 0 29 RedirectReason_ReplicaSetRequest RedirectReason = 1 30 RedirectReason_Reserved1 RedirectReason = 3 31 RedirectReason_Reserved2 RedirectReason = 4 32 RedirectReason_Reserved3 RedirectReason = 5 33 RedirectReason_Reserved4 RedirectReason = 6 34 ) 35 36 // Enum value maps for RedirectReason. 37 var ( 38 RedirectReason_name = map[int32]string{ 39 0: "ReplicaSetSession", 40 1: "ReplicaSetRequest", 41 3: "Reserved1", 42 4: "Reserved2", 43 5: "Reserved3", 44 6: "Reserved4", 45 } 46 RedirectReason_value = map[string]int32{ 47 "ReplicaSetSession": 0, 48 "ReplicaSetRequest": 1, 49 "Reserved1": 3, 50 "Reserved2": 4, 51 "Reserved3": 5, 52 "Reserved4": 6, 53 } 54 ) 55 56 func (x RedirectReason) Enum() *RedirectReason { 57 p := new(RedirectReason) 58 *p = x 59 return p 60 } 61 62 func (x RedirectReason) String() string { 63 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 64 } 65 66 func (RedirectReason) Descriptor() protoreflect.EnumDescriptor { 67 return file_msg_proto_enumTypes[0].Descriptor() 68 } 69 70 func (RedirectReason) Type() protoreflect.EnumType { 71 return &file_msg_proto_enumTypes[0] 72 } 73 74 func (x RedirectReason) Number() protoreflect.EnumNumber { 75 return protoreflect.EnumNumber(x) 76 } 77 78 // Deprecated: Use RedirectReason.Descriptor instead. 79 func (RedirectReason) EnumDescriptor() ([]byte, []int) { 80 return file_msg_proto_rawDescGZIP(), []int{0} 81 } 82 83 // MessageEnvelope 84 // This type of message will be used to contain another ProtoBuffer Message inside 85 type MessageEnvelope struct { 86 state protoimpl.MessageState 87 sizeCache protoimpl.SizeCache 88 unknownFields protoimpl.UnknownFields 89 90 Constructor uint64 `protobuf:"varint,1,opt,name=Constructor,proto3" json:"Constructor,omitempty"` 91 RequestID uint64 `protobuf:"fixed64,2,opt,name=RequestID,proto3" json:"RequestID,omitempty"` 92 JsonEncoded bool `protobuf:"varint,3,opt,name=JsonEncoded,proto3" json:"JsonEncoded,omitempty"` 93 Message []byte `protobuf:"bytes,4,opt,name=Message,proto3" json:"Message,omitempty"` 94 Auth []byte `protobuf:"bytes,8,opt,name=Auth,proto3" json:"Auth,omitempty"` 95 Header []*KeyValue `protobuf:"bytes,10,rep,name=Header,proto3" json:"Header,omitempty"` 96 } 97 98 func (x *MessageEnvelope) Reset() { 99 *x = MessageEnvelope{} 100 if protoimpl.UnsafeEnabled { 101 mi := &file_msg_proto_msgTypes[0] 102 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 103 ms.StoreMessageInfo(mi) 104 } 105 } 106 107 func (x *MessageEnvelope) String() string { 108 return protoimpl.X.MessageStringOf(x) 109 } 110 111 func (*MessageEnvelope) ProtoMessage() {} 112 113 func (x *MessageEnvelope) ProtoReflect() protoreflect.Message { 114 mi := &file_msg_proto_msgTypes[0] 115 if protoimpl.UnsafeEnabled && x != nil { 116 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 117 if ms.LoadMessageInfo() == nil { 118 ms.StoreMessageInfo(mi) 119 } 120 return ms 121 } 122 return mi.MessageOf(x) 123 } 124 125 // Deprecated: Use MessageEnvelope.ProtoReflect.Descriptor instead. 126 func (*MessageEnvelope) Descriptor() ([]byte, []int) { 127 return file_msg_proto_rawDescGZIP(), []int{0} 128 } 129 130 func (x *MessageEnvelope) GetConstructor() uint64 { 131 if x != nil { 132 return x.Constructor 133 } 134 return 0 135 } 136 137 func (x *MessageEnvelope) GetRequestID() uint64 { 138 if x != nil { 139 return x.RequestID 140 } 141 return 0 142 } 143 144 func (x *MessageEnvelope) GetJsonEncoded() bool { 145 if x != nil { 146 return x.JsonEncoded 147 } 148 return false 149 } 150 151 func (x *MessageEnvelope) GetMessage() []byte { 152 if x != nil { 153 return x.Message 154 } 155 return nil 156 } 157 158 func (x *MessageEnvelope) GetAuth() []byte { 159 if x != nil { 160 return x.Auth 161 } 162 return nil 163 } 164 165 func (x *MessageEnvelope) GetHeader() []*KeyValue { 166 if x != nil { 167 return x.Header 168 } 169 return nil 170 } 171 172 type Ping struct { 173 state protoimpl.MessageState 174 sizeCache protoimpl.SizeCache 175 unknownFields protoimpl.UnknownFields 176 177 ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` 178 } 179 180 func (x *Ping) Reset() { 181 *x = Ping{} 182 if protoimpl.UnsafeEnabled { 183 mi := &file_msg_proto_msgTypes[1] 184 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 185 ms.StoreMessageInfo(mi) 186 } 187 } 188 189 func (x *Ping) String() string { 190 return protoimpl.X.MessageStringOf(x) 191 } 192 193 func (*Ping) ProtoMessage() {} 194 195 func (x *Ping) ProtoReflect() protoreflect.Message { 196 mi := &file_msg_proto_msgTypes[1] 197 if protoimpl.UnsafeEnabled && x != nil { 198 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 199 if ms.LoadMessageInfo() == nil { 200 ms.StoreMessageInfo(mi) 201 } 202 return ms 203 } 204 return mi.MessageOf(x) 205 } 206 207 // Deprecated: Use Ping.ProtoReflect.Descriptor instead. 208 func (*Ping) Descriptor() ([]byte, []int) { 209 return file_msg_proto_rawDescGZIP(), []int{1} 210 } 211 212 func (x *Ping) GetID() int64 { 213 if x != nil { 214 return x.ID 215 } 216 return 0 217 } 218 219 type Pong struct { 220 state protoimpl.MessageState 221 sizeCache protoimpl.SizeCache 222 unknownFields protoimpl.UnknownFields 223 224 ID int64 `protobuf:"varint,2,opt,name=ID,proto3" json:"ID,omitempty"` 225 } 226 227 func (x *Pong) Reset() { 228 *x = Pong{} 229 if protoimpl.UnsafeEnabled { 230 mi := &file_msg_proto_msgTypes[2] 231 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 232 ms.StoreMessageInfo(mi) 233 } 234 } 235 236 func (x *Pong) String() string { 237 return protoimpl.X.MessageStringOf(x) 238 } 239 240 func (*Pong) ProtoMessage() {} 241 242 func (x *Pong) ProtoReflect() protoreflect.Message { 243 mi := &file_msg_proto_msgTypes[2] 244 if protoimpl.UnsafeEnabled && x != nil { 245 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 246 if ms.LoadMessageInfo() == nil { 247 ms.StoreMessageInfo(mi) 248 } 249 return ms 250 } 251 return mi.MessageOf(x) 252 } 253 254 // Deprecated: Use Pong.ProtoReflect.Descriptor instead. 255 func (*Pong) Descriptor() ([]byte, []int) { 256 return file_msg_proto_rawDescGZIP(), []int{2} 257 } 258 259 func (x *Pong) GetID() int64 { 260 if x != nil { 261 return x.ID 262 } 263 return 0 264 } 265 266 // KeyValue 267 type KeyValue struct { 268 state protoimpl.MessageState 269 sizeCache protoimpl.SizeCache 270 unknownFields protoimpl.UnknownFields 271 272 Key string `protobuf:"bytes,1,opt,name=Key,proto3" json:"Key,omitempty"` 273 Value string `protobuf:"bytes,2,opt,name=Value,proto3" json:"Value,omitempty"` 274 } 275 276 func (x *KeyValue) Reset() { 277 *x = KeyValue{} 278 if protoimpl.UnsafeEnabled { 279 mi := &file_msg_proto_msgTypes[3] 280 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 281 ms.StoreMessageInfo(mi) 282 } 283 } 284 285 func (x *KeyValue) String() string { 286 return protoimpl.X.MessageStringOf(x) 287 } 288 289 func (*KeyValue) ProtoMessage() {} 290 291 func (x *KeyValue) ProtoReflect() protoreflect.Message { 292 mi := &file_msg_proto_msgTypes[3] 293 if protoimpl.UnsafeEnabled && x != nil { 294 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 295 if ms.LoadMessageInfo() == nil { 296 ms.StoreMessageInfo(mi) 297 } 298 return ms 299 } 300 return mi.MessageOf(x) 301 } 302 303 // Deprecated: Use KeyValue.ProtoReflect.Descriptor instead. 304 func (*KeyValue) Descriptor() ([]byte, []int) { 305 return file_msg_proto_rawDescGZIP(), []int{3} 306 } 307 308 func (x *KeyValue) GetKey() string { 309 if x != nil { 310 return x.Key 311 } 312 return "" 313 } 314 315 func (x *KeyValue) GetValue() string { 316 if x != nil { 317 return x.Value 318 } 319 return "" 320 } 321 322 // MessageContainer 323 // This type of message will be used to send multi messages inside a single container message 324 type MessageContainer struct { 325 state protoimpl.MessageState 326 sizeCache protoimpl.SizeCache 327 unknownFields protoimpl.UnknownFields 328 329 Length int32 `protobuf:"varint,1,opt,name=Length,proto3" json:"Length,omitempty"` 330 Envelopes []*MessageEnvelope `protobuf:"bytes,2,rep,name=Envelopes,proto3" json:"Envelopes,omitempty"` 331 // SyncRun makes the execution in sequence if it is TRUE 332 SyncRun bool `protobuf:"varint,3,opt,name=SyncRun,proto3" json:"SyncRun,omitempty"` 333 } 334 335 func (x *MessageContainer) Reset() { 336 *x = MessageContainer{} 337 if protoimpl.UnsafeEnabled { 338 mi := &file_msg_proto_msgTypes[4] 339 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 340 ms.StoreMessageInfo(mi) 341 } 342 } 343 344 func (x *MessageContainer) String() string { 345 return protoimpl.X.MessageStringOf(x) 346 } 347 348 func (*MessageContainer) ProtoMessage() {} 349 350 func (x *MessageContainer) ProtoReflect() protoreflect.Message { 351 mi := &file_msg_proto_msgTypes[4] 352 if protoimpl.UnsafeEnabled && x != nil { 353 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 354 if ms.LoadMessageInfo() == nil { 355 ms.StoreMessageInfo(mi) 356 } 357 return ms 358 } 359 return mi.MessageOf(x) 360 } 361 362 // Deprecated: Use MessageContainer.ProtoReflect.Descriptor instead. 363 func (*MessageContainer) Descriptor() ([]byte, []int) { 364 return file_msg_proto_rawDescGZIP(), []int{4} 365 } 366 367 func (x *MessageContainer) GetLength() int32 { 368 if x != nil { 369 return x.Length 370 } 371 return 0 372 } 373 374 func (x *MessageContainer) GetEnvelopes() []*MessageEnvelope { 375 if x != nil { 376 return x.Envelopes 377 } 378 return nil 379 } 380 381 func (x *MessageContainer) GetSyncRun() bool { 382 if x != nil { 383 return x.SyncRun 384 } 385 return false 386 } 387 388 // Error 389 type Error struct { 390 state protoimpl.MessageState 391 sizeCache protoimpl.SizeCache 392 unknownFields protoimpl.UnknownFields 393 394 Code string `protobuf:"bytes,1,opt,name=Code,proto3" json:"Code,omitempty"` 395 Items string `protobuf:"bytes,2,opt,name=Items,proto3" json:"Items,omitempty"` 396 Description string `protobuf:"bytes,3,opt,name=Description,proto3" json:"Description,omitempty"` 397 } 398 399 func (x *Error) Reset() { 400 *x = Error{} 401 if protoimpl.UnsafeEnabled { 402 mi := &file_msg_proto_msgTypes[5] 403 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 404 ms.StoreMessageInfo(mi) 405 } 406 } 407 408 func (x *Error) String() string { 409 return protoimpl.X.MessageStringOf(x) 410 } 411 412 func (*Error) ProtoMessage() {} 413 414 func (x *Error) ProtoReflect() protoreflect.Message { 415 mi := &file_msg_proto_msgTypes[5] 416 if protoimpl.UnsafeEnabled && x != nil { 417 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 418 if ms.LoadMessageInfo() == nil { 419 ms.StoreMessageInfo(mi) 420 } 421 return ms 422 } 423 return mi.MessageOf(x) 424 } 425 426 // Deprecated: Use Error.ProtoReflect.Descriptor instead. 427 func (*Error) Descriptor() ([]byte, []int) { 428 return file_msg_proto_rawDescGZIP(), []int{5} 429 } 430 431 func (x *Error) GetCode() string { 432 if x != nil { 433 return x.Code 434 } 435 return "" 436 } 437 438 func (x *Error) GetItems() string { 439 if x != nil { 440 return x.Items 441 } 442 return "" 443 } 444 445 func (x *Error) GetDescription() string { 446 if x != nil { 447 return x.Description 448 } 449 return "" 450 } 451 452 // Redirect 453 type Redirect struct { 454 state protoimpl.MessageState 455 sizeCache protoimpl.SizeCache 456 unknownFields protoimpl.UnknownFields 457 458 Reason RedirectReason `protobuf:"varint,100,opt,name=Reason,proto3,enum=rony.RedirectReason" json:"Reason,omitempty"` 459 Edges []*Edge `protobuf:"bytes,2,rep,name=Edges,proto3" json:"Edges,omitempty"` 460 WaitInSec uint32 `protobuf:"varint,3,opt,name=WaitInSec,proto3" json:"WaitInSec,omitempty"` 461 } 462 463 func (x *Redirect) Reset() { 464 *x = Redirect{} 465 if protoimpl.UnsafeEnabled { 466 mi := &file_msg_proto_msgTypes[6] 467 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 468 ms.StoreMessageInfo(mi) 469 } 470 } 471 472 func (x *Redirect) String() string { 473 return protoimpl.X.MessageStringOf(x) 474 } 475 476 func (*Redirect) ProtoMessage() {} 477 478 func (x *Redirect) ProtoReflect() protoreflect.Message { 479 mi := &file_msg_proto_msgTypes[6] 480 if protoimpl.UnsafeEnabled && x != nil { 481 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 482 if ms.LoadMessageInfo() == nil { 483 ms.StoreMessageInfo(mi) 484 } 485 return ms 486 } 487 return mi.MessageOf(x) 488 } 489 490 // Deprecated: Use Redirect.ProtoReflect.Descriptor instead. 491 func (*Redirect) Descriptor() ([]byte, []int) { 492 return file_msg_proto_rawDescGZIP(), []int{6} 493 } 494 495 func (x *Redirect) GetReason() RedirectReason { 496 if x != nil { 497 return x.Reason 498 } 499 return RedirectReason_ReplicaSetSession 500 } 501 502 func (x *Redirect) GetEdges() []*Edge { 503 if x != nil { 504 return x.Edges 505 } 506 return nil 507 } 508 509 func (x *Redirect) GetWaitInSec() uint32 { 510 if x != nil { 511 return x.WaitInSec 512 } 513 return 0 514 } 515 516 // Edge 517 type Edge struct { 518 state protoimpl.MessageState 519 sizeCache protoimpl.SizeCache 520 unknownFields protoimpl.UnknownFields 521 522 ReplicaSet uint64 `protobuf:"varint,1,opt,name=ReplicaSet,proto3" json:"ReplicaSet,omitempty"` 523 ServerID string `protobuf:"bytes,2,opt,name=ServerID,proto3" json:"ServerID,omitempty"` 524 HostPorts []string `protobuf:"bytes,3,rep,name=HostPorts,proto3" json:"HostPorts,omitempty"` 525 } 526 527 func (x *Edge) Reset() { 528 *x = Edge{} 529 if protoimpl.UnsafeEnabled { 530 mi := &file_msg_proto_msgTypes[7] 531 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 532 ms.StoreMessageInfo(mi) 533 } 534 } 535 536 func (x *Edge) String() string { 537 return protoimpl.X.MessageStringOf(x) 538 } 539 540 func (*Edge) ProtoMessage() {} 541 542 func (x *Edge) ProtoReflect() protoreflect.Message { 543 mi := &file_msg_proto_msgTypes[7] 544 if protoimpl.UnsafeEnabled && x != nil { 545 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 546 if ms.LoadMessageInfo() == nil { 547 ms.StoreMessageInfo(mi) 548 } 549 return ms 550 } 551 return mi.MessageOf(x) 552 } 553 554 // Deprecated: Use Edge.ProtoReflect.Descriptor instead. 555 func (*Edge) Descriptor() ([]byte, []int) { 556 return file_msg_proto_rawDescGZIP(), []int{7} 557 } 558 559 func (x *Edge) GetReplicaSet() uint64 { 560 if x != nil { 561 return x.ReplicaSet 562 } 563 return 0 564 } 565 566 func (x *Edge) GetServerID() string { 567 if x != nil { 568 return x.ServerID 569 } 570 return "" 571 } 572 573 func (x *Edge) GetHostPorts() []string { 574 if x != nil { 575 return x.HostPorts 576 } 577 return nil 578 } 579 580 // Edges 581 type Edges struct { 582 state protoimpl.MessageState 583 sizeCache protoimpl.SizeCache 584 unknownFields protoimpl.UnknownFields 585 586 Nodes []*Edge `protobuf:"bytes,1,rep,name=Nodes,proto3" json:"Nodes,omitempty"` 587 } 588 589 func (x *Edges) Reset() { 590 *x = Edges{} 591 if protoimpl.UnsafeEnabled { 592 mi := &file_msg_proto_msgTypes[8] 593 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 594 ms.StoreMessageInfo(mi) 595 } 596 } 597 598 func (x *Edges) String() string { 599 return protoimpl.X.MessageStringOf(x) 600 } 601 602 func (*Edges) ProtoMessage() {} 603 604 func (x *Edges) ProtoReflect() protoreflect.Message { 605 mi := &file_msg_proto_msgTypes[8] 606 if protoimpl.UnsafeEnabled && x != nil { 607 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 608 if ms.LoadMessageInfo() == nil { 609 ms.StoreMessageInfo(mi) 610 } 611 return ms 612 } 613 return mi.MessageOf(x) 614 } 615 616 // Deprecated: Use Edges.ProtoReflect.Descriptor instead. 617 func (*Edges) Descriptor() ([]byte, []int) { 618 return file_msg_proto_rawDescGZIP(), []int{8} 619 } 620 621 func (x *Edges) GetNodes() []*Edge { 622 if x != nil { 623 return x.Nodes 624 } 625 return nil 626 } 627 628 // GetNodes 629 // @Function 630 // @Return: Edges 631 type GetNodes struct { 632 state protoimpl.MessageState 633 sizeCache protoimpl.SizeCache 634 unknownFields protoimpl.UnknownFields 635 636 ReplicaSet []uint64 `protobuf:"varint,1,rep,packed,name=ReplicaSet,proto3" json:"ReplicaSet,omitempty"` 637 } 638 639 func (x *GetNodes) Reset() { 640 *x = GetNodes{} 641 if protoimpl.UnsafeEnabled { 642 mi := &file_msg_proto_msgTypes[9] 643 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 644 ms.StoreMessageInfo(mi) 645 } 646 } 647 648 func (x *GetNodes) String() string { 649 return protoimpl.X.MessageStringOf(x) 650 } 651 652 func (*GetNodes) ProtoMessage() {} 653 654 func (x *GetNodes) ProtoReflect() protoreflect.Message { 655 mi := &file_msg_proto_msgTypes[9] 656 if protoimpl.UnsafeEnabled && x != nil { 657 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 658 if ms.LoadMessageInfo() == nil { 659 ms.StoreMessageInfo(mi) 660 } 661 return ms 662 } 663 return mi.MessageOf(x) 664 } 665 666 // Deprecated: Use GetNodes.ProtoReflect.Descriptor instead. 667 func (*GetNodes) Descriptor() ([]byte, []int) { 668 return file_msg_proto_rawDescGZIP(), []int{9} 669 } 670 671 func (x *GetNodes) GetReplicaSet() []uint64 { 672 if x != nil { 673 return x.ReplicaSet 674 } 675 return nil 676 } 677 678 // GetNodes 679 // @Function 680 // @Return: Edges 681 type GetAllNodes struct { 682 state protoimpl.MessageState 683 sizeCache protoimpl.SizeCache 684 unknownFields protoimpl.UnknownFields 685 } 686 687 func (x *GetAllNodes) Reset() { 688 *x = GetAllNodes{} 689 if protoimpl.UnsafeEnabled { 690 mi := &file_msg_proto_msgTypes[10] 691 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 692 ms.StoreMessageInfo(mi) 693 } 694 } 695 696 func (x *GetAllNodes) String() string { 697 return protoimpl.X.MessageStringOf(x) 698 } 699 700 func (*GetAllNodes) ProtoMessage() {} 701 702 func (x *GetAllNodes) ProtoReflect() protoreflect.Message { 703 mi := &file_msg_proto_msgTypes[10] 704 if protoimpl.UnsafeEnabled && x != nil { 705 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 706 if ms.LoadMessageInfo() == nil { 707 ms.StoreMessageInfo(mi) 708 } 709 return ms 710 } 711 return mi.MessageOf(x) 712 } 713 714 // Deprecated: Use GetAllNodes.ProtoReflect.Descriptor instead. 715 func (*GetAllNodes) Descriptor() ([]byte, []int) { 716 return file_msg_proto_rawDescGZIP(), []int{10} 717 } 718 719 // HttpBody used by REST proxies to fill the output. 720 type HttpBody struct { 721 state protoimpl.MessageState 722 sizeCache protoimpl.SizeCache 723 unknownFields protoimpl.UnknownFields 724 725 ContentType string `protobuf:"bytes,1,opt,name=ContentType,proto3" json:"ContentType,omitempty"` 726 Header []*KeyValue `protobuf:"bytes,2,rep,name=Header,proto3" json:"Header,omitempty"` 727 Body []byte `protobuf:"bytes,3,opt,name=Body,proto3" json:"Body,omitempty"` 728 } 729 730 func (x *HttpBody) Reset() { 731 *x = HttpBody{} 732 if protoimpl.UnsafeEnabled { 733 mi := &file_msg_proto_msgTypes[11] 734 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 735 ms.StoreMessageInfo(mi) 736 } 737 } 738 739 func (x *HttpBody) String() string { 740 return protoimpl.X.MessageStringOf(x) 741 } 742 743 func (*HttpBody) ProtoMessage() {} 744 745 func (x *HttpBody) ProtoReflect() protoreflect.Message { 746 mi := &file_msg_proto_msgTypes[11] 747 if protoimpl.UnsafeEnabled && x != nil { 748 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 749 if ms.LoadMessageInfo() == nil { 750 ms.StoreMessageInfo(mi) 751 } 752 return ms 753 } 754 return mi.MessageOf(x) 755 } 756 757 // Deprecated: Use HttpBody.ProtoReflect.Descriptor instead. 758 func (*HttpBody) Descriptor() ([]byte, []int) { 759 return file_msg_proto_rawDescGZIP(), []int{11} 760 } 761 762 func (x *HttpBody) GetContentType() string { 763 if x != nil { 764 return x.ContentType 765 } 766 return "" 767 } 768 769 func (x *HttpBody) GetHeader() []*KeyValue { 770 if x != nil { 771 return x.Header 772 } 773 return nil 774 } 775 776 func (x *HttpBody) GetBody() []byte { 777 if x != nil { 778 return x.Body 779 } 780 return nil 781 } 782 783 var File_msg_proto protoreflect.FileDescriptor 784 785 var file_msg_proto_rawDesc = []byte{ 786 0x0a, 0x09, 0x6d, 0x73, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x04, 0x72, 0x6f, 0x6e, 787 0x79, 0x1a, 0x0d, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 788 0x22, 0xd3, 0x01, 0x0a, 0x0f, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x45, 0x6e, 0x76, 0x65, 789 0x6c, 0x6f, 0x70, 0x65, 0x12, 0x24, 0x0a, 0x0b, 0x43, 0x6f, 0x6e, 0x73, 0x74, 0x72, 0x75, 0x63, 790 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x42, 0x02, 0x30, 0x01, 0x52, 0x0b, 0x43, 791 0x6f, 0x6e, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x6f, 0x72, 0x12, 0x1c, 0x0a, 0x09, 0x52, 0x65, 792 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x44, 0x18, 0x02, 0x20, 0x01, 0x28, 0x06, 0x52, 0x09, 0x52, 793 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x44, 0x12, 0x20, 0x0a, 0x0b, 0x4a, 0x73, 0x6f, 0x6e, 794 0x45, 0x6e, 0x63, 0x6f, 0x64, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x4a, 795 0x73, 0x6f, 0x6e, 0x45, 0x6e, 0x63, 0x6f, 0x64, 0x65, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x4d, 0x65, 796 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x4d, 0x65, 0x73, 797 0x73, 0x61, 0x67, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x41, 0x75, 0x74, 0x68, 0x18, 0x08, 0x20, 0x01, 798 0x28, 0x0c, 0x52, 0x04, 0x41, 0x75, 0x74, 0x68, 0x12, 0x26, 0x0a, 0x06, 0x48, 0x65, 0x61, 0x64, 799 0x65, 0x72, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x72, 0x6f, 0x6e, 0x79, 0x2e, 800 0x4b, 0x65, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 801 0x3a, 0x04, 0x80, 0xb7, 0x18, 0x01, 0x22, 0x16, 0x0a, 0x04, 0x50, 0x69, 0x6e, 0x67, 0x12, 0x0e, 802 0x0a, 0x02, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x49, 0x44, 0x22, 0x16, 803 0x0a, 0x04, 0x50, 0x6f, 0x6e, 0x67, 0x12, 0x0e, 0x0a, 0x02, 0x49, 0x44, 0x18, 0x02, 0x20, 0x01, 804 0x28, 0x03, 0x52, 0x02, 0x49, 0x44, 0x22, 0x32, 0x0a, 0x08, 0x4b, 0x65, 0x79, 0x56, 0x61, 0x6c, 805 0x75, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x4b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 806 0x03, 0x4b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 807 0x01, 0x28, 0x09, 0x52, 0x05, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x79, 0x0a, 0x10, 0x4d, 0x65, 808 0x73, 0x73, 0x61, 0x67, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x12, 0x16, 809 0x0a, 0x06, 0x4c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 810 0x4c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x12, 0x33, 0x0a, 0x09, 0x45, 0x6e, 0x76, 0x65, 0x6c, 0x6f, 811 0x70, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x72, 0x6f, 0x6e, 0x79, 812 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x45, 0x6e, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 813 0x52, 0x09, 0x45, 0x6e, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x53, 814 0x79, 0x6e, 0x63, 0x52, 0x75, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x53, 0x79, 815 0x6e, 0x63, 0x52, 0x75, 0x6e, 0x22, 0x53, 0x0a, 0x05, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x12, 816 0x0a, 0x04, 0x43, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x43, 0x6f, 817 0x64, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 818 0x09, 0x52, 0x05, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x44, 0x65, 0x73, 0x63, 819 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x44, 820 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x78, 0x0a, 0x08, 0x52, 0x65, 821 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x12, 0x2c, 0x0a, 0x06, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 822 0x18, 0x64, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x14, 0x2e, 0x72, 0x6f, 0x6e, 0x79, 0x2e, 0x52, 0x65, 823 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x52, 0x06, 0x52, 0x65, 824 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x20, 0x0a, 0x05, 0x45, 0x64, 0x67, 0x65, 0x73, 0x18, 0x02, 0x20, 825 0x03, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x72, 0x6f, 0x6e, 0x79, 0x2e, 0x45, 0x64, 0x67, 0x65, 0x52, 826 0x05, 0x45, 0x64, 0x67, 0x65, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x57, 0x61, 0x69, 0x74, 0x49, 0x6e, 827 0x53, 0x65, 0x63, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, 0x57, 0x61, 0x69, 0x74, 0x49, 828 0x6e, 0x53, 0x65, 0x63, 0x22, 0x60, 0x0a, 0x04, 0x45, 0x64, 0x67, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 829 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x53, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 830 0x52, 0x0a, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x53, 0x65, 0x74, 0x12, 0x1a, 0x0a, 0x08, 831 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x49, 0x44, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 832 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x49, 0x44, 0x12, 0x1c, 0x0a, 0x09, 0x48, 0x6f, 0x73, 0x74, 833 0x50, 0x6f, 0x72, 0x74, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x09, 0x48, 0x6f, 0x73, 834 0x74, 0x50, 0x6f, 0x72, 0x74, 0x73, 0x22, 0x29, 0x0a, 0x05, 0x45, 0x64, 0x67, 0x65, 0x73, 0x12, 835 0x20, 0x0a, 0x05, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0a, 836 0x2e, 0x72, 0x6f, 0x6e, 0x79, 0x2e, 0x45, 0x64, 0x67, 0x65, 0x52, 0x05, 0x4e, 0x6f, 0x64, 0x65, 837 0x73, 0x22, 0x2a, 0x0a, 0x08, 0x47, 0x65, 0x74, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x12, 0x1e, 0x0a, 838 0x0a, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x53, 0x65, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 839 0x04, 0x52, 0x0a, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x53, 0x65, 0x74, 0x22, 0x0d, 0x0a, 840 0x0b, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x22, 0x68, 0x0a, 0x08, 841 0x48, 0x74, 0x74, 0x70, 0x42, 0x6f, 0x64, 0x79, 0x12, 0x20, 0x0a, 0x0b, 0x43, 0x6f, 0x6e, 0x74, 842 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x43, 843 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x26, 0x0a, 0x06, 0x48, 0x65, 844 0x61, 0x64, 0x65, 0x72, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x72, 0x6f, 0x6e, 845 0x79, 0x2e, 0x4b, 0x65, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, 0x48, 0x65, 0x61, 0x64, 846 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x42, 0x6f, 0x64, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 847 0x52, 0x04, 0x42, 0x6f, 0x64, 0x79, 0x2a, 0x7a, 0x0a, 0x0e, 0x52, 0x65, 0x64, 0x69, 0x72, 0x65, 848 0x63, 0x74, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x15, 0x0a, 0x11, 0x52, 0x65, 0x70, 0x6c, 849 0x69, 0x63, 0x61, 0x53, 0x65, 0x74, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x10, 0x00, 0x12, 850 0x15, 0x0a, 0x11, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x53, 0x65, 0x74, 0x52, 0x65, 0x71, 851 0x75, 0x65, 0x73, 0x74, 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x52, 0x65, 0x73, 0x65, 0x72, 0x76, 852 0x65, 0x64, 0x31, 0x10, 0x03, 0x12, 0x0d, 0x0a, 0x09, 0x52, 0x65, 0x73, 0x65, 0x72, 0x76, 0x65, 853 0x64, 0x32, 0x10, 0x04, 0x12, 0x0d, 0x0a, 0x09, 0x52, 0x65, 0x73, 0x65, 0x72, 0x76, 0x65, 0x64, 854 0x33, 0x10, 0x05, 0x12, 0x0d, 0x0a, 0x09, 0x52, 0x65, 0x73, 0x65, 0x72, 0x76, 0x65, 0x64, 0x34, 855 0x10, 0x06, 0x42, 0x1b, 0x5a, 0x19, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 856 0x2f, 0x72, 0x6f, 0x6e, 0x61, 0x6b, 0x73, 0x6f, 0x66, 0x74, 0x2f, 0x72, 0x6f, 0x6e, 0x79, 0x62, 857 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 858 } 859 860 var ( 861 file_msg_proto_rawDescOnce sync.Once 862 file_msg_proto_rawDescData = file_msg_proto_rawDesc 863 ) 864 865 func file_msg_proto_rawDescGZIP() []byte { 866 file_msg_proto_rawDescOnce.Do(func() { 867 file_msg_proto_rawDescData = protoimpl.X.CompressGZIP(file_msg_proto_rawDescData) 868 }) 869 return file_msg_proto_rawDescData 870 } 871 872 var file_msg_proto_enumTypes = make([]protoimpl.EnumInfo, 1) 873 var file_msg_proto_msgTypes = make([]protoimpl.MessageInfo, 12) 874 var file_msg_proto_goTypes = []interface{}{ 875 (RedirectReason)(0), // 0: rony.RedirectReason 876 (*MessageEnvelope)(nil), // 1: rony.MessageEnvelope 877 (*Ping)(nil), // 2: rony.Ping 878 (*Pong)(nil), // 3: rony.Pong 879 (*KeyValue)(nil), // 4: rony.KeyValue 880 (*MessageContainer)(nil), // 5: rony.MessageContainer 881 (*Error)(nil), // 6: rony.Error 882 (*Redirect)(nil), // 7: rony.Redirect 883 (*Edge)(nil), // 8: rony.Edge 884 (*Edges)(nil), // 9: rony.Edges 885 (*GetNodes)(nil), // 10: rony.GetNodes 886 (*GetAllNodes)(nil), // 11: rony.GetAllNodes 887 (*HttpBody)(nil), // 12: rony.HttpBody 888 } 889 var file_msg_proto_depIdxs = []int32{ 890 4, // 0: rony.MessageEnvelope.Header:type_name -> rony.KeyValue 891 1, // 1: rony.MessageContainer.Envelopes:type_name -> rony.MessageEnvelope 892 0, // 2: rony.Redirect.Reason:type_name -> rony.RedirectReason 893 8, // 3: rony.Redirect.Edges:type_name -> rony.Edge 894 8, // 4: rony.Edges.Nodes:type_name -> rony.Edge 895 4, // 5: rony.HttpBody.Header:type_name -> rony.KeyValue 896 6, // [6:6] is the sub-list for method output_type 897 6, // [6:6] is the sub-list for method input_type 898 6, // [6:6] is the sub-list for extension type_name 899 6, // [6:6] is the sub-list for extension extendee 900 0, // [0:6] is the sub-list for field type_name 901 } 902 903 func init() { file_msg_proto_init() } 904 func file_msg_proto_init() { 905 if File_msg_proto != nil { 906 return 907 } 908 file_options_proto_init() 909 if !protoimpl.UnsafeEnabled { 910 file_msg_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 911 switch v := v.(*MessageEnvelope); i { 912 case 0: 913 return &v.state 914 case 1: 915 return &v.sizeCache 916 case 2: 917 return &v.unknownFields 918 default: 919 return nil 920 } 921 } 922 file_msg_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 923 switch v := v.(*Ping); i { 924 case 0: 925 return &v.state 926 case 1: 927 return &v.sizeCache 928 case 2: 929 return &v.unknownFields 930 default: 931 return nil 932 } 933 } 934 file_msg_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 935 switch v := v.(*Pong); i { 936 case 0: 937 return &v.state 938 case 1: 939 return &v.sizeCache 940 case 2: 941 return &v.unknownFields 942 default: 943 return nil 944 } 945 } 946 file_msg_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 947 switch v := v.(*KeyValue); i { 948 case 0: 949 return &v.state 950 case 1: 951 return &v.sizeCache 952 case 2: 953 return &v.unknownFields 954 default: 955 return nil 956 } 957 } 958 file_msg_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { 959 switch v := v.(*MessageContainer); i { 960 case 0: 961 return &v.state 962 case 1: 963 return &v.sizeCache 964 case 2: 965 return &v.unknownFields 966 default: 967 return nil 968 } 969 } 970 file_msg_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { 971 switch v := v.(*Error); i { 972 case 0: 973 return &v.state 974 case 1: 975 return &v.sizeCache 976 case 2: 977 return &v.unknownFields 978 default: 979 return nil 980 } 981 } 982 file_msg_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { 983 switch v := v.(*Redirect); i { 984 case 0: 985 return &v.state 986 case 1: 987 return &v.sizeCache 988 case 2: 989 return &v.unknownFields 990 default: 991 return nil 992 } 993 } 994 file_msg_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { 995 switch v := v.(*Edge); i { 996 case 0: 997 return &v.state 998 case 1: 999 return &v.sizeCache 1000 case 2: 1001 return &v.unknownFields 1002 default: 1003 return nil 1004 } 1005 } 1006 file_msg_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { 1007 switch v := v.(*Edges); i { 1008 case 0: 1009 return &v.state 1010 case 1: 1011 return &v.sizeCache 1012 case 2: 1013 return &v.unknownFields 1014 default: 1015 return nil 1016 } 1017 } 1018 file_msg_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { 1019 switch v := v.(*GetNodes); i { 1020 case 0: 1021 return &v.state 1022 case 1: 1023 return &v.sizeCache 1024 case 2: 1025 return &v.unknownFields 1026 default: 1027 return nil 1028 } 1029 } 1030 file_msg_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { 1031 switch v := v.(*GetAllNodes); i { 1032 case 0: 1033 return &v.state 1034 case 1: 1035 return &v.sizeCache 1036 case 2: 1037 return &v.unknownFields 1038 default: 1039 return nil 1040 } 1041 } 1042 file_msg_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { 1043 switch v := v.(*HttpBody); i { 1044 case 0: 1045 return &v.state 1046 case 1: 1047 return &v.sizeCache 1048 case 2: 1049 return &v.unknownFields 1050 default: 1051 return nil 1052 } 1053 } 1054 } 1055 type x struct{} 1056 out := protoimpl.TypeBuilder{ 1057 File: protoimpl.DescBuilder{ 1058 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 1059 RawDescriptor: file_msg_proto_rawDesc, 1060 NumEnums: 1, 1061 NumMessages: 12, 1062 NumExtensions: 0, 1063 NumServices: 0, 1064 }, 1065 GoTypes: file_msg_proto_goTypes, 1066 DependencyIndexes: file_msg_proto_depIdxs, 1067 EnumInfos: file_msg_proto_enumTypes, 1068 MessageInfos: file_msg_proto_msgTypes, 1069 }.Build() 1070 File_msg_proto = out.File 1071 file_msg_proto_rawDesc = nil 1072 file_msg_proto_goTypes = nil 1073 file_msg_proto_depIdxs = nil 1074 }