github.com/annwntech/go-micro/v2@v2.9.5/config/source/service/proto/service.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.13.0 5 // source: config/source/service/proto/service.proto 6 7 package service 8 9 import ( 10 context "context" 11 proto "github.com/golang/protobuf/proto" 12 grpc "google.golang.org/grpc" 13 codes "google.golang.org/grpc/codes" 14 status "google.golang.org/grpc/status" 15 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 16 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 17 reflect "reflect" 18 sync "sync" 19 ) 20 21 const ( 22 // Verify that this generated code is sufficiently up-to-date. 23 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 24 // Verify that runtime/protoimpl is sufficiently up-to-date. 25 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 26 ) 27 28 // This is a compile-time assertion that a sufficiently up-to-date version 29 // of the legacy proto package is being used. 30 const _ = proto.ProtoPackageIsVersion4 31 32 type ChangeSet struct { 33 state protoimpl.MessageState 34 sizeCache protoimpl.SizeCache 35 unknownFields protoimpl.UnknownFields 36 37 Data string `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` 38 Checksum string `protobuf:"bytes,2,opt,name=checksum,proto3" json:"checksum,omitempty"` 39 Format string `protobuf:"bytes,3,opt,name=format,proto3" json:"format,omitempty"` 40 Source string `protobuf:"bytes,4,opt,name=source,proto3" json:"source,omitempty"` 41 Timestamp int64 `protobuf:"varint,5,opt,name=timestamp,proto3" json:"timestamp,omitempty"` 42 } 43 44 func (x *ChangeSet) Reset() { 45 *x = ChangeSet{} 46 if protoimpl.UnsafeEnabled { 47 mi := &file_config_source_service_proto_service_proto_msgTypes[0] 48 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 49 ms.StoreMessageInfo(mi) 50 } 51 } 52 53 func (x *ChangeSet) String() string { 54 return protoimpl.X.MessageStringOf(x) 55 } 56 57 func (*ChangeSet) ProtoMessage() {} 58 59 func (x *ChangeSet) ProtoReflect() protoreflect.Message { 60 mi := &file_config_source_service_proto_service_proto_msgTypes[0] 61 if protoimpl.UnsafeEnabled && x != nil { 62 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 63 if ms.LoadMessageInfo() == nil { 64 ms.StoreMessageInfo(mi) 65 } 66 return ms 67 } 68 return mi.MessageOf(x) 69 } 70 71 // Deprecated: Use ChangeSet.ProtoReflect.Descriptor instead. 72 func (*ChangeSet) Descriptor() ([]byte, []int) { 73 return file_config_source_service_proto_service_proto_rawDescGZIP(), []int{0} 74 } 75 76 func (x *ChangeSet) GetData() string { 77 if x != nil { 78 return x.Data 79 } 80 return "" 81 } 82 83 func (x *ChangeSet) GetChecksum() string { 84 if x != nil { 85 return x.Checksum 86 } 87 return "" 88 } 89 90 func (x *ChangeSet) GetFormat() string { 91 if x != nil { 92 return x.Format 93 } 94 return "" 95 } 96 97 func (x *ChangeSet) GetSource() string { 98 if x != nil { 99 return x.Source 100 } 101 return "" 102 } 103 104 func (x *ChangeSet) GetTimestamp() int64 { 105 if x != nil { 106 return x.Timestamp 107 } 108 return 0 109 } 110 111 type Change struct { 112 state protoimpl.MessageState 113 sizeCache protoimpl.SizeCache 114 unknownFields protoimpl.UnknownFields 115 116 Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` 117 Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` 118 ChangeSet *ChangeSet `protobuf:"bytes,3,opt,name=changeSet,proto3" json:"changeSet,omitempty"` 119 } 120 121 func (x *Change) Reset() { 122 *x = Change{} 123 if protoimpl.UnsafeEnabled { 124 mi := &file_config_source_service_proto_service_proto_msgTypes[1] 125 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 126 ms.StoreMessageInfo(mi) 127 } 128 } 129 130 func (x *Change) String() string { 131 return protoimpl.X.MessageStringOf(x) 132 } 133 134 func (*Change) ProtoMessage() {} 135 136 func (x *Change) ProtoReflect() protoreflect.Message { 137 mi := &file_config_source_service_proto_service_proto_msgTypes[1] 138 if protoimpl.UnsafeEnabled && x != nil { 139 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 140 if ms.LoadMessageInfo() == nil { 141 ms.StoreMessageInfo(mi) 142 } 143 return ms 144 } 145 return mi.MessageOf(x) 146 } 147 148 // Deprecated: Use Change.ProtoReflect.Descriptor instead. 149 func (*Change) Descriptor() ([]byte, []int) { 150 return file_config_source_service_proto_service_proto_rawDescGZIP(), []int{1} 151 } 152 153 func (x *Change) GetNamespace() string { 154 if x != nil { 155 return x.Namespace 156 } 157 return "" 158 } 159 160 func (x *Change) GetPath() string { 161 if x != nil { 162 return x.Path 163 } 164 return "" 165 } 166 167 func (x *Change) GetChangeSet() *ChangeSet { 168 if x != nil { 169 return x.ChangeSet 170 } 171 return nil 172 } 173 174 type CreateRequest struct { 175 state protoimpl.MessageState 176 sizeCache protoimpl.SizeCache 177 unknownFields protoimpl.UnknownFields 178 179 Change *Change `protobuf:"bytes,1,opt,name=change,proto3" json:"change,omitempty"` 180 } 181 182 func (x *CreateRequest) Reset() { 183 *x = CreateRequest{} 184 if protoimpl.UnsafeEnabled { 185 mi := &file_config_source_service_proto_service_proto_msgTypes[2] 186 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 187 ms.StoreMessageInfo(mi) 188 } 189 } 190 191 func (x *CreateRequest) String() string { 192 return protoimpl.X.MessageStringOf(x) 193 } 194 195 func (*CreateRequest) ProtoMessage() {} 196 197 func (x *CreateRequest) ProtoReflect() protoreflect.Message { 198 mi := &file_config_source_service_proto_service_proto_msgTypes[2] 199 if protoimpl.UnsafeEnabled && x != nil { 200 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 201 if ms.LoadMessageInfo() == nil { 202 ms.StoreMessageInfo(mi) 203 } 204 return ms 205 } 206 return mi.MessageOf(x) 207 } 208 209 // Deprecated: Use CreateRequest.ProtoReflect.Descriptor instead. 210 func (*CreateRequest) Descriptor() ([]byte, []int) { 211 return file_config_source_service_proto_service_proto_rawDescGZIP(), []int{2} 212 } 213 214 func (x *CreateRequest) GetChange() *Change { 215 if x != nil { 216 return x.Change 217 } 218 return nil 219 } 220 221 type CreateResponse struct { 222 state protoimpl.MessageState 223 sizeCache protoimpl.SizeCache 224 unknownFields protoimpl.UnknownFields 225 } 226 227 func (x *CreateResponse) Reset() { 228 *x = CreateResponse{} 229 if protoimpl.UnsafeEnabled { 230 mi := &file_config_source_service_proto_service_proto_msgTypes[3] 231 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 232 ms.StoreMessageInfo(mi) 233 } 234 } 235 236 func (x *CreateResponse) String() string { 237 return protoimpl.X.MessageStringOf(x) 238 } 239 240 func (*CreateResponse) ProtoMessage() {} 241 242 func (x *CreateResponse) ProtoReflect() protoreflect.Message { 243 mi := &file_config_source_service_proto_service_proto_msgTypes[3] 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 CreateResponse.ProtoReflect.Descriptor instead. 255 func (*CreateResponse) Descriptor() ([]byte, []int) { 256 return file_config_source_service_proto_service_proto_rawDescGZIP(), []int{3} 257 } 258 259 type UpdateRequest struct { 260 state protoimpl.MessageState 261 sizeCache protoimpl.SizeCache 262 unknownFields protoimpl.UnknownFields 263 264 Change *Change `protobuf:"bytes,1,opt,name=change,proto3" json:"change,omitempty"` 265 } 266 267 func (x *UpdateRequest) Reset() { 268 *x = UpdateRequest{} 269 if protoimpl.UnsafeEnabled { 270 mi := &file_config_source_service_proto_service_proto_msgTypes[4] 271 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 272 ms.StoreMessageInfo(mi) 273 } 274 } 275 276 func (x *UpdateRequest) String() string { 277 return protoimpl.X.MessageStringOf(x) 278 } 279 280 func (*UpdateRequest) ProtoMessage() {} 281 282 func (x *UpdateRequest) ProtoReflect() protoreflect.Message { 283 mi := &file_config_source_service_proto_service_proto_msgTypes[4] 284 if protoimpl.UnsafeEnabled && x != nil { 285 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 286 if ms.LoadMessageInfo() == nil { 287 ms.StoreMessageInfo(mi) 288 } 289 return ms 290 } 291 return mi.MessageOf(x) 292 } 293 294 // Deprecated: Use UpdateRequest.ProtoReflect.Descriptor instead. 295 func (*UpdateRequest) Descriptor() ([]byte, []int) { 296 return file_config_source_service_proto_service_proto_rawDescGZIP(), []int{4} 297 } 298 299 func (x *UpdateRequest) GetChange() *Change { 300 if x != nil { 301 return x.Change 302 } 303 return nil 304 } 305 306 type UpdateResponse struct { 307 state protoimpl.MessageState 308 sizeCache protoimpl.SizeCache 309 unknownFields protoimpl.UnknownFields 310 } 311 312 func (x *UpdateResponse) Reset() { 313 *x = UpdateResponse{} 314 if protoimpl.UnsafeEnabled { 315 mi := &file_config_source_service_proto_service_proto_msgTypes[5] 316 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 317 ms.StoreMessageInfo(mi) 318 } 319 } 320 321 func (x *UpdateResponse) String() string { 322 return protoimpl.X.MessageStringOf(x) 323 } 324 325 func (*UpdateResponse) ProtoMessage() {} 326 327 func (x *UpdateResponse) ProtoReflect() protoreflect.Message { 328 mi := &file_config_source_service_proto_service_proto_msgTypes[5] 329 if protoimpl.UnsafeEnabled && x != nil { 330 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 331 if ms.LoadMessageInfo() == nil { 332 ms.StoreMessageInfo(mi) 333 } 334 return ms 335 } 336 return mi.MessageOf(x) 337 } 338 339 // Deprecated: Use UpdateResponse.ProtoReflect.Descriptor instead. 340 func (*UpdateResponse) Descriptor() ([]byte, []int) { 341 return file_config_source_service_proto_service_proto_rawDescGZIP(), []int{5} 342 } 343 344 type DeleteRequest struct { 345 state protoimpl.MessageState 346 sizeCache protoimpl.SizeCache 347 unknownFields protoimpl.UnknownFields 348 349 Change *Change `protobuf:"bytes,1,opt,name=change,proto3" json:"change,omitempty"` 350 } 351 352 func (x *DeleteRequest) Reset() { 353 *x = DeleteRequest{} 354 if protoimpl.UnsafeEnabled { 355 mi := &file_config_source_service_proto_service_proto_msgTypes[6] 356 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 357 ms.StoreMessageInfo(mi) 358 } 359 } 360 361 func (x *DeleteRequest) String() string { 362 return protoimpl.X.MessageStringOf(x) 363 } 364 365 func (*DeleteRequest) ProtoMessage() {} 366 367 func (x *DeleteRequest) ProtoReflect() protoreflect.Message { 368 mi := &file_config_source_service_proto_service_proto_msgTypes[6] 369 if protoimpl.UnsafeEnabled && x != nil { 370 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 371 if ms.LoadMessageInfo() == nil { 372 ms.StoreMessageInfo(mi) 373 } 374 return ms 375 } 376 return mi.MessageOf(x) 377 } 378 379 // Deprecated: Use DeleteRequest.ProtoReflect.Descriptor instead. 380 func (*DeleteRequest) Descriptor() ([]byte, []int) { 381 return file_config_source_service_proto_service_proto_rawDescGZIP(), []int{6} 382 } 383 384 func (x *DeleteRequest) GetChange() *Change { 385 if x != nil { 386 return x.Change 387 } 388 return nil 389 } 390 391 type DeleteResponse struct { 392 state protoimpl.MessageState 393 sizeCache protoimpl.SizeCache 394 unknownFields protoimpl.UnknownFields 395 } 396 397 func (x *DeleteResponse) Reset() { 398 *x = DeleteResponse{} 399 if protoimpl.UnsafeEnabled { 400 mi := &file_config_source_service_proto_service_proto_msgTypes[7] 401 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 402 ms.StoreMessageInfo(mi) 403 } 404 } 405 406 func (x *DeleteResponse) String() string { 407 return protoimpl.X.MessageStringOf(x) 408 } 409 410 func (*DeleteResponse) ProtoMessage() {} 411 412 func (x *DeleteResponse) ProtoReflect() protoreflect.Message { 413 mi := &file_config_source_service_proto_service_proto_msgTypes[7] 414 if protoimpl.UnsafeEnabled && x != nil { 415 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 416 if ms.LoadMessageInfo() == nil { 417 ms.StoreMessageInfo(mi) 418 } 419 return ms 420 } 421 return mi.MessageOf(x) 422 } 423 424 // Deprecated: Use DeleteResponse.ProtoReflect.Descriptor instead. 425 func (*DeleteResponse) Descriptor() ([]byte, []int) { 426 return file_config_source_service_proto_service_proto_rawDescGZIP(), []int{7} 427 } 428 429 type ListRequest struct { 430 state protoimpl.MessageState 431 sizeCache protoimpl.SizeCache 432 unknownFields protoimpl.UnknownFields 433 } 434 435 func (x *ListRequest) Reset() { 436 *x = ListRequest{} 437 if protoimpl.UnsafeEnabled { 438 mi := &file_config_source_service_proto_service_proto_msgTypes[8] 439 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 440 ms.StoreMessageInfo(mi) 441 } 442 } 443 444 func (x *ListRequest) String() string { 445 return protoimpl.X.MessageStringOf(x) 446 } 447 448 func (*ListRequest) ProtoMessage() {} 449 450 func (x *ListRequest) ProtoReflect() protoreflect.Message { 451 mi := &file_config_source_service_proto_service_proto_msgTypes[8] 452 if protoimpl.UnsafeEnabled && x != nil { 453 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 454 if ms.LoadMessageInfo() == nil { 455 ms.StoreMessageInfo(mi) 456 } 457 return ms 458 } 459 return mi.MessageOf(x) 460 } 461 462 // Deprecated: Use ListRequest.ProtoReflect.Descriptor instead. 463 func (*ListRequest) Descriptor() ([]byte, []int) { 464 return file_config_source_service_proto_service_proto_rawDescGZIP(), []int{8} 465 } 466 467 type ListResponse struct { 468 state protoimpl.MessageState 469 sizeCache protoimpl.SizeCache 470 unknownFields protoimpl.UnknownFields 471 472 Values []*Change `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"` 473 } 474 475 func (x *ListResponse) Reset() { 476 *x = ListResponse{} 477 if protoimpl.UnsafeEnabled { 478 mi := &file_config_source_service_proto_service_proto_msgTypes[9] 479 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 480 ms.StoreMessageInfo(mi) 481 } 482 } 483 484 func (x *ListResponse) String() string { 485 return protoimpl.X.MessageStringOf(x) 486 } 487 488 func (*ListResponse) ProtoMessage() {} 489 490 func (x *ListResponse) ProtoReflect() protoreflect.Message { 491 mi := &file_config_source_service_proto_service_proto_msgTypes[9] 492 if protoimpl.UnsafeEnabled && x != nil { 493 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 494 if ms.LoadMessageInfo() == nil { 495 ms.StoreMessageInfo(mi) 496 } 497 return ms 498 } 499 return mi.MessageOf(x) 500 } 501 502 // Deprecated: Use ListResponse.ProtoReflect.Descriptor instead. 503 func (*ListResponse) Descriptor() ([]byte, []int) { 504 return file_config_source_service_proto_service_proto_rawDescGZIP(), []int{9} 505 } 506 507 func (x *ListResponse) GetValues() []*Change { 508 if x != nil { 509 return x.Values 510 } 511 return nil 512 } 513 514 type ReadRequest struct { 515 state protoimpl.MessageState 516 sizeCache protoimpl.SizeCache 517 unknownFields protoimpl.UnknownFields 518 519 Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` 520 Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` 521 } 522 523 func (x *ReadRequest) Reset() { 524 *x = ReadRequest{} 525 if protoimpl.UnsafeEnabled { 526 mi := &file_config_source_service_proto_service_proto_msgTypes[10] 527 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 528 ms.StoreMessageInfo(mi) 529 } 530 } 531 532 func (x *ReadRequest) String() string { 533 return protoimpl.X.MessageStringOf(x) 534 } 535 536 func (*ReadRequest) ProtoMessage() {} 537 538 func (x *ReadRequest) ProtoReflect() protoreflect.Message { 539 mi := &file_config_source_service_proto_service_proto_msgTypes[10] 540 if protoimpl.UnsafeEnabled && x != nil { 541 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 542 if ms.LoadMessageInfo() == nil { 543 ms.StoreMessageInfo(mi) 544 } 545 return ms 546 } 547 return mi.MessageOf(x) 548 } 549 550 // Deprecated: Use ReadRequest.ProtoReflect.Descriptor instead. 551 func (*ReadRequest) Descriptor() ([]byte, []int) { 552 return file_config_source_service_proto_service_proto_rawDescGZIP(), []int{10} 553 } 554 555 func (x *ReadRequest) GetNamespace() string { 556 if x != nil { 557 return x.Namespace 558 } 559 return "" 560 } 561 562 func (x *ReadRequest) GetPath() string { 563 if x != nil { 564 return x.Path 565 } 566 return "" 567 } 568 569 type ReadResponse struct { 570 state protoimpl.MessageState 571 sizeCache protoimpl.SizeCache 572 unknownFields protoimpl.UnknownFields 573 574 Change *Change `protobuf:"bytes,1,opt,name=change,proto3" json:"change,omitempty"` 575 } 576 577 func (x *ReadResponse) Reset() { 578 *x = ReadResponse{} 579 if protoimpl.UnsafeEnabled { 580 mi := &file_config_source_service_proto_service_proto_msgTypes[11] 581 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 582 ms.StoreMessageInfo(mi) 583 } 584 } 585 586 func (x *ReadResponse) String() string { 587 return protoimpl.X.MessageStringOf(x) 588 } 589 590 func (*ReadResponse) ProtoMessage() {} 591 592 func (x *ReadResponse) ProtoReflect() protoreflect.Message { 593 mi := &file_config_source_service_proto_service_proto_msgTypes[11] 594 if protoimpl.UnsafeEnabled && x != nil { 595 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 596 if ms.LoadMessageInfo() == nil { 597 ms.StoreMessageInfo(mi) 598 } 599 return ms 600 } 601 return mi.MessageOf(x) 602 } 603 604 // Deprecated: Use ReadResponse.ProtoReflect.Descriptor instead. 605 func (*ReadResponse) Descriptor() ([]byte, []int) { 606 return file_config_source_service_proto_service_proto_rawDescGZIP(), []int{11} 607 } 608 609 func (x *ReadResponse) GetChange() *Change { 610 if x != nil { 611 return x.Change 612 } 613 return nil 614 } 615 616 type WatchRequest struct { 617 state protoimpl.MessageState 618 sizeCache protoimpl.SizeCache 619 unknownFields protoimpl.UnknownFields 620 621 Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` 622 Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` 623 } 624 625 func (x *WatchRequest) Reset() { 626 *x = WatchRequest{} 627 if protoimpl.UnsafeEnabled { 628 mi := &file_config_source_service_proto_service_proto_msgTypes[12] 629 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 630 ms.StoreMessageInfo(mi) 631 } 632 } 633 634 func (x *WatchRequest) String() string { 635 return protoimpl.X.MessageStringOf(x) 636 } 637 638 func (*WatchRequest) ProtoMessage() {} 639 640 func (x *WatchRequest) ProtoReflect() protoreflect.Message { 641 mi := &file_config_source_service_proto_service_proto_msgTypes[12] 642 if protoimpl.UnsafeEnabled && x != nil { 643 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 644 if ms.LoadMessageInfo() == nil { 645 ms.StoreMessageInfo(mi) 646 } 647 return ms 648 } 649 return mi.MessageOf(x) 650 } 651 652 // Deprecated: Use WatchRequest.ProtoReflect.Descriptor instead. 653 func (*WatchRequest) Descriptor() ([]byte, []int) { 654 return file_config_source_service_proto_service_proto_rawDescGZIP(), []int{12} 655 } 656 657 func (x *WatchRequest) GetNamespace() string { 658 if x != nil { 659 return x.Namespace 660 } 661 return "" 662 } 663 664 func (x *WatchRequest) GetPath() string { 665 if x != nil { 666 return x.Path 667 } 668 return "" 669 } 670 671 type WatchResponse struct { 672 state protoimpl.MessageState 673 sizeCache protoimpl.SizeCache 674 unknownFields protoimpl.UnknownFields 675 676 Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` 677 ChangeSet *ChangeSet `protobuf:"bytes,2,opt,name=changeSet,proto3" json:"changeSet,omitempty"` 678 } 679 680 func (x *WatchResponse) Reset() { 681 *x = WatchResponse{} 682 if protoimpl.UnsafeEnabled { 683 mi := &file_config_source_service_proto_service_proto_msgTypes[13] 684 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 685 ms.StoreMessageInfo(mi) 686 } 687 } 688 689 func (x *WatchResponse) String() string { 690 return protoimpl.X.MessageStringOf(x) 691 } 692 693 func (*WatchResponse) ProtoMessage() {} 694 695 func (x *WatchResponse) ProtoReflect() protoreflect.Message { 696 mi := &file_config_source_service_proto_service_proto_msgTypes[13] 697 if protoimpl.UnsafeEnabled && x != nil { 698 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 699 if ms.LoadMessageInfo() == nil { 700 ms.StoreMessageInfo(mi) 701 } 702 return ms 703 } 704 return mi.MessageOf(x) 705 } 706 707 // Deprecated: Use WatchResponse.ProtoReflect.Descriptor instead. 708 func (*WatchResponse) Descriptor() ([]byte, []int) { 709 return file_config_source_service_proto_service_proto_rawDescGZIP(), []int{13} 710 } 711 712 func (x *WatchResponse) GetNamespace() string { 713 if x != nil { 714 return x.Namespace 715 } 716 return "" 717 } 718 719 func (x *WatchResponse) GetChangeSet() *ChangeSet { 720 if x != nil { 721 return x.ChangeSet 722 } 723 return nil 724 } 725 726 var File_config_source_service_proto_service_proto protoreflect.FileDescriptor 727 728 var file_config_source_service_proto_service_proto_rawDesc = []byte{ 729 0x0a, 0x29, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2f, 730 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x73, 0x65, 731 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x89, 0x01, 0x0a, 0x09, 732 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x53, 0x65, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 733 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x1a, 0x0a, 734 0x08, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x75, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 735 0x08, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x75, 0x6d, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x6f, 0x72, 736 0x6d, 0x61, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, 0x6f, 0x72, 0x6d, 0x61, 737 0x74, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 738 0x09, 0x52, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 739 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x74, 0x69, 740 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x22, 0x64, 0x0a, 0x06, 0x43, 0x68, 0x61, 0x6e, 0x67, 741 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x01, 742 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 743 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 744 0x61, 0x74, 0x68, 0x12, 0x28, 0x0a, 0x09, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x53, 0x65, 0x74, 745 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x53, 746 0x65, 0x74, 0x52, 0x09, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x53, 0x65, 0x74, 0x22, 0x30, 0x0a, 747 0x0d, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 748 0x0a, 0x06, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x07, 749 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x06, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x22, 750 0x10, 0x0a, 0x0e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 751 0x65, 0x22, 0x30, 0x0a, 0x0d, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 752 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x06, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 753 0x28, 0x0b, 0x32, 0x07, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x06, 0x63, 0x68, 0x61, 754 0x6e, 0x67, 0x65, 0x22, 0x10, 0x0a, 0x0e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 755 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x30, 0x0a, 0x0d, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 756 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x06, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 757 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x07, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52, 758 0x06, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x22, 0x10, 0x0a, 0x0e, 0x44, 0x65, 0x6c, 0x65, 0x74, 759 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x0d, 0x0a, 0x0b, 0x4c, 0x69, 0x73, 760 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x2f, 0x0a, 0x0c, 0x4c, 0x69, 0x73, 0x74, 761 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1f, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 762 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x07, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 763 0x65, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x22, 0x3f, 0x0a, 0x0b, 0x52, 0x65, 0x61, 764 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x6e, 0x61, 0x6d, 0x65, 765 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6e, 0x61, 0x6d, 766 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x02, 767 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x22, 0x2f, 0x0a, 0x0c, 0x52, 0x65, 768 0x61, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1f, 0x0a, 0x06, 0x63, 0x68, 769 0x61, 0x6e, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x07, 0x2e, 0x43, 0x68, 0x61, 770 0x6e, 0x67, 0x65, 0x52, 0x06, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x22, 0x40, 0x0a, 0x0c, 0x57, 771 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x6e, 772 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 773 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 774 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x22, 0x57, 0x0a, 775 0x0d, 0x57, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1c, 776 0x0a, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 777 0x09, 0x52, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x28, 0x0a, 0x09, 778 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x53, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 779 0x0a, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x53, 0x65, 0x74, 0x52, 0x09, 0x63, 0x68, 0x61, 780 0x6e, 0x67, 0x65, 0x53, 0x65, 0x74, 0x32, 0x89, 0x02, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 781 0x67, 0x12, 0x2b, 0x0a, 0x06, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x12, 0x0e, 0x2e, 0x43, 0x72, 782 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0f, 0x2e, 0x43, 0x72, 783 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x2b, 784 0x0a, 0x06, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x0e, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 785 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0f, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 786 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x2b, 0x0a, 0x06, 0x44, 787 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x0e, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 788 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0f, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 789 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x25, 0x0a, 0x04, 0x4c, 0x69, 0x73, 0x74, 790 0x12, 0x0c, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0d, 791 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 792 0x25, 0x0a, 0x04, 0x52, 0x65, 0x61, 0x64, 0x12, 0x0c, 0x2e, 0x52, 0x65, 0x61, 0x64, 0x52, 0x65, 793 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0d, 0x2e, 0x52, 0x65, 0x61, 0x64, 0x52, 0x65, 0x73, 0x70, 794 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x2a, 0x0a, 0x05, 0x57, 0x61, 0x74, 0x63, 0x68, 0x12, 795 0x0d, 0x2e, 0x57, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 796 0x2e, 0x57, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 797 0x30, 0x01, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 798 } 799 800 var ( 801 file_config_source_service_proto_service_proto_rawDescOnce sync.Once 802 file_config_source_service_proto_service_proto_rawDescData = file_config_source_service_proto_service_proto_rawDesc 803 ) 804 805 func file_config_source_service_proto_service_proto_rawDescGZIP() []byte { 806 file_config_source_service_proto_service_proto_rawDescOnce.Do(func() { 807 file_config_source_service_proto_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_config_source_service_proto_service_proto_rawDescData) 808 }) 809 return file_config_source_service_proto_service_proto_rawDescData 810 } 811 812 var file_config_source_service_proto_service_proto_msgTypes = make([]protoimpl.MessageInfo, 14) 813 var file_config_source_service_proto_service_proto_goTypes = []interface{}{ 814 (*ChangeSet)(nil), // 0: ChangeSet 815 (*Change)(nil), // 1: Change 816 (*CreateRequest)(nil), // 2: CreateRequest 817 (*CreateResponse)(nil), // 3: CreateResponse 818 (*UpdateRequest)(nil), // 4: UpdateRequest 819 (*UpdateResponse)(nil), // 5: UpdateResponse 820 (*DeleteRequest)(nil), // 6: DeleteRequest 821 (*DeleteResponse)(nil), // 7: DeleteResponse 822 (*ListRequest)(nil), // 8: ListRequest 823 (*ListResponse)(nil), // 9: ListResponse 824 (*ReadRequest)(nil), // 10: ReadRequest 825 (*ReadResponse)(nil), // 11: ReadResponse 826 (*WatchRequest)(nil), // 12: WatchRequest 827 (*WatchResponse)(nil), // 13: WatchResponse 828 } 829 var file_config_source_service_proto_service_proto_depIdxs = []int32{ 830 0, // 0: Change.changeSet:type_name -> ChangeSet 831 1, // 1: CreateRequest.change:type_name -> Change 832 1, // 2: UpdateRequest.change:type_name -> Change 833 1, // 3: DeleteRequest.change:type_name -> Change 834 1, // 4: ListResponse.values:type_name -> Change 835 1, // 5: ReadResponse.change:type_name -> Change 836 0, // 6: WatchResponse.changeSet:type_name -> ChangeSet 837 2, // 7: Config.Create:input_type -> CreateRequest 838 4, // 8: Config.Update:input_type -> UpdateRequest 839 6, // 9: Config.Delete:input_type -> DeleteRequest 840 8, // 10: Config.List:input_type -> ListRequest 841 10, // 11: Config.Read:input_type -> ReadRequest 842 12, // 12: Config.Watch:input_type -> WatchRequest 843 3, // 13: Config.Create:output_type -> CreateResponse 844 5, // 14: Config.Update:output_type -> UpdateResponse 845 7, // 15: Config.Delete:output_type -> DeleteResponse 846 9, // 16: Config.List:output_type -> ListResponse 847 11, // 17: Config.Read:output_type -> ReadResponse 848 13, // 18: Config.Watch:output_type -> WatchResponse 849 13, // [13:19] is the sub-list for method output_type 850 7, // [7:13] is the sub-list for method input_type 851 7, // [7:7] is the sub-list for extension type_name 852 7, // [7:7] is the sub-list for extension extendee 853 0, // [0:7] is the sub-list for field type_name 854 } 855 856 func init() { file_config_source_service_proto_service_proto_init() } 857 func file_config_source_service_proto_service_proto_init() { 858 if File_config_source_service_proto_service_proto != nil { 859 return 860 } 861 if !protoimpl.UnsafeEnabled { 862 file_config_source_service_proto_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 863 switch v := v.(*ChangeSet); i { 864 case 0: 865 return &v.state 866 case 1: 867 return &v.sizeCache 868 case 2: 869 return &v.unknownFields 870 default: 871 return nil 872 } 873 } 874 file_config_source_service_proto_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 875 switch v := v.(*Change); i { 876 case 0: 877 return &v.state 878 case 1: 879 return &v.sizeCache 880 case 2: 881 return &v.unknownFields 882 default: 883 return nil 884 } 885 } 886 file_config_source_service_proto_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 887 switch v := v.(*CreateRequest); i { 888 case 0: 889 return &v.state 890 case 1: 891 return &v.sizeCache 892 case 2: 893 return &v.unknownFields 894 default: 895 return nil 896 } 897 } 898 file_config_source_service_proto_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 899 switch v := v.(*CreateResponse); i { 900 case 0: 901 return &v.state 902 case 1: 903 return &v.sizeCache 904 case 2: 905 return &v.unknownFields 906 default: 907 return nil 908 } 909 } 910 file_config_source_service_proto_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { 911 switch v := v.(*UpdateRequest); 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_config_source_service_proto_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { 923 switch v := v.(*UpdateResponse); 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_config_source_service_proto_service_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { 935 switch v := v.(*DeleteRequest); 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_config_source_service_proto_service_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { 947 switch v := v.(*DeleteResponse); 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_config_source_service_proto_service_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { 959 switch v := v.(*ListRequest); 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_config_source_service_proto_service_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { 971 switch v := v.(*ListResponse); 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_config_source_service_proto_service_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { 983 switch v := v.(*ReadRequest); 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_config_source_service_proto_service_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { 995 switch v := v.(*ReadResponse); 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_config_source_service_proto_service_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { 1007 switch v := v.(*WatchRequest); 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_config_source_service_proto_service_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { 1019 switch v := v.(*WatchResponse); 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 } 1031 type x struct{} 1032 out := protoimpl.TypeBuilder{ 1033 File: protoimpl.DescBuilder{ 1034 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 1035 RawDescriptor: file_config_source_service_proto_service_proto_rawDesc, 1036 NumEnums: 0, 1037 NumMessages: 14, 1038 NumExtensions: 0, 1039 NumServices: 1, 1040 }, 1041 GoTypes: file_config_source_service_proto_service_proto_goTypes, 1042 DependencyIndexes: file_config_source_service_proto_service_proto_depIdxs, 1043 MessageInfos: file_config_source_service_proto_service_proto_msgTypes, 1044 }.Build() 1045 File_config_source_service_proto_service_proto = out.File 1046 file_config_source_service_proto_service_proto_rawDesc = nil 1047 file_config_source_service_proto_service_proto_goTypes = nil 1048 file_config_source_service_proto_service_proto_depIdxs = nil 1049 } 1050 1051 // Reference imports to suppress errors if they are not otherwise used. 1052 var _ context.Context 1053 var _ grpc.ClientConnInterface 1054 1055 // This is a compile-time assertion to ensure that this generated file 1056 // is compatible with the grpc package it is being compiled against. 1057 const _ = grpc.SupportPackageIsVersion6 1058 1059 // ConfigClient is the client API for Config service. 1060 // 1061 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 1062 type ConfigClient interface { 1063 Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error) 1064 Update(ctx context.Context, in *UpdateRequest, opts ...grpc.CallOption) (*UpdateResponse, error) 1065 Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error) 1066 List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error) 1067 Read(ctx context.Context, in *ReadRequest, opts ...grpc.CallOption) (*ReadResponse, error) 1068 Watch(ctx context.Context, in *WatchRequest, opts ...grpc.CallOption) (Config_WatchClient, error) 1069 } 1070 1071 type configClient struct { 1072 cc grpc.ClientConnInterface 1073 } 1074 1075 func NewConfigClient(cc grpc.ClientConnInterface) ConfigClient { 1076 return &configClient{cc} 1077 } 1078 1079 func (c *configClient) Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error) { 1080 out := new(CreateResponse) 1081 err := c.cc.Invoke(ctx, "/Config/Create", in, out, opts...) 1082 if err != nil { 1083 return nil, err 1084 } 1085 return out, nil 1086 } 1087 1088 func (c *configClient) Update(ctx context.Context, in *UpdateRequest, opts ...grpc.CallOption) (*UpdateResponse, error) { 1089 out := new(UpdateResponse) 1090 err := c.cc.Invoke(ctx, "/Config/Update", in, out, opts...) 1091 if err != nil { 1092 return nil, err 1093 } 1094 return out, nil 1095 } 1096 1097 func (c *configClient) Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error) { 1098 out := new(DeleteResponse) 1099 err := c.cc.Invoke(ctx, "/Config/Delete", in, out, opts...) 1100 if err != nil { 1101 return nil, err 1102 } 1103 return out, nil 1104 } 1105 1106 func (c *configClient) List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error) { 1107 out := new(ListResponse) 1108 err := c.cc.Invoke(ctx, "/Config/List", in, out, opts...) 1109 if err != nil { 1110 return nil, err 1111 } 1112 return out, nil 1113 } 1114 1115 func (c *configClient) Read(ctx context.Context, in *ReadRequest, opts ...grpc.CallOption) (*ReadResponse, error) { 1116 out := new(ReadResponse) 1117 err := c.cc.Invoke(ctx, "/Config/Read", in, out, opts...) 1118 if err != nil { 1119 return nil, err 1120 } 1121 return out, nil 1122 } 1123 1124 func (c *configClient) Watch(ctx context.Context, in *WatchRequest, opts ...grpc.CallOption) (Config_WatchClient, error) { 1125 stream, err := c.cc.NewStream(ctx, &_Config_serviceDesc.Streams[0], "/Config/Watch", opts...) 1126 if err != nil { 1127 return nil, err 1128 } 1129 x := &configWatchClient{stream} 1130 if err := x.ClientStream.SendMsg(in); err != nil { 1131 return nil, err 1132 } 1133 if err := x.ClientStream.CloseSend(); err != nil { 1134 return nil, err 1135 } 1136 return x, nil 1137 } 1138 1139 type Config_WatchClient interface { 1140 Recv() (*WatchResponse, error) 1141 grpc.ClientStream 1142 } 1143 1144 type configWatchClient struct { 1145 grpc.ClientStream 1146 } 1147 1148 func (x *configWatchClient) Recv() (*WatchResponse, error) { 1149 m := new(WatchResponse) 1150 if err := x.ClientStream.RecvMsg(m); err != nil { 1151 return nil, err 1152 } 1153 return m, nil 1154 } 1155 1156 // ConfigServer is the server API for Config service. 1157 type ConfigServer interface { 1158 Create(context.Context, *CreateRequest) (*CreateResponse, error) 1159 Update(context.Context, *UpdateRequest) (*UpdateResponse, error) 1160 Delete(context.Context, *DeleteRequest) (*DeleteResponse, error) 1161 List(context.Context, *ListRequest) (*ListResponse, error) 1162 Read(context.Context, *ReadRequest) (*ReadResponse, error) 1163 Watch(*WatchRequest, Config_WatchServer) error 1164 } 1165 1166 // UnimplementedConfigServer can be embedded to have forward compatible implementations. 1167 type UnimplementedConfigServer struct { 1168 } 1169 1170 func (*UnimplementedConfigServer) Create(context.Context, *CreateRequest) (*CreateResponse, error) { 1171 return nil, status.Errorf(codes.Unimplemented, "method Create not implemented") 1172 } 1173 func (*UnimplementedConfigServer) Update(context.Context, *UpdateRequest) (*UpdateResponse, error) { 1174 return nil, status.Errorf(codes.Unimplemented, "method Update not implemented") 1175 } 1176 func (*UnimplementedConfigServer) Delete(context.Context, *DeleteRequest) (*DeleteResponse, error) { 1177 return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented") 1178 } 1179 func (*UnimplementedConfigServer) List(context.Context, *ListRequest) (*ListResponse, error) { 1180 return nil, status.Errorf(codes.Unimplemented, "method List not implemented") 1181 } 1182 func (*UnimplementedConfigServer) Read(context.Context, *ReadRequest) (*ReadResponse, error) { 1183 return nil, status.Errorf(codes.Unimplemented, "method Read not implemented") 1184 } 1185 func (*UnimplementedConfigServer) Watch(*WatchRequest, Config_WatchServer) error { 1186 return status.Errorf(codes.Unimplemented, "method Watch not implemented") 1187 } 1188 1189 func RegisterConfigServer(s *grpc.Server, srv ConfigServer) { 1190 s.RegisterService(&_Config_serviceDesc, srv) 1191 } 1192 1193 func _Config_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1194 in := new(CreateRequest) 1195 if err := dec(in); err != nil { 1196 return nil, err 1197 } 1198 if interceptor == nil { 1199 return srv.(ConfigServer).Create(ctx, in) 1200 } 1201 info := &grpc.UnaryServerInfo{ 1202 Server: srv, 1203 FullMethod: "/Config/Create", 1204 } 1205 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1206 return srv.(ConfigServer).Create(ctx, req.(*CreateRequest)) 1207 } 1208 return interceptor(ctx, in, info, handler) 1209 } 1210 1211 func _Config_Update_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1212 in := new(UpdateRequest) 1213 if err := dec(in); err != nil { 1214 return nil, err 1215 } 1216 if interceptor == nil { 1217 return srv.(ConfigServer).Update(ctx, in) 1218 } 1219 info := &grpc.UnaryServerInfo{ 1220 Server: srv, 1221 FullMethod: "/Config/Update", 1222 } 1223 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1224 return srv.(ConfigServer).Update(ctx, req.(*UpdateRequest)) 1225 } 1226 return interceptor(ctx, in, info, handler) 1227 } 1228 1229 func _Config_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1230 in := new(DeleteRequest) 1231 if err := dec(in); err != nil { 1232 return nil, err 1233 } 1234 if interceptor == nil { 1235 return srv.(ConfigServer).Delete(ctx, in) 1236 } 1237 info := &grpc.UnaryServerInfo{ 1238 Server: srv, 1239 FullMethod: "/Config/Delete", 1240 } 1241 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1242 return srv.(ConfigServer).Delete(ctx, req.(*DeleteRequest)) 1243 } 1244 return interceptor(ctx, in, info, handler) 1245 } 1246 1247 func _Config_List_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1248 in := new(ListRequest) 1249 if err := dec(in); err != nil { 1250 return nil, err 1251 } 1252 if interceptor == nil { 1253 return srv.(ConfigServer).List(ctx, in) 1254 } 1255 info := &grpc.UnaryServerInfo{ 1256 Server: srv, 1257 FullMethod: "/Config/List", 1258 } 1259 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1260 return srv.(ConfigServer).List(ctx, req.(*ListRequest)) 1261 } 1262 return interceptor(ctx, in, info, handler) 1263 } 1264 1265 func _Config_Read_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1266 in := new(ReadRequest) 1267 if err := dec(in); err != nil { 1268 return nil, err 1269 } 1270 if interceptor == nil { 1271 return srv.(ConfigServer).Read(ctx, in) 1272 } 1273 info := &grpc.UnaryServerInfo{ 1274 Server: srv, 1275 FullMethod: "/Config/Read", 1276 } 1277 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1278 return srv.(ConfigServer).Read(ctx, req.(*ReadRequest)) 1279 } 1280 return interceptor(ctx, in, info, handler) 1281 } 1282 1283 func _Config_Watch_Handler(srv interface{}, stream grpc.ServerStream) error { 1284 m := new(WatchRequest) 1285 if err := stream.RecvMsg(m); err != nil { 1286 return err 1287 } 1288 return srv.(ConfigServer).Watch(m, &configWatchServer{stream}) 1289 } 1290 1291 type Config_WatchServer interface { 1292 Send(*WatchResponse) error 1293 grpc.ServerStream 1294 } 1295 1296 type configWatchServer struct { 1297 grpc.ServerStream 1298 } 1299 1300 func (x *configWatchServer) Send(m *WatchResponse) error { 1301 return x.ServerStream.SendMsg(m) 1302 } 1303 1304 var _Config_serviceDesc = grpc.ServiceDesc{ 1305 ServiceName: "Config", 1306 HandlerType: (*ConfigServer)(nil), 1307 Methods: []grpc.MethodDesc{ 1308 { 1309 MethodName: "Create", 1310 Handler: _Config_Create_Handler, 1311 }, 1312 { 1313 MethodName: "Update", 1314 Handler: _Config_Update_Handler, 1315 }, 1316 { 1317 MethodName: "Delete", 1318 Handler: _Config_Delete_Handler, 1319 }, 1320 { 1321 MethodName: "List", 1322 Handler: _Config_List_Handler, 1323 }, 1324 { 1325 MethodName: "Read", 1326 Handler: _Config_Read_Handler, 1327 }, 1328 }, 1329 Streams: []grpc.StreamDesc{ 1330 { 1331 StreamName: "Watch", 1332 Handler: _Config_Watch_Handler, 1333 ServerStreams: true, 1334 }, 1335 }, 1336 Metadata: "config/source/service/proto/service.proto", 1337 }