github.com/mistwind/reviewdog@v0.0.0-20230322024206-9cfa11856d58/proto/rdf/reviewdog.pb.go (about) 1 // Reviewdog Diagnostic Format 2 // 3 // Reviewdog 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 Reviewdog Diagnostic Format is to standardize 8 // the protocol for how diagnostic tools (e.g. compilers, linters, etc..) and 9 // development tools (e.g. editors, reviewdog, etc..) communicate. 10 // 11 // Wire formats of Reviewdog 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: reviewdog.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_reviewdog_proto_enumTypes[0].Descriptor() 80 } 81 82 func (Severity) Type() protoreflect.EnumType { 83 return &file_reviewdog_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_reviewdog_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=reviewdog.rdf.Severity" json:"severity,omitempty"` 110 } 111 112 func (x *DiagnosticResult) Reset() { 113 *x = DiagnosticResult{} 114 if protoimpl.UnsafeEnabled { 115 mi := &file_reviewdog_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_reviewdog_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_reviewdog_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=reviewdog.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_reviewdog_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_reviewdog_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_reviewdog_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_reviewdog_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_reviewdog_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_reviewdog_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 // => "abc" (without line-break) 339 type Range struct { 340 state protoimpl.MessageState 341 sizeCache protoimpl.SizeCache 342 unknownFields protoimpl.UnknownFields 343 344 // Required. 345 Start *Position `protobuf:"bytes,1,opt,name=start,proto3" json:"start,omitempty"` 346 // end can be omitted. Then the range is handled as zero-length (start == end). 347 // Optional. 348 End *Position `protobuf:"bytes,2,opt,name=end,proto3" json:"end,omitempty"` 349 } 350 351 func (x *Range) Reset() { 352 *x = Range{} 353 if protoimpl.UnsafeEnabled { 354 mi := &file_reviewdog_proto_msgTypes[3] 355 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 356 ms.StoreMessageInfo(mi) 357 } 358 } 359 360 func (x *Range) String() string { 361 return protoimpl.X.MessageStringOf(x) 362 } 363 364 func (*Range) ProtoMessage() {} 365 366 func (x *Range) ProtoReflect() protoreflect.Message { 367 mi := &file_reviewdog_proto_msgTypes[3] 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 Range.ProtoReflect.Descriptor instead. 379 func (*Range) Descriptor() ([]byte, []int) { 380 return file_reviewdog_proto_rawDescGZIP(), []int{3} 381 } 382 383 func (x *Range) GetStart() *Position { 384 if x != nil { 385 return x.Start 386 } 387 return nil 388 } 389 390 func (x *Range) GetEnd() *Position { 391 if x != nil { 392 return x.End 393 } 394 return nil 395 } 396 397 type Position struct { 398 state protoimpl.MessageState 399 sizeCache protoimpl.SizeCache 400 unknownFields protoimpl.UnknownFields 401 402 // Line number, starting at 1. 403 // Optional. 404 Line int32 `protobuf:"varint,1,opt,name=line,proto3" json:"line,omitempty"` 405 // Column number, starting at 1 (byte count in UTF-8). 406 // Example: 'a𐐀b' 407 // The column of a: 1 408 // The column of 𐐀: 2 409 // The column of b: 6 since 𐐀 is represented with 4 bytes in UTF-8. 410 // Optional. 411 Column int32 `protobuf:"varint,2,opt,name=column,proto3" json:"column,omitempty"` 412 } 413 414 func (x *Position) Reset() { 415 *x = Position{} 416 if protoimpl.UnsafeEnabled { 417 mi := &file_reviewdog_proto_msgTypes[4] 418 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 419 ms.StoreMessageInfo(mi) 420 } 421 } 422 423 func (x *Position) String() string { 424 return protoimpl.X.MessageStringOf(x) 425 } 426 427 func (*Position) ProtoMessage() {} 428 429 func (x *Position) ProtoReflect() protoreflect.Message { 430 mi := &file_reviewdog_proto_msgTypes[4] 431 if protoimpl.UnsafeEnabled && x != nil { 432 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 433 if ms.LoadMessageInfo() == nil { 434 ms.StoreMessageInfo(mi) 435 } 436 return ms 437 } 438 return mi.MessageOf(x) 439 } 440 441 // Deprecated: Use Position.ProtoReflect.Descriptor instead. 442 func (*Position) Descriptor() ([]byte, []int) { 443 return file_reviewdog_proto_rawDescGZIP(), []int{4} 444 } 445 446 func (x *Position) GetLine() int32 { 447 if x != nil { 448 return x.Line 449 } 450 return 0 451 } 452 453 func (x *Position) GetColumn() int32 { 454 if x != nil { 455 return x.Column 456 } 457 return 0 458 } 459 460 // Suggestion represents a suggested text manipulation to resolve a diagnostic 461 // problem. 462 // 463 // Insert example ('hayabusa' -> 'haya15busa'): 464 // range { 465 // start { 466 // line: 1 467 // column: 5 468 // } 469 // end { 470 // line: 1 471 // column: 5 472 // } 473 // } 474 // text: 15 475 // |h|a|y|a|b|u|s|a| 476 // 1 2 3 4 5 6 7 8 9 477 // ^--- insert '15' 478 // 479 // Update example ('haya15busa' -> 'haya14busa'): 480 // range { 481 // start { 482 // line: 1 483 // column: 5 484 // } 485 // end { 486 // line: 1 487 // column: 7 488 // } 489 // } 490 // text: 14 491 // |h|a|y|a|1|5|b|u|s|a| 492 // 1 2 3 4 5 6 7 8 9 0 1 493 // ^---^ replace with '14' 494 type Suggestion struct { 495 state protoimpl.MessageState 496 sizeCache protoimpl.SizeCache 497 unknownFields protoimpl.UnknownFields 498 499 // Range at which this suggestion applies. 500 // To insert text into a document create a range where start == end. 501 Range *Range `protobuf:"bytes,1,opt,name=range,proto3" json:"range,omitempty"` 502 // A suggested text which replace the range. 503 // For delete operations use an empty string. 504 Text string `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"` 505 } 506 507 func (x *Suggestion) Reset() { 508 *x = Suggestion{} 509 if protoimpl.UnsafeEnabled { 510 mi := &file_reviewdog_proto_msgTypes[5] 511 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 512 ms.StoreMessageInfo(mi) 513 } 514 } 515 516 func (x *Suggestion) String() string { 517 return protoimpl.X.MessageStringOf(x) 518 } 519 520 func (*Suggestion) ProtoMessage() {} 521 522 func (x *Suggestion) ProtoReflect() protoreflect.Message { 523 mi := &file_reviewdog_proto_msgTypes[5] 524 if protoimpl.UnsafeEnabled && x != nil { 525 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 526 if ms.LoadMessageInfo() == nil { 527 ms.StoreMessageInfo(mi) 528 } 529 return ms 530 } 531 return mi.MessageOf(x) 532 } 533 534 // Deprecated: Use Suggestion.ProtoReflect.Descriptor instead. 535 func (*Suggestion) Descriptor() ([]byte, []int) { 536 return file_reviewdog_proto_rawDescGZIP(), []int{5} 537 } 538 539 func (x *Suggestion) GetRange() *Range { 540 if x != nil { 541 return x.Range 542 } 543 return nil 544 } 545 546 func (x *Suggestion) GetText() string { 547 if x != nil { 548 return x.Text 549 } 550 return "" 551 } 552 553 type Source struct { 554 state protoimpl.MessageState 555 sizeCache protoimpl.SizeCache 556 unknownFields protoimpl.UnknownFields 557 558 // A human-readable string describing the source of diagnostics, e.g. 559 // 'typescript' or 'super lint'. 560 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 561 // URL to this source. 562 // Optional. 563 Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` 564 } 565 566 func (x *Source) Reset() { 567 *x = Source{} 568 if protoimpl.UnsafeEnabled { 569 mi := &file_reviewdog_proto_msgTypes[6] 570 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 571 ms.StoreMessageInfo(mi) 572 } 573 } 574 575 func (x *Source) String() string { 576 return protoimpl.X.MessageStringOf(x) 577 } 578 579 func (*Source) ProtoMessage() {} 580 581 func (x *Source) ProtoReflect() protoreflect.Message { 582 mi := &file_reviewdog_proto_msgTypes[6] 583 if protoimpl.UnsafeEnabled && x != nil { 584 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 585 if ms.LoadMessageInfo() == nil { 586 ms.StoreMessageInfo(mi) 587 } 588 return ms 589 } 590 return mi.MessageOf(x) 591 } 592 593 // Deprecated: Use Source.ProtoReflect.Descriptor instead. 594 func (*Source) Descriptor() ([]byte, []int) { 595 return file_reviewdog_proto_rawDescGZIP(), []int{6} 596 } 597 598 func (x *Source) GetName() string { 599 if x != nil { 600 return x.Name 601 } 602 return "" 603 } 604 605 func (x *Source) GetUrl() string { 606 if x != nil { 607 return x.Url 608 } 609 return "" 610 } 611 612 type Code struct { 613 state protoimpl.MessageState 614 sizeCache protoimpl.SizeCache 615 unknownFields protoimpl.UnknownFields 616 617 // This rule's code/identifier. 618 Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` 619 // A URL to open with more information about this rule code. 620 // Optional. 621 Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` 622 } 623 624 func (x *Code) Reset() { 625 *x = Code{} 626 if protoimpl.UnsafeEnabled { 627 mi := &file_reviewdog_proto_msgTypes[7] 628 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 629 ms.StoreMessageInfo(mi) 630 } 631 } 632 633 func (x *Code) String() string { 634 return protoimpl.X.MessageStringOf(x) 635 } 636 637 func (*Code) ProtoMessage() {} 638 639 func (x *Code) ProtoReflect() protoreflect.Message { 640 mi := &file_reviewdog_proto_msgTypes[7] 641 if protoimpl.UnsafeEnabled && x != nil { 642 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 643 if ms.LoadMessageInfo() == nil { 644 ms.StoreMessageInfo(mi) 645 } 646 return ms 647 } 648 return mi.MessageOf(x) 649 } 650 651 // Deprecated: Use Code.ProtoReflect.Descriptor instead. 652 func (*Code) Descriptor() ([]byte, []int) { 653 return file_reviewdog_proto_rawDescGZIP(), []int{7} 654 } 655 656 func (x *Code) GetValue() string { 657 if x != nil { 658 return x.Value 659 } 660 return "" 661 } 662 663 func (x *Code) GetUrl() string { 664 if x != nil { 665 return x.Url 666 } 667 return "" 668 } 669 670 var File_reviewdog_proto protoreflect.FileDescriptor 671 672 var file_reviewdog_proto_rawDesc = []byte{ 673 0x0a, 0x0f, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 674 0x6f, 0x12, 0x0d, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x64, 0x6f, 0x67, 0x2e, 0x72, 0x64, 0x66, 675 0x22, 0xb3, 0x01, 0x0a, 0x10, 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x52, 676 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x3b, 0x0a, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 677 0x74, 0x69, 0x63, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x72, 0x65, 0x76, 678 0x69, 0x65, 0x77, 0x64, 0x6f, 0x67, 0x2e, 0x72, 0x64, 0x66, 0x2e, 0x44, 0x69, 0x61, 0x67, 0x6e, 679 0x6f, 0x73, 0x74, 0x69, 0x63, 0x52, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 680 0x63, 0x73, 0x12, 0x2d, 0x0a, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 681 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x64, 0x6f, 0x67, 0x2e, 0x72, 682 0x64, 0x66, 0x2e, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 683 0x65, 0x12, 0x33, 0x0a, 0x08, 0x73, 0x65, 0x76, 0x65, 0x72, 0x69, 0x74, 0x79, 0x18, 0x03, 0x20, 684 0x01, 0x28, 0x0e, 0x32, 0x17, 0x2e, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x64, 0x6f, 0x67, 0x2e, 685 0x72, 0x64, 0x66, 0x2e, 0x53, 0x65, 0x76, 0x65, 0x72, 0x69, 0x74, 0x79, 0x52, 0x08, 0x73, 0x65, 686 0x76, 0x65, 0x72, 0x69, 0x74, 0x79, 0x22, 0xce, 0x02, 0x0a, 0x0a, 0x44, 0x69, 0x61, 0x67, 0x6e, 687 0x6f, 0x73, 0x74, 0x69, 0x63, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 688 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 689 0x33, 0x0a, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 690 0x0b, 0x32, 0x17, 0x2e, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x64, 0x6f, 0x67, 0x2e, 0x72, 0x64, 691 0x66, 0x2e, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x08, 0x6c, 0x6f, 0x63, 0x61, 692 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x33, 0x0a, 0x08, 0x73, 0x65, 0x76, 0x65, 0x72, 0x69, 0x74, 0x79, 693 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x17, 0x2e, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x64, 694 0x6f, 0x67, 0x2e, 0x72, 0x64, 0x66, 0x2e, 0x53, 0x65, 0x76, 0x65, 0x72, 0x69, 0x74, 0x79, 0x52, 695 0x08, 0x73, 0x65, 0x76, 0x65, 0x72, 0x69, 0x74, 0x79, 0x12, 0x2d, 0x0a, 0x06, 0x73, 0x6f, 0x75, 696 0x72, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x72, 0x65, 0x76, 0x69, 697 0x65, 0x77, 0x64, 0x6f, 0x67, 0x2e, 0x72, 0x64, 0x66, 0x2e, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 698 0x52, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x27, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 699 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x64, 700 0x6f, 0x67, 0x2e, 0x72, 0x64, 0x66, 0x2e, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x04, 0x63, 0x6f, 0x64, 701 0x65, 0x12, 0x3b, 0x0a, 0x0b, 0x73, 0x75, 0x67, 0x67, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x73, 702 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x64, 703 0x6f, 0x67, 0x2e, 0x72, 0x64, 0x66, 0x2e, 0x53, 0x75, 0x67, 0x67, 0x65, 0x73, 0x74, 0x69, 0x6f, 704 0x6e, 0x52, 0x0b, 0x73, 0x75, 0x67, 0x67, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x27, 705 0x0a, 0x0f, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x6c, 0x5f, 0x6f, 0x75, 0x74, 0x70, 0x75, 706 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 707 0x6c, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x22, 0x4a, 0x0a, 0x08, 0x4c, 0x6f, 0x63, 0x61, 0x74, 708 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 709 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x2a, 0x0a, 0x05, 0x72, 0x61, 0x6e, 0x67, 0x65, 710 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x64, 711 0x6f, 0x67, 0x2e, 0x72, 0x64, 0x66, 0x2e, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x05, 0x72, 0x61, 712 0x6e, 0x67, 0x65, 0x22, 0x61, 0x0a, 0x05, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x2d, 0x0a, 0x05, 713 0x73, 0x74, 0x61, 0x72, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x72, 0x65, 714 0x76, 0x69, 0x65, 0x77, 0x64, 0x6f, 0x67, 0x2e, 0x72, 0x64, 0x66, 0x2e, 0x50, 0x6f, 0x73, 0x69, 715 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x05, 0x73, 0x74, 0x61, 0x72, 0x74, 0x12, 0x29, 0x0a, 0x03, 0x65, 716 0x6e, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x72, 0x65, 0x76, 0x69, 0x65, 717 0x77, 0x64, 0x6f, 0x67, 0x2e, 0x72, 0x64, 0x66, 0x2e, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 718 0x6e, 0x52, 0x03, 0x65, 0x6e, 0x64, 0x22, 0x36, 0x0a, 0x08, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 719 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6c, 0x69, 0x6e, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 720 0x52, 0x04, 0x6c, 0x69, 0x6e, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 721 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x22, 0x4c, 722 0x0a, 0x0a, 0x53, 0x75, 0x67, 0x67, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2a, 0x0a, 0x05, 723 0x72, 0x61, 0x6e, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x72, 0x65, 724 0x76, 0x69, 0x65, 0x77, 0x64, 0x6f, 0x67, 0x2e, 0x72, 0x64, 0x66, 0x2e, 0x52, 0x61, 0x6e, 0x67, 725 0x65, 0x52, 0x05, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x65, 0x78, 0x74, 726 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x65, 0x78, 0x74, 0x22, 0x2e, 0x0a, 0x06, 727 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 728 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 729 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x22, 0x2e, 0x0a, 0x04, 730 0x43, 0x6f, 0x64, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 731 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 732 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x2a, 0x42, 0x0a, 0x08, 733 0x53, 0x65, 0x76, 0x65, 0x72, 0x69, 0x74, 0x79, 0x12, 0x14, 0x0a, 0x10, 0x55, 0x4e, 0x4b, 0x4e, 734 0x4f, 0x57, 0x4e, 0x5f, 0x53, 0x45, 0x56, 0x45, 0x52, 0x49, 0x54, 0x59, 0x10, 0x00, 0x12, 0x09, 735 0x0a, 0x05, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x57, 0x41, 0x52, 736 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x02, 0x12, 0x08, 0x0a, 0x04, 0x49, 0x4e, 0x46, 0x4f, 0x10, 0x03, 737 0x42, 0x2a, 0x5a, 0x28, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x72, 738 0x65, 0x76, 0x69, 0x65, 0x77, 0x64, 0x6f, 0x67, 0x2f, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x64, 739 0x6f, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x72, 0x64, 0x66, 0x62, 0x06, 0x70, 0x72, 740 0x6f, 0x74, 0x6f, 0x33, 741 } 742 743 var ( 744 file_reviewdog_proto_rawDescOnce sync.Once 745 file_reviewdog_proto_rawDescData = file_reviewdog_proto_rawDesc 746 ) 747 748 func file_reviewdog_proto_rawDescGZIP() []byte { 749 file_reviewdog_proto_rawDescOnce.Do(func() { 750 file_reviewdog_proto_rawDescData = protoimpl.X.CompressGZIP(file_reviewdog_proto_rawDescData) 751 }) 752 return file_reviewdog_proto_rawDescData 753 } 754 755 var file_reviewdog_proto_enumTypes = make([]protoimpl.EnumInfo, 1) 756 var file_reviewdog_proto_msgTypes = make([]protoimpl.MessageInfo, 8) 757 var file_reviewdog_proto_goTypes = []interface{}{ 758 (Severity)(0), // 0: reviewdog.rdf.Severity 759 (*DiagnosticResult)(nil), // 1: reviewdog.rdf.DiagnosticResult 760 (*Diagnostic)(nil), // 2: reviewdog.rdf.Diagnostic 761 (*Location)(nil), // 3: reviewdog.rdf.Location 762 (*Range)(nil), // 4: reviewdog.rdf.Range 763 (*Position)(nil), // 5: reviewdog.rdf.Position 764 (*Suggestion)(nil), // 6: reviewdog.rdf.Suggestion 765 (*Source)(nil), // 7: reviewdog.rdf.Source 766 (*Code)(nil), // 8: reviewdog.rdf.Code 767 } 768 var file_reviewdog_proto_depIdxs = []int32{ 769 2, // 0: reviewdog.rdf.DiagnosticResult.diagnostics:type_name -> reviewdog.rdf.Diagnostic 770 7, // 1: reviewdog.rdf.DiagnosticResult.source:type_name -> reviewdog.rdf.Source 771 0, // 2: reviewdog.rdf.DiagnosticResult.severity:type_name -> reviewdog.rdf.Severity 772 3, // 3: reviewdog.rdf.Diagnostic.location:type_name -> reviewdog.rdf.Location 773 0, // 4: reviewdog.rdf.Diagnostic.severity:type_name -> reviewdog.rdf.Severity 774 7, // 5: reviewdog.rdf.Diagnostic.source:type_name -> reviewdog.rdf.Source 775 8, // 6: reviewdog.rdf.Diagnostic.code:type_name -> reviewdog.rdf.Code 776 6, // 7: reviewdog.rdf.Diagnostic.suggestions:type_name -> reviewdog.rdf.Suggestion 777 4, // 8: reviewdog.rdf.Location.range:type_name -> reviewdog.rdf.Range 778 5, // 9: reviewdog.rdf.Range.start:type_name -> reviewdog.rdf.Position 779 5, // 10: reviewdog.rdf.Range.end:type_name -> reviewdog.rdf.Position 780 4, // 11: reviewdog.rdf.Suggestion.range:type_name -> reviewdog.rdf.Range 781 12, // [12:12] is the sub-list for method output_type 782 12, // [12:12] is the sub-list for method input_type 783 12, // [12:12] is the sub-list for extension type_name 784 12, // [12:12] is the sub-list for extension extendee 785 0, // [0:12] is the sub-list for field type_name 786 } 787 788 func init() { file_reviewdog_proto_init() } 789 func file_reviewdog_proto_init() { 790 if File_reviewdog_proto != nil { 791 return 792 } 793 if !protoimpl.UnsafeEnabled { 794 file_reviewdog_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 795 switch v := v.(*DiagnosticResult); i { 796 case 0: 797 return &v.state 798 case 1: 799 return &v.sizeCache 800 case 2: 801 return &v.unknownFields 802 default: 803 return nil 804 } 805 } 806 file_reviewdog_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 807 switch v := v.(*Diagnostic); i { 808 case 0: 809 return &v.state 810 case 1: 811 return &v.sizeCache 812 case 2: 813 return &v.unknownFields 814 default: 815 return nil 816 } 817 } 818 file_reviewdog_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 819 switch v := v.(*Location); i { 820 case 0: 821 return &v.state 822 case 1: 823 return &v.sizeCache 824 case 2: 825 return &v.unknownFields 826 default: 827 return nil 828 } 829 } 830 file_reviewdog_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 831 switch v := v.(*Range); i { 832 case 0: 833 return &v.state 834 case 1: 835 return &v.sizeCache 836 case 2: 837 return &v.unknownFields 838 default: 839 return nil 840 } 841 } 842 file_reviewdog_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { 843 switch v := v.(*Position); i { 844 case 0: 845 return &v.state 846 case 1: 847 return &v.sizeCache 848 case 2: 849 return &v.unknownFields 850 default: 851 return nil 852 } 853 } 854 file_reviewdog_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { 855 switch v := v.(*Suggestion); i { 856 case 0: 857 return &v.state 858 case 1: 859 return &v.sizeCache 860 case 2: 861 return &v.unknownFields 862 default: 863 return nil 864 } 865 } 866 file_reviewdog_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { 867 switch v := v.(*Source); i { 868 case 0: 869 return &v.state 870 case 1: 871 return &v.sizeCache 872 case 2: 873 return &v.unknownFields 874 default: 875 return nil 876 } 877 } 878 file_reviewdog_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { 879 switch v := v.(*Code); i { 880 case 0: 881 return &v.state 882 case 1: 883 return &v.sizeCache 884 case 2: 885 return &v.unknownFields 886 default: 887 return nil 888 } 889 } 890 } 891 type x struct{} 892 out := protoimpl.TypeBuilder{ 893 File: protoimpl.DescBuilder{ 894 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 895 RawDescriptor: file_reviewdog_proto_rawDesc, 896 NumEnums: 1, 897 NumMessages: 8, 898 NumExtensions: 0, 899 NumServices: 0, 900 }, 901 GoTypes: file_reviewdog_proto_goTypes, 902 DependencyIndexes: file_reviewdog_proto_depIdxs, 903 EnumInfos: file_reviewdog_proto_enumTypes, 904 MessageInfos: file_reviewdog_proto_msgTypes, 905 }.Build() 906 File_reviewdog_proto = out.File 907 file_reviewdog_proto_rawDesc = nil 908 file_reviewdog_proto_goTypes = nil 909 file_reviewdog_proto_depIdxs = nil 910 }