github.com/khulnasoft/codebase@v0.0.0-20231214144635-a707781cbb24/proto/rdf/codebase.pb.go (about) 1 // Codebase Diagnostic Format 2 // 3 // Codebase Diagnostic Format defines generic machine readable message 4 // structures which represents a result of diagnostic tool such as a compiler 5 // or a linter. 6 // 7 // The idea behind the Codebase Diagnostic Format is to standardize 8 // the protocol for how diagnostic tools (e.g. compilers, linters, etc..) and 9 // development tools (e.g. editors, codebase, etc..) communicate. 10 // 11 // Wire formats of Codebase Diagnostic Format. 12 // - rdjsonl: JSON Lines (http://jsonlines.org/) of the `Diagnostic` message. 13 // - rdjson: JSON format of the `DiagnosticResult` message. 14 15 // Code generated by protoc-gen-go. DO NOT EDIT. 16 // versions: 17 // protoc-gen-go v1.24.0-devel 18 // protoc v3.12.3 19 // source: codebase.proto 20 21 package rdf 22 23 import ( 24 reflect "reflect" 25 sync "sync" 26 27 proto "github.com/golang/protobuf/proto" 28 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 29 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 30 ) 31 32 const ( 33 // Verify that this generated code is sufficiently up-to-date. 34 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 35 // Verify that runtime/protoimpl is sufficiently up-to-date. 36 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 37 ) 38 39 // This is a compile-time assertion that a sufficiently up-to-date version 40 // of the legacy proto package is being used. 41 const _ = proto.ProtoPackageIsVersion4 42 43 type Severity int32 44 45 const ( 46 Severity_UNKNOWN_SEVERITY Severity = 0 47 Severity_ERROR Severity = 1 48 Severity_WARNING Severity = 2 49 Severity_INFO Severity = 3 50 ) 51 52 // Enum value maps for Severity. 53 var ( 54 Severity_name = map[int32]string{ 55 0: "UNKNOWN_SEVERITY", 56 1: "ERROR", 57 2: "WARNING", 58 3: "INFO", 59 } 60 Severity_value = map[string]int32{ 61 "UNKNOWN_SEVERITY": 0, 62 "ERROR": 1, 63 "WARNING": 2, 64 "INFO": 3, 65 } 66 ) 67 68 func (x Severity) Enum() *Severity { 69 p := new(Severity) 70 *p = x 71 return p 72 } 73 74 func (x Severity) String() string { 75 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 76 } 77 78 func (Severity) Descriptor() protoreflect.EnumDescriptor { 79 return file_codebase_proto_enumTypes[0].Descriptor() 80 } 81 82 func (Severity) Type() protoreflect.EnumType { 83 return &file_codebase_proto_enumTypes[0] 84 } 85 86 func (x Severity) Number() protoreflect.EnumNumber { 87 return protoreflect.EnumNumber(x) 88 } 89 90 // Deprecated: Use Severity.Descriptor instead. 91 func (Severity) EnumDescriptor() ([]byte, []int) { 92 return file_codebase_proto_rawDescGZIP(), []int{0} 93 } 94 95 // Result of diagnostic tool such as a compiler or a linter. 96 // It's intended to be used as top-level structured format which represents a 97 // whole result of a diagnostic tool. 98 type DiagnosticResult struct { 99 state protoimpl.MessageState 100 sizeCache protoimpl.SizeCache 101 unknownFields protoimpl.UnknownFields 102 103 Diagnostics []*Diagnostic `protobuf:"bytes,1,rep,name=diagnostics,proto3" json:"diagnostics,omitempty"` 104 // The source of diagnostics, e.g. 'typescript' or 'super lint'. 105 // Optional. 106 Source *Source `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"` 107 // This diagnostics' overall severity. 108 // Optional. 109 Severity Severity `protobuf:"varint,3,opt,name=severity,proto3,enum=codebase.rdf.Severity" json:"severity,omitempty"` 110 } 111 112 func (x *DiagnosticResult) Reset() { 113 *x = DiagnosticResult{} 114 if protoimpl.UnsafeEnabled { 115 mi := &file_codebase_proto_msgTypes[0] 116 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 117 ms.StoreMessageInfo(mi) 118 } 119 } 120 121 func (x *DiagnosticResult) String() string { 122 return protoimpl.X.MessageStringOf(x) 123 } 124 125 func (*DiagnosticResult) ProtoMessage() {} 126 127 func (x *DiagnosticResult) ProtoReflect() protoreflect.Message { 128 mi := &file_codebase_proto_msgTypes[0] 129 if protoimpl.UnsafeEnabled && x != nil { 130 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 131 if ms.LoadMessageInfo() == nil { 132 ms.StoreMessageInfo(mi) 133 } 134 return ms 135 } 136 return mi.MessageOf(x) 137 } 138 139 // Deprecated: Use DiagnosticResult.ProtoReflect.Descriptor instead. 140 func (*DiagnosticResult) Descriptor() ([]byte, []int) { 141 return file_codebase_proto_rawDescGZIP(), []int{0} 142 } 143 144 func (x *DiagnosticResult) GetDiagnostics() []*Diagnostic { 145 if x != nil { 146 return x.Diagnostics 147 } 148 return nil 149 } 150 151 func (x *DiagnosticResult) GetSource() *Source { 152 if x != nil { 153 return x.Source 154 } 155 return nil 156 } 157 158 func (x *DiagnosticResult) GetSeverity() Severity { 159 if x != nil { 160 return x.Severity 161 } 162 return Severity_UNKNOWN_SEVERITY 163 } 164 165 // Represents a diagnostic, such as a compiler error or warning. 166 // It's intended to be used as structured format which represents a 167 // diagnostic and can be used as stream of input/output such as jsonl. 168 // This message should be self-contained to report a diagnostic. 169 type Diagnostic struct { 170 state protoimpl.MessageState 171 sizeCache protoimpl.SizeCache 172 unknownFields protoimpl.UnknownFields 173 174 // The diagnostic's message. 175 Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` 176 // Location at which this diagnostic message applies. 177 Location *Location `protobuf:"bytes,2,opt,name=location,proto3" json:"location,omitempty"` 178 // This diagnostic's severity. 179 // Optional. 180 Severity Severity `protobuf:"varint,3,opt,name=severity,proto3,enum=codebase.rdf.Severity" json:"severity,omitempty"` 181 // The source of this diagnostic, e.g. 'typescript' or 'super lint'. 182 // Optional. 183 Source *Source `protobuf:"bytes,4,opt,name=source,proto3" json:"source,omitempty"` 184 // This diagnostic's rule code. 185 // Optional. 186 Code *Code `protobuf:"bytes,5,opt,name=code,proto3" json:"code,omitempty"` 187 // Suggested fixes to resolve this diagnostic. 188 // Optional. 189 Suggestions []*Suggestion `protobuf:"bytes,6,rep,name=suggestions,proto3" json:"suggestions,omitempty"` 190 // Experimental: If this diagnostic is converted from other formats, 191 // original_output represents the original output which corresponds to this 192 // diagnostic. 193 // Optional. 194 OriginalOutput string `protobuf:"bytes,7,opt,name=original_output,json=originalOutput,proto3" json:"original_output,omitempty"` 195 } 196 197 func (x *Diagnostic) Reset() { 198 *x = Diagnostic{} 199 if protoimpl.UnsafeEnabled { 200 mi := &file_codebase_proto_msgTypes[1] 201 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 202 ms.StoreMessageInfo(mi) 203 } 204 } 205 206 func (x *Diagnostic) String() string { 207 return protoimpl.X.MessageStringOf(x) 208 } 209 210 func (*Diagnostic) ProtoMessage() {} 211 212 func (x *Diagnostic) ProtoReflect() protoreflect.Message { 213 mi := &file_codebase_proto_msgTypes[1] 214 if protoimpl.UnsafeEnabled && x != nil { 215 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 216 if ms.LoadMessageInfo() == nil { 217 ms.StoreMessageInfo(mi) 218 } 219 return ms 220 } 221 return mi.MessageOf(x) 222 } 223 224 // Deprecated: Use Diagnostic.ProtoReflect.Descriptor instead. 225 func (*Diagnostic) Descriptor() ([]byte, []int) { 226 return file_codebase_proto_rawDescGZIP(), []int{1} 227 } 228 229 func (x *Diagnostic) GetMessage() string { 230 if x != nil { 231 return x.Message 232 } 233 return "" 234 } 235 236 func (x *Diagnostic) GetLocation() *Location { 237 if x != nil { 238 return x.Location 239 } 240 return nil 241 } 242 243 func (x *Diagnostic) GetSeverity() Severity { 244 if x != nil { 245 return x.Severity 246 } 247 return Severity_UNKNOWN_SEVERITY 248 } 249 250 func (x *Diagnostic) GetSource() *Source { 251 if x != nil { 252 return x.Source 253 } 254 return nil 255 } 256 257 func (x *Diagnostic) GetCode() *Code { 258 if x != nil { 259 return x.Code 260 } 261 return nil 262 } 263 264 func (x *Diagnostic) GetSuggestions() []*Suggestion { 265 if x != nil { 266 return x.Suggestions 267 } 268 return nil 269 } 270 271 func (x *Diagnostic) GetOriginalOutput() string { 272 if x != nil { 273 return x.OriginalOutput 274 } 275 return "" 276 } 277 278 type Location struct { 279 state protoimpl.MessageState 280 sizeCache protoimpl.SizeCache 281 unknownFields protoimpl.UnknownFields 282 283 // File path. It could be either absolute path or relative path. 284 Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` 285 // Range in the file path. 286 // Optional. 287 Range *Range `protobuf:"bytes,3,opt,name=range,proto3" json:"range,omitempty"` 288 } 289 290 func (x *Location) Reset() { 291 *x = Location{} 292 if protoimpl.UnsafeEnabled { 293 mi := &file_codebase_proto_msgTypes[2] 294 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 295 ms.StoreMessageInfo(mi) 296 } 297 } 298 299 func (x *Location) String() string { 300 return protoimpl.X.MessageStringOf(x) 301 } 302 303 func (*Location) ProtoMessage() {} 304 305 func (x *Location) ProtoReflect() protoreflect.Message { 306 mi := &file_codebase_proto_msgTypes[2] 307 if protoimpl.UnsafeEnabled && x != nil { 308 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 309 if ms.LoadMessageInfo() == nil { 310 ms.StoreMessageInfo(mi) 311 } 312 return ms 313 } 314 return mi.MessageOf(x) 315 } 316 317 // Deprecated: Use Location.ProtoReflect.Descriptor instead. 318 func (*Location) Descriptor() ([]byte, []int) { 319 return file_codebase_proto_rawDescGZIP(), []int{2} 320 } 321 322 func (x *Location) GetPath() string { 323 if x != nil { 324 return x.Path 325 } 326 return "" 327 } 328 329 func (x *Location) GetRange() *Range { 330 if x != nil { 331 return x.Range 332 } 333 return nil 334 } 335 336 // start: { line: 2, column: 1 } 337 // end: { line: 2, column: 4 } 338 // 339 // => "abc" (without line-break) 340 type Range struct { 341 state protoimpl.MessageState 342 sizeCache protoimpl.SizeCache 343 unknownFields protoimpl.UnknownFields 344 345 // Required. 346 Start *Position `protobuf:"bytes,1,opt,name=start,proto3" json:"start,omitempty"` 347 // end can be omitted. Then the range is handled as zero-length (start == end). 348 // Optional. 349 End *Position `protobuf:"bytes,2,opt,name=end,proto3" json:"end,omitempty"` 350 } 351 352 func (x *Range) Reset() { 353 *x = Range{} 354 if protoimpl.UnsafeEnabled { 355 mi := &file_codebase_proto_msgTypes[3] 356 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 357 ms.StoreMessageInfo(mi) 358 } 359 } 360 361 func (x *Range) String() string { 362 return protoimpl.X.MessageStringOf(x) 363 } 364 365 func (*Range) ProtoMessage() {} 366 367 func (x *Range) ProtoReflect() protoreflect.Message { 368 mi := &file_codebase_proto_msgTypes[3] 369 if protoimpl.UnsafeEnabled && x != nil { 370 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 371 if ms.LoadMessageInfo() == nil { 372 ms.StoreMessageInfo(mi) 373 } 374 return ms 375 } 376 return mi.MessageOf(x) 377 } 378 379 // Deprecated: Use Range.ProtoReflect.Descriptor instead. 380 func (*Range) Descriptor() ([]byte, []int) { 381 return file_codebase_proto_rawDescGZIP(), []int{3} 382 } 383 384 func (x *Range) GetStart() *Position { 385 if x != nil { 386 return x.Start 387 } 388 return nil 389 } 390 391 func (x *Range) GetEnd() *Position { 392 if x != nil { 393 return x.End 394 } 395 return nil 396 } 397 398 type Position struct { 399 state protoimpl.MessageState 400 sizeCache protoimpl.SizeCache 401 unknownFields protoimpl.UnknownFields 402 403 // Line number, starting at 1. 404 // Optional. 405 Line int32 `protobuf:"varint,1,opt,name=line,proto3" json:"line,omitempty"` 406 // Column number, starting at 1 (byte count in UTF-8). 407 // Example: 'a𐐀b' 408 // The column of a: 1 409 // The column of 𐐀: 2 410 // The column of b: 6 since 𐐀 is represented with 4 bytes in UTF-8. 411 // Optional. 412 Column int32 `protobuf:"varint,2,opt,name=column,proto3" json:"column,omitempty"` 413 } 414 415 func (x *Position) Reset() { 416 *x = Position{} 417 if protoimpl.UnsafeEnabled { 418 mi := &file_codebase_proto_msgTypes[4] 419 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 420 ms.StoreMessageInfo(mi) 421 } 422 } 423 424 func (x *Position) String() string { 425 return protoimpl.X.MessageStringOf(x) 426 } 427 428 func (*Position) ProtoMessage() {} 429 430 func (x *Position) ProtoReflect() protoreflect.Message { 431 mi := &file_codebase_proto_msgTypes[4] 432 if protoimpl.UnsafeEnabled && x != nil { 433 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 434 if ms.LoadMessageInfo() == nil { 435 ms.StoreMessageInfo(mi) 436 } 437 return ms 438 } 439 return mi.MessageOf(x) 440 } 441 442 // Deprecated: Use Position.ProtoReflect.Descriptor instead. 443 func (*Position) Descriptor() ([]byte, []int) { 444 return file_codebase_proto_rawDescGZIP(), []int{4} 445 } 446 447 func (x *Position) GetLine() int32 { 448 if x != nil { 449 return x.Line 450 } 451 return 0 452 } 453 454 func (x *Position) GetColumn() int32 { 455 if x != nil { 456 return x.Column 457 } 458 return 0 459 } 460 461 // Suggestion represents a suggested text manipulation to resolve a diagnostic 462 // problem. 463 // 464 // Insert example ('hayabusa' -> 'haya15busa'): 465 // 466 // range { 467 // start { 468 // line: 1 469 // column: 5 470 // } 471 // end { 472 // line: 1 473 // column: 5 474 // } 475 // } 476 // text: 15 477 // 478 // |h|a|y|a|b|u|s|a| 479 // 1 2 3 4 5 6 7 8 9 480 // 481 // ^--- insert '15' 482 // 483 // Update example ('haya15busa' -> 'haya14busa'): 484 // 485 // range { 486 // start { 487 // line: 1 488 // column: 5 489 // } 490 // end { 491 // line: 1 492 // column: 7 493 // } 494 // } 495 // text: 14 496 // 497 // |h|a|y|a|1|5|b|u|s|a| 498 // 1 2 3 4 5 6 7 8 9 0 1 499 // 500 // ^---^ replace with '14' 501 type Suggestion struct { 502 state protoimpl.MessageState 503 sizeCache protoimpl.SizeCache 504 unknownFields protoimpl.UnknownFields 505 506 // Range at which this suggestion applies. 507 // To insert text into a document create a range where start == end. 508 Range *Range `protobuf:"bytes,1,opt,name=range,proto3" json:"range,omitempty"` 509 // A suggested text which replace the range. 510 // For delete operations use an empty string. 511 Text string `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"` 512 } 513 514 func (x *Suggestion) Reset() { 515 *x = Suggestion{} 516 if protoimpl.UnsafeEnabled { 517 mi := &file_codebase_proto_msgTypes[5] 518 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 519 ms.StoreMessageInfo(mi) 520 } 521 } 522 523 func (x *Suggestion) String() string { 524 return protoimpl.X.MessageStringOf(x) 525 } 526 527 func (*Suggestion) ProtoMessage() {} 528 529 func (x *Suggestion) ProtoReflect() protoreflect.Message { 530 mi := &file_codebase_proto_msgTypes[5] 531 if protoimpl.UnsafeEnabled && x != nil { 532 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 533 if ms.LoadMessageInfo() == nil { 534 ms.StoreMessageInfo(mi) 535 } 536 return ms 537 } 538 return mi.MessageOf(x) 539 } 540 541 // Deprecated: Use Suggestion.ProtoReflect.Descriptor instead. 542 func (*Suggestion) Descriptor() ([]byte, []int) { 543 return file_codebase_proto_rawDescGZIP(), []int{5} 544 } 545 546 func (x *Suggestion) GetRange() *Range { 547 if x != nil { 548 return x.Range 549 } 550 return nil 551 } 552 553 func (x *Suggestion) GetText() string { 554 if x != nil { 555 return x.Text 556 } 557 return "" 558 } 559 560 type Source struct { 561 state protoimpl.MessageState 562 sizeCache protoimpl.SizeCache 563 unknownFields protoimpl.UnknownFields 564 565 // A human-readable string describing the source of diagnostics, e.g. 566 // 'typescript' or 'super lint'. 567 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 568 // URL to this source. 569 // Optional. 570 Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` 571 } 572 573 func (x *Source) Reset() { 574 *x = Source{} 575 if protoimpl.UnsafeEnabled { 576 mi := &file_codebase_proto_msgTypes[6] 577 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 578 ms.StoreMessageInfo(mi) 579 } 580 } 581 582 func (x *Source) String() string { 583 return protoimpl.X.MessageStringOf(x) 584 } 585 586 func (*Source) ProtoMessage() {} 587 588 func (x *Source) ProtoReflect() protoreflect.Message { 589 mi := &file_codebase_proto_msgTypes[6] 590 if protoimpl.UnsafeEnabled && x != nil { 591 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 592 if ms.LoadMessageInfo() == nil { 593 ms.StoreMessageInfo(mi) 594 } 595 return ms 596 } 597 return mi.MessageOf(x) 598 } 599 600 // Deprecated: Use Source.ProtoReflect.Descriptor instead. 601 func (*Source) Descriptor() ([]byte, []int) { 602 return file_codebase_proto_rawDescGZIP(), []int{6} 603 } 604 605 func (x *Source) GetName() string { 606 if x != nil { 607 return x.Name 608 } 609 return "" 610 } 611 612 func (x *Source) GetUrl() string { 613 if x != nil { 614 return x.Url 615 } 616 return "" 617 } 618 619 type Code struct { 620 state protoimpl.MessageState 621 sizeCache protoimpl.SizeCache 622 unknownFields protoimpl.UnknownFields 623 624 // This rule's code/identifier. 625 Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` 626 // A URL to open with more information about this rule code. 627 // Optional. 628 Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` 629 } 630 631 func (x *Code) Reset() { 632 *x = Code{} 633 if protoimpl.UnsafeEnabled { 634 mi := &file_codebase_proto_msgTypes[7] 635 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 636 ms.StoreMessageInfo(mi) 637 } 638 } 639 640 func (x *Code) String() string { 641 return protoimpl.X.MessageStringOf(x) 642 } 643 644 func (*Code) ProtoMessage() {} 645 646 func (x *Code) ProtoReflect() protoreflect.Message { 647 mi := &file_codebase_proto_msgTypes[7] 648 if protoimpl.UnsafeEnabled && x != nil { 649 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 650 if ms.LoadMessageInfo() == nil { 651 ms.StoreMessageInfo(mi) 652 } 653 return ms 654 } 655 return mi.MessageOf(x) 656 } 657 658 // Deprecated: Use Code.ProtoReflect.Descriptor instead. 659 func (*Code) Descriptor() ([]byte, []int) { 660 return file_codebase_proto_rawDescGZIP(), []int{7} 661 } 662 663 func (x *Code) GetValue() string { 664 if x != nil { 665 return x.Value 666 } 667 return "" 668 } 669 670 func (x *Code) GetUrl() string { 671 if x != nil { 672 return x.Url 673 } 674 return "" 675 } 676 677 var File_codebase_proto protoreflect.FileDescriptor 678 679 var file_codebase_proto_rawDesc = []byte{ 680 0x0a, 0x0f, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 681 0x6f, 0x12, 0x0d, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x64, 0x6f, 0x67, 0x2e, 0x72, 0x64, 0x66, 682 0x22, 0xb3, 0x01, 0x0a, 0x10, 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x52, 683 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x3b, 0x0a, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 684 0x74, 0x69, 0x63, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x72, 0x65, 0x76, 685 0x69, 0x65, 0x77, 0x64, 0x6f, 0x67, 0x2e, 0x72, 0x64, 0x66, 0x2e, 0x44, 0x69, 0x61, 0x67, 0x6e, 686 0x6f, 0x73, 0x74, 0x69, 0x63, 0x52, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 687 0x63, 0x73, 0x12, 0x2d, 0x0a, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 688 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x64, 0x6f, 0x67, 0x2e, 0x72, 689 0x64, 0x66, 0x2e, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 690 0x65, 0x12, 0x33, 0x0a, 0x08, 0x73, 0x65, 0x76, 0x65, 0x72, 0x69, 0x74, 0x79, 0x18, 0x03, 0x20, 691 0x01, 0x28, 0x0e, 0x32, 0x17, 0x2e, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x64, 0x6f, 0x67, 0x2e, 692 0x72, 0x64, 0x66, 0x2e, 0x53, 0x65, 0x76, 0x65, 0x72, 0x69, 0x74, 0x79, 0x52, 0x08, 0x73, 0x65, 693 0x76, 0x65, 0x72, 0x69, 0x74, 0x79, 0x22, 0xce, 0x02, 0x0a, 0x0a, 0x44, 0x69, 0x61, 0x67, 0x6e, 694 0x6f, 0x73, 0x74, 0x69, 0x63, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 695 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 696 0x33, 0x0a, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 697 0x0b, 0x32, 0x17, 0x2e, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x64, 0x6f, 0x67, 0x2e, 0x72, 0x64, 698 0x66, 0x2e, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x08, 0x6c, 0x6f, 0x63, 0x61, 699 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x33, 0x0a, 0x08, 0x73, 0x65, 0x76, 0x65, 0x72, 0x69, 0x74, 0x79, 700 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x17, 0x2e, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x64, 701 0x6f, 0x67, 0x2e, 0x72, 0x64, 0x66, 0x2e, 0x53, 0x65, 0x76, 0x65, 0x72, 0x69, 0x74, 0x79, 0x52, 702 0x08, 0x73, 0x65, 0x76, 0x65, 0x72, 0x69, 0x74, 0x79, 0x12, 0x2d, 0x0a, 0x06, 0x73, 0x6f, 0x75, 703 0x72, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x72, 0x65, 0x76, 0x69, 704 0x65, 0x77, 0x64, 0x6f, 0x67, 0x2e, 0x72, 0x64, 0x66, 0x2e, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 705 0x52, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x27, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 706 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x64, 707 0x6f, 0x67, 0x2e, 0x72, 0x64, 0x66, 0x2e, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x04, 0x63, 0x6f, 0x64, 708 0x65, 0x12, 0x3b, 0x0a, 0x0b, 0x73, 0x75, 0x67, 0x67, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x73, 709 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x64, 710 0x6f, 0x67, 0x2e, 0x72, 0x64, 0x66, 0x2e, 0x53, 0x75, 0x67, 0x67, 0x65, 0x73, 0x74, 0x69, 0x6f, 711 0x6e, 0x52, 0x0b, 0x73, 0x75, 0x67, 0x67, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x27, 712 0x0a, 0x0f, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x6c, 0x5f, 0x6f, 0x75, 0x74, 0x70, 0x75, 713 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 714 0x6c, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x22, 0x4a, 0x0a, 0x08, 0x4c, 0x6f, 0x63, 0x61, 0x74, 715 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 716 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x2a, 0x0a, 0x05, 0x72, 0x61, 0x6e, 0x67, 0x65, 717 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x64, 718 0x6f, 0x67, 0x2e, 0x72, 0x64, 0x66, 0x2e, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x05, 0x72, 0x61, 719 0x6e, 0x67, 0x65, 0x22, 0x61, 0x0a, 0x05, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x2d, 0x0a, 0x05, 720 0x73, 0x74, 0x61, 0x72, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x72, 0x65, 721 0x76, 0x69, 0x65, 0x77, 0x64, 0x6f, 0x67, 0x2e, 0x72, 0x64, 0x66, 0x2e, 0x50, 0x6f, 0x73, 0x69, 722 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x05, 0x73, 0x74, 0x61, 0x72, 0x74, 0x12, 0x29, 0x0a, 0x03, 0x65, 723 0x6e, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x72, 0x65, 0x76, 0x69, 0x65, 724 0x77, 0x64, 0x6f, 0x67, 0x2e, 0x72, 0x64, 0x66, 0x2e, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 725 0x6e, 0x52, 0x03, 0x65, 0x6e, 0x64, 0x22, 0x36, 0x0a, 0x08, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 726 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6c, 0x69, 0x6e, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 727 0x52, 0x04, 0x6c, 0x69, 0x6e, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 728 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x22, 0x4c, 729 0x0a, 0x0a, 0x53, 0x75, 0x67, 0x67, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2a, 0x0a, 0x05, 730 0x72, 0x61, 0x6e, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x72, 0x65, 731 0x76, 0x69, 0x65, 0x77, 0x64, 0x6f, 0x67, 0x2e, 0x72, 0x64, 0x66, 0x2e, 0x52, 0x61, 0x6e, 0x67, 732 0x65, 0x52, 0x05, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x65, 0x78, 0x74, 733 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x65, 0x78, 0x74, 0x22, 0x2e, 0x0a, 0x06, 734 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 735 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 736 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x22, 0x2e, 0x0a, 0x04, 737 0x43, 0x6f, 0x64, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 738 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 739 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x2a, 0x42, 0x0a, 0x08, 740 0x53, 0x65, 0x76, 0x65, 0x72, 0x69, 0x74, 0x79, 0x12, 0x14, 0x0a, 0x10, 0x55, 0x4e, 0x4b, 0x4e, 741 0x4f, 0x57, 0x4e, 0x5f, 0x53, 0x45, 0x56, 0x45, 0x52, 0x49, 0x54, 0x59, 0x10, 0x00, 0x12, 0x09, 742 0x0a, 0x05, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x57, 0x41, 0x52, 743 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x02, 0x12, 0x08, 0x0a, 0x04, 0x49, 0x4e, 0x46, 0x4f, 0x10, 0x03, 744 0x42, 0x2a, 0x5a, 0x28, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x72, 745 0x65, 0x76, 0x69, 0x65, 0x77, 0x64, 0x6f, 0x67, 0x2f, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x64, 746 0x6f, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x72, 0x64, 0x66, 0x62, 0x06, 0x70, 0x72, 747 0x6f, 0x74, 0x6f, 0x33, 748 } 749 750 var ( 751 file_codebase_proto_rawDescOnce sync.Once 752 file_codebase_proto_rawDescData = file_codebase_proto_rawDesc 753 ) 754 755 func file_codebase_proto_rawDescGZIP() []byte { 756 file_codebase_proto_rawDescOnce.Do(func() { 757 file_codebase_proto_rawDescData = protoimpl.X.CompressGZIP(file_codebase_proto_rawDescData) 758 }) 759 return file_codebase_proto_rawDescData 760 } 761 762 var file_codebase_proto_enumTypes = make([]protoimpl.EnumInfo, 1) 763 var file_codebase_proto_msgTypes = make([]protoimpl.MessageInfo, 8) 764 var file_codebase_proto_goTypes = []interface{}{ 765 (Severity)(0), // 0: codebase.rdf.Severity 766 (*DiagnosticResult)(nil), // 1: codebase.rdf.DiagnosticResult 767 (*Diagnostic)(nil), // 2: codebase.rdf.Diagnostic 768 (*Location)(nil), // 3: codebase.rdf.Location 769 (*Range)(nil), // 4: codebase.rdf.Range 770 (*Position)(nil), // 5: codebase.rdf.Position 771 (*Suggestion)(nil), // 6: codebase.rdf.Suggestion 772 (*Source)(nil), // 7: codebase.rdf.Source 773 (*Code)(nil), // 8: codebase.rdf.Code 774 } 775 var file_codebase_proto_depIdxs = []int32{ 776 2, // 0: codebase.rdf.DiagnosticResult.diagnostics:type_name -> codebase.rdf.Diagnostic 777 7, // 1: codebase.rdf.DiagnosticResult.source:type_name -> codebase.rdf.Source 778 0, // 2: codebase.rdf.DiagnosticResult.severity:type_name -> codebase.rdf.Severity 779 3, // 3: codebase.rdf.Diagnostic.location:type_name -> codebase.rdf.Location 780 0, // 4: codebase.rdf.Diagnostic.severity:type_name -> codebase.rdf.Severity 781 7, // 5: codebase.rdf.Diagnostic.source:type_name -> codebase.rdf.Source 782 8, // 6: codebase.rdf.Diagnostic.code:type_name -> codebase.rdf.Code 783 6, // 7: codebase.rdf.Diagnostic.suggestions:type_name -> codebase.rdf.Suggestion 784 4, // 8: codebase.rdf.Location.range:type_name -> codebase.rdf.Range 785 5, // 9: codebase.rdf.Range.start:type_name -> codebase.rdf.Position 786 5, // 10: codebase.rdf.Range.end:type_name -> codebase.rdf.Position 787 4, // 11: codebase.rdf.Suggestion.range:type_name -> codebase.rdf.Range 788 12, // [12:12] is the sub-list for method output_type 789 12, // [12:12] is the sub-list for method input_type 790 12, // [12:12] is the sub-list for extension type_name 791 12, // [12:12] is the sub-list for extension extendee 792 0, // [0:12] is the sub-list for field type_name 793 } 794 795 func init() { file_codebase_proto_init() } 796 func file_codebase_proto_init() { 797 if File_codebase_proto != nil { 798 return 799 } 800 if !protoimpl.UnsafeEnabled { 801 file_codebase_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 802 switch v := v.(*DiagnosticResult); i { 803 case 0: 804 return &v.state 805 case 1: 806 return &v.sizeCache 807 case 2: 808 return &v.unknownFields 809 default: 810 return nil 811 } 812 } 813 file_codebase_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 814 switch v := v.(*Diagnostic); i { 815 case 0: 816 return &v.state 817 case 1: 818 return &v.sizeCache 819 case 2: 820 return &v.unknownFields 821 default: 822 return nil 823 } 824 } 825 file_codebase_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 826 switch v := v.(*Location); i { 827 case 0: 828 return &v.state 829 case 1: 830 return &v.sizeCache 831 case 2: 832 return &v.unknownFields 833 default: 834 return nil 835 } 836 } 837 file_codebase_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 838 switch v := v.(*Range); i { 839 case 0: 840 return &v.state 841 case 1: 842 return &v.sizeCache 843 case 2: 844 return &v.unknownFields 845 default: 846 return nil 847 } 848 } 849 file_codebase_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { 850 switch v := v.(*Position); i { 851 case 0: 852 return &v.state 853 case 1: 854 return &v.sizeCache 855 case 2: 856 return &v.unknownFields 857 default: 858 return nil 859 } 860 } 861 file_codebase_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { 862 switch v := v.(*Suggestion); i { 863 case 0: 864 return &v.state 865 case 1: 866 return &v.sizeCache 867 case 2: 868 return &v.unknownFields 869 default: 870 return nil 871 } 872 } 873 file_codebase_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { 874 switch v := v.(*Source); i { 875 case 0: 876 return &v.state 877 case 1: 878 return &v.sizeCache 879 case 2: 880 return &v.unknownFields 881 default: 882 return nil 883 } 884 } 885 file_codebase_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { 886 switch v := v.(*Code); i { 887 case 0: 888 return &v.state 889 case 1: 890 return &v.sizeCache 891 case 2: 892 return &v.unknownFields 893 default: 894 return nil 895 } 896 } 897 } 898 type x struct{} 899 out := protoimpl.TypeBuilder{ 900 File: protoimpl.DescBuilder{ 901 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 902 RawDescriptor: file_codebase_proto_rawDesc, 903 NumEnums: 1, 904 NumMessages: 8, 905 NumExtensions: 0, 906 NumServices: 0, 907 }, 908 GoTypes: file_codebase_proto_goTypes, 909 DependencyIndexes: file_codebase_proto_depIdxs, 910 EnumInfos: file_codebase_proto_enumTypes, 911 MessageInfos: file_codebase_proto_msgTypes, 912 }.Build() 913 File_codebase_proto = out.File 914 file_codebase_proto_rawDesc = nil 915 file_codebase_proto_goTypes = nil 916 file_codebase_proto_depIdxs = nil 917 }