github.com/annwntech/go-micro/v2@v2.9.5/runtime/service/proto/runtime.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: runtime/service/proto/runtime.proto 6 7 package go_micro_runtime 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 Service struct { 33 state protoimpl.MessageState 34 sizeCache protoimpl.SizeCache 35 unknownFields protoimpl.UnknownFields 36 37 // name of the service 38 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 39 // version of the service 40 Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` 41 // git url of the source 42 Source string `protobuf:"bytes,3,opt,name=source,proto3" json:"source,omitempty"` 43 // service metadata 44 Metadata map[string]string `protobuf:"bytes,4,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` 45 } 46 47 func (x *Service) Reset() { 48 *x = Service{} 49 if protoimpl.UnsafeEnabled { 50 mi := &file_runtime_service_proto_runtime_proto_msgTypes[0] 51 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 52 ms.StoreMessageInfo(mi) 53 } 54 } 55 56 func (x *Service) String() string { 57 return protoimpl.X.MessageStringOf(x) 58 } 59 60 func (*Service) ProtoMessage() {} 61 62 func (x *Service) ProtoReflect() protoreflect.Message { 63 mi := &file_runtime_service_proto_runtime_proto_msgTypes[0] 64 if protoimpl.UnsafeEnabled && x != nil { 65 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 66 if ms.LoadMessageInfo() == nil { 67 ms.StoreMessageInfo(mi) 68 } 69 return ms 70 } 71 return mi.MessageOf(x) 72 } 73 74 // Deprecated: Use Service.ProtoReflect.Descriptor instead. 75 func (*Service) Descriptor() ([]byte, []int) { 76 return file_runtime_service_proto_runtime_proto_rawDescGZIP(), []int{0} 77 } 78 79 func (x *Service) GetName() string { 80 if x != nil { 81 return x.Name 82 } 83 return "" 84 } 85 86 func (x *Service) GetVersion() string { 87 if x != nil { 88 return x.Version 89 } 90 return "" 91 } 92 93 func (x *Service) GetSource() string { 94 if x != nil { 95 return x.Source 96 } 97 return "" 98 } 99 100 func (x *Service) GetMetadata() map[string]string { 101 if x != nil { 102 return x.Metadata 103 } 104 return nil 105 } 106 107 type Event struct { 108 state protoimpl.MessageState 109 sizeCache protoimpl.SizeCache 110 unknownFields protoimpl.UnknownFields 111 112 Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` 113 Timestamp int64 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` 114 Service string `protobuf:"bytes,3,opt,name=service,proto3" json:"service,omitempty"` 115 Version string `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"` 116 } 117 118 func (x *Event) Reset() { 119 *x = Event{} 120 if protoimpl.UnsafeEnabled { 121 mi := &file_runtime_service_proto_runtime_proto_msgTypes[1] 122 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 123 ms.StoreMessageInfo(mi) 124 } 125 } 126 127 func (x *Event) String() string { 128 return protoimpl.X.MessageStringOf(x) 129 } 130 131 func (*Event) ProtoMessage() {} 132 133 func (x *Event) ProtoReflect() protoreflect.Message { 134 mi := &file_runtime_service_proto_runtime_proto_msgTypes[1] 135 if protoimpl.UnsafeEnabled && x != nil { 136 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 137 if ms.LoadMessageInfo() == nil { 138 ms.StoreMessageInfo(mi) 139 } 140 return ms 141 } 142 return mi.MessageOf(x) 143 } 144 145 // Deprecated: Use Event.ProtoReflect.Descriptor instead. 146 func (*Event) Descriptor() ([]byte, []int) { 147 return file_runtime_service_proto_runtime_proto_rawDescGZIP(), []int{1} 148 } 149 150 func (x *Event) GetType() string { 151 if x != nil { 152 return x.Type 153 } 154 return "" 155 } 156 157 func (x *Event) GetTimestamp() int64 { 158 if x != nil { 159 return x.Timestamp 160 } 161 return 0 162 } 163 164 func (x *Event) GetService() string { 165 if x != nil { 166 return x.Service 167 } 168 return "" 169 } 170 171 func (x *Event) GetVersion() string { 172 if x != nil { 173 return x.Version 174 } 175 return "" 176 } 177 178 type CreateOptions struct { 179 state protoimpl.MessageState 180 sizeCache protoimpl.SizeCache 181 unknownFields protoimpl.UnknownFields 182 183 // command to pass in 184 Command []string `protobuf:"bytes,1,rep,name=command,proto3" json:"command,omitempty"` 185 // args to pass into command 186 Args []string `protobuf:"bytes,2,rep,name=args,proto3" json:"args,omitempty"` 187 // environment to pass in 188 Env []string `protobuf:"bytes,3,rep,name=env,proto3" json:"env,omitempty"` 189 // output to send to 190 Output string `protobuf:"bytes,4,opt,name=output,proto3" json:"output,omitempty"` 191 // create type of service 192 Type string `protobuf:"bytes,5,opt,name=type,proto3" json:"type,omitempty"` 193 // image to use 194 Image string `protobuf:"bytes,6,opt,name=image,proto3" json:"image,omitempty"` 195 } 196 197 func (x *CreateOptions) Reset() { 198 *x = CreateOptions{} 199 if protoimpl.UnsafeEnabled { 200 mi := &file_runtime_service_proto_runtime_proto_msgTypes[2] 201 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 202 ms.StoreMessageInfo(mi) 203 } 204 } 205 206 func (x *CreateOptions) String() string { 207 return protoimpl.X.MessageStringOf(x) 208 } 209 210 func (*CreateOptions) ProtoMessage() {} 211 212 func (x *CreateOptions) ProtoReflect() protoreflect.Message { 213 mi := &file_runtime_service_proto_runtime_proto_msgTypes[2] 214 if protoimpl.UnsafeEnabled && x != nil { 215 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 216 if ms.LoadMessageInfo() == nil { 217 ms.StoreMessageInfo(mi) 218 } 219 return ms 220 } 221 return mi.MessageOf(x) 222 } 223 224 // Deprecated: Use CreateOptions.ProtoReflect.Descriptor instead. 225 func (*CreateOptions) Descriptor() ([]byte, []int) { 226 return file_runtime_service_proto_runtime_proto_rawDescGZIP(), []int{2} 227 } 228 229 func (x *CreateOptions) GetCommand() []string { 230 if x != nil { 231 return x.Command 232 } 233 return nil 234 } 235 236 func (x *CreateOptions) GetArgs() []string { 237 if x != nil { 238 return x.Args 239 } 240 return nil 241 } 242 243 func (x *CreateOptions) GetEnv() []string { 244 if x != nil { 245 return x.Env 246 } 247 return nil 248 } 249 250 func (x *CreateOptions) GetOutput() string { 251 if x != nil { 252 return x.Output 253 } 254 return "" 255 } 256 257 func (x *CreateOptions) GetType() string { 258 if x != nil { 259 return x.Type 260 } 261 return "" 262 } 263 264 func (x *CreateOptions) GetImage() string { 265 if x != nil { 266 return x.Image 267 } 268 return "" 269 } 270 271 type CreateRequest struct { 272 state protoimpl.MessageState 273 sizeCache protoimpl.SizeCache 274 unknownFields protoimpl.UnknownFields 275 276 Service *Service `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"` 277 Options *CreateOptions `protobuf:"bytes,2,opt,name=options,proto3" json:"options,omitempty"` 278 } 279 280 func (x *CreateRequest) Reset() { 281 *x = CreateRequest{} 282 if protoimpl.UnsafeEnabled { 283 mi := &file_runtime_service_proto_runtime_proto_msgTypes[3] 284 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 285 ms.StoreMessageInfo(mi) 286 } 287 } 288 289 func (x *CreateRequest) String() string { 290 return protoimpl.X.MessageStringOf(x) 291 } 292 293 func (*CreateRequest) ProtoMessage() {} 294 295 func (x *CreateRequest) ProtoReflect() protoreflect.Message { 296 mi := &file_runtime_service_proto_runtime_proto_msgTypes[3] 297 if protoimpl.UnsafeEnabled && x != nil { 298 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 299 if ms.LoadMessageInfo() == nil { 300 ms.StoreMessageInfo(mi) 301 } 302 return ms 303 } 304 return mi.MessageOf(x) 305 } 306 307 // Deprecated: Use CreateRequest.ProtoReflect.Descriptor instead. 308 func (*CreateRequest) Descriptor() ([]byte, []int) { 309 return file_runtime_service_proto_runtime_proto_rawDescGZIP(), []int{3} 310 } 311 312 func (x *CreateRequest) GetService() *Service { 313 if x != nil { 314 return x.Service 315 } 316 return nil 317 } 318 319 func (x *CreateRequest) GetOptions() *CreateOptions { 320 if x != nil { 321 return x.Options 322 } 323 return nil 324 } 325 326 type CreateResponse struct { 327 state protoimpl.MessageState 328 sizeCache protoimpl.SizeCache 329 unknownFields protoimpl.UnknownFields 330 } 331 332 func (x *CreateResponse) Reset() { 333 *x = CreateResponse{} 334 if protoimpl.UnsafeEnabled { 335 mi := &file_runtime_service_proto_runtime_proto_msgTypes[4] 336 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 337 ms.StoreMessageInfo(mi) 338 } 339 } 340 341 func (x *CreateResponse) String() string { 342 return protoimpl.X.MessageStringOf(x) 343 } 344 345 func (*CreateResponse) ProtoMessage() {} 346 347 func (x *CreateResponse) ProtoReflect() protoreflect.Message { 348 mi := &file_runtime_service_proto_runtime_proto_msgTypes[4] 349 if protoimpl.UnsafeEnabled && x != nil { 350 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 351 if ms.LoadMessageInfo() == nil { 352 ms.StoreMessageInfo(mi) 353 } 354 return ms 355 } 356 return mi.MessageOf(x) 357 } 358 359 // Deprecated: Use CreateResponse.ProtoReflect.Descriptor instead. 360 func (*CreateResponse) Descriptor() ([]byte, []int) { 361 return file_runtime_service_proto_runtime_proto_rawDescGZIP(), []int{4} 362 } 363 364 type ReadOptions struct { 365 state protoimpl.MessageState 366 sizeCache protoimpl.SizeCache 367 unknownFields protoimpl.UnknownFields 368 369 // service name 370 Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"` 371 // version of the service 372 Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` 373 // type of service 374 Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"` 375 } 376 377 func (x *ReadOptions) Reset() { 378 *x = ReadOptions{} 379 if protoimpl.UnsafeEnabled { 380 mi := &file_runtime_service_proto_runtime_proto_msgTypes[5] 381 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 382 ms.StoreMessageInfo(mi) 383 } 384 } 385 386 func (x *ReadOptions) String() string { 387 return protoimpl.X.MessageStringOf(x) 388 } 389 390 func (*ReadOptions) ProtoMessage() {} 391 392 func (x *ReadOptions) ProtoReflect() protoreflect.Message { 393 mi := &file_runtime_service_proto_runtime_proto_msgTypes[5] 394 if protoimpl.UnsafeEnabled && x != nil { 395 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 396 if ms.LoadMessageInfo() == nil { 397 ms.StoreMessageInfo(mi) 398 } 399 return ms 400 } 401 return mi.MessageOf(x) 402 } 403 404 // Deprecated: Use ReadOptions.ProtoReflect.Descriptor instead. 405 func (*ReadOptions) Descriptor() ([]byte, []int) { 406 return file_runtime_service_proto_runtime_proto_rawDescGZIP(), []int{5} 407 } 408 409 func (x *ReadOptions) GetService() string { 410 if x != nil { 411 return x.Service 412 } 413 return "" 414 } 415 416 func (x *ReadOptions) GetVersion() string { 417 if x != nil { 418 return x.Version 419 } 420 return "" 421 } 422 423 func (x *ReadOptions) GetType() string { 424 if x != nil { 425 return x.Type 426 } 427 return "" 428 } 429 430 type ReadRequest struct { 431 state protoimpl.MessageState 432 sizeCache protoimpl.SizeCache 433 unknownFields protoimpl.UnknownFields 434 435 Options *ReadOptions `protobuf:"bytes,1,opt,name=options,proto3" json:"options,omitempty"` 436 } 437 438 func (x *ReadRequest) Reset() { 439 *x = ReadRequest{} 440 if protoimpl.UnsafeEnabled { 441 mi := &file_runtime_service_proto_runtime_proto_msgTypes[6] 442 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 443 ms.StoreMessageInfo(mi) 444 } 445 } 446 447 func (x *ReadRequest) String() string { 448 return protoimpl.X.MessageStringOf(x) 449 } 450 451 func (*ReadRequest) ProtoMessage() {} 452 453 func (x *ReadRequest) ProtoReflect() protoreflect.Message { 454 mi := &file_runtime_service_proto_runtime_proto_msgTypes[6] 455 if protoimpl.UnsafeEnabled && x != nil { 456 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 457 if ms.LoadMessageInfo() == nil { 458 ms.StoreMessageInfo(mi) 459 } 460 return ms 461 } 462 return mi.MessageOf(x) 463 } 464 465 // Deprecated: Use ReadRequest.ProtoReflect.Descriptor instead. 466 func (*ReadRequest) Descriptor() ([]byte, []int) { 467 return file_runtime_service_proto_runtime_proto_rawDescGZIP(), []int{6} 468 } 469 470 func (x *ReadRequest) GetOptions() *ReadOptions { 471 if x != nil { 472 return x.Options 473 } 474 return nil 475 } 476 477 type ReadResponse struct { 478 state protoimpl.MessageState 479 sizeCache protoimpl.SizeCache 480 unknownFields protoimpl.UnknownFields 481 482 Services []*Service `protobuf:"bytes,1,rep,name=services,proto3" json:"services,omitempty"` 483 } 484 485 func (x *ReadResponse) Reset() { 486 *x = ReadResponse{} 487 if protoimpl.UnsafeEnabled { 488 mi := &file_runtime_service_proto_runtime_proto_msgTypes[7] 489 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 490 ms.StoreMessageInfo(mi) 491 } 492 } 493 494 func (x *ReadResponse) String() string { 495 return protoimpl.X.MessageStringOf(x) 496 } 497 498 func (*ReadResponse) ProtoMessage() {} 499 500 func (x *ReadResponse) ProtoReflect() protoreflect.Message { 501 mi := &file_runtime_service_proto_runtime_proto_msgTypes[7] 502 if protoimpl.UnsafeEnabled && x != nil { 503 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 504 if ms.LoadMessageInfo() == nil { 505 ms.StoreMessageInfo(mi) 506 } 507 return ms 508 } 509 return mi.MessageOf(x) 510 } 511 512 // Deprecated: Use ReadResponse.ProtoReflect.Descriptor instead. 513 func (*ReadResponse) Descriptor() ([]byte, []int) { 514 return file_runtime_service_proto_runtime_proto_rawDescGZIP(), []int{7} 515 } 516 517 func (x *ReadResponse) GetServices() []*Service { 518 if x != nil { 519 return x.Services 520 } 521 return nil 522 } 523 524 type DeleteOptions struct { 525 state protoimpl.MessageState 526 sizeCache protoimpl.SizeCache 527 unknownFields protoimpl.UnknownFields 528 } 529 530 func (x *DeleteOptions) Reset() { 531 *x = DeleteOptions{} 532 if protoimpl.UnsafeEnabled { 533 mi := &file_runtime_service_proto_runtime_proto_msgTypes[8] 534 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 535 ms.StoreMessageInfo(mi) 536 } 537 } 538 539 func (x *DeleteOptions) String() string { 540 return protoimpl.X.MessageStringOf(x) 541 } 542 543 func (*DeleteOptions) ProtoMessage() {} 544 545 func (x *DeleteOptions) ProtoReflect() protoreflect.Message { 546 mi := &file_runtime_service_proto_runtime_proto_msgTypes[8] 547 if protoimpl.UnsafeEnabled && x != nil { 548 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 549 if ms.LoadMessageInfo() == nil { 550 ms.StoreMessageInfo(mi) 551 } 552 return ms 553 } 554 return mi.MessageOf(x) 555 } 556 557 // Deprecated: Use DeleteOptions.ProtoReflect.Descriptor instead. 558 func (*DeleteOptions) Descriptor() ([]byte, []int) { 559 return file_runtime_service_proto_runtime_proto_rawDescGZIP(), []int{8} 560 } 561 562 type DeleteRequest struct { 563 state protoimpl.MessageState 564 sizeCache protoimpl.SizeCache 565 unknownFields protoimpl.UnknownFields 566 567 Service *Service `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"` 568 Options *DeleteOptions `protobuf:"bytes,2,opt,name=options,proto3" json:"options,omitempty"` 569 } 570 571 func (x *DeleteRequest) Reset() { 572 *x = DeleteRequest{} 573 if protoimpl.UnsafeEnabled { 574 mi := &file_runtime_service_proto_runtime_proto_msgTypes[9] 575 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 576 ms.StoreMessageInfo(mi) 577 } 578 } 579 580 func (x *DeleteRequest) String() string { 581 return protoimpl.X.MessageStringOf(x) 582 } 583 584 func (*DeleteRequest) ProtoMessage() {} 585 586 func (x *DeleteRequest) ProtoReflect() protoreflect.Message { 587 mi := &file_runtime_service_proto_runtime_proto_msgTypes[9] 588 if protoimpl.UnsafeEnabled && x != nil { 589 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 590 if ms.LoadMessageInfo() == nil { 591 ms.StoreMessageInfo(mi) 592 } 593 return ms 594 } 595 return mi.MessageOf(x) 596 } 597 598 // Deprecated: Use DeleteRequest.ProtoReflect.Descriptor instead. 599 func (*DeleteRequest) Descriptor() ([]byte, []int) { 600 return file_runtime_service_proto_runtime_proto_rawDescGZIP(), []int{9} 601 } 602 603 func (x *DeleteRequest) GetService() *Service { 604 if x != nil { 605 return x.Service 606 } 607 return nil 608 } 609 610 func (x *DeleteRequest) GetOptions() *DeleteOptions { 611 if x != nil { 612 return x.Options 613 } 614 return nil 615 } 616 617 type DeleteResponse struct { 618 state protoimpl.MessageState 619 sizeCache protoimpl.SizeCache 620 unknownFields protoimpl.UnknownFields 621 } 622 623 func (x *DeleteResponse) Reset() { 624 *x = DeleteResponse{} 625 if protoimpl.UnsafeEnabled { 626 mi := &file_runtime_service_proto_runtime_proto_msgTypes[10] 627 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 628 ms.StoreMessageInfo(mi) 629 } 630 } 631 632 func (x *DeleteResponse) String() string { 633 return protoimpl.X.MessageStringOf(x) 634 } 635 636 func (*DeleteResponse) ProtoMessage() {} 637 638 func (x *DeleteResponse) ProtoReflect() protoreflect.Message { 639 mi := &file_runtime_service_proto_runtime_proto_msgTypes[10] 640 if protoimpl.UnsafeEnabled && x != nil { 641 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 642 if ms.LoadMessageInfo() == nil { 643 ms.StoreMessageInfo(mi) 644 } 645 return ms 646 } 647 return mi.MessageOf(x) 648 } 649 650 // Deprecated: Use DeleteResponse.ProtoReflect.Descriptor instead. 651 func (*DeleteResponse) Descriptor() ([]byte, []int) { 652 return file_runtime_service_proto_runtime_proto_rawDescGZIP(), []int{10} 653 } 654 655 type UpdateOptions struct { 656 state protoimpl.MessageState 657 sizeCache protoimpl.SizeCache 658 unknownFields protoimpl.UnknownFields 659 } 660 661 func (x *UpdateOptions) Reset() { 662 *x = UpdateOptions{} 663 if protoimpl.UnsafeEnabled { 664 mi := &file_runtime_service_proto_runtime_proto_msgTypes[11] 665 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 666 ms.StoreMessageInfo(mi) 667 } 668 } 669 670 func (x *UpdateOptions) String() string { 671 return protoimpl.X.MessageStringOf(x) 672 } 673 674 func (*UpdateOptions) ProtoMessage() {} 675 676 func (x *UpdateOptions) ProtoReflect() protoreflect.Message { 677 mi := &file_runtime_service_proto_runtime_proto_msgTypes[11] 678 if protoimpl.UnsafeEnabled && x != nil { 679 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 680 if ms.LoadMessageInfo() == nil { 681 ms.StoreMessageInfo(mi) 682 } 683 return ms 684 } 685 return mi.MessageOf(x) 686 } 687 688 // Deprecated: Use UpdateOptions.ProtoReflect.Descriptor instead. 689 func (*UpdateOptions) Descriptor() ([]byte, []int) { 690 return file_runtime_service_proto_runtime_proto_rawDescGZIP(), []int{11} 691 } 692 693 type UpdateRequest struct { 694 state protoimpl.MessageState 695 sizeCache protoimpl.SizeCache 696 unknownFields protoimpl.UnknownFields 697 698 Service *Service `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"` 699 Options *UpdateOptions `protobuf:"bytes,2,opt,name=options,proto3" json:"options,omitempty"` 700 } 701 702 func (x *UpdateRequest) Reset() { 703 *x = UpdateRequest{} 704 if protoimpl.UnsafeEnabled { 705 mi := &file_runtime_service_proto_runtime_proto_msgTypes[12] 706 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 707 ms.StoreMessageInfo(mi) 708 } 709 } 710 711 func (x *UpdateRequest) String() string { 712 return protoimpl.X.MessageStringOf(x) 713 } 714 715 func (*UpdateRequest) ProtoMessage() {} 716 717 func (x *UpdateRequest) ProtoReflect() protoreflect.Message { 718 mi := &file_runtime_service_proto_runtime_proto_msgTypes[12] 719 if protoimpl.UnsafeEnabled && x != nil { 720 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 721 if ms.LoadMessageInfo() == nil { 722 ms.StoreMessageInfo(mi) 723 } 724 return ms 725 } 726 return mi.MessageOf(x) 727 } 728 729 // Deprecated: Use UpdateRequest.ProtoReflect.Descriptor instead. 730 func (*UpdateRequest) Descriptor() ([]byte, []int) { 731 return file_runtime_service_proto_runtime_proto_rawDescGZIP(), []int{12} 732 } 733 734 func (x *UpdateRequest) GetService() *Service { 735 if x != nil { 736 return x.Service 737 } 738 return nil 739 } 740 741 func (x *UpdateRequest) GetOptions() *UpdateOptions { 742 if x != nil { 743 return x.Options 744 } 745 return nil 746 } 747 748 type UpdateResponse struct { 749 state protoimpl.MessageState 750 sizeCache protoimpl.SizeCache 751 unknownFields protoimpl.UnknownFields 752 } 753 754 func (x *UpdateResponse) Reset() { 755 *x = UpdateResponse{} 756 if protoimpl.UnsafeEnabled { 757 mi := &file_runtime_service_proto_runtime_proto_msgTypes[13] 758 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 759 ms.StoreMessageInfo(mi) 760 } 761 } 762 763 func (x *UpdateResponse) String() string { 764 return protoimpl.X.MessageStringOf(x) 765 } 766 767 func (*UpdateResponse) ProtoMessage() {} 768 769 func (x *UpdateResponse) ProtoReflect() protoreflect.Message { 770 mi := &file_runtime_service_proto_runtime_proto_msgTypes[13] 771 if protoimpl.UnsafeEnabled && x != nil { 772 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 773 if ms.LoadMessageInfo() == nil { 774 ms.StoreMessageInfo(mi) 775 } 776 return ms 777 } 778 return mi.MessageOf(x) 779 } 780 781 // Deprecated: Use UpdateResponse.ProtoReflect.Descriptor instead. 782 func (*UpdateResponse) Descriptor() ([]byte, []int) { 783 return file_runtime_service_proto_runtime_proto_rawDescGZIP(), []int{13} 784 } 785 786 type ListOptions struct { 787 state protoimpl.MessageState 788 sizeCache protoimpl.SizeCache 789 unknownFields protoimpl.UnknownFields 790 } 791 792 func (x *ListOptions) Reset() { 793 *x = ListOptions{} 794 if protoimpl.UnsafeEnabled { 795 mi := &file_runtime_service_proto_runtime_proto_msgTypes[14] 796 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 797 ms.StoreMessageInfo(mi) 798 } 799 } 800 801 func (x *ListOptions) String() string { 802 return protoimpl.X.MessageStringOf(x) 803 } 804 805 func (*ListOptions) ProtoMessage() {} 806 807 func (x *ListOptions) ProtoReflect() protoreflect.Message { 808 mi := &file_runtime_service_proto_runtime_proto_msgTypes[14] 809 if protoimpl.UnsafeEnabled && x != nil { 810 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 811 if ms.LoadMessageInfo() == nil { 812 ms.StoreMessageInfo(mi) 813 } 814 return ms 815 } 816 return mi.MessageOf(x) 817 } 818 819 // Deprecated: Use ListOptions.ProtoReflect.Descriptor instead. 820 func (*ListOptions) Descriptor() ([]byte, []int) { 821 return file_runtime_service_proto_runtime_proto_rawDescGZIP(), []int{14} 822 } 823 824 type ListRequest struct { 825 state protoimpl.MessageState 826 sizeCache protoimpl.SizeCache 827 unknownFields protoimpl.UnknownFields 828 829 Options *ListOptions `protobuf:"bytes,1,opt,name=options,proto3" json:"options,omitempty"` 830 } 831 832 func (x *ListRequest) Reset() { 833 *x = ListRequest{} 834 if protoimpl.UnsafeEnabled { 835 mi := &file_runtime_service_proto_runtime_proto_msgTypes[15] 836 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 837 ms.StoreMessageInfo(mi) 838 } 839 } 840 841 func (x *ListRequest) String() string { 842 return protoimpl.X.MessageStringOf(x) 843 } 844 845 func (*ListRequest) ProtoMessage() {} 846 847 func (x *ListRequest) ProtoReflect() protoreflect.Message { 848 mi := &file_runtime_service_proto_runtime_proto_msgTypes[15] 849 if protoimpl.UnsafeEnabled && x != nil { 850 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 851 if ms.LoadMessageInfo() == nil { 852 ms.StoreMessageInfo(mi) 853 } 854 return ms 855 } 856 return mi.MessageOf(x) 857 } 858 859 // Deprecated: Use ListRequest.ProtoReflect.Descriptor instead. 860 func (*ListRequest) Descriptor() ([]byte, []int) { 861 return file_runtime_service_proto_runtime_proto_rawDescGZIP(), []int{15} 862 } 863 864 func (x *ListRequest) GetOptions() *ListOptions { 865 if x != nil { 866 return x.Options 867 } 868 return nil 869 } 870 871 type ListResponse struct { 872 state protoimpl.MessageState 873 sizeCache protoimpl.SizeCache 874 unknownFields protoimpl.UnknownFields 875 876 Services []*Service `protobuf:"bytes,1,rep,name=services,proto3" json:"services,omitempty"` 877 } 878 879 func (x *ListResponse) Reset() { 880 *x = ListResponse{} 881 if protoimpl.UnsafeEnabled { 882 mi := &file_runtime_service_proto_runtime_proto_msgTypes[16] 883 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 884 ms.StoreMessageInfo(mi) 885 } 886 } 887 888 func (x *ListResponse) String() string { 889 return protoimpl.X.MessageStringOf(x) 890 } 891 892 func (*ListResponse) ProtoMessage() {} 893 894 func (x *ListResponse) ProtoReflect() protoreflect.Message { 895 mi := &file_runtime_service_proto_runtime_proto_msgTypes[16] 896 if protoimpl.UnsafeEnabled && x != nil { 897 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 898 if ms.LoadMessageInfo() == nil { 899 ms.StoreMessageInfo(mi) 900 } 901 return ms 902 } 903 return mi.MessageOf(x) 904 } 905 906 // Deprecated: Use ListResponse.ProtoReflect.Descriptor instead. 907 func (*ListResponse) Descriptor() ([]byte, []int) { 908 return file_runtime_service_proto_runtime_proto_rawDescGZIP(), []int{16} 909 } 910 911 func (x *ListResponse) GetServices() []*Service { 912 if x != nil { 913 return x.Services 914 } 915 return nil 916 } 917 918 type LogsOptions struct { 919 state protoimpl.MessageState 920 sizeCache protoimpl.SizeCache 921 unknownFields protoimpl.UnknownFields 922 } 923 924 func (x *LogsOptions) Reset() { 925 *x = LogsOptions{} 926 if protoimpl.UnsafeEnabled { 927 mi := &file_runtime_service_proto_runtime_proto_msgTypes[17] 928 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 929 ms.StoreMessageInfo(mi) 930 } 931 } 932 933 func (x *LogsOptions) String() string { 934 return protoimpl.X.MessageStringOf(x) 935 } 936 937 func (*LogsOptions) ProtoMessage() {} 938 939 func (x *LogsOptions) ProtoReflect() protoreflect.Message { 940 mi := &file_runtime_service_proto_runtime_proto_msgTypes[17] 941 if protoimpl.UnsafeEnabled && x != nil { 942 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 943 if ms.LoadMessageInfo() == nil { 944 ms.StoreMessageInfo(mi) 945 } 946 return ms 947 } 948 return mi.MessageOf(x) 949 } 950 951 // Deprecated: Use LogsOptions.ProtoReflect.Descriptor instead. 952 func (*LogsOptions) Descriptor() ([]byte, []int) { 953 return file_runtime_service_proto_runtime_proto_rawDescGZIP(), []int{17} 954 } 955 956 type LogsRequest struct { 957 state protoimpl.MessageState 958 sizeCache protoimpl.SizeCache 959 unknownFields protoimpl.UnknownFields 960 961 // service to request logs for 962 Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"` 963 // stream records continuously 964 Stream bool `protobuf:"varint,2,opt,name=stream,proto3" json:"stream,omitempty"` 965 // count of records to request 966 Count int64 `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"` 967 // relative time in seconds 968 // before the current time 969 // from which to show logs 970 Since int64 `protobuf:"varint,4,opt,name=since,proto3" json:"since,omitempty"` 971 // options to use 972 Options *LogsOptions `protobuf:"bytes,5,opt,name=options,proto3" json:"options,omitempty"` 973 } 974 975 func (x *LogsRequest) Reset() { 976 *x = LogsRequest{} 977 if protoimpl.UnsafeEnabled { 978 mi := &file_runtime_service_proto_runtime_proto_msgTypes[18] 979 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 980 ms.StoreMessageInfo(mi) 981 } 982 } 983 984 func (x *LogsRequest) String() string { 985 return protoimpl.X.MessageStringOf(x) 986 } 987 988 func (*LogsRequest) ProtoMessage() {} 989 990 func (x *LogsRequest) ProtoReflect() protoreflect.Message { 991 mi := &file_runtime_service_proto_runtime_proto_msgTypes[18] 992 if protoimpl.UnsafeEnabled && x != nil { 993 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 994 if ms.LoadMessageInfo() == nil { 995 ms.StoreMessageInfo(mi) 996 } 997 return ms 998 } 999 return mi.MessageOf(x) 1000 } 1001 1002 // Deprecated: Use LogsRequest.ProtoReflect.Descriptor instead. 1003 func (*LogsRequest) Descriptor() ([]byte, []int) { 1004 return file_runtime_service_proto_runtime_proto_rawDescGZIP(), []int{18} 1005 } 1006 1007 func (x *LogsRequest) GetService() string { 1008 if x != nil { 1009 return x.Service 1010 } 1011 return "" 1012 } 1013 1014 func (x *LogsRequest) GetStream() bool { 1015 if x != nil { 1016 return x.Stream 1017 } 1018 return false 1019 } 1020 1021 func (x *LogsRequest) GetCount() int64 { 1022 if x != nil { 1023 return x.Count 1024 } 1025 return 0 1026 } 1027 1028 func (x *LogsRequest) GetSince() int64 { 1029 if x != nil { 1030 return x.Since 1031 } 1032 return 0 1033 } 1034 1035 func (x *LogsRequest) GetOptions() *LogsOptions { 1036 if x != nil { 1037 return x.Options 1038 } 1039 return nil 1040 } 1041 1042 type LogRecord struct { 1043 state protoimpl.MessageState 1044 sizeCache protoimpl.SizeCache 1045 unknownFields protoimpl.UnknownFields 1046 1047 // timestamp of log record 1048 Timestamp int64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` 1049 // record metadata 1050 Metadata map[string]string `protobuf:"bytes,2,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` 1051 // message 1052 Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"` 1053 } 1054 1055 func (x *LogRecord) Reset() { 1056 *x = LogRecord{} 1057 if protoimpl.UnsafeEnabled { 1058 mi := &file_runtime_service_proto_runtime_proto_msgTypes[19] 1059 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 1060 ms.StoreMessageInfo(mi) 1061 } 1062 } 1063 1064 func (x *LogRecord) String() string { 1065 return protoimpl.X.MessageStringOf(x) 1066 } 1067 1068 func (*LogRecord) ProtoMessage() {} 1069 1070 func (x *LogRecord) ProtoReflect() protoreflect.Message { 1071 mi := &file_runtime_service_proto_runtime_proto_msgTypes[19] 1072 if protoimpl.UnsafeEnabled && x != nil { 1073 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 1074 if ms.LoadMessageInfo() == nil { 1075 ms.StoreMessageInfo(mi) 1076 } 1077 return ms 1078 } 1079 return mi.MessageOf(x) 1080 } 1081 1082 // Deprecated: Use LogRecord.ProtoReflect.Descriptor instead. 1083 func (*LogRecord) Descriptor() ([]byte, []int) { 1084 return file_runtime_service_proto_runtime_proto_rawDescGZIP(), []int{19} 1085 } 1086 1087 func (x *LogRecord) GetTimestamp() int64 { 1088 if x != nil { 1089 return x.Timestamp 1090 } 1091 return 0 1092 } 1093 1094 func (x *LogRecord) GetMetadata() map[string]string { 1095 if x != nil { 1096 return x.Metadata 1097 } 1098 return nil 1099 } 1100 1101 func (x *LogRecord) GetMessage() string { 1102 if x != nil { 1103 return x.Message 1104 } 1105 return "" 1106 } 1107 1108 var File_runtime_service_proto_runtime_proto protoreflect.FileDescriptor 1109 1110 var file_runtime_service_proto_runtime_proto_rawDesc = []byte{ 1111 0x0a, 0x23, 0x72, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 1112 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x72, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x2e, 1113 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x10, 0x67, 0x6f, 0x2e, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x2e, 1114 0x72, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x22, 0xd1, 0x01, 0x0a, 0x07, 0x53, 0x65, 0x72, 0x76, 1115 0x69, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 1116 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 1117 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 1118 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 1119 0x09, 0x52, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x43, 0x0a, 0x08, 0x6d, 0x65, 0x74, 1120 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x67, 0x6f, 1121 0x2e, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x2e, 0x72, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x53, 1122 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x45, 1123 0x6e, 0x74, 0x72, 0x79, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x1a, 0x3b, 1124 0x0a, 0x0d, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 1125 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 1126 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 1127 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x6d, 0x0a, 0x05, 0x45, 1128 0x76, 0x65, 0x6e, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 1129 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 1130 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x74, 0x69, 0x6d, 1131 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 1132 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 1133 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 1134 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x91, 0x01, 0x0a, 0x0d, 0x43, 1135 0x72, 0x65, 0x61, 0x74, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x18, 0x0a, 0x07, 1136 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x63, 1137 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x61, 0x72, 0x67, 0x73, 0x18, 0x02, 1138 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x61, 0x72, 0x67, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x65, 0x6e, 1139 0x76, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x03, 0x65, 0x6e, 0x76, 0x12, 0x16, 0x0a, 0x06, 1140 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6f, 0x75, 1141 0x74, 0x70, 0x75, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 1142 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6d, 0x61, 0x67, 1143 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x22, 0x7f, 1144 0x0a, 0x0d, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 1145 0x33, 0x0a, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 1146 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x2e, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x2e, 0x72, 0x75, 0x6e, 0x74, 1147 0x69, 0x6d, 0x65, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x07, 0x73, 0x65, 0x72, 1148 0x76, 0x69, 0x63, 0x65, 0x12, 0x39, 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 1149 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x6f, 0x2e, 0x6d, 0x69, 0x63, 0x72, 0x6f, 1150 0x2e, 0x72, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4f, 1151 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 1152 0x10, 0x0a, 0x0e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 1153 0x65, 0x22, 0x55, 0x0a, 0x0b, 0x52, 0x65, 0x61, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 1154 0x12, 0x18, 0x0a, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 1155 0x09, 0x52, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 1156 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 1157 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 1158 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, 0x46, 0x0a, 0x0b, 0x52, 0x65, 0x61, 0x64, 1159 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x37, 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 1160 0x6e, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x67, 0x6f, 0x2e, 0x6d, 0x69, 1161 0x63, 0x72, 0x6f, 0x2e, 0x72, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x52, 0x65, 0x61, 0x64, 1162 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 1163 0x22, 0x45, 0x0a, 0x0c, 0x52, 0x65, 0x61, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 1164 0x12, 0x35, 0x0a, 0x08, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 1165 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x2e, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x2e, 0x72, 0x75, 1166 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x08, 0x73, 1167 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x22, 0x0f, 0x0a, 0x0d, 0x44, 0x65, 0x6c, 0x65, 0x74, 1168 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x7f, 0x0a, 0x0d, 0x44, 0x65, 0x6c, 0x65, 1169 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x33, 0x0a, 0x07, 0x73, 0x65, 0x72, 1170 0x76, 0x69, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x2e, 1171 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x2e, 0x72, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x53, 0x65, 1172 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x39, 1173 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 1174 0x1f, 0x2e, 0x67, 0x6f, 0x2e, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x2e, 0x72, 0x75, 0x6e, 0x74, 0x69, 1175 0x6d, 0x65, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 1176 0x52, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x10, 0x0a, 0x0e, 0x44, 0x65, 0x6c, 1177 0x65, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x0f, 0x0a, 0x0d, 0x55, 1178 0x70, 0x64, 0x61, 0x74, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x7f, 0x0a, 0x0d, 1179 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x33, 0x0a, 1180 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 1181 0x2e, 0x67, 0x6f, 0x2e, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x2e, 0x72, 0x75, 0x6e, 0x74, 0x69, 0x6d, 1182 0x65, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 1183 0x63, 0x65, 0x12, 0x39, 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 1184 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x6f, 0x2e, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x2e, 0x72, 1185 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4f, 0x70, 0x74, 1186 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x10, 0x0a, 1187 0x0e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 1188 0x0d, 0x0a, 0x0b, 0x4c, 0x69, 0x73, 0x74, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x46, 1189 0x0a, 0x0b, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x37, 0x0a, 1190 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 1191 0x2e, 0x67, 0x6f, 0x2e, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x2e, 0x72, 0x75, 0x6e, 0x74, 0x69, 0x6d, 1192 0x65, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x07, 0x6f, 1193 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x45, 0x0a, 0x0c, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 1194 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x35, 0x0a, 0x08, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 1195 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x2e, 0x6d, 0x69, 1196 0x63, 0x72, 0x6f, 0x2e, 0x72, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x53, 0x65, 0x72, 0x76, 1197 0x69, 0x63, 0x65, 0x52, 0x08, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x22, 0x0d, 0x0a, 1198 0x0b, 0x4c, 0x6f, 0x67, 0x73, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0xa4, 0x01, 0x0a, 1199 0x0b, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 1200 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 1201 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 1202 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x12, 0x14, 1203 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x63, 1204 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x69, 0x6e, 0x63, 0x65, 0x18, 0x04, 0x20, 1205 0x01, 0x28, 0x03, 0x52, 0x05, 0x73, 0x69, 0x6e, 0x63, 0x65, 0x12, 0x37, 0x0a, 0x07, 0x6f, 0x70, 1206 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x67, 0x6f, 1207 0x2e, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x2e, 0x72, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x4c, 1208 0x6f, 0x67, 0x73, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x07, 0x6f, 0x70, 0x74, 0x69, 1209 0x6f, 0x6e, 0x73, 0x22, 0xc7, 0x01, 0x0a, 0x09, 0x4c, 0x6f, 0x67, 0x52, 0x65, 0x63, 0x6f, 0x72, 1210 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x01, 1211 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 1212 0x45, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x03, 0x28, 1213 0x0b, 0x32, 0x29, 0x2e, 0x67, 0x6f, 0x2e, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x2e, 0x72, 0x75, 0x6e, 1214 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x4c, 0x6f, 0x67, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x2e, 0x4d, 1215 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x08, 0x6d, 0x65, 1216 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 1217 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 1218 0x1a, 0x3b, 0x0a, 0x0d, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 1219 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 1220 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 1221 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x32, 0x87, 0x03, 1222 0x0a, 0x07, 0x52, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x4d, 0x0a, 0x06, 0x43, 0x72, 0x65, 1223 0x61, 0x74, 0x65, 0x12, 0x1f, 0x2e, 0x67, 0x6f, 0x2e, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x2e, 0x72, 1224 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 1225 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x67, 0x6f, 0x2e, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x2e, 1226 0x72, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 1227 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x47, 0x0a, 0x04, 0x52, 0x65, 0x61, 0x64, 1228 0x12, 0x1d, 0x2e, 0x67, 0x6f, 0x2e, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x2e, 0x72, 0x75, 0x6e, 0x74, 1229 0x69, 0x6d, 0x65, 0x2e, 0x52, 0x65, 0x61, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 1230 0x1e, 0x2e, 0x67, 0x6f, 0x2e, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x2e, 0x72, 0x75, 0x6e, 0x74, 0x69, 1231 0x6d, 0x65, 0x2e, 0x52, 0x65, 0x61, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 1232 0x00, 0x12, 0x4d, 0x0a, 0x06, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x1f, 0x2e, 0x67, 0x6f, 1233 0x2e, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x2e, 0x72, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x44, 1234 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x67, 1235 0x6f, 0x2e, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x2e, 0x72, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x2e, 1236 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 1237 0x12, 0x4d, 0x0a, 0x06, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x1f, 0x2e, 0x67, 0x6f, 0x2e, 1238 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x2e, 0x72, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x55, 0x70, 1239 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x67, 0x6f, 1240 0x2e, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x2e, 0x72, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x55, 1241 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 1242 0x46, 0x0a, 0x04, 0x4c, 0x6f, 0x67, 0x73, 0x12, 0x1d, 0x2e, 0x67, 0x6f, 0x2e, 0x6d, 0x69, 0x63, 1243 0x72, 0x6f, 0x2e, 0x72, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x4c, 0x6f, 0x67, 0x73, 0x52, 1244 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x67, 0x6f, 0x2e, 0x6d, 0x69, 0x63, 0x72, 1245 0x6f, 0x2e, 0x72, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x4c, 0x6f, 0x67, 0x52, 0x65, 0x63, 1246 0x6f, 0x72, 0x64, 0x22, 0x00, 0x30, 0x01, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 1247 } 1248 1249 var ( 1250 file_runtime_service_proto_runtime_proto_rawDescOnce sync.Once 1251 file_runtime_service_proto_runtime_proto_rawDescData = file_runtime_service_proto_runtime_proto_rawDesc 1252 ) 1253 1254 func file_runtime_service_proto_runtime_proto_rawDescGZIP() []byte { 1255 file_runtime_service_proto_runtime_proto_rawDescOnce.Do(func() { 1256 file_runtime_service_proto_runtime_proto_rawDescData = protoimpl.X.CompressGZIP(file_runtime_service_proto_runtime_proto_rawDescData) 1257 }) 1258 return file_runtime_service_proto_runtime_proto_rawDescData 1259 } 1260 1261 var file_runtime_service_proto_runtime_proto_msgTypes = make([]protoimpl.MessageInfo, 22) 1262 var file_runtime_service_proto_runtime_proto_goTypes = []interface{}{ 1263 (*Service)(nil), // 0: go.micro.runtime.Service 1264 (*Event)(nil), // 1: go.micro.runtime.Event 1265 (*CreateOptions)(nil), // 2: go.micro.runtime.CreateOptions 1266 (*CreateRequest)(nil), // 3: go.micro.runtime.CreateRequest 1267 (*CreateResponse)(nil), // 4: go.micro.runtime.CreateResponse 1268 (*ReadOptions)(nil), // 5: go.micro.runtime.ReadOptions 1269 (*ReadRequest)(nil), // 6: go.micro.runtime.ReadRequest 1270 (*ReadResponse)(nil), // 7: go.micro.runtime.ReadResponse 1271 (*DeleteOptions)(nil), // 8: go.micro.runtime.DeleteOptions 1272 (*DeleteRequest)(nil), // 9: go.micro.runtime.DeleteRequest 1273 (*DeleteResponse)(nil), // 10: go.micro.runtime.DeleteResponse 1274 (*UpdateOptions)(nil), // 11: go.micro.runtime.UpdateOptions 1275 (*UpdateRequest)(nil), // 12: go.micro.runtime.UpdateRequest 1276 (*UpdateResponse)(nil), // 13: go.micro.runtime.UpdateResponse 1277 (*ListOptions)(nil), // 14: go.micro.runtime.ListOptions 1278 (*ListRequest)(nil), // 15: go.micro.runtime.ListRequest 1279 (*ListResponse)(nil), // 16: go.micro.runtime.ListResponse 1280 (*LogsOptions)(nil), // 17: go.micro.runtime.LogsOptions 1281 (*LogsRequest)(nil), // 18: go.micro.runtime.LogsRequest 1282 (*LogRecord)(nil), // 19: go.micro.runtime.LogRecord 1283 nil, // 20: go.micro.runtime.Service.MetadataEntry 1284 nil, // 21: go.micro.runtime.LogRecord.MetadataEntry 1285 } 1286 var file_runtime_service_proto_runtime_proto_depIdxs = []int32{ 1287 20, // 0: go.micro.runtime.Service.metadata:type_name -> go.micro.runtime.Service.MetadataEntry 1288 0, // 1: go.micro.runtime.CreateRequest.service:type_name -> go.micro.runtime.Service 1289 2, // 2: go.micro.runtime.CreateRequest.options:type_name -> go.micro.runtime.CreateOptions 1290 5, // 3: go.micro.runtime.ReadRequest.options:type_name -> go.micro.runtime.ReadOptions 1291 0, // 4: go.micro.runtime.ReadResponse.services:type_name -> go.micro.runtime.Service 1292 0, // 5: go.micro.runtime.DeleteRequest.service:type_name -> go.micro.runtime.Service 1293 8, // 6: go.micro.runtime.DeleteRequest.options:type_name -> go.micro.runtime.DeleteOptions 1294 0, // 7: go.micro.runtime.UpdateRequest.service:type_name -> go.micro.runtime.Service 1295 11, // 8: go.micro.runtime.UpdateRequest.options:type_name -> go.micro.runtime.UpdateOptions 1296 14, // 9: go.micro.runtime.ListRequest.options:type_name -> go.micro.runtime.ListOptions 1297 0, // 10: go.micro.runtime.ListResponse.services:type_name -> go.micro.runtime.Service 1298 17, // 11: go.micro.runtime.LogsRequest.options:type_name -> go.micro.runtime.LogsOptions 1299 21, // 12: go.micro.runtime.LogRecord.metadata:type_name -> go.micro.runtime.LogRecord.MetadataEntry 1300 3, // 13: go.micro.runtime.Runtime.Create:input_type -> go.micro.runtime.CreateRequest 1301 6, // 14: go.micro.runtime.Runtime.Read:input_type -> go.micro.runtime.ReadRequest 1302 9, // 15: go.micro.runtime.Runtime.Delete:input_type -> go.micro.runtime.DeleteRequest 1303 12, // 16: go.micro.runtime.Runtime.Update:input_type -> go.micro.runtime.UpdateRequest 1304 18, // 17: go.micro.runtime.Runtime.Logs:input_type -> go.micro.runtime.LogsRequest 1305 4, // 18: go.micro.runtime.Runtime.Create:output_type -> go.micro.runtime.CreateResponse 1306 7, // 19: go.micro.runtime.Runtime.Read:output_type -> go.micro.runtime.ReadResponse 1307 10, // 20: go.micro.runtime.Runtime.Delete:output_type -> go.micro.runtime.DeleteResponse 1308 13, // 21: go.micro.runtime.Runtime.Update:output_type -> go.micro.runtime.UpdateResponse 1309 19, // 22: go.micro.runtime.Runtime.Logs:output_type -> go.micro.runtime.LogRecord 1310 18, // [18:23] is the sub-list for method output_type 1311 13, // [13:18] is the sub-list for method input_type 1312 13, // [13:13] is the sub-list for extension type_name 1313 13, // [13:13] is the sub-list for extension extendee 1314 0, // [0:13] is the sub-list for field type_name 1315 } 1316 1317 func init() { file_runtime_service_proto_runtime_proto_init() } 1318 func file_runtime_service_proto_runtime_proto_init() { 1319 if File_runtime_service_proto_runtime_proto != nil { 1320 return 1321 } 1322 if !protoimpl.UnsafeEnabled { 1323 file_runtime_service_proto_runtime_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 1324 switch v := v.(*Service); i { 1325 case 0: 1326 return &v.state 1327 case 1: 1328 return &v.sizeCache 1329 case 2: 1330 return &v.unknownFields 1331 default: 1332 return nil 1333 } 1334 } 1335 file_runtime_service_proto_runtime_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 1336 switch v := v.(*Event); i { 1337 case 0: 1338 return &v.state 1339 case 1: 1340 return &v.sizeCache 1341 case 2: 1342 return &v.unknownFields 1343 default: 1344 return nil 1345 } 1346 } 1347 file_runtime_service_proto_runtime_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 1348 switch v := v.(*CreateOptions); i { 1349 case 0: 1350 return &v.state 1351 case 1: 1352 return &v.sizeCache 1353 case 2: 1354 return &v.unknownFields 1355 default: 1356 return nil 1357 } 1358 } 1359 file_runtime_service_proto_runtime_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 1360 switch v := v.(*CreateRequest); i { 1361 case 0: 1362 return &v.state 1363 case 1: 1364 return &v.sizeCache 1365 case 2: 1366 return &v.unknownFields 1367 default: 1368 return nil 1369 } 1370 } 1371 file_runtime_service_proto_runtime_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { 1372 switch v := v.(*CreateResponse); i { 1373 case 0: 1374 return &v.state 1375 case 1: 1376 return &v.sizeCache 1377 case 2: 1378 return &v.unknownFields 1379 default: 1380 return nil 1381 } 1382 } 1383 file_runtime_service_proto_runtime_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { 1384 switch v := v.(*ReadOptions); i { 1385 case 0: 1386 return &v.state 1387 case 1: 1388 return &v.sizeCache 1389 case 2: 1390 return &v.unknownFields 1391 default: 1392 return nil 1393 } 1394 } 1395 file_runtime_service_proto_runtime_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { 1396 switch v := v.(*ReadRequest); i { 1397 case 0: 1398 return &v.state 1399 case 1: 1400 return &v.sizeCache 1401 case 2: 1402 return &v.unknownFields 1403 default: 1404 return nil 1405 } 1406 } 1407 file_runtime_service_proto_runtime_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { 1408 switch v := v.(*ReadResponse); i { 1409 case 0: 1410 return &v.state 1411 case 1: 1412 return &v.sizeCache 1413 case 2: 1414 return &v.unknownFields 1415 default: 1416 return nil 1417 } 1418 } 1419 file_runtime_service_proto_runtime_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { 1420 switch v := v.(*DeleteOptions); i { 1421 case 0: 1422 return &v.state 1423 case 1: 1424 return &v.sizeCache 1425 case 2: 1426 return &v.unknownFields 1427 default: 1428 return nil 1429 } 1430 } 1431 file_runtime_service_proto_runtime_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { 1432 switch v := v.(*DeleteRequest); i { 1433 case 0: 1434 return &v.state 1435 case 1: 1436 return &v.sizeCache 1437 case 2: 1438 return &v.unknownFields 1439 default: 1440 return nil 1441 } 1442 } 1443 file_runtime_service_proto_runtime_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { 1444 switch v := v.(*DeleteResponse); i { 1445 case 0: 1446 return &v.state 1447 case 1: 1448 return &v.sizeCache 1449 case 2: 1450 return &v.unknownFields 1451 default: 1452 return nil 1453 } 1454 } 1455 file_runtime_service_proto_runtime_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { 1456 switch v := v.(*UpdateOptions); i { 1457 case 0: 1458 return &v.state 1459 case 1: 1460 return &v.sizeCache 1461 case 2: 1462 return &v.unknownFields 1463 default: 1464 return nil 1465 } 1466 } 1467 file_runtime_service_proto_runtime_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { 1468 switch v := v.(*UpdateRequest); i { 1469 case 0: 1470 return &v.state 1471 case 1: 1472 return &v.sizeCache 1473 case 2: 1474 return &v.unknownFields 1475 default: 1476 return nil 1477 } 1478 } 1479 file_runtime_service_proto_runtime_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { 1480 switch v := v.(*UpdateResponse); i { 1481 case 0: 1482 return &v.state 1483 case 1: 1484 return &v.sizeCache 1485 case 2: 1486 return &v.unknownFields 1487 default: 1488 return nil 1489 } 1490 } 1491 file_runtime_service_proto_runtime_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { 1492 switch v := v.(*ListOptions); i { 1493 case 0: 1494 return &v.state 1495 case 1: 1496 return &v.sizeCache 1497 case 2: 1498 return &v.unknownFields 1499 default: 1500 return nil 1501 } 1502 } 1503 file_runtime_service_proto_runtime_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { 1504 switch v := v.(*ListRequest); i { 1505 case 0: 1506 return &v.state 1507 case 1: 1508 return &v.sizeCache 1509 case 2: 1510 return &v.unknownFields 1511 default: 1512 return nil 1513 } 1514 } 1515 file_runtime_service_proto_runtime_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { 1516 switch v := v.(*ListResponse); i { 1517 case 0: 1518 return &v.state 1519 case 1: 1520 return &v.sizeCache 1521 case 2: 1522 return &v.unknownFields 1523 default: 1524 return nil 1525 } 1526 } 1527 file_runtime_service_proto_runtime_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { 1528 switch v := v.(*LogsOptions); i { 1529 case 0: 1530 return &v.state 1531 case 1: 1532 return &v.sizeCache 1533 case 2: 1534 return &v.unknownFields 1535 default: 1536 return nil 1537 } 1538 } 1539 file_runtime_service_proto_runtime_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { 1540 switch v := v.(*LogsRequest); i { 1541 case 0: 1542 return &v.state 1543 case 1: 1544 return &v.sizeCache 1545 case 2: 1546 return &v.unknownFields 1547 default: 1548 return nil 1549 } 1550 } 1551 file_runtime_service_proto_runtime_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { 1552 switch v := v.(*LogRecord); i { 1553 case 0: 1554 return &v.state 1555 case 1: 1556 return &v.sizeCache 1557 case 2: 1558 return &v.unknownFields 1559 default: 1560 return nil 1561 } 1562 } 1563 } 1564 type x struct{} 1565 out := protoimpl.TypeBuilder{ 1566 File: protoimpl.DescBuilder{ 1567 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 1568 RawDescriptor: file_runtime_service_proto_runtime_proto_rawDesc, 1569 NumEnums: 0, 1570 NumMessages: 22, 1571 NumExtensions: 0, 1572 NumServices: 1, 1573 }, 1574 GoTypes: file_runtime_service_proto_runtime_proto_goTypes, 1575 DependencyIndexes: file_runtime_service_proto_runtime_proto_depIdxs, 1576 MessageInfos: file_runtime_service_proto_runtime_proto_msgTypes, 1577 }.Build() 1578 File_runtime_service_proto_runtime_proto = out.File 1579 file_runtime_service_proto_runtime_proto_rawDesc = nil 1580 file_runtime_service_proto_runtime_proto_goTypes = nil 1581 file_runtime_service_proto_runtime_proto_depIdxs = nil 1582 } 1583 1584 // Reference imports to suppress errors if they are not otherwise used. 1585 var _ context.Context 1586 var _ grpc.ClientConnInterface 1587 1588 // This is a compile-time assertion to ensure that this generated file 1589 // is compatible with the grpc package it is being compiled against. 1590 const _ = grpc.SupportPackageIsVersion6 1591 1592 // RuntimeClient is the client API for Runtime service. 1593 // 1594 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 1595 type RuntimeClient interface { 1596 Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error) 1597 Read(ctx context.Context, in *ReadRequest, opts ...grpc.CallOption) (*ReadResponse, error) 1598 Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error) 1599 Update(ctx context.Context, in *UpdateRequest, opts ...grpc.CallOption) (*UpdateResponse, error) 1600 Logs(ctx context.Context, in *LogsRequest, opts ...grpc.CallOption) (Runtime_LogsClient, error) 1601 } 1602 1603 type runtimeClient struct { 1604 cc grpc.ClientConnInterface 1605 } 1606 1607 func NewRuntimeClient(cc grpc.ClientConnInterface) RuntimeClient { 1608 return &runtimeClient{cc} 1609 } 1610 1611 func (c *runtimeClient) Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error) { 1612 out := new(CreateResponse) 1613 err := c.cc.Invoke(ctx, "/go.micro.runtime.Runtime/Create", in, out, opts...) 1614 if err != nil { 1615 return nil, err 1616 } 1617 return out, nil 1618 } 1619 1620 func (c *runtimeClient) Read(ctx context.Context, in *ReadRequest, opts ...grpc.CallOption) (*ReadResponse, error) { 1621 out := new(ReadResponse) 1622 err := c.cc.Invoke(ctx, "/go.micro.runtime.Runtime/Read", in, out, opts...) 1623 if err != nil { 1624 return nil, err 1625 } 1626 return out, nil 1627 } 1628 1629 func (c *runtimeClient) Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error) { 1630 out := new(DeleteResponse) 1631 err := c.cc.Invoke(ctx, "/go.micro.runtime.Runtime/Delete", in, out, opts...) 1632 if err != nil { 1633 return nil, err 1634 } 1635 return out, nil 1636 } 1637 1638 func (c *runtimeClient) Update(ctx context.Context, in *UpdateRequest, opts ...grpc.CallOption) (*UpdateResponse, error) { 1639 out := new(UpdateResponse) 1640 err := c.cc.Invoke(ctx, "/go.micro.runtime.Runtime/Update", in, out, opts...) 1641 if err != nil { 1642 return nil, err 1643 } 1644 return out, nil 1645 } 1646 1647 func (c *runtimeClient) Logs(ctx context.Context, in *LogsRequest, opts ...grpc.CallOption) (Runtime_LogsClient, error) { 1648 stream, err := c.cc.NewStream(ctx, &_Runtime_serviceDesc.Streams[0], "/go.micro.runtime.Runtime/Logs", opts...) 1649 if err != nil { 1650 return nil, err 1651 } 1652 x := &runtimeLogsClient{stream} 1653 if err := x.ClientStream.SendMsg(in); err != nil { 1654 return nil, err 1655 } 1656 if err := x.ClientStream.CloseSend(); err != nil { 1657 return nil, err 1658 } 1659 return x, nil 1660 } 1661 1662 type Runtime_LogsClient interface { 1663 Recv() (*LogRecord, error) 1664 grpc.ClientStream 1665 } 1666 1667 type runtimeLogsClient struct { 1668 grpc.ClientStream 1669 } 1670 1671 func (x *runtimeLogsClient) Recv() (*LogRecord, error) { 1672 m := new(LogRecord) 1673 if err := x.ClientStream.RecvMsg(m); err != nil { 1674 return nil, err 1675 } 1676 return m, nil 1677 } 1678 1679 // RuntimeServer is the server API for Runtime service. 1680 type RuntimeServer interface { 1681 Create(context.Context, *CreateRequest) (*CreateResponse, error) 1682 Read(context.Context, *ReadRequest) (*ReadResponse, error) 1683 Delete(context.Context, *DeleteRequest) (*DeleteResponse, error) 1684 Update(context.Context, *UpdateRequest) (*UpdateResponse, error) 1685 Logs(*LogsRequest, Runtime_LogsServer) error 1686 } 1687 1688 // UnimplementedRuntimeServer can be embedded to have forward compatible implementations. 1689 type UnimplementedRuntimeServer struct { 1690 } 1691 1692 func (*UnimplementedRuntimeServer) Create(context.Context, *CreateRequest) (*CreateResponse, error) { 1693 return nil, status.Errorf(codes.Unimplemented, "method Create not implemented") 1694 } 1695 func (*UnimplementedRuntimeServer) Read(context.Context, *ReadRequest) (*ReadResponse, error) { 1696 return nil, status.Errorf(codes.Unimplemented, "method Read not implemented") 1697 } 1698 func (*UnimplementedRuntimeServer) Delete(context.Context, *DeleteRequest) (*DeleteResponse, error) { 1699 return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented") 1700 } 1701 func (*UnimplementedRuntimeServer) Update(context.Context, *UpdateRequest) (*UpdateResponse, error) { 1702 return nil, status.Errorf(codes.Unimplemented, "method Update not implemented") 1703 } 1704 func (*UnimplementedRuntimeServer) Logs(*LogsRequest, Runtime_LogsServer) error { 1705 return status.Errorf(codes.Unimplemented, "method Logs not implemented") 1706 } 1707 1708 func RegisterRuntimeServer(s *grpc.Server, srv RuntimeServer) { 1709 s.RegisterService(&_Runtime_serviceDesc, srv) 1710 } 1711 1712 func _Runtime_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1713 in := new(CreateRequest) 1714 if err := dec(in); err != nil { 1715 return nil, err 1716 } 1717 if interceptor == nil { 1718 return srv.(RuntimeServer).Create(ctx, in) 1719 } 1720 info := &grpc.UnaryServerInfo{ 1721 Server: srv, 1722 FullMethod: "/go.micro.runtime.Runtime/Create", 1723 } 1724 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1725 return srv.(RuntimeServer).Create(ctx, req.(*CreateRequest)) 1726 } 1727 return interceptor(ctx, in, info, handler) 1728 } 1729 1730 func _Runtime_Read_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1731 in := new(ReadRequest) 1732 if err := dec(in); err != nil { 1733 return nil, err 1734 } 1735 if interceptor == nil { 1736 return srv.(RuntimeServer).Read(ctx, in) 1737 } 1738 info := &grpc.UnaryServerInfo{ 1739 Server: srv, 1740 FullMethod: "/go.micro.runtime.Runtime/Read", 1741 } 1742 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1743 return srv.(RuntimeServer).Read(ctx, req.(*ReadRequest)) 1744 } 1745 return interceptor(ctx, in, info, handler) 1746 } 1747 1748 func _Runtime_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1749 in := new(DeleteRequest) 1750 if err := dec(in); err != nil { 1751 return nil, err 1752 } 1753 if interceptor == nil { 1754 return srv.(RuntimeServer).Delete(ctx, in) 1755 } 1756 info := &grpc.UnaryServerInfo{ 1757 Server: srv, 1758 FullMethod: "/go.micro.runtime.Runtime/Delete", 1759 } 1760 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1761 return srv.(RuntimeServer).Delete(ctx, req.(*DeleteRequest)) 1762 } 1763 return interceptor(ctx, in, info, handler) 1764 } 1765 1766 func _Runtime_Update_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1767 in := new(UpdateRequest) 1768 if err := dec(in); err != nil { 1769 return nil, err 1770 } 1771 if interceptor == nil { 1772 return srv.(RuntimeServer).Update(ctx, in) 1773 } 1774 info := &grpc.UnaryServerInfo{ 1775 Server: srv, 1776 FullMethod: "/go.micro.runtime.Runtime/Update", 1777 } 1778 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1779 return srv.(RuntimeServer).Update(ctx, req.(*UpdateRequest)) 1780 } 1781 return interceptor(ctx, in, info, handler) 1782 } 1783 1784 func _Runtime_Logs_Handler(srv interface{}, stream grpc.ServerStream) error { 1785 m := new(LogsRequest) 1786 if err := stream.RecvMsg(m); err != nil { 1787 return err 1788 } 1789 return srv.(RuntimeServer).Logs(m, &runtimeLogsServer{stream}) 1790 } 1791 1792 type Runtime_LogsServer interface { 1793 Send(*LogRecord) error 1794 grpc.ServerStream 1795 } 1796 1797 type runtimeLogsServer struct { 1798 grpc.ServerStream 1799 } 1800 1801 func (x *runtimeLogsServer) Send(m *LogRecord) error { 1802 return x.ServerStream.SendMsg(m) 1803 } 1804 1805 var _Runtime_serviceDesc = grpc.ServiceDesc{ 1806 ServiceName: "go.micro.runtime.Runtime", 1807 HandlerType: (*RuntimeServer)(nil), 1808 Methods: []grpc.MethodDesc{ 1809 { 1810 MethodName: "Create", 1811 Handler: _Runtime_Create_Handler, 1812 }, 1813 { 1814 MethodName: "Read", 1815 Handler: _Runtime_Read_Handler, 1816 }, 1817 { 1818 MethodName: "Delete", 1819 Handler: _Runtime_Delete_Handler, 1820 }, 1821 { 1822 MethodName: "Update", 1823 Handler: _Runtime_Update_Handler, 1824 }, 1825 }, 1826 Streams: []grpc.StreamDesc{ 1827 { 1828 StreamName: "Logs", 1829 Handler: _Runtime_Logs_Handler, 1830 ServerStreams: true, 1831 }, 1832 }, 1833 Metadata: "runtime/service/proto/runtime.proto", 1834 }