github.com/tickoalcantara12/micro/v3@v3.0.0-20221007104245-9d75b9bcbab9/proto/config/config.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // source: config/config.proto 3 4 package config 5 6 import ( 7 context "context" 8 fmt "fmt" 9 proto "github.com/golang/protobuf/proto" 10 grpc "google.golang.org/grpc" 11 math "math" 12 ) 13 14 // Reference imports to suppress errors if they are not otherwise used. 15 var _ = proto.Marshal 16 var _ = fmt.Errorf 17 var _ = math.Inf 18 19 // This is a compile-time assertion to ensure that this generated file 20 // is compatible with the proto package it is being compiled against. 21 // A compilation error at this line likely means your copy of the 22 // proto package needs to be updated. 23 const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package 24 25 type Value struct { 26 Data string `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` 27 Format string `protobuf:"bytes,2,opt,name=format,proto3" json:"format,omitempty"` 28 XXX_NoUnkeyedLiteral struct{} `json:"-"` 29 XXX_unrecognized []byte `json:"-"` 30 XXX_sizecache int32 `json:"-"` 31 } 32 33 func (m *Value) Reset() { *m = Value{} } 34 func (m *Value) String() string { return proto.CompactTextString(m) } 35 func (*Value) ProtoMessage() {} 36 func (*Value) Descriptor() ([]byte, []int) { 37 return fileDescriptor_cc332a44e926b360, []int{0} 38 } 39 40 func (m *Value) XXX_Unmarshal(b []byte) error { 41 return xxx_messageInfo_Value.Unmarshal(m, b) 42 } 43 func (m *Value) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 44 return xxx_messageInfo_Value.Marshal(b, m, deterministic) 45 } 46 func (m *Value) XXX_Merge(src proto.Message) { 47 xxx_messageInfo_Value.Merge(m, src) 48 } 49 func (m *Value) XXX_Size() int { 50 return xxx_messageInfo_Value.Size(m) 51 } 52 func (m *Value) XXX_DiscardUnknown() { 53 xxx_messageInfo_Value.DiscardUnknown(m) 54 } 55 56 var xxx_messageInfo_Value proto.InternalMessageInfo 57 58 func (m *Value) GetData() string { 59 if m != nil { 60 return m.Data 61 } 62 return "" 63 } 64 65 func (m *Value) GetFormat() string { 66 if m != nil { 67 return m.Format 68 } 69 return "" 70 } 71 72 type Options struct { 73 // Is it an encrypted value? 74 Secret bool `protobuf:"varint,1,opt,name=secret,proto3" json:"secret,omitempty"` 75 XXX_NoUnkeyedLiteral struct{} `json:"-"` 76 XXX_unrecognized []byte `json:"-"` 77 XXX_sizecache int32 `json:"-"` 78 } 79 80 func (m *Options) Reset() { *m = Options{} } 81 func (m *Options) String() string { return proto.CompactTextString(m) } 82 func (*Options) ProtoMessage() {} 83 func (*Options) Descriptor() ([]byte, []int) { 84 return fileDescriptor_cc332a44e926b360, []int{1} 85 } 86 87 func (m *Options) XXX_Unmarshal(b []byte) error { 88 return xxx_messageInfo_Options.Unmarshal(m, b) 89 } 90 func (m *Options) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 91 return xxx_messageInfo_Options.Marshal(b, m, deterministic) 92 } 93 func (m *Options) XXX_Merge(src proto.Message) { 94 xxx_messageInfo_Options.Merge(m, src) 95 } 96 func (m *Options) XXX_Size() int { 97 return xxx_messageInfo_Options.Size(m) 98 } 99 func (m *Options) XXX_DiscardUnknown() { 100 xxx_messageInfo_Options.DiscardUnknown(m) 101 } 102 103 var xxx_messageInfo_Options proto.InternalMessageInfo 104 105 func (m *Options) GetSecret() bool { 106 if m != nil { 107 return m.Secret 108 } 109 return false 110 } 111 112 type SetRequest struct { 113 Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` 114 Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` 115 Value *Value `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` 116 Options *Options `protobuf:"bytes,4,opt,name=options,proto3" json:"options,omitempty"` 117 XXX_NoUnkeyedLiteral struct{} `json:"-"` 118 XXX_unrecognized []byte `json:"-"` 119 XXX_sizecache int32 `json:"-"` 120 } 121 122 func (m *SetRequest) Reset() { *m = SetRequest{} } 123 func (m *SetRequest) String() string { return proto.CompactTextString(m) } 124 func (*SetRequest) ProtoMessage() {} 125 func (*SetRequest) Descriptor() ([]byte, []int) { 126 return fileDescriptor_cc332a44e926b360, []int{2} 127 } 128 129 func (m *SetRequest) XXX_Unmarshal(b []byte) error { 130 return xxx_messageInfo_SetRequest.Unmarshal(m, b) 131 } 132 func (m *SetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 133 return xxx_messageInfo_SetRequest.Marshal(b, m, deterministic) 134 } 135 func (m *SetRequest) XXX_Merge(src proto.Message) { 136 xxx_messageInfo_SetRequest.Merge(m, src) 137 } 138 func (m *SetRequest) XXX_Size() int { 139 return xxx_messageInfo_SetRequest.Size(m) 140 } 141 func (m *SetRequest) XXX_DiscardUnknown() { 142 xxx_messageInfo_SetRequest.DiscardUnknown(m) 143 } 144 145 var xxx_messageInfo_SetRequest proto.InternalMessageInfo 146 147 func (m *SetRequest) GetNamespace() string { 148 if m != nil { 149 return m.Namespace 150 } 151 return "" 152 } 153 154 func (m *SetRequest) GetPath() string { 155 if m != nil { 156 return m.Path 157 } 158 return "" 159 } 160 161 func (m *SetRequest) GetValue() *Value { 162 if m != nil { 163 return m.Value 164 } 165 return nil 166 } 167 168 func (m *SetRequest) GetOptions() *Options { 169 if m != nil { 170 return m.Options 171 } 172 return nil 173 } 174 175 type SetResponse struct { 176 XXX_NoUnkeyedLiteral struct{} `json:"-"` 177 XXX_unrecognized []byte `json:"-"` 178 XXX_sizecache int32 `json:"-"` 179 } 180 181 func (m *SetResponse) Reset() { *m = SetResponse{} } 182 func (m *SetResponse) String() string { return proto.CompactTextString(m) } 183 func (*SetResponse) ProtoMessage() {} 184 func (*SetResponse) Descriptor() ([]byte, []int) { 185 return fileDescriptor_cc332a44e926b360, []int{3} 186 } 187 188 func (m *SetResponse) XXX_Unmarshal(b []byte) error { 189 return xxx_messageInfo_SetResponse.Unmarshal(m, b) 190 } 191 func (m *SetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 192 return xxx_messageInfo_SetResponse.Marshal(b, m, deterministic) 193 } 194 func (m *SetResponse) XXX_Merge(src proto.Message) { 195 xxx_messageInfo_SetResponse.Merge(m, src) 196 } 197 func (m *SetResponse) XXX_Size() int { 198 return xxx_messageInfo_SetResponse.Size(m) 199 } 200 func (m *SetResponse) XXX_DiscardUnknown() { 201 xxx_messageInfo_SetResponse.DiscardUnknown(m) 202 } 203 204 var xxx_messageInfo_SetResponse proto.InternalMessageInfo 205 206 type DeleteRequest struct { 207 Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` 208 Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` 209 XXX_NoUnkeyedLiteral struct{} `json:"-"` 210 XXX_unrecognized []byte `json:"-"` 211 XXX_sizecache int32 `json:"-"` 212 } 213 214 func (m *DeleteRequest) Reset() { *m = DeleteRequest{} } 215 func (m *DeleteRequest) String() string { return proto.CompactTextString(m) } 216 func (*DeleteRequest) ProtoMessage() {} 217 func (*DeleteRequest) Descriptor() ([]byte, []int) { 218 return fileDescriptor_cc332a44e926b360, []int{4} 219 } 220 221 func (m *DeleteRequest) XXX_Unmarshal(b []byte) error { 222 return xxx_messageInfo_DeleteRequest.Unmarshal(m, b) 223 } 224 func (m *DeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 225 return xxx_messageInfo_DeleteRequest.Marshal(b, m, deterministic) 226 } 227 func (m *DeleteRequest) XXX_Merge(src proto.Message) { 228 xxx_messageInfo_DeleteRequest.Merge(m, src) 229 } 230 func (m *DeleteRequest) XXX_Size() int { 231 return xxx_messageInfo_DeleteRequest.Size(m) 232 } 233 func (m *DeleteRequest) XXX_DiscardUnknown() { 234 xxx_messageInfo_DeleteRequest.DiscardUnknown(m) 235 } 236 237 var xxx_messageInfo_DeleteRequest proto.InternalMessageInfo 238 239 func (m *DeleteRequest) GetNamespace() string { 240 if m != nil { 241 return m.Namespace 242 } 243 return "" 244 } 245 246 func (m *DeleteRequest) GetPath() string { 247 if m != nil { 248 return m.Path 249 } 250 return "" 251 } 252 253 type DeleteResponse struct { 254 XXX_NoUnkeyedLiteral struct{} `json:"-"` 255 XXX_unrecognized []byte `json:"-"` 256 XXX_sizecache int32 `json:"-"` 257 } 258 259 func (m *DeleteResponse) Reset() { *m = DeleteResponse{} } 260 func (m *DeleteResponse) String() string { return proto.CompactTextString(m) } 261 func (*DeleteResponse) ProtoMessage() {} 262 func (*DeleteResponse) Descriptor() ([]byte, []int) { 263 return fileDescriptor_cc332a44e926b360, []int{5} 264 } 265 266 func (m *DeleteResponse) XXX_Unmarshal(b []byte) error { 267 return xxx_messageInfo_DeleteResponse.Unmarshal(m, b) 268 } 269 func (m *DeleteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 270 return xxx_messageInfo_DeleteResponse.Marshal(b, m, deterministic) 271 } 272 func (m *DeleteResponse) XXX_Merge(src proto.Message) { 273 xxx_messageInfo_DeleteResponse.Merge(m, src) 274 } 275 func (m *DeleteResponse) XXX_Size() int { 276 return xxx_messageInfo_DeleteResponse.Size(m) 277 } 278 func (m *DeleteResponse) XXX_DiscardUnknown() { 279 xxx_messageInfo_DeleteResponse.DiscardUnknown(m) 280 } 281 282 var xxx_messageInfo_DeleteResponse proto.InternalMessageInfo 283 284 type GetRequest struct { 285 Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` 286 Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` 287 Options *Options `protobuf:"bytes,3,opt,name=options,proto3" json:"options,omitempty"` 288 XXX_NoUnkeyedLiteral struct{} `json:"-"` 289 XXX_unrecognized []byte `json:"-"` 290 XXX_sizecache int32 `json:"-"` 291 } 292 293 func (m *GetRequest) Reset() { *m = GetRequest{} } 294 func (m *GetRequest) String() string { return proto.CompactTextString(m) } 295 func (*GetRequest) ProtoMessage() {} 296 func (*GetRequest) Descriptor() ([]byte, []int) { 297 return fileDescriptor_cc332a44e926b360, []int{6} 298 } 299 300 func (m *GetRequest) XXX_Unmarshal(b []byte) error { 301 return xxx_messageInfo_GetRequest.Unmarshal(m, b) 302 } 303 func (m *GetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 304 return xxx_messageInfo_GetRequest.Marshal(b, m, deterministic) 305 } 306 func (m *GetRequest) XXX_Merge(src proto.Message) { 307 xxx_messageInfo_GetRequest.Merge(m, src) 308 } 309 func (m *GetRequest) XXX_Size() int { 310 return xxx_messageInfo_GetRequest.Size(m) 311 } 312 func (m *GetRequest) XXX_DiscardUnknown() { 313 xxx_messageInfo_GetRequest.DiscardUnknown(m) 314 } 315 316 var xxx_messageInfo_GetRequest proto.InternalMessageInfo 317 318 func (m *GetRequest) GetNamespace() string { 319 if m != nil { 320 return m.Namespace 321 } 322 return "" 323 } 324 325 func (m *GetRequest) GetPath() string { 326 if m != nil { 327 return m.Path 328 } 329 return "" 330 } 331 332 func (m *GetRequest) GetOptions() *Options { 333 if m != nil { 334 return m.Options 335 } 336 return nil 337 } 338 339 type GetResponse struct { 340 Value *Value `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` 341 XXX_NoUnkeyedLiteral struct{} `json:"-"` 342 XXX_unrecognized []byte `json:"-"` 343 XXX_sizecache int32 `json:"-"` 344 } 345 346 func (m *GetResponse) Reset() { *m = GetResponse{} } 347 func (m *GetResponse) String() string { return proto.CompactTextString(m) } 348 func (*GetResponse) ProtoMessage() {} 349 func (*GetResponse) Descriptor() ([]byte, []int) { 350 return fileDescriptor_cc332a44e926b360, []int{7} 351 } 352 353 func (m *GetResponse) XXX_Unmarshal(b []byte) error { 354 return xxx_messageInfo_GetResponse.Unmarshal(m, b) 355 } 356 func (m *GetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 357 return xxx_messageInfo_GetResponse.Marshal(b, m, deterministic) 358 } 359 func (m *GetResponse) XXX_Merge(src proto.Message) { 360 xxx_messageInfo_GetResponse.Merge(m, src) 361 } 362 func (m *GetResponse) XXX_Size() int { 363 return xxx_messageInfo_GetResponse.Size(m) 364 } 365 func (m *GetResponse) XXX_DiscardUnknown() { 366 xxx_messageInfo_GetResponse.DiscardUnknown(m) 367 } 368 369 var xxx_messageInfo_GetResponse proto.InternalMessageInfo 370 371 func (m *GetResponse) GetValue() *Value { 372 if m != nil { 373 return m.Value 374 } 375 return nil 376 } 377 378 type ReadRequest struct { 379 Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` 380 Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` 381 XXX_NoUnkeyedLiteral struct{} `json:"-"` 382 XXX_unrecognized []byte `json:"-"` 383 XXX_sizecache int32 `json:"-"` 384 } 385 386 func (m *ReadRequest) Reset() { *m = ReadRequest{} } 387 func (m *ReadRequest) String() string { return proto.CompactTextString(m) } 388 func (*ReadRequest) ProtoMessage() {} 389 func (*ReadRequest) Descriptor() ([]byte, []int) { 390 return fileDescriptor_cc332a44e926b360, []int{8} 391 } 392 393 func (m *ReadRequest) XXX_Unmarshal(b []byte) error { 394 return xxx_messageInfo_ReadRequest.Unmarshal(m, b) 395 } 396 func (m *ReadRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 397 return xxx_messageInfo_ReadRequest.Marshal(b, m, deterministic) 398 } 399 func (m *ReadRequest) XXX_Merge(src proto.Message) { 400 xxx_messageInfo_ReadRequest.Merge(m, src) 401 } 402 func (m *ReadRequest) XXX_Size() int { 403 return xxx_messageInfo_ReadRequest.Size(m) 404 } 405 func (m *ReadRequest) XXX_DiscardUnknown() { 406 xxx_messageInfo_ReadRequest.DiscardUnknown(m) 407 } 408 409 var xxx_messageInfo_ReadRequest proto.InternalMessageInfo 410 411 func (m *ReadRequest) GetNamespace() string { 412 if m != nil { 413 return m.Namespace 414 } 415 return "" 416 } 417 418 func (m *ReadRequest) GetPath() string { 419 if m != nil { 420 return m.Path 421 } 422 return "" 423 } 424 425 type ReadResponse struct { 426 Change *Change `protobuf:"bytes,1,opt,name=change,proto3" json:"change,omitempty"` 427 XXX_NoUnkeyedLiteral struct{} `json:"-"` 428 XXX_unrecognized []byte `json:"-"` 429 XXX_sizecache int32 `json:"-"` 430 } 431 432 func (m *ReadResponse) Reset() { *m = ReadResponse{} } 433 func (m *ReadResponse) String() string { return proto.CompactTextString(m) } 434 func (*ReadResponse) ProtoMessage() {} 435 func (*ReadResponse) Descriptor() ([]byte, []int) { 436 return fileDescriptor_cc332a44e926b360, []int{9} 437 } 438 439 func (m *ReadResponse) XXX_Unmarshal(b []byte) error { 440 return xxx_messageInfo_ReadResponse.Unmarshal(m, b) 441 } 442 func (m *ReadResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 443 return xxx_messageInfo_ReadResponse.Marshal(b, m, deterministic) 444 } 445 func (m *ReadResponse) XXX_Merge(src proto.Message) { 446 xxx_messageInfo_ReadResponse.Merge(m, src) 447 } 448 func (m *ReadResponse) XXX_Size() int { 449 return xxx_messageInfo_ReadResponse.Size(m) 450 } 451 func (m *ReadResponse) XXX_DiscardUnknown() { 452 xxx_messageInfo_ReadResponse.DiscardUnknown(m) 453 } 454 455 var xxx_messageInfo_ReadResponse proto.InternalMessageInfo 456 457 func (m *ReadResponse) GetChange() *Change { 458 if m != nil { 459 return m.Change 460 } 461 return nil 462 } 463 464 type Change struct { 465 Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` 466 Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` 467 ChangeSet *ChangeSet `protobuf:"bytes,3,opt,name=changeSet,proto3" json:"changeSet,omitempty"` 468 XXX_NoUnkeyedLiteral struct{} `json:"-"` 469 XXX_unrecognized []byte `json:"-"` 470 XXX_sizecache int32 `json:"-"` 471 } 472 473 func (m *Change) Reset() { *m = Change{} } 474 func (m *Change) String() string { return proto.CompactTextString(m) } 475 func (*Change) ProtoMessage() {} 476 func (*Change) Descriptor() ([]byte, []int) { 477 return fileDescriptor_cc332a44e926b360, []int{10} 478 } 479 480 func (m *Change) XXX_Unmarshal(b []byte) error { 481 return xxx_messageInfo_Change.Unmarshal(m, b) 482 } 483 func (m *Change) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 484 return xxx_messageInfo_Change.Marshal(b, m, deterministic) 485 } 486 func (m *Change) XXX_Merge(src proto.Message) { 487 xxx_messageInfo_Change.Merge(m, src) 488 } 489 func (m *Change) XXX_Size() int { 490 return xxx_messageInfo_Change.Size(m) 491 } 492 func (m *Change) XXX_DiscardUnknown() { 493 xxx_messageInfo_Change.DiscardUnknown(m) 494 } 495 496 var xxx_messageInfo_Change proto.InternalMessageInfo 497 498 func (m *Change) GetNamespace() string { 499 if m != nil { 500 return m.Namespace 501 } 502 return "" 503 } 504 505 func (m *Change) GetPath() string { 506 if m != nil { 507 return m.Path 508 } 509 return "" 510 } 511 512 func (m *Change) GetChangeSet() *ChangeSet { 513 if m != nil { 514 return m.ChangeSet 515 } 516 return nil 517 } 518 519 type ChangeSet struct { 520 Data string `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` 521 Checksum string `protobuf:"bytes,2,opt,name=checksum,proto3" json:"checksum,omitempty"` 522 Format string `protobuf:"bytes,3,opt,name=format,proto3" json:"format,omitempty"` 523 Source string `protobuf:"bytes,4,opt,name=source,proto3" json:"source,omitempty"` 524 Timestamp int64 `protobuf:"varint,5,opt,name=timestamp,proto3" json:"timestamp,omitempty"` 525 XXX_NoUnkeyedLiteral struct{} `json:"-"` 526 XXX_unrecognized []byte `json:"-"` 527 XXX_sizecache int32 `json:"-"` 528 } 529 530 func (m *ChangeSet) Reset() { *m = ChangeSet{} } 531 func (m *ChangeSet) String() string { return proto.CompactTextString(m) } 532 func (*ChangeSet) ProtoMessage() {} 533 func (*ChangeSet) Descriptor() ([]byte, []int) { 534 return fileDescriptor_cc332a44e926b360, []int{11} 535 } 536 537 func (m *ChangeSet) XXX_Unmarshal(b []byte) error { 538 return xxx_messageInfo_ChangeSet.Unmarshal(m, b) 539 } 540 func (m *ChangeSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 541 return xxx_messageInfo_ChangeSet.Marshal(b, m, deterministic) 542 } 543 func (m *ChangeSet) XXX_Merge(src proto.Message) { 544 xxx_messageInfo_ChangeSet.Merge(m, src) 545 } 546 func (m *ChangeSet) XXX_Size() int { 547 return xxx_messageInfo_ChangeSet.Size(m) 548 } 549 func (m *ChangeSet) XXX_DiscardUnknown() { 550 xxx_messageInfo_ChangeSet.DiscardUnknown(m) 551 } 552 553 var xxx_messageInfo_ChangeSet proto.InternalMessageInfo 554 555 func (m *ChangeSet) GetData() string { 556 if m != nil { 557 return m.Data 558 } 559 return "" 560 } 561 562 func (m *ChangeSet) GetChecksum() string { 563 if m != nil { 564 return m.Checksum 565 } 566 return "" 567 } 568 569 func (m *ChangeSet) GetFormat() string { 570 if m != nil { 571 return m.Format 572 } 573 return "" 574 } 575 576 func (m *ChangeSet) GetSource() string { 577 if m != nil { 578 return m.Source 579 } 580 return "" 581 } 582 583 func (m *ChangeSet) GetTimestamp() int64 { 584 if m != nil { 585 return m.Timestamp 586 } 587 return 0 588 } 589 590 func init() { 591 proto.RegisterType((*Value)(nil), "config.Value") 592 proto.RegisterType((*Options)(nil), "config.Options") 593 proto.RegisterType((*SetRequest)(nil), "config.SetRequest") 594 proto.RegisterType((*SetResponse)(nil), "config.SetResponse") 595 proto.RegisterType((*DeleteRequest)(nil), "config.DeleteRequest") 596 proto.RegisterType((*DeleteResponse)(nil), "config.DeleteResponse") 597 proto.RegisterType((*GetRequest)(nil), "config.GetRequest") 598 proto.RegisterType((*GetResponse)(nil), "config.GetResponse") 599 proto.RegisterType((*ReadRequest)(nil), "config.ReadRequest") 600 proto.RegisterType((*ReadResponse)(nil), "config.ReadResponse") 601 proto.RegisterType((*Change)(nil), "config.Change") 602 proto.RegisterType((*ChangeSet)(nil), "config.ChangeSet") 603 } 604 605 func init() { proto.RegisterFile("config/config.proto", fileDescriptor_cc332a44e926b360) } 606 607 var fileDescriptor_cc332a44e926b360 = []byte{ 608 // 465 bytes of a gzipped FileDescriptorProto 609 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x54, 0x4d, 0x6f, 0xd3, 0x40, 610 0x10, 0xc5, 0x38, 0x71, 0xeb, 0x09, 0x29, 0xb0, 0x85, 0xca, 0x8a, 0x38, 0x84, 0x45, 0x42, 0xe1, 611 0x40, 0x8c, 0x12, 0x09, 0x09, 0x71, 0x40, 0x50, 0xa4, 0x1c, 0x91, 0xd6, 0x12, 0x07, 0x6e, 0xdb, 612 0xed, 0x34, 0xb1, 0x5a, 0x7b, 0x8d, 0xbd, 0xee, 0x7f, 0xe0, 0xc2, 0x2f, 0xe4, 0xc7, 0xa0, 0xfd, 613 0x8a, 0x6d, 0x54, 0x84, 0x14, 0x2e, 0xb6, 0xe7, 0xed, 0xcc, 0xbc, 0x37, 0xe3, 0xa7, 0x85, 0x53, 614 0x21, 0xcb, 0xab, 0x7c, 0x9b, 0xda, 0xd7, 0xb2, 0xaa, 0xa5, 0x92, 0x24, 0xb2, 0x11, 0x5d, 0xc3, 615 0xf8, 0x2b, 0xbf, 0x69, 0x91, 0x10, 0x18, 0x5d, 0x72, 0xc5, 0x93, 0x60, 0x1e, 0x2c, 0x62, 0x66, 616 0xbe, 0xc9, 0x19, 0x44, 0x57, 0xb2, 0x2e, 0xb8, 0x4a, 0xee, 0x1b, 0xd4, 0x45, 0xf4, 0x39, 0x1c, 617 0x7d, 0xa9, 0x54, 0x2e, 0xcb, 0x46, 0xa7, 0x34, 0x28, 0x6a, 0x54, 0xa6, 0xf0, 0x98, 0xb9, 0x88, 618 0xfe, 0x0c, 0x00, 0x32, 0x54, 0x0c, 0xbf, 0xb7, 0xd8, 0x28, 0xf2, 0x0c, 0xe2, 0x92, 0x17, 0xd8, 619 0x54, 0x5c, 0xa0, 0xa3, 0xe8, 0x00, 0xcd, 0x5d, 0x71, 0xb5, 0x73, 0x2c, 0xe6, 0x9b, 0xbc, 0x80, 620 0xf1, 0xad, 0x16, 0x96, 0x84, 0xf3, 0x60, 0x31, 0x59, 0x4d, 0x97, 0x4e, 0xbe, 0x51, 0xcb, 0xec, 621 0x19, 0x79, 0x05, 0x47, 0xd2, 0x0a, 0x49, 0x46, 0x26, 0xed, 0xa1, 0x4f, 0x73, 0xfa, 0x98, 0x3f, 622 0xa7, 0x53, 0x98, 0x18, 0x3d, 0x4d, 0x25, 0xcb, 0x06, 0xe9, 0x47, 0x98, 0x7e, 0xc6, 0x1b, 0x54, 623 0x78, 0xb0, 0x42, 0xfa, 0x08, 0x4e, 0x7c, 0x0b, 0xd7, 0x34, 0x07, 0xd8, 0xfc, 0xcf, 0xcc, 0xbd, 624 0x71, 0xc2, 0x7f, 0x8c, 0xb3, 0x82, 0xc9, 0xa6, 0x1b, 0xa7, 0xdb, 0x56, 0xf0, 0xf7, 0x6d, 0xd1, 625 0x0f, 0x30, 0x61, 0xc8, 0x2f, 0x0f, 0x9f, 0xf8, 0x2d, 0x3c, 0xb0, 0x0d, 0x1c, 0xeb, 0x4b, 0x88, 626 0xc4, 0x8e, 0x97, 0x5b, 0x4f, 0x7b, 0xe2, 0x69, 0xcf, 0x0d, 0xca, 0xdc, 0x29, 0xbd, 0x86, 0xc8, 627 0x22, 0x07, 0xec, 0x24, 0x85, 0xd8, 0x76, 0xc9, 0x50, 0xb9, 0xad, 0x3c, 0x1e, 0xd2, 0xe8, 0xdf, 628 0xda, 0xe5, 0xd0, 0x1f, 0x01, 0xc4, 0xfb, 0x83, 0x3b, 0x6d, 0x3d, 0x83, 0x63, 0xb1, 0x43, 0x71, 629 0xdd, 0xb4, 0x85, 0xa3, 0xda, 0xc7, 0x3d, 0xcb, 0x87, 0x7d, 0xcb, 0x1b, 0x9f, 0xcb, 0xb6, 0x16, 630 0x68, 0x8c, 0x16, 0x33, 0x17, 0xe9, 0x81, 0x54, 0x5e, 0x60, 0xa3, 0x78, 0x51, 0x25, 0xe3, 0x79, 631 0xb0, 0x08, 0x59, 0x07, 0xac, 0x7e, 0x05, 0x10, 0x9d, 0x1b, 0xad, 0xe4, 0x0d, 0x84, 0x1b, 0xad, 632 0xc7, 0x6b, 0xef, 0x8c, 0x32, 0x3b, 0x1d, 0x60, 0xce, 0x4b, 0xf7, 0x74, 0x45, 0xd6, 0xaf, 0xc8, 633 0xee, 0xa8, 0xc8, 0x06, 0x15, 0xef, 0x20, 0xb2, 0x8e, 0x24, 0x4f, 0x7d, 0xc2, 0xc0, 0xe4, 0xb3, 634 0xb3, 0x3f, 0xe1, 0x7d, 0xe9, 0x1a, 0x46, 0xfa, 0xd7, 0x92, 0x7d, 0xe7, 0x9e, 0x53, 0x66, 0x4f, 635 0x86, 0xa0, 0x2f, 0xfa, 0x94, 0x7e, 0x7b, 0xbd, 0xcd, 0xd5, 0xae, 0xbd, 0x58, 0x0a, 0x59, 0xa4, 636 0x45, 0x2e, 0x6a, 0xe9, 0x9e, 0xb7, 0xeb, 0xd4, 0xdc, 0x33, 0xee, 0xd2, 0x79, 0x6f, 0x5f, 0x17, 637 0x91, 0x01, 0xd7, 0xbf, 0x03, 0x00, 0x00, 0xff, 0xff, 0x00, 0x7b, 0x80, 0x90, 0x93, 0x04, 0x00, 638 0x00, 639 } 640 641 // Reference imports to suppress errors if they are not otherwise used. 642 var _ context.Context 643 var _ grpc.ClientConn 644 645 // This is a compile-time assertion to ensure that this generated file 646 // is compatible with the grpc package it is being compiled against. 647 const _ = grpc.SupportPackageIsVersion4 648 649 // ConfigClient is the client API for Config service. 650 // 651 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 652 type ConfigClient interface { 653 Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error) 654 Set(ctx context.Context, in *SetRequest, opts ...grpc.CallOption) (*SetResponse, error) 655 Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error) 656 // These methods are here for backwards compatibility reasons 657 Read(ctx context.Context, in *ReadRequest, opts ...grpc.CallOption) (*ReadResponse, error) 658 } 659 660 type configClient struct { 661 cc *grpc.ClientConn 662 } 663 664 func NewConfigClient(cc *grpc.ClientConn) ConfigClient { 665 return &configClient{cc} 666 } 667 668 func (c *configClient) Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error) { 669 out := new(GetResponse) 670 err := c.cc.Invoke(ctx, "/config.Config/Get", in, out, opts...) 671 if err != nil { 672 return nil, err 673 } 674 return out, nil 675 } 676 677 func (c *configClient) Set(ctx context.Context, in *SetRequest, opts ...grpc.CallOption) (*SetResponse, error) { 678 out := new(SetResponse) 679 err := c.cc.Invoke(ctx, "/config.Config/Set", in, out, opts...) 680 if err != nil { 681 return nil, err 682 } 683 return out, nil 684 } 685 686 func (c *configClient) Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error) { 687 out := new(DeleteResponse) 688 err := c.cc.Invoke(ctx, "/config.Config/Delete", in, out, opts...) 689 if err != nil { 690 return nil, err 691 } 692 return out, nil 693 } 694 695 func (c *configClient) Read(ctx context.Context, in *ReadRequest, opts ...grpc.CallOption) (*ReadResponse, error) { 696 out := new(ReadResponse) 697 err := c.cc.Invoke(ctx, "/config.Config/Read", in, out, opts...) 698 if err != nil { 699 return nil, err 700 } 701 return out, nil 702 } 703 704 // ConfigServer is the server API for Config service. 705 type ConfigServer interface { 706 Get(context.Context, *GetRequest) (*GetResponse, error) 707 Set(context.Context, *SetRequest) (*SetResponse, error) 708 Delete(context.Context, *DeleteRequest) (*DeleteResponse, error) 709 // These methods are here for backwards compatibility reasons 710 Read(context.Context, *ReadRequest) (*ReadResponse, error) 711 } 712 713 func RegisterConfigServer(s *grpc.Server, srv ConfigServer) { 714 s.RegisterService(&_Config_serviceDesc, srv) 715 } 716 717 func _Config_Get_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 718 in := new(GetRequest) 719 if err := dec(in); err != nil { 720 return nil, err 721 } 722 if interceptor == nil { 723 return srv.(ConfigServer).Get(ctx, in) 724 } 725 info := &grpc.UnaryServerInfo{ 726 Server: srv, 727 FullMethod: "/config.Config/Get", 728 } 729 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 730 return srv.(ConfigServer).Get(ctx, req.(*GetRequest)) 731 } 732 return interceptor(ctx, in, info, handler) 733 } 734 735 func _Config_Set_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 736 in := new(SetRequest) 737 if err := dec(in); err != nil { 738 return nil, err 739 } 740 if interceptor == nil { 741 return srv.(ConfigServer).Set(ctx, in) 742 } 743 info := &grpc.UnaryServerInfo{ 744 Server: srv, 745 FullMethod: "/config.Config/Set", 746 } 747 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 748 return srv.(ConfigServer).Set(ctx, req.(*SetRequest)) 749 } 750 return interceptor(ctx, in, info, handler) 751 } 752 753 func _Config_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 754 in := new(DeleteRequest) 755 if err := dec(in); err != nil { 756 return nil, err 757 } 758 if interceptor == nil { 759 return srv.(ConfigServer).Delete(ctx, in) 760 } 761 info := &grpc.UnaryServerInfo{ 762 Server: srv, 763 FullMethod: "/config.Config/Delete", 764 } 765 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 766 return srv.(ConfigServer).Delete(ctx, req.(*DeleteRequest)) 767 } 768 return interceptor(ctx, in, info, handler) 769 } 770 771 func _Config_Read_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 772 in := new(ReadRequest) 773 if err := dec(in); err != nil { 774 return nil, err 775 } 776 if interceptor == nil { 777 return srv.(ConfigServer).Read(ctx, in) 778 } 779 info := &grpc.UnaryServerInfo{ 780 Server: srv, 781 FullMethod: "/config.Config/Read", 782 } 783 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 784 return srv.(ConfigServer).Read(ctx, req.(*ReadRequest)) 785 } 786 return interceptor(ctx, in, info, handler) 787 } 788 789 var _Config_serviceDesc = grpc.ServiceDesc{ 790 ServiceName: "config.Config", 791 HandlerType: (*ConfigServer)(nil), 792 Methods: []grpc.MethodDesc{ 793 { 794 MethodName: "Get", 795 Handler: _Config_Get_Handler, 796 }, 797 { 798 MethodName: "Set", 799 Handler: _Config_Set_Handler, 800 }, 801 { 802 MethodName: "Delete", 803 Handler: _Config_Delete_Handler, 804 }, 805 { 806 MethodName: "Read", 807 Handler: _Config_Read_Handler, 808 }, 809 }, 810 Streams: []grpc.StreamDesc{}, 811 Metadata: "config/config.proto", 812 }