001// Generated by the protocol buffer compiler. DO NOT EDIT! 002// source: batch_report.proto 003 004package org.sonar.batch.protocol.output; 005 006public final class BatchReport { 007 private BatchReport() {} 008 public static void registerAllExtensions( 009 com.google.protobuf.ExtensionRegistry registry) { 010 } 011 public interface MetadataOrBuilder 012 extends com.google.protobuf.MessageOrBuilder { 013 014 // optional int64 analysis_date = 1; 015 /** 016 * <code>optional int64 analysis_date = 1;</code> 017 */ 018 boolean hasAnalysisDate(); 019 /** 020 * <code>optional int64 analysis_date = 1;</code> 021 */ 022 long getAnalysisDate(); 023 024 // optional string project_key = 2; 025 /** 026 * <code>optional string project_key = 2;</code> 027 */ 028 boolean hasProjectKey(); 029 /** 030 * <code>optional string project_key = 2;</code> 031 */ 032 java.lang.String getProjectKey(); 033 /** 034 * <code>optional string project_key = 2;</code> 035 */ 036 com.google.protobuf.ByteString 037 getProjectKeyBytes(); 038 039 // optional int32 root_component_ref = 3; 040 /** 041 * <code>optional int32 root_component_ref = 3;</code> 042 */ 043 boolean hasRootComponentRef(); 044 /** 045 * <code>optional int32 root_component_ref = 3;</code> 046 */ 047 int getRootComponentRef(); 048 049 // optional int64 snapshot_id = 4; 050 /** 051 * <code>optional int64 snapshot_id = 4;</code> 052 * 053 * <pre> 054 * temporary fields used during development of computation stack 055 * </pre> 056 */ 057 boolean hasSnapshotId(); 058 /** 059 * <code>optional int64 snapshot_id = 4;</code> 060 * 061 * <pre> 062 * temporary fields used during development of computation stack 063 * </pre> 064 */ 065 long getSnapshotId(); 066 067 // optional int32 deleted_components_count = 5; 068 /** 069 * <code>optional int32 deleted_components_count = 5;</code> 070 */ 071 boolean hasDeletedComponentsCount(); 072 /** 073 * <code>optional int32 deleted_components_count = 5;</code> 074 */ 075 int getDeletedComponentsCount(); 076 } 077 /** 078 * Protobuf type {@code Metadata} 079 */ 080 public static final class Metadata extends 081 com.google.protobuf.GeneratedMessage 082 implements MetadataOrBuilder { 083 // Use Metadata.newBuilder() to construct. 084 private Metadata(com.google.protobuf.GeneratedMessage.Builder<?> builder) { 085 super(builder); 086 this.unknownFields = builder.getUnknownFields(); 087 } 088 private Metadata(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } 089 090 private static final Metadata defaultInstance; 091 public static Metadata getDefaultInstance() { 092 return defaultInstance; 093 } 094 095 public Metadata getDefaultInstanceForType() { 096 return defaultInstance; 097 } 098 099 private final com.google.protobuf.UnknownFieldSet unknownFields; 100 @java.lang.Override 101 public final com.google.protobuf.UnknownFieldSet 102 getUnknownFields() { 103 return this.unknownFields; 104 } 105 private Metadata( 106 com.google.protobuf.CodedInputStream input, 107 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 108 throws com.google.protobuf.InvalidProtocolBufferException { 109 initFields(); 110 int mutable_bitField0_ = 0; 111 com.google.protobuf.UnknownFieldSet.Builder unknownFields = 112 com.google.protobuf.UnknownFieldSet.newBuilder(); 113 try { 114 boolean done = false; 115 while (!done) { 116 int tag = input.readTag(); 117 switch (tag) { 118 case 0: 119 done = true; 120 break; 121 default: { 122 if (!parseUnknownField(input, unknownFields, 123 extensionRegistry, tag)) { 124 done = true; 125 } 126 break; 127 } 128 case 8: { 129 bitField0_ |= 0x00000001; 130 analysisDate_ = input.readInt64(); 131 break; 132 } 133 case 18: { 134 bitField0_ |= 0x00000002; 135 projectKey_ = input.readBytes(); 136 break; 137 } 138 case 24: { 139 bitField0_ |= 0x00000004; 140 rootComponentRef_ = input.readInt32(); 141 break; 142 } 143 case 32: { 144 bitField0_ |= 0x00000008; 145 snapshotId_ = input.readInt64(); 146 break; 147 } 148 case 40: { 149 bitField0_ |= 0x00000010; 150 deletedComponentsCount_ = input.readInt32(); 151 break; 152 } 153 } 154 } 155 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 156 throw e.setUnfinishedMessage(this); 157 } catch (java.io.IOException e) { 158 throw new com.google.protobuf.InvalidProtocolBufferException( 159 e.getMessage()).setUnfinishedMessage(this); 160 } finally { 161 this.unknownFields = unknownFields.build(); 162 makeExtensionsImmutable(); 163 } 164 } 165 public static final com.google.protobuf.Descriptors.Descriptor 166 getDescriptor() { 167 return org.sonar.batch.protocol.output.BatchReport.internal_static_Metadata_descriptor; 168 } 169 170 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 171 internalGetFieldAccessorTable() { 172 return org.sonar.batch.protocol.output.BatchReport.internal_static_Metadata_fieldAccessorTable 173 .ensureFieldAccessorsInitialized( 174 org.sonar.batch.protocol.output.BatchReport.Metadata.class, org.sonar.batch.protocol.output.BatchReport.Metadata.Builder.class); 175 } 176 177 public static com.google.protobuf.Parser<Metadata> PARSER = 178 new com.google.protobuf.AbstractParser<Metadata>() { 179 public Metadata parsePartialFrom( 180 com.google.protobuf.CodedInputStream input, 181 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 182 throws com.google.protobuf.InvalidProtocolBufferException { 183 return new Metadata(input, extensionRegistry); 184 } 185 }; 186 187 @java.lang.Override 188 public com.google.protobuf.Parser<Metadata> getParserForType() { 189 return PARSER; 190 } 191 192 private int bitField0_; 193 // optional int64 analysis_date = 1; 194 public static final int ANALYSIS_DATE_FIELD_NUMBER = 1; 195 private long analysisDate_; 196 /** 197 * <code>optional int64 analysis_date = 1;</code> 198 */ 199 public boolean hasAnalysisDate() { 200 return ((bitField0_ & 0x00000001) == 0x00000001); 201 } 202 /** 203 * <code>optional int64 analysis_date = 1;</code> 204 */ 205 public long getAnalysisDate() { 206 return analysisDate_; 207 } 208 209 // optional string project_key = 2; 210 public static final int PROJECT_KEY_FIELD_NUMBER = 2; 211 private java.lang.Object projectKey_; 212 /** 213 * <code>optional string project_key = 2;</code> 214 */ 215 public boolean hasProjectKey() { 216 return ((bitField0_ & 0x00000002) == 0x00000002); 217 } 218 /** 219 * <code>optional string project_key = 2;</code> 220 */ 221 public java.lang.String getProjectKey() { 222 java.lang.Object ref = projectKey_; 223 if (ref instanceof java.lang.String) { 224 return (java.lang.String) ref; 225 } else { 226 com.google.protobuf.ByteString bs = 227 (com.google.protobuf.ByteString) ref; 228 java.lang.String s = bs.toStringUtf8(); 229 if (bs.isValidUtf8()) { 230 projectKey_ = s; 231 } 232 return s; 233 } 234 } 235 /** 236 * <code>optional string project_key = 2;</code> 237 */ 238 public com.google.protobuf.ByteString 239 getProjectKeyBytes() { 240 java.lang.Object ref = projectKey_; 241 if (ref instanceof java.lang.String) { 242 com.google.protobuf.ByteString b = 243 com.google.protobuf.ByteString.copyFromUtf8( 244 (java.lang.String) ref); 245 projectKey_ = b; 246 return b; 247 } else { 248 return (com.google.protobuf.ByteString) ref; 249 } 250 } 251 252 // optional int32 root_component_ref = 3; 253 public static final int ROOT_COMPONENT_REF_FIELD_NUMBER = 3; 254 private int rootComponentRef_; 255 /** 256 * <code>optional int32 root_component_ref = 3;</code> 257 */ 258 public boolean hasRootComponentRef() { 259 return ((bitField0_ & 0x00000004) == 0x00000004); 260 } 261 /** 262 * <code>optional int32 root_component_ref = 3;</code> 263 */ 264 public int getRootComponentRef() { 265 return rootComponentRef_; 266 } 267 268 // optional int64 snapshot_id = 4; 269 public static final int SNAPSHOT_ID_FIELD_NUMBER = 4; 270 private long snapshotId_; 271 /** 272 * <code>optional int64 snapshot_id = 4;</code> 273 * 274 * <pre> 275 * temporary fields used during development of computation stack 276 * </pre> 277 */ 278 public boolean hasSnapshotId() { 279 return ((bitField0_ & 0x00000008) == 0x00000008); 280 } 281 /** 282 * <code>optional int64 snapshot_id = 4;</code> 283 * 284 * <pre> 285 * temporary fields used during development of computation stack 286 * </pre> 287 */ 288 public long getSnapshotId() { 289 return snapshotId_; 290 } 291 292 // optional int32 deleted_components_count = 5; 293 public static final int DELETED_COMPONENTS_COUNT_FIELD_NUMBER = 5; 294 private int deletedComponentsCount_; 295 /** 296 * <code>optional int32 deleted_components_count = 5;</code> 297 */ 298 public boolean hasDeletedComponentsCount() { 299 return ((bitField0_ & 0x00000010) == 0x00000010); 300 } 301 /** 302 * <code>optional int32 deleted_components_count = 5;</code> 303 */ 304 public int getDeletedComponentsCount() { 305 return deletedComponentsCount_; 306 } 307 308 private void initFields() { 309 analysisDate_ = 0L; 310 projectKey_ = ""; 311 rootComponentRef_ = 0; 312 snapshotId_ = 0L; 313 deletedComponentsCount_ = 0; 314 } 315 private byte memoizedIsInitialized = -1; 316 public final boolean isInitialized() { 317 byte isInitialized = memoizedIsInitialized; 318 if (isInitialized != -1) return isInitialized == 1; 319 320 memoizedIsInitialized = 1; 321 return true; 322 } 323 324 public void writeTo(com.google.protobuf.CodedOutputStream output) 325 throws java.io.IOException { 326 getSerializedSize(); 327 if (((bitField0_ & 0x00000001) == 0x00000001)) { 328 output.writeInt64(1, analysisDate_); 329 } 330 if (((bitField0_ & 0x00000002) == 0x00000002)) { 331 output.writeBytes(2, getProjectKeyBytes()); 332 } 333 if (((bitField0_ & 0x00000004) == 0x00000004)) { 334 output.writeInt32(3, rootComponentRef_); 335 } 336 if (((bitField0_ & 0x00000008) == 0x00000008)) { 337 output.writeInt64(4, snapshotId_); 338 } 339 if (((bitField0_ & 0x00000010) == 0x00000010)) { 340 output.writeInt32(5, deletedComponentsCount_); 341 } 342 getUnknownFields().writeTo(output); 343 } 344 345 private int memoizedSerializedSize = -1; 346 public int getSerializedSize() { 347 int size = memoizedSerializedSize; 348 if (size != -1) return size; 349 350 size = 0; 351 if (((bitField0_ & 0x00000001) == 0x00000001)) { 352 size += com.google.protobuf.CodedOutputStream 353 .computeInt64Size(1, analysisDate_); 354 } 355 if (((bitField0_ & 0x00000002) == 0x00000002)) { 356 size += com.google.protobuf.CodedOutputStream 357 .computeBytesSize(2, getProjectKeyBytes()); 358 } 359 if (((bitField0_ & 0x00000004) == 0x00000004)) { 360 size += com.google.protobuf.CodedOutputStream 361 .computeInt32Size(3, rootComponentRef_); 362 } 363 if (((bitField0_ & 0x00000008) == 0x00000008)) { 364 size += com.google.protobuf.CodedOutputStream 365 .computeInt64Size(4, snapshotId_); 366 } 367 if (((bitField0_ & 0x00000010) == 0x00000010)) { 368 size += com.google.protobuf.CodedOutputStream 369 .computeInt32Size(5, deletedComponentsCount_); 370 } 371 size += getUnknownFields().getSerializedSize(); 372 memoizedSerializedSize = size; 373 return size; 374 } 375 376 private static final long serialVersionUID = 0L; 377 @java.lang.Override 378 protected java.lang.Object writeReplace() 379 throws java.io.ObjectStreamException { 380 return super.writeReplace(); 381 } 382 383 public static org.sonar.batch.protocol.output.BatchReport.Metadata parseFrom( 384 com.google.protobuf.ByteString data) 385 throws com.google.protobuf.InvalidProtocolBufferException { 386 return PARSER.parseFrom(data); 387 } 388 public static org.sonar.batch.protocol.output.BatchReport.Metadata parseFrom( 389 com.google.protobuf.ByteString data, 390 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 391 throws com.google.protobuf.InvalidProtocolBufferException { 392 return PARSER.parseFrom(data, extensionRegistry); 393 } 394 public static org.sonar.batch.protocol.output.BatchReport.Metadata parseFrom(byte[] data) 395 throws com.google.protobuf.InvalidProtocolBufferException { 396 return PARSER.parseFrom(data); 397 } 398 public static org.sonar.batch.protocol.output.BatchReport.Metadata parseFrom( 399 byte[] data, 400 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 401 throws com.google.protobuf.InvalidProtocolBufferException { 402 return PARSER.parseFrom(data, extensionRegistry); 403 } 404 public static org.sonar.batch.protocol.output.BatchReport.Metadata parseFrom(java.io.InputStream input) 405 throws java.io.IOException { 406 return PARSER.parseFrom(input); 407 } 408 public static org.sonar.batch.protocol.output.BatchReport.Metadata parseFrom( 409 java.io.InputStream input, 410 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 411 throws java.io.IOException { 412 return PARSER.parseFrom(input, extensionRegistry); 413 } 414 public static org.sonar.batch.protocol.output.BatchReport.Metadata parseDelimitedFrom(java.io.InputStream input) 415 throws java.io.IOException { 416 return PARSER.parseDelimitedFrom(input); 417 } 418 public static org.sonar.batch.protocol.output.BatchReport.Metadata parseDelimitedFrom( 419 java.io.InputStream input, 420 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 421 throws java.io.IOException { 422 return PARSER.parseDelimitedFrom(input, extensionRegistry); 423 } 424 public static org.sonar.batch.protocol.output.BatchReport.Metadata parseFrom( 425 com.google.protobuf.CodedInputStream input) 426 throws java.io.IOException { 427 return PARSER.parseFrom(input); 428 } 429 public static org.sonar.batch.protocol.output.BatchReport.Metadata parseFrom( 430 com.google.protobuf.CodedInputStream input, 431 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 432 throws java.io.IOException { 433 return PARSER.parseFrom(input, extensionRegistry); 434 } 435 436 public static Builder newBuilder() { return Builder.create(); } 437 public Builder newBuilderForType() { return newBuilder(); } 438 public static Builder newBuilder(org.sonar.batch.protocol.output.BatchReport.Metadata prototype) { 439 return newBuilder().mergeFrom(prototype); 440 } 441 public Builder toBuilder() { return newBuilder(this); } 442 443 @java.lang.Override 444 protected Builder newBuilderForType( 445 com.google.protobuf.GeneratedMessage.BuilderParent parent) { 446 Builder builder = new Builder(parent); 447 return builder; 448 } 449 /** 450 * Protobuf type {@code Metadata} 451 */ 452 public static final class Builder extends 453 com.google.protobuf.GeneratedMessage.Builder<Builder> 454 implements org.sonar.batch.protocol.output.BatchReport.MetadataOrBuilder { 455 public static final com.google.protobuf.Descriptors.Descriptor 456 getDescriptor() { 457 return org.sonar.batch.protocol.output.BatchReport.internal_static_Metadata_descriptor; 458 } 459 460 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 461 internalGetFieldAccessorTable() { 462 return org.sonar.batch.protocol.output.BatchReport.internal_static_Metadata_fieldAccessorTable 463 .ensureFieldAccessorsInitialized( 464 org.sonar.batch.protocol.output.BatchReport.Metadata.class, org.sonar.batch.protocol.output.BatchReport.Metadata.Builder.class); 465 } 466 467 // Construct using org.sonar.batch.protocol.output.BatchReport.Metadata.newBuilder() 468 private Builder() { 469 maybeForceBuilderInitialization(); 470 } 471 472 private Builder( 473 com.google.protobuf.GeneratedMessage.BuilderParent parent) { 474 super(parent); 475 maybeForceBuilderInitialization(); 476 } 477 private void maybeForceBuilderInitialization() { 478 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { 479 } 480 } 481 private static Builder create() { 482 return new Builder(); 483 } 484 485 public Builder clear() { 486 super.clear(); 487 analysisDate_ = 0L; 488 bitField0_ = (bitField0_ & ~0x00000001); 489 projectKey_ = ""; 490 bitField0_ = (bitField0_ & ~0x00000002); 491 rootComponentRef_ = 0; 492 bitField0_ = (bitField0_ & ~0x00000004); 493 snapshotId_ = 0L; 494 bitField0_ = (bitField0_ & ~0x00000008); 495 deletedComponentsCount_ = 0; 496 bitField0_ = (bitField0_ & ~0x00000010); 497 return this; 498 } 499 500 public Builder clone() { 501 return create().mergeFrom(buildPartial()); 502 } 503 504 public com.google.protobuf.Descriptors.Descriptor 505 getDescriptorForType() { 506 return org.sonar.batch.protocol.output.BatchReport.internal_static_Metadata_descriptor; 507 } 508 509 public org.sonar.batch.protocol.output.BatchReport.Metadata getDefaultInstanceForType() { 510 return org.sonar.batch.protocol.output.BatchReport.Metadata.getDefaultInstance(); 511 } 512 513 public org.sonar.batch.protocol.output.BatchReport.Metadata build() { 514 org.sonar.batch.protocol.output.BatchReport.Metadata result = buildPartial(); 515 if (!result.isInitialized()) { 516 throw newUninitializedMessageException(result); 517 } 518 return result; 519 } 520 521 public org.sonar.batch.protocol.output.BatchReport.Metadata buildPartial() { 522 org.sonar.batch.protocol.output.BatchReport.Metadata result = new org.sonar.batch.protocol.output.BatchReport.Metadata(this); 523 int from_bitField0_ = bitField0_; 524 int to_bitField0_ = 0; 525 if (((from_bitField0_ & 0x00000001) == 0x00000001)) { 526 to_bitField0_ |= 0x00000001; 527 } 528 result.analysisDate_ = analysisDate_; 529 if (((from_bitField0_ & 0x00000002) == 0x00000002)) { 530 to_bitField0_ |= 0x00000002; 531 } 532 result.projectKey_ = projectKey_; 533 if (((from_bitField0_ & 0x00000004) == 0x00000004)) { 534 to_bitField0_ |= 0x00000004; 535 } 536 result.rootComponentRef_ = rootComponentRef_; 537 if (((from_bitField0_ & 0x00000008) == 0x00000008)) { 538 to_bitField0_ |= 0x00000008; 539 } 540 result.snapshotId_ = snapshotId_; 541 if (((from_bitField0_ & 0x00000010) == 0x00000010)) { 542 to_bitField0_ |= 0x00000010; 543 } 544 result.deletedComponentsCount_ = deletedComponentsCount_; 545 result.bitField0_ = to_bitField0_; 546 onBuilt(); 547 return result; 548 } 549 550 public Builder mergeFrom(com.google.protobuf.Message other) { 551 if (other instanceof org.sonar.batch.protocol.output.BatchReport.Metadata) { 552 return mergeFrom((org.sonar.batch.protocol.output.BatchReport.Metadata)other); 553 } else { 554 super.mergeFrom(other); 555 return this; 556 } 557 } 558 559 public Builder mergeFrom(org.sonar.batch.protocol.output.BatchReport.Metadata other) { 560 if (other == org.sonar.batch.protocol.output.BatchReport.Metadata.getDefaultInstance()) return this; 561 if (other.hasAnalysisDate()) { 562 setAnalysisDate(other.getAnalysisDate()); 563 } 564 if (other.hasProjectKey()) { 565 bitField0_ |= 0x00000002; 566 projectKey_ = other.projectKey_; 567 onChanged(); 568 } 569 if (other.hasRootComponentRef()) { 570 setRootComponentRef(other.getRootComponentRef()); 571 } 572 if (other.hasSnapshotId()) { 573 setSnapshotId(other.getSnapshotId()); 574 } 575 if (other.hasDeletedComponentsCount()) { 576 setDeletedComponentsCount(other.getDeletedComponentsCount()); 577 } 578 this.mergeUnknownFields(other.getUnknownFields()); 579 return this; 580 } 581 582 public final boolean isInitialized() { 583 return true; 584 } 585 586 public Builder mergeFrom( 587 com.google.protobuf.CodedInputStream input, 588 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 589 throws java.io.IOException { 590 org.sonar.batch.protocol.output.BatchReport.Metadata parsedMessage = null; 591 try { 592 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 593 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 594 parsedMessage = (org.sonar.batch.protocol.output.BatchReport.Metadata) e.getUnfinishedMessage(); 595 throw e; 596 } finally { 597 if (parsedMessage != null) { 598 mergeFrom(parsedMessage); 599 } 600 } 601 return this; 602 } 603 private int bitField0_; 604 605 // optional int64 analysis_date = 1; 606 private long analysisDate_ ; 607 /** 608 * <code>optional int64 analysis_date = 1;</code> 609 */ 610 public boolean hasAnalysisDate() { 611 return ((bitField0_ & 0x00000001) == 0x00000001); 612 } 613 /** 614 * <code>optional int64 analysis_date = 1;</code> 615 */ 616 public long getAnalysisDate() { 617 return analysisDate_; 618 } 619 /** 620 * <code>optional int64 analysis_date = 1;</code> 621 */ 622 public Builder setAnalysisDate(long value) { 623 bitField0_ |= 0x00000001; 624 analysisDate_ = value; 625 onChanged(); 626 return this; 627 } 628 /** 629 * <code>optional int64 analysis_date = 1;</code> 630 */ 631 public Builder clearAnalysisDate() { 632 bitField0_ = (bitField0_ & ~0x00000001); 633 analysisDate_ = 0L; 634 onChanged(); 635 return this; 636 } 637 638 // optional string project_key = 2; 639 private java.lang.Object projectKey_ = ""; 640 /** 641 * <code>optional string project_key = 2;</code> 642 */ 643 public boolean hasProjectKey() { 644 return ((bitField0_ & 0x00000002) == 0x00000002); 645 } 646 /** 647 * <code>optional string project_key = 2;</code> 648 */ 649 public java.lang.String getProjectKey() { 650 java.lang.Object ref = projectKey_; 651 if (!(ref instanceof java.lang.String)) { 652 java.lang.String s = ((com.google.protobuf.ByteString) ref) 653 .toStringUtf8(); 654 projectKey_ = s; 655 return s; 656 } else { 657 return (java.lang.String) ref; 658 } 659 } 660 /** 661 * <code>optional string project_key = 2;</code> 662 */ 663 public com.google.protobuf.ByteString 664 getProjectKeyBytes() { 665 java.lang.Object ref = projectKey_; 666 if (ref instanceof String) { 667 com.google.protobuf.ByteString b = 668 com.google.protobuf.ByteString.copyFromUtf8( 669 (java.lang.String) ref); 670 projectKey_ = b; 671 return b; 672 } else { 673 return (com.google.protobuf.ByteString) ref; 674 } 675 } 676 /** 677 * <code>optional string project_key = 2;</code> 678 */ 679 public Builder setProjectKey( 680 java.lang.String value) { 681 if (value == null) { 682 throw new NullPointerException(); 683 } 684 bitField0_ |= 0x00000002; 685 projectKey_ = value; 686 onChanged(); 687 return this; 688 } 689 /** 690 * <code>optional string project_key = 2;</code> 691 */ 692 public Builder clearProjectKey() { 693 bitField0_ = (bitField0_ & ~0x00000002); 694 projectKey_ = getDefaultInstance().getProjectKey(); 695 onChanged(); 696 return this; 697 } 698 /** 699 * <code>optional string project_key = 2;</code> 700 */ 701 public Builder setProjectKeyBytes( 702 com.google.protobuf.ByteString value) { 703 if (value == null) { 704 throw new NullPointerException(); 705 } 706 bitField0_ |= 0x00000002; 707 projectKey_ = value; 708 onChanged(); 709 return this; 710 } 711 712 // optional int32 root_component_ref = 3; 713 private int rootComponentRef_ ; 714 /** 715 * <code>optional int32 root_component_ref = 3;</code> 716 */ 717 public boolean hasRootComponentRef() { 718 return ((bitField0_ & 0x00000004) == 0x00000004); 719 } 720 /** 721 * <code>optional int32 root_component_ref = 3;</code> 722 */ 723 public int getRootComponentRef() { 724 return rootComponentRef_; 725 } 726 /** 727 * <code>optional int32 root_component_ref = 3;</code> 728 */ 729 public Builder setRootComponentRef(int value) { 730 bitField0_ |= 0x00000004; 731 rootComponentRef_ = value; 732 onChanged(); 733 return this; 734 } 735 /** 736 * <code>optional int32 root_component_ref = 3;</code> 737 */ 738 public Builder clearRootComponentRef() { 739 bitField0_ = (bitField0_ & ~0x00000004); 740 rootComponentRef_ = 0; 741 onChanged(); 742 return this; 743 } 744 745 // optional int64 snapshot_id = 4; 746 private long snapshotId_ ; 747 /** 748 * <code>optional int64 snapshot_id = 4;</code> 749 * 750 * <pre> 751 * temporary fields used during development of computation stack 752 * </pre> 753 */ 754 public boolean hasSnapshotId() { 755 return ((bitField0_ & 0x00000008) == 0x00000008); 756 } 757 /** 758 * <code>optional int64 snapshot_id = 4;</code> 759 * 760 * <pre> 761 * temporary fields used during development of computation stack 762 * </pre> 763 */ 764 public long getSnapshotId() { 765 return snapshotId_; 766 } 767 /** 768 * <code>optional int64 snapshot_id = 4;</code> 769 * 770 * <pre> 771 * temporary fields used during development of computation stack 772 * </pre> 773 */ 774 public Builder setSnapshotId(long value) { 775 bitField0_ |= 0x00000008; 776 snapshotId_ = value; 777 onChanged(); 778 return this; 779 } 780 /** 781 * <code>optional int64 snapshot_id = 4;</code> 782 * 783 * <pre> 784 * temporary fields used during development of computation stack 785 * </pre> 786 */ 787 public Builder clearSnapshotId() { 788 bitField0_ = (bitField0_ & ~0x00000008); 789 snapshotId_ = 0L; 790 onChanged(); 791 return this; 792 } 793 794 // optional int32 deleted_components_count = 5; 795 private int deletedComponentsCount_ ; 796 /** 797 * <code>optional int32 deleted_components_count = 5;</code> 798 */ 799 public boolean hasDeletedComponentsCount() { 800 return ((bitField0_ & 0x00000010) == 0x00000010); 801 } 802 /** 803 * <code>optional int32 deleted_components_count = 5;</code> 804 */ 805 public int getDeletedComponentsCount() { 806 return deletedComponentsCount_; 807 } 808 /** 809 * <code>optional int32 deleted_components_count = 5;</code> 810 */ 811 public Builder setDeletedComponentsCount(int value) { 812 bitField0_ |= 0x00000010; 813 deletedComponentsCount_ = value; 814 onChanged(); 815 return this; 816 } 817 /** 818 * <code>optional int32 deleted_components_count = 5;</code> 819 */ 820 public Builder clearDeletedComponentsCount() { 821 bitField0_ = (bitField0_ & ~0x00000010); 822 deletedComponentsCount_ = 0; 823 onChanged(); 824 return this; 825 } 826 827 // @@protoc_insertion_point(builder_scope:Metadata) 828 } 829 830 static { 831 defaultInstance = new Metadata(true); 832 defaultInstance.initFields(); 833 } 834 835 // @@protoc_insertion_point(class_scope:Metadata) 836 } 837 838 public interface ComponentOrBuilder 839 extends com.google.protobuf.MessageOrBuilder { 840 841 // optional int32 ref = 1; 842 /** 843 * <code>optional int32 ref = 1;</code> 844 */ 845 boolean hasRef(); 846 /** 847 * <code>optional int32 ref = 1;</code> 848 */ 849 int getRef(); 850 851 // optional string path = 2; 852 /** 853 * <code>optional string path = 2;</code> 854 */ 855 boolean hasPath(); 856 /** 857 * <code>optional string path = 2;</code> 858 */ 859 java.lang.String getPath(); 860 /** 861 * <code>optional string path = 2;</code> 862 */ 863 com.google.protobuf.ByteString 864 getPathBytes(); 865 866 // optional string name = 3; 867 /** 868 * <code>optional string name = 3;</code> 869 */ 870 boolean hasName(); 871 /** 872 * <code>optional string name = 3;</code> 873 */ 874 java.lang.String getName(); 875 /** 876 * <code>optional string name = 3;</code> 877 */ 878 com.google.protobuf.ByteString 879 getNameBytes(); 880 881 // optional .ComponentType type = 4; 882 /** 883 * <code>optional .ComponentType type = 4;</code> 884 */ 885 boolean hasType(); 886 /** 887 * <code>optional .ComponentType type = 4;</code> 888 */ 889 org.sonar.batch.protocol.Constants.ComponentType getType(); 890 891 // optional bool is_test = 5; 892 /** 893 * <code>optional bool is_test = 5;</code> 894 */ 895 boolean hasIsTest(); 896 /** 897 * <code>optional bool is_test = 5;</code> 898 */ 899 boolean getIsTest(); 900 901 // optional string language = 6; 902 /** 903 * <code>optional string language = 6;</code> 904 */ 905 boolean hasLanguage(); 906 /** 907 * <code>optional string language = 6;</code> 908 */ 909 java.lang.String getLanguage(); 910 /** 911 * <code>optional string language = 6;</code> 912 */ 913 com.google.protobuf.ByteString 914 getLanguageBytes(); 915 916 // repeated int32 child_refs = 7 [packed = true]; 917 /** 918 * <code>repeated int32 child_refs = 7 [packed = true];</code> 919 */ 920 java.util.List<java.lang.Integer> getChildRefsList(); 921 /** 922 * <code>repeated int32 child_refs = 7 [packed = true];</code> 923 */ 924 int getChildRefsCount(); 925 /** 926 * <code>repeated int32 child_refs = 7 [packed = true];</code> 927 */ 928 int getChildRefs(int index); 929 930 // optional int32 snapshot_id = 8; 931 /** 932 * <code>optional int32 snapshot_id = 8;</code> 933 * 934 * <pre> 935 * temporary fields during development of computation stack 936 * </pre> 937 */ 938 boolean hasSnapshotId(); 939 /** 940 * <code>optional int32 snapshot_id = 8;</code> 941 * 942 * <pre> 943 * temporary fields during development of computation stack 944 * </pre> 945 */ 946 int getSnapshotId(); 947 948 // optional string uuid = 9; 949 /** 950 * <code>optional string uuid = 9;</code> 951 */ 952 boolean hasUuid(); 953 /** 954 * <code>optional string uuid = 9;</code> 955 */ 956 java.lang.String getUuid(); 957 /** 958 * <code>optional string uuid = 9;</code> 959 */ 960 com.google.protobuf.ByteString 961 getUuidBytes(); 962 } 963 /** 964 * Protobuf type {@code Component} 965 */ 966 public static final class Component extends 967 com.google.protobuf.GeneratedMessage 968 implements ComponentOrBuilder { 969 // Use Component.newBuilder() to construct. 970 private Component(com.google.protobuf.GeneratedMessage.Builder<?> builder) { 971 super(builder); 972 this.unknownFields = builder.getUnknownFields(); 973 } 974 private Component(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } 975 976 private static final Component defaultInstance; 977 public static Component getDefaultInstance() { 978 return defaultInstance; 979 } 980 981 public Component getDefaultInstanceForType() { 982 return defaultInstance; 983 } 984 985 private final com.google.protobuf.UnknownFieldSet unknownFields; 986 @java.lang.Override 987 public final com.google.protobuf.UnknownFieldSet 988 getUnknownFields() { 989 return this.unknownFields; 990 } 991 private Component( 992 com.google.protobuf.CodedInputStream input, 993 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 994 throws com.google.protobuf.InvalidProtocolBufferException { 995 initFields(); 996 int mutable_bitField0_ = 0; 997 com.google.protobuf.UnknownFieldSet.Builder unknownFields = 998 com.google.protobuf.UnknownFieldSet.newBuilder(); 999 try { 1000 boolean done = false; 1001 while (!done) { 1002 int tag = input.readTag(); 1003 switch (tag) { 1004 case 0: 1005 done = true; 1006 break; 1007 default: { 1008 if (!parseUnknownField(input, unknownFields, 1009 extensionRegistry, tag)) { 1010 done = true; 1011 } 1012 break; 1013 } 1014 case 8: { 1015 bitField0_ |= 0x00000001; 1016 ref_ = input.readInt32(); 1017 break; 1018 } 1019 case 18: { 1020 bitField0_ |= 0x00000002; 1021 path_ = input.readBytes(); 1022 break; 1023 } 1024 case 26: { 1025 bitField0_ |= 0x00000004; 1026 name_ = input.readBytes(); 1027 break; 1028 } 1029 case 32: { 1030 int rawValue = input.readEnum(); 1031 org.sonar.batch.protocol.Constants.ComponentType value = org.sonar.batch.protocol.Constants.ComponentType.valueOf(rawValue); 1032 if (value == null) { 1033 unknownFields.mergeVarintField(4, rawValue); 1034 } else { 1035 bitField0_ |= 0x00000008; 1036 type_ = value; 1037 } 1038 break; 1039 } 1040 case 40: { 1041 bitField0_ |= 0x00000010; 1042 isTest_ = input.readBool(); 1043 break; 1044 } 1045 case 50: { 1046 bitField0_ |= 0x00000020; 1047 language_ = input.readBytes(); 1048 break; 1049 } 1050 case 56: { 1051 if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { 1052 childRefs_ = new java.util.ArrayList<java.lang.Integer>(); 1053 mutable_bitField0_ |= 0x00000040; 1054 } 1055 childRefs_.add(input.readInt32()); 1056 break; 1057 } 1058 case 58: { 1059 int length = input.readRawVarint32(); 1060 int limit = input.pushLimit(length); 1061 if (!((mutable_bitField0_ & 0x00000040) == 0x00000040) && input.getBytesUntilLimit() > 0) { 1062 childRefs_ = new java.util.ArrayList<java.lang.Integer>(); 1063 mutable_bitField0_ |= 0x00000040; 1064 } 1065 while (input.getBytesUntilLimit() > 0) { 1066 childRefs_.add(input.readInt32()); 1067 } 1068 input.popLimit(limit); 1069 break; 1070 } 1071 case 64: { 1072 bitField0_ |= 0x00000040; 1073 snapshotId_ = input.readInt32(); 1074 break; 1075 } 1076 case 74: { 1077 bitField0_ |= 0x00000080; 1078 uuid_ = input.readBytes(); 1079 break; 1080 } 1081 } 1082 } 1083 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 1084 throw e.setUnfinishedMessage(this); 1085 } catch (java.io.IOException e) { 1086 throw new com.google.protobuf.InvalidProtocolBufferException( 1087 e.getMessage()).setUnfinishedMessage(this); 1088 } finally { 1089 if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) { 1090 childRefs_ = java.util.Collections.unmodifiableList(childRefs_); 1091 } 1092 this.unknownFields = unknownFields.build(); 1093 makeExtensionsImmutable(); 1094 } 1095 } 1096 public static final com.google.protobuf.Descriptors.Descriptor 1097 getDescriptor() { 1098 return org.sonar.batch.protocol.output.BatchReport.internal_static_Component_descriptor; 1099 } 1100 1101 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 1102 internalGetFieldAccessorTable() { 1103 return org.sonar.batch.protocol.output.BatchReport.internal_static_Component_fieldAccessorTable 1104 .ensureFieldAccessorsInitialized( 1105 org.sonar.batch.protocol.output.BatchReport.Component.class, org.sonar.batch.protocol.output.BatchReport.Component.Builder.class); 1106 } 1107 1108 public static com.google.protobuf.Parser<Component> PARSER = 1109 new com.google.protobuf.AbstractParser<Component>() { 1110 public Component parsePartialFrom( 1111 com.google.protobuf.CodedInputStream input, 1112 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1113 throws com.google.protobuf.InvalidProtocolBufferException { 1114 return new Component(input, extensionRegistry); 1115 } 1116 }; 1117 1118 @java.lang.Override 1119 public com.google.protobuf.Parser<Component> getParserForType() { 1120 return PARSER; 1121 } 1122 1123 private int bitField0_; 1124 // optional int32 ref = 1; 1125 public static final int REF_FIELD_NUMBER = 1; 1126 private int ref_; 1127 /** 1128 * <code>optional int32 ref = 1;</code> 1129 */ 1130 public boolean hasRef() { 1131 return ((bitField0_ & 0x00000001) == 0x00000001); 1132 } 1133 /** 1134 * <code>optional int32 ref = 1;</code> 1135 */ 1136 public int getRef() { 1137 return ref_; 1138 } 1139 1140 // optional string path = 2; 1141 public static final int PATH_FIELD_NUMBER = 2; 1142 private java.lang.Object path_; 1143 /** 1144 * <code>optional string path = 2;</code> 1145 */ 1146 public boolean hasPath() { 1147 return ((bitField0_ & 0x00000002) == 0x00000002); 1148 } 1149 /** 1150 * <code>optional string path = 2;</code> 1151 */ 1152 public java.lang.String getPath() { 1153 java.lang.Object ref = path_; 1154 if (ref instanceof java.lang.String) { 1155 return (java.lang.String) ref; 1156 } else { 1157 com.google.protobuf.ByteString bs = 1158 (com.google.protobuf.ByteString) ref; 1159 java.lang.String s = bs.toStringUtf8(); 1160 if (bs.isValidUtf8()) { 1161 path_ = s; 1162 } 1163 return s; 1164 } 1165 } 1166 /** 1167 * <code>optional string path = 2;</code> 1168 */ 1169 public com.google.protobuf.ByteString 1170 getPathBytes() { 1171 java.lang.Object ref = path_; 1172 if (ref instanceof java.lang.String) { 1173 com.google.protobuf.ByteString b = 1174 com.google.protobuf.ByteString.copyFromUtf8( 1175 (java.lang.String) ref); 1176 path_ = b; 1177 return b; 1178 } else { 1179 return (com.google.protobuf.ByteString) ref; 1180 } 1181 } 1182 1183 // optional string name = 3; 1184 public static final int NAME_FIELD_NUMBER = 3; 1185 private java.lang.Object name_; 1186 /** 1187 * <code>optional string name = 3;</code> 1188 */ 1189 public boolean hasName() { 1190 return ((bitField0_ & 0x00000004) == 0x00000004); 1191 } 1192 /** 1193 * <code>optional string name = 3;</code> 1194 */ 1195 public java.lang.String getName() { 1196 java.lang.Object ref = name_; 1197 if (ref instanceof java.lang.String) { 1198 return (java.lang.String) ref; 1199 } else { 1200 com.google.protobuf.ByteString bs = 1201 (com.google.protobuf.ByteString) ref; 1202 java.lang.String s = bs.toStringUtf8(); 1203 if (bs.isValidUtf8()) { 1204 name_ = s; 1205 } 1206 return s; 1207 } 1208 } 1209 /** 1210 * <code>optional string name = 3;</code> 1211 */ 1212 public com.google.protobuf.ByteString 1213 getNameBytes() { 1214 java.lang.Object ref = name_; 1215 if (ref instanceof java.lang.String) { 1216 com.google.protobuf.ByteString b = 1217 com.google.protobuf.ByteString.copyFromUtf8( 1218 (java.lang.String) ref); 1219 name_ = b; 1220 return b; 1221 } else { 1222 return (com.google.protobuf.ByteString) ref; 1223 } 1224 } 1225 1226 // optional .ComponentType type = 4; 1227 public static final int TYPE_FIELD_NUMBER = 4; 1228 private org.sonar.batch.protocol.Constants.ComponentType type_; 1229 /** 1230 * <code>optional .ComponentType type = 4;</code> 1231 */ 1232 public boolean hasType() { 1233 return ((bitField0_ & 0x00000008) == 0x00000008); 1234 } 1235 /** 1236 * <code>optional .ComponentType type = 4;</code> 1237 */ 1238 public org.sonar.batch.protocol.Constants.ComponentType getType() { 1239 return type_; 1240 } 1241 1242 // optional bool is_test = 5; 1243 public static final int IS_TEST_FIELD_NUMBER = 5; 1244 private boolean isTest_; 1245 /** 1246 * <code>optional bool is_test = 5;</code> 1247 */ 1248 public boolean hasIsTest() { 1249 return ((bitField0_ & 0x00000010) == 0x00000010); 1250 } 1251 /** 1252 * <code>optional bool is_test = 5;</code> 1253 */ 1254 public boolean getIsTest() { 1255 return isTest_; 1256 } 1257 1258 // optional string language = 6; 1259 public static final int LANGUAGE_FIELD_NUMBER = 6; 1260 private java.lang.Object language_; 1261 /** 1262 * <code>optional string language = 6;</code> 1263 */ 1264 public boolean hasLanguage() { 1265 return ((bitField0_ & 0x00000020) == 0x00000020); 1266 } 1267 /** 1268 * <code>optional string language = 6;</code> 1269 */ 1270 public java.lang.String getLanguage() { 1271 java.lang.Object ref = language_; 1272 if (ref instanceof java.lang.String) { 1273 return (java.lang.String) ref; 1274 } else { 1275 com.google.protobuf.ByteString bs = 1276 (com.google.protobuf.ByteString) ref; 1277 java.lang.String s = bs.toStringUtf8(); 1278 if (bs.isValidUtf8()) { 1279 language_ = s; 1280 } 1281 return s; 1282 } 1283 } 1284 /** 1285 * <code>optional string language = 6;</code> 1286 */ 1287 public com.google.protobuf.ByteString 1288 getLanguageBytes() { 1289 java.lang.Object ref = language_; 1290 if (ref instanceof java.lang.String) { 1291 com.google.protobuf.ByteString b = 1292 com.google.protobuf.ByteString.copyFromUtf8( 1293 (java.lang.String) ref); 1294 language_ = b; 1295 return b; 1296 } else { 1297 return (com.google.protobuf.ByteString) ref; 1298 } 1299 } 1300 1301 // repeated int32 child_refs = 7 [packed = true]; 1302 public static final int CHILD_REFS_FIELD_NUMBER = 7; 1303 private java.util.List<java.lang.Integer> childRefs_; 1304 /** 1305 * <code>repeated int32 child_refs = 7 [packed = true];</code> 1306 */ 1307 public java.util.List<java.lang.Integer> 1308 getChildRefsList() { 1309 return childRefs_; 1310 } 1311 /** 1312 * <code>repeated int32 child_refs = 7 [packed = true];</code> 1313 */ 1314 public int getChildRefsCount() { 1315 return childRefs_.size(); 1316 } 1317 /** 1318 * <code>repeated int32 child_refs = 7 [packed = true];</code> 1319 */ 1320 public int getChildRefs(int index) { 1321 return childRefs_.get(index); 1322 } 1323 private int childRefsMemoizedSerializedSize = -1; 1324 1325 // optional int32 snapshot_id = 8; 1326 public static final int SNAPSHOT_ID_FIELD_NUMBER = 8; 1327 private int snapshotId_; 1328 /** 1329 * <code>optional int32 snapshot_id = 8;</code> 1330 * 1331 * <pre> 1332 * temporary fields during development of computation stack 1333 * </pre> 1334 */ 1335 public boolean hasSnapshotId() { 1336 return ((bitField0_ & 0x00000040) == 0x00000040); 1337 } 1338 /** 1339 * <code>optional int32 snapshot_id = 8;</code> 1340 * 1341 * <pre> 1342 * temporary fields during development of computation stack 1343 * </pre> 1344 */ 1345 public int getSnapshotId() { 1346 return snapshotId_; 1347 } 1348 1349 // optional string uuid = 9; 1350 public static final int UUID_FIELD_NUMBER = 9; 1351 private java.lang.Object uuid_; 1352 /** 1353 * <code>optional string uuid = 9;</code> 1354 */ 1355 public boolean hasUuid() { 1356 return ((bitField0_ & 0x00000080) == 0x00000080); 1357 } 1358 /** 1359 * <code>optional string uuid = 9;</code> 1360 */ 1361 public java.lang.String getUuid() { 1362 java.lang.Object ref = uuid_; 1363 if (ref instanceof java.lang.String) { 1364 return (java.lang.String) ref; 1365 } else { 1366 com.google.protobuf.ByteString bs = 1367 (com.google.protobuf.ByteString) ref; 1368 java.lang.String s = bs.toStringUtf8(); 1369 if (bs.isValidUtf8()) { 1370 uuid_ = s; 1371 } 1372 return s; 1373 } 1374 } 1375 /** 1376 * <code>optional string uuid = 9;</code> 1377 */ 1378 public com.google.protobuf.ByteString 1379 getUuidBytes() { 1380 java.lang.Object ref = uuid_; 1381 if (ref instanceof java.lang.String) { 1382 com.google.protobuf.ByteString b = 1383 com.google.protobuf.ByteString.copyFromUtf8( 1384 (java.lang.String) ref); 1385 uuid_ = b; 1386 return b; 1387 } else { 1388 return (com.google.protobuf.ByteString) ref; 1389 } 1390 } 1391 1392 private void initFields() { 1393 ref_ = 0; 1394 path_ = ""; 1395 name_ = ""; 1396 type_ = org.sonar.batch.protocol.Constants.ComponentType.PROJECT; 1397 isTest_ = false; 1398 language_ = ""; 1399 childRefs_ = java.util.Collections.emptyList(); 1400 snapshotId_ = 0; 1401 uuid_ = ""; 1402 } 1403 private byte memoizedIsInitialized = -1; 1404 public final boolean isInitialized() { 1405 byte isInitialized = memoizedIsInitialized; 1406 if (isInitialized != -1) return isInitialized == 1; 1407 1408 memoizedIsInitialized = 1; 1409 return true; 1410 } 1411 1412 public void writeTo(com.google.protobuf.CodedOutputStream output) 1413 throws java.io.IOException { 1414 getSerializedSize(); 1415 if (((bitField0_ & 0x00000001) == 0x00000001)) { 1416 output.writeInt32(1, ref_); 1417 } 1418 if (((bitField0_ & 0x00000002) == 0x00000002)) { 1419 output.writeBytes(2, getPathBytes()); 1420 } 1421 if (((bitField0_ & 0x00000004) == 0x00000004)) { 1422 output.writeBytes(3, getNameBytes()); 1423 } 1424 if (((bitField0_ & 0x00000008) == 0x00000008)) { 1425 output.writeEnum(4, type_.getNumber()); 1426 } 1427 if (((bitField0_ & 0x00000010) == 0x00000010)) { 1428 output.writeBool(5, isTest_); 1429 } 1430 if (((bitField0_ & 0x00000020) == 0x00000020)) { 1431 output.writeBytes(6, getLanguageBytes()); 1432 } 1433 if (getChildRefsList().size() > 0) { 1434 output.writeRawVarint32(58); 1435 output.writeRawVarint32(childRefsMemoizedSerializedSize); 1436 } 1437 for (int i = 0; i < childRefs_.size(); i++) { 1438 output.writeInt32NoTag(childRefs_.get(i)); 1439 } 1440 if (((bitField0_ & 0x00000040) == 0x00000040)) { 1441 output.writeInt32(8, snapshotId_); 1442 } 1443 if (((bitField0_ & 0x00000080) == 0x00000080)) { 1444 output.writeBytes(9, getUuidBytes()); 1445 } 1446 getUnknownFields().writeTo(output); 1447 } 1448 1449 private int memoizedSerializedSize = -1; 1450 public int getSerializedSize() { 1451 int size = memoizedSerializedSize; 1452 if (size != -1) return size; 1453 1454 size = 0; 1455 if (((bitField0_ & 0x00000001) == 0x00000001)) { 1456 size += com.google.protobuf.CodedOutputStream 1457 .computeInt32Size(1, ref_); 1458 } 1459 if (((bitField0_ & 0x00000002) == 0x00000002)) { 1460 size += com.google.protobuf.CodedOutputStream 1461 .computeBytesSize(2, getPathBytes()); 1462 } 1463 if (((bitField0_ & 0x00000004) == 0x00000004)) { 1464 size += com.google.protobuf.CodedOutputStream 1465 .computeBytesSize(3, getNameBytes()); 1466 } 1467 if (((bitField0_ & 0x00000008) == 0x00000008)) { 1468 size += com.google.protobuf.CodedOutputStream 1469 .computeEnumSize(4, type_.getNumber()); 1470 } 1471 if (((bitField0_ & 0x00000010) == 0x00000010)) { 1472 size += com.google.protobuf.CodedOutputStream 1473 .computeBoolSize(5, isTest_); 1474 } 1475 if (((bitField0_ & 0x00000020) == 0x00000020)) { 1476 size += com.google.protobuf.CodedOutputStream 1477 .computeBytesSize(6, getLanguageBytes()); 1478 } 1479 { 1480 int dataSize = 0; 1481 for (int i = 0; i < childRefs_.size(); i++) { 1482 dataSize += com.google.protobuf.CodedOutputStream 1483 .computeInt32SizeNoTag(childRefs_.get(i)); 1484 } 1485 size += dataSize; 1486 if (!getChildRefsList().isEmpty()) { 1487 size += 1; 1488 size += com.google.protobuf.CodedOutputStream 1489 .computeInt32SizeNoTag(dataSize); 1490 } 1491 childRefsMemoizedSerializedSize = dataSize; 1492 } 1493 if (((bitField0_ & 0x00000040) == 0x00000040)) { 1494 size += com.google.protobuf.CodedOutputStream 1495 .computeInt32Size(8, snapshotId_); 1496 } 1497 if (((bitField0_ & 0x00000080) == 0x00000080)) { 1498 size += com.google.protobuf.CodedOutputStream 1499 .computeBytesSize(9, getUuidBytes()); 1500 } 1501 size += getUnknownFields().getSerializedSize(); 1502 memoizedSerializedSize = size; 1503 return size; 1504 } 1505 1506 private static final long serialVersionUID = 0L; 1507 @java.lang.Override 1508 protected java.lang.Object writeReplace() 1509 throws java.io.ObjectStreamException { 1510 return super.writeReplace(); 1511 } 1512 1513 public static org.sonar.batch.protocol.output.BatchReport.Component parseFrom( 1514 com.google.protobuf.ByteString data) 1515 throws com.google.protobuf.InvalidProtocolBufferException { 1516 return PARSER.parseFrom(data); 1517 } 1518 public static org.sonar.batch.protocol.output.BatchReport.Component parseFrom( 1519 com.google.protobuf.ByteString data, 1520 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1521 throws com.google.protobuf.InvalidProtocolBufferException { 1522 return PARSER.parseFrom(data, extensionRegistry); 1523 } 1524 public static org.sonar.batch.protocol.output.BatchReport.Component parseFrom(byte[] data) 1525 throws com.google.protobuf.InvalidProtocolBufferException { 1526 return PARSER.parseFrom(data); 1527 } 1528 public static org.sonar.batch.protocol.output.BatchReport.Component parseFrom( 1529 byte[] data, 1530 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1531 throws com.google.protobuf.InvalidProtocolBufferException { 1532 return PARSER.parseFrom(data, extensionRegistry); 1533 } 1534 public static org.sonar.batch.protocol.output.BatchReport.Component parseFrom(java.io.InputStream input) 1535 throws java.io.IOException { 1536 return PARSER.parseFrom(input); 1537 } 1538 public static org.sonar.batch.protocol.output.BatchReport.Component parseFrom( 1539 java.io.InputStream input, 1540 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1541 throws java.io.IOException { 1542 return PARSER.parseFrom(input, extensionRegistry); 1543 } 1544 public static org.sonar.batch.protocol.output.BatchReport.Component parseDelimitedFrom(java.io.InputStream input) 1545 throws java.io.IOException { 1546 return PARSER.parseDelimitedFrom(input); 1547 } 1548 public static org.sonar.batch.protocol.output.BatchReport.Component parseDelimitedFrom( 1549 java.io.InputStream input, 1550 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1551 throws java.io.IOException { 1552 return PARSER.parseDelimitedFrom(input, extensionRegistry); 1553 } 1554 public static org.sonar.batch.protocol.output.BatchReport.Component parseFrom( 1555 com.google.protobuf.CodedInputStream input) 1556 throws java.io.IOException { 1557 return PARSER.parseFrom(input); 1558 } 1559 public static org.sonar.batch.protocol.output.BatchReport.Component parseFrom( 1560 com.google.protobuf.CodedInputStream input, 1561 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1562 throws java.io.IOException { 1563 return PARSER.parseFrom(input, extensionRegistry); 1564 } 1565 1566 public static Builder newBuilder() { return Builder.create(); } 1567 public Builder newBuilderForType() { return newBuilder(); } 1568 public static Builder newBuilder(org.sonar.batch.protocol.output.BatchReport.Component prototype) { 1569 return newBuilder().mergeFrom(prototype); 1570 } 1571 public Builder toBuilder() { return newBuilder(this); } 1572 1573 @java.lang.Override 1574 protected Builder newBuilderForType( 1575 com.google.protobuf.GeneratedMessage.BuilderParent parent) { 1576 Builder builder = new Builder(parent); 1577 return builder; 1578 } 1579 /** 1580 * Protobuf type {@code Component} 1581 */ 1582 public static final class Builder extends 1583 com.google.protobuf.GeneratedMessage.Builder<Builder> 1584 implements org.sonar.batch.protocol.output.BatchReport.ComponentOrBuilder { 1585 public static final com.google.protobuf.Descriptors.Descriptor 1586 getDescriptor() { 1587 return org.sonar.batch.protocol.output.BatchReport.internal_static_Component_descriptor; 1588 } 1589 1590 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 1591 internalGetFieldAccessorTable() { 1592 return org.sonar.batch.protocol.output.BatchReport.internal_static_Component_fieldAccessorTable 1593 .ensureFieldAccessorsInitialized( 1594 org.sonar.batch.protocol.output.BatchReport.Component.class, org.sonar.batch.protocol.output.BatchReport.Component.Builder.class); 1595 } 1596 1597 // Construct using org.sonar.batch.protocol.output.BatchReport.Component.newBuilder() 1598 private Builder() { 1599 maybeForceBuilderInitialization(); 1600 } 1601 1602 private Builder( 1603 com.google.protobuf.GeneratedMessage.BuilderParent parent) { 1604 super(parent); 1605 maybeForceBuilderInitialization(); 1606 } 1607 private void maybeForceBuilderInitialization() { 1608 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { 1609 } 1610 } 1611 private static Builder create() { 1612 return new Builder(); 1613 } 1614 1615 public Builder clear() { 1616 super.clear(); 1617 ref_ = 0; 1618 bitField0_ = (bitField0_ & ~0x00000001); 1619 path_ = ""; 1620 bitField0_ = (bitField0_ & ~0x00000002); 1621 name_ = ""; 1622 bitField0_ = (bitField0_ & ~0x00000004); 1623 type_ = org.sonar.batch.protocol.Constants.ComponentType.PROJECT; 1624 bitField0_ = (bitField0_ & ~0x00000008); 1625 isTest_ = false; 1626 bitField0_ = (bitField0_ & ~0x00000010); 1627 language_ = ""; 1628 bitField0_ = (bitField0_ & ~0x00000020); 1629 childRefs_ = java.util.Collections.emptyList(); 1630 bitField0_ = (bitField0_ & ~0x00000040); 1631 snapshotId_ = 0; 1632 bitField0_ = (bitField0_ & ~0x00000080); 1633 uuid_ = ""; 1634 bitField0_ = (bitField0_ & ~0x00000100); 1635 return this; 1636 } 1637 1638 public Builder clone() { 1639 return create().mergeFrom(buildPartial()); 1640 } 1641 1642 public com.google.protobuf.Descriptors.Descriptor 1643 getDescriptorForType() { 1644 return org.sonar.batch.protocol.output.BatchReport.internal_static_Component_descriptor; 1645 } 1646 1647 public org.sonar.batch.protocol.output.BatchReport.Component getDefaultInstanceForType() { 1648 return org.sonar.batch.protocol.output.BatchReport.Component.getDefaultInstance(); 1649 } 1650 1651 public org.sonar.batch.protocol.output.BatchReport.Component build() { 1652 org.sonar.batch.protocol.output.BatchReport.Component result = buildPartial(); 1653 if (!result.isInitialized()) { 1654 throw newUninitializedMessageException(result); 1655 } 1656 return result; 1657 } 1658 1659 public org.sonar.batch.protocol.output.BatchReport.Component buildPartial() { 1660 org.sonar.batch.protocol.output.BatchReport.Component result = new org.sonar.batch.protocol.output.BatchReport.Component(this); 1661 int from_bitField0_ = bitField0_; 1662 int to_bitField0_ = 0; 1663 if (((from_bitField0_ & 0x00000001) == 0x00000001)) { 1664 to_bitField0_ |= 0x00000001; 1665 } 1666 result.ref_ = ref_; 1667 if (((from_bitField0_ & 0x00000002) == 0x00000002)) { 1668 to_bitField0_ |= 0x00000002; 1669 } 1670 result.path_ = path_; 1671 if (((from_bitField0_ & 0x00000004) == 0x00000004)) { 1672 to_bitField0_ |= 0x00000004; 1673 } 1674 result.name_ = name_; 1675 if (((from_bitField0_ & 0x00000008) == 0x00000008)) { 1676 to_bitField0_ |= 0x00000008; 1677 } 1678 result.type_ = type_; 1679 if (((from_bitField0_ & 0x00000010) == 0x00000010)) { 1680 to_bitField0_ |= 0x00000010; 1681 } 1682 result.isTest_ = isTest_; 1683 if (((from_bitField0_ & 0x00000020) == 0x00000020)) { 1684 to_bitField0_ |= 0x00000020; 1685 } 1686 result.language_ = language_; 1687 if (((bitField0_ & 0x00000040) == 0x00000040)) { 1688 childRefs_ = java.util.Collections.unmodifiableList(childRefs_); 1689 bitField0_ = (bitField0_ & ~0x00000040); 1690 } 1691 result.childRefs_ = childRefs_; 1692 if (((from_bitField0_ & 0x00000080) == 0x00000080)) { 1693 to_bitField0_ |= 0x00000040; 1694 } 1695 result.snapshotId_ = snapshotId_; 1696 if (((from_bitField0_ & 0x00000100) == 0x00000100)) { 1697 to_bitField0_ |= 0x00000080; 1698 } 1699 result.uuid_ = uuid_; 1700 result.bitField0_ = to_bitField0_; 1701 onBuilt(); 1702 return result; 1703 } 1704 1705 public Builder mergeFrom(com.google.protobuf.Message other) { 1706 if (other instanceof org.sonar.batch.protocol.output.BatchReport.Component) { 1707 return mergeFrom((org.sonar.batch.protocol.output.BatchReport.Component)other); 1708 } else { 1709 super.mergeFrom(other); 1710 return this; 1711 } 1712 } 1713 1714 public Builder mergeFrom(org.sonar.batch.protocol.output.BatchReport.Component other) { 1715 if (other == org.sonar.batch.protocol.output.BatchReport.Component.getDefaultInstance()) return this; 1716 if (other.hasRef()) { 1717 setRef(other.getRef()); 1718 } 1719 if (other.hasPath()) { 1720 bitField0_ |= 0x00000002; 1721 path_ = other.path_; 1722 onChanged(); 1723 } 1724 if (other.hasName()) { 1725 bitField0_ |= 0x00000004; 1726 name_ = other.name_; 1727 onChanged(); 1728 } 1729 if (other.hasType()) { 1730 setType(other.getType()); 1731 } 1732 if (other.hasIsTest()) { 1733 setIsTest(other.getIsTest()); 1734 } 1735 if (other.hasLanguage()) { 1736 bitField0_ |= 0x00000020; 1737 language_ = other.language_; 1738 onChanged(); 1739 } 1740 if (!other.childRefs_.isEmpty()) { 1741 if (childRefs_.isEmpty()) { 1742 childRefs_ = other.childRefs_; 1743 bitField0_ = (bitField0_ & ~0x00000040); 1744 } else { 1745 ensureChildRefsIsMutable(); 1746 childRefs_.addAll(other.childRefs_); 1747 } 1748 onChanged(); 1749 } 1750 if (other.hasSnapshotId()) { 1751 setSnapshotId(other.getSnapshotId()); 1752 } 1753 if (other.hasUuid()) { 1754 bitField0_ |= 0x00000100; 1755 uuid_ = other.uuid_; 1756 onChanged(); 1757 } 1758 this.mergeUnknownFields(other.getUnknownFields()); 1759 return this; 1760 } 1761 1762 public final boolean isInitialized() { 1763 return true; 1764 } 1765 1766 public Builder mergeFrom( 1767 com.google.protobuf.CodedInputStream input, 1768 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1769 throws java.io.IOException { 1770 org.sonar.batch.protocol.output.BatchReport.Component parsedMessage = null; 1771 try { 1772 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 1773 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 1774 parsedMessage = (org.sonar.batch.protocol.output.BatchReport.Component) e.getUnfinishedMessage(); 1775 throw e; 1776 } finally { 1777 if (parsedMessage != null) { 1778 mergeFrom(parsedMessage); 1779 } 1780 } 1781 return this; 1782 } 1783 private int bitField0_; 1784 1785 // optional int32 ref = 1; 1786 private int ref_ ; 1787 /** 1788 * <code>optional int32 ref = 1;</code> 1789 */ 1790 public boolean hasRef() { 1791 return ((bitField0_ & 0x00000001) == 0x00000001); 1792 } 1793 /** 1794 * <code>optional int32 ref = 1;</code> 1795 */ 1796 public int getRef() { 1797 return ref_; 1798 } 1799 /** 1800 * <code>optional int32 ref = 1;</code> 1801 */ 1802 public Builder setRef(int value) { 1803 bitField0_ |= 0x00000001; 1804 ref_ = value; 1805 onChanged(); 1806 return this; 1807 } 1808 /** 1809 * <code>optional int32 ref = 1;</code> 1810 */ 1811 public Builder clearRef() { 1812 bitField0_ = (bitField0_ & ~0x00000001); 1813 ref_ = 0; 1814 onChanged(); 1815 return this; 1816 } 1817 1818 // optional string path = 2; 1819 private java.lang.Object path_ = ""; 1820 /** 1821 * <code>optional string path = 2;</code> 1822 */ 1823 public boolean hasPath() { 1824 return ((bitField0_ & 0x00000002) == 0x00000002); 1825 } 1826 /** 1827 * <code>optional string path = 2;</code> 1828 */ 1829 public java.lang.String getPath() { 1830 java.lang.Object ref = path_; 1831 if (!(ref instanceof java.lang.String)) { 1832 java.lang.String s = ((com.google.protobuf.ByteString) ref) 1833 .toStringUtf8(); 1834 path_ = s; 1835 return s; 1836 } else { 1837 return (java.lang.String) ref; 1838 } 1839 } 1840 /** 1841 * <code>optional string path = 2;</code> 1842 */ 1843 public com.google.protobuf.ByteString 1844 getPathBytes() { 1845 java.lang.Object ref = path_; 1846 if (ref instanceof String) { 1847 com.google.protobuf.ByteString b = 1848 com.google.protobuf.ByteString.copyFromUtf8( 1849 (java.lang.String) ref); 1850 path_ = b; 1851 return b; 1852 } else { 1853 return (com.google.protobuf.ByteString) ref; 1854 } 1855 } 1856 /** 1857 * <code>optional string path = 2;</code> 1858 */ 1859 public Builder setPath( 1860 java.lang.String value) { 1861 if (value == null) { 1862 throw new NullPointerException(); 1863 } 1864 bitField0_ |= 0x00000002; 1865 path_ = value; 1866 onChanged(); 1867 return this; 1868 } 1869 /** 1870 * <code>optional string path = 2;</code> 1871 */ 1872 public Builder clearPath() { 1873 bitField0_ = (bitField0_ & ~0x00000002); 1874 path_ = getDefaultInstance().getPath(); 1875 onChanged(); 1876 return this; 1877 } 1878 /** 1879 * <code>optional string path = 2;</code> 1880 */ 1881 public Builder setPathBytes( 1882 com.google.protobuf.ByteString value) { 1883 if (value == null) { 1884 throw new NullPointerException(); 1885 } 1886 bitField0_ |= 0x00000002; 1887 path_ = value; 1888 onChanged(); 1889 return this; 1890 } 1891 1892 // optional string name = 3; 1893 private java.lang.Object name_ = ""; 1894 /** 1895 * <code>optional string name = 3;</code> 1896 */ 1897 public boolean hasName() { 1898 return ((bitField0_ & 0x00000004) == 0x00000004); 1899 } 1900 /** 1901 * <code>optional string name = 3;</code> 1902 */ 1903 public java.lang.String getName() { 1904 java.lang.Object ref = name_; 1905 if (!(ref instanceof java.lang.String)) { 1906 java.lang.String s = ((com.google.protobuf.ByteString) ref) 1907 .toStringUtf8(); 1908 name_ = s; 1909 return s; 1910 } else { 1911 return (java.lang.String) ref; 1912 } 1913 } 1914 /** 1915 * <code>optional string name = 3;</code> 1916 */ 1917 public com.google.protobuf.ByteString 1918 getNameBytes() { 1919 java.lang.Object ref = name_; 1920 if (ref instanceof String) { 1921 com.google.protobuf.ByteString b = 1922 com.google.protobuf.ByteString.copyFromUtf8( 1923 (java.lang.String) ref); 1924 name_ = b; 1925 return b; 1926 } else { 1927 return (com.google.protobuf.ByteString) ref; 1928 } 1929 } 1930 /** 1931 * <code>optional string name = 3;</code> 1932 */ 1933 public Builder setName( 1934 java.lang.String value) { 1935 if (value == null) { 1936 throw new NullPointerException(); 1937 } 1938 bitField0_ |= 0x00000004; 1939 name_ = value; 1940 onChanged(); 1941 return this; 1942 } 1943 /** 1944 * <code>optional string name = 3;</code> 1945 */ 1946 public Builder clearName() { 1947 bitField0_ = (bitField0_ & ~0x00000004); 1948 name_ = getDefaultInstance().getName(); 1949 onChanged(); 1950 return this; 1951 } 1952 /** 1953 * <code>optional string name = 3;</code> 1954 */ 1955 public Builder setNameBytes( 1956 com.google.protobuf.ByteString value) { 1957 if (value == null) { 1958 throw new NullPointerException(); 1959 } 1960 bitField0_ |= 0x00000004; 1961 name_ = value; 1962 onChanged(); 1963 return this; 1964 } 1965 1966 // optional .ComponentType type = 4; 1967 private org.sonar.batch.protocol.Constants.ComponentType type_ = org.sonar.batch.protocol.Constants.ComponentType.PROJECT; 1968 /** 1969 * <code>optional .ComponentType type = 4;</code> 1970 */ 1971 public boolean hasType() { 1972 return ((bitField0_ & 0x00000008) == 0x00000008); 1973 } 1974 /** 1975 * <code>optional .ComponentType type = 4;</code> 1976 */ 1977 public org.sonar.batch.protocol.Constants.ComponentType getType() { 1978 return type_; 1979 } 1980 /** 1981 * <code>optional .ComponentType type = 4;</code> 1982 */ 1983 public Builder setType(org.sonar.batch.protocol.Constants.ComponentType value) { 1984 if (value == null) { 1985 throw new NullPointerException(); 1986 } 1987 bitField0_ |= 0x00000008; 1988 type_ = value; 1989 onChanged(); 1990 return this; 1991 } 1992 /** 1993 * <code>optional .ComponentType type = 4;</code> 1994 */ 1995 public Builder clearType() { 1996 bitField0_ = (bitField0_ & ~0x00000008); 1997 type_ = org.sonar.batch.protocol.Constants.ComponentType.PROJECT; 1998 onChanged(); 1999 return this; 2000 } 2001 2002 // optional bool is_test = 5; 2003 private boolean isTest_ ; 2004 /** 2005 * <code>optional bool is_test = 5;</code> 2006 */ 2007 public boolean hasIsTest() { 2008 return ((bitField0_ & 0x00000010) == 0x00000010); 2009 } 2010 /** 2011 * <code>optional bool is_test = 5;</code> 2012 */ 2013 public boolean getIsTest() { 2014 return isTest_; 2015 } 2016 /** 2017 * <code>optional bool is_test = 5;</code> 2018 */ 2019 public Builder setIsTest(boolean value) { 2020 bitField0_ |= 0x00000010; 2021 isTest_ = value; 2022 onChanged(); 2023 return this; 2024 } 2025 /** 2026 * <code>optional bool is_test = 5;</code> 2027 */ 2028 public Builder clearIsTest() { 2029 bitField0_ = (bitField0_ & ~0x00000010); 2030 isTest_ = false; 2031 onChanged(); 2032 return this; 2033 } 2034 2035 // optional string language = 6; 2036 private java.lang.Object language_ = ""; 2037 /** 2038 * <code>optional string language = 6;</code> 2039 */ 2040 public boolean hasLanguage() { 2041 return ((bitField0_ & 0x00000020) == 0x00000020); 2042 } 2043 /** 2044 * <code>optional string language = 6;</code> 2045 */ 2046 public java.lang.String getLanguage() { 2047 java.lang.Object ref = language_; 2048 if (!(ref instanceof java.lang.String)) { 2049 java.lang.String s = ((com.google.protobuf.ByteString) ref) 2050 .toStringUtf8(); 2051 language_ = s; 2052 return s; 2053 } else { 2054 return (java.lang.String) ref; 2055 } 2056 } 2057 /** 2058 * <code>optional string language = 6;</code> 2059 */ 2060 public com.google.protobuf.ByteString 2061 getLanguageBytes() { 2062 java.lang.Object ref = language_; 2063 if (ref instanceof String) { 2064 com.google.protobuf.ByteString b = 2065 com.google.protobuf.ByteString.copyFromUtf8( 2066 (java.lang.String) ref); 2067 language_ = b; 2068 return b; 2069 } else { 2070 return (com.google.protobuf.ByteString) ref; 2071 } 2072 } 2073 /** 2074 * <code>optional string language = 6;</code> 2075 */ 2076 public Builder setLanguage( 2077 java.lang.String value) { 2078 if (value == null) { 2079 throw new NullPointerException(); 2080 } 2081 bitField0_ |= 0x00000020; 2082 language_ = value; 2083 onChanged(); 2084 return this; 2085 } 2086 /** 2087 * <code>optional string language = 6;</code> 2088 */ 2089 public Builder clearLanguage() { 2090 bitField0_ = (bitField0_ & ~0x00000020); 2091 language_ = getDefaultInstance().getLanguage(); 2092 onChanged(); 2093 return this; 2094 } 2095 /** 2096 * <code>optional string language = 6;</code> 2097 */ 2098 public Builder setLanguageBytes( 2099 com.google.protobuf.ByteString value) { 2100 if (value == null) { 2101 throw new NullPointerException(); 2102 } 2103 bitField0_ |= 0x00000020; 2104 language_ = value; 2105 onChanged(); 2106 return this; 2107 } 2108 2109 // repeated int32 child_refs = 7 [packed = true]; 2110 private java.util.List<java.lang.Integer> childRefs_ = java.util.Collections.emptyList(); 2111 private void ensureChildRefsIsMutable() { 2112 if (!((bitField0_ & 0x00000040) == 0x00000040)) { 2113 childRefs_ = new java.util.ArrayList<java.lang.Integer>(childRefs_); 2114 bitField0_ |= 0x00000040; 2115 } 2116 } 2117 /** 2118 * <code>repeated int32 child_refs = 7 [packed = true];</code> 2119 */ 2120 public java.util.List<java.lang.Integer> 2121 getChildRefsList() { 2122 return java.util.Collections.unmodifiableList(childRefs_); 2123 } 2124 /** 2125 * <code>repeated int32 child_refs = 7 [packed = true];</code> 2126 */ 2127 public int getChildRefsCount() { 2128 return childRefs_.size(); 2129 } 2130 /** 2131 * <code>repeated int32 child_refs = 7 [packed = true];</code> 2132 */ 2133 public int getChildRefs(int index) { 2134 return childRefs_.get(index); 2135 } 2136 /** 2137 * <code>repeated int32 child_refs = 7 [packed = true];</code> 2138 */ 2139 public Builder setChildRefs( 2140 int index, int value) { 2141 ensureChildRefsIsMutable(); 2142 childRefs_.set(index, value); 2143 onChanged(); 2144 return this; 2145 } 2146 /** 2147 * <code>repeated int32 child_refs = 7 [packed = true];</code> 2148 */ 2149 public Builder addChildRefs(int value) { 2150 ensureChildRefsIsMutable(); 2151 childRefs_.add(value); 2152 onChanged(); 2153 return this; 2154 } 2155 /** 2156 * <code>repeated int32 child_refs = 7 [packed = true];</code> 2157 */ 2158 public Builder addAllChildRefs( 2159 java.lang.Iterable<? extends java.lang.Integer> values) { 2160 ensureChildRefsIsMutable(); 2161 super.addAll(values, childRefs_); 2162 onChanged(); 2163 return this; 2164 } 2165 /** 2166 * <code>repeated int32 child_refs = 7 [packed = true];</code> 2167 */ 2168 public Builder clearChildRefs() { 2169 childRefs_ = java.util.Collections.emptyList(); 2170 bitField0_ = (bitField0_ & ~0x00000040); 2171 onChanged(); 2172 return this; 2173 } 2174 2175 // optional int32 snapshot_id = 8; 2176 private int snapshotId_ ; 2177 /** 2178 * <code>optional int32 snapshot_id = 8;</code> 2179 * 2180 * <pre> 2181 * temporary fields during development of computation stack 2182 * </pre> 2183 */ 2184 public boolean hasSnapshotId() { 2185 return ((bitField0_ & 0x00000080) == 0x00000080); 2186 } 2187 /** 2188 * <code>optional int32 snapshot_id = 8;</code> 2189 * 2190 * <pre> 2191 * temporary fields during development of computation stack 2192 * </pre> 2193 */ 2194 public int getSnapshotId() { 2195 return snapshotId_; 2196 } 2197 /** 2198 * <code>optional int32 snapshot_id = 8;</code> 2199 * 2200 * <pre> 2201 * temporary fields during development of computation stack 2202 * </pre> 2203 */ 2204 public Builder setSnapshotId(int value) { 2205 bitField0_ |= 0x00000080; 2206 snapshotId_ = value; 2207 onChanged(); 2208 return this; 2209 } 2210 /** 2211 * <code>optional int32 snapshot_id = 8;</code> 2212 * 2213 * <pre> 2214 * temporary fields during development of computation stack 2215 * </pre> 2216 */ 2217 public Builder clearSnapshotId() { 2218 bitField0_ = (bitField0_ & ~0x00000080); 2219 snapshotId_ = 0; 2220 onChanged(); 2221 return this; 2222 } 2223 2224 // optional string uuid = 9; 2225 private java.lang.Object uuid_ = ""; 2226 /** 2227 * <code>optional string uuid = 9;</code> 2228 */ 2229 public boolean hasUuid() { 2230 return ((bitField0_ & 0x00000100) == 0x00000100); 2231 } 2232 /** 2233 * <code>optional string uuid = 9;</code> 2234 */ 2235 public java.lang.String getUuid() { 2236 java.lang.Object ref = uuid_; 2237 if (!(ref instanceof java.lang.String)) { 2238 java.lang.String s = ((com.google.protobuf.ByteString) ref) 2239 .toStringUtf8(); 2240 uuid_ = s; 2241 return s; 2242 } else { 2243 return (java.lang.String) ref; 2244 } 2245 } 2246 /** 2247 * <code>optional string uuid = 9;</code> 2248 */ 2249 public com.google.protobuf.ByteString 2250 getUuidBytes() { 2251 java.lang.Object ref = uuid_; 2252 if (ref instanceof String) { 2253 com.google.protobuf.ByteString b = 2254 com.google.protobuf.ByteString.copyFromUtf8( 2255 (java.lang.String) ref); 2256 uuid_ = b; 2257 return b; 2258 } else { 2259 return (com.google.protobuf.ByteString) ref; 2260 } 2261 } 2262 /** 2263 * <code>optional string uuid = 9;</code> 2264 */ 2265 public Builder setUuid( 2266 java.lang.String value) { 2267 if (value == null) { 2268 throw new NullPointerException(); 2269 } 2270 bitField0_ |= 0x00000100; 2271 uuid_ = value; 2272 onChanged(); 2273 return this; 2274 } 2275 /** 2276 * <code>optional string uuid = 9;</code> 2277 */ 2278 public Builder clearUuid() { 2279 bitField0_ = (bitField0_ & ~0x00000100); 2280 uuid_ = getDefaultInstance().getUuid(); 2281 onChanged(); 2282 return this; 2283 } 2284 /** 2285 * <code>optional string uuid = 9;</code> 2286 */ 2287 public Builder setUuidBytes( 2288 com.google.protobuf.ByteString value) { 2289 if (value == null) { 2290 throw new NullPointerException(); 2291 } 2292 bitField0_ |= 0x00000100; 2293 uuid_ = value; 2294 onChanged(); 2295 return this; 2296 } 2297 2298 // @@protoc_insertion_point(builder_scope:Component) 2299 } 2300 2301 static { 2302 defaultInstance = new Component(true); 2303 defaultInstance.initFields(); 2304 } 2305 2306 // @@protoc_insertion_point(class_scope:Component) 2307 } 2308 2309 public interface IssueOrBuilder 2310 extends com.google.protobuf.MessageOrBuilder { 2311 2312 // optional string rule_repository = 1; 2313 /** 2314 * <code>optional string rule_repository = 1;</code> 2315 */ 2316 boolean hasRuleRepository(); 2317 /** 2318 * <code>optional string rule_repository = 1;</code> 2319 */ 2320 java.lang.String getRuleRepository(); 2321 /** 2322 * <code>optional string rule_repository = 1;</code> 2323 */ 2324 com.google.protobuf.ByteString 2325 getRuleRepositoryBytes(); 2326 2327 // optional string rule_key = 2; 2328 /** 2329 * <code>optional string rule_key = 2;</code> 2330 */ 2331 boolean hasRuleKey(); 2332 /** 2333 * <code>optional string rule_key = 2;</code> 2334 */ 2335 java.lang.String getRuleKey(); 2336 /** 2337 * <code>optional string rule_key = 2;</code> 2338 */ 2339 com.google.protobuf.ByteString 2340 getRuleKeyBytes(); 2341 2342 // optional int32 line = 3; 2343 /** 2344 * <code>optional int32 line = 3;</code> 2345 */ 2346 boolean hasLine(); 2347 /** 2348 * <code>optional int32 line = 3;</code> 2349 */ 2350 int getLine(); 2351 2352 // optional string msg = 4; 2353 /** 2354 * <code>optional string msg = 4;</code> 2355 */ 2356 boolean hasMsg(); 2357 /** 2358 * <code>optional string msg = 4;</code> 2359 */ 2360 java.lang.String getMsg(); 2361 /** 2362 * <code>optional string msg = 4;</code> 2363 */ 2364 com.google.protobuf.ByteString 2365 getMsgBytes(); 2366 2367 // optional .Severity severity = 5; 2368 /** 2369 * <code>optional .Severity severity = 5;</code> 2370 */ 2371 boolean hasSeverity(); 2372 /** 2373 * <code>optional .Severity severity = 5;</code> 2374 */ 2375 org.sonar.batch.protocol.Constants.Severity getSeverity(); 2376 2377 // repeated string tags = 6; 2378 /** 2379 * <code>repeated string tags = 6;</code> 2380 */ 2381 java.util.List<java.lang.String> 2382 getTagsList(); 2383 /** 2384 * <code>repeated string tags = 6;</code> 2385 */ 2386 int getTagsCount(); 2387 /** 2388 * <code>repeated string tags = 6;</code> 2389 */ 2390 java.lang.String getTags(int index); 2391 /** 2392 * <code>repeated string tags = 6;</code> 2393 */ 2394 com.google.protobuf.ByteString 2395 getTagsBytes(int index); 2396 2397 // optional double effort_to_fix = 7; 2398 /** 2399 * <code>optional double effort_to_fix = 7;</code> 2400 * 2401 * <pre> 2402 * temporary fields during development of computation stack 2403 * </pre> 2404 */ 2405 boolean hasEffortToFix(); 2406 /** 2407 * <code>optional double effort_to_fix = 7;</code> 2408 * 2409 * <pre> 2410 * temporary fields during development of computation stack 2411 * </pre> 2412 */ 2413 double getEffortToFix(); 2414 2415 // optional bool is_new = 8; 2416 /** 2417 * <code>optional bool is_new = 8;</code> 2418 */ 2419 boolean hasIsNew(); 2420 /** 2421 * <code>optional bool is_new = 8;</code> 2422 */ 2423 boolean getIsNew(); 2424 2425 // optional string uuid = 9; 2426 /** 2427 * <code>optional string uuid = 9;</code> 2428 */ 2429 boolean hasUuid(); 2430 /** 2431 * <code>optional string uuid = 9;</code> 2432 */ 2433 java.lang.String getUuid(); 2434 /** 2435 * <code>optional string uuid = 9;</code> 2436 */ 2437 com.google.protobuf.ByteString 2438 getUuidBytes(); 2439 2440 // optional int64 debt_in_minutes = 10; 2441 /** 2442 * <code>optional int64 debt_in_minutes = 10;</code> 2443 */ 2444 boolean hasDebtInMinutes(); 2445 /** 2446 * <code>optional int64 debt_in_minutes = 10;</code> 2447 */ 2448 long getDebtInMinutes(); 2449 2450 // optional string resolution = 11; 2451 /** 2452 * <code>optional string resolution = 11;</code> 2453 */ 2454 boolean hasResolution(); 2455 /** 2456 * <code>optional string resolution = 11;</code> 2457 */ 2458 java.lang.String getResolution(); 2459 /** 2460 * <code>optional string resolution = 11;</code> 2461 */ 2462 com.google.protobuf.ByteString 2463 getResolutionBytes(); 2464 2465 // optional string status = 12; 2466 /** 2467 * <code>optional string status = 12;</code> 2468 */ 2469 boolean hasStatus(); 2470 /** 2471 * <code>optional string status = 12;</code> 2472 */ 2473 java.lang.String getStatus(); 2474 /** 2475 * <code>optional string status = 12;</code> 2476 */ 2477 com.google.protobuf.ByteString 2478 getStatusBytes(); 2479 2480 // optional string checksum = 13; 2481 /** 2482 * <code>optional string checksum = 13;</code> 2483 */ 2484 boolean hasChecksum(); 2485 /** 2486 * <code>optional string checksum = 13;</code> 2487 */ 2488 java.lang.String getChecksum(); 2489 /** 2490 * <code>optional string checksum = 13;</code> 2491 */ 2492 com.google.protobuf.ByteString 2493 getChecksumBytes(); 2494 2495 // optional bool manual_severity = 14; 2496 /** 2497 * <code>optional bool manual_severity = 14;</code> 2498 */ 2499 boolean hasManualSeverity(); 2500 /** 2501 * <code>optional bool manual_severity = 14;</code> 2502 */ 2503 boolean getManualSeverity(); 2504 2505 // optional string reporter = 15; 2506 /** 2507 * <code>optional string reporter = 15;</code> 2508 */ 2509 boolean hasReporter(); 2510 /** 2511 * <code>optional string reporter = 15;</code> 2512 */ 2513 java.lang.String getReporter(); 2514 /** 2515 * <code>optional string reporter = 15;</code> 2516 */ 2517 com.google.protobuf.ByteString 2518 getReporterBytes(); 2519 2520 // optional string assignee = 16; 2521 /** 2522 * <code>optional string assignee = 16;</code> 2523 */ 2524 boolean hasAssignee(); 2525 /** 2526 * <code>optional string assignee = 16;</code> 2527 */ 2528 java.lang.String getAssignee(); 2529 /** 2530 * <code>optional string assignee = 16;</code> 2531 */ 2532 com.google.protobuf.ByteString 2533 getAssigneeBytes(); 2534 2535 // optional string action_plan_key = 17; 2536 /** 2537 * <code>optional string action_plan_key = 17;</code> 2538 */ 2539 boolean hasActionPlanKey(); 2540 /** 2541 * <code>optional string action_plan_key = 17;</code> 2542 */ 2543 java.lang.String getActionPlanKey(); 2544 /** 2545 * <code>optional string action_plan_key = 17;</code> 2546 */ 2547 com.google.protobuf.ByteString 2548 getActionPlanKeyBytes(); 2549 2550 // optional string attributes = 18; 2551 /** 2552 * <code>optional string attributes = 18;</code> 2553 */ 2554 boolean hasAttributes(); 2555 /** 2556 * <code>optional string attributes = 18;</code> 2557 */ 2558 java.lang.String getAttributes(); 2559 /** 2560 * <code>optional string attributes = 18;</code> 2561 */ 2562 com.google.protobuf.ByteString 2563 getAttributesBytes(); 2564 2565 // optional string author_login = 19; 2566 /** 2567 * <code>optional string author_login = 19;</code> 2568 */ 2569 boolean hasAuthorLogin(); 2570 /** 2571 * <code>optional string author_login = 19;</code> 2572 */ 2573 java.lang.String getAuthorLogin(); 2574 /** 2575 * <code>optional string author_login = 19;</code> 2576 */ 2577 com.google.protobuf.ByteString 2578 getAuthorLoginBytes(); 2579 2580 // optional int64 creation_date = 20; 2581 /** 2582 * <code>optional int64 creation_date = 20;</code> 2583 */ 2584 boolean hasCreationDate(); 2585 /** 2586 * <code>optional int64 creation_date = 20;</code> 2587 */ 2588 long getCreationDate(); 2589 2590 // optional int64 close_date = 21; 2591 /** 2592 * <code>optional int64 close_date = 21;</code> 2593 */ 2594 boolean hasCloseDate(); 2595 /** 2596 * <code>optional int64 close_date = 21;</code> 2597 */ 2598 long getCloseDate(); 2599 2600 // optional int64 update_date = 22; 2601 /** 2602 * <code>optional int64 update_date = 22;</code> 2603 */ 2604 boolean hasUpdateDate(); 2605 /** 2606 * <code>optional int64 update_date = 22;</code> 2607 */ 2608 long getUpdateDate(); 2609 2610 // optional int64 selected_at = 23; 2611 /** 2612 * <code>optional int64 selected_at = 23;</code> 2613 */ 2614 boolean hasSelectedAt(); 2615 /** 2616 * <code>optional int64 selected_at = 23;</code> 2617 */ 2618 long getSelectedAt(); 2619 2620 // optional string diff_fields = 24; 2621 /** 2622 * <code>optional string diff_fields = 24;</code> 2623 */ 2624 boolean hasDiffFields(); 2625 /** 2626 * <code>optional string diff_fields = 24;</code> 2627 */ 2628 java.lang.String getDiffFields(); 2629 /** 2630 * <code>optional string diff_fields = 24;</code> 2631 */ 2632 com.google.protobuf.ByteString 2633 getDiffFieldsBytes(); 2634 2635 // optional bool is_changed = 25; 2636 /** 2637 * <code>optional bool is_changed = 25;</code> 2638 */ 2639 boolean hasIsChanged(); 2640 /** 2641 * <code>optional bool is_changed = 25;</code> 2642 */ 2643 boolean getIsChanged(); 2644 2645 // optional bool must_send_notification = 26; 2646 /** 2647 * <code>optional bool must_send_notification = 26;</code> 2648 */ 2649 boolean hasMustSendNotification(); 2650 /** 2651 * <code>optional bool must_send_notification = 26;</code> 2652 */ 2653 boolean getMustSendNotification(); 2654 } 2655 /** 2656 * Protobuf type {@code Issue} 2657 */ 2658 public static final class Issue extends 2659 com.google.protobuf.GeneratedMessage 2660 implements IssueOrBuilder { 2661 // Use Issue.newBuilder() to construct. 2662 private Issue(com.google.protobuf.GeneratedMessage.Builder<?> builder) { 2663 super(builder); 2664 this.unknownFields = builder.getUnknownFields(); 2665 } 2666 private Issue(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } 2667 2668 private static final Issue defaultInstance; 2669 public static Issue getDefaultInstance() { 2670 return defaultInstance; 2671 } 2672 2673 public Issue getDefaultInstanceForType() { 2674 return defaultInstance; 2675 } 2676 2677 private final com.google.protobuf.UnknownFieldSet unknownFields; 2678 @java.lang.Override 2679 public final com.google.protobuf.UnknownFieldSet 2680 getUnknownFields() { 2681 return this.unknownFields; 2682 } 2683 private Issue( 2684 com.google.protobuf.CodedInputStream input, 2685 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2686 throws com.google.protobuf.InvalidProtocolBufferException { 2687 initFields(); 2688 int mutable_bitField0_ = 0; 2689 com.google.protobuf.UnknownFieldSet.Builder unknownFields = 2690 com.google.protobuf.UnknownFieldSet.newBuilder(); 2691 try { 2692 boolean done = false; 2693 while (!done) { 2694 int tag = input.readTag(); 2695 switch (tag) { 2696 case 0: 2697 done = true; 2698 break; 2699 default: { 2700 if (!parseUnknownField(input, unknownFields, 2701 extensionRegistry, tag)) { 2702 done = true; 2703 } 2704 break; 2705 } 2706 case 10: { 2707 bitField0_ |= 0x00000001; 2708 ruleRepository_ = input.readBytes(); 2709 break; 2710 } 2711 case 18: { 2712 bitField0_ |= 0x00000002; 2713 ruleKey_ = input.readBytes(); 2714 break; 2715 } 2716 case 24: { 2717 bitField0_ |= 0x00000004; 2718 line_ = input.readInt32(); 2719 break; 2720 } 2721 case 34: { 2722 bitField0_ |= 0x00000008; 2723 msg_ = input.readBytes(); 2724 break; 2725 } 2726 case 40: { 2727 int rawValue = input.readEnum(); 2728 org.sonar.batch.protocol.Constants.Severity value = org.sonar.batch.protocol.Constants.Severity.valueOf(rawValue); 2729 if (value == null) { 2730 unknownFields.mergeVarintField(5, rawValue); 2731 } else { 2732 bitField0_ |= 0x00000010; 2733 severity_ = value; 2734 } 2735 break; 2736 } 2737 case 50: { 2738 if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { 2739 tags_ = new com.google.protobuf.LazyStringArrayList(); 2740 mutable_bitField0_ |= 0x00000020; 2741 } 2742 tags_.add(input.readBytes()); 2743 break; 2744 } 2745 case 57: { 2746 bitField0_ |= 0x00000020; 2747 effortToFix_ = input.readDouble(); 2748 break; 2749 } 2750 case 64: { 2751 bitField0_ |= 0x00000040; 2752 isNew_ = input.readBool(); 2753 break; 2754 } 2755 case 74: { 2756 bitField0_ |= 0x00000080; 2757 uuid_ = input.readBytes(); 2758 break; 2759 } 2760 case 80: { 2761 bitField0_ |= 0x00000100; 2762 debtInMinutes_ = input.readInt64(); 2763 break; 2764 } 2765 case 90: { 2766 bitField0_ |= 0x00000200; 2767 resolution_ = input.readBytes(); 2768 break; 2769 } 2770 case 98: { 2771 bitField0_ |= 0x00000400; 2772 status_ = input.readBytes(); 2773 break; 2774 } 2775 case 106: { 2776 bitField0_ |= 0x00000800; 2777 checksum_ = input.readBytes(); 2778 break; 2779 } 2780 case 112: { 2781 bitField0_ |= 0x00001000; 2782 manualSeverity_ = input.readBool(); 2783 break; 2784 } 2785 case 122: { 2786 bitField0_ |= 0x00002000; 2787 reporter_ = input.readBytes(); 2788 break; 2789 } 2790 case 130: { 2791 bitField0_ |= 0x00004000; 2792 assignee_ = input.readBytes(); 2793 break; 2794 } 2795 case 138: { 2796 bitField0_ |= 0x00008000; 2797 actionPlanKey_ = input.readBytes(); 2798 break; 2799 } 2800 case 146: { 2801 bitField0_ |= 0x00010000; 2802 attributes_ = input.readBytes(); 2803 break; 2804 } 2805 case 154: { 2806 bitField0_ |= 0x00020000; 2807 authorLogin_ = input.readBytes(); 2808 break; 2809 } 2810 case 160: { 2811 bitField0_ |= 0x00040000; 2812 creationDate_ = input.readInt64(); 2813 break; 2814 } 2815 case 168: { 2816 bitField0_ |= 0x00080000; 2817 closeDate_ = input.readInt64(); 2818 break; 2819 } 2820 case 176: { 2821 bitField0_ |= 0x00100000; 2822 updateDate_ = input.readInt64(); 2823 break; 2824 } 2825 case 184: { 2826 bitField0_ |= 0x00200000; 2827 selectedAt_ = input.readInt64(); 2828 break; 2829 } 2830 case 194: { 2831 bitField0_ |= 0x00400000; 2832 diffFields_ = input.readBytes(); 2833 break; 2834 } 2835 case 200: { 2836 bitField0_ |= 0x00800000; 2837 isChanged_ = input.readBool(); 2838 break; 2839 } 2840 case 208: { 2841 bitField0_ |= 0x01000000; 2842 mustSendNotification_ = input.readBool(); 2843 break; 2844 } 2845 } 2846 } 2847 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 2848 throw e.setUnfinishedMessage(this); 2849 } catch (java.io.IOException e) { 2850 throw new com.google.protobuf.InvalidProtocolBufferException( 2851 e.getMessage()).setUnfinishedMessage(this); 2852 } finally { 2853 if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) { 2854 tags_ = new com.google.protobuf.UnmodifiableLazyStringList(tags_); 2855 } 2856 this.unknownFields = unknownFields.build(); 2857 makeExtensionsImmutable(); 2858 } 2859 } 2860 public static final com.google.protobuf.Descriptors.Descriptor 2861 getDescriptor() { 2862 return org.sonar.batch.protocol.output.BatchReport.internal_static_Issue_descriptor; 2863 } 2864 2865 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 2866 internalGetFieldAccessorTable() { 2867 return org.sonar.batch.protocol.output.BatchReport.internal_static_Issue_fieldAccessorTable 2868 .ensureFieldAccessorsInitialized( 2869 org.sonar.batch.protocol.output.BatchReport.Issue.class, org.sonar.batch.protocol.output.BatchReport.Issue.Builder.class); 2870 } 2871 2872 public static com.google.protobuf.Parser<Issue> PARSER = 2873 new com.google.protobuf.AbstractParser<Issue>() { 2874 public Issue parsePartialFrom( 2875 com.google.protobuf.CodedInputStream input, 2876 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2877 throws com.google.protobuf.InvalidProtocolBufferException { 2878 return new Issue(input, extensionRegistry); 2879 } 2880 }; 2881 2882 @java.lang.Override 2883 public com.google.protobuf.Parser<Issue> getParserForType() { 2884 return PARSER; 2885 } 2886 2887 private int bitField0_; 2888 // optional string rule_repository = 1; 2889 public static final int RULE_REPOSITORY_FIELD_NUMBER = 1; 2890 private java.lang.Object ruleRepository_; 2891 /** 2892 * <code>optional string rule_repository = 1;</code> 2893 */ 2894 public boolean hasRuleRepository() { 2895 return ((bitField0_ & 0x00000001) == 0x00000001); 2896 } 2897 /** 2898 * <code>optional string rule_repository = 1;</code> 2899 */ 2900 public java.lang.String getRuleRepository() { 2901 java.lang.Object ref = ruleRepository_; 2902 if (ref instanceof java.lang.String) { 2903 return (java.lang.String) ref; 2904 } else { 2905 com.google.protobuf.ByteString bs = 2906 (com.google.protobuf.ByteString) ref; 2907 java.lang.String s = bs.toStringUtf8(); 2908 if (bs.isValidUtf8()) { 2909 ruleRepository_ = s; 2910 } 2911 return s; 2912 } 2913 } 2914 /** 2915 * <code>optional string rule_repository = 1;</code> 2916 */ 2917 public com.google.protobuf.ByteString 2918 getRuleRepositoryBytes() { 2919 java.lang.Object ref = ruleRepository_; 2920 if (ref instanceof java.lang.String) { 2921 com.google.protobuf.ByteString b = 2922 com.google.protobuf.ByteString.copyFromUtf8( 2923 (java.lang.String) ref); 2924 ruleRepository_ = b; 2925 return b; 2926 } else { 2927 return (com.google.protobuf.ByteString) ref; 2928 } 2929 } 2930 2931 // optional string rule_key = 2; 2932 public static final int RULE_KEY_FIELD_NUMBER = 2; 2933 private java.lang.Object ruleKey_; 2934 /** 2935 * <code>optional string rule_key = 2;</code> 2936 */ 2937 public boolean hasRuleKey() { 2938 return ((bitField0_ & 0x00000002) == 0x00000002); 2939 } 2940 /** 2941 * <code>optional string rule_key = 2;</code> 2942 */ 2943 public java.lang.String getRuleKey() { 2944 java.lang.Object ref = ruleKey_; 2945 if (ref instanceof java.lang.String) { 2946 return (java.lang.String) ref; 2947 } else { 2948 com.google.protobuf.ByteString bs = 2949 (com.google.protobuf.ByteString) ref; 2950 java.lang.String s = bs.toStringUtf8(); 2951 if (bs.isValidUtf8()) { 2952 ruleKey_ = s; 2953 } 2954 return s; 2955 } 2956 } 2957 /** 2958 * <code>optional string rule_key = 2;</code> 2959 */ 2960 public com.google.protobuf.ByteString 2961 getRuleKeyBytes() { 2962 java.lang.Object ref = ruleKey_; 2963 if (ref instanceof java.lang.String) { 2964 com.google.protobuf.ByteString b = 2965 com.google.protobuf.ByteString.copyFromUtf8( 2966 (java.lang.String) ref); 2967 ruleKey_ = b; 2968 return b; 2969 } else { 2970 return (com.google.protobuf.ByteString) ref; 2971 } 2972 } 2973 2974 // optional int32 line = 3; 2975 public static final int LINE_FIELD_NUMBER = 3; 2976 private int line_; 2977 /** 2978 * <code>optional int32 line = 3;</code> 2979 */ 2980 public boolean hasLine() { 2981 return ((bitField0_ & 0x00000004) == 0x00000004); 2982 } 2983 /** 2984 * <code>optional int32 line = 3;</code> 2985 */ 2986 public int getLine() { 2987 return line_; 2988 } 2989 2990 // optional string msg = 4; 2991 public static final int MSG_FIELD_NUMBER = 4; 2992 private java.lang.Object msg_; 2993 /** 2994 * <code>optional string msg = 4;</code> 2995 */ 2996 public boolean hasMsg() { 2997 return ((bitField0_ & 0x00000008) == 0x00000008); 2998 } 2999 /** 3000 * <code>optional string msg = 4;</code> 3001 */ 3002 public java.lang.String getMsg() { 3003 java.lang.Object ref = msg_; 3004 if (ref instanceof java.lang.String) { 3005 return (java.lang.String) ref; 3006 } else { 3007 com.google.protobuf.ByteString bs = 3008 (com.google.protobuf.ByteString) ref; 3009 java.lang.String s = bs.toStringUtf8(); 3010 if (bs.isValidUtf8()) { 3011 msg_ = s; 3012 } 3013 return s; 3014 } 3015 } 3016 /** 3017 * <code>optional string msg = 4;</code> 3018 */ 3019 public com.google.protobuf.ByteString 3020 getMsgBytes() { 3021 java.lang.Object ref = msg_; 3022 if (ref instanceof java.lang.String) { 3023 com.google.protobuf.ByteString b = 3024 com.google.protobuf.ByteString.copyFromUtf8( 3025 (java.lang.String) ref); 3026 msg_ = b; 3027 return b; 3028 } else { 3029 return (com.google.protobuf.ByteString) ref; 3030 } 3031 } 3032 3033 // optional .Severity severity = 5; 3034 public static final int SEVERITY_FIELD_NUMBER = 5; 3035 private org.sonar.batch.protocol.Constants.Severity severity_; 3036 /** 3037 * <code>optional .Severity severity = 5;</code> 3038 */ 3039 public boolean hasSeverity() { 3040 return ((bitField0_ & 0x00000010) == 0x00000010); 3041 } 3042 /** 3043 * <code>optional .Severity severity = 5;</code> 3044 */ 3045 public org.sonar.batch.protocol.Constants.Severity getSeverity() { 3046 return severity_; 3047 } 3048 3049 // repeated string tags = 6; 3050 public static final int TAGS_FIELD_NUMBER = 6; 3051 private com.google.protobuf.LazyStringList tags_; 3052 /** 3053 * <code>repeated string tags = 6;</code> 3054 */ 3055 public java.util.List<java.lang.String> 3056 getTagsList() { 3057 return tags_; 3058 } 3059 /** 3060 * <code>repeated string tags = 6;</code> 3061 */ 3062 public int getTagsCount() { 3063 return tags_.size(); 3064 } 3065 /** 3066 * <code>repeated string tags = 6;</code> 3067 */ 3068 public java.lang.String getTags(int index) { 3069 return tags_.get(index); 3070 } 3071 /** 3072 * <code>repeated string tags = 6;</code> 3073 */ 3074 public com.google.protobuf.ByteString 3075 getTagsBytes(int index) { 3076 return tags_.getByteString(index); 3077 } 3078 3079 // optional double effort_to_fix = 7; 3080 public static final int EFFORT_TO_FIX_FIELD_NUMBER = 7; 3081 private double effortToFix_; 3082 /** 3083 * <code>optional double effort_to_fix = 7;</code> 3084 * 3085 * <pre> 3086 * temporary fields during development of computation stack 3087 * </pre> 3088 */ 3089 public boolean hasEffortToFix() { 3090 return ((bitField0_ & 0x00000020) == 0x00000020); 3091 } 3092 /** 3093 * <code>optional double effort_to_fix = 7;</code> 3094 * 3095 * <pre> 3096 * temporary fields during development of computation stack 3097 * </pre> 3098 */ 3099 public double getEffortToFix() { 3100 return effortToFix_; 3101 } 3102 3103 // optional bool is_new = 8; 3104 public static final int IS_NEW_FIELD_NUMBER = 8; 3105 private boolean isNew_; 3106 /** 3107 * <code>optional bool is_new = 8;</code> 3108 */ 3109 public boolean hasIsNew() { 3110 return ((bitField0_ & 0x00000040) == 0x00000040); 3111 } 3112 /** 3113 * <code>optional bool is_new = 8;</code> 3114 */ 3115 public boolean getIsNew() { 3116 return isNew_; 3117 } 3118 3119 // optional string uuid = 9; 3120 public static final int UUID_FIELD_NUMBER = 9; 3121 private java.lang.Object uuid_; 3122 /** 3123 * <code>optional string uuid = 9;</code> 3124 */ 3125 public boolean hasUuid() { 3126 return ((bitField0_ & 0x00000080) == 0x00000080); 3127 } 3128 /** 3129 * <code>optional string uuid = 9;</code> 3130 */ 3131 public java.lang.String getUuid() { 3132 java.lang.Object ref = uuid_; 3133 if (ref instanceof java.lang.String) { 3134 return (java.lang.String) ref; 3135 } else { 3136 com.google.protobuf.ByteString bs = 3137 (com.google.protobuf.ByteString) ref; 3138 java.lang.String s = bs.toStringUtf8(); 3139 if (bs.isValidUtf8()) { 3140 uuid_ = s; 3141 } 3142 return s; 3143 } 3144 } 3145 /** 3146 * <code>optional string uuid = 9;</code> 3147 */ 3148 public com.google.protobuf.ByteString 3149 getUuidBytes() { 3150 java.lang.Object ref = uuid_; 3151 if (ref instanceof java.lang.String) { 3152 com.google.protobuf.ByteString b = 3153 com.google.protobuf.ByteString.copyFromUtf8( 3154 (java.lang.String) ref); 3155 uuid_ = b; 3156 return b; 3157 } else { 3158 return (com.google.protobuf.ByteString) ref; 3159 } 3160 } 3161 3162 // optional int64 debt_in_minutes = 10; 3163 public static final int DEBT_IN_MINUTES_FIELD_NUMBER = 10; 3164 private long debtInMinutes_; 3165 /** 3166 * <code>optional int64 debt_in_minutes = 10;</code> 3167 */ 3168 public boolean hasDebtInMinutes() { 3169 return ((bitField0_ & 0x00000100) == 0x00000100); 3170 } 3171 /** 3172 * <code>optional int64 debt_in_minutes = 10;</code> 3173 */ 3174 public long getDebtInMinutes() { 3175 return debtInMinutes_; 3176 } 3177 3178 // optional string resolution = 11; 3179 public static final int RESOLUTION_FIELD_NUMBER = 11; 3180 private java.lang.Object resolution_; 3181 /** 3182 * <code>optional string resolution = 11;</code> 3183 */ 3184 public boolean hasResolution() { 3185 return ((bitField0_ & 0x00000200) == 0x00000200); 3186 } 3187 /** 3188 * <code>optional string resolution = 11;</code> 3189 */ 3190 public java.lang.String getResolution() { 3191 java.lang.Object ref = resolution_; 3192 if (ref instanceof java.lang.String) { 3193 return (java.lang.String) ref; 3194 } else { 3195 com.google.protobuf.ByteString bs = 3196 (com.google.protobuf.ByteString) ref; 3197 java.lang.String s = bs.toStringUtf8(); 3198 if (bs.isValidUtf8()) { 3199 resolution_ = s; 3200 } 3201 return s; 3202 } 3203 } 3204 /** 3205 * <code>optional string resolution = 11;</code> 3206 */ 3207 public com.google.protobuf.ByteString 3208 getResolutionBytes() { 3209 java.lang.Object ref = resolution_; 3210 if (ref instanceof java.lang.String) { 3211 com.google.protobuf.ByteString b = 3212 com.google.protobuf.ByteString.copyFromUtf8( 3213 (java.lang.String) ref); 3214 resolution_ = b; 3215 return b; 3216 } else { 3217 return (com.google.protobuf.ByteString) ref; 3218 } 3219 } 3220 3221 // optional string status = 12; 3222 public static final int STATUS_FIELD_NUMBER = 12; 3223 private java.lang.Object status_; 3224 /** 3225 * <code>optional string status = 12;</code> 3226 */ 3227 public boolean hasStatus() { 3228 return ((bitField0_ & 0x00000400) == 0x00000400); 3229 } 3230 /** 3231 * <code>optional string status = 12;</code> 3232 */ 3233 public java.lang.String getStatus() { 3234 java.lang.Object ref = status_; 3235 if (ref instanceof java.lang.String) { 3236 return (java.lang.String) ref; 3237 } else { 3238 com.google.protobuf.ByteString bs = 3239 (com.google.protobuf.ByteString) ref; 3240 java.lang.String s = bs.toStringUtf8(); 3241 if (bs.isValidUtf8()) { 3242 status_ = s; 3243 } 3244 return s; 3245 } 3246 } 3247 /** 3248 * <code>optional string status = 12;</code> 3249 */ 3250 public com.google.protobuf.ByteString 3251 getStatusBytes() { 3252 java.lang.Object ref = status_; 3253 if (ref instanceof java.lang.String) { 3254 com.google.protobuf.ByteString b = 3255 com.google.protobuf.ByteString.copyFromUtf8( 3256 (java.lang.String) ref); 3257 status_ = b; 3258 return b; 3259 } else { 3260 return (com.google.protobuf.ByteString) ref; 3261 } 3262 } 3263 3264 // optional string checksum = 13; 3265 public static final int CHECKSUM_FIELD_NUMBER = 13; 3266 private java.lang.Object checksum_; 3267 /** 3268 * <code>optional string checksum = 13;</code> 3269 */ 3270 public boolean hasChecksum() { 3271 return ((bitField0_ & 0x00000800) == 0x00000800); 3272 } 3273 /** 3274 * <code>optional string checksum = 13;</code> 3275 */ 3276 public java.lang.String getChecksum() { 3277 java.lang.Object ref = checksum_; 3278 if (ref instanceof java.lang.String) { 3279 return (java.lang.String) ref; 3280 } else { 3281 com.google.protobuf.ByteString bs = 3282 (com.google.protobuf.ByteString) ref; 3283 java.lang.String s = bs.toStringUtf8(); 3284 if (bs.isValidUtf8()) { 3285 checksum_ = s; 3286 } 3287 return s; 3288 } 3289 } 3290 /** 3291 * <code>optional string checksum = 13;</code> 3292 */ 3293 public com.google.protobuf.ByteString 3294 getChecksumBytes() { 3295 java.lang.Object ref = checksum_; 3296 if (ref instanceof java.lang.String) { 3297 com.google.protobuf.ByteString b = 3298 com.google.protobuf.ByteString.copyFromUtf8( 3299 (java.lang.String) ref); 3300 checksum_ = b; 3301 return b; 3302 } else { 3303 return (com.google.protobuf.ByteString) ref; 3304 } 3305 } 3306 3307 // optional bool manual_severity = 14; 3308 public static final int MANUAL_SEVERITY_FIELD_NUMBER = 14; 3309 private boolean manualSeverity_; 3310 /** 3311 * <code>optional bool manual_severity = 14;</code> 3312 */ 3313 public boolean hasManualSeverity() { 3314 return ((bitField0_ & 0x00001000) == 0x00001000); 3315 } 3316 /** 3317 * <code>optional bool manual_severity = 14;</code> 3318 */ 3319 public boolean getManualSeverity() { 3320 return manualSeverity_; 3321 } 3322 3323 // optional string reporter = 15; 3324 public static final int REPORTER_FIELD_NUMBER = 15; 3325 private java.lang.Object reporter_; 3326 /** 3327 * <code>optional string reporter = 15;</code> 3328 */ 3329 public boolean hasReporter() { 3330 return ((bitField0_ & 0x00002000) == 0x00002000); 3331 } 3332 /** 3333 * <code>optional string reporter = 15;</code> 3334 */ 3335 public java.lang.String getReporter() { 3336 java.lang.Object ref = reporter_; 3337 if (ref instanceof java.lang.String) { 3338 return (java.lang.String) ref; 3339 } else { 3340 com.google.protobuf.ByteString bs = 3341 (com.google.protobuf.ByteString) ref; 3342 java.lang.String s = bs.toStringUtf8(); 3343 if (bs.isValidUtf8()) { 3344 reporter_ = s; 3345 } 3346 return s; 3347 } 3348 } 3349 /** 3350 * <code>optional string reporter = 15;</code> 3351 */ 3352 public com.google.protobuf.ByteString 3353 getReporterBytes() { 3354 java.lang.Object ref = reporter_; 3355 if (ref instanceof java.lang.String) { 3356 com.google.protobuf.ByteString b = 3357 com.google.protobuf.ByteString.copyFromUtf8( 3358 (java.lang.String) ref); 3359 reporter_ = b; 3360 return b; 3361 } else { 3362 return (com.google.protobuf.ByteString) ref; 3363 } 3364 } 3365 3366 // optional string assignee = 16; 3367 public static final int ASSIGNEE_FIELD_NUMBER = 16; 3368 private java.lang.Object assignee_; 3369 /** 3370 * <code>optional string assignee = 16;</code> 3371 */ 3372 public boolean hasAssignee() { 3373 return ((bitField0_ & 0x00004000) == 0x00004000); 3374 } 3375 /** 3376 * <code>optional string assignee = 16;</code> 3377 */ 3378 public java.lang.String getAssignee() { 3379 java.lang.Object ref = assignee_; 3380 if (ref instanceof java.lang.String) { 3381 return (java.lang.String) ref; 3382 } else { 3383 com.google.protobuf.ByteString bs = 3384 (com.google.protobuf.ByteString) ref; 3385 java.lang.String s = bs.toStringUtf8(); 3386 if (bs.isValidUtf8()) { 3387 assignee_ = s; 3388 } 3389 return s; 3390 } 3391 } 3392 /** 3393 * <code>optional string assignee = 16;</code> 3394 */ 3395 public com.google.protobuf.ByteString 3396 getAssigneeBytes() { 3397 java.lang.Object ref = assignee_; 3398 if (ref instanceof java.lang.String) { 3399 com.google.protobuf.ByteString b = 3400 com.google.protobuf.ByteString.copyFromUtf8( 3401 (java.lang.String) ref); 3402 assignee_ = b; 3403 return b; 3404 } else { 3405 return (com.google.protobuf.ByteString) ref; 3406 } 3407 } 3408 3409 // optional string action_plan_key = 17; 3410 public static final int ACTION_PLAN_KEY_FIELD_NUMBER = 17; 3411 private java.lang.Object actionPlanKey_; 3412 /** 3413 * <code>optional string action_plan_key = 17;</code> 3414 */ 3415 public boolean hasActionPlanKey() { 3416 return ((bitField0_ & 0x00008000) == 0x00008000); 3417 } 3418 /** 3419 * <code>optional string action_plan_key = 17;</code> 3420 */ 3421 public java.lang.String getActionPlanKey() { 3422 java.lang.Object ref = actionPlanKey_; 3423 if (ref instanceof java.lang.String) { 3424 return (java.lang.String) ref; 3425 } else { 3426 com.google.protobuf.ByteString bs = 3427 (com.google.protobuf.ByteString) ref; 3428 java.lang.String s = bs.toStringUtf8(); 3429 if (bs.isValidUtf8()) { 3430 actionPlanKey_ = s; 3431 } 3432 return s; 3433 } 3434 } 3435 /** 3436 * <code>optional string action_plan_key = 17;</code> 3437 */ 3438 public com.google.protobuf.ByteString 3439 getActionPlanKeyBytes() { 3440 java.lang.Object ref = actionPlanKey_; 3441 if (ref instanceof java.lang.String) { 3442 com.google.protobuf.ByteString b = 3443 com.google.protobuf.ByteString.copyFromUtf8( 3444 (java.lang.String) ref); 3445 actionPlanKey_ = b; 3446 return b; 3447 } else { 3448 return (com.google.protobuf.ByteString) ref; 3449 } 3450 } 3451 3452 // optional string attributes = 18; 3453 public static final int ATTRIBUTES_FIELD_NUMBER = 18; 3454 private java.lang.Object attributes_; 3455 /** 3456 * <code>optional string attributes = 18;</code> 3457 */ 3458 public boolean hasAttributes() { 3459 return ((bitField0_ & 0x00010000) == 0x00010000); 3460 } 3461 /** 3462 * <code>optional string attributes = 18;</code> 3463 */ 3464 public java.lang.String getAttributes() { 3465 java.lang.Object ref = attributes_; 3466 if (ref instanceof java.lang.String) { 3467 return (java.lang.String) ref; 3468 } else { 3469 com.google.protobuf.ByteString bs = 3470 (com.google.protobuf.ByteString) ref; 3471 java.lang.String s = bs.toStringUtf8(); 3472 if (bs.isValidUtf8()) { 3473 attributes_ = s; 3474 } 3475 return s; 3476 } 3477 } 3478 /** 3479 * <code>optional string attributes = 18;</code> 3480 */ 3481 public com.google.protobuf.ByteString 3482 getAttributesBytes() { 3483 java.lang.Object ref = attributes_; 3484 if (ref instanceof java.lang.String) { 3485 com.google.protobuf.ByteString b = 3486 com.google.protobuf.ByteString.copyFromUtf8( 3487 (java.lang.String) ref); 3488 attributes_ = b; 3489 return b; 3490 } else { 3491 return (com.google.protobuf.ByteString) ref; 3492 } 3493 } 3494 3495 // optional string author_login = 19; 3496 public static final int AUTHOR_LOGIN_FIELD_NUMBER = 19; 3497 private java.lang.Object authorLogin_; 3498 /** 3499 * <code>optional string author_login = 19;</code> 3500 */ 3501 public boolean hasAuthorLogin() { 3502 return ((bitField0_ & 0x00020000) == 0x00020000); 3503 } 3504 /** 3505 * <code>optional string author_login = 19;</code> 3506 */ 3507 public java.lang.String getAuthorLogin() { 3508 java.lang.Object ref = authorLogin_; 3509 if (ref instanceof java.lang.String) { 3510 return (java.lang.String) ref; 3511 } else { 3512 com.google.protobuf.ByteString bs = 3513 (com.google.protobuf.ByteString) ref; 3514 java.lang.String s = bs.toStringUtf8(); 3515 if (bs.isValidUtf8()) { 3516 authorLogin_ = s; 3517 } 3518 return s; 3519 } 3520 } 3521 /** 3522 * <code>optional string author_login = 19;</code> 3523 */ 3524 public com.google.protobuf.ByteString 3525 getAuthorLoginBytes() { 3526 java.lang.Object ref = authorLogin_; 3527 if (ref instanceof java.lang.String) { 3528 com.google.protobuf.ByteString b = 3529 com.google.protobuf.ByteString.copyFromUtf8( 3530 (java.lang.String) ref); 3531 authorLogin_ = b; 3532 return b; 3533 } else { 3534 return (com.google.protobuf.ByteString) ref; 3535 } 3536 } 3537 3538 // optional int64 creation_date = 20; 3539 public static final int CREATION_DATE_FIELD_NUMBER = 20; 3540 private long creationDate_; 3541 /** 3542 * <code>optional int64 creation_date = 20;</code> 3543 */ 3544 public boolean hasCreationDate() { 3545 return ((bitField0_ & 0x00040000) == 0x00040000); 3546 } 3547 /** 3548 * <code>optional int64 creation_date = 20;</code> 3549 */ 3550 public long getCreationDate() { 3551 return creationDate_; 3552 } 3553 3554 // optional int64 close_date = 21; 3555 public static final int CLOSE_DATE_FIELD_NUMBER = 21; 3556 private long closeDate_; 3557 /** 3558 * <code>optional int64 close_date = 21;</code> 3559 */ 3560 public boolean hasCloseDate() { 3561 return ((bitField0_ & 0x00080000) == 0x00080000); 3562 } 3563 /** 3564 * <code>optional int64 close_date = 21;</code> 3565 */ 3566 public long getCloseDate() { 3567 return closeDate_; 3568 } 3569 3570 // optional int64 update_date = 22; 3571 public static final int UPDATE_DATE_FIELD_NUMBER = 22; 3572 private long updateDate_; 3573 /** 3574 * <code>optional int64 update_date = 22;</code> 3575 */ 3576 public boolean hasUpdateDate() { 3577 return ((bitField0_ & 0x00100000) == 0x00100000); 3578 } 3579 /** 3580 * <code>optional int64 update_date = 22;</code> 3581 */ 3582 public long getUpdateDate() { 3583 return updateDate_; 3584 } 3585 3586 // optional int64 selected_at = 23; 3587 public static final int SELECTED_AT_FIELD_NUMBER = 23; 3588 private long selectedAt_; 3589 /** 3590 * <code>optional int64 selected_at = 23;</code> 3591 */ 3592 public boolean hasSelectedAt() { 3593 return ((bitField0_ & 0x00200000) == 0x00200000); 3594 } 3595 /** 3596 * <code>optional int64 selected_at = 23;</code> 3597 */ 3598 public long getSelectedAt() { 3599 return selectedAt_; 3600 } 3601 3602 // optional string diff_fields = 24; 3603 public static final int DIFF_FIELDS_FIELD_NUMBER = 24; 3604 private java.lang.Object diffFields_; 3605 /** 3606 * <code>optional string diff_fields = 24;</code> 3607 */ 3608 public boolean hasDiffFields() { 3609 return ((bitField0_ & 0x00400000) == 0x00400000); 3610 } 3611 /** 3612 * <code>optional string diff_fields = 24;</code> 3613 */ 3614 public java.lang.String getDiffFields() { 3615 java.lang.Object ref = diffFields_; 3616 if (ref instanceof java.lang.String) { 3617 return (java.lang.String) ref; 3618 } else { 3619 com.google.protobuf.ByteString bs = 3620 (com.google.protobuf.ByteString) ref; 3621 java.lang.String s = bs.toStringUtf8(); 3622 if (bs.isValidUtf8()) { 3623 diffFields_ = s; 3624 } 3625 return s; 3626 } 3627 } 3628 /** 3629 * <code>optional string diff_fields = 24;</code> 3630 */ 3631 public com.google.protobuf.ByteString 3632 getDiffFieldsBytes() { 3633 java.lang.Object ref = diffFields_; 3634 if (ref instanceof java.lang.String) { 3635 com.google.protobuf.ByteString b = 3636 com.google.protobuf.ByteString.copyFromUtf8( 3637 (java.lang.String) ref); 3638 diffFields_ = b; 3639 return b; 3640 } else { 3641 return (com.google.protobuf.ByteString) ref; 3642 } 3643 } 3644 3645 // optional bool is_changed = 25; 3646 public static final int IS_CHANGED_FIELD_NUMBER = 25; 3647 private boolean isChanged_; 3648 /** 3649 * <code>optional bool is_changed = 25;</code> 3650 */ 3651 public boolean hasIsChanged() { 3652 return ((bitField0_ & 0x00800000) == 0x00800000); 3653 } 3654 /** 3655 * <code>optional bool is_changed = 25;</code> 3656 */ 3657 public boolean getIsChanged() { 3658 return isChanged_; 3659 } 3660 3661 // optional bool must_send_notification = 26; 3662 public static final int MUST_SEND_NOTIFICATION_FIELD_NUMBER = 26; 3663 private boolean mustSendNotification_; 3664 /** 3665 * <code>optional bool must_send_notification = 26;</code> 3666 */ 3667 public boolean hasMustSendNotification() { 3668 return ((bitField0_ & 0x01000000) == 0x01000000); 3669 } 3670 /** 3671 * <code>optional bool must_send_notification = 26;</code> 3672 */ 3673 public boolean getMustSendNotification() { 3674 return mustSendNotification_; 3675 } 3676 3677 private void initFields() { 3678 ruleRepository_ = ""; 3679 ruleKey_ = ""; 3680 line_ = 0; 3681 msg_ = ""; 3682 severity_ = org.sonar.batch.protocol.Constants.Severity.INFO; 3683 tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; 3684 effortToFix_ = 0D; 3685 isNew_ = false; 3686 uuid_ = ""; 3687 debtInMinutes_ = 0L; 3688 resolution_ = ""; 3689 status_ = ""; 3690 checksum_ = ""; 3691 manualSeverity_ = false; 3692 reporter_ = ""; 3693 assignee_ = ""; 3694 actionPlanKey_ = ""; 3695 attributes_ = ""; 3696 authorLogin_ = ""; 3697 creationDate_ = 0L; 3698 closeDate_ = 0L; 3699 updateDate_ = 0L; 3700 selectedAt_ = 0L; 3701 diffFields_ = ""; 3702 isChanged_ = false; 3703 mustSendNotification_ = false; 3704 } 3705 private byte memoizedIsInitialized = -1; 3706 public final boolean isInitialized() { 3707 byte isInitialized = memoizedIsInitialized; 3708 if (isInitialized != -1) return isInitialized == 1; 3709 3710 memoizedIsInitialized = 1; 3711 return true; 3712 } 3713 3714 public void writeTo(com.google.protobuf.CodedOutputStream output) 3715 throws java.io.IOException { 3716 getSerializedSize(); 3717 if (((bitField0_ & 0x00000001) == 0x00000001)) { 3718 output.writeBytes(1, getRuleRepositoryBytes()); 3719 } 3720 if (((bitField0_ & 0x00000002) == 0x00000002)) { 3721 output.writeBytes(2, getRuleKeyBytes()); 3722 } 3723 if (((bitField0_ & 0x00000004) == 0x00000004)) { 3724 output.writeInt32(3, line_); 3725 } 3726 if (((bitField0_ & 0x00000008) == 0x00000008)) { 3727 output.writeBytes(4, getMsgBytes()); 3728 } 3729 if (((bitField0_ & 0x00000010) == 0x00000010)) { 3730 output.writeEnum(5, severity_.getNumber()); 3731 } 3732 for (int i = 0; i < tags_.size(); i++) { 3733 output.writeBytes(6, tags_.getByteString(i)); 3734 } 3735 if (((bitField0_ & 0x00000020) == 0x00000020)) { 3736 output.writeDouble(7, effortToFix_); 3737 } 3738 if (((bitField0_ & 0x00000040) == 0x00000040)) { 3739 output.writeBool(8, isNew_); 3740 } 3741 if (((bitField0_ & 0x00000080) == 0x00000080)) { 3742 output.writeBytes(9, getUuidBytes()); 3743 } 3744 if (((bitField0_ & 0x00000100) == 0x00000100)) { 3745 output.writeInt64(10, debtInMinutes_); 3746 } 3747 if (((bitField0_ & 0x00000200) == 0x00000200)) { 3748 output.writeBytes(11, getResolutionBytes()); 3749 } 3750 if (((bitField0_ & 0x00000400) == 0x00000400)) { 3751 output.writeBytes(12, getStatusBytes()); 3752 } 3753 if (((bitField0_ & 0x00000800) == 0x00000800)) { 3754 output.writeBytes(13, getChecksumBytes()); 3755 } 3756 if (((bitField0_ & 0x00001000) == 0x00001000)) { 3757 output.writeBool(14, manualSeverity_); 3758 } 3759 if (((bitField0_ & 0x00002000) == 0x00002000)) { 3760 output.writeBytes(15, getReporterBytes()); 3761 } 3762 if (((bitField0_ & 0x00004000) == 0x00004000)) { 3763 output.writeBytes(16, getAssigneeBytes()); 3764 } 3765 if (((bitField0_ & 0x00008000) == 0x00008000)) { 3766 output.writeBytes(17, getActionPlanKeyBytes()); 3767 } 3768 if (((bitField0_ & 0x00010000) == 0x00010000)) { 3769 output.writeBytes(18, getAttributesBytes()); 3770 } 3771 if (((bitField0_ & 0x00020000) == 0x00020000)) { 3772 output.writeBytes(19, getAuthorLoginBytes()); 3773 } 3774 if (((bitField0_ & 0x00040000) == 0x00040000)) { 3775 output.writeInt64(20, creationDate_); 3776 } 3777 if (((bitField0_ & 0x00080000) == 0x00080000)) { 3778 output.writeInt64(21, closeDate_); 3779 } 3780 if (((bitField0_ & 0x00100000) == 0x00100000)) { 3781 output.writeInt64(22, updateDate_); 3782 } 3783 if (((bitField0_ & 0x00200000) == 0x00200000)) { 3784 output.writeInt64(23, selectedAt_); 3785 } 3786 if (((bitField0_ & 0x00400000) == 0x00400000)) { 3787 output.writeBytes(24, getDiffFieldsBytes()); 3788 } 3789 if (((bitField0_ & 0x00800000) == 0x00800000)) { 3790 output.writeBool(25, isChanged_); 3791 } 3792 if (((bitField0_ & 0x01000000) == 0x01000000)) { 3793 output.writeBool(26, mustSendNotification_); 3794 } 3795 getUnknownFields().writeTo(output); 3796 } 3797 3798 private int memoizedSerializedSize = -1; 3799 public int getSerializedSize() { 3800 int size = memoizedSerializedSize; 3801 if (size != -1) return size; 3802 3803 size = 0; 3804 if (((bitField0_ & 0x00000001) == 0x00000001)) { 3805 size += com.google.protobuf.CodedOutputStream 3806 .computeBytesSize(1, getRuleRepositoryBytes()); 3807 } 3808 if (((bitField0_ & 0x00000002) == 0x00000002)) { 3809 size += com.google.protobuf.CodedOutputStream 3810 .computeBytesSize(2, getRuleKeyBytes()); 3811 } 3812 if (((bitField0_ & 0x00000004) == 0x00000004)) { 3813 size += com.google.protobuf.CodedOutputStream 3814 .computeInt32Size(3, line_); 3815 } 3816 if (((bitField0_ & 0x00000008) == 0x00000008)) { 3817 size += com.google.protobuf.CodedOutputStream 3818 .computeBytesSize(4, getMsgBytes()); 3819 } 3820 if (((bitField0_ & 0x00000010) == 0x00000010)) { 3821 size += com.google.protobuf.CodedOutputStream 3822 .computeEnumSize(5, severity_.getNumber()); 3823 } 3824 { 3825 int dataSize = 0; 3826 for (int i = 0; i < tags_.size(); i++) { 3827 dataSize += com.google.protobuf.CodedOutputStream 3828 .computeBytesSizeNoTag(tags_.getByteString(i)); 3829 } 3830 size += dataSize; 3831 size += 1 * getTagsList().size(); 3832 } 3833 if (((bitField0_ & 0x00000020) == 0x00000020)) { 3834 size += com.google.protobuf.CodedOutputStream 3835 .computeDoubleSize(7, effortToFix_); 3836 } 3837 if (((bitField0_ & 0x00000040) == 0x00000040)) { 3838 size += com.google.protobuf.CodedOutputStream 3839 .computeBoolSize(8, isNew_); 3840 } 3841 if (((bitField0_ & 0x00000080) == 0x00000080)) { 3842 size += com.google.protobuf.CodedOutputStream 3843 .computeBytesSize(9, getUuidBytes()); 3844 } 3845 if (((bitField0_ & 0x00000100) == 0x00000100)) { 3846 size += com.google.protobuf.CodedOutputStream 3847 .computeInt64Size(10, debtInMinutes_); 3848 } 3849 if (((bitField0_ & 0x00000200) == 0x00000200)) { 3850 size += com.google.protobuf.CodedOutputStream 3851 .computeBytesSize(11, getResolutionBytes()); 3852 } 3853 if (((bitField0_ & 0x00000400) == 0x00000400)) { 3854 size += com.google.protobuf.CodedOutputStream 3855 .computeBytesSize(12, getStatusBytes()); 3856 } 3857 if (((bitField0_ & 0x00000800) == 0x00000800)) { 3858 size += com.google.protobuf.CodedOutputStream 3859 .computeBytesSize(13, getChecksumBytes()); 3860 } 3861 if (((bitField0_ & 0x00001000) == 0x00001000)) { 3862 size += com.google.protobuf.CodedOutputStream 3863 .computeBoolSize(14, manualSeverity_); 3864 } 3865 if (((bitField0_ & 0x00002000) == 0x00002000)) { 3866 size += com.google.protobuf.CodedOutputStream 3867 .computeBytesSize(15, getReporterBytes()); 3868 } 3869 if (((bitField0_ & 0x00004000) == 0x00004000)) { 3870 size += com.google.protobuf.CodedOutputStream 3871 .computeBytesSize(16, getAssigneeBytes()); 3872 } 3873 if (((bitField0_ & 0x00008000) == 0x00008000)) { 3874 size += com.google.protobuf.CodedOutputStream 3875 .computeBytesSize(17, getActionPlanKeyBytes()); 3876 } 3877 if (((bitField0_ & 0x00010000) == 0x00010000)) { 3878 size += com.google.protobuf.CodedOutputStream 3879 .computeBytesSize(18, getAttributesBytes()); 3880 } 3881 if (((bitField0_ & 0x00020000) == 0x00020000)) { 3882 size += com.google.protobuf.CodedOutputStream 3883 .computeBytesSize(19, getAuthorLoginBytes()); 3884 } 3885 if (((bitField0_ & 0x00040000) == 0x00040000)) { 3886 size += com.google.protobuf.CodedOutputStream 3887 .computeInt64Size(20, creationDate_); 3888 } 3889 if (((bitField0_ & 0x00080000) == 0x00080000)) { 3890 size += com.google.protobuf.CodedOutputStream 3891 .computeInt64Size(21, closeDate_); 3892 } 3893 if (((bitField0_ & 0x00100000) == 0x00100000)) { 3894 size += com.google.protobuf.CodedOutputStream 3895 .computeInt64Size(22, updateDate_); 3896 } 3897 if (((bitField0_ & 0x00200000) == 0x00200000)) { 3898 size += com.google.protobuf.CodedOutputStream 3899 .computeInt64Size(23, selectedAt_); 3900 } 3901 if (((bitField0_ & 0x00400000) == 0x00400000)) { 3902 size += com.google.protobuf.CodedOutputStream 3903 .computeBytesSize(24, getDiffFieldsBytes()); 3904 } 3905 if (((bitField0_ & 0x00800000) == 0x00800000)) { 3906 size += com.google.protobuf.CodedOutputStream 3907 .computeBoolSize(25, isChanged_); 3908 } 3909 if (((bitField0_ & 0x01000000) == 0x01000000)) { 3910 size += com.google.protobuf.CodedOutputStream 3911 .computeBoolSize(26, mustSendNotification_); 3912 } 3913 size += getUnknownFields().getSerializedSize(); 3914 memoizedSerializedSize = size; 3915 return size; 3916 } 3917 3918 private static final long serialVersionUID = 0L; 3919 @java.lang.Override 3920 protected java.lang.Object writeReplace() 3921 throws java.io.ObjectStreamException { 3922 return super.writeReplace(); 3923 } 3924 3925 public static org.sonar.batch.protocol.output.BatchReport.Issue parseFrom( 3926 com.google.protobuf.ByteString data) 3927 throws com.google.protobuf.InvalidProtocolBufferException { 3928 return PARSER.parseFrom(data); 3929 } 3930 public static org.sonar.batch.protocol.output.BatchReport.Issue parseFrom( 3931 com.google.protobuf.ByteString data, 3932 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3933 throws com.google.protobuf.InvalidProtocolBufferException { 3934 return PARSER.parseFrom(data, extensionRegistry); 3935 } 3936 public static org.sonar.batch.protocol.output.BatchReport.Issue parseFrom(byte[] data) 3937 throws com.google.protobuf.InvalidProtocolBufferException { 3938 return PARSER.parseFrom(data); 3939 } 3940 public static org.sonar.batch.protocol.output.BatchReport.Issue parseFrom( 3941 byte[] data, 3942 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3943 throws com.google.protobuf.InvalidProtocolBufferException { 3944 return PARSER.parseFrom(data, extensionRegistry); 3945 } 3946 public static org.sonar.batch.protocol.output.BatchReport.Issue parseFrom(java.io.InputStream input) 3947 throws java.io.IOException { 3948 return PARSER.parseFrom(input); 3949 } 3950 public static org.sonar.batch.protocol.output.BatchReport.Issue parseFrom( 3951 java.io.InputStream input, 3952 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3953 throws java.io.IOException { 3954 return PARSER.parseFrom(input, extensionRegistry); 3955 } 3956 public static org.sonar.batch.protocol.output.BatchReport.Issue parseDelimitedFrom(java.io.InputStream input) 3957 throws java.io.IOException { 3958 return PARSER.parseDelimitedFrom(input); 3959 } 3960 public static org.sonar.batch.protocol.output.BatchReport.Issue parseDelimitedFrom( 3961 java.io.InputStream input, 3962 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3963 throws java.io.IOException { 3964 return PARSER.parseDelimitedFrom(input, extensionRegistry); 3965 } 3966 public static org.sonar.batch.protocol.output.BatchReport.Issue parseFrom( 3967 com.google.protobuf.CodedInputStream input) 3968 throws java.io.IOException { 3969 return PARSER.parseFrom(input); 3970 } 3971 public static org.sonar.batch.protocol.output.BatchReport.Issue parseFrom( 3972 com.google.protobuf.CodedInputStream input, 3973 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3974 throws java.io.IOException { 3975 return PARSER.parseFrom(input, extensionRegistry); 3976 } 3977 3978 public static Builder newBuilder() { return Builder.create(); } 3979 public Builder newBuilderForType() { return newBuilder(); } 3980 public static Builder newBuilder(org.sonar.batch.protocol.output.BatchReport.Issue prototype) { 3981 return newBuilder().mergeFrom(prototype); 3982 } 3983 public Builder toBuilder() { return newBuilder(this); } 3984 3985 @java.lang.Override 3986 protected Builder newBuilderForType( 3987 com.google.protobuf.GeneratedMessage.BuilderParent parent) { 3988 Builder builder = new Builder(parent); 3989 return builder; 3990 } 3991 /** 3992 * Protobuf type {@code Issue} 3993 */ 3994 public static final class Builder extends 3995 com.google.protobuf.GeneratedMessage.Builder<Builder> 3996 implements org.sonar.batch.protocol.output.BatchReport.IssueOrBuilder { 3997 public static final com.google.protobuf.Descriptors.Descriptor 3998 getDescriptor() { 3999 return org.sonar.batch.protocol.output.BatchReport.internal_static_Issue_descriptor; 4000 } 4001 4002 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 4003 internalGetFieldAccessorTable() { 4004 return org.sonar.batch.protocol.output.BatchReport.internal_static_Issue_fieldAccessorTable 4005 .ensureFieldAccessorsInitialized( 4006 org.sonar.batch.protocol.output.BatchReport.Issue.class, org.sonar.batch.protocol.output.BatchReport.Issue.Builder.class); 4007 } 4008 4009 // Construct using org.sonar.batch.protocol.output.BatchReport.Issue.newBuilder() 4010 private Builder() { 4011 maybeForceBuilderInitialization(); 4012 } 4013 4014 private Builder( 4015 com.google.protobuf.GeneratedMessage.BuilderParent parent) { 4016 super(parent); 4017 maybeForceBuilderInitialization(); 4018 } 4019 private void maybeForceBuilderInitialization() { 4020 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { 4021 } 4022 } 4023 private static Builder create() { 4024 return new Builder(); 4025 } 4026 4027 public Builder clear() { 4028 super.clear(); 4029 ruleRepository_ = ""; 4030 bitField0_ = (bitField0_ & ~0x00000001); 4031 ruleKey_ = ""; 4032 bitField0_ = (bitField0_ & ~0x00000002); 4033 line_ = 0; 4034 bitField0_ = (bitField0_ & ~0x00000004); 4035 msg_ = ""; 4036 bitField0_ = (bitField0_ & ~0x00000008); 4037 severity_ = org.sonar.batch.protocol.Constants.Severity.INFO; 4038 bitField0_ = (bitField0_ & ~0x00000010); 4039 tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; 4040 bitField0_ = (bitField0_ & ~0x00000020); 4041 effortToFix_ = 0D; 4042 bitField0_ = (bitField0_ & ~0x00000040); 4043 isNew_ = false; 4044 bitField0_ = (bitField0_ & ~0x00000080); 4045 uuid_ = ""; 4046 bitField0_ = (bitField0_ & ~0x00000100); 4047 debtInMinutes_ = 0L; 4048 bitField0_ = (bitField0_ & ~0x00000200); 4049 resolution_ = ""; 4050 bitField0_ = (bitField0_ & ~0x00000400); 4051 status_ = ""; 4052 bitField0_ = (bitField0_ & ~0x00000800); 4053 checksum_ = ""; 4054 bitField0_ = (bitField0_ & ~0x00001000); 4055 manualSeverity_ = false; 4056 bitField0_ = (bitField0_ & ~0x00002000); 4057 reporter_ = ""; 4058 bitField0_ = (bitField0_ & ~0x00004000); 4059 assignee_ = ""; 4060 bitField0_ = (bitField0_ & ~0x00008000); 4061 actionPlanKey_ = ""; 4062 bitField0_ = (bitField0_ & ~0x00010000); 4063 attributes_ = ""; 4064 bitField0_ = (bitField0_ & ~0x00020000); 4065 authorLogin_ = ""; 4066 bitField0_ = (bitField0_ & ~0x00040000); 4067 creationDate_ = 0L; 4068 bitField0_ = (bitField0_ & ~0x00080000); 4069 closeDate_ = 0L; 4070 bitField0_ = (bitField0_ & ~0x00100000); 4071 updateDate_ = 0L; 4072 bitField0_ = (bitField0_ & ~0x00200000); 4073 selectedAt_ = 0L; 4074 bitField0_ = (bitField0_ & ~0x00400000); 4075 diffFields_ = ""; 4076 bitField0_ = (bitField0_ & ~0x00800000); 4077 isChanged_ = false; 4078 bitField0_ = (bitField0_ & ~0x01000000); 4079 mustSendNotification_ = false; 4080 bitField0_ = (bitField0_ & ~0x02000000); 4081 return this; 4082 } 4083 4084 public Builder clone() { 4085 return create().mergeFrom(buildPartial()); 4086 } 4087 4088 public com.google.protobuf.Descriptors.Descriptor 4089 getDescriptorForType() { 4090 return org.sonar.batch.protocol.output.BatchReport.internal_static_Issue_descriptor; 4091 } 4092 4093 public org.sonar.batch.protocol.output.BatchReport.Issue getDefaultInstanceForType() { 4094 return org.sonar.batch.protocol.output.BatchReport.Issue.getDefaultInstance(); 4095 } 4096 4097 public org.sonar.batch.protocol.output.BatchReport.Issue build() { 4098 org.sonar.batch.protocol.output.BatchReport.Issue result = buildPartial(); 4099 if (!result.isInitialized()) { 4100 throw newUninitializedMessageException(result); 4101 } 4102 return result; 4103 } 4104 4105 public org.sonar.batch.protocol.output.BatchReport.Issue buildPartial() { 4106 org.sonar.batch.protocol.output.BatchReport.Issue result = new org.sonar.batch.protocol.output.BatchReport.Issue(this); 4107 int from_bitField0_ = bitField0_; 4108 int to_bitField0_ = 0; 4109 if (((from_bitField0_ & 0x00000001) == 0x00000001)) { 4110 to_bitField0_ |= 0x00000001; 4111 } 4112 result.ruleRepository_ = ruleRepository_; 4113 if (((from_bitField0_ & 0x00000002) == 0x00000002)) { 4114 to_bitField0_ |= 0x00000002; 4115 } 4116 result.ruleKey_ = ruleKey_; 4117 if (((from_bitField0_ & 0x00000004) == 0x00000004)) { 4118 to_bitField0_ |= 0x00000004; 4119 } 4120 result.line_ = line_; 4121 if (((from_bitField0_ & 0x00000008) == 0x00000008)) { 4122 to_bitField0_ |= 0x00000008; 4123 } 4124 result.msg_ = msg_; 4125 if (((from_bitField0_ & 0x00000010) == 0x00000010)) { 4126 to_bitField0_ |= 0x00000010; 4127 } 4128 result.severity_ = severity_; 4129 if (((bitField0_ & 0x00000020) == 0x00000020)) { 4130 tags_ = new com.google.protobuf.UnmodifiableLazyStringList( 4131 tags_); 4132 bitField0_ = (bitField0_ & ~0x00000020); 4133 } 4134 result.tags_ = tags_; 4135 if (((from_bitField0_ & 0x00000040) == 0x00000040)) { 4136 to_bitField0_ |= 0x00000020; 4137 } 4138 result.effortToFix_ = effortToFix_; 4139 if (((from_bitField0_ & 0x00000080) == 0x00000080)) { 4140 to_bitField0_ |= 0x00000040; 4141 } 4142 result.isNew_ = isNew_; 4143 if (((from_bitField0_ & 0x00000100) == 0x00000100)) { 4144 to_bitField0_ |= 0x00000080; 4145 } 4146 result.uuid_ = uuid_; 4147 if (((from_bitField0_ & 0x00000200) == 0x00000200)) { 4148 to_bitField0_ |= 0x00000100; 4149 } 4150 result.debtInMinutes_ = debtInMinutes_; 4151 if (((from_bitField0_ & 0x00000400) == 0x00000400)) { 4152 to_bitField0_ |= 0x00000200; 4153 } 4154 result.resolution_ = resolution_; 4155 if (((from_bitField0_ & 0x00000800) == 0x00000800)) { 4156 to_bitField0_ |= 0x00000400; 4157 } 4158 result.status_ = status_; 4159 if (((from_bitField0_ & 0x00001000) == 0x00001000)) { 4160 to_bitField0_ |= 0x00000800; 4161 } 4162 result.checksum_ = checksum_; 4163 if (((from_bitField0_ & 0x00002000) == 0x00002000)) { 4164 to_bitField0_ |= 0x00001000; 4165 } 4166 result.manualSeverity_ = manualSeverity_; 4167 if (((from_bitField0_ & 0x00004000) == 0x00004000)) { 4168 to_bitField0_ |= 0x00002000; 4169 } 4170 result.reporter_ = reporter_; 4171 if (((from_bitField0_ & 0x00008000) == 0x00008000)) { 4172 to_bitField0_ |= 0x00004000; 4173 } 4174 result.assignee_ = assignee_; 4175 if (((from_bitField0_ & 0x00010000) == 0x00010000)) { 4176 to_bitField0_ |= 0x00008000; 4177 } 4178 result.actionPlanKey_ = actionPlanKey_; 4179 if (((from_bitField0_ & 0x00020000) == 0x00020000)) { 4180 to_bitField0_ |= 0x00010000; 4181 } 4182 result.attributes_ = attributes_; 4183 if (((from_bitField0_ & 0x00040000) == 0x00040000)) { 4184 to_bitField0_ |= 0x00020000; 4185 } 4186 result.authorLogin_ = authorLogin_; 4187 if (((from_bitField0_ & 0x00080000) == 0x00080000)) { 4188 to_bitField0_ |= 0x00040000; 4189 } 4190 result.creationDate_ = creationDate_; 4191 if (((from_bitField0_ & 0x00100000) == 0x00100000)) { 4192 to_bitField0_ |= 0x00080000; 4193 } 4194 result.closeDate_ = closeDate_; 4195 if (((from_bitField0_ & 0x00200000) == 0x00200000)) { 4196 to_bitField0_ |= 0x00100000; 4197 } 4198 result.updateDate_ = updateDate_; 4199 if (((from_bitField0_ & 0x00400000) == 0x00400000)) { 4200 to_bitField0_ |= 0x00200000; 4201 } 4202 result.selectedAt_ = selectedAt_; 4203 if (((from_bitField0_ & 0x00800000) == 0x00800000)) { 4204 to_bitField0_ |= 0x00400000; 4205 } 4206 result.diffFields_ = diffFields_; 4207 if (((from_bitField0_ & 0x01000000) == 0x01000000)) { 4208 to_bitField0_ |= 0x00800000; 4209 } 4210 result.isChanged_ = isChanged_; 4211 if (((from_bitField0_ & 0x02000000) == 0x02000000)) { 4212 to_bitField0_ |= 0x01000000; 4213 } 4214 result.mustSendNotification_ = mustSendNotification_; 4215 result.bitField0_ = to_bitField0_; 4216 onBuilt(); 4217 return result; 4218 } 4219 4220 public Builder mergeFrom(com.google.protobuf.Message other) { 4221 if (other instanceof org.sonar.batch.protocol.output.BatchReport.Issue) { 4222 return mergeFrom((org.sonar.batch.protocol.output.BatchReport.Issue)other); 4223 } else { 4224 super.mergeFrom(other); 4225 return this; 4226 } 4227 } 4228 4229 public Builder mergeFrom(org.sonar.batch.protocol.output.BatchReport.Issue other) { 4230 if (other == org.sonar.batch.protocol.output.BatchReport.Issue.getDefaultInstance()) return this; 4231 if (other.hasRuleRepository()) { 4232 bitField0_ |= 0x00000001; 4233 ruleRepository_ = other.ruleRepository_; 4234 onChanged(); 4235 } 4236 if (other.hasRuleKey()) { 4237 bitField0_ |= 0x00000002; 4238 ruleKey_ = other.ruleKey_; 4239 onChanged(); 4240 } 4241 if (other.hasLine()) { 4242 setLine(other.getLine()); 4243 } 4244 if (other.hasMsg()) { 4245 bitField0_ |= 0x00000008; 4246 msg_ = other.msg_; 4247 onChanged(); 4248 } 4249 if (other.hasSeverity()) { 4250 setSeverity(other.getSeverity()); 4251 } 4252 if (!other.tags_.isEmpty()) { 4253 if (tags_.isEmpty()) { 4254 tags_ = other.tags_; 4255 bitField0_ = (bitField0_ & ~0x00000020); 4256 } else { 4257 ensureTagsIsMutable(); 4258 tags_.addAll(other.tags_); 4259 } 4260 onChanged(); 4261 } 4262 if (other.hasEffortToFix()) { 4263 setEffortToFix(other.getEffortToFix()); 4264 } 4265 if (other.hasIsNew()) { 4266 setIsNew(other.getIsNew()); 4267 } 4268 if (other.hasUuid()) { 4269 bitField0_ |= 0x00000100; 4270 uuid_ = other.uuid_; 4271 onChanged(); 4272 } 4273 if (other.hasDebtInMinutes()) { 4274 setDebtInMinutes(other.getDebtInMinutes()); 4275 } 4276 if (other.hasResolution()) { 4277 bitField0_ |= 0x00000400; 4278 resolution_ = other.resolution_; 4279 onChanged(); 4280 } 4281 if (other.hasStatus()) { 4282 bitField0_ |= 0x00000800; 4283 status_ = other.status_; 4284 onChanged(); 4285 } 4286 if (other.hasChecksum()) { 4287 bitField0_ |= 0x00001000; 4288 checksum_ = other.checksum_; 4289 onChanged(); 4290 } 4291 if (other.hasManualSeverity()) { 4292 setManualSeverity(other.getManualSeverity()); 4293 } 4294 if (other.hasReporter()) { 4295 bitField0_ |= 0x00004000; 4296 reporter_ = other.reporter_; 4297 onChanged(); 4298 } 4299 if (other.hasAssignee()) { 4300 bitField0_ |= 0x00008000; 4301 assignee_ = other.assignee_; 4302 onChanged(); 4303 } 4304 if (other.hasActionPlanKey()) { 4305 bitField0_ |= 0x00010000; 4306 actionPlanKey_ = other.actionPlanKey_; 4307 onChanged(); 4308 } 4309 if (other.hasAttributes()) { 4310 bitField0_ |= 0x00020000; 4311 attributes_ = other.attributes_; 4312 onChanged(); 4313 } 4314 if (other.hasAuthorLogin()) { 4315 bitField0_ |= 0x00040000; 4316 authorLogin_ = other.authorLogin_; 4317 onChanged(); 4318 } 4319 if (other.hasCreationDate()) { 4320 setCreationDate(other.getCreationDate()); 4321 } 4322 if (other.hasCloseDate()) { 4323 setCloseDate(other.getCloseDate()); 4324 } 4325 if (other.hasUpdateDate()) { 4326 setUpdateDate(other.getUpdateDate()); 4327 } 4328 if (other.hasSelectedAt()) { 4329 setSelectedAt(other.getSelectedAt()); 4330 } 4331 if (other.hasDiffFields()) { 4332 bitField0_ |= 0x00800000; 4333 diffFields_ = other.diffFields_; 4334 onChanged(); 4335 } 4336 if (other.hasIsChanged()) { 4337 setIsChanged(other.getIsChanged()); 4338 } 4339 if (other.hasMustSendNotification()) { 4340 setMustSendNotification(other.getMustSendNotification()); 4341 } 4342 this.mergeUnknownFields(other.getUnknownFields()); 4343 return this; 4344 } 4345 4346 public final boolean isInitialized() { 4347 return true; 4348 } 4349 4350 public Builder mergeFrom( 4351 com.google.protobuf.CodedInputStream input, 4352 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4353 throws java.io.IOException { 4354 org.sonar.batch.protocol.output.BatchReport.Issue parsedMessage = null; 4355 try { 4356 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 4357 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 4358 parsedMessage = (org.sonar.batch.protocol.output.BatchReport.Issue) e.getUnfinishedMessage(); 4359 throw e; 4360 } finally { 4361 if (parsedMessage != null) { 4362 mergeFrom(parsedMessage); 4363 } 4364 } 4365 return this; 4366 } 4367 private int bitField0_; 4368 4369 // optional string rule_repository = 1; 4370 private java.lang.Object ruleRepository_ = ""; 4371 /** 4372 * <code>optional string rule_repository = 1;</code> 4373 */ 4374 public boolean hasRuleRepository() { 4375 return ((bitField0_ & 0x00000001) == 0x00000001); 4376 } 4377 /** 4378 * <code>optional string rule_repository = 1;</code> 4379 */ 4380 public java.lang.String getRuleRepository() { 4381 java.lang.Object ref = ruleRepository_; 4382 if (!(ref instanceof java.lang.String)) { 4383 java.lang.String s = ((com.google.protobuf.ByteString) ref) 4384 .toStringUtf8(); 4385 ruleRepository_ = s; 4386 return s; 4387 } else { 4388 return (java.lang.String) ref; 4389 } 4390 } 4391 /** 4392 * <code>optional string rule_repository = 1;</code> 4393 */ 4394 public com.google.protobuf.ByteString 4395 getRuleRepositoryBytes() { 4396 java.lang.Object ref = ruleRepository_; 4397 if (ref instanceof String) { 4398 com.google.protobuf.ByteString b = 4399 com.google.protobuf.ByteString.copyFromUtf8( 4400 (java.lang.String) ref); 4401 ruleRepository_ = b; 4402 return b; 4403 } else { 4404 return (com.google.protobuf.ByteString) ref; 4405 } 4406 } 4407 /** 4408 * <code>optional string rule_repository = 1;</code> 4409 */ 4410 public Builder setRuleRepository( 4411 java.lang.String value) { 4412 if (value == null) { 4413 throw new NullPointerException(); 4414 } 4415 bitField0_ |= 0x00000001; 4416 ruleRepository_ = value; 4417 onChanged(); 4418 return this; 4419 } 4420 /** 4421 * <code>optional string rule_repository = 1;</code> 4422 */ 4423 public Builder clearRuleRepository() { 4424 bitField0_ = (bitField0_ & ~0x00000001); 4425 ruleRepository_ = getDefaultInstance().getRuleRepository(); 4426 onChanged(); 4427 return this; 4428 } 4429 /** 4430 * <code>optional string rule_repository = 1;</code> 4431 */ 4432 public Builder setRuleRepositoryBytes( 4433 com.google.protobuf.ByteString value) { 4434 if (value == null) { 4435 throw new NullPointerException(); 4436 } 4437 bitField0_ |= 0x00000001; 4438 ruleRepository_ = value; 4439 onChanged(); 4440 return this; 4441 } 4442 4443 // optional string rule_key = 2; 4444 private java.lang.Object ruleKey_ = ""; 4445 /** 4446 * <code>optional string rule_key = 2;</code> 4447 */ 4448 public boolean hasRuleKey() { 4449 return ((bitField0_ & 0x00000002) == 0x00000002); 4450 } 4451 /** 4452 * <code>optional string rule_key = 2;</code> 4453 */ 4454 public java.lang.String getRuleKey() { 4455 java.lang.Object ref = ruleKey_; 4456 if (!(ref instanceof java.lang.String)) { 4457 java.lang.String s = ((com.google.protobuf.ByteString) ref) 4458 .toStringUtf8(); 4459 ruleKey_ = s; 4460 return s; 4461 } else { 4462 return (java.lang.String) ref; 4463 } 4464 } 4465 /** 4466 * <code>optional string rule_key = 2;</code> 4467 */ 4468 public com.google.protobuf.ByteString 4469 getRuleKeyBytes() { 4470 java.lang.Object ref = ruleKey_; 4471 if (ref instanceof String) { 4472 com.google.protobuf.ByteString b = 4473 com.google.protobuf.ByteString.copyFromUtf8( 4474 (java.lang.String) ref); 4475 ruleKey_ = b; 4476 return b; 4477 } else { 4478 return (com.google.protobuf.ByteString) ref; 4479 } 4480 } 4481 /** 4482 * <code>optional string rule_key = 2;</code> 4483 */ 4484 public Builder setRuleKey( 4485 java.lang.String value) { 4486 if (value == null) { 4487 throw new NullPointerException(); 4488 } 4489 bitField0_ |= 0x00000002; 4490 ruleKey_ = value; 4491 onChanged(); 4492 return this; 4493 } 4494 /** 4495 * <code>optional string rule_key = 2;</code> 4496 */ 4497 public Builder clearRuleKey() { 4498 bitField0_ = (bitField0_ & ~0x00000002); 4499 ruleKey_ = getDefaultInstance().getRuleKey(); 4500 onChanged(); 4501 return this; 4502 } 4503 /** 4504 * <code>optional string rule_key = 2;</code> 4505 */ 4506 public Builder setRuleKeyBytes( 4507 com.google.protobuf.ByteString value) { 4508 if (value == null) { 4509 throw new NullPointerException(); 4510 } 4511 bitField0_ |= 0x00000002; 4512 ruleKey_ = value; 4513 onChanged(); 4514 return this; 4515 } 4516 4517 // optional int32 line = 3; 4518 private int line_ ; 4519 /** 4520 * <code>optional int32 line = 3;</code> 4521 */ 4522 public boolean hasLine() { 4523 return ((bitField0_ & 0x00000004) == 0x00000004); 4524 } 4525 /** 4526 * <code>optional int32 line = 3;</code> 4527 */ 4528 public int getLine() { 4529 return line_; 4530 } 4531 /** 4532 * <code>optional int32 line = 3;</code> 4533 */ 4534 public Builder setLine(int value) { 4535 bitField0_ |= 0x00000004; 4536 line_ = value; 4537 onChanged(); 4538 return this; 4539 } 4540 /** 4541 * <code>optional int32 line = 3;</code> 4542 */ 4543 public Builder clearLine() { 4544 bitField0_ = (bitField0_ & ~0x00000004); 4545 line_ = 0; 4546 onChanged(); 4547 return this; 4548 } 4549 4550 // optional string msg = 4; 4551 private java.lang.Object msg_ = ""; 4552 /** 4553 * <code>optional string msg = 4;</code> 4554 */ 4555 public boolean hasMsg() { 4556 return ((bitField0_ & 0x00000008) == 0x00000008); 4557 } 4558 /** 4559 * <code>optional string msg = 4;</code> 4560 */ 4561 public java.lang.String getMsg() { 4562 java.lang.Object ref = msg_; 4563 if (!(ref instanceof java.lang.String)) { 4564 java.lang.String s = ((com.google.protobuf.ByteString) ref) 4565 .toStringUtf8(); 4566 msg_ = s; 4567 return s; 4568 } else { 4569 return (java.lang.String) ref; 4570 } 4571 } 4572 /** 4573 * <code>optional string msg = 4;</code> 4574 */ 4575 public com.google.protobuf.ByteString 4576 getMsgBytes() { 4577 java.lang.Object ref = msg_; 4578 if (ref instanceof String) { 4579 com.google.protobuf.ByteString b = 4580 com.google.protobuf.ByteString.copyFromUtf8( 4581 (java.lang.String) ref); 4582 msg_ = b; 4583 return b; 4584 } else { 4585 return (com.google.protobuf.ByteString) ref; 4586 } 4587 } 4588 /** 4589 * <code>optional string msg = 4;</code> 4590 */ 4591 public Builder setMsg( 4592 java.lang.String value) { 4593 if (value == null) { 4594 throw new NullPointerException(); 4595 } 4596 bitField0_ |= 0x00000008; 4597 msg_ = value; 4598 onChanged(); 4599 return this; 4600 } 4601 /** 4602 * <code>optional string msg = 4;</code> 4603 */ 4604 public Builder clearMsg() { 4605 bitField0_ = (bitField0_ & ~0x00000008); 4606 msg_ = getDefaultInstance().getMsg(); 4607 onChanged(); 4608 return this; 4609 } 4610 /** 4611 * <code>optional string msg = 4;</code> 4612 */ 4613 public Builder setMsgBytes( 4614 com.google.protobuf.ByteString value) { 4615 if (value == null) { 4616 throw new NullPointerException(); 4617 } 4618 bitField0_ |= 0x00000008; 4619 msg_ = value; 4620 onChanged(); 4621 return this; 4622 } 4623 4624 // optional .Severity severity = 5; 4625 private org.sonar.batch.protocol.Constants.Severity severity_ = org.sonar.batch.protocol.Constants.Severity.INFO; 4626 /** 4627 * <code>optional .Severity severity = 5;</code> 4628 */ 4629 public boolean hasSeverity() { 4630 return ((bitField0_ & 0x00000010) == 0x00000010); 4631 } 4632 /** 4633 * <code>optional .Severity severity = 5;</code> 4634 */ 4635 public org.sonar.batch.protocol.Constants.Severity getSeverity() { 4636 return severity_; 4637 } 4638 /** 4639 * <code>optional .Severity severity = 5;</code> 4640 */ 4641 public Builder setSeverity(org.sonar.batch.protocol.Constants.Severity value) { 4642 if (value == null) { 4643 throw new NullPointerException(); 4644 } 4645 bitField0_ |= 0x00000010; 4646 severity_ = value; 4647 onChanged(); 4648 return this; 4649 } 4650 /** 4651 * <code>optional .Severity severity = 5;</code> 4652 */ 4653 public Builder clearSeverity() { 4654 bitField0_ = (bitField0_ & ~0x00000010); 4655 severity_ = org.sonar.batch.protocol.Constants.Severity.INFO; 4656 onChanged(); 4657 return this; 4658 } 4659 4660 // repeated string tags = 6; 4661 private com.google.protobuf.LazyStringList tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; 4662 private void ensureTagsIsMutable() { 4663 if (!((bitField0_ & 0x00000020) == 0x00000020)) { 4664 tags_ = new com.google.protobuf.LazyStringArrayList(tags_); 4665 bitField0_ |= 0x00000020; 4666 } 4667 } 4668 /** 4669 * <code>repeated string tags = 6;</code> 4670 */ 4671 public java.util.List<java.lang.String> 4672 getTagsList() { 4673 return java.util.Collections.unmodifiableList(tags_); 4674 } 4675 /** 4676 * <code>repeated string tags = 6;</code> 4677 */ 4678 public int getTagsCount() { 4679 return tags_.size(); 4680 } 4681 /** 4682 * <code>repeated string tags = 6;</code> 4683 */ 4684 public java.lang.String getTags(int index) { 4685 return tags_.get(index); 4686 } 4687 /** 4688 * <code>repeated string tags = 6;</code> 4689 */ 4690 public com.google.protobuf.ByteString 4691 getTagsBytes(int index) { 4692 return tags_.getByteString(index); 4693 } 4694 /** 4695 * <code>repeated string tags = 6;</code> 4696 */ 4697 public Builder setTags( 4698 int index, java.lang.String value) { 4699 if (value == null) { 4700 throw new NullPointerException(); 4701 } 4702 ensureTagsIsMutable(); 4703 tags_.set(index, value); 4704 onChanged(); 4705 return this; 4706 } 4707 /** 4708 * <code>repeated string tags = 6;</code> 4709 */ 4710 public Builder addTags( 4711 java.lang.String value) { 4712 if (value == null) { 4713 throw new NullPointerException(); 4714 } 4715 ensureTagsIsMutable(); 4716 tags_.add(value); 4717 onChanged(); 4718 return this; 4719 } 4720 /** 4721 * <code>repeated string tags = 6;</code> 4722 */ 4723 public Builder addAllTags( 4724 java.lang.Iterable<java.lang.String> values) { 4725 ensureTagsIsMutable(); 4726 super.addAll(values, tags_); 4727 onChanged(); 4728 return this; 4729 } 4730 /** 4731 * <code>repeated string tags = 6;</code> 4732 */ 4733 public Builder clearTags() { 4734 tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; 4735 bitField0_ = (bitField0_ & ~0x00000020); 4736 onChanged(); 4737 return this; 4738 } 4739 /** 4740 * <code>repeated string tags = 6;</code> 4741 */ 4742 public Builder addTagsBytes( 4743 com.google.protobuf.ByteString value) { 4744 if (value == null) { 4745 throw new NullPointerException(); 4746 } 4747 ensureTagsIsMutable(); 4748 tags_.add(value); 4749 onChanged(); 4750 return this; 4751 } 4752 4753 // optional double effort_to_fix = 7; 4754 private double effortToFix_ ; 4755 /** 4756 * <code>optional double effort_to_fix = 7;</code> 4757 * 4758 * <pre> 4759 * temporary fields during development of computation stack 4760 * </pre> 4761 */ 4762 public boolean hasEffortToFix() { 4763 return ((bitField0_ & 0x00000040) == 0x00000040); 4764 } 4765 /** 4766 * <code>optional double effort_to_fix = 7;</code> 4767 * 4768 * <pre> 4769 * temporary fields during development of computation stack 4770 * </pre> 4771 */ 4772 public double getEffortToFix() { 4773 return effortToFix_; 4774 } 4775 /** 4776 * <code>optional double effort_to_fix = 7;</code> 4777 * 4778 * <pre> 4779 * temporary fields during development of computation stack 4780 * </pre> 4781 */ 4782 public Builder setEffortToFix(double value) { 4783 bitField0_ |= 0x00000040; 4784 effortToFix_ = value; 4785 onChanged(); 4786 return this; 4787 } 4788 /** 4789 * <code>optional double effort_to_fix = 7;</code> 4790 * 4791 * <pre> 4792 * temporary fields during development of computation stack 4793 * </pre> 4794 */ 4795 public Builder clearEffortToFix() { 4796 bitField0_ = (bitField0_ & ~0x00000040); 4797 effortToFix_ = 0D; 4798 onChanged(); 4799 return this; 4800 } 4801 4802 // optional bool is_new = 8; 4803 private boolean isNew_ ; 4804 /** 4805 * <code>optional bool is_new = 8;</code> 4806 */ 4807 public boolean hasIsNew() { 4808 return ((bitField0_ & 0x00000080) == 0x00000080); 4809 } 4810 /** 4811 * <code>optional bool is_new = 8;</code> 4812 */ 4813 public boolean getIsNew() { 4814 return isNew_; 4815 } 4816 /** 4817 * <code>optional bool is_new = 8;</code> 4818 */ 4819 public Builder setIsNew(boolean value) { 4820 bitField0_ |= 0x00000080; 4821 isNew_ = value; 4822 onChanged(); 4823 return this; 4824 } 4825 /** 4826 * <code>optional bool is_new = 8;</code> 4827 */ 4828 public Builder clearIsNew() { 4829 bitField0_ = (bitField0_ & ~0x00000080); 4830 isNew_ = false; 4831 onChanged(); 4832 return this; 4833 } 4834 4835 // optional string uuid = 9; 4836 private java.lang.Object uuid_ = ""; 4837 /** 4838 * <code>optional string uuid = 9;</code> 4839 */ 4840 public boolean hasUuid() { 4841 return ((bitField0_ & 0x00000100) == 0x00000100); 4842 } 4843 /** 4844 * <code>optional string uuid = 9;</code> 4845 */ 4846 public java.lang.String getUuid() { 4847 java.lang.Object ref = uuid_; 4848 if (!(ref instanceof java.lang.String)) { 4849 java.lang.String s = ((com.google.protobuf.ByteString) ref) 4850 .toStringUtf8(); 4851 uuid_ = s; 4852 return s; 4853 } else { 4854 return (java.lang.String) ref; 4855 } 4856 } 4857 /** 4858 * <code>optional string uuid = 9;</code> 4859 */ 4860 public com.google.protobuf.ByteString 4861 getUuidBytes() { 4862 java.lang.Object ref = uuid_; 4863 if (ref instanceof String) { 4864 com.google.protobuf.ByteString b = 4865 com.google.protobuf.ByteString.copyFromUtf8( 4866 (java.lang.String) ref); 4867 uuid_ = b; 4868 return b; 4869 } else { 4870 return (com.google.protobuf.ByteString) ref; 4871 } 4872 } 4873 /** 4874 * <code>optional string uuid = 9;</code> 4875 */ 4876 public Builder setUuid( 4877 java.lang.String value) { 4878 if (value == null) { 4879 throw new NullPointerException(); 4880 } 4881 bitField0_ |= 0x00000100; 4882 uuid_ = value; 4883 onChanged(); 4884 return this; 4885 } 4886 /** 4887 * <code>optional string uuid = 9;</code> 4888 */ 4889 public Builder clearUuid() { 4890 bitField0_ = (bitField0_ & ~0x00000100); 4891 uuid_ = getDefaultInstance().getUuid(); 4892 onChanged(); 4893 return this; 4894 } 4895 /** 4896 * <code>optional string uuid = 9;</code> 4897 */ 4898 public Builder setUuidBytes( 4899 com.google.protobuf.ByteString value) { 4900 if (value == null) { 4901 throw new NullPointerException(); 4902 } 4903 bitField0_ |= 0x00000100; 4904 uuid_ = value; 4905 onChanged(); 4906 return this; 4907 } 4908 4909 // optional int64 debt_in_minutes = 10; 4910 private long debtInMinutes_ ; 4911 /** 4912 * <code>optional int64 debt_in_minutes = 10;</code> 4913 */ 4914 public boolean hasDebtInMinutes() { 4915 return ((bitField0_ & 0x00000200) == 0x00000200); 4916 } 4917 /** 4918 * <code>optional int64 debt_in_minutes = 10;</code> 4919 */ 4920 public long getDebtInMinutes() { 4921 return debtInMinutes_; 4922 } 4923 /** 4924 * <code>optional int64 debt_in_minutes = 10;</code> 4925 */ 4926 public Builder setDebtInMinutes(long value) { 4927 bitField0_ |= 0x00000200; 4928 debtInMinutes_ = value; 4929 onChanged(); 4930 return this; 4931 } 4932 /** 4933 * <code>optional int64 debt_in_minutes = 10;</code> 4934 */ 4935 public Builder clearDebtInMinutes() { 4936 bitField0_ = (bitField0_ & ~0x00000200); 4937 debtInMinutes_ = 0L; 4938 onChanged(); 4939 return this; 4940 } 4941 4942 // optional string resolution = 11; 4943 private java.lang.Object resolution_ = ""; 4944 /** 4945 * <code>optional string resolution = 11;</code> 4946 */ 4947 public boolean hasResolution() { 4948 return ((bitField0_ & 0x00000400) == 0x00000400); 4949 } 4950 /** 4951 * <code>optional string resolution = 11;</code> 4952 */ 4953 public java.lang.String getResolution() { 4954 java.lang.Object ref = resolution_; 4955 if (!(ref instanceof java.lang.String)) { 4956 java.lang.String s = ((com.google.protobuf.ByteString) ref) 4957 .toStringUtf8(); 4958 resolution_ = s; 4959 return s; 4960 } else { 4961 return (java.lang.String) ref; 4962 } 4963 } 4964 /** 4965 * <code>optional string resolution = 11;</code> 4966 */ 4967 public com.google.protobuf.ByteString 4968 getResolutionBytes() { 4969 java.lang.Object ref = resolution_; 4970 if (ref instanceof String) { 4971 com.google.protobuf.ByteString b = 4972 com.google.protobuf.ByteString.copyFromUtf8( 4973 (java.lang.String) ref); 4974 resolution_ = b; 4975 return b; 4976 } else { 4977 return (com.google.protobuf.ByteString) ref; 4978 } 4979 } 4980 /** 4981 * <code>optional string resolution = 11;</code> 4982 */ 4983 public Builder setResolution( 4984 java.lang.String value) { 4985 if (value == null) { 4986 throw new NullPointerException(); 4987 } 4988 bitField0_ |= 0x00000400; 4989 resolution_ = value; 4990 onChanged(); 4991 return this; 4992 } 4993 /** 4994 * <code>optional string resolution = 11;</code> 4995 */ 4996 public Builder clearResolution() { 4997 bitField0_ = (bitField0_ & ~0x00000400); 4998 resolution_ = getDefaultInstance().getResolution(); 4999 onChanged(); 5000 return this; 5001 } 5002 /** 5003 * <code>optional string resolution = 11;</code> 5004 */ 5005 public Builder setResolutionBytes( 5006 com.google.protobuf.ByteString value) { 5007 if (value == null) { 5008 throw new NullPointerException(); 5009 } 5010 bitField0_ |= 0x00000400; 5011 resolution_ = value; 5012 onChanged(); 5013 return this; 5014 } 5015 5016 // optional string status = 12; 5017 private java.lang.Object status_ = ""; 5018 /** 5019 * <code>optional string status = 12;</code> 5020 */ 5021 public boolean hasStatus() { 5022 return ((bitField0_ & 0x00000800) == 0x00000800); 5023 } 5024 /** 5025 * <code>optional string status = 12;</code> 5026 */ 5027 public java.lang.String getStatus() { 5028 java.lang.Object ref = status_; 5029 if (!(ref instanceof java.lang.String)) { 5030 java.lang.String s = ((com.google.protobuf.ByteString) ref) 5031 .toStringUtf8(); 5032 status_ = s; 5033 return s; 5034 } else { 5035 return (java.lang.String) ref; 5036 } 5037 } 5038 /** 5039 * <code>optional string status = 12;</code> 5040 */ 5041 public com.google.protobuf.ByteString 5042 getStatusBytes() { 5043 java.lang.Object ref = status_; 5044 if (ref instanceof String) { 5045 com.google.protobuf.ByteString b = 5046 com.google.protobuf.ByteString.copyFromUtf8( 5047 (java.lang.String) ref); 5048 status_ = b; 5049 return b; 5050 } else { 5051 return (com.google.protobuf.ByteString) ref; 5052 } 5053 } 5054 /** 5055 * <code>optional string status = 12;</code> 5056 */ 5057 public Builder setStatus( 5058 java.lang.String value) { 5059 if (value == null) { 5060 throw new NullPointerException(); 5061 } 5062 bitField0_ |= 0x00000800; 5063 status_ = value; 5064 onChanged(); 5065 return this; 5066 } 5067 /** 5068 * <code>optional string status = 12;</code> 5069 */ 5070 public Builder clearStatus() { 5071 bitField0_ = (bitField0_ & ~0x00000800); 5072 status_ = getDefaultInstance().getStatus(); 5073 onChanged(); 5074 return this; 5075 } 5076 /** 5077 * <code>optional string status = 12;</code> 5078 */ 5079 public Builder setStatusBytes( 5080 com.google.protobuf.ByteString value) { 5081 if (value == null) { 5082 throw new NullPointerException(); 5083 } 5084 bitField0_ |= 0x00000800; 5085 status_ = value; 5086 onChanged(); 5087 return this; 5088 } 5089 5090 // optional string checksum = 13; 5091 private java.lang.Object checksum_ = ""; 5092 /** 5093 * <code>optional string checksum = 13;</code> 5094 */ 5095 public boolean hasChecksum() { 5096 return ((bitField0_ & 0x00001000) == 0x00001000); 5097 } 5098 /** 5099 * <code>optional string checksum = 13;</code> 5100 */ 5101 public java.lang.String getChecksum() { 5102 java.lang.Object ref = checksum_; 5103 if (!(ref instanceof java.lang.String)) { 5104 java.lang.String s = ((com.google.protobuf.ByteString) ref) 5105 .toStringUtf8(); 5106 checksum_ = s; 5107 return s; 5108 } else { 5109 return (java.lang.String) ref; 5110 } 5111 } 5112 /** 5113 * <code>optional string checksum = 13;</code> 5114 */ 5115 public com.google.protobuf.ByteString 5116 getChecksumBytes() { 5117 java.lang.Object ref = checksum_; 5118 if (ref instanceof String) { 5119 com.google.protobuf.ByteString b = 5120 com.google.protobuf.ByteString.copyFromUtf8( 5121 (java.lang.String) ref); 5122 checksum_ = b; 5123 return b; 5124 } else { 5125 return (com.google.protobuf.ByteString) ref; 5126 } 5127 } 5128 /** 5129 * <code>optional string checksum = 13;</code> 5130 */ 5131 public Builder setChecksum( 5132 java.lang.String value) { 5133 if (value == null) { 5134 throw new NullPointerException(); 5135 } 5136 bitField0_ |= 0x00001000; 5137 checksum_ = value; 5138 onChanged(); 5139 return this; 5140 } 5141 /** 5142 * <code>optional string checksum = 13;</code> 5143 */ 5144 public Builder clearChecksum() { 5145 bitField0_ = (bitField0_ & ~0x00001000); 5146 checksum_ = getDefaultInstance().getChecksum(); 5147 onChanged(); 5148 return this; 5149 } 5150 /** 5151 * <code>optional string checksum = 13;</code> 5152 */ 5153 public Builder setChecksumBytes( 5154 com.google.protobuf.ByteString value) { 5155 if (value == null) { 5156 throw new NullPointerException(); 5157 } 5158 bitField0_ |= 0x00001000; 5159 checksum_ = value; 5160 onChanged(); 5161 return this; 5162 } 5163 5164 // optional bool manual_severity = 14; 5165 private boolean manualSeverity_ ; 5166 /** 5167 * <code>optional bool manual_severity = 14;</code> 5168 */ 5169 public boolean hasManualSeverity() { 5170 return ((bitField0_ & 0x00002000) == 0x00002000); 5171 } 5172 /** 5173 * <code>optional bool manual_severity = 14;</code> 5174 */ 5175 public boolean getManualSeverity() { 5176 return manualSeverity_; 5177 } 5178 /** 5179 * <code>optional bool manual_severity = 14;</code> 5180 */ 5181 public Builder setManualSeverity(boolean value) { 5182 bitField0_ |= 0x00002000; 5183 manualSeverity_ = value; 5184 onChanged(); 5185 return this; 5186 } 5187 /** 5188 * <code>optional bool manual_severity = 14;</code> 5189 */ 5190 public Builder clearManualSeverity() { 5191 bitField0_ = (bitField0_ & ~0x00002000); 5192 manualSeverity_ = false; 5193 onChanged(); 5194 return this; 5195 } 5196 5197 // optional string reporter = 15; 5198 private java.lang.Object reporter_ = ""; 5199 /** 5200 * <code>optional string reporter = 15;</code> 5201 */ 5202 public boolean hasReporter() { 5203 return ((bitField0_ & 0x00004000) == 0x00004000); 5204 } 5205 /** 5206 * <code>optional string reporter = 15;</code> 5207 */ 5208 public java.lang.String getReporter() { 5209 java.lang.Object ref = reporter_; 5210 if (!(ref instanceof java.lang.String)) { 5211 java.lang.String s = ((com.google.protobuf.ByteString) ref) 5212 .toStringUtf8(); 5213 reporter_ = s; 5214 return s; 5215 } else { 5216 return (java.lang.String) ref; 5217 } 5218 } 5219 /** 5220 * <code>optional string reporter = 15;</code> 5221 */ 5222 public com.google.protobuf.ByteString 5223 getReporterBytes() { 5224 java.lang.Object ref = reporter_; 5225 if (ref instanceof String) { 5226 com.google.protobuf.ByteString b = 5227 com.google.protobuf.ByteString.copyFromUtf8( 5228 (java.lang.String) ref); 5229 reporter_ = b; 5230 return b; 5231 } else { 5232 return (com.google.protobuf.ByteString) ref; 5233 } 5234 } 5235 /** 5236 * <code>optional string reporter = 15;</code> 5237 */ 5238 public Builder setReporter( 5239 java.lang.String value) { 5240 if (value == null) { 5241 throw new NullPointerException(); 5242 } 5243 bitField0_ |= 0x00004000; 5244 reporter_ = value; 5245 onChanged(); 5246 return this; 5247 } 5248 /** 5249 * <code>optional string reporter = 15;</code> 5250 */ 5251 public Builder clearReporter() { 5252 bitField0_ = (bitField0_ & ~0x00004000); 5253 reporter_ = getDefaultInstance().getReporter(); 5254 onChanged(); 5255 return this; 5256 } 5257 /** 5258 * <code>optional string reporter = 15;</code> 5259 */ 5260 public Builder setReporterBytes( 5261 com.google.protobuf.ByteString value) { 5262 if (value == null) { 5263 throw new NullPointerException(); 5264 } 5265 bitField0_ |= 0x00004000; 5266 reporter_ = value; 5267 onChanged(); 5268 return this; 5269 } 5270 5271 // optional string assignee = 16; 5272 private java.lang.Object assignee_ = ""; 5273 /** 5274 * <code>optional string assignee = 16;</code> 5275 */ 5276 public boolean hasAssignee() { 5277 return ((bitField0_ & 0x00008000) == 0x00008000); 5278 } 5279 /** 5280 * <code>optional string assignee = 16;</code> 5281 */ 5282 public java.lang.String getAssignee() { 5283 java.lang.Object ref = assignee_; 5284 if (!(ref instanceof java.lang.String)) { 5285 java.lang.String s = ((com.google.protobuf.ByteString) ref) 5286 .toStringUtf8(); 5287 assignee_ = s; 5288 return s; 5289 } else { 5290 return (java.lang.String) ref; 5291 } 5292 } 5293 /** 5294 * <code>optional string assignee = 16;</code> 5295 */ 5296 public com.google.protobuf.ByteString 5297 getAssigneeBytes() { 5298 java.lang.Object ref = assignee_; 5299 if (ref instanceof String) { 5300 com.google.protobuf.ByteString b = 5301 com.google.protobuf.ByteString.copyFromUtf8( 5302 (java.lang.String) ref); 5303 assignee_ = b; 5304 return b; 5305 } else { 5306 return (com.google.protobuf.ByteString) ref; 5307 } 5308 } 5309 /** 5310 * <code>optional string assignee = 16;</code> 5311 */ 5312 public Builder setAssignee( 5313 java.lang.String value) { 5314 if (value == null) { 5315 throw new NullPointerException(); 5316 } 5317 bitField0_ |= 0x00008000; 5318 assignee_ = value; 5319 onChanged(); 5320 return this; 5321 } 5322 /** 5323 * <code>optional string assignee = 16;</code> 5324 */ 5325 public Builder clearAssignee() { 5326 bitField0_ = (bitField0_ & ~0x00008000); 5327 assignee_ = getDefaultInstance().getAssignee(); 5328 onChanged(); 5329 return this; 5330 } 5331 /** 5332 * <code>optional string assignee = 16;</code> 5333 */ 5334 public Builder setAssigneeBytes( 5335 com.google.protobuf.ByteString value) { 5336 if (value == null) { 5337 throw new NullPointerException(); 5338 } 5339 bitField0_ |= 0x00008000; 5340 assignee_ = value; 5341 onChanged(); 5342 return this; 5343 } 5344 5345 // optional string action_plan_key = 17; 5346 private java.lang.Object actionPlanKey_ = ""; 5347 /** 5348 * <code>optional string action_plan_key = 17;</code> 5349 */ 5350 public boolean hasActionPlanKey() { 5351 return ((bitField0_ & 0x00010000) == 0x00010000); 5352 } 5353 /** 5354 * <code>optional string action_plan_key = 17;</code> 5355 */ 5356 public java.lang.String getActionPlanKey() { 5357 java.lang.Object ref = actionPlanKey_; 5358 if (!(ref instanceof java.lang.String)) { 5359 java.lang.String s = ((com.google.protobuf.ByteString) ref) 5360 .toStringUtf8(); 5361 actionPlanKey_ = s; 5362 return s; 5363 } else { 5364 return (java.lang.String) ref; 5365 } 5366 } 5367 /** 5368 * <code>optional string action_plan_key = 17;</code> 5369 */ 5370 public com.google.protobuf.ByteString 5371 getActionPlanKeyBytes() { 5372 java.lang.Object ref = actionPlanKey_; 5373 if (ref instanceof String) { 5374 com.google.protobuf.ByteString b = 5375 com.google.protobuf.ByteString.copyFromUtf8( 5376 (java.lang.String) ref); 5377 actionPlanKey_ = b; 5378 return b; 5379 } else { 5380 return (com.google.protobuf.ByteString) ref; 5381 } 5382 } 5383 /** 5384 * <code>optional string action_plan_key = 17;</code> 5385 */ 5386 public Builder setActionPlanKey( 5387 java.lang.String value) { 5388 if (value == null) { 5389 throw new NullPointerException(); 5390 } 5391 bitField0_ |= 0x00010000; 5392 actionPlanKey_ = value; 5393 onChanged(); 5394 return this; 5395 } 5396 /** 5397 * <code>optional string action_plan_key = 17;</code> 5398 */ 5399 public Builder clearActionPlanKey() { 5400 bitField0_ = (bitField0_ & ~0x00010000); 5401 actionPlanKey_ = getDefaultInstance().getActionPlanKey(); 5402 onChanged(); 5403 return this; 5404 } 5405 /** 5406 * <code>optional string action_plan_key = 17;</code> 5407 */ 5408 public Builder setActionPlanKeyBytes( 5409 com.google.protobuf.ByteString value) { 5410 if (value == null) { 5411 throw new NullPointerException(); 5412 } 5413 bitField0_ |= 0x00010000; 5414 actionPlanKey_ = value; 5415 onChanged(); 5416 return this; 5417 } 5418 5419 // optional string attributes = 18; 5420 private java.lang.Object attributes_ = ""; 5421 /** 5422 * <code>optional string attributes = 18;</code> 5423 */ 5424 public boolean hasAttributes() { 5425 return ((bitField0_ & 0x00020000) == 0x00020000); 5426 } 5427 /** 5428 * <code>optional string attributes = 18;</code> 5429 */ 5430 public java.lang.String getAttributes() { 5431 java.lang.Object ref = attributes_; 5432 if (!(ref instanceof java.lang.String)) { 5433 java.lang.String s = ((com.google.protobuf.ByteString) ref) 5434 .toStringUtf8(); 5435 attributes_ = s; 5436 return s; 5437 } else { 5438 return (java.lang.String) ref; 5439 } 5440 } 5441 /** 5442 * <code>optional string attributes = 18;</code> 5443 */ 5444 public com.google.protobuf.ByteString 5445 getAttributesBytes() { 5446 java.lang.Object ref = attributes_; 5447 if (ref instanceof String) { 5448 com.google.protobuf.ByteString b = 5449 com.google.protobuf.ByteString.copyFromUtf8( 5450 (java.lang.String) ref); 5451 attributes_ = b; 5452 return b; 5453 } else { 5454 return (com.google.protobuf.ByteString) ref; 5455 } 5456 } 5457 /** 5458 * <code>optional string attributes = 18;</code> 5459 */ 5460 public Builder setAttributes( 5461 java.lang.String value) { 5462 if (value == null) { 5463 throw new NullPointerException(); 5464 } 5465 bitField0_ |= 0x00020000; 5466 attributes_ = value; 5467 onChanged(); 5468 return this; 5469 } 5470 /** 5471 * <code>optional string attributes = 18;</code> 5472 */ 5473 public Builder clearAttributes() { 5474 bitField0_ = (bitField0_ & ~0x00020000); 5475 attributes_ = getDefaultInstance().getAttributes(); 5476 onChanged(); 5477 return this; 5478 } 5479 /** 5480 * <code>optional string attributes = 18;</code> 5481 */ 5482 public Builder setAttributesBytes( 5483 com.google.protobuf.ByteString value) { 5484 if (value == null) { 5485 throw new NullPointerException(); 5486 } 5487 bitField0_ |= 0x00020000; 5488 attributes_ = value; 5489 onChanged(); 5490 return this; 5491 } 5492 5493 // optional string author_login = 19; 5494 private java.lang.Object authorLogin_ = ""; 5495 /** 5496 * <code>optional string author_login = 19;</code> 5497 */ 5498 public boolean hasAuthorLogin() { 5499 return ((bitField0_ & 0x00040000) == 0x00040000); 5500 } 5501 /** 5502 * <code>optional string author_login = 19;</code> 5503 */ 5504 public java.lang.String getAuthorLogin() { 5505 java.lang.Object ref = authorLogin_; 5506 if (!(ref instanceof java.lang.String)) { 5507 java.lang.String s = ((com.google.protobuf.ByteString) ref) 5508 .toStringUtf8(); 5509 authorLogin_ = s; 5510 return s; 5511 } else { 5512 return (java.lang.String) ref; 5513 } 5514 } 5515 /** 5516 * <code>optional string author_login = 19;</code> 5517 */ 5518 public com.google.protobuf.ByteString 5519 getAuthorLoginBytes() { 5520 java.lang.Object ref = authorLogin_; 5521 if (ref instanceof String) { 5522 com.google.protobuf.ByteString b = 5523 com.google.protobuf.ByteString.copyFromUtf8( 5524 (java.lang.String) ref); 5525 authorLogin_ = b; 5526 return b; 5527 } else { 5528 return (com.google.protobuf.ByteString) ref; 5529 } 5530 } 5531 /** 5532 * <code>optional string author_login = 19;</code> 5533 */ 5534 public Builder setAuthorLogin( 5535 java.lang.String value) { 5536 if (value == null) { 5537 throw new NullPointerException(); 5538 } 5539 bitField0_ |= 0x00040000; 5540 authorLogin_ = value; 5541 onChanged(); 5542 return this; 5543 } 5544 /** 5545 * <code>optional string author_login = 19;</code> 5546 */ 5547 public Builder clearAuthorLogin() { 5548 bitField0_ = (bitField0_ & ~0x00040000); 5549 authorLogin_ = getDefaultInstance().getAuthorLogin(); 5550 onChanged(); 5551 return this; 5552 } 5553 /** 5554 * <code>optional string author_login = 19;</code> 5555 */ 5556 public Builder setAuthorLoginBytes( 5557 com.google.protobuf.ByteString value) { 5558 if (value == null) { 5559 throw new NullPointerException(); 5560 } 5561 bitField0_ |= 0x00040000; 5562 authorLogin_ = value; 5563 onChanged(); 5564 return this; 5565 } 5566 5567 // optional int64 creation_date = 20; 5568 private long creationDate_ ; 5569 /** 5570 * <code>optional int64 creation_date = 20;</code> 5571 */ 5572 public boolean hasCreationDate() { 5573 return ((bitField0_ & 0x00080000) == 0x00080000); 5574 } 5575 /** 5576 * <code>optional int64 creation_date = 20;</code> 5577 */ 5578 public long getCreationDate() { 5579 return creationDate_; 5580 } 5581 /** 5582 * <code>optional int64 creation_date = 20;</code> 5583 */ 5584 public Builder setCreationDate(long value) { 5585 bitField0_ |= 0x00080000; 5586 creationDate_ = value; 5587 onChanged(); 5588 return this; 5589 } 5590 /** 5591 * <code>optional int64 creation_date = 20;</code> 5592 */ 5593 public Builder clearCreationDate() { 5594 bitField0_ = (bitField0_ & ~0x00080000); 5595 creationDate_ = 0L; 5596 onChanged(); 5597 return this; 5598 } 5599 5600 // optional int64 close_date = 21; 5601 private long closeDate_ ; 5602 /** 5603 * <code>optional int64 close_date = 21;</code> 5604 */ 5605 public boolean hasCloseDate() { 5606 return ((bitField0_ & 0x00100000) == 0x00100000); 5607 } 5608 /** 5609 * <code>optional int64 close_date = 21;</code> 5610 */ 5611 public long getCloseDate() { 5612 return closeDate_; 5613 } 5614 /** 5615 * <code>optional int64 close_date = 21;</code> 5616 */ 5617 public Builder setCloseDate(long value) { 5618 bitField0_ |= 0x00100000; 5619 closeDate_ = value; 5620 onChanged(); 5621 return this; 5622 } 5623 /** 5624 * <code>optional int64 close_date = 21;</code> 5625 */ 5626 public Builder clearCloseDate() { 5627 bitField0_ = (bitField0_ & ~0x00100000); 5628 closeDate_ = 0L; 5629 onChanged(); 5630 return this; 5631 } 5632 5633 // optional int64 update_date = 22; 5634 private long updateDate_ ; 5635 /** 5636 * <code>optional int64 update_date = 22;</code> 5637 */ 5638 public boolean hasUpdateDate() { 5639 return ((bitField0_ & 0x00200000) == 0x00200000); 5640 } 5641 /** 5642 * <code>optional int64 update_date = 22;</code> 5643 */ 5644 public long getUpdateDate() { 5645 return updateDate_; 5646 } 5647 /** 5648 * <code>optional int64 update_date = 22;</code> 5649 */ 5650 public Builder setUpdateDate(long value) { 5651 bitField0_ |= 0x00200000; 5652 updateDate_ = value; 5653 onChanged(); 5654 return this; 5655 } 5656 /** 5657 * <code>optional int64 update_date = 22;</code> 5658 */ 5659 public Builder clearUpdateDate() { 5660 bitField0_ = (bitField0_ & ~0x00200000); 5661 updateDate_ = 0L; 5662 onChanged(); 5663 return this; 5664 } 5665 5666 // optional int64 selected_at = 23; 5667 private long selectedAt_ ; 5668 /** 5669 * <code>optional int64 selected_at = 23;</code> 5670 */ 5671 public boolean hasSelectedAt() { 5672 return ((bitField0_ & 0x00400000) == 0x00400000); 5673 } 5674 /** 5675 * <code>optional int64 selected_at = 23;</code> 5676 */ 5677 public long getSelectedAt() { 5678 return selectedAt_; 5679 } 5680 /** 5681 * <code>optional int64 selected_at = 23;</code> 5682 */ 5683 public Builder setSelectedAt(long value) { 5684 bitField0_ |= 0x00400000; 5685 selectedAt_ = value; 5686 onChanged(); 5687 return this; 5688 } 5689 /** 5690 * <code>optional int64 selected_at = 23;</code> 5691 */ 5692 public Builder clearSelectedAt() { 5693 bitField0_ = (bitField0_ & ~0x00400000); 5694 selectedAt_ = 0L; 5695 onChanged(); 5696 return this; 5697 } 5698 5699 // optional string diff_fields = 24; 5700 private java.lang.Object diffFields_ = ""; 5701 /** 5702 * <code>optional string diff_fields = 24;</code> 5703 */ 5704 public boolean hasDiffFields() { 5705 return ((bitField0_ & 0x00800000) == 0x00800000); 5706 } 5707 /** 5708 * <code>optional string diff_fields = 24;</code> 5709 */ 5710 public java.lang.String getDiffFields() { 5711 java.lang.Object ref = diffFields_; 5712 if (!(ref instanceof java.lang.String)) { 5713 java.lang.String s = ((com.google.protobuf.ByteString) ref) 5714 .toStringUtf8(); 5715 diffFields_ = s; 5716 return s; 5717 } else { 5718 return (java.lang.String) ref; 5719 } 5720 } 5721 /** 5722 * <code>optional string diff_fields = 24;</code> 5723 */ 5724 public com.google.protobuf.ByteString 5725 getDiffFieldsBytes() { 5726 java.lang.Object ref = diffFields_; 5727 if (ref instanceof String) { 5728 com.google.protobuf.ByteString b = 5729 com.google.protobuf.ByteString.copyFromUtf8( 5730 (java.lang.String) ref); 5731 diffFields_ = b; 5732 return b; 5733 } else { 5734 return (com.google.protobuf.ByteString) ref; 5735 } 5736 } 5737 /** 5738 * <code>optional string diff_fields = 24;</code> 5739 */ 5740 public Builder setDiffFields( 5741 java.lang.String value) { 5742 if (value == null) { 5743 throw new NullPointerException(); 5744 } 5745 bitField0_ |= 0x00800000; 5746 diffFields_ = value; 5747 onChanged(); 5748 return this; 5749 } 5750 /** 5751 * <code>optional string diff_fields = 24;</code> 5752 */ 5753 public Builder clearDiffFields() { 5754 bitField0_ = (bitField0_ & ~0x00800000); 5755 diffFields_ = getDefaultInstance().getDiffFields(); 5756 onChanged(); 5757 return this; 5758 } 5759 /** 5760 * <code>optional string diff_fields = 24;</code> 5761 */ 5762 public Builder setDiffFieldsBytes( 5763 com.google.protobuf.ByteString value) { 5764 if (value == null) { 5765 throw new NullPointerException(); 5766 } 5767 bitField0_ |= 0x00800000; 5768 diffFields_ = value; 5769 onChanged(); 5770 return this; 5771 } 5772 5773 // optional bool is_changed = 25; 5774 private boolean isChanged_ ; 5775 /** 5776 * <code>optional bool is_changed = 25;</code> 5777 */ 5778 public boolean hasIsChanged() { 5779 return ((bitField0_ & 0x01000000) == 0x01000000); 5780 } 5781 /** 5782 * <code>optional bool is_changed = 25;</code> 5783 */ 5784 public boolean getIsChanged() { 5785 return isChanged_; 5786 } 5787 /** 5788 * <code>optional bool is_changed = 25;</code> 5789 */ 5790 public Builder setIsChanged(boolean value) { 5791 bitField0_ |= 0x01000000; 5792 isChanged_ = value; 5793 onChanged(); 5794 return this; 5795 } 5796 /** 5797 * <code>optional bool is_changed = 25;</code> 5798 */ 5799 public Builder clearIsChanged() { 5800 bitField0_ = (bitField0_ & ~0x01000000); 5801 isChanged_ = false; 5802 onChanged(); 5803 return this; 5804 } 5805 5806 // optional bool must_send_notification = 26; 5807 private boolean mustSendNotification_ ; 5808 /** 5809 * <code>optional bool must_send_notification = 26;</code> 5810 */ 5811 public boolean hasMustSendNotification() { 5812 return ((bitField0_ & 0x02000000) == 0x02000000); 5813 } 5814 /** 5815 * <code>optional bool must_send_notification = 26;</code> 5816 */ 5817 public boolean getMustSendNotification() { 5818 return mustSendNotification_; 5819 } 5820 /** 5821 * <code>optional bool must_send_notification = 26;</code> 5822 */ 5823 public Builder setMustSendNotification(boolean value) { 5824 bitField0_ |= 0x02000000; 5825 mustSendNotification_ = value; 5826 onChanged(); 5827 return this; 5828 } 5829 /** 5830 * <code>optional bool must_send_notification = 26;</code> 5831 */ 5832 public Builder clearMustSendNotification() { 5833 bitField0_ = (bitField0_ & ~0x02000000); 5834 mustSendNotification_ = false; 5835 onChanged(); 5836 return this; 5837 } 5838 5839 // @@protoc_insertion_point(builder_scope:Issue) 5840 } 5841 5842 static { 5843 defaultInstance = new Issue(true); 5844 defaultInstance.initFields(); 5845 } 5846 5847 // @@protoc_insertion_point(class_scope:Issue) 5848 } 5849 5850 public interface IssuesOrBuilder 5851 extends com.google.protobuf.MessageOrBuilder { 5852 5853 // optional int32 component_ref = 1; 5854 /** 5855 * <code>optional int32 component_ref = 1;</code> 5856 */ 5857 boolean hasComponentRef(); 5858 /** 5859 * <code>optional int32 component_ref = 1;</code> 5860 */ 5861 int getComponentRef(); 5862 5863 // repeated .Issue list = 2; 5864 /** 5865 * <code>repeated .Issue list = 2;</code> 5866 */ 5867 java.util.List<org.sonar.batch.protocol.output.BatchReport.Issue> 5868 getListList(); 5869 /** 5870 * <code>repeated .Issue list = 2;</code> 5871 */ 5872 org.sonar.batch.protocol.output.BatchReport.Issue getList(int index); 5873 /** 5874 * <code>repeated .Issue list = 2;</code> 5875 */ 5876 int getListCount(); 5877 /** 5878 * <code>repeated .Issue list = 2;</code> 5879 */ 5880 java.util.List<? extends org.sonar.batch.protocol.output.BatchReport.IssueOrBuilder> 5881 getListOrBuilderList(); 5882 /** 5883 * <code>repeated .Issue list = 2;</code> 5884 */ 5885 org.sonar.batch.protocol.output.BatchReport.IssueOrBuilder getListOrBuilder( 5886 int index); 5887 5888 // optional string component_uuid = 3; 5889 /** 5890 * <code>optional string component_uuid = 3;</code> 5891 * 5892 * <pre> 5893 * Temporary field for issues on deleted components 5894 * </pre> 5895 */ 5896 boolean hasComponentUuid(); 5897 /** 5898 * <code>optional string component_uuid = 3;</code> 5899 * 5900 * <pre> 5901 * Temporary field for issues on deleted components 5902 * </pre> 5903 */ 5904 java.lang.String getComponentUuid(); 5905 /** 5906 * <code>optional string component_uuid = 3;</code> 5907 * 5908 * <pre> 5909 * Temporary field for issues on deleted components 5910 * </pre> 5911 */ 5912 com.google.protobuf.ByteString 5913 getComponentUuidBytes(); 5914 } 5915 /** 5916 * Protobuf type {@code Issues} 5917 */ 5918 public static final class Issues extends 5919 com.google.protobuf.GeneratedMessage 5920 implements IssuesOrBuilder { 5921 // Use Issues.newBuilder() to construct. 5922 private Issues(com.google.protobuf.GeneratedMessage.Builder<?> builder) { 5923 super(builder); 5924 this.unknownFields = builder.getUnknownFields(); 5925 } 5926 private Issues(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } 5927 5928 private static final Issues defaultInstance; 5929 public static Issues getDefaultInstance() { 5930 return defaultInstance; 5931 } 5932 5933 public Issues getDefaultInstanceForType() { 5934 return defaultInstance; 5935 } 5936 5937 private final com.google.protobuf.UnknownFieldSet unknownFields; 5938 @java.lang.Override 5939 public final com.google.protobuf.UnknownFieldSet 5940 getUnknownFields() { 5941 return this.unknownFields; 5942 } 5943 private Issues( 5944 com.google.protobuf.CodedInputStream input, 5945 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 5946 throws com.google.protobuf.InvalidProtocolBufferException { 5947 initFields(); 5948 int mutable_bitField0_ = 0; 5949 com.google.protobuf.UnknownFieldSet.Builder unknownFields = 5950 com.google.protobuf.UnknownFieldSet.newBuilder(); 5951 try { 5952 boolean done = false; 5953 while (!done) { 5954 int tag = input.readTag(); 5955 switch (tag) { 5956 case 0: 5957 done = true; 5958 break; 5959 default: { 5960 if (!parseUnknownField(input, unknownFields, 5961 extensionRegistry, tag)) { 5962 done = true; 5963 } 5964 break; 5965 } 5966 case 8: { 5967 bitField0_ |= 0x00000001; 5968 componentRef_ = input.readInt32(); 5969 break; 5970 } 5971 case 18: { 5972 if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { 5973 list_ = new java.util.ArrayList<org.sonar.batch.protocol.output.BatchReport.Issue>(); 5974 mutable_bitField0_ |= 0x00000002; 5975 } 5976 list_.add(input.readMessage(org.sonar.batch.protocol.output.BatchReport.Issue.PARSER, extensionRegistry)); 5977 break; 5978 } 5979 case 26: { 5980 bitField0_ |= 0x00000002; 5981 componentUuid_ = input.readBytes(); 5982 break; 5983 } 5984 } 5985 } 5986 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 5987 throw e.setUnfinishedMessage(this); 5988 } catch (java.io.IOException e) { 5989 throw new com.google.protobuf.InvalidProtocolBufferException( 5990 e.getMessage()).setUnfinishedMessage(this); 5991 } finally { 5992 if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { 5993 list_ = java.util.Collections.unmodifiableList(list_); 5994 } 5995 this.unknownFields = unknownFields.build(); 5996 makeExtensionsImmutable(); 5997 } 5998 } 5999 public static final com.google.protobuf.Descriptors.Descriptor 6000 getDescriptor() { 6001 return org.sonar.batch.protocol.output.BatchReport.internal_static_Issues_descriptor; 6002 } 6003 6004 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 6005 internalGetFieldAccessorTable() { 6006 return org.sonar.batch.protocol.output.BatchReport.internal_static_Issues_fieldAccessorTable 6007 .ensureFieldAccessorsInitialized( 6008 org.sonar.batch.protocol.output.BatchReport.Issues.class, org.sonar.batch.protocol.output.BatchReport.Issues.Builder.class); 6009 } 6010 6011 public static com.google.protobuf.Parser<Issues> PARSER = 6012 new com.google.protobuf.AbstractParser<Issues>() { 6013 public Issues parsePartialFrom( 6014 com.google.protobuf.CodedInputStream input, 6015 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 6016 throws com.google.protobuf.InvalidProtocolBufferException { 6017 return new Issues(input, extensionRegistry); 6018 } 6019 }; 6020 6021 @java.lang.Override 6022 public com.google.protobuf.Parser<Issues> getParserForType() { 6023 return PARSER; 6024 } 6025 6026 private int bitField0_; 6027 // optional int32 component_ref = 1; 6028 public static final int COMPONENT_REF_FIELD_NUMBER = 1; 6029 private int componentRef_; 6030 /** 6031 * <code>optional int32 component_ref = 1;</code> 6032 */ 6033 public boolean hasComponentRef() { 6034 return ((bitField0_ & 0x00000001) == 0x00000001); 6035 } 6036 /** 6037 * <code>optional int32 component_ref = 1;</code> 6038 */ 6039 public int getComponentRef() { 6040 return componentRef_; 6041 } 6042 6043 // repeated .Issue list = 2; 6044 public static final int LIST_FIELD_NUMBER = 2; 6045 private java.util.List<org.sonar.batch.protocol.output.BatchReport.Issue> list_; 6046 /** 6047 * <code>repeated .Issue list = 2;</code> 6048 */ 6049 public java.util.List<org.sonar.batch.protocol.output.BatchReport.Issue> getListList() { 6050 return list_; 6051 } 6052 /** 6053 * <code>repeated .Issue list = 2;</code> 6054 */ 6055 public java.util.List<? extends org.sonar.batch.protocol.output.BatchReport.IssueOrBuilder> 6056 getListOrBuilderList() { 6057 return list_; 6058 } 6059 /** 6060 * <code>repeated .Issue list = 2;</code> 6061 */ 6062 public int getListCount() { 6063 return list_.size(); 6064 } 6065 /** 6066 * <code>repeated .Issue list = 2;</code> 6067 */ 6068 public org.sonar.batch.protocol.output.BatchReport.Issue getList(int index) { 6069 return list_.get(index); 6070 } 6071 /** 6072 * <code>repeated .Issue list = 2;</code> 6073 */ 6074 public org.sonar.batch.protocol.output.BatchReport.IssueOrBuilder getListOrBuilder( 6075 int index) { 6076 return list_.get(index); 6077 } 6078 6079 // optional string component_uuid = 3; 6080 public static final int COMPONENT_UUID_FIELD_NUMBER = 3; 6081 private java.lang.Object componentUuid_; 6082 /** 6083 * <code>optional string component_uuid = 3;</code> 6084 * 6085 * <pre> 6086 * Temporary field for issues on deleted components 6087 * </pre> 6088 */ 6089 public boolean hasComponentUuid() { 6090 return ((bitField0_ & 0x00000002) == 0x00000002); 6091 } 6092 /** 6093 * <code>optional string component_uuid = 3;</code> 6094 * 6095 * <pre> 6096 * Temporary field for issues on deleted components 6097 * </pre> 6098 */ 6099 public java.lang.String getComponentUuid() { 6100 java.lang.Object ref = componentUuid_; 6101 if (ref instanceof java.lang.String) { 6102 return (java.lang.String) ref; 6103 } else { 6104 com.google.protobuf.ByteString bs = 6105 (com.google.protobuf.ByteString) ref; 6106 java.lang.String s = bs.toStringUtf8(); 6107 if (bs.isValidUtf8()) { 6108 componentUuid_ = s; 6109 } 6110 return s; 6111 } 6112 } 6113 /** 6114 * <code>optional string component_uuid = 3;</code> 6115 * 6116 * <pre> 6117 * Temporary field for issues on deleted components 6118 * </pre> 6119 */ 6120 public com.google.protobuf.ByteString 6121 getComponentUuidBytes() { 6122 java.lang.Object ref = componentUuid_; 6123 if (ref instanceof java.lang.String) { 6124 com.google.protobuf.ByteString b = 6125 com.google.protobuf.ByteString.copyFromUtf8( 6126 (java.lang.String) ref); 6127 componentUuid_ = b; 6128 return b; 6129 } else { 6130 return (com.google.protobuf.ByteString) ref; 6131 } 6132 } 6133 6134 private void initFields() { 6135 componentRef_ = 0; 6136 list_ = java.util.Collections.emptyList(); 6137 componentUuid_ = ""; 6138 } 6139 private byte memoizedIsInitialized = -1; 6140 public final boolean isInitialized() { 6141 byte isInitialized = memoizedIsInitialized; 6142 if (isInitialized != -1) return isInitialized == 1; 6143 6144 memoizedIsInitialized = 1; 6145 return true; 6146 } 6147 6148 public void writeTo(com.google.protobuf.CodedOutputStream output) 6149 throws java.io.IOException { 6150 getSerializedSize(); 6151 if (((bitField0_ & 0x00000001) == 0x00000001)) { 6152 output.writeInt32(1, componentRef_); 6153 } 6154 for (int i = 0; i < list_.size(); i++) { 6155 output.writeMessage(2, list_.get(i)); 6156 } 6157 if (((bitField0_ & 0x00000002) == 0x00000002)) { 6158 output.writeBytes(3, getComponentUuidBytes()); 6159 } 6160 getUnknownFields().writeTo(output); 6161 } 6162 6163 private int memoizedSerializedSize = -1; 6164 public int getSerializedSize() { 6165 int size = memoizedSerializedSize; 6166 if (size != -1) return size; 6167 6168 size = 0; 6169 if (((bitField0_ & 0x00000001) == 0x00000001)) { 6170 size += com.google.protobuf.CodedOutputStream 6171 .computeInt32Size(1, componentRef_); 6172 } 6173 for (int i = 0; i < list_.size(); i++) { 6174 size += com.google.protobuf.CodedOutputStream 6175 .computeMessageSize(2, list_.get(i)); 6176 } 6177 if (((bitField0_ & 0x00000002) == 0x00000002)) { 6178 size += com.google.protobuf.CodedOutputStream 6179 .computeBytesSize(3, getComponentUuidBytes()); 6180 } 6181 size += getUnknownFields().getSerializedSize(); 6182 memoizedSerializedSize = size; 6183 return size; 6184 } 6185 6186 private static final long serialVersionUID = 0L; 6187 @java.lang.Override 6188 protected java.lang.Object writeReplace() 6189 throws java.io.ObjectStreamException { 6190 return super.writeReplace(); 6191 } 6192 6193 public static org.sonar.batch.protocol.output.BatchReport.Issues parseFrom( 6194 com.google.protobuf.ByteString data) 6195 throws com.google.protobuf.InvalidProtocolBufferException { 6196 return PARSER.parseFrom(data); 6197 } 6198 public static org.sonar.batch.protocol.output.BatchReport.Issues parseFrom( 6199 com.google.protobuf.ByteString data, 6200 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 6201 throws com.google.protobuf.InvalidProtocolBufferException { 6202 return PARSER.parseFrom(data, extensionRegistry); 6203 } 6204 public static org.sonar.batch.protocol.output.BatchReport.Issues parseFrom(byte[] data) 6205 throws com.google.protobuf.InvalidProtocolBufferException { 6206 return PARSER.parseFrom(data); 6207 } 6208 public static org.sonar.batch.protocol.output.BatchReport.Issues parseFrom( 6209 byte[] data, 6210 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 6211 throws com.google.protobuf.InvalidProtocolBufferException { 6212 return PARSER.parseFrom(data, extensionRegistry); 6213 } 6214 public static org.sonar.batch.protocol.output.BatchReport.Issues parseFrom(java.io.InputStream input) 6215 throws java.io.IOException { 6216 return PARSER.parseFrom(input); 6217 } 6218 public static org.sonar.batch.protocol.output.BatchReport.Issues parseFrom( 6219 java.io.InputStream input, 6220 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 6221 throws java.io.IOException { 6222 return PARSER.parseFrom(input, extensionRegistry); 6223 } 6224 public static org.sonar.batch.protocol.output.BatchReport.Issues parseDelimitedFrom(java.io.InputStream input) 6225 throws java.io.IOException { 6226 return PARSER.parseDelimitedFrom(input); 6227 } 6228 public static org.sonar.batch.protocol.output.BatchReport.Issues parseDelimitedFrom( 6229 java.io.InputStream input, 6230 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 6231 throws java.io.IOException { 6232 return PARSER.parseDelimitedFrom(input, extensionRegistry); 6233 } 6234 public static org.sonar.batch.protocol.output.BatchReport.Issues parseFrom( 6235 com.google.protobuf.CodedInputStream input) 6236 throws java.io.IOException { 6237 return PARSER.parseFrom(input); 6238 } 6239 public static org.sonar.batch.protocol.output.BatchReport.Issues parseFrom( 6240 com.google.protobuf.CodedInputStream input, 6241 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 6242 throws java.io.IOException { 6243 return PARSER.parseFrom(input, extensionRegistry); 6244 } 6245 6246 public static Builder newBuilder() { return Builder.create(); } 6247 public Builder newBuilderForType() { return newBuilder(); } 6248 public static Builder newBuilder(org.sonar.batch.protocol.output.BatchReport.Issues prototype) { 6249 return newBuilder().mergeFrom(prototype); 6250 } 6251 public Builder toBuilder() { return newBuilder(this); } 6252 6253 @java.lang.Override 6254 protected Builder newBuilderForType( 6255 com.google.protobuf.GeneratedMessage.BuilderParent parent) { 6256 Builder builder = new Builder(parent); 6257 return builder; 6258 } 6259 /** 6260 * Protobuf type {@code Issues} 6261 */ 6262 public static final class Builder extends 6263 com.google.protobuf.GeneratedMessage.Builder<Builder> 6264 implements org.sonar.batch.protocol.output.BatchReport.IssuesOrBuilder { 6265 public static final com.google.protobuf.Descriptors.Descriptor 6266 getDescriptor() { 6267 return org.sonar.batch.protocol.output.BatchReport.internal_static_Issues_descriptor; 6268 } 6269 6270 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 6271 internalGetFieldAccessorTable() { 6272 return org.sonar.batch.protocol.output.BatchReport.internal_static_Issues_fieldAccessorTable 6273 .ensureFieldAccessorsInitialized( 6274 org.sonar.batch.protocol.output.BatchReport.Issues.class, org.sonar.batch.protocol.output.BatchReport.Issues.Builder.class); 6275 } 6276 6277 // Construct using org.sonar.batch.protocol.output.BatchReport.Issues.newBuilder() 6278 private Builder() { 6279 maybeForceBuilderInitialization(); 6280 } 6281 6282 private Builder( 6283 com.google.protobuf.GeneratedMessage.BuilderParent parent) { 6284 super(parent); 6285 maybeForceBuilderInitialization(); 6286 } 6287 private void maybeForceBuilderInitialization() { 6288 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { 6289 getListFieldBuilder(); 6290 } 6291 } 6292 private static Builder create() { 6293 return new Builder(); 6294 } 6295 6296 public Builder clear() { 6297 super.clear(); 6298 componentRef_ = 0; 6299 bitField0_ = (bitField0_ & ~0x00000001); 6300 if (listBuilder_ == null) { 6301 list_ = java.util.Collections.emptyList(); 6302 bitField0_ = (bitField0_ & ~0x00000002); 6303 } else { 6304 listBuilder_.clear(); 6305 } 6306 componentUuid_ = ""; 6307 bitField0_ = (bitField0_ & ~0x00000004); 6308 return this; 6309 } 6310 6311 public Builder clone() { 6312 return create().mergeFrom(buildPartial()); 6313 } 6314 6315 public com.google.protobuf.Descriptors.Descriptor 6316 getDescriptorForType() { 6317 return org.sonar.batch.protocol.output.BatchReport.internal_static_Issues_descriptor; 6318 } 6319 6320 public org.sonar.batch.protocol.output.BatchReport.Issues getDefaultInstanceForType() { 6321 return org.sonar.batch.protocol.output.BatchReport.Issues.getDefaultInstance(); 6322 } 6323 6324 public org.sonar.batch.protocol.output.BatchReport.Issues build() { 6325 org.sonar.batch.protocol.output.BatchReport.Issues result = buildPartial(); 6326 if (!result.isInitialized()) { 6327 throw newUninitializedMessageException(result); 6328 } 6329 return result; 6330 } 6331 6332 public org.sonar.batch.protocol.output.BatchReport.Issues buildPartial() { 6333 org.sonar.batch.protocol.output.BatchReport.Issues result = new org.sonar.batch.protocol.output.BatchReport.Issues(this); 6334 int from_bitField0_ = bitField0_; 6335 int to_bitField0_ = 0; 6336 if (((from_bitField0_ & 0x00000001) == 0x00000001)) { 6337 to_bitField0_ |= 0x00000001; 6338 } 6339 result.componentRef_ = componentRef_; 6340 if (listBuilder_ == null) { 6341 if (((bitField0_ & 0x00000002) == 0x00000002)) { 6342 list_ = java.util.Collections.unmodifiableList(list_); 6343 bitField0_ = (bitField0_ & ~0x00000002); 6344 } 6345 result.list_ = list_; 6346 } else { 6347 result.list_ = listBuilder_.build(); 6348 } 6349 if (((from_bitField0_ & 0x00000004) == 0x00000004)) { 6350 to_bitField0_ |= 0x00000002; 6351 } 6352 result.componentUuid_ = componentUuid_; 6353 result.bitField0_ = to_bitField0_; 6354 onBuilt(); 6355 return result; 6356 } 6357 6358 public Builder mergeFrom(com.google.protobuf.Message other) { 6359 if (other instanceof org.sonar.batch.protocol.output.BatchReport.Issues) { 6360 return mergeFrom((org.sonar.batch.protocol.output.BatchReport.Issues)other); 6361 } else { 6362 super.mergeFrom(other); 6363 return this; 6364 } 6365 } 6366 6367 public Builder mergeFrom(org.sonar.batch.protocol.output.BatchReport.Issues other) { 6368 if (other == org.sonar.batch.protocol.output.BatchReport.Issues.getDefaultInstance()) return this; 6369 if (other.hasComponentRef()) { 6370 setComponentRef(other.getComponentRef()); 6371 } 6372 if (listBuilder_ == null) { 6373 if (!other.list_.isEmpty()) { 6374 if (list_.isEmpty()) { 6375 list_ = other.list_; 6376 bitField0_ = (bitField0_ & ~0x00000002); 6377 } else { 6378 ensureListIsMutable(); 6379 list_.addAll(other.list_); 6380 } 6381 onChanged(); 6382 } 6383 } else { 6384 if (!other.list_.isEmpty()) { 6385 if (listBuilder_.isEmpty()) { 6386 listBuilder_.dispose(); 6387 listBuilder_ = null; 6388 list_ = other.list_; 6389 bitField0_ = (bitField0_ & ~0x00000002); 6390 listBuilder_ = 6391 com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? 6392 getListFieldBuilder() : null; 6393 } else { 6394 listBuilder_.addAllMessages(other.list_); 6395 } 6396 } 6397 } 6398 if (other.hasComponentUuid()) { 6399 bitField0_ |= 0x00000004; 6400 componentUuid_ = other.componentUuid_; 6401 onChanged(); 6402 } 6403 this.mergeUnknownFields(other.getUnknownFields()); 6404 return this; 6405 } 6406 6407 public final boolean isInitialized() { 6408 return true; 6409 } 6410 6411 public Builder mergeFrom( 6412 com.google.protobuf.CodedInputStream input, 6413 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 6414 throws java.io.IOException { 6415 org.sonar.batch.protocol.output.BatchReport.Issues parsedMessage = null; 6416 try { 6417 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 6418 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 6419 parsedMessage = (org.sonar.batch.protocol.output.BatchReport.Issues) e.getUnfinishedMessage(); 6420 throw e; 6421 } finally { 6422 if (parsedMessage != null) { 6423 mergeFrom(parsedMessage); 6424 } 6425 } 6426 return this; 6427 } 6428 private int bitField0_; 6429 6430 // optional int32 component_ref = 1; 6431 private int componentRef_ ; 6432 /** 6433 * <code>optional int32 component_ref = 1;</code> 6434 */ 6435 public boolean hasComponentRef() { 6436 return ((bitField0_ & 0x00000001) == 0x00000001); 6437 } 6438 /** 6439 * <code>optional int32 component_ref = 1;</code> 6440 */ 6441 public int getComponentRef() { 6442 return componentRef_; 6443 } 6444 /** 6445 * <code>optional int32 component_ref = 1;</code> 6446 */ 6447 public Builder setComponentRef(int value) { 6448 bitField0_ |= 0x00000001; 6449 componentRef_ = value; 6450 onChanged(); 6451 return this; 6452 } 6453 /** 6454 * <code>optional int32 component_ref = 1;</code> 6455 */ 6456 public Builder clearComponentRef() { 6457 bitField0_ = (bitField0_ & ~0x00000001); 6458 componentRef_ = 0; 6459 onChanged(); 6460 return this; 6461 } 6462 6463 // repeated .Issue list = 2; 6464 private java.util.List<org.sonar.batch.protocol.output.BatchReport.Issue> list_ = 6465 java.util.Collections.emptyList(); 6466 private void ensureListIsMutable() { 6467 if (!((bitField0_ & 0x00000002) == 0x00000002)) { 6468 list_ = new java.util.ArrayList<org.sonar.batch.protocol.output.BatchReport.Issue>(list_); 6469 bitField0_ |= 0x00000002; 6470 } 6471 } 6472 6473 private com.google.protobuf.RepeatedFieldBuilder< 6474 org.sonar.batch.protocol.output.BatchReport.Issue, org.sonar.batch.protocol.output.BatchReport.Issue.Builder, org.sonar.batch.protocol.output.BatchReport.IssueOrBuilder> listBuilder_; 6475 6476 /** 6477 * <code>repeated .Issue list = 2;</code> 6478 */ 6479 public java.util.List<org.sonar.batch.protocol.output.BatchReport.Issue> getListList() { 6480 if (listBuilder_ == null) { 6481 return java.util.Collections.unmodifiableList(list_); 6482 } else { 6483 return listBuilder_.getMessageList(); 6484 } 6485 } 6486 /** 6487 * <code>repeated .Issue list = 2;</code> 6488 */ 6489 public int getListCount() { 6490 if (listBuilder_ == null) { 6491 return list_.size(); 6492 } else { 6493 return listBuilder_.getCount(); 6494 } 6495 } 6496 /** 6497 * <code>repeated .Issue list = 2;</code> 6498 */ 6499 public org.sonar.batch.protocol.output.BatchReport.Issue getList(int index) { 6500 if (listBuilder_ == null) { 6501 return list_.get(index); 6502 } else { 6503 return listBuilder_.getMessage(index); 6504 } 6505 } 6506 /** 6507 * <code>repeated .Issue list = 2;</code> 6508 */ 6509 public Builder setList( 6510 int index, org.sonar.batch.protocol.output.BatchReport.Issue value) { 6511 if (listBuilder_ == null) { 6512 if (value == null) { 6513 throw new NullPointerException(); 6514 } 6515 ensureListIsMutable(); 6516 list_.set(index, value); 6517 onChanged(); 6518 } else { 6519 listBuilder_.setMessage(index, value); 6520 } 6521 return this; 6522 } 6523 /** 6524 * <code>repeated .Issue list = 2;</code> 6525 */ 6526 public Builder setList( 6527 int index, org.sonar.batch.protocol.output.BatchReport.Issue.Builder builderForValue) { 6528 if (listBuilder_ == null) { 6529 ensureListIsMutable(); 6530 list_.set(index, builderForValue.build()); 6531 onChanged(); 6532 } else { 6533 listBuilder_.setMessage(index, builderForValue.build()); 6534 } 6535 return this; 6536 } 6537 /** 6538 * <code>repeated .Issue list = 2;</code> 6539 */ 6540 public Builder addList(org.sonar.batch.protocol.output.BatchReport.Issue value) { 6541 if (listBuilder_ == null) { 6542 if (value == null) { 6543 throw new NullPointerException(); 6544 } 6545 ensureListIsMutable(); 6546 list_.add(value); 6547 onChanged(); 6548 } else { 6549 listBuilder_.addMessage(value); 6550 } 6551 return this; 6552 } 6553 /** 6554 * <code>repeated .Issue list = 2;</code> 6555 */ 6556 public Builder addList( 6557 int index, org.sonar.batch.protocol.output.BatchReport.Issue value) { 6558 if (listBuilder_ == null) { 6559 if (value == null) { 6560 throw new NullPointerException(); 6561 } 6562 ensureListIsMutable(); 6563 list_.add(index, value); 6564 onChanged(); 6565 } else { 6566 listBuilder_.addMessage(index, value); 6567 } 6568 return this; 6569 } 6570 /** 6571 * <code>repeated .Issue list = 2;</code> 6572 */ 6573 public Builder addList( 6574 org.sonar.batch.protocol.output.BatchReport.Issue.Builder builderForValue) { 6575 if (listBuilder_ == null) { 6576 ensureListIsMutable(); 6577 list_.add(builderForValue.build()); 6578 onChanged(); 6579 } else { 6580 listBuilder_.addMessage(builderForValue.build()); 6581 } 6582 return this; 6583 } 6584 /** 6585 * <code>repeated .Issue list = 2;</code> 6586 */ 6587 public Builder addList( 6588 int index, org.sonar.batch.protocol.output.BatchReport.Issue.Builder builderForValue) { 6589 if (listBuilder_ == null) { 6590 ensureListIsMutable(); 6591 list_.add(index, builderForValue.build()); 6592 onChanged(); 6593 } else { 6594 listBuilder_.addMessage(index, builderForValue.build()); 6595 } 6596 return this; 6597 } 6598 /** 6599 * <code>repeated .Issue list = 2;</code> 6600 */ 6601 public Builder addAllList( 6602 java.lang.Iterable<? extends org.sonar.batch.protocol.output.BatchReport.Issue> values) { 6603 if (listBuilder_ == null) { 6604 ensureListIsMutable(); 6605 super.addAll(values, list_); 6606 onChanged(); 6607 } else { 6608 listBuilder_.addAllMessages(values); 6609 } 6610 return this; 6611 } 6612 /** 6613 * <code>repeated .Issue list = 2;</code> 6614 */ 6615 public Builder clearList() { 6616 if (listBuilder_ == null) { 6617 list_ = java.util.Collections.emptyList(); 6618 bitField0_ = (bitField0_ & ~0x00000002); 6619 onChanged(); 6620 } else { 6621 listBuilder_.clear(); 6622 } 6623 return this; 6624 } 6625 /** 6626 * <code>repeated .Issue list = 2;</code> 6627 */ 6628 public Builder removeList(int index) { 6629 if (listBuilder_ == null) { 6630 ensureListIsMutable(); 6631 list_.remove(index); 6632 onChanged(); 6633 } else { 6634 listBuilder_.remove(index); 6635 } 6636 return this; 6637 } 6638 /** 6639 * <code>repeated .Issue list = 2;</code> 6640 */ 6641 public org.sonar.batch.protocol.output.BatchReport.Issue.Builder getListBuilder( 6642 int index) { 6643 return getListFieldBuilder().getBuilder(index); 6644 } 6645 /** 6646 * <code>repeated .Issue list = 2;</code> 6647 */ 6648 public org.sonar.batch.protocol.output.BatchReport.IssueOrBuilder getListOrBuilder( 6649 int index) { 6650 if (listBuilder_ == null) { 6651 return list_.get(index); } else { 6652 return listBuilder_.getMessageOrBuilder(index); 6653 } 6654 } 6655 /** 6656 * <code>repeated .Issue list = 2;</code> 6657 */ 6658 public java.util.List<? extends org.sonar.batch.protocol.output.BatchReport.IssueOrBuilder> 6659 getListOrBuilderList() { 6660 if (listBuilder_ != null) { 6661 return listBuilder_.getMessageOrBuilderList(); 6662 } else { 6663 return java.util.Collections.unmodifiableList(list_); 6664 } 6665 } 6666 /** 6667 * <code>repeated .Issue list = 2;</code> 6668 */ 6669 public org.sonar.batch.protocol.output.BatchReport.Issue.Builder addListBuilder() { 6670 return getListFieldBuilder().addBuilder( 6671 org.sonar.batch.protocol.output.BatchReport.Issue.getDefaultInstance()); 6672 } 6673 /** 6674 * <code>repeated .Issue list = 2;</code> 6675 */ 6676 public org.sonar.batch.protocol.output.BatchReport.Issue.Builder addListBuilder( 6677 int index) { 6678 return getListFieldBuilder().addBuilder( 6679 index, org.sonar.batch.protocol.output.BatchReport.Issue.getDefaultInstance()); 6680 } 6681 /** 6682 * <code>repeated .Issue list = 2;</code> 6683 */ 6684 public java.util.List<org.sonar.batch.protocol.output.BatchReport.Issue.Builder> 6685 getListBuilderList() { 6686 return getListFieldBuilder().getBuilderList(); 6687 } 6688 private com.google.protobuf.RepeatedFieldBuilder< 6689 org.sonar.batch.protocol.output.BatchReport.Issue, org.sonar.batch.protocol.output.BatchReport.Issue.Builder, org.sonar.batch.protocol.output.BatchReport.IssueOrBuilder> 6690 getListFieldBuilder() { 6691 if (listBuilder_ == null) { 6692 listBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< 6693 org.sonar.batch.protocol.output.BatchReport.Issue, org.sonar.batch.protocol.output.BatchReport.Issue.Builder, org.sonar.batch.protocol.output.BatchReport.IssueOrBuilder>( 6694 list_, 6695 ((bitField0_ & 0x00000002) == 0x00000002), 6696 getParentForChildren(), 6697 isClean()); 6698 list_ = null; 6699 } 6700 return listBuilder_; 6701 } 6702 6703 // optional string component_uuid = 3; 6704 private java.lang.Object componentUuid_ = ""; 6705 /** 6706 * <code>optional string component_uuid = 3;</code> 6707 * 6708 * <pre> 6709 * Temporary field for issues on deleted components 6710 * </pre> 6711 */ 6712 public boolean hasComponentUuid() { 6713 return ((bitField0_ & 0x00000004) == 0x00000004); 6714 } 6715 /** 6716 * <code>optional string component_uuid = 3;</code> 6717 * 6718 * <pre> 6719 * Temporary field for issues on deleted components 6720 * </pre> 6721 */ 6722 public java.lang.String getComponentUuid() { 6723 java.lang.Object ref = componentUuid_; 6724 if (!(ref instanceof java.lang.String)) { 6725 java.lang.String s = ((com.google.protobuf.ByteString) ref) 6726 .toStringUtf8(); 6727 componentUuid_ = s; 6728 return s; 6729 } else { 6730 return (java.lang.String) ref; 6731 } 6732 } 6733 /** 6734 * <code>optional string component_uuid = 3;</code> 6735 * 6736 * <pre> 6737 * Temporary field for issues on deleted components 6738 * </pre> 6739 */ 6740 public com.google.protobuf.ByteString 6741 getComponentUuidBytes() { 6742 java.lang.Object ref = componentUuid_; 6743 if (ref instanceof String) { 6744 com.google.protobuf.ByteString b = 6745 com.google.protobuf.ByteString.copyFromUtf8( 6746 (java.lang.String) ref); 6747 componentUuid_ = b; 6748 return b; 6749 } else { 6750 return (com.google.protobuf.ByteString) ref; 6751 } 6752 } 6753 /** 6754 * <code>optional string component_uuid = 3;</code> 6755 * 6756 * <pre> 6757 * Temporary field for issues on deleted components 6758 * </pre> 6759 */ 6760 public Builder setComponentUuid( 6761 java.lang.String value) { 6762 if (value == null) { 6763 throw new NullPointerException(); 6764 } 6765 bitField0_ |= 0x00000004; 6766 componentUuid_ = value; 6767 onChanged(); 6768 return this; 6769 } 6770 /** 6771 * <code>optional string component_uuid = 3;</code> 6772 * 6773 * <pre> 6774 * Temporary field for issues on deleted components 6775 * </pre> 6776 */ 6777 public Builder clearComponentUuid() { 6778 bitField0_ = (bitField0_ & ~0x00000004); 6779 componentUuid_ = getDefaultInstance().getComponentUuid(); 6780 onChanged(); 6781 return this; 6782 } 6783 /** 6784 * <code>optional string component_uuid = 3;</code> 6785 * 6786 * <pre> 6787 * Temporary field for issues on deleted components 6788 * </pre> 6789 */ 6790 public Builder setComponentUuidBytes( 6791 com.google.protobuf.ByteString value) { 6792 if (value == null) { 6793 throw new NullPointerException(); 6794 } 6795 bitField0_ |= 0x00000004; 6796 componentUuid_ = value; 6797 onChanged(); 6798 return this; 6799 } 6800 6801 // @@protoc_insertion_point(builder_scope:Issues) 6802 } 6803 6804 static { 6805 defaultInstance = new Issues(true); 6806 defaultInstance.initFields(); 6807 } 6808 6809 // @@protoc_insertion_point(class_scope:Issues) 6810 } 6811 6812 private static com.google.protobuf.Descriptors.Descriptor 6813 internal_static_Metadata_descriptor; 6814 private static 6815 com.google.protobuf.GeneratedMessage.FieldAccessorTable 6816 internal_static_Metadata_fieldAccessorTable; 6817 private static com.google.protobuf.Descriptors.Descriptor 6818 internal_static_Component_descriptor; 6819 private static 6820 com.google.protobuf.GeneratedMessage.FieldAccessorTable 6821 internal_static_Component_fieldAccessorTable; 6822 private static com.google.protobuf.Descriptors.Descriptor 6823 internal_static_Issue_descriptor; 6824 private static 6825 com.google.protobuf.GeneratedMessage.FieldAccessorTable 6826 internal_static_Issue_fieldAccessorTable; 6827 private static com.google.protobuf.Descriptors.Descriptor 6828 internal_static_Issues_descriptor; 6829 private static 6830 com.google.protobuf.GeneratedMessage.FieldAccessorTable 6831 internal_static_Issues_fieldAccessorTable; 6832 6833 public static com.google.protobuf.Descriptors.FileDescriptor 6834 getDescriptor() { 6835 return descriptor; 6836 } 6837 private static com.google.protobuf.Descriptors.FileDescriptor 6838 descriptor; 6839 static { 6840 java.lang.String[] descriptorData = { 6841 "\n\022batch_report.proto\032\017constants.proto\"\211\001" + 6842 "\n\010Metadata\022\025\n\ranalysis_date\030\001 \001(\003\022\023\n\013pro" + 6843 "ject_key\030\002 \001(\t\022\032\n\022root_component_ref\030\003 \001" + 6844 "(\005\022\023\n\013snapshot_id\030\004 \001(\003\022 \n\030deleted_compo" + 6845 "nents_count\030\005 \001(\005\"\260\001\n\tComponent\022\013\n\003ref\030\001" + 6846 " \001(\005\022\014\n\004path\030\002 \001(\t\022\014\n\004name\030\003 \001(\t\022\034\n\004type" + 6847 "\030\004 \001(\0162\016.ComponentType\022\017\n\007is_test\030\005 \001(\010\022" + 6848 "\020\n\010language\030\006 \001(\t\022\026\n\nchild_refs\030\007 \003(\005B\002\020" + 6849 "\001\022\023\n\013snapshot_id\030\010 \001(\005\022\014\n\004uuid\030\t \001(\t\"\232\004\n" + 6850 "\005Issue\022\027\n\017rule_repository\030\001 \001(\t\022\020\n\010rule_", 6851 "key\030\002 \001(\t\022\014\n\004line\030\003 \001(\005\022\013\n\003msg\030\004 \001(\t\022\033\n\010" + 6852 "severity\030\005 \001(\0162\t.Severity\022\014\n\004tags\030\006 \003(\t\022" + 6853 "\025\n\reffort_to_fix\030\007 \001(\001\022\016\n\006is_new\030\010 \001(\010\022\014" + 6854 "\n\004uuid\030\t \001(\t\022\027\n\017debt_in_minutes\030\n \001(\003\022\022\n" + 6855 "\nresolution\030\013 \001(\t\022\016\n\006status\030\014 \001(\t\022\020\n\010che" + 6856 "cksum\030\r \001(\t\022\027\n\017manual_severity\030\016 \001(\010\022\020\n\010" + 6857 "reporter\030\017 \001(\t\022\020\n\010assignee\030\020 \001(\t\022\027\n\017acti" + 6858 "on_plan_key\030\021 \001(\t\022\022\n\nattributes\030\022 \001(\t\022\024\n" + 6859 "\014author_login\030\023 \001(\t\022\025\n\rcreation_date\030\024 \001" + 6860 "(\003\022\022\n\nclose_date\030\025 \001(\003\022\023\n\013update_date\030\026 ", 6861 "\001(\003\022\023\n\013selected_at\030\027 \001(\003\022\023\n\013diff_fields\030" + 6862 "\030 \001(\t\022\022\n\nis_changed\030\031 \001(\010\022\036\n\026must_send_n" + 6863 "otification\030\032 \001(\010\"M\n\006Issues\022\025\n\rcomponent" + 6864 "_ref\030\001 \001(\005\022\024\n\004list\030\002 \003(\0132\006.Issue\022\026\n\016comp" + 6865 "onent_uuid\030\003 \001(\tB#\n\037org.sonar.batch.prot" + 6866 "ocol.outputH\001" 6867 }; 6868 com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = 6869 new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { 6870 public com.google.protobuf.ExtensionRegistry assignDescriptors( 6871 com.google.protobuf.Descriptors.FileDescriptor root) { 6872 descriptor = root; 6873 internal_static_Metadata_descriptor = 6874 getDescriptor().getMessageTypes().get(0); 6875 internal_static_Metadata_fieldAccessorTable = new 6876 com.google.protobuf.GeneratedMessage.FieldAccessorTable( 6877 internal_static_Metadata_descriptor, 6878 new java.lang.String[] { "AnalysisDate", "ProjectKey", "RootComponentRef", "SnapshotId", "DeletedComponentsCount", }); 6879 internal_static_Component_descriptor = 6880 getDescriptor().getMessageTypes().get(1); 6881 internal_static_Component_fieldAccessorTable = new 6882 com.google.protobuf.GeneratedMessage.FieldAccessorTable( 6883 internal_static_Component_descriptor, 6884 new java.lang.String[] { "Ref", "Path", "Name", "Type", "IsTest", "Language", "ChildRefs", "SnapshotId", "Uuid", }); 6885 internal_static_Issue_descriptor = 6886 getDescriptor().getMessageTypes().get(2); 6887 internal_static_Issue_fieldAccessorTable = new 6888 com.google.protobuf.GeneratedMessage.FieldAccessorTable( 6889 internal_static_Issue_descriptor, 6890 new java.lang.String[] { "RuleRepository", "RuleKey", "Line", "Msg", "Severity", "Tags", "EffortToFix", "IsNew", "Uuid", "DebtInMinutes", "Resolution", "Status", "Checksum", "ManualSeverity", "Reporter", "Assignee", "ActionPlanKey", "Attributes", "AuthorLogin", "CreationDate", "CloseDate", "UpdateDate", "SelectedAt", "DiffFields", "IsChanged", "MustSendNotification", }); 6891 internal_static_Issues_descriptor = 6892 getDescriptor().getMessageTypes().get(3); 6893 internal_static_Issues_fieldAccessorTable = new 6894 com.google.protobuf.GeneratedMessage.FieldAccessorTable( 6895 internal_static_Issues_descriptor, 6896 new java.lang.String[] { "ComponentRef", "List", "ComponentUuid", }); 6897 return null; 6898 } 6899 }; 6900 com.google.protobuf.Descriptors.FileDescriptor 6901 .internalBuildGeneratedFileFrom(descriptorData, 6902 new com.google.protobuf.Descriptors.FileDescriptor[] { 6903 org.sonar.batch.protocol.Constants.getDescriptor(), 6904 }, assigner); 6905 } 6906 6907 // @@protoc_insertion_point(outer_class_scope) 6908}