github.com/micro/go-micro/v2@v2.9.1/runtime/service/proto/runtime.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // source: runtime/service/proto/runtime.proto 3 4 package go_micro_runtime 5 6 import ( 7 context "context" 8 fmt "fmt" 9 proto "github.com/golang/protobuf/proto" 10 grpc "google.golang.org/grpc" 11 codes "google.golang.org/grpc/codes" 12 status "google.golang.org/grpc/status" 13 math "math" 14 ) 15 16 // Reference imports to suppress errors if they are not otherwise used. 17 var _ = proto.Marshal 18 var _ = fmt.Errorf 19 var _ = math.Inf 20 21 // This is a compile-time assertion to ensure that this generated file 22 // is compatible with the proto package it is being compiled against. 23 // A compilation error at this line likely means your copy of the 24 // proto package needs to be updated. 25 const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package 26 27 type Service struct { 28 // name of the service 29 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 30 // version of the service 31 Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` 32 // git url of the source 33 Source string `protobuf:"bytes,3,opt,name=source,proto3" json:"source,omitempty"` 34 // service metadata 35 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"` 36 XXX_NoUnkeyedLiteral struct{} `json:"-"` 37 XXX_unrecognized []byte `json:"-"` 38 XXX_sizecache int32 `json:"-"` 39 } 40 41 func (m *Service) Reset() { *m = Service{} } 42 func (m *Service) String() string { return proto.CompactTextString(m) } 43 func (*Service) ProtoMessage() {} 44 func (*Service) Descriptor() ([]byte, []int) { 45 return fileDescriptor_2434d8152598889b, []int{0} 46 } 47 48 func (m *Service) XXX_Unmarshal(b []byte) error { 49 return xxx_messageInfo_Service.Unmarshal(m, b) 50 } 51 func (m *Service) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 52 return xxx_messageInfo_Service.Marshal(b, m, deterministic) 53 } 54 func (m *Service) XXX_Merge(src proto.Message) { 55 xxx_messageInfo_Service.Merge(m, src) 56 } 57 func (m *Service) XXX_Size() int { 58 return xxx_messageInfo_Service.Size(m) 59 } 60 func (m *Service) XXX_DiscardUnknown() { 61 xxx_messageInfo_Service.DiscardUnknown(m) 62 } 63 64 var xxx_messageInfo_Service proto.InternalMessageInfo 65 66 func (m *Service) GetName() string { 67 if m != nil { 68 return m.Name 69 } 70 return "" 71 } 72 73 func (m *Service) GetVersion() string { 74 if m != nil { 75 return m.Version 76 } 77 return "" 78 } 79 80 func (m *Service) GetSource() string { 81 if m != nil { 82 return m.Source 83 } 84 return "" 85 } 86 87 func (m *Service) GetMetadata() map[string]string { 88 if m != nil { 89 return m.Metadata 90 } 91 return nil 92 } 93 94 type Event struct { 95 Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` 96 Timestamp int64 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` 97 Service string `protobuf:"bytes,3,opt,name=service,proto3" json:"service,omitempty"` 98 Version string `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"` 99 XXX_NoUnkeyedLiteral struct{} `json:"-"` 100 XXX_unrecognized []byte `json:"-"` 101 XXX_sizecache int32 `json:"-"` 102 } 103 104 func (m *Event) Reset() { *m = Event{} } 105 func (m *Event) String() string { return proto.CompactTextString(m) } 106 func (*Event) ProtoMessage() {} 107 func (*Event) Descriptor() ([]byte, []int) { 108 return fileDescriptor_2434d8152598889b, []int{1} 109 } 110 111 func (m *Event) XXX_Unmarshal(b []byte) error { 112 return xxx_messageInfo_Event.Unmarshal(m, b) 113 } 114 func (m *Event) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 115 return xxx_messageInfo_Event.Marshal(b, m, deterministic) 116 } 117 func (m *Event) XXX_Merge(src proto.Message) { 118 xxx_messageInfo_Event.Merge(m, src) 119 } 120 func (m *Event) XXX_Size() int { 121 return xxx_messageInfo_Event.Size(m) 122 } 123 func (m *Event) XXX_DiscardUnknown() { 124 xxx_messageInfo_Event.DiscardUnknown(m) 125 } 126 127 var xxx_messageInfo_Event proto.InternalMessageInfo 128 129 func (m *Event) GetType() string { 130 if m != nil { 131 return m.Type 132 } 133 return "" 134 } 135 136 func (m *Event) GetTimestamp() int64 { 137 if m != nil { 138 return m.Timestamp 139 } 140 return 0 141 } 142 143 func (m *Event) GetService() string { 144 if m != nil { 145 return m.Service 146 } 147 return "" 148 } 149 150 func (m *Event) GetVersion() string { 151 if m != nil { 152 return m.Version 153 } 154 return "" 155 } 156 157 type CreateOptions struct { 158 // command to pass in 159 Command []string `protobuf:"bytes,1,rep,name=command,proto3" json:"command,omitempty"` 160 // args to pass into command 161 Args []string `protobuf:"bytes,2,rep,name=args,proto3" json:"args,omitempty"` 162 // environment to pass in 163 Env []string `protobuf:"bytes,3,rep,name=env,proto3" json:"env,omitempty"` 164 // output to send to 165 Output string `protobuf:"bytes,4,opt,name=output,proto3" json:"output,omitempty"` 166 // create type of service 167 Type string `protobuf:"bytes,5,opt,name=type,proto3" json:"type,omitempty"` 168 // image to use 169 Image string `protobuf:"bytes,6,opt,name=image,proto3" json:"image,omitempty"` 170 XXX_NoUnkeyedLiteral struct{} `json:"-"` 171 XXX_unrecognized []byte `json:"-"` 172 XXX_sizecache int32 `json:"-"` 173 } 174 175 func (m *CreateOptions) Reset() { *m = CreateOptions{} } 176 func (m *CreateOptions) String() string { return proto.CompactTextString(m) } 177 func (*CreateOptions) ProtoMessage() {} 178 func (*CreateOptions) Descriptor() ([]byte, []int) { 179 return fileDescriptor_2434d8152598889b, []int{2} 180 } 181 182 func (m *CreateOptions) XXX_Unmarshal(b []byte) error { 183 return xxx_messageInfo_CreateOptions.Unmarshal(m, b) 184 } 185 func (m *CreateOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 186 return xxx_messageInfo_CreateOptions.Marshal(b, m, deterministic) 187 } 188 func (m *CreateOptions) XXX_Merge(src proto.Message) { 189 xxx_messageInfo_CreateOptions.Merge(m, src) 190 } 191 func (m *CreateOptions) XXX_Size() int { 192 return xxx_messageInfo_CreateOptions.Size(m) 193 } 194 func (m *CreateOptions) XXX_DiscardUnknown() { 195 xxx_messageInfo_CreateOptions.DiscardUnknown(m) 196 } 197 198 var xxx_messageInfo_CreateOptions proto.InternalMessageInfo 199 200 func (m *CreateOptions) GetCommand() []string { 201 if m != nil { 202 return m.Command 203 } 204 return nil 205 } 206 207 func (m *CreateOptions) GetArgs() []string { 208 if m != nil { 209 return m.Args 210 } 211 return nil 212 } 213 214 func (m *CreateOptions) GetEnv() []string { 215 if m != nil { 216 return m.Env 217 } 218 return nil 219 } 220 221 func (m *CreateOptions) GetOutput() string { 222 if m != nil { 223 return m.Output 224 } 225 return "" 226 } 227 228 func (m *CreateOptions) GetType() string { 229 if m != nil { 230 return m.Type 231 } 232 return "" 233 } 234 235 func (m *CreateOptions) GetImage() string { 236 if m != nil { 237 return m.Image 238 } 239 return "" 240 } 241 242 type CreateRequest struct { 243 Service *Service `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"` 244 Options *CreateOptions `protobuf:"bytes,2,opt,name=options,proto3" json:"options,omitempty"` 245 XXX_NoUnkeyedLiteral struct{} `json:"-"` 246 XXX_unrecognized []byte `json:"-"` 247 XXX_sizecache int32 `json:"-"` 248 } 249 250 func (m *CreateRequest) Reset() { *m = CreateRequest{} } 251 func (m *CreateRequest) String() string { return proto.CompactTextString(m) } 252 func (*CreateRequest) ProtoMessage() {} 253 func (*CreateRequest) Descriptor() ([]byte, []int) { 254 return fileDescriptor_2434d8152598889b, []int{3} 255 } 256 257 func (m *CreateRequest) XXX_Unmarshal(b []byte) error { 258 return xxx_messageInfo_CreateRequest.Unmarshal(m, b) 259 } 260 func (m *CreateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 261 return xxx_messageInfo_CreateRequest.Marshal(b, m, deterministic) 262 } 263 func (m *CreateRequest) XXX_Merge(src proto.Message) { 264 xxx_messageInfo_CreateRequest.Merge(m, src) 265 } 266 func (m *CreateRequest) XXX_Size() int { 267 return xxx_messageInfo_CreateRequest.Size(m) 268 } 269 func (m *CreateRequest) XXX_DiscardUnknown() { 270 xxx_messageInfo_CreateRequest.DiscardUnknown(m) 271 } 272 273 var xxx_messageInfo_CreateRequest proto.InternalMessageInfo 274 275 func (m *CreateRequest) GetService() *Service { 276 if m != nil { 277 return m.Service 278 } 279 return nil 280 } 281 282 func (m *CreateRequest) GetOptions() *CreateOptions { 283 if m != nil { 284 return m.Options 285 } 286 return nil 287 } 288 289 type CreateResponse struct { 290 XXX_NoUnkeyedLiteral struct{} `json:"-"` 291 XXX_unrecognized []byte `json:"-"` 292 XXX_sizecache int32 `json:"-"` 293 } 294 295 func (m *CreateResponse) Reset() { *m = CreateResponse{} } 296 func (m *CreateResponse) String() string { return proto.CompactTextString(m) } 297 func (*CreateResponse) ProtoMessage() {} 298 func (*CreateResponse) Descriptor() ([]byte, []int) { 299 return fileDescriptor_2434d8152598889b, []int{4} 300 } 301 302 func (m *CreateResponse) XXX_Unmarshal(b []byte) error { 303 return xxx_messageInfo_CreateResponse.Unmarshal(m, b) 304 } 305 func (m *CreateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 306 return xxx_messageInfo_CreateResponse.Marshal(b, m, deterministic) 307 } 308 func (m *CreateResponse) XXX_Merge(src proto.Message) { 309 xxx_messageInfo_CreateResponse.Merge(m, src) 310 } 311 func (m *CreateResponse) XXX_Size() int { 312 return xxx_messageInfo_CreateResponse.Size(m) 313 } 314 func (m *CreateResponse) XXX_DiscardUnknown() { 315 xxx_messageInfo_CreateResponse.DiscardUnknown(m) 316 } 317 318 var xxx_messageInfo_CreateResponse proto.InternalMessageInfo 319 320 type ReadOptions struct { 321 // service name 322 Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"` 323 // version of the service 324 Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` 325 // type of service 326 Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"` 327 XXX_NoUnkeyedLiteral struct{} `json:"-"` 328 XXX_unrecognized []byte `json:"-"` 329 XXX_sizecache int32 `json:"-"` 330 } 331 332 func (m *ReadOptions) Reset() { *m = ReadOptions{} } 333 func (m *ReadOptions) String() string { return proto.CompactTextString(m) } 334 func (*ReadOptions) ProtoMessage() {} 335 func (*ReadOptions) Descriptor() ([]byte, []int) { 336 return fileDescriptor_2434d8152598889b, []int{5} 337 } 338 339 func (m *ReadOptions) XXX_Unmarshal(b []byte) error { 340 return xxx_messageInfo_ReadOptions.Unmarshal(m, b) 341 } 342 func (m *ReadOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 343 return xxx_messageInfo_ReadOptions.Marshal(b, m, deterministic) 344 } 345 func (m *ReadOptions) XXX_Merge(src proto.Message) { 346 xxx_messageInfo_ReadOptions.Merge(m, src) 347 } 348 func (m *ReadOptions) XXX_Size() int { 349 return xxx_messageInfo_ReadOptions.Size(m) 350 } 351 func (m *ReadOptions) XXX_DiscardUnknown() { 352 xxx_messageInfo_ReadOptions.DiscardUnknown(m) 353 } 354 355 var xxx_messageInfo_ReadOptions proto.InternalMessageInfo 356 357 func (m *ReadOptions) GetService() string { 358 if m != nil { 359 return m.Service 360 } 361 return "" 362 } 363 364 func (m *ReadOptions) GetVersion() string { 365 if m != nil { 366 return m.Version 367 } 368 return "" 369 } 370 371 func (m *ReadOptions) GetType() string { 372 if m != nil { 373 return m.Type 374 } 375 return "" 376 } 377 378 type ReadRequest struct { 379 Options *ReadOptions `protobuf:"bytes,1,opt,name=options,proto3" json:"options,omitempty"` 380 XXX_NoUnkeyedLiteral struct{} `json:"-"` 381 XXX_unrecognized []byte `json:"-"` 382 XXX_sizecache int32 `json:"-"` 383 } 384 385 func (m *ReadRequest) Reset() { *m = ReadRequest{} } 386 func (m *ReadRequest) String() string { return proto.CompactTextString(m) } 387 func (*ReadRequest) ProtoMessage() {} 388 func (*ReadRequest) Descriptor() ([]byte, []int) { 389 return fileDescriptor_2434d8152598889b, []int{6} 390 } 391 392 func (m *ReadRequest) XXX_Unmarshal(b []byte) error { 393 return xxx_messageInfo_ReadRequest.Unmarshal(m, b) 394 } 395 func (m *ReadRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 396 return xxx_messageInfo_ReadRequest.Marshal(b, m, deterministic) 397 } 398 func (m *ReadRequest) XXX_Merge(src proto.Message) { 399 xxx_messageInfo_ReadRequest.Merge(m, src) 400 } 401 func (m *ReadRequest) XXX_Size() int { 402 return xxx_messageInfo_ReadRequest.Size(m) 403 } 404 func (m *ReadRequest) XXX_DiscardUnknown() { 405 xxx_messageInfo_ReadRequest.DiscardUnknown(m) 406 } 407 408 var xxx_messageInfo_ReadRequest proto.InternalMessageInfo 409 410 func (m *ReadRequest) GetOptions() *ReadOptions { 411 if m != nil { 412 return m.Options 413 } 414 return nil 415 } 416 417 type ReadResponse struct { 418 Services []*Service `protobuf:"bytes,1,rep,name=services,proto3" json:"services,omitempty"` 419 XXX_NoUnkeyedLiteral struct{} `json:"-"` 420 XXX_unrecognized []byte `json:"-"` 421 XXX_sizecache int32 `json:"-"` 422 } 423 424 func (m *ReadResponse) Reset() { *m = ReadResponse{} } 425 func (m *ReadResponse) String() string { return proto.CompactTextString(m) } 426 func (*ReadResponse) ProtoMessage() {} 427 func (*ReadResponse) Descriptor() ([]byte, []int) { 428 return fileDescriptor_2434d8152598889b, []int{7} 429 } 430 431 func (m *ReadResponse) XXX_Unmarshal(b []byte) error { 432 return xxx_messageInfo_ReadResponse.Unmarshal(m, b) 433 } 434 func (m *ReadResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 435 return xxx_messageInfo_ReadResponse.Marshal(b, m, deterministic) 436 } 437 func (m *ReadResponse) XXX_Merge(src proto.Message) { 438 xxx_messageInfo_ReadResponse.Merge(m, src) 439 } 440 func (m *ReadResponse) XXX_Size() int { 441 return xxx_messageInfo_ReadResponse.Size(m) 442 } 443 func (m *ReadResponse) XXX_DiscardUnknown() { 444 xxx_messageInfo_ReadResponse.DiscardUnknown(m) 445 } 446 447 var xxx_messageInfo_ReadResponse proto.InternalMessageInfo 448 449 func (m *ReadResponse) GetServices() []*Service { 450 if m != nil { 451 return m.Services 452 } 453 return nil 454 } 455 456 type DeleteOptions struct { 457 XXX_NoUnkeyedLiteral struct{} `json:"-"` 458 XXX_unrecognized []byte `json:"-"` 459 XXX_sizecache int32 `json:"-"` 460 } 461 462 func (m *DeleteOptions) Reset() { *m = DeleteOptions{} } 463 func (m *DeleteOptions) String() string { return proto.CompactTextString(m) } 464 func (*DeleteOptions) ProtoMessage() {} 465 func (*DeleteOptions) Descriptor() ([]byte, []int) { 466 return fileDescriptor_2434d8152598889b, []int{8} 467 } 468 469 func (m *DeleteOptions) XXX_Unmarshal(b []byte) error { 470 return xxx_messageInfo_DeleteOptions.Unmarshal(m, b) 471 } 472 func (m *DeleteOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 473 return xxx_messageInfo_DeleteOptions.Marshal(b, m, deterministic) 474 } 475 func (m *DeleteOptions) XXX_Merge(src proto.Message) { 476 xxx_messageInfo_DeleteOptions.Merge(m, src) 477 } 478 func (m *DeleteOptions) XXX_Size() int { 479 return xxx_messageInfo_DeleteOptions.Size(m) 480 } 481 func (m *DeleteOptions) XXX_DiscardUnknown() { 482 xxx_messageInfo_DeleteOptions.DiscardUnknown(m) 483 } 484 485 var xxx_messageInfo_DeleteOptions proto.InternalMessageInfo 486 487 type DeleteRequest struct { 488 Service *Service `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"` 489 Options *DeleteOptions `protobuf:"bytes,2,opt,name=options,proto3" json:"options,omitempty"` 490 XXX_NoUnkeyedLiteral struct{} `json:"-"` 491 XXX_unrecognized []byte `json:"-"` 492 XXX_sizecache int32 `json:"-"` 493 } 494 495 func (m *DeleteRequest) Reset() { *m = DeleteRequest{} } 496 func (m *DeleteRequest) String() string { return proto.CompactTextString(m) } 497 func (*DeleteRequest) ProtoMessage() {} 498 func (*DeleteRequest) Descriptor() ([]byte, []int) { 499 return fileDescriptor_2434d8152598889b, []int{9} 500 } 501 502 func (m *DeleteRequest) XXX_Unmarshal(b []byte) error { 503 return xxx_messageInfo_DeleteRequest.Unmarshal(m, b) 504 } 505 func (m *DeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 506 return xxx_messageInfo_DeleteRequest.Marshal(b, m, deterministic) 507 } 508 func (m *DeleteRequest) XXX_Merge(src proto.Message) { 509 xxx_messageInfo_DeleteRequest.Merge(m, src) 510 } 511 func (m *DeleteRequest) XXX_Size() int { 512 return xxx_messageInfo_DeleteRequest.Size(m) 513 } 514 func (m *DeleteRequest) XXX_DiscardUnknown() { 515 xxx_messageInfo_DeleteRequest.DiscardUnknown(m) 516 } 517 518 var xxx_messageInfo_DeleteRequest proto.InternalMessageInfo 519 520 func (m *DeleteRequest) GetService() *Service { 521 if m != nil { 522 return m.Service 523 } 524 return nil 525 } 526 527 func (m *DeleteRequest) GetOptions() *DeleteOptions { 528 if m != nil { 529 return m.Options 530 } 531 return nil 532 } 533 534 type DeleteResponse struct { 535 XXX_NoUnkeyedLiteral struct{} `json:"-"` 536 XXX_unrecognized []byte `json:"-"` 537 XXX_sizecache int32 `json:"-"` 538 } 539 540 func (m *DeleteResponse) Reset() { *m = DeleteResponse{} } 541 func (m *DeleteResponse) String() string { return proto.CompactTextString(m) } 542 func (*DeleteResponse) ProtoMessage() {} 543 func (*DeleteResponse) Descriptor() ([]byte, []int) { 544 return fileDescriptor_2434d8152598889b, []int{10} 545 } 546 547 func (m *DeleteResponse) XXX_Unmarshal(b []byte) error { 548 return xxx_messageInfo_DeleteResponse.Unmarshal(m, b) 549 } 550 func (m *DeleteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 551 return xxx_messageInfo_DeleteResponse.Marshal(b, m, deterministic) 552 } 553 func (m *DeleteResponse) XXX_Merge(src proto.Message) { 554 xxx_messageInfo_DeleteResponse.Merge(m, src) 555 } 556 func (m *DeleteResponse) XXX_Size() int { 557 return xxx_messageInfo_DeleteResponse.Size(m) 558 } 559 func (m *DeleteResponse) XXX_DiscardUnknown() { 560 xxx_messageInfo_DeleteResponse.DiscardUnknown(m) 561 } 562 563 var xxx_messageInfo_DeleteResponse proto.InternalMessageInfo 564 565 type UpdateOptions struct { 566 XXX_NoUnkeyedLiteral struct{} `json:"-"` 567 XXX_unrecognized []byte `json:"-"` 568 XXX_sizecache int32 `json:"-"` 569 } 570 571 func (m *UpdateOptions) Reset() { *m = UpdateOptions{} } 572 func (m *UpdateOptions) String() string { return proto.CompactTextString(m) } 573 func (*UpdateOptions) ProtoMessage() {} 574 func (*UpdateOptions) Descriptor() ([]byte, []int) { 575 return fileDescriptor_2434d8152598889b, []int{11} 576 } 577 578 func (m *UpdateOptions) XXX_Unmarshal(b []byte) error { 579 return xxx_messageInfo_UpdateOptions.Unmarshal(m, b) 580 } 581 func (m *UpdateOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 582 return xxx_messageInfo_UpdateOptions.Marshal(b, m, deterministic) 583 } 584 func (m *UpdateOptions) XXX_Merge(src proto.Message) { 585 xxx_messageInfo_UpdateOptions.Merge(m, src) 586 } 587 func (m *UpdateOptions) XXX_Size() int { 588 return xxx_messageInfo_UpdateOptions.Size(m) 589 } 590 func (m *UpdateOptions) XXX_DiscardUnknown() { 591 xxx_messageInfo_UpdateOptions.DiscardUnknown(m) 592 } 593 594 var xxx_messageInfo_UpdateOptions proto.InternalMessageInfo 595 596 type UpdateRequest struct { 597 Service *Service `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"` 598 Options *UpdateOptions `protobuf:"bytes,2,opt,name=options,proto3" json:"options,omitempty"` 599 XXX_NoUnkeyedLiteral struct{} `json:"-"` 600 XXX_unrecognized []byte `json:"-"` 601 XXX_sizecache int32 `json:"-"` 602 } 603 604 func (m *UpdateRequest) Reset() { *m = UpdateRequest{} } 605 func (m *UpdateRequest) String() string { return proto.CompactTextString(m) } 606 func (*UpdateRequest) ProtoMessage() {} 607 func (*UpdateRequest) Descriptor() ([]byte, []int) { 608 return fileDescriptor_2434d8152598889b, []int{12} 609 } 610 611 func (m *UpdateRequest) XXX_Unmarshal(b []byte) error { 612 return xxx_messageInfo_UpdateRequest.Unmarshal(m, b) 613 } 614 func (m *UpdateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 615 return xxx_messageInfo_UpdateRequest.Marshal(b, m, deterministic) 616 } 617 func (m *UpdateRequest) XXX_Merge(src proto.Message) { 618 xxx_messageInfo_UpdateRequest.Merge(m, src) 619 } 620 func (m *UpdateRequest) XXX_Size() int { 621 return xxx_messageInfo_UpdateRequest.Size(m) 622 } 623 func (m *UpdateRequest) XXX_DiscardUnknown() { 624 xxx_messageInfo_UpdateRequest.DiscardUnknown(m) 625 } 626 627 var xxx_messageInfo_UpdateRequest proto.InternalMessageInfo 628 629 func (m *UpdateRequest) GetService() *Service { 630 if m != nil { 631 return m.Service 632 } 633 return nil 634 } 635 636 func (m *UpdateRequest) GetOptions() *UpdateOptions { 637 if m != nil { 638 return m.Options 639 } 640 return nil 641 } 642 643 type UpdateResponse struct { 644 XXX_NoUnkeyedLiteral struct{} `json:"-"` 645 XXX_unrecognized []byte `json:"-"` 646 XXX_sizecache int32 `json:"-"` 647 } 648 649 func (m *UpdateResponse) Reset() { *m = UpdateResponse{} } 650 func (m *UpdateResponse) String() string { return proto.CompactTextString(m) } 651 func (*UpdateResponse) ProtoMessage() {} 652 func (*UpdateResponse) Descriptor() ([]byte, []int) { 653 return fileDescriptor_2434d8152598889b, []int{13} 654 } 655 656 func (m *UpdateResponse) XXX_Unmarshal(b []byte) error { 657 return xxx_messageInfo_UpdateResponse.Unmarshal(m, b) 658 } 659 func (m *UpdateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 660 return xxx_messageInfo_UpdateResponse.Marshal(b, m, deterministic) 661 } 662 func (m *UpdateResponse) XXX_Merge(src proto.Message) { 663 xxx_messageInfo_UpdateResponse.Merge(m, src) 664 } 665 func (m *UpdateResponse) XXX_Size() int { 666 return xxx_messageInfo_UpdateResponse.Size(m) 667 } 668 func (m *UpdateResponse) XXX_DiscardUnknown() { 669 xxx_messageInfo_UpdateResponse.DiscardUnknown(m) 670 } 671 672 var xxx_messageInfo_UpdateResponse proto.InternalMessageInfo 673 674 type ListOptions struct { 675 XXX_NoUnkeyedLiteral struct{} `json:"-"` 676 XXX_unrecognized []byte `json:"-"` 677 XXX_sizecache int32 `json:"-"` 678 } 679 680 func (m *ListOptions) Reset() { *m = ListOptions{} } 681 func (m *ListOptions) String() string { return proto.CompactTextString(m) } 682 func (*ListOptions) ProtoMessage() {} 683 func (*ListOptions) Descriptor() ([]byte, []int) { 684 return fileDescriptor_2434d8152598889b, []int{14} 685 } 686 687 func (m *ListOptions) XXX_Unmarshal(b []byte) error { 688 return xxx_messageInfo_ListOptions.Unmarshal(m, b) 689 } 690 func (m *ListOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 691 return xxx_messageInfo_ListOptions.Marshal(b, m, deterministic) 692 } 693 func (m *ListOptions) XXX_Merge(src proto.Message) { 694 xxx_messageInfo_ListOptions.Merge(m, src) 695 } 696 func (m *ListOptions) XXX_Size() int { 697 return xxx_messageInfo_ListOptions.Size(m) 698 } 699 func (m *ListOptions) XXX_DiscardUnknown() { 700 xxx_messageInfo_ListOptions.DiscardUnknown(m) 701 } 702 703 var xxx_messageInfo_ListOptions proto.InternalMessageInfo 704 705 type ListRequest struct { 706 Options *ListOptions `protobuf:"bytes,1,opt,name=options,proto3" json:"options,omitempty"` 707 XXX_NoUnkeyedLiteral struct{} `json:"-"` 708 XXX_unrecognized []byte `json:"-"` 709 XXX_sizecache int32 `json:"-"` 710 } 711 712 func (m *ListRequest) Reset() { *m = ListRequest{} } 713 func (m *ListRequest) String() string { return proto.CompactTextString(m) } 714 func (*ListRequest) ProtoMessage() {} 715 func (*ListRequest) Descriptor() ([]byte, []int) { 716 return fileDescriptor_2434d8152598889b, []int{15} 717 } 718 719 func (m *ListRequest) XXX_Unmarshal(b []byte) error { 720 return xxx_messageInfo_ListRequest.Unmarshal(m, b) 721 } 722 func (m *ListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 723 return xxx_messageInfo_ListRequest.Marshal(b, m, deterministic) 724 } 725 func (m *ListRequest) XXX_Merge(src proto.Message) { 726 xxx_messageInfo_ListRequest.Merge(m, src) 727 } 728 func (m *ListRequest) XXX_Size() int { 729 return xxx_messageInfo_ListRequest.Size(m) 730 } 731 func (m *ListRequest) XXX_DiscardUnknown() { 732 xxx_messageInfo_ListRequest.DiscardUnknown(m) 733 } 734 735 var xxx_messageInfo_ListRequest proto.InternalMessageInfo 736 737 func (m *ListRequest) GetOptions() *ListOptions { 738 if m != nil { 739 return m.Options 740 } 741 return nil 742 } 743 744 type ListResponse struct { 745 Services []*Service `protobuf:"bytes,1,rep,name=services,proto3" json:"services,omitempty"` 746 XXX_NoUnkeyedLiteral struct{} `json:"-"` 747 XXX_unrecognized []byte `json:"-"` 748 XXX_sizecache int32 `json:"-"` 749 } 750 751 func (m *ListResponse) Reset() { *m = ListResponse{} } 752 func (m *ListResponse) String() string { return proto.CompactTextString(m) } 753 func (*ListResponse) ProtoMessage() {} 754 func (*ListResponse) Descriptor() ([]byte, []int) { 755 return fileDescriptor_2434d8152598889b, []int{16} 756 } 757 758 func (m *ListResponse) XXX_Unmarshal(b []byte) error { 759 return xxx_messageInfo_ListResponse.Unmarshal(m, b) 760 } 761 func (m *ListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 762 return xxx_messageInfo_ListResponse.Marshal(b, m, deterministic) 763 } 764 func (m *ListResponse) XXX_Merge(src proto.Message) { 765 xxx_messageInfo_ListResponse.Merge(m, src) 766 } 767 func (m *ListResponse) XXX_Size() int { 768 return xxx_messageInfo_ListResponse.Size(m) 769 } 770 func (m *ListResponse) XXX_DiscardUnknown() { 771 xxx_messageInfo_ListResponse.DiscardUnknown(m) 772 } 773 774 var xxx_messageInfo_ListResponse proto.InternalMessageInfo 775 776 func (m *ListResponse) GetServices() []*Service { 777 if m != nil { 778 return m.Services 779 } 780 return nil 781 } 782 783 type LogsOptions struct { 784 XXX_NoUnkeyedLiteral struct{} `json:"-"` 785 XXX_unrecognized []byte `json:"-"` 786 XXX_sizecache int32 `json:"-"` 787 } 788 789 func (m *LogsOptions) Reset() { *m = LogsOptions{} } 790 func (m *LogsOptions) String() string { return proto.CompactTextString(m) } 791 func (*LogsOptions) ProtoMessage() {} 792 func (*LogsOptions) Descriptor() ([]byte, []int) { 793 return fileDescriptor_2434d8152598889b, []int{17} 794 } 795 796 func (m *LogsOptions) XXX_Unmarshal(b []byte) error { 797 return xxx_messageInfo_LogsOptions.Unmarshal(m, b) 798 } 799 func (m *LogsOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 800 return xxx_messageInfo_LogsOptions.Marshal(b, m, deterministic) 801 } 802 func (m *LogsOptions) XXX_Merge(src proto.Message) { 803 xxx_messageInfo_LogsOptions.Merge(m, src) 804 } 805 func (m *LogsOptions) XXX_Size() int { 806 return xxx_messageInfo_LogsOptions.Size(m) 807 } 808 func (m *LogsOptions) XXX_DiscardUnknown() { 809 xxx_messageInfo_LogsOptions.DiscardUnknown(m) 810 } 811 812 var xxx_messageInfo_LogsOptions proto.InternalMessageInfo 813 814 type LogsRequest struct { 815 // service to request logs for 816 Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"` 817 // stream records continuously 818 Stream bool `protobuf:"varint,2,opt,name=stream,proto3" json:"stream,omitempty"` 819 // count of records to request 820 Count int64 `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"` 821 // relative time in seconds 822 // before the current time 823 // from which to show logs 824 Since int64 `protobuf:"varint,4,opt,name=since,proto3" json:"since,omitempty"` 825 // options to use 826 Options *LogsOptions `protobuf:"bytes,5,opt,name=options,proto3" json:"options,omitempty"` 827 XXX_NoUnkeyedLiteral struct{} `json:"-"` 828 XXX_unrecognized []byte `json:"-"` 829 XXX_sizecache int32 `json:"-"` 830 } 831 832 func (m *LogsRequest) Reset() { *m = LogsRequest{} } 833 func (m *LogsRequest) String() string { return proto.CompactTextString(m) } 834 func (*LogsRequest) ProtoMessage() {} 835 func (*LogsRequest) Descriptor() ([]byte, []int) { 836 return fileDescriptor_2434d8152598889b, []int{18} 837 } 838 839 func (m *LogsRequest) XXX_Unmarshal(b []byte) error { 840 return xxx_messageInfo_LogsRequest.Unmarshal(m, b) 841 } 842 func (m *LogsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 843 return xxx_messageInfo_LogsRequest.Marshal(b, m, deterministic) 844 } 845 func (m *LogsRequest) XXX_Merge(src proto.Message) { 846 xxx_messageInfo_LogsRequest.Merge(m, src) 847 } 848 func (m *LogsRequest) XXX_Size() int { 849 return xxx_messageInfo_LogsRequest.Size(m) 850 } 851 func (m *LogsRequest) XXX_DiscardUnknown() { 852 xxx_messageInfo_LogsRequest.DiscardUnknown(m) 853 } 854 855 var xxx_messageInfo_LogsRequest proto.InternalMessageInfo 856 857 func (m *LogsRequest) GetService() string { 858 if m != nil { 859 return m.Service 860 } 861 return "" 862 } 863 864 func (m *LogsRequest) GetStream() bool { 865 if m != nil { 866 return m.Stream 867 } 868 return false 869 } 870 871 func (m *LogsRequest) GetCount() int64 { 872 if m != nil { 873 return m.Count 874 } 875 return 0 876 } 877 878 func (m *LogsRequest) GetSince() int64 { 879 if m != nil { 880 return m.Since 881 } 882 return 0 883 } 884 885 func (m *LogsRequest) GetOptions() *LogsOptions { 886 if m != nil { 887 return m.Options 888 } 889 return nil 890 } 891 892 type LogRecord struct { 893 // timestamp of log record 894 Timestamp int64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` 895 // record metadata 896 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"` 897 // message 898 Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"` 899 XXX_NoUnkeyedLiteral struct{} `json:"-"` 900 XXX_unrecognized []byte `json:"-"` 901 XXX_sizecache int32 `json:"-"` 902 } 903 904 func (m *LogRecord) Reset() { *m = LogRecord{} } 905 func (m *LogRecord) String() string { return proto.CompactTextString(m) } 906 func (*LogRecord) ProtoMessage() {} 907 func (*LogRecord) Descriptor() ([]byte, []int) { 908 return fileDescriptor_2434d8152598889b, []int{19} 909 } 910 911 func (m *LogRecord) XXX_Unmarshal(b []byte) error { 912 return xxx_messageInfo_LogRecord.Unmarshal(m, b) 913 } 914 func (m *LogRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 915 return xxx_messageInfo_LogRecord.Marshal(b, m, deterministic) 916 } 917 func (m *LogRecord) XXX_Merge(src proto.Message) { 918 xxx_messageInfo_LogRecord.Merge(m, src) 919 } 920 func (m *LogRecord) XXX_Size() int { 921 return xxx_messageInfo_LogRecord.Size(m) 922 } 923 func (m *LogRecord) XXX_DiscardUnknown() { 924 xxx_messageInfo_LogRecord.DiscardUnknown(m) 925 } 926 927 var xxx_messageInfo_LogRecord proto.InternalMessageInfo 928 929 func (m *LogRecord) GetTimestamp() int64 { 930 if m != nil { 931 return m.Timestamp 932 } 933 return 0 934 } 935 936 func (m *LogRecord) GetMetadata() map[string]string { 937 if m != nil { 938 return m.Metadata 939 } 940 return nil 941 } 942 943 func (m *LogRecord) GetMessage() string { 944 if m != nil { 945 return m.Message 946 } 947 return "" 948 } 949 950 func init() { 951 proto.RegisterType((*Service)(nil), "go.micro.runtime.Service") 952 proto.RegisterMapType((map[string]string)(nil), "go.micro.runtime.Service.MetadataEntry") 953 proto.RegisterType((*Event)(nil), "go.micro.runtime.Event") 954 proto.RegisterType((*CreateOptions)(nil), "go.micro.runtime.CreateOptions") 955 proto.RegisterType((*CreateRequest)(nil), "go.micro.runtime.CreateRequest") 956 proto.RegisterType((*CreateResponse)(nil), "go.micro.runtime.CreateResponse") 957 proto.RegisterType((*ReadOptions)(nil), "go.micro.runtime.ReadOptions") 958 proto.RegisterType((*ReadRequest)(nil), "go.micro.runtime.ReadRequest") 959 proto.RegisterType((*ReadResponse)(nil), "go.micro.runtime.ReadResponse") 960 proto.RegisterType((*DeleteOptions)(nil), "go.micro.runtime.DeleteOptions") 961 proto.RegisterType((*DeleteRequest)(nil), "go.micro.runtime.DeleteRequest") 962 proto.RegisterType((*DeleteResponse)(nil), "go.micro.runtime.DeleteResponse") 963 proto.RegisterType((*UpdateOptions)(nil), "go.micro.runtime.UpdateOptions") 964 proto.RegisterType((*UpdateRequest)(nil), "go.micro.runtime.UpdateRequest") 965 proto.RegisterType((*UpdateResponse)(nil), "go.micro.runtime.UpdateResponse") 966 proto.RegisterType((*ListOptions)(nil), "go.micro.runtime.ListOptions") 967 proto.RegisterType((*ListRequest)(nil), "go.micro.runtime.ListRequest") 968 proto.RegisterType((*ListResponse)(nil), "go.micro.runtime.ListResponse") 969 proto.RegisterType((*LogsOptions)(nil), "go.micro.runtime.LogsOptions") 970 proto.RegisterType((*LogsRequest)(nil), "go.micro.runtime.LogsRequest") 971 proto.RegisterType((*LogRecord)(nil), "go.micro.runtime.LogRecord") 972 proto.RegisterMapType((map[string]string)(nil), "go.micro.runtime.LogRecord.MetadataEntry") 973 } 974 975 func init() { 976 proto.RegisterFile("runtime/service/proto/runtime.proto", fileDescriptor_2434d8152598889b) 977 } 978 979 var fileDescriptor_2434d8152598889b = []byte{ 980 // 683 bytes of a gzipped FileDescriptorProto 981 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x56, 0xcb, 0x6e, 0xd3, 0x40, 982 0x14, 0xad, 0xe3, 0x3c, 0xda, 0x1b, 0x42, 0xab, 0x51, 0x85, 0x4c, 0x79, 0x45, 0x66, 0x41, 0xd9, 983 0x38, 0x28, 0x15, 0xe2, 0xb5, 0x2c, 0x09, 0x9b, 0x46, 0x48, 0x46, 0xfd, 0x80, 0xc1, 0xb9, 0x8a, 984 0x2c, 0x6a, 0x8f, 0xf1, 0x8c, 0x23, 0x65, 0xc5, 0x92, 0x35, 0xff, 0xc0, 0xbf, 0xb0, 0xe6, 0x8f, 985 0xd0, 0xbc, 0xfc, 0x48, 0xeb, 0x48, 0xa8, 0xea, 0x6e, 0xce, 0xf5, 0xcc, 0x9d, 0x73, 0xce, 0x9d, 986 0x7b, 0x65, 0x78, 0x9e, 0x17, 0xa9, 0x88, 0x13, 0x9c, 0x70, 0xcc, 0xd7, 0x71, 0x84, 0x93, 0x2c, 987 0x67, 0x82, 0x4d, 0x4c, 0x34, 0x50, 0x88, 0x1c, 0xad, 0x58, 0x90, 0xc4, 0x51, 0xce, 0x02, 0x13, 988 0xf7, 0xff, 0x3a, 0x30, 0xf8, 0xa2, 0x4f, 0x10, 0x02, 0xdd, 0x94, 0x26, 0xe8, 0x39, 0x63, 0xe7, 989 0xf4, 0x20, 0x54, 0x6b, 0xe2, 0xc1, 0x60, 0x8d, 0x39, 0x8f, 0x59, 0xea, 0x75, 0x54, 0xd8, 0x42, 990 0xf2, 0x00, 0xfa, 0x9c, 0x15, 0x79, 0x84, 0x9e, 0xab, 0x3e, 0x18, 0x44, 0xce, 0x61, 0x3f, 0x41, 991 0x41, 0x97, 0x54, 0x50, 0xaf, 0x3b, 0x76, 0x4f, 0x87, 0xd3, 0x17, 0xc1, 0xf6, 0xb5, 0x81, 0xb9, 992 0x32, 0x58, 0x98, 0x9d, 0xb3, 0x54, 0xe4, 0x9b, 0xb0, 0x3c, 0x78, 0xf2, 0x01, 0x46, 0x8d, 0x4f, 993 0xe4, 0x08, 0xdc, 0x6f, 0xb8, 0x31, 0xd4, 0xe4, 0x92, 0x1c, 0x43, 0x6f, 0x4d, 0xaf, 0x0a, 0x34, 994 0xbc, 0x34, 0x78, 0xdf, 0x79, 0xeb, 0xf8, 0x09, 0xf4, 0x66, 0x6b, 0x4c, 0x85, 0x14, 0x24, 0x36, 995 0x59, 0x29, 0x48, 0xae, 0xc9, 0x63, 0x38, 0x90, 0x0c, 0xb8, 0xa0, 0x49, 0xa6, 0x8e, 0xba, 0x61, 996 0x15, 0x90, 0x72, 0x8d, 0x7f, 0x46, 0x95, 0x85, 0x75, 0x23, 0xba, 0x0d, 0x23, 0xfc, 0x5f, 0x0e, 997 0x8c, 0xce, 0x73, 0xa4, 0x02, 0x3f, 0x67, 0x22, 0x66, 0x29, 0x97, 0x7b, 0x23, 0x96, 0x24, 0x34, 998 0x5d, 0x7a, 0xce, 0xd8, 0x95, 0x7b, 0x0d, 0x94, 0x8c, 0x68, 0xbe, 0xe2, 0x5e, 0x47, 0x85, 0xd5, 999 0x5a, 0x4a, 0xc3, 0x74, 0xed, 0xb9, 0x2a, 0x24, 0x97, 0xd2, 0x5a, 0x56, 0x88, 0xac, 0x10, 0xe6, 1000 0x2a, 0x83, 0x4a, 0x3d, 0xbd, 0x9a, 0x9e, 0x63, 0xe8, 0xc5, 0x09, 0x5d, 0xa1, 0xd7, 0xd7, 0x36, 1001 0x28, 0xe0, 0xff, 0xb0, 0x94, 0x42, 0xfc, 0x5e, 0x20, 0x17, 0xe4, 0xac, 0x12, 0x26, 0xdd, 0x18, 1002 0x4e, 0x1f, 0xb6, 0x16, 0xa5, 0xd2, 0xfc, 0x0e, 0x06, 0x4c, 0x4b, 0x52, 0x4e, 0x0d, 0xa7, 0xcf, 1003 0xae, 0x1f, 0x6a, 0x28, 0x0f, 0xed, 0x7e, 0xff, 0x08, 0xee, 0x5b, 0x02, 0x3c, 0x63, 0x29, 0x47, 1004 0xff, 0x12, 0x86, 0x21, 0xd2, 0x65, 0xcd, 0xa3, 0x3a, 0xa1, 0x9b, 0x9d, 0xde, 0x7a, 0x72, 0x56, 1005 0xbf, 0x5b, 0xe9, 0xf7, 0xe7, 0x3a, 0xad, 0xd5, 0xf9, 0xa6, 0xa2, 0xac, 0x75, 0x3e, 0xb9, 0x4e, 1006 0xb9, 0x46, 0xa3, 0x22, 0x3c, 0x83, 0x7b, 0x3a, 0x8f, 0xa6, 0x4b, 0x5e, 0xc3, 0xbe, 0x21, 0xc4, 1007 0x55, 0x11, 0x77, 0x3a, 0x56, 0x6e, 0xf5, 0x0f, 0x61, 0xf4, 0x11, 0xaf, 0xb0, 0x74, 0x44, 0x56, 1008 0x42, 0x07, 0xee, 0xbc, 0x12, 0x8d, 0x7b, 0x1b, 0x95, 0xb0, 0x04, 0x4c, 0x25, 0x0e, 0x61, 0x74, 1009 0x99, 0x2d, 0x69, 0x83, 0xa3, 0x0e, 0xdc, 0x39, 0xc7, 0xc6, 0xbd, 0x0d, 0x8e, 0x96, 0x80, 0xe1, 1010 0x38, 0x82, 0xe1, 0x45, 0xcc, 0x85, 0x65, 0x38, 0xd7, 0xf0, 0x7f, 0xaa, 0x5c, 0x3b, 0xde, 0xa8, 1011 0xb2, 0xce, 0x73, 0xbb, 0x2a, 0x4b, 0x76, 0x6c, 0xc5, 0x2d, 0xbb, 0xdf, 0x8e, 0xc6, 0x96, 0x5e, 1012 0xfb, 0xdb, 0x96, 0x43, 0x53, 0xe4, 0x48, 0x13, 0x65, 0xd1, 0x7e, 0x68, 0x90, 0xec, 0xe2, 0x88, 1013 0x15, 0xa9, 0x50, 0x4f, 0xdb, 0x0d, 0x35, 0x90, 0x51, 0x1e, 0xa7, 0x11, 0xaa, 0x31, 0xe0, 0x86, 1014 0x1a, 0xd4, 0xc5, 0xf7, 0x5a, 0xc5, 0x57, 0xec, 0x2a, 0xf1, 0x7f, 0x1c, 0x38, 0xb8, 0x60, 0xab, 1015 0x10, 0x23, 0x96, 0x2f, 0x9b, 0x83, 0xd0, 0xd9, 0x1e, 0x84, 0xb3, 0xda, 0x14, 0xef, 0x28, 0x63, 1016 0x5e, 0xde, 0x78, 0x8b, 0x4e, 0xd6, 0x36, 0xc7, 0xa5, 0x13, 0x09, 0x72, 0x2e, 0xe7, 0x93, 0x99, 1017 0xa7, 0x06, 0xde, 0x6a, 0xc2, 0x4f, 0x7f, 0xba, 0x30, 0x08, 0x35, 0x09, 0xb2, 0x80, 0xbe, 0x9e, 1018 0x34, 0xa4, 0x75, 0x3a, 0x99, 0xba, 0x9c, 0x8c, 0xdb, 0x37, 0x98, 0x67, 0xb7, 0x47, 0x3e, 0x41, 1019 0x57, 0xce, 0x01, 0xd2, 0x32, 0x37, 0x6c, 0xaa, 0xa7, 0x6d, 0x9f, 0xcb, 0x44, 0x0b, 0xe8, 0xeb, 1020 0xbe, 0x23, 0xad, 0xbd, 0xba, 0x83, 0xd7, 0x56, 0xcb, 0xaa, 0x74, 0xba, 0x45, 0x48, 0x6b, 0x5b, 1021 0xed, 0x48, 0xb7, 0xd5, 0x5d, 0x7b, 0x64, 0x0e, 0x5d, 0xf9, 0x46, 0x48, 0xcb, 0xdb, 0xb1, 0xa9, 1022 0x1e, 0xed, 0x28, 0xba, 0xbf, 0xf7, 0xca, 0xf9, 0xda, 0x57, 0x3f, 0x16, 0x67, 0xff, 0x02, 0x00, 1023 0x00, 0xff, 0xff, 0xe1, 0x5b, 0x52, 0x93, 0x7f, 0x08, 0x00, 0x00, 1024 } 1025 1026 // Reference imports to suppress errors if they are not otherwise used. 1027 var _ context.Context 1028 var _ grpc.ClientConn 1029 1030 // This is a compile-time assertion to ensure that this generated file 1031 // is compatible with the grpc package it is being compiled against. 1032 const _ = grpc.SupportPackageIsVersion4 1033 1034 // RuntimeClient is the client API for Runtime service. 1035 // 1036 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 1037 type RuntimeClient interface { 1038 Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error) 1039 Read(ctx context.Context, in *ReadRequest, opts ...grpc.CallOption) (*ReadResponse, error) 1040 Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error) 1041 Update(ctx context.Context, in *UpdateRequest, opts ...grpc.CallOption) (*UpdateResponse, error) 1042 Logs(ctx context.Context, in *LogsRequest, opts ...grpc.CallOption) (Runtime_LogsClient, error) 1043 } 1044 1045 type runtimeClient struct { 1046 cc *grpc.ClientConn 1047 } 1048 1049 func NewRuntimeClient(cc *grpc.ClientConn) RuntimeClient { 1050 return &runtimeClient{cc} 1051 } 1052 1053 func (c *runtimeClient) Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error) { 1054 out := new(CreateResponse) 1055 err := c.cc.Invoke(ctx, "/go.micro.runtime.Runtime/Create", in, out, opts...) 1056 if err != nil { 1057 return nil, err 1058 } 1059 return out, nil 1060 } 1061 1062 func (c *runtimeClient) Read(ctx context.Context, in *ReadRequest, opts ...grpc.CallOption) (*ReadResponse, error) { 1063 out := new(ReadResponse) 1064 err := c.cc.Invoke(ctx, "/go.micro.runtime.Runtime/Read", in, out, opts...) 1065 if err != nil { 1066 return nil, err 1067 } 1068 return out, nil 1069 } 1070 1071 func (c *runtimeClient) Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error) { 1072 out := new(DeleteResponse) 1073 err := c.cc.Invoke(ctx, "/go.micro.runtime.Runtime/Delete", in, out, opts...) 1074 if err != nil { 1075 return nil, err 1076 } 1077 return out, nil 1078 } 1079 1080 func (c *runtimeClient) Update(ctx context.Context, in *UpdateRequest, opts ...grpc.CallOption) (*UpdateResponse, error) { 1081 out := new(UpdateResponse) 1082 err := c.cc.Invoke(ctx, "/go.micro.runtime.Runtime/Update", in, out, opts...) 1083 if err != nil { 1084 return nil, err 1085 } 1086 return out, nil 1087 } 1088 1089 func (c *runtimeClient) Logs(ctx context.Context, in *LogsRequest, opts ...grpc.CallOption) (Runtime_LogsClient, error) { 1090 stream, err := c.cc.NewStream(ctx, &_Runtime_serviceDesc.Streams[0], "/go.micro.runtime.Runtime/Logs", opts...) 1091 if err != nil { 1092 return nil, err 1093 } 1094 x := &runtimeLogsClient{stream} 1095 if err := x.ClientStream.SendMsg(in); err != nil { 1096 return nil, err 1097 } 1098 if err := x.ClientStream.CloseSend(); err != nil { 1099 return nil, err 1100 } 1101 return x, nil 1102 } 1103 1104 type Runtime_LogsClient interface { 1105 Recv() (*LogRecord, error) 1106 grpc.ClientStream 1107 } 1108 1109 type runtimeLogsClient struct { 1110 grpc.ClientStream 1111 } 1112 1113 func (x *runtimeLogsClient) Recv() (*LogRecord, error) { 1114 m := new(LogRecord) 1115 if err := x.ClientStream.RecvMsg(m); err != nil { 1116 return nil, err 1117 } 1118 return m, nil 1119 } 1120 1121 // RuntimeServer is the server API for Runtime service. 1122 type RuntimeServer interface { 1123 Create(context.Context, *CreateRequest) (*CreateResponse, error) 1124 Read(context.Context, *ReadRequest) (*ReadResponse, error) 1125 Delete(context.Context, *DeleteRequest) (*DeleteResponse, error) 1126 Update(context.Context, *UpdateRequest) (*UpdateResponse, error) 1127 Logs(*LogsRequest, Runtime_LogsServer) error 1128 } 1129 1130 // UnimplementedRuntimeServer can be embedded to have forward compatible implementations. 1131 type UnimplementedRuntimeServer struct { 1132 } 1133 1134 func (*UnimplementedRuntimeServer) Create(ctx context.Context, req *CreateRequest) (*CreateResponse, error) { 1135 return nil, status.Errorf(codes.Unimplemented, "method Create not implemented") 1136 } 1137 func (*UnimplementedRuntimeServer) Read(ctx context.Context, req *ReadRequest) (*ReadResponse, error) { 1138 return nil, status.Errorf(codes.Unimplemented, "method Read not implemented") 1139 } 1140 func (*UnimplementedRuntimeServer) Delete(ctx context.Context, req *DeleteRequest) (*DeleteResponse, error) { 1141 return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented") 1142 } 1143 func (*UnimplementedRuntimeServer) Update(ctx context.Context, req *UpdateRequest) (*UpdateResponse, error) { 1144 return nil, status.Errorf(codes.Unimplemented, "method Update not implemented") 1145 } 1146 func (*UnimplementedRuntimeServer) Logs(req *LogsRequest, srv Runtime_LogsServer) error { 1147 return status.Errorf(codes.Unimplemented, "method Logs not implemented") 1148 } 1149 1150 func RegisterRuntimeServer(s *grpc.Server, srv RuntimeServer) { 1151 s.RegisterService(&_Runtime_serviceDesc, srv) 1152 } 1153 1154 func _Runtime_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1155 in := new(CreateRequest) 1156 if err := dec(in); err != nil { 1157 return nil, err 1158 } 1159 if interceptor == nil { 1160 return srv.(RuntimeServer).Create(ctx, in) 1161 } 1162 info := &grpc.UnaryServerInfo{ 1163 Server: srv, 1164 FullMethod: "/go.micro.runtime.Runtime/Create", 1165 } 1166 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1167 return srv.(RuntimeServer).Create(ctx, req.(*CreateRequest)) 1168 } 1169 return interceptor(ctx, in, info, handler) 1170 } 1171 1172 func _Runtime_Read_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1173 in := new(ReadRequest) 1174 if err := dec(in); err != nil { 1175 return nil, err 1176 } 1177 if interceptor == nil { 1178 return srv.(RuntimeServer).Read(ctx, in) 1179 } 1180 info := &grpc.UnaryServerInfo{ 1181 Server: srv, 1182 FullMethod: "/go.micro.runtime.Runtime/Read", 1183 } 1184 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1185 return srv.(RuntimeServer).Read(ctx, req.(*ReadRequest)) 1186 } 1187 return interceptor(ctx, in, info, handler) 1188 } 1189 1190 func _Runtime_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1191 in := new(DeleteRequest) 1192 if err := dec(in); err != nil { 1193 return nil, err 1194 } 1195 if interceptor == nil { 1196 return srv.(RuntimeServer).Delete(ctx, in) 1197 } 1198 info := &grpc.UnaryServerInfo{ 1199 Server: srv, 1200 FullMethod: "/go.micro.runtime.Runtime/Delete", 1201 } 1202 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1203 return srv.(RuntimeServer).Delete(ctx, req.(*DeleteRequest)) 1204 } 1205 return interceptor(ctx, in, info, handler) 1206 } 1207 1208 func _Runtime_Update_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1209 in := new(UpdateRequest) 1210 if err := dec(in); err != nil { 1211 return nil, err 1212 } 1213 if interceptor == nil { 1214 return srv.(RuntimeServer).Update(ctx, in) 1215 } 1216 info := &grpc.UnaryServerInfo{ 1217 Server: srv, 1218 FullMethod: "/go.micro.runtime.Runtime/Update", 1219 } 1220 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1221 return srv.(RuntimeServer).Update(ctx, req.(*UpdateRequest)) 1222 } 1223 return interceptor(ctx, in, info, handler) 1224 } 1225 1226 func _Runtime_Logs_Handler(srv interface{}, stream grpc.ServerStream) error { 1227 m := new(LogsRequest) 1228 if err := stream.RecvMsg(m); err != nil { 1229 return err 1230 } 1231 return srv.(RuntimeServer).Logs(m, &runtimeLogsServer{stream}) 1232 } 1233 1234 type Runtime_LogsServer interface { 1235 Send(*LogRecord) error 1236 grpc.ServerStream 1237 } 1238 1239 type runtimeLogsServer struct { 1240 grpc.ServerStream 1241 } 1242 1243 func (x *runtimeLogsServer) Send(m *LogRecord) error { 1244 return x.ServerStream.SendMsg(m) 1245 } 1246 1247 var _Runtime_serviceDesc = grpc.ServiceDesc{ 1248 ServiceName: "go.micro.runtime.Runtime", 1249 HandlerType: (*RuntimeServer)(nil), 1250 Methods: []grpc.MethodDesc{ 1251 { 1252 MethodName: "Create", 1253 Handler: _Runtime_Create_Handler, 1254 }, 1255 { 1256 MethodName: "Read", 1257 Handler: _Runtime_Read_Handler, 1258 }, 1259 { 1260 MethodName: "Delete", 1261 Handler: _Runtime_Delete_Handler, 1262 }, 1263 { 1264 MethodName: "Update", 1265 Handler: _Runtime_Update_Handler, 1266 }, 1267 }, 1268 Streams: []grpc.StreamDesc{ 1269 { 1270 StreamName: "Logs", 1271 Handler: _Runtime_Logs_Handler, 1272 ServerStreams: true, 1273 }, 1274 }, 1275 Metadata: "runtime/service/proto/runtime.proto", 1276 }