github.com/micro/go-micro/v2@v2.9.1/config/source/service/proto/service.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // source: config/source/service/proto/service.proto 3 4 package service 5 6 import ( 7 context "context" 8 fmt "fmt" 9 proto "github.com/golang/protobuf/proto" 10 grpc "google.golang.org/grpc" 11 codes "google.golang.org/grpc/codes" 12 status "google.golang.org/grpc/status" 13 math "math" 14 ) 15 16 // Reference imports to suppress errors if they are not otherwise used. 17 var _ = proto.Marshal 18 var _ = fmt.Errorf 19 var _ = math.Inf 20 21 // This is a compile-time assertion to ensure that this generated file 22 // is compatible with the proto package it is being compiled against. 23 // A compilation error at this line likely means your copy of the 24 // proto package needs to be updated. 25 const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package 26 27 type ChangeSet struct { 28 Data string `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` 29 Checksum string `protobuf:"bytes,2,opt,name=checksum,proto3" json:"checksum,omitempty"` 30 Format string `protobuf:"bytes,3,opt,name=format,proto3" json:"format,omitempty"` 31 Source string `protobuf:"bytes,4,opt,name=source,proto3" json:"source,omitempty"` 32 Timestamp int64 `protobuf:"varint,5,opt,name=timestamp,proto3" json:"timestamp,omitempty"` 33 XXX_NoUnkeyedLiteral struct{} `json:"-"` 34 XXX_unrecognized []byte `json:"-"` 35 XXX_sizecache int32 `json:"-"` 36 } 37 38 func (m *ChangeSet) Reset() { *m = ChangeSet{} } 39 func (m *ChangeSet) String() string { return proto.CompactTextString(m) } 40 func (*ChangeSet) ProtoMessage() {} 41 func (*ChangeSet) Descriptor() ([]byte, []int) { 42 return fileDescriptor_e67338fe1f659d14, []int{0} 43 } 44 45 func (m *ChangeSet) XXX_Unmarshal(b []byte) error { 46 return xxx_messageInfo_ChangeSet.Unmarshal(m, b) 47 } 48 func (m *ChangeSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 49 return xxx_messageInfo_ChangeSet.Marshal(b, m, deterministic) 50 } 51 func (m *ChangeSet) XXX_Merge(src proto.Message) { 52 xxx_messageInfo_ChangeSet.Merge(m, src) 53 } 54 func (m *ChangeSet) XXX_Size() int { 55 return xxx_messageInfo_ChangeSet.Size(m) 56 } 57 func (m *ChangeSet) XXX_DiscardUnknown() { 58 xxx_messageInfo_ChangeSet.DiscardUnknown(m) 59 } 60 61 var xxx_messageInfo_ChangeSet proto.InternalMessageInfo 62 63 func (m *ChangeSet) GetData() string { 64 if m != nil { 65 return m.Data 66 } 67 return "" 68 } 69 70 func (m *ChangeSet) GetChecksum() string { 71 if m != nil { 72 return m.Checksum 73 } 74 return "" 75 } 76 77 func (m *ChangeSet) GetFormat() string { 78 if m != nil { 79 return m.Format 80 } 81 return "" 82 } 83 84 func (m *ChangeSet) GetSource() string { 85 if m != nil { 86 return m.Source 87 } 88 return "" 89 } 90 91 func (m *ChangeSet) GetTimestamp() int64 { 92 if m != nil { 93 return m.Timestamp 94 } 95 return 0 96 } 97 98 type Change struct { 99 Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` 100 Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` 101 ChangeSet *ChangeSet `protobuf:"bytes,3,opt,name=changeSet,proto3" json:"changeSet,omitempty"` 102 XXX_NoUnkeyedLiteral struct{} `json:"-"` 103 XXX_unrecognized []byte `json:"-"` 104 XXX_sizecache int32 `json:"-"` 105 } 106 107 func (m *Change) Reset() { *m = Change{} } 108 func (m *Change) String() string { return proto.CompactTextString(m) } 109 func (*Change) ProtoMessage() {} 110 func (*Change) Descriptor() ([]byte, []int) { 111 return fileDescriptor_e67338fe1f659d14, []int{1} 112 } 113 114 func (m *Change) XXX_Unmarshal(b []byte) error { 115 return xxx_messageInfo_Change.Unmarshal(m, b) 116 } 117 func (m *Change) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 118 return xxx_messageInfo_Change.Marshal(b, m, deterministic) 119 } 120 func (m *Change) XXX_Merge(src proto.Message) { 121 xxx_messageInfo_Change.Merge(m, src) 122 } 123 func (m *Change) XXX_Size() int { 124 return xxx_messageInfo_Change.Size(m) 125 } 126 func (m *Change) XXX_DiscardUnknown() { 127 xxx_messageInfo_Change.DiscardUnknown(m) 128 } 129 130 var xxx_messageInfo_Change proto.InternalMessageInfo 131 132 func (m *Change) GetNamespace() string { 133 if m != nil { 134 return m.Namespace 135 } 136 return "" 137 } 138 139 func (m *Change) GetPath() string { 140 if m != nil { 141 return m.Path 142 } 143 return "" 144 } 145 146 func (m *Change) GetChangeSet() *ChangeSet { 147 if m != nil { 148 return m.ChangeSet 149 } 150 return nil 151 } 152 153 type CreateRequest struct { 154 Change *Change `protobuf:"bytes,1,opt,name=change,proto3" json:"change,omitempty"` 155 XXX_NoUnkeyedLiteral struct{} `json:"-"` 156 XXX_unrecognized []byte `json:"-"` 157 XXX_sizecache int32 `json:"-"` 158 } 159 160 func (m *CreateRequest) Reset() { *m = CreateRequest{} } 161 func (m *CreateRequest) String() string { return proto.CompactTextString(m) } 162 func (*CreateRequest) ProtoMessage() {} 163 func (*CreateRequest) Descriptor() ([]byte, []int) { 164 return fileDescriptor_e67338fe1f659d14, []int{2} 165 } 166 167 func (m *CreateRequest) XXX_Unmarshal(b []byte) error { 168 return xxx_messageInfo_CreateRequest.Unmarshal(m, b) 169 } 170 func (m *CreateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 171 return xxx_messageInfo_CreateRequest.Marshal(b, m, deterministic) 172 } 173 func (m *CreateRequest) XXX_Merge(src proto.Message) { 174 xxx_messageInfo_CreateRequest.Merge(m, src) 175 } 176 func (m *CreateRequest) XXX_Size() int { 177 return xxx_messageInfo_CreateRequest.Size(m) 178 } 179 func (m *CreateRequest) XXX_DiscardUnknown() { 180 xxx_messageInfo_CreateRequest.DiscardUnknown(m) 181 } 182 183 var xxx_messageInfo_CreateRequest proto.InternalMessageInfo 184 185 func (m *CreateRequest) GetChange() *Change { 186 if m != nil { 187 return m.Change 188 } 189 return nil 190 } 191 192 type CreateResponse struct { 193 XXX_NoUnkeyedLiteral struct{} `json:"-"` 194 XXX_unrecognized []byte `json:"-"` 195 XXX_sizecache int32 `json:"-"` 196 } 197 198 func (m *CreateResponse) Reset() { *m = CreateResponse{} } 199 func (m *CreateResponse) String() string { return proto.CompactTextString(m) } 200 func (*CreateResponse) ProtoMessage() {} 201 func (*CreateResponse) Descriptor() ([]byte, []int) { 202 return fileDescriptor_e67338fe1f659d14, []int{3} 203 } 204 205 func (m *CreateResponse) XXX_Unmarshal(b []byte) error { 206 return xxx_messageInfo_CreateResponse.Unmarshal(m, b) 207 } 208 func (m *CreateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 209 return xxx_messageInfo_CreateResponse.Marshal(b, m, deterministic) 210 } 211 func (m *CreateResponse) XXX_Merge(src proto.Message) { 212 xxx_messageInfo_CreateResponse.Merge(m, src) 213 } 214 func (m *CreateResponse) XXX_Size() int { 215 return xxx_messageInfo_CreateResponse.Size(m) 216 } 217 func (m *CreateResponse) XXX_DiscardUnknown() { 218 xxx_messageInfo_CreateResponse.DiscardUnknown(m) 219 } 220 221 var xxx_messageInfo_CreateResponse proto.InternalMessageInfo 222 223 type UpdateRequest struct { 224 Change *Change `protobuf:"bytes,1,opt,name=change,proto3" json:"change,omitempty"` 225 XXX_NoUnkeyedLiteral struct{} `json:"-"` 226 XXX_unrecognized []byte `json:"-"` 227 XXX_sizecache int32 `json:"-"` 228 } 229 230 func (m *UpdateRequest) Reset() { *m = UpdateRequest{} } 231 func (m *UpdateRequest) String() string { return proto.CompactTextString(m) } 232 func (*UpdateRequest) ProtoMessage() {} 233 func (*UpdateRequest) Descriptor() ([]byte, []int) { 234 return fileDescriptor_e67338fe1f659d14, []int{4} 235 } 236 237 func (m *UpdateRequest) XXX_Unmarshal(b []byte) error { 238 return xxx_messageInfo_UpdateRequest.Unmarshal(m, b) 239 } 240 func (m *UpdateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 241 return xxx_messageInfo_UpdateRequest.Marshal(b, m, deterministic) 242 } 243 func (m *UpdateRequest) XXX_Merge(src proto.Message) { 244 xxx_messageInfo_UpdateRequest.Merge(m, src) 245 } 246 func (m *UpdateRequest) XXX_Size() int { 247 return xxx_messageInfo_UpdateRequest.Size(m) 248 } 249 func (m *UpdateRequest) XXX_DiscardUnknown() { 250 xxx_messageInfo_UpdateRequest.DiscardUnknown(m) 251 } 252 253 var xxx_messageInfo_UpdateRequest proto.InternalMessageInfo 254 255 func (m *UpdateRequest) GetChange() *Change { 256 if m != nil { 257 return m.Change 258 } 259 return nil 260 } 261 262 type UpdateResponse struct { 263 XXX_NoUnkeyedLiteral struct{} `json:"-"` 264 XXX_unrecognized []byte `json:"-"` 265 XXX_sizecache int32 `json:"-"` 266 } 267 268 func (m *UpdateResponse) Reset() { *m = UpdateResponse{} } 269 func (m *UpdateResponse) String() string { return proto.CompactTextString(m) } 270 func (*UpdateResponse) ProtoMessage() {} 271 func (*UpdateResponse) Descriptor() ([]byte, []int) { 272 return fileDescriptor_e67338fe1f659d14, []int{5} 273 } 274 275 func (m *UpdateResponse) XXX_Unmarshal(b []byte) error { 276 return xxx_messageInfo_UpdateResponse.Unmarshal(m, b) 277 } 278 func (m *UpdateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 279 return xxx_messageInfo_UpdateResponse.Marshal(b, m, deterministic) 280 } 281 func (m *UpdateResponse) XXX_Merge(src proto.Message) { 282 xxx_messageInfo_UpdateResponse.Merge(m, src) 283 } 284 func (m *UpdateResponse) XXX_Size() int { 285 return xxx_messageInfo_UpdateResponse.Size(m) 286 } 287 func (m *UpdateResponse) XXX_DiscardUnknown() { 288 xxx_messageInfo_UpdateResponse.DiscardUnknown(m) 289 } 290 291 var xxx_messageInfo_UpdateResponse proto.InternalMessageInfo 292 293 type DeleteRequest struct { 294 Change *Change `protobuf:"bytes,1,opt,name=change,proto3" json:"change,omitempty"` 295 XXX_NoUnkeyedLiteral struct{} `json:"-"` 296 XXX_unrecognized []byte `json:"-"` 297 XXX_sizecache int32 `json:"-"` 298 } 299 300 func (m *DeleteRequest) Reset() { *m = DeleteRequest{} } 301 func (m *DeleteRequest) String() string { return proto.CompactTextString(m) } 302 func (*DeleteRequest) ProtoMessage() {} 303 func (*DeleteRequest) Descriptor() ([]byte, []int) { 304 return fileDescriptor_e67338fe1f659d14, []int{6} 305 } 306 307 func (m *DeleteRequest) XXX_Unmarshal(b []byte) error { 308 return xxx_messageInfo_DeleteRequest.Unmarshal(m, b) 309 } 310 func (m *DeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 311 return xxx_messageInfo_DeleteRequest.Marshal(b, m, deterministic) 312 } 313 func (m *DeleteRequest) XXX_Merge(src proto.Message) { 314 xxx_messageInfo_DeleteRequest.Merge(m, src) 315 } 316 func (m *DeleteRequest) XXX_Size() int { 317 return xxx_messageInfo_DeleteRequest.Size(m) 318 } 319 func (m *DeleteRequest) XXX_DiscardUnknown() { 320 xxx_messageInfo_DeleteRequest.DiscardUnknown(m) 321 } 322 323 var xxx_messageInfo_DeleteRequest proto.InternalMessageInfo 324 325 func (m *DeleteRequest) GetChange() *Change { 326 if m != nil { 327 return m.Change 328 } 329 return nil 330 } 331 332 type DeleteResponse struct { 333 XXX_NoUnkeyedLiteral struct{} `json:"-"` 334 XXX_unrecognized []byte `json:"-"` 335 XXX_sizecache int32 `json:"-"` 336 } 337 338 func (m *DeleteResponse) Reset() { *m = DeleteResponse{} } 339 func (m *DeleteResponse) String() string { return proto.CompactTextString(m) } 340 func (*DeleteResponse) ProtoMessage() {} 341 func (*DeleteResponse) Descriptor() ([]byte, []int) { 342 return fileDescriptor_e67338fe1f659d14, []int{7} 343 } 344 345 func (m *DeleteResponse) XXX_Unmarshal(b []byte) error { 346 return xxx_messageInfo_DeleteResponse.Unmarshal(m, b) 347 } 348 func (m *DeleteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 349 return xxx_messageInfo_DeleteResponse.Marshal(b, m, deterministic) 350 } 351 func (m *DeleteResponse) XXX_Merge(src proto.Message) { 352 xxx_messageInfo_DeleteResponse.Merge(m, src) 353 } 354 func (m *DeleteResponse) XXX_Size() int { 355 return xxx_messageInfo_DeleteResponse.Size(m) 356 } 357 func (m *DeleteResponse) XXX_DiscardUnknown() { 358 xxx_messageInfo_DeleteResponse.DiscardUnknown(m) 359 } 360 361 var xxx_messageInfo_DeleteResponse proto.InternalMessageInfo 362 363 type ListRequest struct { 364 XXX_NoUnkeyedLiteral struct{} `json:"-"` 365 XXX_unrecognized []byte `json:"-"` 366 XXX_sizecache int32 `json:"-"` 367 } 368 369 func (m *ListRequest) Reset() { *m = ListRequest{} } 370 func (m *ListRequest) String() string { return proto.CompactTextString(m) } 371 func (*ListRequest) ProtoMessage() {} 372 func (*ListRequest) Descriptor() ([]byte, []int) { 373 return fileDescriptor_e67338fe1f659d14, []int{8} 374 } 375 376 func (m *ListRequest) XXX_Unmarshal(b []byte) error { 377 return xxx_messageInfo_ListRequest.Unmarshal(m, b) 378 } 379 func (m *ListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 380 return xxx_messageInfo_ListRequest.Marshal(b, m, deterministic) 381 } 382 func (m *ListRequest) XXX_Merge(src proto.Message) { 383 xxx_messageInfo_ListRequest.Merge(m, src) 384 } 385 func (m *ListRequest) XXX_Size() int { 386 return xxx_messageInfo_ListRequest.Size(m) 387 } 388 func (m *ListRequest) XXX_DiscardUnknown() { 389 xxx_messageInfo_ListRequest.DiscardUnknown(m) 390 } 391 392 var xxx_messageInfo_ListRequest proto.InternalMessageInfo 393 394 type ListResponse struct { 395 Values []*Change `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"` 396 XXX_NoUnkeyedLiteral struct{} `json:"-"` 397 XXX_unrecognized []byte `json:"-"` 398 XXX_sizecache int32 `json:"-"` 399 } 400 401 func (m *ListResponse) Reset() { *m = ListResponse{} } 402 func (m *ListResponse) String() string { return proto.CompactTextString(m) } 403 func (*ListResponse) ProtoMessage() {} 404 func (*ListResponse) Descriptor() ([]byte, []int) { 405 return fileDescriptor_e67338fe1f659d14, []int{9} 406 } 407 408 func (m *ListResponse) XXX_Unmarshal(b []byte) error { 409 return xxx_messageInfo_ListResponse.Unmarshal(m, b) 410 } 411 func (m *ListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 412 return xxx_messageInfo_ListResponse.Marshal(b, m, deterministic) 413 } 414 func (m *ListResponse) XXX_Merge(src proto.Message) { 415 xxx_messageInfo_ListResponse.Merge(m, src) 416 } 417 func (m *ListResponse) XXX_Size() int { 418 return xxx_messageInfo_ListResponse.Size(m) 419 } 420 func (m *ListResponse) XXX_DiscardUnknown() { 421 xxx_messageInfo_ListResponse.DiscardUnknown(m) 422 } 423 424 var xxx_messageInfo_ListResponse proto.InternalMessageInfo 425 426 func (m *ListResponse) GetValues() []*Change { 427 if m != nil { 428 return m.Values 429 } 430 return nil 431 } 432 433 type ReadRequest struct { 434 Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` 435 Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` 436 XXX_NoUnkeyedLiteral struct{} `json:"-"` 437 XXX_unrecognized []byte `json:"-"` 438 XXX_sizecache int32 `json:"-"` 439 } 440 441 func (m *ReadRequest) Reset() { *m = ReadRequest{} } 442 func (m *ReadRequest) String() string { return proto.CompactTextString(m) } 443 func (*ReadRequest) ProtoMessage() {} 444 func (*ReadRequest) Descriptor() ([]byte, []int) { 445 return fileDescriptor_e67338fe1f659d14, []int{10} 446 } 447 448 func (m *ReadRequest) XXX_Unmarshal(b []byte) error { 449 return xxx_messageInfo_ReadRequest.Unmarshal(m, b) 450 } 451 func (m *ReadRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 452 return xxx_messageInfo_ReadRequest.Marshal(b, m, deterministic) 453 } 454 func (m *ReadRequest) XXX_Merge(src proto.Message) { 455 xxx_messageInfo_ReadRequest.Merge(m, src) 456 } 457 func (m *ReadRequest) XXX_Size() int { 458 return xxx_messageInfo_ReadRequest.Size(m) 459 } 460 func (m *ReadRequest) XXX_DiscardUnknown() { 461 xxx_messageInfo_ReadRequest.DiscardUnknown(m) 462 } 463 464 var xxx_messageInfo_ReadRequest proto.InternalMessageInfo 465 466 func (m *ReadRequest) GetNamespace() string { 467 if m != nil { 468 return m.Namespace 469 } 470 return "" 471 } 472 473 func (m *ReadRequest) GetPath() string { 474 if m != nil { 475 return m.Path 476 } 477 return "" 478 } 479 480 type ReadResponse struct { 481 Change *Change `protobuf:"bytes,1,opt,name=change,proto3" json:"change,omitempty"` 482 XXX_NoUnkeyedLiteral struct{} `json:"-"` 483 XXX_unrecognized []byte `json:"-"` 484 XXX_sizecache int32 `json:"-"` 485 } 486 487 func (m *ReadResponse) Reset() { *m = ReadResponse{} } 488 func (m *ReadResponse) String() string { return proto.CompactTextString(m) } 489 func (*ReadResponse) ProtoMessage() {} 490 func (*ReadResponse) Descriptor() ([]byte, []int) { 491 return fileDescriptor_e67338fe1f659d14, []int{11} 492 } 493 494 func (m *ReadResponse) XXX_Unmarshal(b []byte) error { 495 return xxx_messageInfo_ReadResponse.Unmarshal(m, b) 496 } 497 func (m *ReadResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 498 return xxx_messageInfo_ReadResponse.Marshal(b, m, deterministic) 499 } 500 func (m *ReadResponse) XXX_Merge(src proto.Message) { 501 xxx_messageInfo_ReadResponse.Merge(m, src) 502 } 503 func (m *ReadResponse) XXX_Size() int { 504 return xxx_messageInfo_ReadResponse.Size(m) 505 } 506 func (m *ReadResponse) XXX_DiscardUnknown() { 507 xxx_messageInfo_ReadResponse.DiscardUnknown(m) 508 } 509 510 var xxx_messageInfo_ReadResponse proto.InternalMessageInfo 511 512 func (m *ReadResponse) GetChange() *Change { 513 if m != nil { 514 return m.Change 515 } 516 return nil 517 } 518 519 type WatchRequest struct { 520 Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` 521 Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` 522 XXX_NoUnkeyedLiteral struct{} `json:"-"` 523 XXX_unrecognized []byte `json:"-"` 524 XXX_sizecache int32 `json:"-"` 525 } 526 527 func (m *WatchRequest) Reset() { *m = WatchRequest{} } 528 func (m *WatchRequest) String() string { return proto.CompactTextString(m) } 529 func (*WatchRequest) ProtoMessage() {} 530 func (*WatchRequest) Descriptor() ([]byte, []int) { 531 return fileDescriptor_e67338fe1f659d14, []int{12} 532 } 533 534 func (m *WatchRequest) XXX_Unmarshal(b []byte) error { 535 return xxx_messageInfo_WatchRequest.Unmarshal(m, b) 536 } 537 func (m *WatchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 538 return xxx_messageInfo_WatchRequest.Marshal(b, m, deterministic) 539 } 540 func (m *WatchRequest) XXX_Merge(src proto.Message) { 541 xxx_messageInfo_WatchRequest.Merge(m, src) 542 } 543 func (m *WatchRequest) XXX_Size() int { 544 return xxx_messageInfo_WatchRequest.Size(m) 545 } 546 func (m *WatchRequest) XXX_DiscardUnknown() { 547 xxx_messageInfo_WatchRequest.DiscardUnknown(m) 548 } 549 550 var xxx_messageInfo_WatchRequest proto.InternalMessageInfo 551 552 func (m *WatchRequest) GetNamespace() string { 553 if m != nil { 554 return m.Namespace 555 } 556 return "" 557 } 558 559 func (m *WatchRequest) GetPath() string { 560 if m != nil { 561 return m.Path 562 } 563 return "" 564 } 565 566 type WatchResponse struct { 567 Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` 568 ChangeSet *ChangeSet `protobuf:"bytes,2,opt,name=changeSet,proto3" json:"changeSet,omitempty"` 569 XXX_NoUnkeyedLiteral struct{} `json:"-"` 570 XXX_unrecognized []byte `json:"-"` 571 XXX_sizecache int32 `json:"-"` 572 } 573 574 func (m *WatchResponse) Reset() { *m = WatchResponse{} } 575 func (m *WatchResponse) String() string { return proto.CompactTextString(m) } 576 func (*WatchResponse) ProtoMessage() {} 577 func (*WatchResponse) Descriptor() ([]byte, []int) { 578 return fileDescriptor_e67338fe1f659d14, []int{13} 579 } 580 581 func (m *WatchResponse) XXX_Unmarshal(b []byte) error { 582 return xxx_messageInfo_WatchResponse.Unmarshal(m, b) 583 } 584 func (m *WatchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 585 return xxx_messageInfo_WatchResponse.Marshal(b, m, deterministic) 586 } 587 func (m *WatchResponse) XXX_Merge(src proto.Message) { 588 xxx_messageInfo_WatchResponse.Merge(m, src) 589 } 590 func (m *WatchResponse) XXX_Size() int { 591 return xxx_messageInfo_WatchResponse.Size(m) 592 } 593 func (m *WatchResponse) XXX_DiscardUnknown() { 594 xxx_messageInfo_WatchResponse.DiscardUnknown(m) 595 } 596 597 var xxx_messageInfo_WatchResponse proto.InternalMessageInfo 598 599 func (m *WatchResponse) GetNamespace() string { 600 if m != nil { 601 return m.Namespace 602 } 603 return "" 604 } 605 606 func (m *WatchResponse) GetChangeSet() *ChangeSet { 607 if m != nil { 608 return m.ChangeSet 609 } 610 return nil 611 } 612 613 func init() { 614 proto.RegisterType((*ChangeSet)(nil), "ChangeSet") 615 proto.RegisterType((*Change)(nil), "Change") 616 proto.RegisterType((*CreateRequest)(nil), "CreateRequest") 617 proto.RegisterType((*CreateResponse)(nil), "CreateResponse") 618 proto.RegisterType((*UpdateRequest)(nil), "UpdateRequest") 619 proto.RegisterType((*UpdateResponse)(nil), "UpdateResponse") 620 proto.RegisterType((*DeleteRequest)(nil), "DeleteRequest") 621 proto.RegisterType((*DeleteResponse)(nil), "DeleteResponse") 622 proto.RegisterType((*ListRequest)(nil), "ListRequest") 623 proto.RegisterType((*ListResponse)(nil), "ListResponse") 624 proto.RegisterType((*ReadRequest)(nil), "ReadRequest") 625 proto.RegisterType((*ReadResponse)(nil), "ReadResponse") 626 proto.RegisterType((*WatchRequest)(nil), "WatchRequest") 627 proto.RegisterType((*WatchResponse)(nil), "WatchResponse") 628 } 629 630 func init() { 631 proto.RegisterFile("config/source/service/proto/service.proto", fileDescriptor_e67338fe1f659d14) 632 } 633 634 var fileDescriptor_e67338fe1f659d14 = []byte{ 635 // 434 bytes of a gzipped FileDescriptorProto 636 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x94, 0xcd, 0x8e, 0xd3, 0x30, 637 0x10, 0xc7, 0x9b, 0xb6, 0x1b, 0xe8, 0xb4, 0x49, 0xd1, 0x1c, 0x50, 0x14, 0x21, 0x51, 0x59, 0x42, 638 0x2a, 0x20, 0xb9, 0xab, 0xf2, 0x00, 0x20, 0x95, 0x23, 0xa7, 0x20, 0xb4, 0x67, 0xe3, 0xce, 0x6e, 639 0x23, 0x36, 0x1f, 0xc4, 0xce, 0xbe, 0xc3, 0xbe, 0x35, 0xf2, 0x47, 0x36, 0x49, 0x0f, 0x95, 0xca, 640 0xcd, 0xf3, 0xf5, 0x9f, 0xb1, 0x7f, 0x93, 0xc0, 0x47, 0x59, 0x95, 0xf7, 0xf9, 0xc3, 0x4e, 0x55, 641 0x6d, 0x23, 0x69, 0xa7, 0xa8, 0x79, 0xca, 0x25, 0xed, 0xea, 0xa6, 0xd2, 0x55, 0x67, 0x71, 0x6b, 642 0xb1, 0xe7, 0x00, 0x16, 0x87, 0x93, 0x28, 0x1f, 0xe8, 0x27, 0x69, 0x44, 0x98, 0x1f, 0x85, 0x16, 643 0x49, 0xb0, 0x09, 0xb6, 0x8b, 0xcc, 0x9e, 0x31, 0x85, 0xd7, 0xf2, 0x44, 0xf2, 0x8f, 0x6a, 0x8b, 644 0x64, 0x6a, 0xfd, 0x2f, 0x36, 0xbe, 0x85, 0xf0, 0xbe, 0x6a, 0x0a, 0xa1, 0x93, 0x99, 0x8d, 0x78, 645 0xcb, 0xf8, 0x5d, 0xef, 0x64, 0xee, 0xfc, 0xce, 0xc2, 0x77, 0xb0, 0xd0, 0x79, 0x41, 0x4a, 0x8b, 646 0xa2, 0x4e, 0x6e, 0x36, 0xc1, 0x76, 0x96, 0xf5, 0x0e, 0x76, 0x84, 0xd0, 0x8d, 0x62, 0xf2, 0x4a, 647 0x51, 0x90, 0xaa, 0x85, 0x24, 0x3f, 0x4c, 0xef, 0x30, 0x53, 0xd6, 0x42, 0x9f, 0xfc, 0x34, 0xf6, 648 0x8c, 0x5b, 0x58, 0xc8, 0xee, 0x1a, 0x76, 0x98, 0xe5, 0x1e, 0xf8, 0xcb, 0xc5, 0xb2, 0x3e, 0xc8, 649 0x6e, 0x21, 0x3a, 0x34, 0x24, 0x34, 0x65, 0xf4, 0xb7, 0x25, 0xa5, 0xf1, 0x3d, 0x84, 0x2e, 0x6a, 650 0x3b, 0x2d, 0xf7, 0xaf, 0x7c, 0x5d, 0xe6, 0xdd, 0xec, 0x0d, 0xc4, 0x5d, 0x85, 0xaa, 0xab, 0x52, 651 0x91, 0xd1, 0xf8, 0x55, 0x1f, 0xaf, 0xd4, 0xe8, 0x2a, 0x7a, 0x8d, 0xef, 0xf4, 0x48, 0xd7, 0x69, 652 0x74, 0x15, 0x5e, 0x23, 0x82, 0xe5, 0x8f, 0x5c, 0x69, 0xaf, 0xc0, 0x76, 0xb0, 0x72, 0xa6, 0x0b, 653 0x1b, 0xc5, 0x27, 0xf1, 0xd8, 0x92, 0x4a, 0x82, 0xcd, 0x6c, 0xa4, 0xe8, 0xdc, 0xec, 0x2b, 0x2c, 654 0x33, 0x12, 0xc7, 0x6e, 0x82, 0xab, 0x9f, 0xdd, 0x74, 0x74, 0x02, 0x7d, 0xc7, 0xcb, 0x77, 0xf8, 655 0x06, 0xab, 0x3b, 0xa1, 0xe5, 0xe9, 0xff, 0x5b, 0xde, 0x41, 0xe4, 0x15, 0x7c, 0xcf, 0xcb, 0x12, 656 0xa3, 0xc5, 0x98, 0x5e, 0x58, 0x8c, 0xfd, 0xf3, 0x14, 0xc2, 0x83, 0xfd, 0x70, 0xf0, 0x33, 0x84, 657 0x8e, 0x38, 0xc6, 0x7c, 0xb4, 0x2c, 0xe9, 0x9a, 0x9f, 0xad, 0xc2, 0xc4, 0x24, 0x3b, 0xb4, 0x18, 658 0xf3, 0xd1, 0x56, 0xa4, 0x6b, 0x7e, 0xc6, 0xdc, 0x26, 0x3b, 0x86, 0x18, 0xf3, 0x11, 0xfe, 0x74, 659 0xcd, 0xcf, 0xe0, 0x4e, 0xf0, 0x03, 0xcc, 0x0d, 0x4f, 0x5c, 0xf1, 0x01, 0xe5, 0x34, 0xe2, 0x43, 660 0xc8, 0x2e, 0xcd, 0x40, 0xc0, 0x15, 0x1f, 0xc0, 0x4c, 0x23, 0x3e, 0x24, 0xc3, 0x26, 0xf8, 0x09, 661 0x6e, 0xec, 0xc3, 0x61, 0xc4, 0x87, 0x08, 0xd2, 0x98, 0x8f, 0xde, 0x93, 0x4d, 0x6e, 0x83, 0xdf, 662 0xa1, 0xfd, 0x3b, 0x7c, 0xf9, 0x17, 0x00, 0x00, 0xff, 0xff, 0x05, 0xbb, 0xfd, 0xc1, 0x4a, 0x04, 663 0x00, 0x00, 664 } 665 666 // Reference imports to suppress errors if they are not otherwise used. 667 var _ context.Context 668 var _ grpc.ClientConn 669 670 // This is a compile-time assertion to ensure that this generated file 671 // is compatible with the grpc package it is being compiled against. 672 const _ = grpc.SupportPackageIsVersion4 673 674 // ConfigClient is the client API for Config service. 675 // 676 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 677 type ConfigClient interface { 678 Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error) 679 Update(ctx context.Context, in *UpdateRequest, opts ...grpc.CallOption) (*UpdateResponse, error) 680 Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error) 681 List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error) 682 Read(ctx context.Context, in *ReadRequest, opts ...grpc.CallOption) (*ReadResponse, error) 683 Watch(ctx context.Context, in *WatchRequest, opts ...grpc.CallOption) (Config_WatchClient, error) 684 } 685 686 type configClient struct { 687 cc *grpc.ClientConn 688 } 689 690 func NewConfigClient(cc *grpc.ClientConn) ConfigClient { 691 return &configClient{cc} 692 } 693 694 func (c *configClient) Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error) { 695 out := new(CreateResponse) 696 err := c.cc.Invoke(ctx, "/Config/Create", in, out, opts...) 697 if err != nil { 698 return nil, err 699 } 700 return out, nil 701 } 702 703 func (c *configClient) Update(ctx context.Context, in *UpdateRequest, opts ...grpc.CallOption) (*UpdateResponse, error) { 704 out := new(UpdateResponse) 705 err := c.cc.Invoke(ctx, "/Config/Update", in, out, opts...) 706 if err != nil { 707 return nil, err 708 } 709 return out, nil 710 } 711 712 func (c *configClient) Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error) { 713 out := new(DeleteResponse) 714 err := c.cc.Invoke(ctx, "/Config/Delete", in, out, opts...) 715 if err != nil { 716 return nil, err 717 } 718 return out, nil 719 } 720 721 func (c *configClient) List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error) { 722 out := new(ListResponse) 723 err := c.cc.Invoke(ctx, "/Config/List", in, out, opts...) 724 if err != nil { 725 return nil, err 726 } 727 return out, nil 728 } 729 730 func (c *configClient) Read(ctx context.Context, in *ReadRequest, opts ...grpc.CallOption) (*ReadResponse, error) { 731 out := new(ReadResponse) 732 err := c.cc.Invoke(ctx, "/Config/Read", in, out, opts...) 733 if err != nil { 734 return nil, err 735 } 736 return out, nil 737 } 738 739 func (c *configClient) Watch(ctx context.Context, in *WatchRequest, opts ...grpc.CallOption) (Config_WatchClient, error) { 740 stream, err := c.cc.NewStream(ctx, &_Config_serviceDesc.Streams[0], "/Config/Watch", opts...) 741 if err != nil { 742 return nil, err 743 } 744 x := &configWatchClient{stream} 745 if err := x.ClientStream.SendMsg(in); err != nil { 746 return nil, err 747 } 748 if err := x.ClientStream.CloseSend(); err != nil { 749 return nil, err 750 } 751 return x, nil 752 } 753 754 type Config_WatchClient interface { 755 Recv() (*WatchResponse, error) 756 grpc.ClientStream 757 } 758 759 type configWatchClient struct { 760 grpc.ClientStream 761 } 762 763 func (x *configWatchClient) Recv() (*WatchResponse, error) { 764 m := new(WatchResponse) 765 if err := x.ClientStream.RecvMsg(m); err != nil { 766 return nil, err 767 } 768 return m, nil 769 } 770 771 // ConfigServer is the server API for Config service. 772 type ConfigServer interface { 773 Create(context.Context, *CreateRequest) (*CreateResponse, error) 774 Update(context.Context, *UpdateRequest) (*UpdateResponse, error) 775 Delete(context.Context, *DeleteRequest) (*DeleteResponse, error) 776 List(context.Context, *ListRequest) (*ListResponse, error) 777 Read(context.Context, *ReadRequest) (*ReadResponse, error) 778 Watch(*WatchRequest, Config_WatchServer) error 779 } 780 781 // UnimplementedConfigServer can be embedded to have forward compatible implementations. 782 type UnimplementedConfigServer struct { 783 } 784 785 func (*UnimplementedConfigServer) Create(ctx context.Context, req *CreateRequest) (*CreateResponse, error) { 786 return nil, status.Errorf(codes.Unimplemented, "method Create not implemented") 787 } 788 func (*UnimplementedConfigServer) Update(ctx context.Context, req *UpdateRequest) (*UpdateResponse, error) { 789 return nil, status.Errorf(codes.Unimplemented, "method Update not implemented") 790 } 791 func (*UnimplementedConfigServer) Delete(ctx context.Context, req *DeleteRequest) (*DeleteResponse, error) { 792 return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented") 793 } 794 func (*UnimplementedConfigServer) List(ctx context.Context, req *ListRequest) (*ListResponse, error) { 795 return nil, status.Errorf(codes.Unimplemented, "method List not implemented") 796 } 797 func (*UnimplementedConfigServer) Read(ctx context.Context, req *ReadRequest) (*ReadResponse, error) { 798 return nil, status.Errorf(codes.Unimplemented, "method Read not implemented") 799 } 800 func (*UnimplementedConfigServer) Watch(req *WatchRequest, srv Config_WatchServer) error { 801 return status.Errorf(codes.Unimplemented, "method Watch not implemented") 802 } 803 804 func RegisterConfigServer(s *grpc.Server, srv ConfigServer) { 805 s.RegisterService(&_Config_serviceDesc, srv) 806 } 807 808 func _Config_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 809 in := new(CreateRequest) 810 if err := dec(in); err != nil { 811 return nil, err 812 } 813 if interceptor == nil { 814 return srv.(ConfigServer).Create(ctx, in) 815 } 816 info := &grpc.UnaryServerInfo{ 817 Server: srv, 818 FullMethod: "/Config/Create", 819 } 820 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 821 return srv.(ConfigServer).Create(ctx, req.(*CreateRequest)) 822 } 823 return interceptor(ctx, in, info, handler) 824 } 825 826 func _Config_Update_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 827 in := new(UpdateRequest) 828 if err := dec(in); err != nil { 829 return nil, err 830 } 831 if interceptor == nil { 832 return srv.(ConfigServer).Update(ctx, in) 833 } 834 info := &grpc.UnaryServerInfo{ 835 Server: srv, 836 FullMethod: "/Config/Update", 837 } 838 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 839 return srv.(ConfigServer).Update(ctx, req.(*UpdateRequest)) 840 } 841 return interceptor(ctx, in, info, handler) 842 } 843 844 func _Config_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 845 in := new(DeleteRequest) 846 if err := dec(in); err != nil { 847 return nil, err 848 } 849 if interceptor == nil { 850 return srv.(ConfigServer).Delete(ctx, in) 851 } 852 info := &grpc.UnaryServerInfo{ 853 Server: srv, 854 FullMethod: "/Config/Delete", 855 } 856 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 857 return srv.(ConfigServer).Delete(ctx, req.(*DeleteRequest)) 858 } 859 return interceptor(ctx, in, info, handler) 860 } 861 862 func _Config_List_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 863 in := new(ListRequest) 864 if err := dec(in); err != nil { 865 return nil, err 866 } 867 if interceptor == nil { 868 return srv.(ConfigServer).List(ctx, in) 869 } 870 info := &grpc.UnaryServerInfo{ 871 Server: srv, 872 FullMethod: "/Config/List", 873 } 874 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 875 return srv.(ConfigServer).List(ctx, req.(*ListRequest)) 876 } 877 return interceptor(ctx, in, info, handler) 878 } 879 880 func _Config_Read_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 881 in := new(ReadRequest) 882 if err := dec(in); err != nil { 883 return nil, err 884 } 885 if interceptor == nil { 886 return srv.(ConfigServer).Read(ctx, in) 887 } 888 info := &grpc.UnaryServerInfo{ 889 Server: srv, 890 FullMethod: "/Config/Read", 891 } 892 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 893 return srv.(ConfigServer).Read(ctx, req.(*ReadRequest)) 894 } 895 return interceptor(ctx, in, info, handler) 896 } 897 898 func _Config_Watch_Handler(srv interface{}, stream grpc.ServerStream) error { 899 m := new(WatchRequest) 900 if err := stream.RecvMsg(m); err != nil { 901 return err 902 } 903 return srv.(ConfigServer).Watch(m, &configWatchServer{stream}) 904 } 905 906 type Config_WatchServer interface { 907 Send(*WatchResponse) error 908 grpc.ServerStream 909 } 910 911 type configWatchServer struct { 912 grpc.ServerStream 913 } 914 915 func (x *configWatchServer) Send(m *WatchResponse) error { 916 return x.ServerStream.SendMsg(m) 917 } 918 919 var _Config_serviceDesc = grpc.ServiceDesc{ 920 ServiceName: "Config", 921 HandlerType: (*ConfigServer)(nil), 922 Methods: []grpc.MethodDesc{ 923 { 924 MethodName: "Create", 925 Handler: _Config_Create_Handler, 926 }, 927 { 928 MethodName: "Update", 929 Handler: _Config_Update_Handler, 930 }, 931 { 932 MethodName: "Delete", 933 Handler: _Config_Delete_Handler, 934 }, 935 { 936 MethodName: "List", 937 Handler: _Config_List_Handler, 938 }, 939 { 940 MethodName: "Read", 941 Handler: _Config_Read_Handler, 942 }, 943 }, 944 Streams: []grpc.StreamDesc{ 945 { 946 StreamName: "Watch", 947 Handler: _Config_Watch_Handler, 948 ServerStreams: true, 949 }, 950 }, 951 Metadata: "config/source/service/proto/service.proto", 952 }