001// Generated by the protocol buffer compiler. DO NOT EDIT! 002// source: file_source_db.proto 003 004package org.sonar.server.source.db; 005 006public final class FileSourceDb { 007 private FileSourceDb() {} 008 public static void registerAllExtensions( 009 com.google.protobuf.ExtensionRegistry registry) { 010 } 011 public interface LineOrBuilder 012 extends com.google.protobuf.MessageOrBuilder { 013 014 // optional int32 line = 1; 015 /** 016 * <code>optional int32 line = 1;</code> 017 */ 018 boolean hasLine(); 019 /** 020 * <code>optional int32 line = 1;</code> 021 */ 022 int getLine(); 023 024 // optional string source = 2; 025 /** 026 * <code>optional string source = 2;</code> 027 */ 028 boolean hasSource(); 029 /** 030 * <code>optional string source = 2;</code> 031 */ 032 java.lang.String getSource(); 033 /** 034 * <code>optional string source = 2;</code> 035 */ 036 com.google.protobuf.ByteString 037 getSourceBytes(); 038 039 // optional string scm_revision = 3; 040 /** 041 * <code>optional string scm_revision = 3;</code> 042 * 043 * <pre> 044 * SCM 045 * </pre> 046 */ 047 boolean hasScmRevision(); 048 /** 049 * <code>optional string scm_revision = 3;</code> 050 * 051 * <pre> 052 * SCM 053 * </pre> 054 */ 055 java.lang.String getScmRevision(); 056 /** 057 * <code>optional string scm_revision = 3;</code> 058 * 059 * <pre> 060 * SCM 061 * </pre> 062 */ 063 com.google.protobuf.ByteString 064 getScmRevisionBytes(); 065 066 // optional string scm_author = 4; 067 /** 068 * <code>optional string scm_author = 4;</code> 069 */ 070 boolean hasScmAuthor(); 071 /** 072 * <code>optional string scm_author = 4;</code> 073 */ 074 java.lang.String getScmAuthor(); 075 /** 076 * <code>optional string scm_author = 4;</code> 077 */ 078 com.google.protobuf.ByteString 079 getScmAuthorBytes(); 080 081 // optional int64 scm_date = 5; 082 /** 083 * <code>optional int64 scm_date = 5;</code> 084 */ 085 boolean hasScmDate(); 086 /** 087 * <code>optional int64 scm_date = 5;</code> 088 */ 089 long getScmDate(); 090 091 // optional int32 ut_line_hits = 6; 092 /** 093 * <code>optional int32 ut_line_hits = 6;</code> 094 * 095 * <pre> 096 * unit tests 097 * </pre> 098 */ 099 boolean hasUtLineHits(); 100 /** 101 * <code>optional int32 ut_line_hits = 6;</code> 102 * 103 * <pre> 104 * unit tests 105 * </pre> 106 */ 107 int getUtLineHits(); 108 109 // optional int32 ut_conditions = 7; 110 /** 111 * <code>optional int32 ut_conditions = 7;</code> 112 */ 113 boolean hasUtConditions(); 114 /** 115 * <code>optional int32 ut_conditions = 7;</code> 116 */ 117 int getUtConditions(); 118 119 // optional int32 ut_covered_conditions = 8; 120 /** 121 * <code>optional int32 ut_covered_conditions = 8;</code> 122 */ 123 boolean hasUtCoveredConditions(); 124 /** 125 * <code>optional int32 ut_covered_conditions = 8;</code> 126 */ 127 int getUtCoveredConditions(); 128 129 // optional int32 it_line_hits = 9; 130 /** 131 * <code>optional int32 it_line_hits = 9;</code> 132 * 133 * <pre> 134 * integration tests 135 * </pre> 136 */ 137 boolean hasItLineHits(); 138 /** 139 * <code>optional int32 it_line_hits = 9;</code> 140 * 141 * <pre> 142 * integration tests 143 * </pre> 144 */ 145 int getItLineHits(); 146 147 // optional int32 it_conditions = 10; 148 /** 149 * <code>optional int32 it_conditions = 10;</code> 150 */ 151 boolean hasItConditions(); 152 /** 153 * <code>optional int32 it_conditions = 10;</code> 154 */ 155 int getItConditions(); 156 157 // optional int32 it_covered_conditions = 11; 158 /** 159 * <code>optional int32 it_covered_conditions = 11;</code> 160 */ 161 boolean hasItCoveredConditions(); 162 /** 163 * <code>optional int32 it_covered_conditions = 11;</code> 164 */ 165 int getItCoveredConditions(); 166 167 // optional int32 overall_line_hits = 12; 168 /** 169 * <code>optional int32 overall_line_hits = 12;</code> 170 * 171 * <pre> 172 * overall tests 173 * </pre> 174 */ 175 boolean hasOverallLineHits(); 176 /** 177 * <code>optional int32 overall_line_hits = 12;</code> 178 * 179 * <pre> 180 * overall tests 181 * </pre> 182 */ 183 int getOverallLineHits(); 184 185 // optional int32 overall_conditions = 13; 186 /** 187 * <code>optional int32 overall_conditions = 13;</code> 188 */ 189 boolean hasOverallConditions(); 190 /** 191 * <code>optional int32 overall_conditions = 13;</code> 192 */ 193 int getOverallConditions(); 194 195 // optional int32 overall_covered_conditions = 14; 196 /** 197 * <code>optional int32 overall_covered_conditions = 14;</code> 198 */ 199 boolean hasOverallCoveredConditions(); 200 /** 201 * <code>optional int32 overall_covered_conditions = 14;</code> 202 */ 203 int getOverallCoveredConditions(); 204 205 // optional string highlighting = 15; 206 /** 207 * <code>optional string highlighting = 15;</code> 208 */ 209 boolean hasHighlighting(); 210 /** 211 * <code>optional string highlighting = 15;</code> 212 */ 213 java.lang.String getHighlighting(); 214 /** 215 * <code>optional string highlighting = 15;</code> 216 */ 217 com.google.protobuf.ByteString 218 getHighlightingBytes(); 219 220 // optional string symbols = 16; 221 /** 222 * <code>optional string symbols = 16;</code> 223 */ 224 boolean hasSymbols(); 225 /** 226 * <code>optional string symbols = 16;</code> 227 */ 228 java.lang.String getSymbols(); 229 /** 230 * <code>optional string symbols = 16;</code> 231 */ 232 com.google.protobuf.ByteString 233 getSymbolsBytes(); 234 235 // repeated int32 duplications = 17 [packed = true]; 236 /** 237 * <code>repeated int32 duplications = 17 [packed = true];</code> 238 */ 239 java.util.List<java.lang.Integer> getDuplicationsList(); 240 /** 241 * <code>repeated int32 duplications = 17 [packed = true];</code> 242 */ 243 int getDuplicationsCount(); 244 /** 245 * <code>repeated int32 duplications = 17 [packed = true];</code> 246 */ 247 int getDuplications(int index); 248 } 249 /** 250 * Protobuf type {@code org.sonar.server.source.db.Line} 251 */ 252 public static final class Line extends 253 com.google.protobuf.GeneratedMessage 254 implements LineOrBuilder { 255 // Use Line.newBuilder() to construct. 256 private Line(com.google.protobuf.GeneratedMessage.Builder<?> builder) { 257 super(builder); 258 this.unknownFields = builder.getUnknownFields(); 259 } 260 private Line(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } 261 262 private static final Line defaultInstance; 263 public static Line getDefaultInstance() { 264 return defaultInstance; 265 } 266 267 public Line getDefaultInstanceForType() { 268 return defaultInstance; 269 } 270 271 private final com.google.protobuf.UnknownFieldSet unknownFields; 272 @java.lang.Override 273 public final com.google.protobuf.UnknownFieldSet 274 getUnknownFields() { 275 return this.unknownFields; 276 } 277 private Line( 278 com.google.protobuf.CodedInputStream input, 279 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 280 throws com.google.protobuf.InvalidProtocolBufferException { 281 initFields(); 282 int mutable_bitField0_ = 0; 283 com.google.protobuf.UnknownFieldSet.Builder unknownFields = 284 com.google.protobuf.UnknownFieldSet.newBuilder(); 285 try { 286 boolean done = false; 287 while (!done) { 288 int tag = input.readTag(); 289 switch (tag) { 290 case 0: 291 done = true; 292 break; 293 default: { 294 if (!parseUnknownField(input, unknownFields, 295 extensionRegistry, tag)) { 296 done = true; 297 } 298 break; 299 } 300 case 8: { 301 bitField0_ |= 0x00000001; 302 line_ = input.readInt32(); 303 break; 304 } 305 case 18: { 306 bitField0_ |= 0x00000002; 307 source_ = input.readBytes(); 308 break; 309 } 310 case 26: { 311 bitField0_ |= 0x00000004; 312 scmRevision_ = input.readBytes(); 313 break; 314 } 315 case 34: { 316 bitField0_ |= 0x00000008; 317 scmAuthor_ = input.readBytes(); 318 break; 319 } 320 case 40: { 321 bitField0_ |= 0x00000010; 322 scmDate_ = input.readInt64(); 323 break; 324 } 325 case 48: { 326 bitField0_ |= 0x00000020; 327 utLineHits_ = input.readInt32(); 328 break; 329 } 330 case 56: { 331 bitField0_ |= 0x00000040; 332 utConditions_ = input.readInt32(); 333 break; 334 } 335 case 64: { 336 bitField0_ |= 0x00000080; 337 utCoveredConditions_ = input.readInt32(); 338 break; 339 } 340 case 72: { 341 bitField0_ |= 0x00000100; 342 itLineHits_ = input.readInt32(); 343 break; 344 } 345 case 80: { 346 bitField0_ |= 0x00000200; 347 itConditions_ = input.readInt32(); 348 break; 349 } 350 case 88: { 351 bitField0_ |= 0x00000400; 352 itCoveredConditions_ = input.readInt32(); 353 break; 354 } 355 case 96: { 356 bitField0_ |= 0x00000800; 357 overallLineHits_ = input.readInt32(); 358 break; 359 } 360 case 104: { 361 bitField0_ |= 0x00001000; 362 overallConditions_ = input.readInt32(); 363 break; 364 } 365 case 112: { 366 bitField0_ |= 0x00002000; 367 overallCoveredConditions_ = input.readInt32(); 368 break; 369 } 370 case 122: { 371 bitField0_ |= 0x00004000; 372 highlighting_ = input.readBytes(); 373 break; 374 } 375 case 130: { 376 bitField0_ |= 0x00008000; 377 symbols_ = input.readBytes(); 378 break; 379 } 380 case 136: { 381 if (!((mutable_bitField0_ & 0x00010000) == 0x00010000)) { 382 duplications_ = new java.util.ArrayList<java.lang.Integer>(); 383 mutable_bitField0_ |= 0x00010000; 384 } 385 duplications_.add(input.readInt32()); 386 break; 387 } 388 case 138: { 389 int length = input.readRawVarint32(); 390 int limit = input.pushLimit(length); 391 if (!((mutable_bitField0_ & 0x00010000) == 0x00010000) && input.getBytesUntilLimit() > 0) { 392 duplications_ = new java.util.ArrayList<java.lang.Integer>(); 393 mutable_bitField0_ |= 0x00010000; 394 } 395 while (input.getBytesUntilLimit() > 0) { 396 duplications_.add(input.readInt32()); 397 } 398 input.popLimit(limit); 399 break; 400 } 401 } 402 } 403 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 404 throw e.setUnfinishedMessage(this); 405 } catch (java.io.IOException e) { 406 throw new com.google.protobuf.InvalidProtocolBufferException( 407 e.getMessage()).setUnfinishedMessage(this); 408 } finally { 409 if (((mutable_bitField0_ & 0x00010000) == 0x00010000)) { 410 duplications_ = java.util.Collections.unmodifiableList(duplications_); 411 } 412 this.unknownFields = unknownFields.build(); 413 makeExtensionsImmutable(); 414 } 415 } 416 public static final com.google.protobuf.Descriptors.Descriptor 417 getDescriptor() { 418 return org.sonar.server.source.db.FileSourceDb.internal_static_org_sonar_server_source_db_Line_descriptor; 419 } 420 421 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 422 internalGetFieldAccessorTable() { 423 return org.sonar.server.source.db.FileSourceDb.internal_static_org_sonar_server_source_db_Line_fieldAccessorTable 424 .ensureFieldAccessorsInitialized( 425 org.sonar.server.source.db.FileSourceDb.Line.class, org.sonar.server.source.db.FileSourceDb.Line.Builder.class); 426 } 427 428 public static com.google.protobuf.Parser<Line> PARSER = 429 new com.google.protobuf.AbstractParser<Line>() { 430 public Line parsePartialFrom( 431 com.google.protobuf.CodedInputStream input, 432 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 433 throws com.google.protobuf.InvalidProtocolBufferException { 434 return new Line(input, extensionRegistry); 435 } 436 }; 437 438 @java.lang.Override 439 public com.google.protobuf.Parser<Line> getParserForType() { 440 return PARSER; 441 } 442 443 private int bitField0_; 444 // optional int32 line = 1; 445 public static final int LINE_FIELD_NUMBER = 1; 446 private int line_; 447 /** 448 * <code>optional int32 line = 1;</code> 449 */ 450 public boolean hasLine() { 451 return ((bitField0_ & 0x00000001) == 0x00000001); 452 } 453 /** 454 * <code>optional int32 line = 1;</code> 455 */ 456 public int getLine() { 457 return line_; 458 } 459 460 // optional string source = 2; 461 public static final int SOURCE_FIELD_NUMBER = 2; 462 private java.lang.Object source_; 463 /** 464 * <code>optional string source = 2;</code> 465 */ 466 public boolean hasSource() { 467 return ((bitField0_ & 0x00000002) == 0x00000002); 468 } 469 /** 470 * <code>optional string source = 2;</code> 471 */ 472 public java.lang.String getSource() { 473 java.lang.Object ref = source_; 474 if (ref instanceof java.lang.String) { 475 return (java.lang.String) ref; 476 } else { 477 com.google.protobuf.ByteString bs = 478 (com.google.protobuf.ByteString) ref; 479 java.lang.String s = bs.toStringUtf8(); 480 if (bs.isValidUtf8()) { 481 source_ = s; 482 } 483 return s; 484 } 485 } 486 /** 487 * <code>optional string source = 2;</code> 488 */ 489 public com.google.protobuf.ByteString 490 getSourceBytes() { 491 java.lang.Object ref = source_; 492 if (ref instanceof java.lang.String) { 493 com.google.protobuf.ByteString b = 494 com.google.protobuf.ByteString.copyFromUtf8( 495 (java.lang.String) ref); 496 source_ = b; 497 return b; 498 } else { 499 return (com.google.protobuf.ByteString) ref; 500 } 501 } 502 503 // optional string scm_revision = 3; 504 public static final int SCM_REVISION_FIELD_NUMBER = 3; 505 private java.lang.Object scmRevision_; 506 /** 507 * <code>optional string scm_revision = 3;</code> 508 * 509 * <pre> 510 * SCM 511 * </pre> 512 */ 513 public boolean hasScmRevision() { 514 return ((bitField0_ & 0x00000004) == 0x00000004); 515 } 516 /** 517 * <code>optional string scm_revision = 3;</code> 518 * 519 * <pre> 520 * SCM 521 * </pre> 522 */ 523 public java.lang.String getScmRevision() { 524 java.lang.Object ref = scmRevision_; 525 if (ref instanceof java.lang.String) { 526 return (java.lang.String) ref; 527 } else { 528 com.google.protobuf.ByteString bs = 529 (com.google.protobuf.ByteString) ref; 530 java.lang.String s = bs.toStringUtf8(); 531 if (bs.isValidUtf8()) { 532 scmRevision_ = s; 533 } 534 return s; 535 } 536 } 537 /** 538 * <code>optional string scm_revision = 3;</code> 539 * 540 * <pre> 541 * SCM 542 * </pre> 543 */ 544 public com.google.protobuf.ByteString 545 getScmRevisionBytes() { 546 java.lang.Object ref = scmRevision_; 547 if (ref instanceof java.lang.String) { 548 com.google.protobuf.ByteString b = 549 com.google.protobuf.ByteString.copyFromUtf8( 550 (java.lang.String) ref); 551 scmRevision_ = b; 552 return b; 553 } else { 554 return (com.google.protobuf.ByteString) ref; 555 } 556 } 557 558 // optional string scm_author = 4; 559 public static final int SCM_AUTHOR_FIELD_NUMBER = 4; 560 private java.lang.Object scmAuthor_; 561 /** 562 * <code>optional string scm_author = 4;</code> 563 */ 564 public boolean hasScmAuthor() { 565 return ((bitField0_ & 0x00000008) == 0x00000008); 566 } 567 /** 568 * <code>optional string scm_author = 4;</code> 569 */ 570 public java.lang.String getScmAuthor() { 571 java.lang.Object ref = scmAuthor_; 572 if (ref instanceof java.lang.String) { 573 return (java.lang.String) ref; 574 } else { 575 com.google.protobuf.ByteString bs = 576 (com.google.protobuf.ByteString) ref; 577 java.lang.String s = bs.toStringUtf8(); 578 if (bs.isValidUtf8()) { 579 scmAuthor_ = s; 580 } 581 return s; 582 } 583 } 584 /** 585 * <code>optional string scm_author = 4;</code> 586 */ 587 public com.google.protobuf.ByteString 588 getScmAuthorBytes() { 589 java.lang.Object ref = scmAuthor_; 590 if (ref instanceof java.lang.String) { 591 com.google.protobuf.ByteString b = 592 com.google.protobuf.ByteString.copyFromUtf8( 593 (java.lang.String) ref); 594 scmAuthor_ = b; 595 return b; 596 } else { 597 return (com.google.protobuf.ByteString) ref; 598 } 599 } 600 601 // optional int64 scm_date = 5; 602 public static final int SCM_DATE_FIELD_NUMBER = 5; 603 private long scmDate_; 604 /** 605 * <code>optional int64 scm_date = 5;</code> 606 */ 607 public boolean hasScmDate() { 608 return ((bitField0_ & 0x00000010) == 0x00000010); 609 } 610 /** 611 * <code>optional int64 scm_date = 5;</code> 612 */ 613 public long getScmDate() { 614 return scmDate_; 615 } 616 617 // optional int32 ut_line_hits = 6; 618 public static final int UT_LINE_HITS_FIELD_NUMBER = 6; 619 private int utLineHits_; 620 /** 621 * <code>optional int32 ut_line_hits = 6;</code> 622 * 623 * <pre> 624 * unit tests 625 * </pre> 626 */ 627 public boolean hasUtLineHits() { 628 return ((bitField0_ & 0x00000020) == 0x00000020); 629 } 630 /** 631 * <code>optional int32 ut_line_hits = 6;</code> 632 * 633 * <pre> 634 * unit tests 635 * </pre> 636 */ 637 public int getUtLineHits() { 638 return utLineHits_; 639 } 640 641 // optional int32 ut_conditions = 7; 642 public static final int UT_CONDITIONS_FIELD_NUMBER = 7; 643 private int utConditions_; 644 /** 645 * <code>optional int32 ut_conditions = 7;</code> 646 */ 647 public boolean hasUtConditions() { 648 return ((bitField0_ & 0x00000040) == 0x00000040); 649 } 650 /** 651 * <code>optional int32 ut_conditions = 7;</code> 652 */ 653 public int getUtConditions() { 654 return utConditions_; 655 } 656 657 // optional int32 ut_covered_conditions = 8; 658 public static final int UT_COVERED_CONDITIONS_FIELD_NUMBER = 8; 659 private int utCoveredConditions_; 660 /** 661 * <code>optional int32 ut_covered_conditions = 8;</code> 662 */ 663 public boolean hasUtCoveredConditions() { 664 return ((bitField0_ & 0x00000080) == 0x00000080); 665 } 666 /** 667 * <code>optional int32 ut_covered_conditions = 8;</code> 668 */ 669 public int getUtCoveredConditions() { 670 return utCoveredConditions_; 671 } 672 673 // optional int32 it_line_hits = 9; 674 public static final int IT_LINE_HITS_FIELD_NUMBER = 9; 675 private int itLineHits_; 676 /** 677 * <code>optional int32 it_line_hits = 9;</code> 678 * 679 * <pre> 680 * integration tests 681 * </pre> 682 */ 683 public boolean hasItLineHits() { 684 return ((bitField0_ & 0x00000100) == 0x00000100); 685 } 686 /** 687 * <code>optional int32 it_line_hits = 9;</code> 688 * 689 * <pre> 690 * integration tests 691 * </pre> 692 */ 693 public int getItLineHits() { 694 return itLineHits_; 695 } 696 697 // optional int32 it_conditions = 10; 698 public static final int IT_CONDITIONS_FIELD_NUMBER = 10; 699 private int itConditions_; 700 /** 701 * <code>optional int32 it_conditions = 10;</code> 702 */ 703 public boolean hasItConditions() { 704 return ((bitField0_ & 0x00000200) == 0x00000200); 705 } 706 /** 707 * <code>optional int32 it_conditions = 10;</code> 708 */ 709 public int getItConditions() { 710 return itConditions_; 711 } 712 713 // optional int32 it_covered_conditions = 11; 714 public static final int IT_COVERED_CONDITIONS_FIELD_NUMBER = 11; 715 private int itCoveredConditions_; 716 /** 717 * <code>optional int32 it_covered_conditions = 11;</code> 718 */ 719 public boolean hasItCoveredConditions() { 720 return ((bitField0_ & 0x00000400) == 0x00000400); 721 } 722 /** 723 * <code>optional int32 it_covered_conditions = 11;</code> 724 */ 725 public int getItCoveredConditions() { 726 return itCoveredConditions_; 727 } 728 729 // optional int32 overall_line_hits = 12; 730 public static final int OVERALL_LINE_HITS_FIELD_NUMBER = 12; 731 private int overallLineHits_; 732 /** 733 * <code>optional int32 overall_line_hits = 12;</code> 734 * 735 * <pre> 736 * overall tests 737 * </pre> 738 */ 739 public boolean hasOverallLineHits() { 740 return ((bitField0_ & 0x00000800) == 0x00000800); 741 } 742 /** 743 * <code>optional int32 overall_line_hits = 12;</code> 744 * 745 * <pre> 746 * overall tests 747 * </pre> 748 */ 749 public int getOverallLineHits() { 750 return overallLineHits_; 751 } 752 753 // optional int32 overall_conditions = 13; 754 public static final int OVERALL_CONDITIONS_FIELD_NUMBER = 13; 755 private int overallConditions_; 756 /** 757 * <code>optional int32 overall_conditions = 13;</code> 758 */ 759 public boolean hasOverallConditions() { 760 return ((bitField0_ & 0x00001000) == 0x00001000); 761 } 762 /** 763 * <code>optional int32 overall_conditions = 13;</code> 764 */ 765 public int getOverallConditions() { 766 return overallConditions_; 767 } 768 769 // optional int32 overall_covered_conditions = 14; 770 public static final int OVERALL_COVERED_CONDITIONS_FIELD_NUMBER = 14; 771 private int overallCoveredConditions_; 772 /** 773 * <code>optional int32 overall_covered_conditions = 14;</code> 774 */ 775 public boolean hasOverallCoveredConditions() { 776 return ((bitField0_ & 0x00002000) == 0x00002000); 777 } 778 /** 779 * <code>optional int32 overall_covered_conditions = 14;</code> 780 */ 781 public int getOverallCoveredConditions() { 782 return overallCoveredConditions_; 783 } 784 785 // optional string highlighting = 15; 786 public static final int HIGHLIGHTING_FIELD_NUMBER = 15; 787 private java.lang.Object highlighting_; 788 /** 789 * <code>optional string highlighting = 15;</code> 790 */ 791 public boolean hasHighlighting() { 792 return ((bitField0_ & 0x00004000) == 0x00004000); 793 } 794 /** 795 * <code>optional string highlighting = 15;</code> 796 */ 797 public java.lang.String getHighlighting() { 798 java.lang.Object ref = highlighting_; 799 if (ref instanceof java.lang.String) { 800 return (java.lang.String) ref; 801 } else { 802 com.google.protobuf.ByteString bs = 803 (com.google.protobuf.ByteString) ref; 804 java.lang.String s = bs.toStringUtf8(); 805 if (bs.isValidUtf8()) { 806 highlighting_ = s; 807 } 808 return s; 809 } 810 } 811 /** 812 * <code>optional string highlighting = 15;</code> 813 */ 814 public com.google.protobuf.ByteString 815 getHighlightingBytes() { 816 java.lang.Object ref = highlighting_; 817 if (ref instanceof java.lang.String) { 818 com.google.protobuf.ByteString b = 819 com.google.protobuf.ByteString.copyFromUtf8( 820 (java.lang.String) ref); 821 highlighting_ = b; 822 return b; 823 } else { 824 return (com.google.protobuf.ByteString) ref; 825 } 826 } 827 828 // optional string symbols = 16; 829 public static final int SYMBOLS_FIELD_NUMBER = 16; 830 private java.lang.Object symbols_; 831 /** 832 * <code>optional string symbols = 16;</code> 833 */ 834 public boolean hasSymbols() { 835 return ((bitField0_ & 0x00008000) == 0x00008000); 836 } 837 /** 838 * <code>optional string symbols = 16;</code> 839 */ 840 public java.lang.String getSymbols() { 841 java.lang.Object ref = symbols_; 842 if (ref instanceof java.lang.String) { 843 return (java.lang.String) ref; 844 } else { 845 com.google.protobuf.ByteString bs = 846 (com.google.protobuf.ByteString) ref; 847 java.lang.String s = bs.toStringUtf8(); 848 if (bs.isValidUtf8()) { 849 symbols_ = s; 850 } 851 return s; 852 } 853 } 854 /** 855 * <code>optional string symbols = 16;</code> 856 */ 857 public com.google.protobuf.ByteString 858 getSymbolsBytes() { 859 java.lang.Object ref = symbols_; 860 if (ref instanceof java.lang.String) { 861 com.google.protobuf.ByteString b = 862 com.google.protobuf.ByteString.copyFromUtf8( 863 (java.lang.String) ref); 864 symbols_ = b; 865 return b; 866 } else { 867 return (com.google.protobuf.ByteString) ref; 868 } 869 } 870 871 // repeated int32 duplications = 17 [packed = true]; 872 public static final int DUPLICATIONS_FIELD_NUMBER = 17; 873 private java.util.List<java.lang.Integer> duplications_; 874 /** 875 * <code>repeated int32 duplications = 17 [packed = true];</code> 876 */ 877 public java.util.List<java.lang.Integer> 878 getDuplicationsList() { 879 return duplications_; 880 } 881 /** 882 * <code>repeated int32 duplications = 17 [packed = true];</code> 883 */ 884 public int getDuplicationsCount() { 885 return duplications_.size(); 886 } 887 /** 888 * <code>repeated int32 duplications = 17 [packed = true];</code> 889 */ 890 public int getDuplications(int index) { 891 return duplications_.get(index); 892 } 893 private int duplicationsMemoizedSerializedSize = -1; 894 895 private void initFields() { 896 line_ = 0; 897 source_ = ""; 898 scmRevision_ = ""; 899 scmAuthor_ = ""; 900 scmDate_ = 0L; 901 utLineHits_ = 0; 902 utConditions_ = 0; 903 utCoveredConditions_ = 0; 904 itLineHits_ = 0; 905 itConditions_ = 0; 906 itCoveredConditions_ = 0; 907 overallLineHits_ = 0; 908 overallConditions_ = 0; 909 overallCoveredConditions_ = 0; 910 highlighting_ = ""; 911 symbols_ = ""; 912 duplications_ = java.util.Collections.emptyList(); 913 } 914 private byte memoizedIsInitialized = -1; 915 public final boolean isInitialized() { 916 byte isInitialized = memoizedIsInitialized; 917 if (isInitialized != -1) return isInitialized == 1; 918 919 memoizedIsInitialized = 1; 920 return true; 921 } 922 923 public void writeTo(com.google.protobuf.CodedOutputStream output) 924 throws java.io.IOException { 925 getSerializedSize(); 926 if (((bitField0_ & 0x00000001) == 0x00000001)) { 927 output.writeInt32(1, line_); 928 } 929 if (((bitField0_ & 0x00000002) == 0x00000002)) { 930 output.writeBytes(2, getSourceBytes()); 931 } 932 if (((bitField0_ & 0x00000004) == 0x00000004)) { 933 output.writeBytes(3, getScmRevisionBytes()); 934 } 935 if (((bitField0_ & 0x00000008) == 0x00000008)) { 936 output.writeBytes(4, getScmAuthorBytes()); 937 } 938 if (((bitField0_ & 0x00000010) == 0x00000010)) { 939 output.writeInt64(5, scmDate_); 940 } 941 if (((bitField0_ & 0x00000020) == 0x00000020)) { 942 output.writeInt32(6, utLineHits_); 943 } 944 if (((bitField0_ & 0x00000040) == 0x00000040)) { 945 output.writeInt32(7, utConditions_); 946 } 947 if (((bitField0_ & 0x00000080) == 0x00000080)) { 948 output.writeInt32(8, utCoveredConditions_); 949 } 950 if (((bitField0_ & 0x00000100) == 0x00000100)) { 951 output.writeInt32(9, itLineHits_); 952 } 953 if (((bitField0_ & 0x00000200) == 0x00000200)) { 954 output.writeInt32(10, itConditions_); 955 } 956 if (((bitField0_ & 0x00000400) == 0x00000400)) { 957 output.writeInt32(11, itCoveredConditions_); 958 } 959 if (((bitField0_ & 0x00000800) == 0x00000800)) { 960 output.writeInt32(12, overallLineHits_); 961 } 962 if (((bitField0_ & 0x00001000) == 0x00001000)) { 963 output.writeInt32(13, overallConditions_); 964 } 965 if (((bitField0_ & 0x00002000) == 0x00002000)) { 966 output.writeInt32(14, overallCoveredConditions_); 967 } 968 if (((bitField0_ & 0x00004000) == 0x00004000)) { 969 output.writeBytes(15, getHighlightingBytes()); 970 } 971 if (((bitField0_ & 0x00008000) == 0x00008000)) { 972 output.writeBytes(16, getSymbolsBytes()); 973 } 974 if (getDuplicationsList().size() > 0) { 975 output.writeRawVarint32(138); 976 output.writeRawVarint32(duplicationsMemoizedSerializedSize); 977 } 978 for (int i = 0; i < duplications_.size(); i++) { 979 output.writeInt32NoTag(duplications_.get(i)); 980 } 981 getUnknownFields().writeTo(output); 982 } 983 984 private int memoizedSerializedSize = -1; 985 public int getSerializedSize() { 986 int size = memoizedSerializedSize; 987 if (size != -1) return size; 988 989 size = 0; 990 if (((bitField0_ & 0x00000001) == 0x00000001)) { 991 size += com.google.protobuf.CodedOutputStream 992 .computeInt32Size(1, line_); 993 } 994 if (((bitField0_ & 0x00000002) == 0x00000002)) { 995 size += com.google.protobuf.CodedOutputStream 996 .computeBytesSize(2, getSourceBytes()); 997 } 998 if (((bitField0_ & 0x00000004) == 0x00000004)) { 999 size += com.google.protobuf.CodedOutputStream 1000 .computeBytesSize(3, getScmRevisionBytes()); 1001 } 1002 if (((bitField0_ & 0x00000008) == 0x00000008)) { 1003 size += com.google.protobuf.CodedOutputStream 1004 .computeBytesSize(4, getScmAuthorBytes()); 1005 } 1006 if (((bitField0_ & 0x00000010) == 0x00000010)) { 1007 size += com.google.protobuf.CodedOutputStream 1008 .computeInt64Size(5, scmDate_); 1009 } 1010 if (((bitField0_ & 0x00000020) == 0x00000020)) { 1011 size += com.google.protobuf.CodedOutputStream 1012 .computeInt32Size(6, utLineHits_); 1013 } 1014 if (((bitField0_ & 0x00000040) == 0x00000040)) { 1015 size += com.google.protobuf.CodedOutputStream 1016 .computeInt32Size(7, utConditions_); 1017 } 1018 if (((bitField0_ & 0x00000080) == 0x00000080)) { 1019 size += com.google.protobuf.CodedOutputStream 1020 .computeInt32Size(8, utCoveredConditions_); 1021 } 1022 if (((bitField0_ & 0x00000100) == 0x00000100)) { 1023 size += com.google.protobuf.CodedOutputStream 1024 .computeInt32Size(9, itLineHits_); 1025 } 1026 if (((bitField0_ & 0x00000200) == 0x00000200)) { 1027 size += com.google.protobuf.CodedOutputStream 1028 .computeInt32Size(10, itConditions_); 1029 } 1030 if (((bitField0_ & 0x00000400) == 0x00000400)) { 1031 size += com.google.protobuf.CodedOutputStream 1032 .computeInt32Size(11, itCoveredConditions_); 1033 } 1034 if (((bitField0_ & 0x00000800) == 0x00000800)) { 1035 size += com.google.protobuf.CodedOutputStream 1036 .computeInt32Size(12, overallLineHits_); 1037 } 1038 if (((bitField0_ & 0x00001000) == 0x00001000)) { 1039 size += com.google.protobuf.CodedOutputStream 1040 .computeInt32Size(13, overallConditions_); 1041 } 1042 if (((bitField0_ & 0x00002000) == 0x00002000)) { 1043 size += com.google.protobuf.CodedOutputStream 1044 .computeInt32Size(14, overallCoveredConditions_); 1045 } 1046 if (((bitField0_ & 0x00004000) == 0x00004000)) { 1047 size += com.google.protobuf.CodedOutputStream 1048 .computeBytesSize(15, getHighlightingBytes()); 1049 } 1050 if (((bitField0_ & 0x00008000) == 0x00008000)) { 1051 size += com.google.protobuf.CodedOutputStream 1052 .computeBytesSize(16, getSymbolsBytes()); 1053 } 1054 { 1055 int dataSize = 0; 1056 for (int i = 0; i < duplications_.size(); i++) { 1057 dataSize += com.google.protobuf.CodedOutputStream 1058 .computeInt32SizeNoTag(duplications_.get(i)); 1059 } 1060 size += dataSize; 1061 if (!getDuplicationsList().isEmpty()) { 1062 size += 2; 1063 size += com.google.protobuf.CodedOutputStream 1064 .computeInt32SizeNoTag(dataSize); 1065 } 1066 duplicationsMemoizedSerializedSize = dataSize; 1067 } 1068 size += getUnknownFields().getSerializedSize(); 1069 memoizedSerializedSize = size; 1070 return size; 1071 } 1072 1073 private static final long serialVersionUID = 0L; 1074 @java.lang.Override 1075 protected java.lang.Object writeReplace() 1076 throws java.io.ObjectStreamException { 1077 return super.writeReplace(); 1078 } 1079 1080 public static org.sonar.server.source.db.FileSourceDb.Line parseFrom( 1081 com.google.protobuf.ByteString data) 1082 throws com.google.protobuf.InvalidProtocolBufferException { 1083 return PARSER.parseFrom(data); 1084 } 1085 public static org.sonar.server.source.db.FileSourceDb.Line parseFrom( 1086 com.google.protobuf.ByteString data, 1087 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1088 throws com.google.protobuf.InvalidProtocolBufferException { 1089 return PARSER.parseFrom(data, extensionRegistry); 1090 } 1091 public static org.sonar.server.source.db.FileSourceDb.Line parseFrom(byte[] data) 1092 throws com.google.protobuf.InvalidProtocolBufferException { 1093 return PARSER.parseFrom(data); 1094 } 1095 public static org.sonar.server.source.db.FileSourceDb.Line parseFrom( 1096 byte[] data, 1097 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1098 throws com.google.protobuf.InvalidProtocolBufferException { 1099 return PARSER.parseFrom(data, extensionRegistry); 1100 } 1101 public static org.sonar.server.source.db.FileSourceDb.Line parseFrom(java.io.InputStream input) 1102 throws java.io.IOException { 1103 return PARSER.parseFrom(input); 1104 } 1105 public static org.sonar.server.source.db.FileSourceDb.Line parseFrom( 1106 java.io.InputStream input, 1107 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1108 throws java.io.IOException { 1109 return PARSER.parseFrom(input, extensionRegistry); 1110 } 1111 public static org.sonar.server.source.db.FileSourceDb.Line parseDelimitedFrom(java.io.InputStream input) 1112 throws java.io.IOException { 1113 return PARSER.parseDelimitedFrom(input); 1114 } 1115 public static org.sonar.server.source.db.FileSourceDb.Line parseDelimitedFrom( 1116 java.io.InputStream input, 1117 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1118 throws java.io.IOException { 1119 return PARSER.parseDelimitedFrom(input, extensionRegistry); 1120 } 1121 public static org.sonar.server.source.db.FileSourceDb.Line parseFrom( 1122 com.google.protobuf.CodedInputStream input) 1123 throws java.io.IOException { 1124 return PARSER.parseFrom(input); 1125 } 1126 public static org.sonar.server.source.db.FileSourceDb.Line parseFrom( 1127 com.google.protobuf.CodedInputStream input, 1128 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1129 throws java.io.IOException { 1130 return PARSER.parseFrom(input, extensionRegistry); 1131 } 1132 1133 public static Builder newBuilder() { return Builder.create(); } 1134 public Builder newBuilderForType() { return newBuilder(); } 1135 public static Builder newBuilder(org.sonar.server.source.db.FileSourceDb.Line prototype) { 1136 return newBuilder().mergeFrom(prototype); 1137 } 1138 public Builder toBuilder() { return newBuilder(this); } 1139 1140 @java.lang.Override 1141 protected Builder newBuilderForType( 1142 com.google.protobuf.GeneratedMessage.BuilderParent parent) { 1143 Builder builder = new Builder(parent); 1144 return builder; 1145 } 1146 /** 1147 * Protobuf type {@code org.sonar.server.source.db.Line} 1148 */ 1149 public static final class Builder extends 1150 com.google.protobuf.GeneratedMessage.Builder<Builder> 1151 implements org.sonar.server.source.db.FileSourceDb.LineOrBuilder { 1152 public static final com.google.protobuf.Descriptors.Descriptor 1153 getDescriptor() { 1154 return org.sonar.server.source.db.FileSourceDb.internal_static_org_sonar_server_source_db_Line_descriptor; 1155 } 1156 1157 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 1158 internalGetFieldAccessorTable() { 1159 return org.sonar.server.source.db.FileSourceDb.internal_static_org_sonar_server_source_db_Line_fieldAccessorTable 1160 .ensureFieldAccessorsInitialized( 1161 org.sonar.server.source.db.FileSourceDb.Line.class, org.sonar.server.source.db.FileSourceDb.Line.Builder.class); 1162 } 1163 1164 // Construct using org.sonar.server.source.db.FileSourceDb.Line.newBuilder() 1165 private Builder() { 1166 maybeForceBuilderInitialization(); 1167 } 1168 1169 private Builder( 1170 com.google.protobuf.GeneratedMessage.BuilderParent parent) { 1171 super(parent); 1172 maybeForceBuilderInitialization(); 1173 } 1174 private void maybeForceBuilderInitialization() { 1175 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { 1176 } 1177 } 1178 private static Builder create() { 1179 return new Builder(); 1180 } 1181 1182 public Builder clear() { 1183 super.clear(); 1184 line_ = 0; 1185 bitField0_ = (bitField0_ & ~0x00000001); 1186 source_ = ""; 1187 bitField0_ = (bitField0_ & ~0x00000002); 1188 scmRevision_ = ""; 1189 bitField0_ = (bitField0_ & ~0x00000004); 1190 scmAuthor_ = ""; 1191 bitField0_ = (bitField0_ & ~0x00000008); 1192 scmDate_ = 0L; 1193 bitField0_ = (bitField0_ & ~0x00000010); 1194 utLineHits_ = 0; 1195 bitField0_ = (bitField0_ & ~0x00000020); 1196 utConditions_ = 0; 1197 bitField0_ = (bitField0_ & ~0x00000040); 1198 utCoveredConditions_ = 0; 1199 bitField0_ = (bitField0_ & ~0x00000080); 1200 itLineHits_ = 0; 1201 bitField0_ = (bitField0_ & ~0x00000100); 1202 itConditions_ = 0; 1203 bitField0_ = (bitField0_ & ~0x00000200); 1204 itCoveredConditions_ = 0; 1205 bitField0_ = (bitField0_ & ~0x00000400); 1206 overallLineHits_ = 0; 1207 bitField0_ = (bitField0_ & ~0x00000800); 1208 overallConditions_ = 0; 1209 bitField0_ = (bitField0_ & ~0x00001000); 1210 overallCoveredConditions_ = 0; 1211 bitField0_ = (bitField0_ & ~0x00002000); 1212 highlighting_ = ""; 1213 bitField0_ = (bitField0_ & ~0x00004000); 1214 symbols_ = ""; 1215 bitField0_ = (bitField0_ & ~0x00008000); 1216 duplications_ = java.util.Collections.emptyList(); 1217 bitField0_ = (bitField0_ & ~0x00010000); 1218 return this; 1219 } 1220 1221 public Builder clone() { 1222 return create().mergeFrom(buildPartial()); 1223 } 1224 1225 public com.google.protobuf.Descriptors.Descriptor 1226 getDescriptorForType() { 1227 return org.sonar.server.source.db.FileSourceDb.internal_static_org_sonar_server_source_db_Line_descriptor; 1228 } 1229 1230 public org.sonar.server.source.db.FileSourceDb.Line getDefaultInstanceForType() { 1231 return org.sonar.server.source.db.FileSourceDb.Line.getDefaultInstance(); 1232 } 1233 1234 public org.sonar.server.source.db.FileSourceDb.Line build() { 1235 org.sonar.server.source.db.FileSourceDb.Line result = buildPartial(); 1236 if (!result.isInitialized()) { 1237 throw newUninitializedMessageException(result); 1238 } 1239 return result; 1240 } 1241 1242 public org.sonar.server.source.db.FileSourceDb.Line buildPartial() { 1243 org.sonar.server.source.db.FileSourceDb.Line result = new org.sonar.server.source.db.FileSourceDb.Line(this); 1244 int from_bitField0_ = bitField0_; 1245 int to_bitField0_ = 0; 1246 if (((from_bitField0_ & 0x00000001) == 0x00000001)) { 1247 to_bitField0_ |= 0x00000001; 1248 } 1249 result.line_ = line_; 1250 if (((from_bitField0_ & 0x00000002) == 0x00000002)) { 1251 to_bitField0_ |= 0x00000002; 1252 } 1253 result.source_ = source_; 1254 if (((from_bitField0_ & 0x00000004) == 0x00000004)) { 1255 to_bitField0_ |= 0x00000004; 1256 } 1257 result.scmRevision_ = scmRevision_; 1258 if (((from_bitField0_ & 0x00000008) == 0x00000008)) { 1259 to_bitField0_ |= 0x00000008; 1260 } 1261 result.scmAuthor_ = scmAuthor_; 1262 if (((from_bitField0_ & 0x00000010) == 0x00000010)) { 1263 to_bitField0_ |= 0x00000010; 1264 } 1265 result.scmDate_ = scmDate_; 1266 if (((from_bitField0_ & 0x00000020) == 0x00000020)) { 1267 to_bitField0_ |= 0x00000020; 1268 } 1269 result.utLineHits_ = utLineHits_; 1270 if (((from_bitField0_ & 0x00000040) == 0x00000040)) { 1271 to_bitField0_ |= 0x00000040; 1272 } 1273 result.utConditions_ = utConditions_; 1274 if (((from_bitField0_ & 0x00000080) == 0x00000080)) { 1275 to_bitField0_ |= 0x00000080; 1276 } 1277 result.utCoveredConditions_ = utCoveredConditions_; 1278 if (((from_bitField0_ & 0x00000100) == 0x00000100)) { 1279 to_bitField0_ |= 0x00000100; 1280 } 1281 result.itLineHits_ = itLineHits_; 1282 if (((from_bitField0_ & 0x00000200) == 0x00000200)) { 1283 to_bitField0_ |= 0x00000200; 1284 } 1285 result.itConditions_ = itConditions_; 1286 if (((from_bitField0_ & 0x00000400) == 0x00000400)) { 1287 to_bitField0_ |= 0x00000400; 1288 } 1289 result.itCoveredConditions_ = itCoveredConditions_; 1290 if (((from_bitField0_ & 0x00000800) == 0x00000800)) { 1291 to_bitField0_ |= 0x00000800; 1292 } 1293 result.overallLineHits_ = overallLineHits_; 1294 if (((from_bitField0_ & 0x00001000) == 0x00001000)) { 1295 to_bitField0_ |= 0x00001000; 1296 } 1297 result.overallConditions_ = overallConditions_; 1298 if (((from_bitField0_ & 0x00002000) == 0x00002000)) { 1299 to_bitField0_ |= 0x00002000; 1300 } 1301 result.overallCoveredConditions_ = overallCoveredConditions_; 1302 if (((from_bitField0_ & 0x00004000) == 0x00004000)) { 1303 to_bitField0_ |= 0x00004000; 1304 } 1305 result.highlighting_ = highlighting_; 1306 if (((from_bitField0_ & 0x00008000) == 0x00008000)) { 1307 to_bitField0_ |= 0x00008000; 1308 } 1309 result.symbols_ = symbols_; 1310 if (((bitField0_ & 0x00010000) == 0x00010000)) { 1311 duplications_ = java.util.Collections.unmodifiableList(duplications_); 1312 bitField0_ = (bitField0_ & ~0x00010000); 1313 } 1314 result.duplications_ = duplications_; 1315 result.bitField0_ = to_bitField0_; 1316 onBuilt(); 1317 return result; 1318 } 1319 1320 public Builder mergeFrom(com.google.protobuf.Message other) { 1321 if (other instanceof org.sonar.server.source.db.FileSourceDb.Line) { 1322 return mergeFrom((org.sonar.server.source.db.FileSourceDb.Line)other); 1323 } else { 1324 super.mergeFrom(other); 1325 return this; 1326 } 1327 } 1328 1329 public Builder mergeFrom(org.sonar.server.source.db.FileSourceDb.Line other) { 1330 if (other == org.sonar.server.source.db.FileSourceDb.Line.getDefaultInstance()) return this; 1331 if (other.hasLine()) { 1332 setLine(other.getLine()); 1333 } 1334 if (other.hasSource()) { 1335 bitField0_ |= 0x00000002; 1336 source_ = other.source_; 1337 onChanged(); 1338 } 1339 if (other.hasScmRevision()) { 1340 bitField0_ |= 0x00000004; 1341 scmRevision_ = other.scmRevision_; 1342 onChanged(); 1343 } 1344 if (other.hasScmAuthor()) { 1345 bitField0_ |= 0x00000008; 1346 scmAuthor_ = other.scmAuthor_; 1347 onChanged(); 1348 } 1349 if (other.hasScmDate()) { 1350 setScmDate(other.getScmDate()); 1351 } 1352 if (other.hasUtLineHits()) { 1353 setUtLineHits(other.getUtLineHits()); 1354 } 1355 if (other.hasUtConditions()) { 1356 setUtConditions(other.getUtConditions()); 1357 } 1358 if (other.hasUtCoveredConditions()) { 1359 setUtCoveredConditions(other.getUtCoveredConditions()); 1360 } 1361 if (other.hasItLineHits()) { 1362 setItLineHits(other.getItLineHits()); 1363 } 1364 if (other.hasItConditions()) { 1365 setItConditions(other.getItConditions()); 1366 } 1367 if (other.hasItCoveredConditions()) { 1368 setItCoveredConditions(other.getItCoveredConditions()); 1369 } 1370 if (other.hasOverallLineHits()) { 1371 setOverallLineHits(other.getOverallLineHits()); 1372 } 1373 if (other.hasOverallConditions()) { 1374 setOverallConditions(other.getOverallConditions()); 1375 } 1376 if (other.hasOverallCoveredConditions()) { 1377 setOverallCoveredConditions(other.getOverallCoveredConditions()); 1378 } 1379 if (other.hasHighlighting()) { 1380 bitField0_ |= 0x00004000; 1381 highlighting_ = other.highlighting_; 1382 onChanged(); 1383 } 1384 if (other.hasSymbols()) { 1385 bitField0_ |= 0x00008000; 1386 symbols_ = other.symbols_; 1387 onChanged(); 1388 } 1389 if (!other.duplications_.isEmpty()) { 1390 if (duplications_.isEmpty()) { 1391 duplications_ = other.duplications_; 1392 bitField0_ = (bitField0_ & ~0x00010000); 1393 } else { 1394 ensureDuplicationsIsMutable(); 1395 duplications_.addAll(other.duplications_); 1396 } 1397 onChanged(); 1398 } 1399 this.mergeUnknownFields(other.getUnknownFields()); 1400 return this; 1401 } 1402 1403 public final boolean isInitialized() { 1404 return true; 1405 } 1406 1407 public Builder mergeFrom( 1408 com.google.protobuf.CodedInputStream input, 1409 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1410 throws java.io.IOException { 1411 org.sonar.server.source.db.FileSourceDb.Line parsedMessage = null; 1412 try { 1413 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 1414 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 1415 parsedMessage = (org.sonar.server.source.db.FileSourceDb.Line) e.getUnfinishedMessage(); 1416 throw e; 1417 } finally { 1418 if (parsedMessage != null) { 1419 mergeFrom(parsedMessage); 1420 } 1421 } 1422 return this; 1423 } 1424 private int bitField0_; 1425 1426 // optional int32 line = 1; 1427 private int line_ ; 1428 /** 1429 * <code>optional int32 line = 1;</code> 1430 */ 1431 public boolean hasLine() { 1432 return ((bitField0_ & 0x00000001) == 0x00000001); 1433 } 1434 /** 1435 * <code>optional int32 line = 1;</code> 1436 */ 1437 public int getLine() { 1438 return line_; 1439 } 1440 /** 1441 * <code>optional int32 line = 1;</code> 1442 */ 1443 public Builder setLine(int value) { 1444 bitField0_ |= 0x00000001; 1445 line_ = value; 1446 onChanged(); 1447 return this; 1448 } 1449 /** 1450 * <code>optional int32 line = 1;</code> 1451 */ 1452 public Builder clearLine() { 1453 bitField0_ = (bitField0_ & ~0x00000001); 1454 line_ = 0; 1455 onChanged(); 1456 return this; 1457 } 1458 1459 // optional string source = 2; 1460 private java.lang.Object source_ = ""; 1461 /** 1462 * <code>optional string source = 2;</code> 1463 */ 1464 public boolean hasSource() { 1465 return ((bitField0_ & 0x00000002) == 0x00000002); 1466 } 1467 /** 1468 * <code>optional string source = 2;</code> 1469 */ 1470 public java.lang.String getSource() { 1471 java.lang.Object ref = source_; 1472 if (!(ref instanceof java.lang.String)) { 1473 java.lang.String s = ((com.google.protobuf.ByteString) ref) 1474 .toStringUtf8(); 1475 source_ = s; 1476 return s; 1477 } else { 1478 return (java.lang.String) ref; 1479 } 1480 } 1481 /** 1482 * <code>optional string source = 2;</code> 1483 */ 1484 public com.google.protobuf.ByteString 1485 getSourceBytes() { 1486 java.lang.Object ref = source_; 1487 if (ref instanceof String) { 1488 com.google.protobuf.ByteString b = 1489 com.google.protobuf.ByteString.copyFromUtf8( 1490 (java.lang.String) ref); 1491 source_ = b; 1492 return b; 1493 } else { 1494 return (com.google.protobuf.ByteString) ref; 1495 } 1496 } 1497 /** 1498 * <code>optional string source = 2;</code> 1499 */ 1500 public Builder setSource( 1501 java.lang.String value) { 1502 if (value == null) { 1503 throw new NullPointerException(); 1504 } 1505 bitField0_ |= 0x00000002; 1506 source_ = value; 1507 onChanged(); 1508 return this; 1509 } 1510 /** 1511 * <code>optional string source = 2;</code> 1512 */ 1513 public Builder clearSource() { 1514 bitField0_ = (bitField0_ & ~0x00000002); 1515 source_ = getDefaultInstance().getSource(); 1516 onChanged(); 1517 return this; 1518 } 1519 /** 1520 * <code>optional string source = 2;</code> 1521 */ 1522 public Builder setSourceBytes( 1523 com.google.protobuf.ByteString value) { 1524 if (value == null) { 1525 throw new NullPointerException(); 1526 } 1527 bitField0_ |= 0x00000002; 1528 source_ = value; 1529 onChanged(); 1530 return this; 1531 } 1532 1533 // optional string scm_revision = 3; 1534 private java.lang.Object scmRevision_ = ""; 1535 /** 1536 * <code>optional string scm_revision = 3;</code> 1537 * 1538 * <pre> 1539 * SCM 1540 * </pre> 1541 */ 1542 public boolean hasScmRevision() { 1543 return ((bitField0_ & 0x00000004) == 0x00000004); 1544 } 1545 /** 1546 * <code>optional string scm_revision = 3;</code> 1547 * 1548 * <pre> 1549 * SCM 1550 * </pre> 1551 */ 1552 public java.lang.String getScmRevision() { 1553 java.lang.Object ref = scmRevision_; 1554 if (!(ref instanceof java.lang.String)) { 1555 java.lang.String s = ((com.google.protobuf.ByteString) ref) 1556 .toStringUtf8(); 1557 scmRevision_ = s; 1558 return s; 1559 } else { 1560 return (java.lang.String) ref; 1561 } 1562 } 1563 /** 1564 * <code>optional string scm_revision = 3;</code> 1565 * 1566 * <pre> 1567 * SCM 1568 * </pre> 1569 */ 1570 public com.google.protobuf.ByteString 1571 getScmRevisionBytes() { 1572 java.lang.Object ref = scmRevision_; 1573 if (ref instanceof String) { 1574 com.google.protobuf.ByteString b = 1575 com.google.protobuf.ByteString.copyFromUtf8( 1576 (java.lang.String) ref); 1577 scmRevision_ = b; 1578 return b; 1579 } else { 1580 return (com.google.protobuf.ByteString) ref; 1581 } 1582 } 1583 /** 1584 * <code>optional string scm_revision = 3;</code> 1585 * 1586 * <pre> 1587 * SCM 1588 * </pre> 1589 */ 1590 public Builder setScmRevision( 1591 java.lang.String value) { 1592 if (value == null) { 1593 throw new NullPointerException(); 1594 } 1595 bitField0_ |= 0x00000004; 1596 scmRevision_ = value; 1597 onChanged(); 1598 return this; 1599 } 1600 /** 1601 * <code>optional string scm_revision = 3;</code> 1602 * 1603 * <pre> 1604 * SCM 1605 * </pre> 1606 */ 1607 public Builder clearScmRevision() { 1608 bitField0_ = (bitField0_ & ~0x00000004); 1609 scmRevision_ = getDefaultInstance().getScmRevision(); 1610 onChanged(); 1611 return this; 1612 } 1613 /** 1614 * <code>optional string scm_revision = 3;</code> 1615 * 1616 * <pre> 1617 * SCM 1618 * </pre> 1619 */ 1620 public Builder setScmRevisionBytes( 1621 com.google.protobuf.ByteString value) { 1622 if (value == null) { 1623 throw new NullPointerException(); 1624 } 1625 bitField0_ |= 0x00000004; 1626 scmRevision_ = value; 1627 onChanged(); 1628 return this; 1629 } 1630 1631 // optional string scm_author = 4; 1632 private java.lang.Object scmAuthor_ = ""; 1633 /** 1634 * <code>optional string scm_author = 4;</code> 1635 */ 1636 public boolean hasScmAuthor() { 1637 return ((bitField0_ & 0x00000008) == 0x00000008); 1638 } 1639 /** 1640 * <code>optional string scm_author = 4;</code> 1641 */ 1642 public java.lang.String getScmAuthor() { 1643 java.lang.Object ref = scmAuthor_; 1644 if (!(ref instanceof java.lang.String)) { 1645 java.lang.String s = ((com.google.protobuf.ByteString) ref) 1646 .toStringUtf8(); 1647 scmAuthor_ = s; 1648 return s; 1649 } else { 1650 return (java.lang.String) ref; 1651 } 1652 } 1653 /** 1654 * <code>optional string scm_author = 4;</code> 1655 */ 1656 public com.google.protobuf.ByteString 1657 getScmAuthorBytes() { 1658 java.lang.Object ref = scmAuthor_; 1659 if (ref instanceof String) { 1660 com.google.protobuf.ByteString b = 1661 com.google.protobuf.ByteString.copyFromUtf8( 1662 (java.lang.String) ref); 1663 scmAuthor_ = b; 1664 return b; 1665 } else { 1666 return (com.google.protobuf.ByteString) ref; 1667 } 1668 } 1669 /** 1670 * <code>optional string scm_author = 4;</code> 1671 */ 1672 public Builder setScmAuthor( 1673 java.lang.String value) { 1674 if (value == null) { 1675 throw new NullPointerException(); 1676 } 1677 bitField0_ |= 0x00000008; 1678 scmAuthor_ = value; 1679 onChanged(); 1680 return this; 1681 } 1682 /** 1683 * <code>optional string scm_author = 4;</code> 1684 */ 1685 public Builder clearScmAuthor() { 1686 bitField0_ = (bitField0_ & ~0x00000008); 1687 scmAuthor_ = getDefaultInstance().getScmAuthor(); 1688 onChanged(); 1689 return this; 1690 } 1691 /** 1692 * <code>optional string scm_author = 4;</code> 1693 */ 1694 public Builder setScmAuthorBytes( 1695 com.google.protobuf.ByteString value) { 1696 if (value == null) { 1697 throw new NullPointerException(); 1698 } 1699 bitField0_ |= 0x00000008; 1700 scmAuthor_ = value; 1701 onChanged(); 1702 return this; 1703 } 1704 1705 // optional int64 scm_date = 5; 1706 private long scmDate_ ; 1707 /** 1708 * <code>optional int64 scm_date = 5;</code> 1709 */ 1710 public boolean hasScmDate() { 1711 return ((bitField0_ & 0x00000010) == 0x00000010); 1712 } 1713 /** 1714 * <code>optional int64 scm_date = 5;</code> 1715 */ 1716 public long getScmDate() { 1717 return scmDate_; 1718 } 1719 /** 1720 * <code>optional int64 scm_date = 5;</code> 1721 */ 1722 public Builder setScmDate(long value) { 1723 bitField0_ |= 0x00000010; 1724 scmDate_ = value; 1725 onChanged(); 1726 return this; 1727 } 1728 /** 1729 * <code>optional int64 scm_date = 5;</code> 1730 */ 1731 public Builder clearScmDate() { 1732 bitField0_ = (bitField0_ & ~0x00000010); 1733 scmDate_ = 0L; 1734 onChanged(); 1735 return this; 1736 } 1737 1738 // optional int32 ut_line_hits = 6; 1739 private int utLineHits_ ; 1740 /** 1741 * <code>optional int32 ut_line_hits = 6;</code> 1742 * 1743 * <pre> 1744 * unit tests 1745 * </pre> 1746 */ 1747 public boolean hasUtLineHits() { 1748 return ((bitField0_ & 0x00000020) == 0x00000020); 1749 } 1750 /** 1751 * <code>optional int32 ut_line_hits = 6;</code> 1752 * 1753 * <pre> 1754 * unit tests 1755 * </pre> 1756 */ 1757 public int getUtLineHits() { 1758 return utLineHits_; 1759 } 1760 /** 1761 * <code>optional int32 ut_line_hits = 6;</code> 1762 * 1763 * <pre> 1764 * unit tests 1765 * </pre> 1766 */ 1767 public Builder setUtLineHits(int value) { 1768 bitField0_ |= 0x00000020; 1769 utLineHits_ = value; 1770 onChanged(); 1771 return this; 1772 } 1773 /** 1774 * <code>optional int32 ut_line_hits = 6;</code> 1775 * 1776 * <pre> 1777 * unit tests 1778 * </pre> 1779 */ 1780 public Builder clearUtLineHits() { 1781 bitField0_ = (bitField0_ & ~0x00000020); 1782 utLineHits_ = 0; 1783 onChanged(); 1784 return this; 1785 } 1786 1787 // optional int32 ut_conditions = 7; 1788 private int utConditions_ ; 1789 /** 1790 * <code>optional int32 ut_conditions = 7;</code> 1791 */ 1792 public boolean hasUtConditions() { 1793 return ((bitField0_ & 0x00000040) == 0x00000040); 1794 } 1795 /** 1796 * <code>optional int32 ut_conditions = 7;</code> 1797 */ 1798 public int getUtConditions() { 1799 return utConditions_; 1800 } 1801 /** 1802 * <code>optional int32 ut_conditions = 7;</code> 1803 */ 1804 public Builder setUtConditions(int value) { 1805 bitField0_ |= 0x00000040; 1806 utConditions_ = value; 1807 onChanged(); 1808 return this; 1809 } 1810 /** 1811 * <code>optional int32 ut_conditions = 7;</code> 1812 */ 1813 public Builder clearUtConditions() { 1814 bitField0_ = (bitField0_ & ~0x00000040); 1815 utConditions_ = 0; 1816 onChanged(); 1817 return this; 1818 } 1819 1820 // optional int32 ut_covered_conditions = 8; 1821 private int utCoveredConditions_ ; 1822 /** 1823 * <code>optional int32 ut_covered_conditions = 8;</code> 1824 */ 1825 public boolean hasUtCoveredConditions() { 1826 return ((bitField0_ & 0x00000080) == 0x00000080); 1827 } 1828 /** 1829 * <code>optional int32 ut_covered_conditions = 8;</code> 1830 */ 1831 public int getUtCoveredConditions() { 1832 return utCoveredConditions_; 1833 } 1834 /** 1835 * <code>optional int32 ut_covered_conditions = 8;</code> 1836 */ 1837 public Builder setUtCoveredConditions(int value) { 1838 bitField0_ |= 0x00000080; 1839 utCoveredConditions_ = value; 1840 onChanged(); 1841 return this; 1842 } 1843 /** 1844 * <code>optional int32 ut_covered_conditions = 8;</code> 1845 */ 1846 public Builder clearUtCoveredConditions() { 1847 bitField0_ = (bitField0_ & ~0x00000080); 1848 utCoveredConditions_ = 0; 1849 onChanged(); 1850 return this; 1851 } 1852 1853 // optional int32 it_line_hits = 9; 1854 private int itLineHits_ ; 1855 /** 1856 * <code>optional int32 it_line_hits = 9;</code> 1857 * 1858 * <pre> 1859 * integration tests 1860 * </pre> 1861 */ 1862 public boolean hasItLineHits() { 1863 return ((bitField0_ & 0x00000100) == 0x00000100); 1864 } 1865 /** 1866 * <code>optional int32 it_line_hits = 9;</code> 1867 * 1868 * <pre> 1869 * integration tests 1870 * </pre> 1871 */ 1872 public int getItLineHits() { 1873 return itLineHits_; 1874 } 1875 /** 1876 * <code>optional int32 it_line_hits = 9;</code> 1877 * 1878 * <pre> 1879 * integration tests 1880 * </pre> 1881 */ 1882 public Builder setItLineHits(int value) { 1883 bitField0_ |= 0x00000100; 1884 itLineHits_ = value; 1885 onChanged(); 1886 return this; 1887 } 1888 /** 1889 * <code>optional int32 it_line_hits = 9;</code> 1890 * 1891 * <pre> 1892 * integration tests 1893 * </pre> 1894 */ 1895 public Builder clearItLineHits() { 1896 bitField0_ = (bitField0_ & ~0x00000100); 1897 itLineHits_ = 0; 1898 onChanged(); 1899 return this; 1900 } 1901 1902 // optional int32 it_conditions = 10; 1903 private int itConditions_ ; 1904 /** 1905 * <code>optional int32 it_conditions = 10;</code> 1906 */ 1907 public boolean hasItConditions() { 1908 return ((bitField0_ & 0x00000200) == 0x00000200); 1909 } 1910 /** 1911 * <code>optional int32 it_conditions = 10;</code> 1912 */ 1913 public int getItConditions() { 1914 return itConditions_; 1915 } 1916 /** 1917 * <code>optional int32 it_conditions = 10;</code> 1918 */ 1919 public Builder setItConditions(int value) { 1920 bitField0_ |= 0x00000200; 1921 itConditions_ = value; 1922 onChanged(); 1923 return this; 1924 } 1925 /** 1926 * <code>optional int32 it_conditions = 10;</code> 1927 */ 1928 public Builder clearItConditions() { 1929 bitField0_ = (bitField0_ & ~0x00000200); 1930 itConditions_ = 0; 1931 onChanged(); 1932 return this; 1933 } 1934 1935 // optional int32 it_covered_conditions = 11; 1936 private int itCoveredConditions_ ; 1937 /** 1938 * <code>optional int32 it_covered_conditions = 11;</code> 1939 */ 1940 public boolean hasItCoveredConditions() { 1941 return ((bitField0_ & 0x00000400) == 0x00000400); 1942 } 1943 /** 1944 * <code>optional int32 it_covered_conditions = 11;</code> 1945 */ 1946 public int getItCoveredConditions() { 1947 return itCoveredConditions_; 1948 } 1949 /** 1950 * <code>optional int32 it_covered_conditions = 11;</code> 1951 */ 1952 public Builder setItCoveredConditions(int value) { 1953 bitField0_ |= 0x00000400; 1954 itCoveredConditions_ = value; 1955 onChanged(); 1956 return this; 1957 } 1958 /** 1959 * <code>optional int32 it_covered_conditions = 11;</code> 1960 */ 1961 public Builder clearItCoveredConditions() { 1962 bitField0_ = (bitField0_ & ~0x00000400); 1963 itCoveredConditions_ = 0; 1964 onChanged(); 1965 return this; 1966 } 1967 1968 // optional int32 overall_line_hits = 12; 1969 private int overallLineHits_ ; 1970 /** 1971 * <code>optional int32 overall_line_hits = 12;</code> 1972 * 1973 * <pre> 1974 * overall tests 1975 * </pre> 1976 */ 1977 public boolean hasOverallLineHits() { 1978 return ((bitField0_ & 0x00000800) == 0x00000800); 1979 } 1980 /** 1981 * <code>optional int32 overall_line_hits = 12;</code> 1982 * 1983 * <pre> 1984 * overall tests 1985 * </pre> 1986 */ 1987 public int getOverallLineHits() { 1988 return overallLineHits_; 1989 } 1990 /** 1991 * <code>optional int32 overall_line_hits = 12;</code> 1992 * 1993 * <pre> 1994 * overall tests 1995 * </pre> 1996 */ 1997 public Builder setOverallLineHits(int value) { 1998 bitField0_ |= 0x00000800; 1999 overallLineHits_ = value; 2000 onChanged(); 2001 return this; 2002 } 2003 /** 2004 * <code>optional int32 overall_line_hits = 12;</code> 2005 * 2006 * <pre> 2007 * overall tests 2008 * </pre> 2009 */ 2010 public Builder clearOverallLineHits() { 2011 bitField0_ = (bitField0_ & ~0x00000800); 2012 overallLineHits_ = 0; 2013 onChanged(); 2014 return this; 2015 } 2016 2017 // optional int32 overall_conditions = 13; 2018 private int overallConditions_ ; 2019 /** 2020 * <code>optional int32 overall_conditions = 13;</code> 2021 */ 2022 public boolean hasOverallConditions() { 2023 return ((bitField0_ & 0x00001000) == 0x00001000); 2024 } 2025 /** 2026 * <code>optional int32 overall_conditions = 13;</code> 2027 */ 2028 public int getOverallConditions() { 2029 return overallConditions_; 2030 } 2031 /** 2032 * <code>optional int32 overall_conditions = 13;</code> 2033 */ 2034 public Builder setOverallConditions(int value) { 2035 bitField0_ |= 0x00001000; 2036 overallConditions_ = value; 2037 onChanged(); 2038 return this; 2039 } 2040 /** 2041 * <code>optional int32 overall_conditions = 13;</code> 2042 */ 2043 public Builder clearOverallConditions() { 2044 bitField0_ = (bitField0_ & ~0x00001000); 2045 overallConditions_ = 0; 2046 onChanged(); 2047 return this; 2048 } 2049 2050 // optional int32 overall_covered_conditions = 14; 2051 private int overallCoveredConditions_ ; 2052 /** 2053 * <code>optional int32 overall_covered_conditions = 14;</code> 2054 */ 2055 public boolean hasOverallCoveredConditions() { 2056 return ((bitField0_ & 0x00002000) == 0x00002000); 2057 } 2058 /** 2059 * <code>optional int32 overall_covered_conditions = 14;</code> 2060 */ 2061 public int getOverallCoveredConditions() { 2062 return overallCoveredConditions_; 2063 } 2064 /** 2065 * <code>optional int32 overall_covered_conditions = 14;</code> 2066 */ 2067 public Builder setOverallCoveredConditions(int value) { 2068 bitField0_ |= 0x00002000; 2069 overallCoveredConditions_ = value; 2070 onChanged(); 2071 return this; 2072 } 2073 /** 2074 * <code>optional int32 overall_covered_conditions = 14;</code> 2075 */ 2076 public Builder clearOverallCoveredConditions() { 2077 bitField0_ = (bitField0_ & ~0x00002000); 2078 overallCoveredConditions_ = 0; 2079 onChanged(); 2080 return this; 2081 } 2082 2083 // optional string highlighting = 15; 2084 private java.lang.Object highlighting_ = ""; 2085 /** 2086 * <code>optional string highlighting = 15;</code> 2087 */ 2088 public boolean hasHighlighting() { 2089 return ((bitField0_ & 0x00004000) == 0x00004000); 2090 } 2091 /** 2092 * <code>optional string highlighting = 15;</code> 2093 */ 2094 public java.lang.String getHighlighting() { 2095 java.lang.Object ref = highlighting_; 2096 if (!(ref instanceof java.lang.String)) { 2097 java.lang.String s = ((com.google.protobuf.ByteString) ref) 2098 .toStringUtf8(); 2099 highlighting_ = s; 2100 return s; 2101 } else { 2102 return (java.lang.String) ref; 2103 } 2104 } 2105 /** 2106 * <code>optional string highlighting = 15;</code> 2107 */ 2108 public com.google.protobuf.ByteString 2109 getHighlightingBytes() { 2110 java.lang.Object ref = highlighting_; 2111 if (ref instanceof String) { 2112 com.google.protobuf.ByteString b = 2113 com.google.protobuf.ByteString.copyFromUtf8( 2114 (java.lang.String) ref); 2115 highlighting_ = b; 2116 return b; 2117 } else { 2118 return (com.google.protobuf.ByteString) ref; 2119 } 2120 } 2121 /** 2122 * <code>optional string highlighting = 15;</code> 2123 */ 2124 public Builder setHighlighting( 2125 java.lang.String value) { 2126 if (value == null) { 2127 throw new NullPointerException(); 2128 } 2129 bitField0_ |= 0x00004000; 2130 highlighting_ = value; 2131 onChanged(); 2132 return this; 2133 } 2134 /** 2135 * <code>optional string highlighting = 15;</code> 2136 */ 2137 public Builder clearHighlighting() { 2138 bitField0_ = (bitField0_ & ~0x00004000); 2139 highlighting_ = getDefaultInstance().getHighlighting(); 2140 onChanged(); 2141 return this; 2142 } 2143 /** 2144 * <code>optional string highlighting = 15;</code> 2145 */ 2146 public Builder setHighlightingBytes( 2147 com.google.protobuf.ByteString value) { 2148 if (value == null) { 2149 throw new NullPointerException(); 2150 } 2151 bitField0_ |= 0x00004000; 2152 highlighting_ = value; 2153 onChanged(); 2154 return this; 2155 } 2156 2157 // optional string symbols = 16; 2158 private java.lang.Object symbols_ = ""; 2159 /** 2160 * <code>optional string symbols = 16;</code> 2161 */ 2162 public boolean hasSymbols() { 2163 return ((bitField0_ & 0x00008000) == 0x00008000); 2164 } 2165 /** 2166 * <code>optional string symbols = 16;</code> 2167 */ 2168 public java.lang.String getSymbols() { 2169 java.lang.Object ref = symbols_; 2170 if (!(ref instanceof java.lang.String)) { 2171 java.lang.String s = ((com.google.protobuf.ByteString) ref) 2172 .toStringUtf8(); 2173 symbols_ = s; 2174 return s; 2175 } else { 2176 return (java.lang.String) ref; 2177 } 2178 } 2179 /** 2180 * <code>optional string symbols = 16;</code> 2181 */ 2182 public com.google.protobuf.ByteString 2183 getSymbolsBytes() { 2184 java.lang.Object ref = symbols_; 2185 if (ref instanceof String) { 2186 com.google.protobuf.ByteString b = 2187 com.google.protobuf.ByteString.copyFromUtf8( 2188 (java.lang.String) ref); 2189 symbols_ = b; 2190 return b; 2191 } else { 2192 return (com.google.protobuf.ByteString) ref; 2193 } 2194 } 2195 /** 2196 * <code>optional string symbols = 16;</code> 2197 */ 2198 public Builder setSymbols( 2199 java.lang.String value) { 2200 if (value == null) { 2201 throw new NullPointerException(); 2202 } 2203 bitField0_ |= 0x00008000; 2204 symbols_ = value; 2205 onChanged(); 2206 return this; 2207 } 2208 /** 2209 * <code>optional string symbols = 16;</code> 2210 */ 2211 public Builder clearSymbols() { 2212 bitField0_ = (bitField0_ & ~0x00008000); 2213 symbols_ = getDefaultInstance().getSymbols(); 2214 onChanged(); 2215 return this; 2216 } 2217 /** 2218 * <code>optional string symbols = 16;</code> 2219 */ 2220 public Builder setSymbolsBytes( 2221 com.google.protobuf.ByteString value) { 2222 if (value == null) { 2223 throw new NullPointerException(); 2224 } 2225 bitField0_ |= 0x00008000; 2226 symbols_ = value; 2227 onChanged(); 2228 return this; 2229 } 2230 2231 // repeated int32 duplications = 17 [packed = true]; 2232 private java.util.List<java.lang.Integer> duplications_ = java.util.Collections.emptyList(); 2233 private void ensureDuplicationsIsMutable() { 2234 if (!((bitField0_ & 0x00010000) == 0x00010000)) { 2235 duplications_ = new java.util.ArrayList<java.lang.Integer>(duplications_); 2236 bitField0_ |= 0x00010000; 2237 } 2238 } 2239 /** 2240 * <code>repeated int32 duplications = 17 [packed = true];</code> 2241 */ 2242 public java.util.List<java.lang.Integer> 2243 getDuplicationsList() { 2244 return java.util.Collections.unmodifiableList(duplications_); 2245 } 2246 /** 2247 * <code>repeated int32 duplications = 17 [packed = true];</code> 2248 */ 2249 public int getDuplicationsCount() { 2250 return duplications_.size(); 2251 } 2252 /** 2253 * <code>repeated int32 duplications = 17 [packed = true];</code> 2254 */ 2255 public int getDuplications(int index) { 2256 return duplications_.get(index); 2257 } 2258 /** 2259 * <code>repeated int32 duplications = 17 [packed = true];</code> 2260 */ 2261 public Builder setDuplications( 2262 int index, int value) { 2263 ensureDuplicationsIsMutable(); 2264 duplications_.set(index, value); 2265 onChanged(); 2266 return this; 2267 } 2268 /** 2269 * <code>repeated int32 duplications = 17 [packed = true];</code> 2270 */ 2271 public Builder addDuplications(int value) { 2272 ensureDuplicationsIsMutable(); 2273 duplications_.add(value); 2274 onChanged(); 2275 return this; 2276 } 2277 /** 2278 * <code>repeated int32 duplications = 17 [packed = true];</code> 2279 */ 2280 public Builder addAllDuplications( 2281 java.lang.Iterable<? extends java.lang.Integer> values) { 2282 ensureDuplicationsIsMutable(); 2283 super.addAll(values, duplications_); 2284 onChanged(); 2285 return this; 2286 } 2287 /** 2288 * <code>repeated int32 duplications = 17 [packed = true];</code> 2289 */ 2290 public Builder clearDuplications() { 2291 duplications_ = java.util.Collections.emptyList(); 2292 bitField0_ = (bitField0_ & ~0x00010000); 2293 onChanged(); 2294 return this; 2295 } 2296 2297 // @@protoc_insertion_point(builder_scope:org.sonar.server.source.db.Line) 2298 } 2299 2300 static { 2301 defaultInstance = new Line(true); 2302 defaultInstance.initFields(); 2303 } 2304 2305 // @@protoc_insertion_point(class_scope:org.sonar.server.source.db.Line) 2306 } 2307 2308 public interface DataOrBuilder 2309 extends com.google.protobuf.MessageOrBuilder { 2310 2311 // repeated .org.sonar.server.source.db.Line lines = 1; 2312 /** 2313 * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code> 2314 */ 2315 java.util.List<org.sonar.server.source.db.FileSourceDb.Line> 2316 getLinesList(); 2317 /** 2318 * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code> 2319 */ 2320 org.sonar.server.source.db.FileSourceDb.Line getLines(int index); 2321 /** 2322 * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code> 2323 */ 2324 int getLinesCount(); 2325 /** 2326 * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code> 2327 */ 2328 java.util.List<? extends org.sonar.server.source.db.FileSourceDb.LineOrBuilder> 2329 getLinesOrBuilderList(); 2330 /** 2331 * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code> 2332 */ 2333 org.sonar.server.source.db.FileSourceDb.LineOrBuilder getLinesOrBuilder( 2334 int index); 2335 } 2336 /** 2337 * Protobuf type {@code org.sonar.server.source.db.Data} 2338 */ 2339 public static final class Data extends 2340 com.google.protobuf.GeneratedMessage 2341 implements DataOrBuilder { 2342 // Use Data.newBuilder() to construct. 2343 private Data(com.google.protobuf.GeneratedMessage.Builder<?> builder) { 2344 super(builder); 2345 this.unknownFields = builder.getUnknownFields(); 2346 } 2347 private Data(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } 2348 2349 private static final Data defaultInstance; 2350 public static Data getDefaultInstance() { 2351 return defaultInstance; 2352 } 2353 2354 public Data getDefaultInstanceForType() { 2355 return defaultInstance; 2356 } 2357 2358 private final com.google.protobuf.UnknownFieldSet unknownFields; 2359 @java.lang.Override 2360 public final com.google.protobuf.UnknownFieldSet 2361 getUnknownFields() { 2362 return this.unknownFields; 2363 } 2364 private Data( 2365 com.google.protobuf.CodedInputStream input, 2366 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2367 throws com.google.protobuf.InvalidProtocolBufferException { 2368 initFields(); 2369 int mutable_bitField0_ = 0; 2370 com.google.protobuf.UnknownFieldSet.Builder unknownFields = 2371 com.google.protobuf.UnknownFieldSet.newBuilder(); 2372 try { 2373 boolean done = false; 2374 while (!done) { 2375 int tag = input.readTag(); 2376 switch (tag) { 2377 case 0: 2378 done = true; 2379 break; 2380 default: { 2381 if (!parseUnknownField(input, unknownFields, 2382 extensionRegistry, tag)) { 2383 done = true; 2384 } 2385 break; 2386 } 2387 case 10: { 2388 if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { 2389 lines_ = new java.util.ArrayList<org.sonar.server.source.db.FileSourceDb.Line>(); 2390 mutable_bitField0_ |= 0x00000001; 2391 } 2392 lines_.add(input.readMessage(org.sonar.server.source.db.FileSourceDb.Line.PARSER, extensionRegistry)); 2393 break; 2394 } 2395 } 2396 } 2397 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 2398 throw e.setUnfinishedMessage(this); 2399 } catch (java.io.IOException e) { 2400 throw new com.google.protobuf.InvalidProtocolBufferException( 2401 e.getMessage()).setUnfinishedMessage(this); 2402 } finally { 2403 if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { 2404 lines_ = java.util.Collections.unmodifiableList(lines_); 2405 } 2406 this.unknownFields = unknownFields.build(); 2407 makeExtensionsImmutable(); 2408 } 2409 } 2410 public static final com.google.protobuf.Descriptors.Descriptor 2411 getDescriptor() { 2412 return org.sonar.server.source.db.FileSourceDb.internal_static_org_sonar_server_source_db_Data_descriptor; 2413 } 2414 2415 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 2416 internalGetFieldAccessorTable() { 2417 return org.sonar.server.source.db.FileSourceDb.internal_static_org_sonar_server_source_db_Data_fieldAccessorTable 2418 .ensureFieldAccessorsInitialized( 2419 org.sonar.server.source.db.FileSourceDb.Data.class, org.sonar.server.source.db.FileSourceDb.Data.Builder.class); 2420 } 2421 2422 public static com.google.protobuf.Parser<Data> PARSER = 2423 new com.google.protobuf.AbstractParser<Data>() { 2424 public Data parsePartialFrom( 2425 com.google.protobuf.CodedInputStream input, 2426 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2427 throws com.google.protobuf.InvalidProtocolBufferException { 2428 return new Data(input, extensionRegistry); 2429 } 2430 }; 2431 2432 @java.lang.Override 2433 public com.google.protobuf.Parser<Data> getParserForType() { 2434 return PARSER; 2435 } 2436 2437 // repeated .org.sonar.server.source.db.Line lines = 1; 2438 public static final int LINES_FIELD_NUMBER = 1; 2439 private java.util.List<org.sonar.server.source.db.FileSourceDb.Line> lines_; 2440 /** 2441 * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code> 2442 */ 2443 public java.util.List<org.sonar.server.source.db.FileSourceDb.Line> getLinesList() { 2444 return lines_; 2445 } 2446 /** 2447 * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code> 2448 */ 2449 public java.util.List<? extends org.sonar.server.source.db.FileSourceDb.LineOrBuilder> 2450 getLinesOrBuilderList() { 2451 return lines_; 2452 } 2453 /** 2454 * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code> 2455 */ 2456 public int getLinesCount() { 2457 return lines_.size(); 2458 } 2459 /** 2460 * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code> 2461 */ 2462 public org.sonar.server.source.db.FileSourceDb.Line getLines(int index) { 2463 return lines_.get(index); 2464 } 2465 /** 2466 * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code> 2467 */ 2468 public org.sonar.server.source.db.FileSourceDb.LineOrBuilder getLinesOrBuilder( 2469 int index) { 2470 return lines_.get(index); 2471 } 2472 2473 private void initFields() { 2474 lines_ = java.util.Collections.emptyList(); 2475 } 2476 private byte memoizedIsInitialized = -1; 2477 public final boolean isInitialized() { 2478 byte isInitialized = memoizedIsInitialized; 2479 if (isInitialized != -1) return isInitialized == 1; 2480 2481 memoizedIsInitialized = 1; 2482 return true; 2483 } 2484 2485 public void writeTo(com.google.protobuf.CodedOutputStream output) 2486 throws java.io.IOException { 2487 getSerializedSize(); 2488 for (int i = 0; i < lines_.size(); i++) { 2489 output.writeMessage(1, lines_.get(i)); 2490 } 2491 getUnknownFields().writeTo(output); 2492 } 2493 2494 private int memoizedSerializedSize = -1; 2495 public int getSerializedSize() { 2496 int size = memoizedSerializedSize; 2497 if (size != -1) return size; 2498 2499 size = 0; 2500 for (int i = 0; i < lines_.size(); i++) { 2501 size += com.google.protobuf.CodedOutputStream 2502 .computeMessageSize(1, lines_.get(i)); 2503 } 2504 size += getUnknownFields().getSerializedSize(); 2505 memoizedSerializedSize = size; 2506 return size; 2507 } 2508 2509 private static final long serialVersionUID = 0L; 2510 @java.lang.Override 2511 protected java.lang.Object writeReplace() 2512 throws java.io.ObjectStreamException { 2513 return super.writeReplace(); 2514 } 2515 2516 public static org.sonar.server.source.db.FileSourceDb.Data parseFrom( 2517 com.google.protobuf.ByteString data) 2518 throws com.google.protobuf.InvalidProtocolBufferException { 2519 return PARSER.parseFrom(data); 2520 } 2521 public static org.sonar.server.source.db.FileSourceDb.Data parseFrom( 2522 com.google.protobuf.ByteString data, 2523 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2524 throws com.google.protobuf.InvalidProtocolBufferException { 2525 return PARSER.parseFrom(data, extensionRegistry); 2526 } 2527 public static org.sonar.server.source.db.FileSourceDb.Data parseFrom(byte[] data) 2528 throws com.google.protobuf.InvalidProtocolBufferException { 2529 return PARSER.parseFrom(data); 2530 } 2531 public static org.sonar.server.source.db.FileSourceDb.Data parseFrom( 2532 byte[] data, 2533 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2534 throws com.google.protobuf.InvalidProtocolBufferException { 2535 return PARSER.parseFrom(data, extensionRegistry); 2536 } 2537 public static org.sonar.server.source.db.FileSourceDb.Data parseFrom(java.io.InputStream input) 2538 throws java.io.IOException { 2539 return PARSER.parseFrom(input); 2540 } 2541 public static org.sonar.server.source.db.FileSourceDb.Data parseFrom( 2542 java.io.InputStream input, 2543 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2544 throws java.io.IOException { 2545 return PARSER.parseFrom(input, extensionRegistry); 2546 } 2547 public static org.sonar.server.source.db.FileSourceDb.Data parseDelimitedFrom(java.io.InputStream input) 2548 throws java.io.IOException { 2549 return PARSER.parseDelimitedFrom(input); 2550 } 2551 public static org.sonar.server.source.db.FileSourceDb.Data parseDelimitedFrom( 2552 java.io.InputStream input, 2553 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2554 throws java.io.IOException { 2555 return PARSER.parseDelimitedFrom(input, extensionRegistry); 2556 } 2557 public static org.sonar.server.source.db.FileSourceDb.Data parseFrom( 2558 com.google.protobuf.CodedInputStream input) 2559 throws java.io.IOException { 2560 return PARSER.parseFrom(input); 2561 } 2562 public static org.sonar.server.source.db.FileSourceDb.Data parseFrom( 2563 com.google.protobuf.CodedInputStream input, 2564 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2565 throws java.io.IOException { 2566 return PARSER.parseFrom(input, extensionRegistry); 2567 } 2568 2569 public static Builder newBuilder() { return Builder.create(); } 2570 public Builder newBuilderForType() { return newBuilder(); } 2571 public static Builder newBuilder(org.sonar.server.source.db.FileSourceDb.Data prototype) { 2572 return newBuilder().mergeFrom(prototype); 2573 } 2574 public Builder toBuilder() { return newBuilder(this); } 2575 2576 @java.lang.Override 2577 protected Builder newBuilderForType( 2578 com.google.protobuf.GeneratedMessage.BuilderParent parent) { 2579 Builder builder = new Builder(parent); 2580 return builder; 2581 } 2582 /** 2583 * Protobuf type {@code org.sonar.server.source.db.Data} 2584 */ 2585 public static final class Builder extends 2586 com.google.protobuf.GeneratedMessage.Builder<Builder> 2587 implements org.sonar.server.source.db.FileSourceDb.DataOrBuilder { 2588 public static final com.google.protobuf.Descriptors.Descriptor 2589 getDescriptor() { 2590 return org.sonar.server.source.db.FileSourceDb.internal_static_org_sonar_server_source_db_Data_descriptor; 2591 } 2592 2593 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 2594 internalGetFieldAccessorTable() { 2595 return org.sonar.server.source.db.FileSourceDb.internal_static_org_sonar_server_source_db_Data_fieldAccessorTable 2596 .ensureFieldAccessorsInitialized( 2597 org.sonar.server.source.db.FileSourceDb.Data.class, org.sonar.server.source.db.FileSourceDb.Data.Builder.class); 2598 } 2599 2600 // Construct using org.sonar.server.source.db.FileSourceDb.Data.newBuilder() 2601 private Builder() { 2602 maybeForceBuilderInitialization(); 2603 } 2604 2605 private Builder( 2606 com.google.protobuf.GeneratedMessage.BuilderParent parent) { 2607 super(parent); 2608 maybeForceBuilderInitialization(); 2609 } 2610 private void maybeForceBuilderInitialization() { 2611 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { 2612 getLinesFieldBuilder(); 2613 } 2614 } 2615 private static Builder create() { 2616 return new Builder(); 2617 } 2618 2619 public Builder clear() { 2620 super.clear(); 2621 if (linesBuilder_ == null) { 2622 lines_ = java.util.Collections.emptyList(); 2623 bitField0_ = (bitField0_ & ~0x00000001); 2624 } else { 2625 linesBuilder_.clear(); 2626 } 2627 return this; 2628 } 2629 2630 public Builder clone() { 2631 return create().mergeFrom(buildPartial()); 2632 } 2633 2634 public com.google.protobuf.Descriptors.Descriptor 2635 getDescriptorForType() { 2636 return org.sonar.server.source.db.FileSourceDb.internal_static_org_sonar_server_source_db_Data_descriptor; 2637 } 2638 2639 public org.sonar.server.source.db.FileSourceDb.Data getDefaultInstanceForType() { 2640 return org.sonar.server.source.db.FileSourceDb.Data.getDefaultInstance(); 2641 } 2642 2643 public org.sonar.server.source.db.FileSourceDb.Data build() { 2644 org.sonar.server.source.db.FileSourceDb.Data result = buildPartial(); 2645 if (!result.isInitialized()) { 2646 throw newUninitializedMessageException(result); 2647 } 2648 return result; 2649 } 2650 2651 public org.sonar.server.source.db.FileSourceDb.Data buildPartial() { 2652 org.sonar.server.source.db.FileSourceDb.Data result = new org.sonar.server.source.db.FileSourceDb.Data(this); 2653 int from_bitField0_ = bitField0_; 2654 if (linesBuilder_ == null) { 2655 if (((bitField0_ & 0x00000001) == 0x00000001)) { 2656 lines_ = java.util.Collections.unmodifiableList(lines_); 2657 bitField0_ = (bitField0_ & ~0x00000001); 2658 } 2659 result.lines_ = lines_; 2660 } else { 2661 result.lines_ = linesBuilder_.build(); 2662 } 2663 onBuilt(); 2664 return result; 2665 } 2666 2667 public Builder mergeFrom(com.google.protobuf.Message other) { 2668 if (other instanceof org.sonar.server.source.db.FileSourceDb.Data) { 2669 return mergeFrom((org.sonar.server.source.db.FileSourceDb.Data)other); 2670 } else { 2671 super.mergeFrom(other); 2672 return this; 2673 } 2674 } 2675 2676 public Builder mergeFrom(org.sonar.server.source.db.FileSourceDb.Data other) { 2677 if (other == org.sonar.server.source.db.FileSourceDb.Data.getDefaultInstance()) return this; 2678 if (linesBuilder_ == null) { 2679 if (!other.lines_.isEmpty()) { 2680 if (lines_.isEmpty()) { 2681 lines_ = other.lines_; 2682 bitField0_ = (bitField0_ & ~0x00000001); 2683 } else { 2684 ensureLinesIsMutable(); 2685 lines_.addAll(other.lines_); 2686 } 2687 onChanged(); 2688 } 2689 } else { 2690 if (!other.lines_.isEmpty()) { 2691 if (linesBuilder_.isEmpty()) { 2692 linesBuilder_.dispose(); 2693 linesBuilder_ = null; 2694 lines_ = other.lines_; 2695 bitField0_ = (bitField0_ & ~0x00000001); 2696 linesBuilder_ = 2697 com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? 2698 getLinesFieldBuilder() : null; 2699 } else { 2700 linesBuilder_.addAllMessages(other.lines_); 2701 } 2702 } 2703 } 2704 this.mergeUnknownFields(other.getUnknownFields()); 2705 return this; 2706 } 2707 2708 public final boolean isInitialized() { 2709 return true; 2710 } 2711 2712 public Builder mergeFrom( 2713 com.google.protobuf.CodedInputStream input, 2714 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2715 throws java.io.IOException { 2716 org.sonar.server.source.db.FileSourceDb.Data parsedMessage = null; 2717 try { 2718 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 2719 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 2720 parsedMessage = (org.sonar.server.source.db.FileSourceDb.Data) e.getUnfinishedMessage(); 2721 throw e; 2722 } finally { 2723 if (parsedMessage != null) { 2724 mergeFrom(parsedMessage); 2725 } 2726 } 2727 return this; 2728 } 2729 private int bitField0_; 2730 2731 // repeated .org.sonar.server.source.db.Line lines = 1; 2732 private java.util.List<org.sonar.server.source.db.FileSourceDb.Line> lines_ = 2733 java.util.Collections.emptyList(); 2734 private void ensureLinesIsMutable() { 2735 if (!((bitField0_ & 0x00000001) == 0x00000001)) { 2736 lines_ = new java.util.ArrayList<org.sonar.server.source.db.FileSourceDb.Line>(lines_); 2737 bitField0_ |= 0x00000001; 2738 } 2739 } 2740 2741 private com.google.protobuf.RepeatedFieldBuilder< 2742 org.sonar.server.source.db.FileSourceDb.Line, org.sonar.server.source.db.FileSourceDb.Line.Builder, org.sonar.server.source.db.FileSourceDb.LineOrBuilder> linesBuilder_; 2743 2744 /** 2745 * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code> 2746 */ 2747 public java.util.List<org.sonar.server.source.db.FileSourceDb.Line> getLinesList() { 2748 if (linesBuilder_ == null) { 2749 return java.util.Collections.unmodifiableList(lines_); 2750 } else { 2751 return linesBuilder_.getMessageList(); 2752 } 2753 } 2754 /** 2755 * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code> 2756 */ 2757 public int getLinesCount() { 2758 if (linesBuilder_ == null) { 2759 return lines_.size(); 2760 } else { 2761 return linesBuilder_.getCount(); 2762 } 2763 } 2764 /** 2765 * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code> 2766 */ 2767 public org.sonar.server.source.db.FileSourceDb.Line getLines(int index) { 2768 if (linesBuilder_ == null) { 2769 return lines_.get(index); 2770 } else { 2771 return linesBuilder_.getMessage(index); 2772 } 2773 } 2774 /** 2775 * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code> 2776 */ 2777 public Builder setLines( 2778 int index, org.sonar.server.source.db.FileSourceDb.Line value) { 2779 if (linesBuilder_ == null) { 2780 if (value == null) { 2781 throw new NullPointerException(); 2782 } 2783 ensureLinesIsMutable(); 2784 lines_.set(index, value); 2785 onChanged(); 2786 } else { 2787 linesBuilder_.setMessage(index, value); 2788 } 2789 return this; 2790 } 2791 /** 2792 * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code> 2793 */ 2794 public Builder setLines( 2795 int index, org.sonar.server.source.db.FileSourceDb.Line.Builder builderForValue) { 2796 if (linesBuilder_ == null) { 2797 ensureLinesIsMutable(); 2798 lines_.set(index, builderForValue.build()); 2799 onChanged(); 2800 } else { 2801 linesBuilder_.setMessage(index, builderForValue.build()); 2802 } 2803 return this; 2804 } 2805 /** 2806 * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code> 2807 */ 2808 public Builder addLines(org.sonar.server.source.db.FileSourceDb.Line value) { 2809 if (linesBuilder_ == null) { 2810 if (value == null) { 2811 throw new NullPointerException(); 2812 } 2813 ensureLinesIsMutable(); 2814 lines_.add(value); 2815 onChanged(); 2816 } else { 2817 linesBuilder_.addMessage(value); 2818 } 2819 return this; 2820 } 2821 /** 2822 * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code> 2823 */ 2824 public Builder addLines( 2825 int index, org.sonar.server.source.db.FileSourceDb.Line value) { 2826 if (linesBuilder_ == null) { 2827 if (value == null) { 2828 throw new NullPointerException(); 2829 } 2830 ensureLinesIsMutable(); 2831 lines_.add(index, value); 2832 onChanged(); 2833 } else { 2834 linesBuilder_.addMessage(index, value); 2835 } 2836 return this; 2837 } 2838 /** 2839 * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code> 2840 */ 2841 public Builder addLines( 2842 org.sonar.server.source.db.FileSourceDb.Line.Builder builderForValue) { 2843 if (linesBuilder_ == null) { 2844 ensureLinesIsMutable(); 2845 lines_.add(builderForValue.build()); 2846 onChanged(); 2847 } else { 2848 linesBuilder_.addMessage(builderForValue.build()); 2849 } 2850 return this; 2851 } 2852 /** 2853 * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code> 2854 */ 2855 public Builder addLines( 2856 int index, org.sonar.server.source.db.FileSourceDb.Line.Builder builderForValue) { 2857 if (linesBuilder_ == null) { 2858 ensureLinesIsMutable(); 2859 lines_.add(index, builderForValue.build()); 2860 onChanged(); 2861 } else { 2862 linesBuilder_.addMessage(index, builderForValue.build()); 2863 } 2864 return this; 2865 } 2866 /** 2867 * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code> 2868 */ 2869 public Builder addAllLines( 2870 java.lang.Iterable<? extends org.sonar.server.source.db.FileSourceDb.Line> values) { 2871 if (linesBuilder_ == null) { 2872 ensureLinesIsMutable(); 2873 super.addAll(values, lines_); 2874 onChanged(); 2875 } else { 2876 linesBuilder_.addAllMessages(values); 2877 } 2878 return this; 2879 } 2880 /** 2881 * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code> 2882 */ 2883 public Builder clearLines() { 2884 if (linesBuilder_ == null) { 2885 lines_ = java.util.Collections.emptyList(); 2886 bitField0_ = (bitField0_ & ~0x00000001); 2887 onChanged(); 2888 } else { 2889 linesBuilder_.clear(); 2890 } 2891 return this; 2892 } 2893 /** 2894 * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code> 2895 */ 2896 public Builder removeLines(int index) { 2897 if (linesBuilder_ == null) { 2898 ensureLinesIsMutable(); 2899 lines_.remove(index); 2900 onChanged(); 2901 } else { 2902 linesBuilder_.remove(index); 2903 } 2904 return this; 2905 } 2906 /** 2907 * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code> 2908 */ 2909 public org.sonar.server.source.db.FileSourceDb.Line.Builder getLinesBuilder( 2910 int index) { 2911 return getLinesFieldBuilder().getBuilder(index); 2912 } 2913 /** 2914 * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code> 2915 */ 2916 public org.sonar.server.source.db.FileSourceDb.LineOrBuilder getLinesOrBuilder( 2917 int index) { 2918 if (linesBuilder_ == null) { 2919 return lines_.get(index); } else { 2920 return linesBuilder_.getMessageOrBuilder(index); 2921 } 2922 } 2923 /** 2924 * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code> 2925 */ 2926 public java.util.List<? extends org.sonar.server.source.db.FileSourceDb.LineOrBuilder> 2927 getLinesOrBuilderList() { 2928 if (linesBuilder_ != null) { 2929 return linesBuilder_.getMessageOrBuilderList(); 2930 } else { 2931 return java.util.Collections.unmodifiableList(lines_); 2932 } 2933 } 2934 /** 2935 * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code> 2936 */ 2937 public org.sonar.server.source.db.FileSourceDb.Line.Builder addLinesBuilder() { 2938 return getLinesFieldBuilder().addBuilder( 2939 org.sonar.server.source.db.FileSourceDb.Line.getDefaultInstance()); 2940 } 2941 /** 2942 * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code> 2943 */ 2944 public org.sonar.server.source.db.FileSourceDb.Line.Builder addLinesBuilder( 2945 int index) { 2946 return getLinesFieldBuilder().addBuilder( 2947 index, org.sonar.server.source.db.FileSourceDb.Line.getDefaultInstance()); 2948 } 2949 /** 2950 * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code> 2951 */ 2952 public java.util.List<org.sonar.server.source.db.FileSourceDb.Line.Builder> 2953 getLinesBuilderList() { 2954 return getLinesFieldBuilder().getBuilderList(); 2955 } 2956 private com.google.protobuf.RepeatedFieldBuilder< 2957 org.sonar.server.source.db.FileSourceDb.Line, org.sonar.server.source.db.FileSourceDb.Line.Builder, org.sonar.server.source.db.FileSourceDb.LineOrBuilder> 2958 getLinesFieldBuilder() { 2959 if (linesBuilder_ == null) { 2960 linesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< 2961 org.sonar.server.source.db.FileSourceDb.Line, org.sonar.server.source.db.FileSourceDb.Line.Builder, org.sonar.server.source.db.FileSourceDb.LineOrBuilder>( 2962 lines_, 2963 ((bitField0_ & 0x00000001) == 0x00000001), 2964 getParentForChildren(), 2965 isClean()); 2966 lines_ = null; 2967 } 2968 return linesBuilder_; 2969 } 2970 2971 // @@protoc_insertion_point(builder_scope:org.sonar.server.source.db.Data) 2972 } 2973 2974 static { 2975 defaultInstance = new Data(true); 2976 defaultInstance.initFields(); 2977 } 2978 2979 // @@protoc_insertion_point(class_scope:org.sonar.server.source.db.Data) 2980 } 2981 2982 private static com.google.protobuf.Descriptors.Descriptor 2983 internal_static_org_sonar_server_source_db_Line_descriptor; 2984 private static 2985 com.google.protobuf.GeneratedMessage.FieldAccessorTable 2986 internal_static_org_sonar_server_source_db_Line_fieldAccessorTable; 2987 private static com.google.protobuf.Descriptors.Descriptor 2988 internal_static_org_sonar_server_source_db_Data_descriptor; 2989 private static 2990 com.google.protobuf.GeneratedMessage.FieldAccessorTable 2991 internal_static_org_sonar_server_source_db_Data_fieldAccessorTable; 2992 2993 public static com.google.protobuf.Descriptors.FileDescriptor 2994 getDescriptor() { 2995 return descriptor; 2996 } 2997 private static com.google.protobuf.Descriptors.FileDescriptor 2998 descriptor; 2999 static { 3000 java.lang.String[] descriptorData = { 3001 "\n\024file_source_db.proto\022\032org.sonar.server" + 3002 ".source.db\"\224\003\n\004Line\022\014\n\004line\030\001 \001(\005\022\016\n\006sou" + 3003 "rce\030\002 \001(\t\022\024\n\014scm_revision\030\003 \001(\t\022\022\n\nscm_a" + 3004 "uthor\030\004 \001(\t\022\020\n\010scm_date\030\005 \001(\003\022\024\n\014ut_line" + 3005 "_hits\030\006 \001(\005\022\025\n\rut_conditions\030\007 \001(\005\022\035\n\025ut" + 3006 "_covered_conditions\030\010 \001(\005\022\024\n\014it_line_hit" + 3007 "s\030\t \001(\005\022\025\n\rit_conditions\030\n \001(\005\022\035\n\025it_cov" + 3008 "ered_conditions\030\013 \001(\005\022\031\n\021overall_line_hi" + 3009 "ts\030\014 \001(\005\022\032\n\022overall_conditions\030\r \001(\005\022\"\n\032" + 3010 "overall_covered_conditions\030\016 \001(\005\022\024\n\014high", 3011 "lighting\030\017 \001(\t\022\017\n\007symbols\030\020 \001(\t\022\030\n\014dupli" + 3012 "cations\030\021 \003(\005B\002\020\001\"7\n\004Data\022/\n\005lines\030\001 \003(\013" + 3013 "2 .org.sonar.server.source.db.LineB\002H\001" 3014 }; 3015 com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = 3016 new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { 3017 public com.google.protobuf.ExtensionRegistry assignDescriptors( 3018 com.google.protobuf.Descriptors.FileDescriptor root) { 3019 descriptor = root; 3020 internal_static_org_sonar_server_source_db_Line_descriptor = 3021 getDescriptor().getMessageTypes().get(0); 3022 internal_static_org_sonar_server_source_db_Line_fieldAccessorTable = new 3023 com.google.protobuf.GeneratedMessage.FieldAccessorTable( 3024 internal_static_org_sonar_server_source_db_Line_descriptor, 3025 new java.lang.String[] { "Line", "Source", "ScmRevision", "ScmAuthor", "ScmDate", "UtLineHits", "UtConditions", "UtCoveredConditions", "ItLineHits", "ItConditions", "ItCoveredConditions", "OverallLineHits", "OverallConditions", "OverallCoveredConditions", "Highlighting", "Symbols", "Duplications", }); 3026 internal_static_org_sonar_server_source_db_Data_descriptor = 3027 getDescriptor().getMessageTypes().get(1); 3028 internal_static_org_sonar_server_source_db_Data_fieldAccessorTable = new 3029 com.google.protobuf.GeneratedMessage.FieldAccessorTable( 3030 internal_static_org_sonar_server_source_db_Data_descriptor, 3031 new java.lang.String[] { "Lines", }); 3032 return null; 3033 } 3034 }; 3035 com.google.protobuf.Descriptors.FileDescriptor 3036 .internalBuildGeneratedFileFrom(descriptorData, 3037 new com.google.protobuf.Descriptors.FileDescriptor[] { 3038 }, assigner); 3039 } 3040 3041 // @@protoc_insertion_point(outer_class_scope) 3042}