github.com/annwntech/go-micro/v2@v2.9.5/debug/service/proto/debug.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: debug/service/proto/debug.proto 6 7 package debug 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 SpanType int32 33 34 const ( 35 SpanType_INBOUND SpanType = 0 36 SpanType_OUTBOUND SpanType = 1 37 ) 38 39 // Enum value maps for SpanType. 40 var ( 41 SpanType_name = map[int32]string{ 42 0: "INBOUND", 43 1: "OUTBOUND", 44 } 45 SpanType_value = map[string]int32{ 46 "INBOUND": 0, 47 "OUTBOUND": 1, 48 } 49 ) 50 51 func (x SpanType) Enum() *SpanType { 52 p := new(SpanType) 53 *p = x 54 return p 55 } 56 57 func (x SpanType) String() string { 58 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 59 } 60 61 func (SpanType) Descriptor() protoreflect.EnumDescriptor { 62 return file_debug_service_proto_debug_proto_enumTypes[0].Descriptor() 63 } 64 65 func (SpanType) Type() protoreflect.EnumType { 66 return &file_debug_service_proto_debug_proto_enumTypes[0] 67 } 68 69 func (x SpanType) Number() protoreflect.EnumNumber { 70 return protoreflect.EnumNumber(x) 71 } 72 73 // Deprecated: Use SpanType.Descriptor instead. 74 func (SpanType) EnumDescriptor() ([]byte, []int) { 75 return file_debug_service_proto_debug_proto_rawDescGZIP(), []int{0} 76 } 77 78 type HealthRequest struct { 79 state protoimpl.MessageState 80 sizeCache protoimpl.SizeCache 81 unknownFields protoimpl.UnknownFields 82 83 // optional service name 84 Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"` 85 } 86 87 func (x *HealthRequest) Reset() { 88 *x = HealthRequest{} 89 if protoimpl.UnsafeEnabled { 90 mi := &file_debug_service_proto_debug_proto_msgTypes[0] 91 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 92 ms.StoreMessageInfo(mi) 93 } 94 } 95 96 func (x *HealthRequest) String() string { 97 return protoimpl.X.MessageStringOf(x) 98 } 99 100 func (*HealthRequest) ProtoMessage() {} 101 102 func (x *HealthRequest) ProtoReflect() protoreflect.Message { 103 mi := &file_debug_service_proto_debug_proto_msgTypes[0] 104 if protoimpl.UnsafeEnabled && x != nil { 105 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 106 if ms.LoadMessageInfo() == nil { 107 ms.StoreMessageInfo(mi) 108 } 109 return ms 110 } 111 return mi.MessageOf(x) 112 } 113 114 // Deprecated: Use HealthRequest.ProtoReflect.Descriptor instead. 115 func (*HealthRequest) Descriptor() ([]byte, []int) { 116 return file_debug_service_proto_debug_proto_rawDescGZIP(), []int{0} 117 } 118 119 func (x *HealthRequest) GetService() string { 120 if x != nil { 121 return x.Service 122 } 123 return "" 124 } 125 126 type HealthResponse struct { 127 state protoimpl.MessageState 128 sizeCache protoimpl.SizeCache 129 unknownFields protoimpl.UnknownFields 130 131 // default: ok 132 Status string `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` 133 } 134 135 func (x *HealthResponse) Reset() { 136 *x = HealthResponse{} 137 if protoimpl.UnsafeEnabled { 138 mi := &file_debug_service_proto_debug_proto_msgTypes[1] 139 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 140 ms.StoreMessageInfo(mi) 141 } 142 } 143 144 func (x *HealthResponse) String() string { 145 return protoimpl.X.MessageStringOf(x) 146 } 147 148 func (*HealthResponse) ProtoMessage() {} 149 150 func (x *HealthResponse) ProtoReflect() protoreflect.Message { 151 mi := &file_debug_service_proto_debug_proto_msgTypes[1] 152 if protoimpl.UnsafeEnabled && x != nil { 153 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 154 if ms.LoadMessageInfo() == nil { 155 ms.StoreMessageInfo(mi) 156 } 157 return ms 158 } 159 return mi.MessageOf(x) 160 } 161 162 // Deprecated: Use HealthResponse.ProtoReflect.Descriptor instead. 163 func (*HealthResponse) Descriptor() ([]byte, []int) { 164 return file_debug_service_proto_debug_proto_rawDescGZIP(), []int{1} 165 } 166 167 func (x *HealthResponse) GetStatus() string { 168 if x != nil { 169 return x.Status 170 } 171 return "" 172 } 173 174 type StatsRequest struct { 175 state protoimpl.MessageState 176 sizeCache protoimpl.SizeCache 177 unknownFields protoimpl.UnknownFields 178 179 // optional service name 180 Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"` 181 } 182 183 func (x *StatsRequest) Reset() { 184 *x = StatsRequest{} 185 if protoimpl.UnsafeEnabled { 186 mi := &file_debug_service_proto_debug_proto_msgTypes[2] 187 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 188 ms.StoreMessageInfo(mi) 189 } 190 } 191 192 func (x *StatsRequest) String() string { 193 return protoimpl.X.MessageStringOf(x) 194 } 195 196 func (*StatsRequest) ProtoMessage() {} 197 198 func (x *StatsRequest) ProtoReflect() protoreflect.Message { 199 mi := &file_debug_service_proto_debug_proto_msgTypes[2] 200 if protoimpl.UnsafeEnabled && x != nil { 201 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 202 if ms.LoadMessageInfo() == nil { 203 ms.StoreMessageInfo(mi) 204 } 205 return ms 206 } 207 return mi.MessageOf(x) 208 } 209 210 // Deprecated: Use StatsRequest.ProtoReflect.Descriptor instead. 211 func (*StatsRequest) Descriptor() ([]byte, []int) { 212 return file_debug_service_proto_debug_proto_rawDescGZIP(), []int{2} 213 } 214 215 func (x *StatsRequest) GetService() string { 216 if x != nil { 217 return x.Service 218 } 219 return "" 220 } 221 222 type StatsResponse struct { 223 state protoimpl.MessageState 224 sizeCache protoimpl.SizeCache 225 unknownFields protoimpl.UnknownFields 226 227 // timestamp of recording 228 Timestamp uint64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` 229 // unix timestamp 230 Started uint64 `protobuf:"varint,2,opt,name=started,proto3" json:"started,omitempty"` 231 // in seconds 232 Uptime uint64 `protobuf:"varint,3,opt,name=uptime,proto3" json:"uptime,omitempty"` 233 // in bytes 234 Memory uint64 `protobuf:"varint,4,opt,name=memory,proto3" json:"memory,omitempty"` 235 // num threads 236 Threads uint64 `protobuf:"varint,5,opt,name=threads,proto3" json:"threads,omitempty"` 237 // total gc in nanoseconds 238 Gc uint64 `protobuf:"varint,6,opt,name=gc,proto3" json:"gc,omitempty"` 239 // total number of requests 240 Requests uint64 `protobuf:"varint,7,opt,name=requests,proto3" json:"requests,omitempty"` 241 // total number of errors 242 Errors uint64 `protobuf:"varint,8,opt,name=errors,proto3" json:"errors,omitempty"` 243 } 244 245 func (x *StatsResponse) Reset() { 246 *x = StatsResponse{} 247 if protoimpl.UnsafeEnabled { 248 mi := &file_debug_service_proto_debug_proto_msgTypes[3] 249 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 250 ms.StoreMessageInfo(mi) 251 } 252 } 253 254 func (x *StatsResponse) String() string { 255 return protoimpl.X.MessageStringOf(x) 256 } 257 258 func (*StatsResponse) ProtoMessage() {} 259 260 func (x *StatsResponse) ProtoReflect() protoreflect.Message { 261 mi := &file_debug_service_proto_debug_proto_msgTypes[3] 262 if protoimpl.UnsafeEnabled && x != nil { 263 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 264 if ms.LoadMessageInfo() == nil { 265 ms.StoreMessageInfo(mi) 266 } 267 return ms 268 } 269 return mi.MessageOf(x) 270 } 271 272 // Deprecated: Use StatsResponse.ProtoReflect.Descriptor instead. 273 func (*StatsResponse) Descriptor() ([]byte, []int) { 274 return file_debug_service_proto_debug_proto_rawDescGZIP(), []int{3} 275 } 276 277 func (x *StatsResponse) GetTimestamp() uint64 { 278 if x != nil { 279 return x.Timestamp 280 } 281 return 0 282 } 283 284 func (x *StatsResponse) GetStarted() uint64 { 285 if x != nil { 286 return x.Started 287 } 288 return 0 289 } 290 291 func (x *StatsResponse) GetUptime() uint64 { 292 if x != nil { 293 return x.Uptime 294 } 295 return 0 296 } 297 298 func (x *StatsResponse) GetMemory() uint64 { 299 if x != nil { 300 return x.Memory 301 } 302 return 0 303 } 304 305 func (x *StatsResponse) GetThreads() uint64 { 306 if x != nil { 307 return x.Threads 308 } 309 return 0 310 } 311 312 func (x *StatsResponse) GetGc() uint64 { 313 if x != nil { 314 return x.Gc 315 } 316 return 0 317 } 318 319 func (x *StatsResponse) GetRequests() uint64 { 320 if x != nil { 321 return x.Requests 322 } 323 return 0 324 } 325 326 func (x *StatsResponse) GetErrors() uint64 { 327 if x != nil { 328 return x.Errors 329 } 330 return 0 331 } 332 333 // LogRequest requests service logs 334 type LogRequest struct { 335 state protoimpl.MessageState 336 sizeCache protoimpl.SizeCache 337 unknownFields protoimpl.UnknownFields 338 339 // service to request logs for 340 Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"` 341 // stream records continuously 342 Stream bool `protobuf:"varint,2,opt,name=stream,proto3" json:"stream,omitempty"` 343 // count of records to request 344 Count int64 `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"` 345 // relative time in seconds 346 // before the current time 347 // from which to show logs 348 Since int64 `protobuf:"varint,4,opt,name=since,proto3" json:"since,omitempty"` 349 } 350 351 func (x *LogRequest) Reset() { 352 *x = LogRequest{} 353 if protoimpl.UnsafeEnabled { 354 mi := &file_debug_service_proto_debug_proto_msgTypes[4] 355 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 356 ms.StoreMessageInfo(mi) 357 } 358 } 359 360 func (x *LogRequest) String() string { 361 return protoimpl.X.MessageStringOf(x) 362 } 363 364 func (*LogRequest) ProtoMessage() {} 365 366 func (x *LogRequest) ProtoReflect() protoreflect.Message { 367 mi := &file_debug_service_proto_debug_proto_msgTypes[4] 368 if protoimpl.UnsafeEnabled && x != nil { 369 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 370 if ms.LoadMessageInfo() == nil { 371 ms.StoreMessageInfo(mi) 372 } 373 return ms 374 } 375 return mi.MessageOf(x) 376 } 377 378 // Deprecated: Use LogRequest.ProtoReflect.Descriptor instead. 379 func (*LogRequest) Descriptor() ([]byte, []int) { 380 return file_debug_service_proto_debug_proto_rawDescGZIP(), []int{4} 381 } 382 383 func (x *LogRequest) GetService() string { 384 if x != nil { 385 return x.Service 386 } 387 return "" 388 } 389 390 func (x *LogRequest) GetStream() bool { 391 if x != nil { 392 return x.Stream 393 } 394 return false 395 } 396 397 func (x *LogRequest) GetCount() int64 { 398 if x != nil { 399 return x.Count 400 } 401 return 0 402 } 403 404 func (x *LogRequest) GetSince() int64 { 405 if x != nil { 406 return x.Since 407 } 408 return 0 409 } 410 411 // Record is service log record 412 type Record struct { 413 state protoimpl.MessageState 414 sizeCache protoimpl.SizeCache 415 unknownFields protoimpl.UnknownFields 416 417 // timestamp of log record 418 Timestamp int64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` 419 // record metadata 420 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"` 421 // message 422 Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"` 423 } 424 425 func (x *Record) Reset() { 426 *x = Record{} 427 if protoimpl.UnsafeEnabled { 428 mi := &file_debug_service_proto_debug_proto_msgTypes[5] 429 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 430 ms.StoreMessageInfo(mi) 431 } 432 } 433 434 func (x *Record) String() string { 435 return protoimpl.X.MessageStringOf(x) 436 } 437 438 func (*Record) ProtoMessage() {} 439 440 func (x *Record) ProtoReflect() protoreflect.Message { 441 mi := &file_debug_service_proto_debug_proto_msgTypes[5] 442 if protoimpl.UnsafeEnabled && x != nil { 443 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 444 if ms.LoadMessageInfo() == nil { 445 ms.StoreMessageInfo(mi) 446 } 447 return ms 448 } 449 return mi.MessageOf(x) 450 } 451 452 // Deprecated: Use Record.ProtoReflect.Descriptor instead. 453 func (*Record) Descriptor() ([]byte, []int) { 454 return file_debug_service_proto_debug_proto_rawDescGZIP(), []int{5} 455 } 456 457 func (x *Record) GetTimestamp() int64 { 458 if x != nil { 459 return x.Timestamp 460 } 461 return 0 462 } 463 464 func (x *Record) GetMetadata() map[string]string { 465 if x != nil { 466 return x.Metadata 467 } 468 return nil 469 } 470 471 func (x *Record) GetMessage() string { 472 if x != nil { 473 return x.Message 474 } 475 return "" 476 } 477 478 type TraceRequest struct { 479 state protoimpl.MessageState 480 sizeCache protoimpl.SizeCache 481 unknownFields protoimpl.UnknownFields 482 483 // trace id to retrieve 484 Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` 485 } 486 487 func (x *TraceRequest) Reset() { 488 *x = TraceRequest{} 489 if protoimpl.UnsafeEnabled { 490 mi := &file_debug_service_proto_debug_proto_msgTypes[6] 491 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 492 ms.StoreMessageInfo(mi) 493 } 494 } 495 496 func (x *TraceRequest) String() string { 497 return protoimpl.X.MessageStringOf(x) 498 } 499 500 func (*TraceRequest) ProtoMessage() {} 501 502 func (x *TraceRequest) ProtoReflect() protoreflect.Message { 503 mi := &file_debug_service_proto_debug_proto_msgTypes[6] 504 if protoimpl.UnsafeEnabled && x != nil { 505 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 506 if ms.LoadMessageInfo() == nil { 507 ms.StoreMessageInfo(mi) 508 } 509 return ms 510 } 511 return mi.MessageOf(x) 512 } 513 514 // Deprecated: Use TraceRequest.ProtoReflect.Descriptor instead. 515 func (*TraceRequest) Descriptor() ([]byte, []int) { 516 return file_debug_service_proto_debug_proto_rawDescGZIP(), []int{6} 517 } 518 519 func (x *TraceRequest) GetId() string { 520 if x != nil { 521 return x.Id 522 } 523 return "" 524 } 525 526 type TraceResponse struct { 527 state protoimpl.MessageState 528 sizeCache protoimpl.SizeCache 529 unknownFields protoimpl.UnknownFields 530 531 Spans []*Span `protobuf:"bytes,1,rep,name=spans,proto3" json:"spans,omitempty"` 532 } 533 534 func (x *TraceResponse) Reset() { 535 *x = TraceResponse{} 536 if protoimpl.UnsafeEnabled { 537 mi := &file_debug_service_proto_debug_proto_msgTypes[7] 538 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 539 ms.StoreMessageInfo(mi) 540 } 541 } 542 543 func (x *TraceResponse) String() string { 544 return protoimpl.X.MessageStringOf(x) 545 } 546 547 func (*TraceResponse) ProtoMessage() {} 548 549 func (x *TraceResponse) ProtoReflect() protoreflect.Message { 550 mi := &file_debug_service_proto_debug_proto_msgTypes[7] 551 if protoimpl.UnsafeEnabled && x != nil { 552 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 553 if ms.LoadMessageInfo() == nil { 554 ms.StoreMessageInfo(mi) 555 } 556 return ms 557 } 558 return mi.MessageOf(x) 559 } 560 561 // Deprecated: Use TraceResponse.ProtoReflect.Descriptor instead. 562 func (*TraceResponse) Descriptor() ([]byte, []int) { 563 return file_debug_service_proto_debug_proto_rawDescGZIP(), []int{7} 564 } 565 566 func (x *TraceResponse) GetSpans() []*Span { 567 if x != nil { 568 return x.Spans 569 } 570 return nil 571 } 572 573 type Span struct { 574 state protoimpl.MessageState 575 sizeCache protoimpl.SizeCache 576 unknownFields protoimpl.UnknownFields 577 578 // the trace id 579 Trace string `protobuf:"bytes,1,opt,name=trace,proto3" json:"trace,omitempty"` 580 // id of the span 581 Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` 582 // parent span 583 Parent string `protobuf:"bytes,3,opt,name=parent,proto3" json:"parent,omitempty"` 584 // name of the resource 585 Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` 586 // time of start in nanoseconds 587 Started uint64 `protobuf:"varint,5,opt,name=started,proto3" json:"started,omitempty"` 588 // duration of the execution in nanoseconds 589 Duration uint64 `protobuf:"varint,6,opt,name=duration,proto3" json:"duration,omitempty"` 590 // associated metadata 591 Metadata map[string]string `protobuf:"bytes,7,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` 592 Type SpanType `protobuf:"varint,8,opt,name=type,proto3,enum=SpanType" json:"type,omitempty"` 593 } 594 595 func (x *Span) Reset() { 596 *x = Span{} 597 if protoimpl.UnsafeEnabled { 598 mi := &file_debug_service_proto_debug_proto_msgTypes[8] 599 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 600 ms.StoreMessageInfo(mi) 601 } 602 } 603 604 func (x *Span) String() string { 605 return protoimpl.X.MessageStringOf(x) 606 } 607 608 func (*Span) ProtoMessage() {} 609 610 func (x *Span) ProtoReflect() protoreflect.Message { 611 mi := &file_debug_service_proto_debug_proto_msgTypes[8] 612 if protoimpl.UnsafeEnabled && x != nil { 613 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 614 if ms.LoadMessageInfo() == nil { 615 ms.StoreMessageInfo(mi) 616 } 617 return ms 618 } 619 return mi.MessageOf(x) 620 } 621 622 // Deprecated: Use Span.ProtoReflect.Descriptor instead. 623 func (*Span) Descriptor() ([]byte, []int) { 624 return file_debug_service_proto_debug_proto_rawDescGZIP(), []int{8} 625 } 626 627 func (x *Span) GetTrace() string { 628 if x != nil { 629 return x.Trace 630 } 631 return "" 632 } 633 634 func (x *Span) GetId() string { 635 if x != nil { 636 return x.Id 637 } 638 return "" 639 } 640 641 func (x *Span) GetParent() string { 642 if x != nil { 643 return x.Parent 644 } 645 return "" 646 } 647 648 func (x *Span) GetName() string { 649 if x != nil { 650 return x.Name 651 } 652 return "" 653 } 654 655 func (x *Span) GetStarted() uint64 { 656 if x != nil { 657 return x.Started 658 } 659 return 0 660 } 661 662 func (x *Span) GetDuration() uint64 { 663 if x != nil { 664 return x.Duration 665 } 666 return 0 667 } 668 669 func (x *Span) GetMetadata() map[string]string { 670 if x != nil { 671 return x.Metadata 672 } 673 return nil 674 } 675 676 func (x *Span) GetType() SpanType { 677 if x != nil { 678 return x.Type 679 } 680 return SpanType_INBOUND 681 } 682 683 type CacheRequest struct { 684 state protoimpl.MessageState 685 sizeCache protoimpl.SizeCache 686 unknownFields protoimpl.UnknownFields 687 } 688 689 func (x *CacheRequest) Reset() { 690 *x = CacheRequest{} 691 if protoimpl.UnsafeEnabled { 692 mi := &file_debug_service_proto_debug_proto_msgTypes[9] 693 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 694 ms.StoreMessageInfo(mi) 695 } 696 } 697 698 func (x *CacheRequest) String() string { 699 return protoimpl.X.MessageStringOf(x) 700 } 701 702 func (*CacheRequest) ProtoMessage() {} 703 704 func (x *CacheRequest) ProtoReflect() protoreflect.Message { 705 mi := &file_debug_service_proto_debug_proto_msgTypes[9] 706 if protoimpl.UnsafeEnabled && x != nil { 707 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 708 if ms.LoadMessageInfo() == nil { 709 ms.StoreMessageInfo(mi) 710 } 711 return ms 712 } 713 return mi.MessageOf(x) 714 } 715 716 // Deprecated: Use CacheRequest.ProtoReflect.Descriptor instead. 717 func (*CacheRequest) Descriptor() ([]byte, []int) { 718 return file_debug_service_proto_debug_proto_rawDescGZIP(), []int{9} 719 } 720 721 type CacheResponse struct { 722 state protoimpl.MessageState 723 sizeCache protoimpl.SizeCache 724 unknownFields protoimpl.UnknownFields 725 726 Values map[string]string `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` 727 } 728 729 func (x *CacheResponse) Reset() { 730 *x = CacheResponse{} 731 if protoimpl.UnsafeEnabled { 732 mi := &file_debug_service_proto_debug_proto_msgTypes[10] 733 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 734 ms.StoreMessageInfo(mi) 735 } 736 } 737 738 func (x *CacheResponse) String() string { 739 return protoimpl.X.MessageStringOf(x) 740 } 741 742 func (*CacheResponse) ProtoMessage() {} 743 744 func (x *CacheResponse) ProtoReflect() protoreflect.Message { 745 mi := &file_debug_service_proto_debug_proto_msgTypes[10] 746 if protoimpl.UnsafeEnabled && x != nil { 747 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 748 if ms.LoadMessageInfo() == nil { 749 ms.StoreMessageInfo(mi) 750 } 751 return ms 752 } 753 return mi.MessageOf(x) 754 } 755 756 // Deprecated: Use CacheResponse.ProtoReflect.Descriptor instead. 757 func (*CacheResponse) Descriptor() ([]byte, []int) { 758 return file_debug_service_proto_debug_proto_rawDescGZIP(), []int{10} 759 } 760 761 func (x *CacheResponse) GetValues() map[string]string { 762 if x != nil { 763 return x.Values 764 } 765 return nil 766 } 767 768 var File_debug_service_proto_debug_proto protoreflect.FileDescriptor 769 770 var file_debug_service_proto_debug_proto_rawDesc = []byte{ 771 0x0a, 0x1f, 0x64, 0x65, 0x62, 0x75, 0x67, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 772 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x64, 0x65, 0x62, 0x75, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 773 0x6f, 0x22, 0x29, 0x0a, 0x0d, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 774 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x18, 0x01, 0x20, 775 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x22, 0x28, 0x0a, 0x0e, 776 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 777 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 778 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x28, 0x0a, 0x0c, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 779 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 780 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 781 0x22, 0xd5, 0x01, 0x0a, 0x0d, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 782 0x73, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 783 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 784 0x12, 0x18, 0x0a, 0x07, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 785 0x04, 0x52, 0x07, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x70, 786 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x75, 0x70, 0x74, 0x69, 787 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x18, 0x04, 0x20, 0x01, 788 0x28, 0x04, 0x52, 0x06, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x74, 0x68, 789 0x72, 0x65, 0x61, 0x64, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x74, 0x68, 0x72, 790 0x65, 0x61, 0x64, 0x73, 0x12, 0x0e, 0x0a, 0x02, 0x67, 0x63, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 791 0x52, 0x02, 0x67, 0x63, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 792 0x18, 0x07, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 793 0x12, 0x16, 0x0a, 0x06, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x04, 794 0x52, 0x06, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x73, 0x22, 0x6a, 0x0a, 0x0a, 0x4c, 0x6f, 0x67, 0x52, 795 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 796 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 797 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 798 0x52, 0x06, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 799 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x14, 800 0x0a, 0x05, 0x73, 0x69, 0x6e, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x73, 801 0x69, 0x6e, 0x63, 0x65, 0x22, 0xb0, 0x01, 0x0a, 0x06, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 802 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x01, 0x20, 0x01, 803 0x28, 0x03, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x31, 0x0a, 804 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 805 0x15, 0x2e, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 806 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 807 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 808 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x1a, 0x3b, 0x0a, 0x0d, 0x4d, 0x65, 809 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 810 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 811 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 812 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x1e, 0x0a, 0x0c, 0x54, 0x72, 0x61, 0x63, 0x65, 813 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 814 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x2c, 0x0a, 0x0d, 0x54, 0x72, 0x61, 0x63, 0x65, 815 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1b, 0x0a, 0x05, 0x73, 0x70, 0x61, 0x6e, 816 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x05, 0x2e, 0x53, 0x70, 0x61, 0x6e, 0x52, 0x05, 817 0x73, 0x70, 0x61, 0x6e, 0x73, 0x22, 0x9b, 0x02, 0x0a, 0x04, 0x53, 0x70, 0x61, 0x6e, 0x12, 0x14, 818 0x0a, 0x05, 0x74, 0x72, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 819 0x72, 0x61, 0x63, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 820 0x52, 0x02, 0x69, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x03, 821 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x12, 0x0a, 0x04, 822 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 823 0x12, 0x18, 0x0a, 0x07, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 824 0x04, 0x52, 0x07, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x75, 825 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x64, 0x75, 826 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2f, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 827 0x74, 0x61, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x53, 0x70, 0x61, 0x6e, 0x2e, 828 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x08, 0x6d, 829 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x1d, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 830 0x08, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x09, 0x2e, 0x53, 0x70, 0x61, 0x6e, 0x54, 0x79, 0x70, 0x65, 831 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x1a, 0x3b, 0x0a, 0x0d, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 832 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 833 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 834 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 835 0x02, 0x38, 0x01, 0x22, 0x0e, 0x0a, 0x0c, 0x43, 0x61, 0x63, 0x68, 0x65, 0x52, 0x65, 0x71, 0x75, 836 0x65, 0x73, 0x74, 0x22, 0x7e, 0x0a, 0x0d, 0x43, 0x61, 0x63, 0x68, 0x65, 0x52, 0x65, 0x73, 0x70, 837 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x32, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x01, 838 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x43, 0x61, 0x63, 0x68, 0x65, 0x52, 0x65, 0x73, 0x70, 839 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 840 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x1a, 0x39, 0x0a, 0x0b, 0x56, 0x61, 0x6c, 0x75, 841 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 842 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 843 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 844 0x02, 0x38, 0x01, 0x2a, 0x25, 0x0a, 0x08, 0x53, 0x70, 0x61, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 845 0x0b, 0x0a, 0x07, 0x49, 0x4e, 0x42, 0x4f, 0x55, 0x4e, 0x44, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 846 0x4f, 0x55, 0x54, 0x42, 0x4f, 0x55, 0x4e, 0x44, 0x10, 0x01, 0x32, 0xd3, 0x01, 0x0a, 0x05, 0x44, 847 0x65, 0x62, 0x75, 0x67, 0x12, 0x1f, 0x0a, 0x03, 0x4c, 0x6f, 0x67, 0x12, 0x0b, 0x2e, 0x4c, 0x6f, 848 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x07, 0x2e, 0x52, 0x65, 0x63, 0x6f, 0x72, 849 0x64, 0x22, 0x00, 0x30, 0x01, 0x12, 0x2b, 0x0a, 0x06, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x12, 850 0x0e, 0x2e, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 851 0x0f, 0x2e, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 852 0x22, 0x00, 0x12, 0x28, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, 0x73, 0x12, 0x0d, 0x2e, 0x53, 0x74, 853 0x61, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x53, 0x74, 0x61, 854 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x28, 0x0a, 0x05, 855 0x54, 0x72, 0x61, 0x63, 0x65, 0x12, 0x0d, 0x2e, 0x54, 0x72, 0x61, 0x63, 0x65, 0x52, 0x65, 0x71, 856 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x54, 0x72, 0x61, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 857 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x28, 0x0a, 0x05, 0x43, 0x61, 0x63, 0x68, 0x65, 0x12, 858 0x0d, 0x2e, 0x43, 0x61, 0x63, 0x68, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 859 0x2e, 0x43, 0x61, 0x63, 0x68, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 860 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 861 } 862 863 var ( 864 file_debug_service_proto_debug_proto_rawDescOnce sync.Once 865 file_debug_service_proto_debug_proto_rawDescData = file_debug_service_proto_debug_proto_rawDesc 866 ) 867 868 func file_debug_service_proto_debug_proto_rawDescGZIP() []byte { 869 file_debug_service_proto_debug_proto_rawDescOnce.Do(func() { 870 file_debug_service_proto_debug_proto_rawDescData = protoimpl.X.CompressGZIP(file_debug_service_proto_debug_proto_rawDescData) 871 }) 872 return file_debug_service_proto_debug_proto_rawDescData 873 } 874 875 var file_debug_service_proto_debug_proto_enumTypes = make([]protoimpl.EnumInfo, 1) 876 var file_debug_service_proto_debug_proto_msgTypes = make([]protoimpl.MessageInfo, 14) 877 var file_debug_service_proto_debug_proto_goTypes = []interface{}{ 878 (SpanType)(0), // 0: SpanType 879 (*HealthRequest)(nil), // 1: HealthRequest 880 (*HealthResponse)(nil), // 2: HealthResponse 881 (*StatsRequest)(nil), // 3: StatsRequest 882 (*StatsResponse)(nil), // 4: StatsResponse 883 (*LogRequest)(nil), // 5: LogRequest 884 (*Record)(nil), // 6: Record 885 (*TraceRequest)(nil), // 7: TraceRequest 886 (*TraceResponse)(nil), // 8: TraceResponse 887 (*Span)(nil), // 9: Span 888 (*CacheRequest)(nil), // 10: CacheRequest 889 (*CacheResponse)(nil), // 11: CacheResponse 890 nil, // 12: Record.MetadataEntry 891 nil, // 13: Span.MetadataEntry 892 nil, // 14: CacheResponse.ValuesEntry 893 } 894 var file_debug_service_proto_debug_proto_depIdxs = []int32{ 895 12, // 0: Record.metadata:type_name -> Record.MetadataEntry 896 9, // 1: TraceResponse.spans:type_name -> Span 897 13, // 2: Span.metadata:type_name -> Span.MetadataEntry 898 0, // 3: Span.type:type_name -> SpanType 899 14, // 4: CacheResponse.values:type_name -> CacheResponse.ValuesEntry 900 5, // 5: Debug.Log:input_type -> LogRequest 901 1, // 6: Debug.Health:input_type -> HealthRequest 902 3, // 7: Debug.Stats:input_type -> StatsRequest 903 7, // 8: Debug.Trace:input_type -> TraceRequest 904 10, // 9: Debug.Cache:input_type -> CacheRequest 905 6, // 10: Debug.Log:output_type -> Record 906 2, // 11: Debug.Health:output_type -> HealthResponse 907 4, // 12: Debug.Stats:output_type -> StatsResponse 908 8, // 13: Debug.Trace:output_type -> TraceResponse 909 11, // 14: Debug.Cache:output_type -> CacheResponse 910 10, // [10:15] is the sub-list for method output_type 911 5, // [5:10] is the sub-list for method input_type 912 5, // [5:5] is the sub-list for extension type_name 913 5, // [5:5] is the sub-list for extension extendee 914 0, // [0:5] is the sub-list for field type_name 915 } 916 917 func init() { file_debug_service_proto_debug_proto_init() } 918 func file_debug_service_proto_debug_proto_init() { 919 if File_debug_service_proto_debug_proto != nil { 920 return 921 } 922 if !protoimpl.UnsafeEnabled { 923 file_debug_service_proto_debug_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 924 switch v := v.(*HealthRequest); i { 925 case 0: 926 return &v.state 927 case 1: 928 return &v.sizeCache 929 case 2: 930 return &v.unknownFields 931 default: 932 return nil 933 } 934 } 935 file_debug_service_proto_debug_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 936 switch v := v.(*HealthResponse); i { 937 case 0: 938 return &v.state 939 case 1: 940 return &v.sizeCache 941 case 2: 942 return &v.unknownFields 943 default: 944 return nil 945 } 946 } 947 file_debug_service_proto_debug_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 948 switch v := v.(*StatsRequest); i { 949 case 0: 950 return &v.state 951 case 1: 952 return &v.sizeCache 953 case 2: 954 return &v.unknownFields 955 default: 956 return nil 957 } 958 } 959 file_debug_service_proto_debug_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 960 switch v := v.(*StatsResponse); i { 961 case 0: 962 return &v.state 963 case 1: 964 return &v.sizeCache 965 case 2: 966 return &v.unknownFields 967 default: 968 return nil 969 } 970 } 971 file_debug_service_proto_debug_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { 972 switch v := v.(*LogRequest); i { 973 case 0: 974 return &v.state 975 case 1: 976 return &v.sizeCache 977 case 2: 978 return &v.unknownFields 979 default: 980 return nil 981 } 982 } 983 file_debug_service_proto_debug_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { 984 switch v := v.(*Record); i { 985 case 0: 986 return &v.state 987 case 1: 988 return &v.sizeCache 989 case 2: 990 return &v.unknownFields 991 default: 992 return nil 993 } 994 } 995 file_debug_service_proto_debug_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { 996 switch v := v.(*TraceRequest); i { 997 case 0: 998 return &v.state 999 case 1: 1000 return &v.sizeCache 1001 case 2: 1002 return &v.unknownFields 1003 default: 1004 return nil 1005 } 1006 } 1007 file_debug_service_proto_debug_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { 1008 switch v := v.(*TraceResponse); i { 1009 case 0: 1010 return &v.state 1011 case 1: 1012 return &v.sizeCache 1013 case 2: 1014 return &v.unknownFields 1015 default: 1016 return nil 1017 } 1018 } 1019 file_debug_service_proto_debug_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { 1020 switch v := v.(*Span); i { 1021 case 0: 1022 return &v.state 1023 case 1: 1024 return &v.sizeCache 1025 case 2: 1026 return &v.unknownFields 1027 default: 1028 return nil 1029 } 1030 } 1031 file_debug_service_proto_debug_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { 1032 switch v := v.(*CacheRequest); i { 1033 case 0: 1034 return &v.state 1035 case 1: 1036 return &v.sizeCache 1037 case 2: 1038 return &v.unknownFields 1039 default: 1040 return nil 1041 } 1042 } 1043 file_debug_service_proto_debug_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { 1044 switch v := v.(*CacheResponse); i { 1045 case 0: 1046 return &v.state 1047 case 1: 1048 return &v.sizeCache 1049 case 2: 1050 return &v.unknownFields 1051 default: 1052 return nil 1053 } 1054 } 1055 } 1056 type x struct{} 1057 out := protoimpl.TypeBuilder{ 1058 File: protoimpl.DescBuilder{ 1059 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 1060 RawDescriptor: file_debug_service_proto_debug_proto_rawDesc, 1061 NumEnums: 1, 1062 NumMessages: 14, 1063 NumExtensions: 0, 1064 NumServices: 1, 1065 }, 1066 GoTypes: file_debug_service_proto_debug_proto_goTypes, 1067 DependencyIndexes: file_debug_service_proto_debug_proto_depIdxs, 1068 EnumInfos: file_debug_service_proto_debug_proto_enumTypes, 1069 MessageInfos: file_debug_service_proto_debug_proto_msgTypes, 1070 }.Build() 1071 File_debug_service_proto_debug_proto = out.File 1072 file_debug_service_proto_debug_proto_rawDesc = nil 1073 file_debug_service_proto_debug_proto_goTypes = nil 1074 file_debug_service_proto_debug_proto_depIdxs = nil 1075 } 1076 1077 // Reference imports to suppress errors if they are not otherwise used. 1078 var _ context.Context 1079 var _ grpc.ClientConnInterface 1080 1081 // This is a compile-time assertion to ensure that this generated file 1082 // is compatible with the grpc package it is being compiled against. 1083 const _ = grpc.SupportPackageIsVersion6 1084 1085 // DebugClient is the client API for Debug service. 1086 // 1087 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 1088 type DebugClient interface { 1089 Log(ctx context.Context, in *LogRequest, opts ...grpc.CallOption) (Debug_LogClient, error) 1090 Health(ctx context.Context, in *HealthRequest, opts ...grpc.CallOption) (*HealthResponse, error) 1091 Stats(ctx context.Context, in *StatsRequest, opts ...grpc.CallOption) (*StatsResponse, error) 1092 Trace(ctx context.Context, in *TraceRequest, opts ...grpc.CallOption) (*TraceResponse, error) 1093 Cache(ctx context.Context, in *CacheRequest, opts ...grpc.CallOption) (*CacheResponse, error) 1094 } 1095 1096 type debugClient struct { 1097 cc grpc.ClientConnInterface 1098 } 1099 1100 func NewDebugClient(cc grpc.ClientConnInterface) DebugClient { 1101 return &debugClient{cc} 1102 } 1103 1104 func (c *debugClient) Log(ctx context.Context, in *LogRequest, opts ...grpc.CallOption) (Debug_LogClient, error) { 1105 stream, err := c.cc.NewStream(ctx, &_Debug_serviceDesc.Streams[0], "/Debug/Log", opts...) 1106 if err != nil { 1107 return nil, err 1108 } 1109 x := &debugLogClient{stream} 1110 if err := x.ClientStream.SendMsg(in); err != nil { 1111 return nil, err 1112 } 1113 if err := x.ClientStream.CloseSend(); err != nil { 1114 return nil, err 1115 } 1116 return x, nil 1117 } 1118 1119 type Debug_LogClient interface { 1120 Recv() (*Record, error) 1121 grpc.ClientStream 1122 } 1123 1124 type debugLogClient struct { 1125 grpc.ClientStream 1126 } 1127 1128 func (x *debugLogClient) Recv() (*Record, error) { 1129 m := new(Record) 1130 if err := x.ClientStream.RecvMsg(m); err != nil { 1131 return nil, err 1132 } 1133 return m, nil 1134 } 1135 1136 func (c *debugClient) Health(ctx context.Context, in *HealthRequest, opts ...grpc.CallOption) (*HealthResponse, error) { 1137 out := new(HealthResponse) 1138 err := c.cc.Invoke(ctx, "/Debug/Health", in, out, opts...) 1139 if err != nil { 1140 return nil, err 1141 } 1142 return out, nil 1143 } 1144 1145 func (c *debugClient) Stats(ctx context.Context, in *StatsRequest, opts ...grpc.CallOption) (*StatsResponse, error) { 1146 out := new(StatsResponse) 1147 err := c.cc.Invoke(ctx, "/Debug/Stats", in, out, opts...) 1148 if err != nil { 1149 return nil, err 1150 } 1151 return out, nil 1152 } 1153 1154 func (c *debugClient) Trace(ctx context.Context, in *TraceRequest, opts ...grpc.CallOption) (*TraceResponse, error) { 1155 out := new(TraceResponse) 1156 err := c.cc.Invoke(ctx, "/Debug/Trace", in, out, opts...) 1157 if err != nil { 1158 return nil, err 1159 } 1160 return out, nil 1161 } 1162 1163 func (c *debugClient) Cache(ctx context.Context, in *CacheRequest, opts ...grpc.CallOption) (*CacheResponse, error) { 1164 out := new(CacheResponse) 1165 err := c.cc.Invoke(ctx, "/Debug/Cache", in, out, opts...) 1166 if err != nil { 1167 return nil, err 1168 } 1169 return out, nil 1170 } 1171 1172 // DebugServer is the server API for Debug service. 1173 type DebugServer interface { 1174 Log(*LogRequest, Debug_LogServer) error 1175 Health(context.Context, *HealthRequest) (*HealthResponse, error) 1176 Stats(context.Context, *StatsRequest) (*StatsResponse, error) 1177 Trace(context.Context, *TraceRequest) (*TraceResponse, error) 1178 Cache(context.Context, *CacheRequest) (*CacheResponse, error) 1179 } 1180 1181 // UnimplementedDebugServer can be embedded to have forward compatible implementations. 1182 type UnimplementedDebugServer struct { 1183 } 1184 1185 func (*UnimplementedDebugServer) Log(*LogRequest, Debug_LogServer) error { 1186 return status.Errorf(codes.Unimplemented, "method Log not implemented") 1187 } 1188 func (*UnimplementedDebugServer) Health(context.Context, *HealthRequest) (*HealthResponse, error) { 1189 return nil, status.Errorf(codes.Unimplemented, "method Health not implemented") 1190 } 1191 func (*UnimplementedDebugServer) Stats(context.Context, *StatsRequest) (*StatsResponse, error) { 1192 return nil, status.Errorf(codes.Unimplemented, "method Stats not implemented") 1193 } 1194 func (*UnimplementedDebugServer) Trace(context.Context, *TraceRequest) (*TraceResponse, error) { 1195 return nil, status.Errorf(codes.Unimplemented, "method Trace not implemented") 1196 } 1197 func (*UnimplementedDebugServer) Cache(context.Context, *CacheRequest) (*CacheResponse, error) { 1198 return nil, status.Errorf(codes.Unimplemented, "method Cache not implemented") 1199 } 1200 1201 func RegisterDebugServer(s *grpc.Server, srv DebugServer) { 1202 s.RegisterService(&_Debug_serviceDesc, srv) 1203 } 1204 1205 func _Debug_Log_Handler(srv interface{}, stream grpc.ServerStream) error { 1206 m := new(LogRequest) 1207 if err := stream.RecvMsg(m); err != nil { 1208 return err 1209 } 1210 return srv.(DebugServer).Log(m, &debugLogServer{stream}) 1211 } 1212 1213 type Debug_LogServer interface { 1214 Send(*Record) error 1215 grpc.ServerStream 1216 } 1217 1218 type debugLogServer struct { 1219 grpc.ServerStream 1220 } 1221 1222 func (x *debugLogServer) Send(m *Record) error { 1223 return x.ServerStream.SendMsg(m) 1224 } 1225 1226 func _Debug_Health_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1227 in := new(HealthRequest) 1228 if err := dec(in); err != nil { 1229 return nil, err 1230 } 1231 if interceptor == nil { 1232 return srv.(DebugServer).Health(ctx, in) 1233 } 1234 info := &grpc.UnaryServerInfo{ 1235 Server: srv, 1236 FullMethod: "/Debug/Health", 1237 } 1238 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1239 return srv.(DebugServer).Health(ctx, req.(*HealthRequest)) 1240 } 1241 return interceptor(ctx, in, info, handler) 1242 } 1243 1244 func _Debug_Stats_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1245 in := new(StatsRequest) 1246 if err := dec(in); err != nil { 1247 return nil, err 1248 } 1249 if interceptor == nil { 1250 return srv.(DebugServer).Stats(ctx, in) 1251 } 1252 info := &grpc.UnaryServerInfo{ 1253 Server: srv, 1254 FullMethod: "/Debug/Stats", 1255 } 1256 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1257 return srv.(DebugServer).Stats(ctx, req.(*StatsRequest)) 1258 } 1259 return interceptor(ctx, in, info, handler) 1260 } 1261 1262 func _Debug_Trace_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1263 in := new(TraceRequest) 1264 if err := dec(in); err != nil { 1265 return nil, err 1266 } 1267 if interceptor == nil { 1268 return srv.(DebugServer).Trace(ctx, in) 1269 } 1270 info := &grpc.UnaryServerInfo{ 1271 Server: srv, 1272 FullMethod: "/Debug/Trace", 1273 } 1274 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1275 return srv.(DebugServer).Trace(ctx, req.(*TraceRequest)) 1276 } 1277 return interceptor(ctx, in, info, handler) 1278 } 1279 1280 func _Debug_Cache_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1281 in := new(CacheRequest) 1282 if err := dec(in); err != nil { 1283 return nil, err 1284 } 1285 if interceptor == nil { 1286 return srv.(DebugServer).Cache(ctx, in) 1287 } 1288 info := &grpc.UnaryServerInfo{ 1289 Server: srv, 1290 FullMethod: "/Debug/Cache", 1291 } 1292 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1293 return srv.(DebugServer).Cache(ctx, req.(*CacheRequest)) 1294 } 1295 return interceptor(ctx, in, info, handler) 1296 } 1297 1298 var _Debug_serviceDesc = grpc.ServiceDesc{ 1299 ServiceName: "Debug", 1300 HandlerType: (*DebugServer)(nil), 1301 Methods: []grpc.MethodDesc{ 1302 { 1303 MethodName: "Health", 1304 Handler: _Debug_Health_Handler, 1305 }, 1306 { 1307 MethodName: "Stats", 1308 Handler: _Debug_Stats_Handler, 1309 }, 1310 { 1311 MethodName: "Trace", 1312 Handler: _Debug_Trace_Handler, 1313 }, 1314 { 1315 MethodName: "Cache", 1316 Handler: _Debug_Cache_Handler, 1317 }, 1318 }, 1319 Streams: []grpc.StreamDesc{ 1320 { 1321 StreamName: "Log", 1322 Handler: _Debug_Log_Handler, 1323 ServerStreams: true, 1324 }, 1325 }, 1326 Metadata: "debug/service/proto/debug.proto", 1327 }