From bf4a0225b21f6eebd60e05d1aa963a6b4007c13b Mon Sep 17 00:00:00 2001 From: Julien HENRY Date: Mon, 16 Mar 2015 16:06:38 +0100 Subject: [PATCH] Apply naming convention for repeated protobuf attributes --- .../computation/issue/IssueComputation.java | 2 +- .../computation/step/ParseReportStep.java | 4 +- .../step/PersistComponentLinksStep.java | 6 +- .../v51/FeedFileSourcesBinaryData.java | 2 +- .../index/SourceLineResultSetIterator.java | 2 +- .../computation/step/ParseReportStepTest.java | 10 +- .../step/PersistComponentLinksStepTest.java | 22 +- .../server/source/db/FileSourceTesting.java | 4 +- .../org/sonar/batch/protocol/Constants.java | 193 +- .../batch/protocol/input/BatchInput.java | 909 ++-- .../batch/protocol/output/BatchReport.java | 3701 +++++++---------- .../sonar/server/source/db/FileSourceDb.java | 1134 ++--- .../protocol/output/BatchReportReader.java | 2 +- .../protocol/output/BatchReportWriter.java | 4 +- .../src/main/protobuf/batch_report.proto | 8 +- .../src/main/protobuf/file_source_db.proto | 2 +- .../output/BatchReportReaderTest.java | 4 +- .../output/BatchReportWriterTest.java | 10 +- .../sonar/batch/index/SourceDataFactory.java | 9 +- .../batch/report/ComponentsPublisher.java | 4 +- .../sonar/batch/report/IssuesPublisher.java | 4 +- .../batch/index/SourceDataFactoryTest.java | 12 +- .../batch/report/ComponentsPublisherTest.java | 14 +- .../batch/report/IssuesPublisherTest.java | 4 +- 24 files changed, 2513 insertions(+), 3553 deletions(-) diff --git a/server/sonar-server/src/main/java/org/sonar/server/computation/issue/IssueComputation.java b/server/sonar-server/src/main/java/org/sonar/server/computation/issue/IssueComputation.java index 6400979ffb4..3c2bdce8317 100644 --- a/server/sonar-server/src/main/java/org/sonar/server/computation/issue/IssueComputation.java +++ b/server/sonar-server/src/main/java/org/sonar/server/computation/issue/IssueComputation.java @@ -95,7 +95,7 @@ public class IssueComputation { target.setCurrentChange(fieldDiffs); } target.setStatus(issue.getStatus()); - target.setTags(issue.getTagsList()); + target.setTags(issue.getTagList()); target.setResolution(issue.hasResolution() ? issue.getResolution() : null); target.setReporter(issue.hasReporter() ? issue.getReporter() : null); target.setAssignee(issue.hasAssignee() ? issue.getAssignee() : null); diff --git a/server/sonar-server/src/main/java/org/sonar/server/computation/step/ParseReportStep.java b/server/sonar-server/src/main/java/org/sonar/server/computation/step/ParseReportStep.java index c9a8c173b23..6f070bbe3d9 100644 --- a/server/sonar-server/src/main/java/org/sonar/server/computation/step/ParseReportStep.java +++ b/server/sonar-server/src/main/java/org/sonar/server/computation/step/ParseReportStep.java @@ -54,7 +54,7 @@ public class ParseReportStep implements ComputationStep { BatchReport.Component component = reportReader.readComponent(componentRef); List issues = reportReader.readComponentIssues(componentRef); issueComputation.processComponentIssues(context, component.getUuid(), issues); - for (Integer childRef : component.getChildRefsList()) { + for (Integer childRef : component.getChildRefList()) { recursivelyProcessComponent(context, childRef); } } @@ -63,7 +63,7 @@ public class ParseReportStep implements ComputationStep { int deletedComponentsCount = context.getReportMetadata().getDeletedComponentsCount(); for (int componentRef = 1; componentRef <= deletedComponentsCount; componentRef++) { BatchReport.Issues issues = context.getReportReader().readDeletedComponentIssues(componentRef); - issueComputation.processComponentIssues(context, issues.getComponentUuid(), issues.getListList()); + issueComputation.processComponentIssues(context, issues.getComponentUuid(), issues.getIssueList()); } } diff --git a/server/sonar-server/src/main/java/org/sonar/server/computation/step/PersistComponentLinksStep.java b/server/sonar-server/src/main/java/org/sonar/server/computation/step/PersistComponentLinksStep.java index a8659acd4b1..fbd0e7b53ce 100644 --- a/server/sonar-server/src/main/java/org/sonar/server/computation/step/PersistComponentLinksStep.java +++ b/server/sonar-server/src/main/java/org/sonar/server/computation/step/PersistComponentLinksStep.java @@ -54,7 +54,7 @@ public class PersistComponentLinksStep implements ComputationStep { Constants.ComponentLinkType.SCM_DEV, ComponentLinkDto.TYPE_SOURCES_DEV, Constants.ComponentLinkType.CI, ComponentLinkDto.TYPE_CI, Constants.ComponentLinkType.ISSUE, ComponentLinkDto.TYPE_ISSUE_TRACKER - ); + ); public PersistComponentLinksStep(DbClient dbClient, I18n i18n) { this.dbClient = dbClient; @@ -83,14 +83,14 @@ public class PersistComponentLinksStep implements ComputationStep { BatchReport.Component component = reportReader.readComponent(componentRef); processLinks(session, component); - for (Integer childRef : component.getChildRefsList()) { + for (Integer childRef : component.getChildRefList()) { recursivelyProcessComponent(session, context, childRef); } } private void processLinks(DbSession session, BatchReport.Component component) { if (component.getType().equals(Constants.ComponentType.PROJECT) || component.getType().equals(Constants.ComponentType.MODULE)) { - List links = component.getLinksList(); + List links = component.getLinkList(); List previousLinks = dbClient.componentLinkDao().selectByComponentUuid(session, component.getUuid()); mergeLinks(session, component.getUuid(), links, previousLinks); } diff --git a/server/sonar-server/src/main/java/org/sonar/server/db/migrations/v51/FeedFileSourcesBinaryData.java b/server/sonar-server/src/main/java/org/sonar/server/db/migrations/v51/FeedFileSourcesBinaryData.java index 00d1d8afd6c..6ea6cd4159f 100644 --- a/server/sonar-server/src/main/java/org/sonar/server/db/migrations/v51/FeedFileSourcesBinaryData.java +++ b/server/sonar-server/src/main/java/org/sonar/server/db/migrations/v51/FeedFileSourcesBinaryData.java @@ -136,7 +136,7 @@ public class FeedFileSourcesBinaryData extends BaseDataChange { } s = row.get(14); if (StringUtils.isNotEmpty(s)) { - lineBuilder.addAllDuplications(splitIntegers(s)); + lineBuilder.addAllDuplication(splitIntegers(s)); } s = row.get(15); if (s != null) { diff --git a/server/sonar-server/src/main/java/org/sonar/server/source/index/SourceLineResultSetIterator.java b/server/sonar-server/src/main/java/org/sonar/server/source/index/SourceLineResultSetIterator.java index e51d3126819..745f6dbc500 100644 --- a/server/sonar-server/src/main/java/org/sonar/server/source/index/SourceLineResultSetIterator.java +++ b/server/sonar-server/src/main/java/org/sonar/server/source/index/SourceLineResultSetIterator.java @@ -129,7 +129,7 @@ public class SourceLineResultSetIterator extends ResultSetIteratorINFO = 0; */ @@ -35,7 +32,8 @@ public final class Constants { /** * BLOCKER = 4; */ - BLOCKER(4, 4), ; + BLOCKER(4, 4), + ; /** * INFO = 0; @@ -58,58 +56,49 @@ public final class Constants { */ public static final int BLOCKER_VALUE = 4; - public final int getNumber() { - return value; - } + + public final int getNumber() { return value; } public static Severity valueOf(int value) { switch (value) { - case 0: - return INFO; - case 1: - return MINOR; - case 2: - return MAJOR; - case 3: - return CRITICAL; - case 4: - return BLOCKER; - default: - return null; + case 0: return INFO; + case 1: return MINOR; + case 2: return MAJOR; + case 3: return CRITICAL; + case 4: return BLOCKER; + default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + internalGetValueMap() { return internalValueMap; } - - private static com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Severity findValueByNumber(int number) { - return Severity.valueOf(number); - } - }; + private static com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Severity findValueByNumber(int number) { + return Severity.valueOf(number); + } + }; public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + getValueDescriptor() { return getDescriptor().getValues().get(index); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + getDescriptor() { return org.sonar.batch.protocol.Constants.getDescriptor().getEnumTypes().get(0); } private static final Severity[] VALUES = values(); public static Severity valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); @@ -132,7 +121,7 @@ public final class Constants { * Protobuf enum {@code ComponentType} */ public enum ComponentType - implements com.google.protobuf.ProtocolMessageEnum { + implements com.google.protobuf.ProtocolMessageEnum { /** * PROJECT = 0; */ @@ -156,7 +145,8 @@ public final class Constants { /** * SUBVIEW = 5; */ - SUBVIEW(5, 5), ; + SUBVIEW(5, 5), + ; /** * PROJECT = 0; @@ -183,60 +173,50 @@ public final class Constants { */ public static final int SUBVIEW_VALUE = 5; - public final int getNumber() { - return value; - } + + public final int getNumber() { return value; } public static ComponentType valueOf(int value) { switch (value) { - case 0: - return PROJECT; - case 1: - return MODULE; - case 2: - return DIRECTORY; - case 3: - return FILE; - case 4: - return VIEW; - case 5: - return SUBVIEW; - default: - return null; + case 0: return PROJECT; + case 1: return MODULE; + case 2: return DIRECTORY; + case 3: return FILE; + case 4: return VIEW; + case 5: return SUBVIEW; + default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + internalGetValueMap() { return internalValueMap; } - - private static com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ComponentType findValueByNumber(int number) { - return ComponentType.valueOf(number); - } - }; + private static com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ComponentType findValueByNumber(int number) { + return ComponentType.valueOf(number); + } + }; public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + getValueDescriptor() { return getDescriptor().getValues().get(index); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + getDescriptor() { return org.sonar.batch.protocol.Constants.getDescriptor().getEnumTypes().get(1); } private static final ComponentType[] VALUES = values(); public static ComponentType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); @@ -259,7 +239,7 @@ public final class Constants { * Protobuf enum {@code ComponentLinkType} */ public enum ComponentLinkType - implements com.google.protobuf.ProtocolMessageEnum { + implements com.google.protobuf.ProtocolMessageEnum { /** * HOME = 0; */ @@ -279,7 +259,8 @@ public final class Constants { /** * CI = 4; */ - CI(4, 4), ; + CI(4, 4), + ; /** * HOME = 0; @@ -302,58 +283,49 @@ public final class Constants { */ public static final int CI_VALUE = 4; - public final int getNumber() { - return value; - } + + public final int getNumber() { return value; } public static ComponentLinkType valueOf(int value) { switch (value) { - case 0: - return HOME; - case 1: - return SCM; - case 2: - return SCM_DEV; - case 3: - return ISSUE; - case 4: - return CI; - default: - return null; + case 0: return HOME; + case 1: return SCM; + case 2: return SCM_DEV; + case 3: return ISSUE; + case 4: return CI; + default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + internalGetValueMap() { return internalValueMap; } - - private static com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ComponentLinkType findValueByNumber(int number) { - return ComponentLinkType.valueOf(number); - } - }; + private static com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ComponentLinkType findValueByNumber(int number) { + return ComponentLinkType.valueOf(number); + } + }; public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + getValueDescriptor() { return getDescriptor().getValues().get(index); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + getDescriptor() { return org.sonar.batch.protocol.Constants.getDescriptor().getEnumTypes().get(2); } private static final ComponentLinkType[] VALUES = values(); public static ComponentLinkType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); @@ -372,26 +344,27 @@ public final class Constants { // @@protoc_insertion_point(enum_scope:ComponentLinkType) } + public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { + getDescriptor() { return descriptor; } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { java.lang.String[] descriptorData = { "\n\017constants.proto*E\n\010Severity\022\010\n\004INFO\020\000\022" + - "\t\n\005MINOR\020\001\022\t\n\005MAJOR\020\002\022\014\n\010CRITICAL\020\003\022\013\n\007B" + - "LOCKER\020\004*X\n\rComponentType\022\013\n\007PROJECT\020\000\022\n" + - "\n\006MODULE\020\001\022\r\n\tDIRECTORY\020\002\022\010\n\004FILE\020\003\022\010\n\004V" + - "IEW\020\004\022\013\n\007SUBVIEW\020\005*F\n\021ComponentLinkType\022" + - "\010\n\004HOME\020\000\022\007\n\003SCM\020\001\022\013\n\007SCM_DEV\020\002\022\t\n\005ISSUE" + - "\020\003\022\006\n\002CI\020\004B\034\n\030org.sonar.batch.protocolH\001" + "\t\n\005MINOR\020\001\022\t\n\005MAJOR\020\002\022\014\n\010CRITICAL\020\003\022\013\n\007B" + + "LOCKER\020\004*X\n\rComponentType\022\013\n\007PROJECT\020\000\022\n" + + "\n\006MODULE\020\001\022\r\n\tDIRECTORY\020\002\022\010\n\004FILE\020\003\022\010\n\004V" + + "IEW\020\004\022\013\n\007SUBVIEW\020\005*F\n\021ComponentLinkType\022" + + "\010\n\004HOME\020\000\022\007\n\003SCM\020\001\022\013\n\007SCM_DEV\020\002\022\t\n\005ISSUE" + + "\020\003\022\006\n\002CI\020\004B\034\n\030org.sonar.batch.protocolH\001" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { + com.google.protobuf.Descriptors.FileDescriptor root) { descriptor = root; return null; } diff --git a/sonar-batch-protocol/src/main/gen-java/org/sonar/batch/protocol/input/BatchInput.java b/sonar-batch-protocol/src/main/gen-java/org/sonar/batch/protocol/input/BatchInput.java index 5e35e980038..6ecbcc83d31 100644 --- a/sonar-batch-protocol/src/main/gen-java/org/sonar/batch/protocol/input/BatchInput.java +++ b/sonar-batch-protocol/src/main/gen-java/org/sonar/batch/protocol/input/BatchInput.java @@ -4,212 +4,198 @@ package org.sonar.batch.protocol.input; public final class BatchInput { - private BatchInput() { - } - + private BatchInput() {} public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { + com.google.protobuf.ExtensionRegistry registry) { } + public interface ServerIssueOrBuilder + extends com.google.protobuf.MessageOrBuilder { - public interface ServerIssueOrBuilder extends - // @@protoc_insertion_point(interface_extends:ServerIssue) - com.google.protobuf.MessageOrBuilder { - + // optional string key = 1; /** * optional string key = 1; */ boolean hasKey(); - /** * optional string key = 1; */ java.lang.String getKey(); - /** * optional string key = 1; */ com.google.protobuf.ByteString - getKeyBytes(); + getKeyBytes(); + // optional string module_key = 2; /** * optional string module_key = 2; */ boolean hasModuleKey(); - /** * optional string module_key = 2; */ java.lang.String getModuleKey(); - /** * optional string module_key = 2; */ com.google.protobuf.ByteString - getModuleKeyBytes(); + getModuleKeyBytes(); + // optional string path = 3; /** * optional string path = 3; */ boolean hasPath(); - /** * optional string path = 3; */ java.lang.String getPath(); - /** * optional string path = 3; */ com.google.protobuf.ByteString - getPathBytes(); + getPathBytes(); + // optional string rule_repository = 4; /** * optional string rule_repository = 4; */ boolean hasRuleRepository(); - /** * optional string rule_repository = 4; */ java.lang.String getRuleRepository(); - /** * optional string rule_repository = 4; */ com.google.protobuf.ByteString - getRuleRepositoryBytes(); + getRuleRepositoryBytes(); + // optional string rule_key = 5; /** * optional string rule_key = 5; */ boolean hasRuleKey(); - /** * optional string rule_key = 5; */ java.lang.String getRuleKey(); - /** * optional string rule_key = 5; */ com.google.protobuf.ByteString - getRuleKeyBytes(); + getRuleKeyBytes(); + // optional int32 line = 6; /** * optional int32 line = 6; */ boolean hasLine(); - /** * optional int32 line = 6; */ int getLine(); + // optional string msg = 7; /** * optional string msg = 7; */ boolean hasMsg(); - /** * optional string msg = 7; */ java.lang.String getMsg(); - /** * optional string msg = 7; */ com.google.protobuf.ByteString - getMsgBytes(); + getMsgBytes(); + // optional .Severity severity = 8; /** * optional .Severity severity = 8; */ boolean hasSeverity(); - /** * optional .Severity severity = 8; */ org.sonar.batch.protocol.Constants.Severity getSeverity(); + // optional bool manual_severity = 9; /** * optional bool manual_severity = 9; */ boolean hasManualSeverity(); - /** * optional bool manual_severity = 9; */ boolean getManualSeverity(); + // optional string resolution = 10; /** * optional string resolution = 10; */ boolean hasResolution(); - /** * optional string resolution = 10; */ java.lang.String getResolution(); - /** * optional string resolution = 10; */ com.google.protobuf.ByteString - getResolutionBytes(); + getResolutionBytes(); + // optional string status = 11; /** * optional string status = 11; */ boolean hasStatus(); - /** * optional string status = 11; */ java.lang.String getStatus(); - /** * optional string status = 11; */ com.google.protobuf.ByteString - getStatusBytes(); + getStatusBytes(); + // optional string checksum = 12; /** * optional string checksum = 12; */ boolean hasChecksum(); - /** * optional string checksum = 12; */ java.lang.String getChecksum(); - /** * optional string checksum = 12; */ com.google.protobuf.ByteString - getChecksumBytes(); + getChecksumBytes(); + // optional string assignee_login = 13; /** * optional string assignee_login = 13; */ boolean hasAssigneeLogin(); - /** * optional string assignee_login = 13; */ java.lang.String getAssigneeLogin(); - /** * optional string assignee_login = 13; */ com.google.protobuf.ByteString - getAssigneeLoginBytes(); + getAssigneeLoginBytes(); + // optional int64 creation_date = 14; /** * optional int64 creation_date = 14; */ boolean hasCreationDate(); - /** * optional int64 creation_date = 14; */ @@ -219,21 +205,16 @@ public final class BatchInput { * Protobuf type {@code ServerIssue} */ public static final class ServerIssue extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:ServerIssue) - ServerIssueOrBuilder { + com.google.protobuf.GeneratedMessage + implements ServerIssueOrBuilder { // Use ServerIssue.newBuilder() to construct. private ServerIssue(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } - - private ServerIssue(boolean noInit) { - this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } + private ServerIssue(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final ServerIssue defaultInstance; - public static ServerIssue getDefaultInstance() { return defaultInstance; } @@ -243,21 +224,19 @@ public final class BatchInput { } private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + getUnknownFields() { return this.unknownFields; } - private ServerIssue( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); + com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { @@ -268,39 +247,34 @@ public final class BatchInput { break; default: { if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { + extensionRegistry, tag)) { done = true; } break; } case 10: { - com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; - key_ = bs; + key_ = input.readBytes(); break; } case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; - moduleKey_ = bs; + moduleKey_ = input.readBytes(); break; } case 26: { - com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000004; - path_ = bs; + path_ = input.readBytes(); break; } case 34: { - com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000008; - ruleRepository_ = bs; + ruleRepository_ = input.readBytes(); break; } case 42: { - com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000010; - ruleKey_ = bs; + ruleKey_ = input.readBytes(); break; } case 48: { @@ -309,9 +283,8 @@ public final class BatchInput { break; } case 58: { - com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000040; - msg_ = bs; + msg_ = input.readBytes(); break; } case 64: { @@ -331,27 +304,23 @@ public final class BatchInput { break; } case 82: { - com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000200; - resolution_ = bs; + resolution_ = input.readBytes(); break; } case 90: { - com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000400; - status_ = bs; + status_ = input.readBytes(); break; } case 98: { - com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000800; - checksum_ = bs; + checksum_ = input.readBytes(); break; } case 106: { - com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00001000; - assigneeLogin_ = bs; + assigneeLogin_ = input.readBytes(); break; } case 112: { @@ -365,34 +334,33 @@ public final class BatchInput { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); + e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + getDescriptor() { return org.sonar.batch.protocol.input.BatchInput.internal_static_ServerIssue_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { + internalGetFieldAccessorTable() { return org.sonar.batch.protocol.input.BatchInput.internal_static_ServerIssue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.batch.protocol.input.BatchInput.ServerIssue.class, org.sonar.batch.protocol.input.BatchInput.ServerIssue.Builder.class); + .ensureFieldAccessorsInitialized( + org.sonar.batch.protocol.input.BatchInput.ServerIssue.class, org.sonar.batch.protocol.input.BatchInput.ServerIssue.Builder.class); } public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public ServerIssue parsePartialFrom( + new com.google.protobuf.AbstractParser() { + public ServerIssue parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ServerIssue(input, extensionRegistry); - } - }; + return new ServerIssue(input, extensionRegistry); + } + }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { @@ -400,16 +368,15 @@ public final class BatchInput { } private int bitField0_; + // optional string key = 1; public static final int KEY_FIELD_NUMBER = 1; private java.lang.Object key_; - /** * optional string key = 1; */ public boolean hasKey() { return ((bitField0_ & 0x00000001) == 0x00000001); } - /** * optional string key = 1; */ @@ -418,8 +385,8 @@ public final class BatchInput { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { key_ = s; @@ -427,17 +394,16 @@ public final class BatchInput { return s; } } - /** * optional string key = 1; */ public com.google.protobuf.ByteString - getKeyBytes() { + getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); key_ = b; return b; } else { @@ -445,16 +411,15 @@ public final class BatchInput { } } + // optional string module_key = 2; public static final int MODULE_KEY_FIELD_NUMBER = 2; private java.lang.Object moduleKey_; - /** * optional string module_key = 2; */ public boolean hasModuleKey() { return ((bitField0_ & 0x00000002) == 0x00000002); } - /** * optional string module_key = 2; */ @@ -463,8 +428,8 @@ public final class BatchInput { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { moduleKey_ = s; @@ -472,17 +437,16 @@ public final class BatchInput { return s; } } - /** * optional string module_key = 2; */ public com.google.protobuf.ByteString - getModuleKeyBytes() { + getModuleKeyBytes() { java.lang.Object ref = moduleKey_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); moduleKey_ = b; return b; } else { @@ -490,16 +454,15 @@ public final class BatchInput { } } + // optional string path = 3; public static final int PATH_FIELD_NUMBER = 3; private java.lang.Object path_; - /** * optional string path = 3; */ public boolean hasPath() { return ((bitField0_ & 0x00000004) == 0x00000004); } - /** * optional string path = 3; */ @@ -508,8 +471,8 @@ public final class BatchInput { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { path_ = s; @@ -517,17 +480,16 @@ public final class BatchInput { return s; } } - /** * optional string path = 3; */ public com.google.protobuf.ByteString - getPathBytes() { + getPathBytes() { java.lang.Object ref = path_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); path_ = b; return b; } else { @@ -535,16 +497,15 @@ public final class BatchInput { } } + // optional string rule_repository = 4; public static final int RULE_REPOSITORY_FIELD_NUMBER = 4; private java.lang.Object ruleRepository_; - /** * optional string rule_repository = 4; */ public boolean hasRuleRepository() { return ((bitField0_ & 0x00000008) == 0x00000008); } - /** * optional string rule_repository = 4; */ @@ -553,8 +514,8 @@ public final class BatchInput { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { ruleRepository_ = s; @@ -562,17 +523,16 @@ public final class BatchInput { return s; } } - /** * optional string rule_repository = 4; */ public com.google.protobuf.ByteString - getRuleRepositoryBytes() { + getRuleRepositoryBytes() { java.lang.Object ref = ruleRepository_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); ruleRepository_ = b; return b; } else { @@ -580,16 +540,15 @@ public final class BatchInput { } } + // optional string rule_key = 5; public static final int RULE_KEY_FIELD_NUMBER = 5; private java.lang.Object ruleKey_; - /** * optional string rule_key = 5; */ public boolean hasRuleKey() { return ((bitField0_ & 0x00000010) == 0x00000010); } - /** * optional string rule_key = 5; */ @@ -598,8 +557,8 @@ public final class BatchInput { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { ruleKey_ = s; @@ -607,17 +566,16 @@ public final class BatchInput { return s; } } - /** * optional string rule_key = 5; */ public com.google.protobuf.ByteString - getRuleKeyBytes() { + getRuleKeyBytes() { java.lang.Object ref = ruleKey_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); ruleKey_ = b; return b; } else { @@ -625,16 +583,15 @@ public final class BatchInput { } } + // optional int32 line = 6; public static final int LINE_FIELD_NUMBER = 6; private int line_; - /** * optional int32 line = 6; */ public boolean hasLine() { return ((bitField0_ & 0x00000020) == 0x00000020); } - /** * optional int32 line = 6; */ @@ -642,16 +599,15 @@ public final class BatchInput { return line_; } + // optional string msg = 7; public static final int MSG_FIELD_NUMBER = 7; private java.lang.Object msg_; - /** * optional string msg = 7; */ public boolean hasMsg() { return ((bitField0_ & 0x00000040) == 0x00000040); } - /** * optional string msg = 7; */ @@ -660,8 +616,8 @@ public final class BatchInput { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { msg_ = s; @@ -669,17 +625,16 @@ public final class BatchInput { return s; } } - /** * optional string msg = 7; */ public com.google.protobuf.ByteString - getMsgBytes() { + getMsgBytes() { java.lang.Object ref = msg_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); msg_ = b; return b; } else { @@ -687,16 +642,15 @@ public final class BatchInput { } } + // optional .Severity severity = 8; public static final int SEVERITY_FIELD_NUMBER = 8; private org.sonar.batch.protocol.Constants.Severity severity_; - /** * optional .Severity severity = 8; */ public boolean hasSeverity() { return ((bitField0_ & 0x00000080) == 0x00000080); } - /** * optional .Severity severity = 8; */ @@ -704,16 +658,15 @@ public final class BatchInput { return severity_; } + // optional bool manual_severity = 9; public static final int MANUAL_SEVERITY_FIELD_NUMBER = 9; private boolean manualSeverity_; - /** * optional bool manual_severity = 9; */ public boolean hasManualSeverity() { return ((bitField0_ & 0x00000100) == 0x00000100); } - /** * optional bool manual_severity = 9; */ @@ -721,16 +674,15 @@ public final class BatchInput { return manualSeverity_; } + // optional string resolution = 10; public static final int RESOLUTION_FIELD_NUMBER = 10; private java.lang.Object resolution_; - /** * optional string resolution = 10; */ public boolean hasResolution() { return ((bitField0_ & 0x00000200) == 0x00000200); } - /** * optional string resolution = 10; */ @@ -739,8 +691,8 @@ public final class BatchInput { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { resolution_ = s; @@ -748,17 +700,16 @@ public final class BatchInput { return s; } } - /** * optional string resolution = 10; */ public com.google.protobuf.ByteString - getResolutionBytes() { + getResolutionBytes() { java.lang.Object ref = resolution_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resolution_ = b; return b; } else { @@ -766,16 +717,15 @@ public final class BatchInput { } } + // optional string status = 11; public static final int STATUS_FIELD_NUMBER = 11; private java.lang.Object status_; - /** * optional string status = 11; */ public boolean hasStatus() { return ((bitField0_ & 0x00000400) == 0x00000400); } - /** * optional string status = 11; */ @@ -784,8 +734,8 @@ public final class BatchInput { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { status_ = s; @@ -793,17 +743,16 @@ public final class BatchInput { return s; } } - /** * optional string status = 11; */ public com.google.protobuf.ByteString - getStatusBytes() { + getStatusBytes() { java.lang.Object ref = status_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); status_ = b; return b; } else { @@ -811,16 +760,15 @@ public final class BatchInput { } } + // optional string checksum = 12; public static final int CHECKSUM_FIELD_NUMBER = 12; private java.lang.Object checksum_; - /** * optional string checksum = 12; */ public boolean hasChecksum() { return ((bitField0_ & 0x00000800) == 0x00000800); } - /** * optional string checksum = 12; */ @@ -829,8 +777,8 @@ public final class BatchInput { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { checksum_ = s; @@ -838,17 +786,16 @@ public final class BatchInput { return s; } } - /** * optional string checksum = 12; */ public com.google.protobuf.ByteString - getChecksumBytes() { + getChecksumBytes() { java.lang.Object ref = checksum_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); checksum_ = b; return b; } else { @@ -856,16 +803,15 @@ public final class BatchInput { } } + // optional string assignee_login = 13; public static final int ASSIGNEE_LOGIN_FIELD_NUMBER = 13; private java.lang.Object assigneeLogin_; - /** * optional string assignee_login = 13; */ public boolean hasAssigneeLogin() { return ((bitField0_ & 0x00001000) == 0x00001000); } - /** * optional string assignee_login = 13; */ @@ -874,8 +820,8 @@ public final class BatchInput { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { assigneeLogin_ = s; @@ -883,17 +829,16 @@ public final class BatchInput { return s; } } - /** * optional string assignee_login = 13; */ public com.google.protobuf.ByteString - getAssigneeLoginBytes() { + getAssigneeLoginBytes() { java.lang.Object ref = assigneeLogin_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); assigneeLogin_ = b; return b; } else { @@ -901,16 +846,15 @@ public final class BatchInput { } } + // optional int64 creation_date = 14; public static final int CREATION_DATE_FIELD_NUMBER = 14; private long creationDate_; - /** * optional int64 creation_date = 14; */ public boolean hasCreationDate() { return ((bitField0_ & 0x00002000) == 0x00002000); } - /** * optional int64 creation_date = 14; */ @@ -934,22 +878,17 @@ public final class BatchInput { assigneeLogin_ = ""; creationDate_ = 0L; } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) - return true; - if (isInitialized == 0) - return false; + if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getKeyBytes()); @@ -997,11 +936,9 @@ public final class BatchInput { } private int memoizedSerializedSize = -1; - public int getSerializedSize() { int size = memoizedSerializedSize; - if (size != -1) - return size; + if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { @@ -1066,115 +1003,94 @@ public final class BatchInput { } private static final long serialVersionUID = 0L; - @java.lang.Override protected java.lang.Object writeReplace() - throws java.io.ObjectStreamException { + throws java.io.ObjectStreamException { return super.writeReplace(); } public static org.sonar.batch.protocol.input.BatchInput.ServerIssue parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.sonar.batch.protocol.input.BatchInput.ServerIssue parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.sonar.batch.protocol.input.BatchInput.ServerIssue parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.sonar.batch.protocol.input.BatchInput.ServerIssue parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.sonar.batch.protocol.input.BatchInput.ServerIssue parseFrom(java.io.InputStream input) - throws java.io.IOException { + throws java.io.IOException { return PARSER.parseFrom(input); } - public static org.sonar.batch.protocol.input.BatchInput.ServerIssue parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } - public static org.sonar.batch.protocol.input.BatchInput.ServerIssue parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { + throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } - public static org.sonar.batch.protocol.input.BatchInput.ServerIssue parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } - public static org.sonar.batch.protocol.input.BatchInput.ServerIssue parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { return PARSER.parseFrom(input); } - public static org.sonar.batch.protocol.input.BatchInput.ServerIssue parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } - public static Builder newBuilder() { - return Builder.create(); - } - - public Builder newBuilderForType() { - return newBuilder(); - } - + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(org.sonar.batch.protocol.input.BatchInput.ServerIssue prototype) { return newBuilder().mergeFrom(prototype); } - - public Builder toBuilder() { - return newBuilder(this); - } + public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** * Protobuf type {@code ServerIssue} */ public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:ServerIssue) - org.sonar.batch.protocol.input.BatchInput.ServerIssueOrBuilder { + com.google.protobuf.GeneratedMessage.Builder + implements org.sonar.batch.protocol.input.BatchInput.ServerIssueOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + getDescriptor() { return org.sonar.batch.protocol.input.BatchInput.internal_static_ServerIssue_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { + internalGetFieldAccessorTable() { return org.sonar.batch.protocol.input.BatchInput.internal_static_ServerIssue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.batch.protocol.input.BatchInput.ServerIssue.class, org.sonar.batch.protocol.input.BatchInput.ServerIssue.Builder.class); + .ensureFieldAccessorsInitialized( + org.sonar.batch.protocol.input.BatchInput.ServerIssue.class, org.sonar.batch.protocol.input.BatchInput.ServerIssue.Builder.class); } // Construct using org.sonar.batch.protocol.input.BatchInput.ServerIssue.newBuilder() @@ -1183,16 +1099,14 @@ public final class BatchInput { } private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } - private static Builder create() { return new Builder(); } @@ -1235,7 +1149,7 @@ public final class BatchInput { } public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { + getDescriptorForType() { return org.sonar.batch.protocol.input.BatchInput.internal_static_ServerIssue_descriptor; } @@ -1318,7 +1232,7 @@ public final class BatchInput { public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.sonar.batch.protocol.input.BatchInput.ServerIssue) { - return mergeFrom((org.sonar.batch.protocol.input.BatchInput.ServerIssue) other); + return mergeFrom((org.sonar.batch.protocol.input.BatchInput.ServerIssue)other); } else { super.mergeFrom(other); return this; @@ -1326,8 +1240,7 @@ public final class BatchInput { } public Builder mergeFrom(org.sonar.batch.protocol.input.BatchInput.ServerIssue other) { - if (other == org.sonar.batch.protocol.input.BatchInput.ServerIssue.getDefaultInstance()) - return this; + if (other == org.sonar.batch.protocol.input.BatchInput.ServerIssue.getDefaultInstance()) return this; if (other.hasKey()) { bitField0_ |= 0x00000001; key_ = other.key_; @@ -1399,9 +1312,9 @@ public final class BatchInput { } public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { org.sonar.batch.protocol.input.BatchInput.ServerIssue parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); @@ -1415,67 +1328,59 @@ public final class BatchInput { } return this; } - private int bitField0_; + // optional string key = 1; private java.lang.Object key_ = ""; - /** * optional string key = 1; */ public boolean hasKey() { return ((bitField0_ & 0x00000001) == 0x00000001); } - /** * optional string key = 1; */ public java.lang.String getKey() { java.lang.Object ref = key_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - key_ = s; - } + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + key_ = s; return s; } else { return (java.lang.String) ref; } } - /** * optional string key = 1; */ public com.google.protobuf.ByteString - getKeyBytes() { + getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); key_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - /** * optional string key = 1; */ public Builder setKey( - java.lang.String value) { + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; key_ = value; onChanged(); return this; } - /** * optional string key = 1; */ @@ -1485,79 +1390,71 @@ public final class BatchInput { onChanged(); return this; } - /** * optional string key = 1; */ public Builder setKeyBytes( - com.google.protobuf.ByteString value) { + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; key_ = value; onChanged(); return this; } + // optional string module_key = 2; private java.lang.Object moduleKey_ = ""; - /** * optional string module_key = 2; */ public boolean hasModuleKey() { return ((bitField0_ & 0x00000002) == 0x00000002); } - /** * optional string module_key = 2; */ public java.lang.String getModuleKey() { java.lang.Object ref = moduleKey_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - moduleKey_ = s; - } + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + moduleKey_ = s; return s; } else { return (java.lang.String) ref; } } - /** * optional string module_key = 2; */ public com.google.protobuf.ByteString - getModuleKeyBytes() { + getModuleKeyBytes() { java.lang.Object ref = moduleKey_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); moduleKey_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - /** * optional string module_key = 2; */ public Builder setModuleKey( - java.lang.String value) { + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; moduleKey_ = value; onChanged(); return this; } - /** * optional string module_key = 2; */ @@ -1567,79 +1464,71 @@ public final class BatchInput { onChanged(); return this; } - /** * optional string module_key = 2; */ public Builder setModuleKeyBytes( - com.google.protobuf.ByteString value) { + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; moduleKey_ = value; onChanged(); return this; } + // optional string path = 3; private java.lang.Object path_ = ""; - /** * optional string path = 3; */ public boolean hasPath() { return ((bitField0_ & 0x00000004) == 0x00000004); } - /** * optional string path = 3; */ public java.lang.String getPath() { java.lang.Object ref = path_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - path_ = s; - } + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + path_ = s; return s; } else { return (java.lang.String) ref; } } - /** * optional string path = 3; */ public com.google.protobuf.ByteString - getPathBytes() { + getPathBytes() { java.lang.Object ref = path_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); path_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - /** * optional string path = 3; */ public Builder setPath( - java.lang.String value) { + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; path_ = value; onChanged(); return this; } - /** * optional string path = 3; */ @@ -1649,79 +1538,71 @@ public final class BatchInput { onChanged(); return this; } - /** * optional string path = 3; */ public Builder setPathBytes( - com.google.protobuf.ByteString value) { + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; path_ = value; onChanged(); return this; } + // optional string rule_repository = 4; private java.lang.Object ruleRepository_ = ""; - /** * optional string rule_repository = 4; */ public boolean hasRuleRepository() { return ((bitField0_ & 0x00000008) == 0x00000008); } - /** * optional string rule_repository = 4; */ public java.lang.String getRuleRepository() { java.lang.Object ref = ruleRepository_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - ruleRepository_ = s; - } + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + ruleRepository_ = s; return s; } else { return (java.lang.String) ref; } } - /** * optional string rule_repository = 4; */ public com.google.protobuf.ByteString - getRuleRepositoryBytes() { + getRuleRepositoryBytes() { java.lang.Object ref = ruleRepository_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); ruleRepository_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - /** * optional string rule_repository = 4; */ public Builder setRuleRepository( - java.lang.String value) { + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; ruleRepository_ = value; onChanged(); return this; } - /** * optional string rule_repository = 4; */ @@ -1731,79 +1612,71 @@ public final class BatchInput { onChanged(); return this; } - /** * optional string rule_repository = 4; */ public Builder setRuleRepositoryBytes( - com.google.protobuf.ByteString value) { + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; ruleRepository_ = value; onChanged(); return this; } + // optional string rule_key = 5; private java.lang.Object ruleKey_ = ""; - /** * optional string rule_key = 5; */ public boolean hasRuleKey() { return ((bitField0_ & 0x00000010) == 0x00000010); } - /** * optional string rule_key = 5; */ public java.lang.String getRuleKey() { java.lang.Object ref = ruleKey_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - ruleKey_ = s; - } + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + ruleKey_ = s; return s; } else { return (java.lang.String) ref; } } - /** * optional string rule_key = 5; */ public com.google.protobuf.ByteString - getRuleKeyBytes() { + getRuleKeyBytes() { java.lang.Object ref = ruleKey_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); ruleKey_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - /** * optional string rule_key = 5; */ public Builder setRuleKey( - java.lang.String value) { + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; ruleKey_ = value; onChanged(); return this; } - /** * optional string rule_key = 5; */ @@ -1813,37 +1686,34 @@ public final class BatchInput { onChanged(); return this; } - /** * optional string rule_key = 5; */ public Builder setRuleKeyBytes( - com.google.protobuf.ByteString value) { + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; ruleKey_ = value; onChanged(); return this; } - private int line_; - + // optional int32 line = 6; + private int line_ ; /** * optional int32 line = 6; */ public boolean hasLine() { return ((bitField0_ & 0x00000020) == 0x00000020); } - /** * optional int32 line = 6; */ public int getLine() { return line_; } - /** * optional int32 line = 6; */ @@ -1853,7 +1723,6 @@ public final class BatchInput { onChanged(); return this; } - /** * optional int32 line = 6; */ @@ -1864,64 +1733,57 @@ public final class BatchInput { return this; } + // optional string msg = 7; private java.lang.Object msg_ = ""; - /** * optional string msg = 7; */ public boolean hasMsg() { return ((bitField0_ & 0x00000040) == 0x00000040); } - /** * optional string msg = 7; */ public java.lang.String getMsg() { java.lang.Object ref = msg_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - msg_ = s; - } + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + msg_ = s; return s; } else { return (java.lang.String) ref; } } - /** * optional string msg = 7; */ public com.google.protobuf.ByteString - getMsgBytes() { + getMsgBytes() { java.lang.Object ref = msg_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); msg_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - /** * optional string msg = 7; */ public Builder setMsg( - java.lang.String value) { + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000040; + throw new NullPointerException(); + } + bitField0_ |= 0x00000040; msg_ = value; onChanged(); return this; } - /** * optional string msg = 7; */ @@ -1931,37 +1793,34 @@ public final class BatchInput { onChanged(); return this; } - /** * optional string msg = 7; */ public Builder setMsgBytes( - com.google.protobuf.ByteString value) { + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000040; + throw new NullPointerException(); + } + bitField0_ |= 0x00000040; msg_ = value; onChanged(); return this; } + // optional .Severity severity = 8; private org.sonar.batch.protocol.Constants.Severity severity_ = org.sonar.batch.protocol.Constants.Severity.INFO; - /** * optional .Severity severity = 8; */ public boolean hasSeverity() { return ((bitField0_ & 0x00000080) == 0x00000080); } - /** * optional .Severity severity = 8; */ public org.sonar.batch.protocol.Constants.Severity getSeverity() { return severity_; } - /** * optional .Severity severity = 8; */ @@ -1974,7 +1833,6 @@ public final class BatchInput { onChanged(); return this; } - /** * optional .Severity severity = 8; */ @@ -1985,22 +1843,20 @@ public final class BatchInput { return this; } - private boolean manualSeverity_; - + // optional bool manual_severity = 9; + private boolean manualSeverity_ ; /** * optional bool manual_severity = 9; */ public boolean hasManualSeverity() { return ((bitField0_ & 0x00000100) == 0x00000100); } - /** * optional bool manual_severity = 9; */ public boolean getManualSeverity() { return manualSeverity_; } - /** * optional bool manual_severity = 9; */ @@ -2010,7 +1866,6 @@ public final class BatchInput { onChanged(); return this; } - /** * optional bool manual_severity = 9; */ @@ -2021,64 +1876,57 @@ public final class BatchInput { return this; } + // optional string resolution = 10; private java.lang.Object resolution_ = ""; - /** * optional string resolution = 10; */ public boolean hasResolution() { return ((bitField0_ & 0x00000200) == 0x00000200); } - /** * optional string resolution = 10; */ public java.lang.String getResolution() { java.lang.Object ref = resolution_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - resolution_ = s; - } + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + resolution_ = s; return s; } else { return (java.lang.String) ref; } } - /** * optional string resolution = 10; */ public com.google.protobuf.ByteString - getResolutionBytes() { + getResolutionBytes() { java.lang.Object ref = resolution_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resolution_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - /** * optional string resolution = 10; */ public Builder setResolution( - java.lang.String value) { + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000200; + throw new NullPointerException(); + } + bitField0_ |= 0x00000200; resolution_ = value; onChanged(); return this; } - /** * optional string resolution = 10; */ @@ -2088,79 +1936,71 @@ public final class BatchInput { onChanged(); return this; } - /** * optional string resolution = 10; */ public Builder setResolutionBytes( - com.google.protobuf.ByteString value) { + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000200; + throw new NullPointerException(); + } + bitField0_ |= 0x00000200; resolution_ = value; onChanged(); return this; } + // optional string status = 11; private java.lang.Object status_ = ""; - /** * optional string status = 11; */ public boolean hasStatus() { return ((bitField0_ & 0x00000400) == 0x00000400); } - /** * optional string status = 11; */ public java.lang.String getStatus() { java.lang.Object ref = status_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - status_ = s; - } + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + status_ = s; return s; } else { return (java.lang.String) ref; } } - /** * optional string status = 11; */ public com.google.protobuf.ByteString - getStatusBytes() { + getStatusBytes() { java.lang.Object ref = status_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); status_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - /** * optional string status = 11; */ public Builder setStatus( - java.lang.String value) { + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000400; + throw new NullPointerException(); + } + bitField0_ |= 0x00000400; status_ = value; onChanged(); return this; } - /** * optional string status = 11; */ @@ -2170,79 +2010,71 @@ public final class BatchInput { onChanged(); return this; } - /** * optional string status = 11; */ public Builder setStatusBytes( - com.google.protobuf.ByteString value) { + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000400; + throw new NullPointerException(); + } + bitField0_ |= 0x00000400; status_ = value; onChanged(); return this; } + // optional string checksum = 12; private java.lang.Object checksum_ = ""; - /** * optional string checksum = 12; */ public boolean hasChecksum() { return ((bitField0_ & 0x00000800) == 0x00000800); } - /** * optional string checksum = 12; */ public java.lang.String getChecksum() { java.lang.Object ref = checksum_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - checksum_ = s; - } + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + checksum_ = s; return s; } else { return (java.lang.String) ref; } } - /** * optional string checksum = 12; */ public com.google.protobuf.ByteString - getChecksumBytes() { + getChecksumBytes() { java.lang.Object ref = checksum_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); checksum_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - /** * optional string checksum = 12; */ public Builder setChecksum( - java.lang.String value) { + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000800; + throw new NullPointerException(); + } + bitField0_ |= 0x00000800; checksum_ = value; onChanged(); return this; } - /** * optional string checksum = 12; */ @@ -2252,79 +2084,71 @@ public final class BatchInput { onChanged(); return this; } - /** * optional string checksum = 12; */ public Builder setChecksumBytes( - com.google.protobuf.ByteString value) { + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000800; + throw new NullPointerException(); + } + bitField0_ |= 0x00000800; checksum_ = value; onChanged(); return this; } + // optional string assignee_login = 13; private java.lang.Object assigneeLogin_ = ""; - /** * optional string assignee_login = 13; */ public boolean hasAssigneeLogin() { return ((bitField0_ & 0x00001000) == 0x00001000); } - /** * optional string assignee_login = 13; */ public java.lang.String getAssigneeLogin() { java.lang.Object ref = assigneeLogin_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - assigneeLogin_ = s; - } + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + assigneeLogin_ = s; return s; } else { return (java.lang.String) ref; } } - /** * optional string assignee_login = 13; */ public com.google.protobuf.ByteString - getAssigneeLoginBytes() { + getAssigneeLoginBytes() { java.lang.Object ref = assigneeLogin_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); assigneeLogin_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - /** * optional string assignee_login = 13; */ public Builder setAssigneeLogin( - java.lang.String value) { + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00001000; + throw new NullPointerException(); + } + bitField0_ |= 0x00001000; assigneeLogin_ = value; onChanged(); return this; } - /** * optional string assignee_login = 13; */ @@ -2334,37 +2158,34 @@ public final class BatchInput { onChanged(); return this; } - /** * optional string assignee_login = 13; */ public Builder setAssigneeLoginBytes( - com.google.protobuf.ByteString value) { + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00001000; + throw new NullPointerException(); + } + bitField0_ |= 0x00001000; assigneeLogin_ = value; onChanged(); return this; } - private long creationDate_; - + // optional int64 creation_date = 14; + private long creationDate_ ; /** * optional int64 creation_date = 14; */ public boolean hasCreationDate() { return ((bitField0_ & 0x00002000) == 0x00002000); } - /** * optional int64 creation_date = 14; */ public long getCreationDate() { return creationDate_; } - /** * optional int64 creation_date = 14; */ @@ -2374,7 +2195,6 @@ public final class BatchInput { onChanged(); return this; } - /** * optional int64 creation_date = 14; */ @@ -2396,48 +2216,49 @@ public final class BatchInput { // @@protoc_insertion_point(class_scope:ServerIssue) } - private static final com.google.protobuf.Descriptors.Descriptor internal_static_ServerIssue_descriptor; - private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_ServerIssue_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_ServerIssue_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_ServerIssue_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { + getDescriptor() { return descriptor; } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { java.lang.String[] descriptorData = { "\n\021batch_input.proto\032\017constants.proto\"\235\002\n" + - "\013ServerIssue\022\013\n\003key\030\001 \001(\t\022\022\n\nmodule_key\030" + - "\002 \001(\t\022\014\n\004path\030\003 \001(\t\022\027\n\017rule_repository\030\004" + - " \001(\t\022\020\n\010rule_key\030\005 \001(\t\022\014\n\004line\030\006 \001(\005\022\013\n\003" + - "msg\030\007 \001(\t\022\033\n\010severity\030\010 \001(\0162\t.Severity\022\027" + - "\n\017manual_severity\030\t \001(\010\022\022\n\nresolution\030\n " + - "\001(\t\022\016\n\006status\030\013 \001(\t\022\020\n\010checksum\030\014 \001(\t\022\026\n" + - "\016assignee_login\030\r \001(\t\022\025\n\rcreation_date\030\016" + - " \001(\003B\"\n\036org.sonar.batch.protocol.inputH\001" + "\013ServerIssue\022\013\n\003key\030\001 \001(\t\022\022\n\nmodule_key\030" + + "\002 \001(\t\022\014\n\004path\030\003 \001(\t\022\027\n\017rule_repository\030\004" + + " \001(\t\022\020\n\010rule_key\030\005 \001(\t\022\014\n\004line\030\006 \001(\005\022\013\n\003" + + "msg\030\007 \001(\t\022\033\n\010severity\030\010 \001(\0162\t.Severity\022\027" + + "\n\017manual_severity\030\t \001(\010\022\022\n\nresolution\030\n " + + "\001(\t\022\016\n\006status\030\013 \001(\t\022\020\n\010checksum\030\014 \001(\t\022\026\n" + + "\016assignee_login\030\r \001(\t\022\025\n\rcreation_date\030\016" + + " \001(\003B\"\n\036org.sonar.batch.protocol.inputH\001" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { + com.google.protobuf.Descriptors.FileDescriptor root) { descriptor = root; + internal_static_ServerIssue_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_ServerIssue_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_ServerIssue_descriptor, + new java.lang.String[] { "Key", "ModuleKey", "Path", "RuleRepository", "RuleKey", "Line", "Msg", "Severity", "ManualSeverity", "Resolution", "Status", "Checksum", "AssigneeLogin", "CreationDate", }); return null; } }; com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - org.sonar.batch.protocol.Constants.getDescriptor(), + org.sonar.batch.protocol.Constants.getDescriptor(), }, assigner); - internal_static_ServerIssue_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_ServerIssue_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_ServerIssue_descriptor, - new java.lang.String[] {"Key", "ModuleKey", "Path", "RuleRepository", "RuleKey", "Line", "Msg", "Severity", "ManualSeverity", "Resolution", "Status", "Checksum", - "AssigneeLogin", "CreationDate",}); - org.sonar.batch.protocol.Constants.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/sonar-batch-protocol/src/main/gen-java/org/sonar/batch/protocol/output/BatchReport.java b/sonar-batch-protocol/src/main/gen-java/org/sonar/batch/protocol/output/BatchReport.java index 7a41c5dbbc3..c544e6f356b 100644 --- a/sonar-batch-protocol/src/main/gen-java/org/sonar/batch/protocol/output/BatchReport.java +++ b/sonar-batch-protocol/src/main/gen-java/org/sonar/batch/protocol/output/BatchReport.java @@ -4,53 +4,49 @@ package org.sonar.batch.protocol.output; public final class BatchReport { - private BatchReport() { - } - + private BatchReport() {} public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { + com.google.protobuf.ExtensionRegistry registry) { } + public interface MetadataOrBuilder + extends com.google.protobuf.MessageOrBuilder { - public interface MetadataOrBuilder extends - // @@protoc_insertion_point(interface_extends:Metadata) - com.google.protobuf.MessageOrBuilder { - + // optional int64 analysis_date = 1; /** * optional int64 analysis_date = 1; */ boolean hasAnalysisDate(); - /** * optional int64 analysis_date = 1; */ long getAnalysisDate(); + // optional string project_key = 2; /** * optional string project_key = 2; */ boolean hasProjectKey(); - /** * optional string project_key = 2; */ java.lang.String getProjectKey(); - /** * optional string project_key = 2; */ com.google.protobuf.ByteString - getProjectKeyBytes(); + getProjectKeyBytes(); + // optional int32 root_component_ref = 3; /** * optional int32 root_component_ref = 3; */ boolean hasRootComponentRef(); - /** * optional int32 root_component_ref = 3; */ int getRootComponentRef(); + // optional int64 snapshot_id = 4; /** * optional int64 snapshot_id = 4; * @@ -59,7 +55,6 @@ public final class BatchReport { * */ boolean hasSnapshotId(); - /** * optional int64 snapshot_id = 4; * @@ -69,11 +64,11 @@ public final class BatchReport { */ long getSnapshotId(); + // optional int32 deleted_components_count = 5; /** * optional int32 deleted_components_count = 5; */ boolean hasDeletedComponentsCount(); - /** * optional int32 deleted_components_count = 5; */ @@ -83,21 +78,16 @@ public final class BatchReport { * Protobuf type {@code Metadata} */ public static final class Metadata extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:Metadata) - MetadataOrBuilder { + com.google.protobuf.GeneratedMessage + implements MetadataOrBuilder { // Use Metadata.newBuilder() to construct. private Metadata(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } - - private Metadata(boolean noInit) { - this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } + private Metadata(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final Metadata defaultInstance; - public static Metadata getDefaultInstance() { return defaultInstance; } @@ -107,21 +97,19 @@ public final class BatchReport { } private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + getUnknownFields() { return this.unknownFields; } - private Metadata( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); + com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { @@ -132,7 +120,7 @@ public final class BatchReport { break; default: { if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { + extensionRegistry, tag)) { done = true; } break; @@ -143,9 +131,8 @@ public final class BatchReport { break; } case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; - projectKey_ = bs; + projectKey_ = input.readBytes(); break; } case 24: { @@ -169,34 +156,33 @@ public final class BatchReport { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); + e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + getDescriptor() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Metadata_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { + internalGetFieldAccessorTable() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Metadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.batch.protocol.output.BatchReport.Metadata.class, org.sonar.batch.protocol.output.BatchReport.Metadata.Builder.class); + .ensureFieldAccessorsInitialized( + org.sonar.batch.protocol.output.BatchReport.Metadata.class, org.sonar.batch.protocol.output.BatchReport.Metadata.Builder.class); } public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Metadata parsePartialFrom( + new com.google.protobuf.AbstractParser() { + public Metadata parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Metadata(input, extensionRegistry); - } - }; + return new Metadata(input, extensionRegistry); + } + }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { @@ -204,16 +190,15 @@ public final class BatchReport { } private int bitField0_; + // optional int64 analysis_date = 1; public static final int ANALYSIS_DATE_FIELD_NUMBER = 1; private long analysisDate_; - /** * optional int64 analysis_date = 1; */ public boolean hasAnalysisDate() { return ((bitField0_ & 0x00000001) == 0x00000001); } - /** * optional int64 analysis_date = 1; */ @@ -221,16 +206,15 @@ public final class BatchReport { return analysisDate_; } + // optional string project_key = 2; public static final int PROJECT_KEY_FIELD_NUMBER = 2; private java.lang.Object projectKey_; - /** * optional string project_key = 2; */ public boolean hasProjectKey() { return ((bitField0_ & 0x00000002) == 0x00000002); } - /** * optional string project_key = 2; */ @@ -239,8 +223,8 @@ public final class BatchReport { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { projectKey_ = s; @@ -248,17 +232,16 @@ public final class BatchReport { return s; } } - /** * optional string project_key = 2; */ public com.google.protobuf.ByteString - getProjectKeyBytes() { + getProjectKeyBytes() { java.lang.Object ref = projectKey_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectKey_ = b; return b; } else { @@ -266,16 +249,15 @@ public final class BatchReport { } } + // optional int32 root_component_ref = 3; public static final int ROOT_COMPONENT_REF_FIELD_NUMBER = 3; private int rootComponentRef_; - /** * optional int32 root_component_ref = 3; */ public boolean hasRootComponentRef() { return ((bitField0_ & 0x00000004) == 0x00000004); } - /** * optional int32 root_component_ref = 3; */ @@ -283,9 +265,9 @@ public final class BatchReport { return rootComponentRef_; } + // optional int64 snapshot_id = 4; public static final int SNAPSHOT_ID_FIELD_NUMBER = 4; private long snapshotId_; - /** * optional int64 snapshot_id = 4; * @@ -296,7 +278,6 @@ public final class BatchReport { public boolean hasSnapshotId() { return ((bitField0_ & 0x00000008) == 0x00000008); } - /** * optional int64 snapshot_id = 4; * @@ -308,16 +289,15 @@ public final class BatchReport { return snapshotId_; } + // optional int32 deleted_components_count = 5; public static final int DELETED_COMPONENTS_COUNT_FIELD_NUMBER = 5; private int deletedComponentsCount_; - /** * optional int32 deleted_components_count = 5; */ public boolean hasDeletedComponentsCount() { return ((bitField0_ & 0x00000010) == 0x00000010); } - /** * optional int32 deleted_components_count = 5; */ @@ -332,22 +312,17 @@ public final class BatchReport { snapshotId_ = 0L; deletedComponentsCount_ = 0; } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) - return true; - if (isInitialized == 0) - return false; + if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt64(1, analysisDate_); @@ -368,11 +343,9 @@ public final class BatchReport { } private int memoizedSerializedSize = -1; - public int getSerializedSize() { int size = memoizedSerializedSize; - if (size != -1) - return size; + if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { @@ -401,115 +374,94 @@ public final class BatchReport { } private static final long serialVersionUID = 0L; - @java.lang.Override protected java.lang.Object writeReplace() - throws java.io.ObjectStreamException { + throws java.io.ObjectStreamException { return super.writeReplace(); } public static org.sonar.batch.protocol.output.BatchReport.Metadata parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.sonar.batch.protocol.output.BatchReport.Metadata parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.sonar.batch.protocol.output.BatchReport.Metadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.sonar.batch.protocol.output.BatchReport.Metadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.sonar.batch.protocol.output.BatchReport.Metadata parseFrom(java.io.InputStream input) - throws java.io.IOException { + throws java.io.IOException { return PARSER.parseFrom(input); } - public static org.sonar.batch.protocol.output.BatchReport.Metadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } - public static org.sonar.batch.protocol.output.BatchReport.Metadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { + throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } - public static org.sonar.batch.protocol.output.BatchReport.Metadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } - public static org.sonar.batch.protocol.output.BatchReport.Metadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { return PARSER.parseFrom(input); } - public static org.sonar.batch.protocol.output.BatchReport.Metadata parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } - public static Builder newBuilder() { - return Builder.create(); - } - - public Builder newBuilderForType() { - return newBuilder(); - } - + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(org.sonar.batch.protocol.output.BatchReport.Metadata prototype) { return newBuilder().mergeFrom(prototype); } - - public Builder toBuilder() { - return newBuilder(this); - } + public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** * Protobuf type {@code Metadata} */ public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:Metadata) - org.sonar.batch.protocol.output.BatchReport.MetadataOrBuilder { + com.google.protobuf.GeneratedMessage.Builder + implements org.sonar.batch.protocol.output.BatchReport.MetadataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + getDescriptor() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Metadata_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { + internalGetFieldAccessorTable() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Metadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.batch.protocol.output.BatchReport.Metadata.class, org.sonar.batch.protocol.output.BatchReport.Metadata.Builder.class); + .ensureFieldAccessorsInitialized( + org.sonar.batch.protocol.output.BatchReport.Metadata.class, org.sonar.batch.protocol.output.BatchReport.Metadata.Builder.class); } // Construct using org.sonar.batch.protocol.output.BatchReport.Metadata.newBuilder() @@ -518,16 +470,14 @@ public final class BatchReport { } private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } - private static Builder create() { return new Builder(); } @@ -552,7 +502,7 @@ public final class BatchReport { } public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { + getDescriptorForType() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Metadata_descriptor; } @@ -599,7 +549,7 @@ public final class BatchReport { public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.sonar.batch.protocol.output.BatchReport.Metadata) { - return mergeFrom((org.sonar.batch.protocol.output.BatchReport.Metadata) other); + return mergeFrom((org.sonar.batch.protocol.output.BatchReport.Metadata)other); } else { super.mergeFrom(other); return this; @@ -607,8 +557,7 @@ public final class BatchReport { } public Builder mergeFrom(org.sonar.batch.protocol.output.BatchReport.Metadata other) { - if (other == org.sonar.batch.protocol.output.BatchReport.Metadata.getDefaultInstance()) - return this; + if (other == org.sonar.batch.protocol.output.BatchReport.Metadata.getDefaultInstance()) return this; if (other.hasAnalysisDate()) { setAnalysisDate(other.getAnalysisDate()); } @@ -635,9 +584,9 @@ public final class BatchReport { } public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { org.sonar.batch.protocol.output.BatchReport.Metadata parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); @@ -651,25 +600,22 @@ public final class BatchReport { } return this; } - private int bitField0_; - private long analysisDate_; - + // optional int64 analysis_date = 1; + private long analysisDate_ ; /** * optional int64 analysis_date = 1; */ public boolean hasAnalysisDate() { return ((bitField0_ & 0x00000001) == 0x00000001); } - /** * optional int64 analysis_date = 1; */ public long getAnalysisDate() { return analysisDate_; } - /** * optional int64 analysis_date = 1; */ @@ -679,7 +625,6 @@ public final class BatchReport { onChanged(); return this; } - /** * optional int64 analysis_date = 1; */ @@ -690,64 +635,57 @@ public final class BatchReport { return this; } + // optional string project_key = 2; private java.lang.Object projectKey_ = ""; - /** * optional string project_key = 2; */ public boolean hasProjectKey() { return ((bitField0_ & 0x00000002) == 0x00000002); } - /** * optional string project_key = 2; */ public java.lang.String getProjectKey() { java.lang.Object ref = projectKey_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - projectKey_ = s; - } + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + projectKey_ = s; return s; } else { return (java.lang.String) ref; } } - /** * optional string project_key = 2; */ public com.google.protobuf.ByteString - getProjectKeyBytes() { + getProjectKeyBytes() { java.lang.Object ref = projectKey_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectKey_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - /** * optional string project_key = 2; */ public Builder setProjectKey( - java.lang.String value) { + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; projectKey_ = value; onChanged(); return this; } - /** * optional string project_key = 2; */ @@ -757,37 +695,34 @@ public final class BatchReport { onChanged(); return this; } - /** * optional string project_key = 2; */ public Builder setProjectKeyBytes( - com.google.protobuf.ByteString value) { + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; projectKey_ = value; onChanged(); return this; } - private int rootComponentRef_; - + // optional int32 root_component_ref = 3; + private int rootComponentRef_ ; /** * optional int32 root_component_ref = 3; */ public boolean hasRootComponentRef() { return ((bitField0_ & 0x00000004) == 0x00000004); } - /** * optional int32 root_component_ref = 3; */ public int getRootComponentRef() { return rootComponentRef_; } - /** * optional int32 root_component_ref = 3; */ @@ -797,7 +732,6 @@ public final class BatchReport { onChanged(); return this; } - /** * optional int32 root_component_ref = 3; */ @@ -808,8 +742,8 @@ public final class BatchReport { return this; } - private long snapshotId_; - + // optional int64 snapshot_id = 4; + private long snapshotId_ ; /** * optional int64 snapshot_id = 4; * @@ -820,7 +754,6 @@ public final class BatchReport { public boolean hasSnapshotId() { return ((bitField0_ & 0x00000008) == 0x00000008); } - /** * optional int64 snapshot_id = 4; * @@ -831,7 +764,6 @@ public final class BatchReport { public long getSnapshotId() { return snapshotId_; } - /** * optional int64 snapshot_id = 4; * @@ -845,7 +777,6 @@ public final class BatchReport { onChanged(); return this; } - /** * optional int64 snapshot_id = 4; * @@ -860,22 +791,20 @@ public final class BatchReport { return this; } - private int deletedComponentsCount_; - + // optional int32 deleted_components_count = 5; + private int deletedComponentsCount_ ; /** * optional int32 deleted_components_count = 5; */ public boolean hasDeletedComponentsCount() { return ((bitField0_ & 0x00000010) == 0x00000010); } - /** * optional int32 deleted_components_count = 5; */ public int getDeletedComponentsCount() { return deletedComponentsCount_; } - /** * optional int32 deleted_components_count = 5; */ @@ -885,7 +814,6 @@ public final class BatchReport { onChanged(); return this; } - /** * optional int32 deleted_components_count = 5; */ @@ -907,55 +835,48 @@ public final class BatchReport { // @@protoc_insertion_point(class_scope:Metadata) } - public interface ComponentLinkOrBuilder extends - // @@protoc_insertion_point(interface_extends:ComponentLink) - com.google.protobuf.MessageOrBuilder { + public interface ComponentLinkOrBuilder + extends com.google.protobuf.MessageOrBuilder { + // optional .ComponentLinkType type = 1; /** * optional .ComponentLinkType type = 1; */ boolean hasType(); - /** * optional .ComponentLinkType type = 1; */ org.sonar.batch.protocol.Constants.ComponentLinkType getType(); + // optional string href = 2; /** * optional string href = 2; */ boolean hasHref(); - /** * optional string href = 2; */ java.lang.String getHref(); - /** * optional string href = 2; */ com.google.protobuf.ByteString - getHrefBytes(); + getHrefBytes(); } /** * Protobuf type {@code ComponentLink} */ public static final class ComponentLink extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:ComponentLink) - ComponentLinkOrBuilder { + com.google.protobuf.GeneratedMessage + implements ComponentLinkOrBuilder { // Use ComponentLink.newBuilder() to construct. private ComponentLink(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } - - private ComponentLink(boolean noInit) { - this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } + private ComponentLink(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final ComponentLink defaultInstance; - public static ComponentLink getDefaultInstance() { return defaultInstance; } @@ -965,21 +886,19 @@ public final class BatchReport { } private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + getUnknownFields() { return this.unknownFields; } - private ComponentLink( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); + com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { @@ -990,7 +909,7 @@ public final class BatchReport { break; default: { if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { + extensionRegistry, tag)) { done = true; } break; @@ -1007,9 +926,8 @@ public final class BatchReport { break; } case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; - href_ = bs; + href_ = input.readBytes(); break; } } @@ -1018,34 +936,33 @@ public final class BatchReport { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); + e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + getDescriptor() { return org.sonar.batch.protocol.output.BatchReport.internal_static_ComponentLink_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { + internalGetFieldAccessorTable() { return org.sonar.batch.protocol.output.BatchReport.internal_static_ComponentLink_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.batch.protocol.output.BatchReport.ComponentLink.class, org.sonar.batch.protocol.output.BatchReport.ComponentLink.Builder.class); + .ensureFieldAccessorsInitialized( + org.sonar.batch.protocol.output.BatchReport.ComponentLink.class, org.sonar.batch.protocol.output.BatchReport.ComponentLink.Builder.class); } public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public ComponentLink parsePartialFrom( + new com.google.protobuf.AbstractParser() { + public ComponentLink parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ComponentLink(input, extensionRegistry); - } - }; + return new ComponentLink(input, extensionRegistry); + } + }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { @@ -1053,16 +970,15 @@ public final class BatchReport { } private int bitField0_; + // optional .ComponentLinkType type = 1; public static final int TYPE_FIELD_NUMBER = 1; private org.sonar.batch.protocol.Constants.ComponentLinkType type_; - /** * optional .ComponentLinkType type = 1; */ public boolean hasType() { return ((bitField0_ & 0x00000001) == 0x00000001); } - /** * optional .ComponentLinkType type = 1; */ @@ -1070,16 +986,15 @@ public final class BatchReport { return type_; } + // optional string href = 2; public static final int HREF_FIELD_NUMBER = 2; private java.lang.Object href_; - /** * optional string href = 2; */ public boolean hasHref() { return ((bitField0_ & 0x00000002) == 0x00000002); } - /** * optional string href = 2; */ @@ -1088,8 +1003,8 @@ public final class BatchReport { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { href_ = s; @@ -1097,17 +1012,16 @@ public final class BatchReport { return s; } } - /** * optional string href = 2; */ public com.google.protobuf.ByteString - getHrefBytes() { + getHrefBytes() { java.lang.Object ref = href_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); href_ = b; return b; } else { @@ -1119,22 +1033,17 @@ public final class BatchReport { type_ = org.sonar.batch.protocol.Constants.ComponentLinkType.HOME; href_ = ""; } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) - return true; - if (isInitialized == 0) - return false; + if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeEnum(1, type_.getNumber()); @@ -1146,11 +1055,9 @@ public final class BatchReport { } private int memoizedSerializedSize = -1; - public int getSerializedSize() { int size = memoizedSerializedSize; - if (size != -1) - return size; + if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { @@ -1167,115 +1074,94 @@ public final class BatchReport { } private static final long serialVersionUID = 0L; - @java.lang.Override protected java.lang.Object writeReplace() - throws java.io.ObjectStreamException { + throws java.io.ObjectStreamException { return super.writeReplace(); } public static org.sonar.batch.protocol.output.BatchReport.ComponentLink parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.sonar.batch.protocol.output.BatchReport.ComponentLink parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.sonar.batch.protocol.output.BatchReport.ComponentLink parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.sonar.batch.protocol.output.BatchReport.ComponentLink parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.sonar.batch.protocol.output.BatchReport.ComponentLink parseFrom(java.io.InputStream input) - throws java.io.IOException { + throws java.io.IOException { return PARSER.parseFrom(input); } - public static org.sonar.batch.protocol.output.BatchReport.ComponentLink parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } - public static org.sonar.batch.protocol.output.BatchReport.ComponentLink parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { + throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } - public static org.sonar.batch.protocol.output.BatchReport.ComponentLink parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } - public static org.sonar.batch.protocol.output.BatchReport.ComponentLink parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { return PARSER.parseFrom(input); } - public static org.sonar.batch.protocol.output.BatchReport.ComponentLink parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } - public static Builder newBuilder() { - return Builder.create(); - } - - public Builder newBuilderForType() { - return newBuilder(); - } - + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(org.sonar.batch.protocol.output.BatchReport.ComponentLink prototype) { return newBuilder().mergeFrom(prototype); } - - public Builder toBuilder() { - return newBuilder(this); - } + public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** * Protobuf type {@code ComponentLink} */ public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:ComponentLink) - org.sonar.batch.protocol.output.BatchReport.ComponentLinkOrBuilder { + com.google.protobuf.GeneratedMessage.Builder + implements org.sonar.batch.protocol.output.BatchReport.ComponentLinkOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + getDescriptor() { return org.sonar.batch.protocol.output.BatchReport.internal_static_ComponentLink_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { + internalGetFieldAccessorTable() { return org.sonar.batch.protocol.output.BatchReport.internal_static_ComponentLink_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.batch.protocol.output.BatchReport.ComponentLink.class, org.sonar.batch.protocol.output.BatchReport.ComponentLink.Builder.class); + .ensureFieldAccessorsInitialized( + org.sonar.batch.protocol.output.BatchReport.ComponentLink.class, org.sonar.batch.protocol.output.BatchReport.ComponentLink.Builder.class); } // Construct using org.sonar.batch.protocol.output.BatchReport.ComponentLink.newBuilder() @@ -1284,16 +1170,14 @@ public final class BatchReport { } private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } - private static Builder create() { return new Builder(); } @@ -1312,7 +1196,7 @@ public final class BatchReport { } public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { + getDescriptorForType() { return org.sonar.batch.protocol.output.BatchReport.internal_static_ComponentLink_descriptor; } @@ -1347,7 +1231,7 @@ public final class BatchReport { public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.sonar.batch.protocol.output.BatchReport.ComponentLink) { - return mergeFrom((org.sonar.batch.protocol.output.BatchReport.ComponentLink) other); + return mergeFrom((org.sonar.batch.protocol.output.BatchReport.ComponentLink)other); } else { super.mergeFrom(other); return this; @@ -1355,8 +1239,7 @@ public final class BatchReport { } public Builder mergeFrom(org.sonar.batch.protocol.output.BatchReport.ComponentLink other) { - if (other == org.sonar.batch.protocol.output.BatchReport.ComponentLink.getDefaultInstance()) - return this; + if (other == org.sonar.batch.protocol.output.BatchReport.ComponentLink.getDefaultInstance()) return this; if (other.hasType()) { setType(other.getType()); } @@ -1374,9 +1257,9 @@ public final class BatchReport { } public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { org.sonar.batch.protocol.output.BatchReport.ComponentLink parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); @@ -1390,25 +1273,22 @@ public final class BatchReport { } return this; } - private int bitField0_; + // optional .ComponentLinkType type = 1; private org.sonar.batch.protocol.Constants.ComponentLinkType type_ = org.sonar.batch.protocol.Constants.ComponentLinkType.HOME; - /** * optional .ComponentLinkType type = 1; */ public boolean hasType() { return ((bitField0_ & 0x00000001) == 0x00000001); } - /** * optional .ComponentLinkType type = 1; */ public org.sonar.batch.protocol.Constants.ComponentLinkType getType() { return type_; } - /** * optional .ComponentLinkType type = 1; */ @@ -1421,7 +1301,6 @@ public final class BatchReport { onChanged(); return this; } - /** * optional .ComponentLinkType type = 1; */ @@ -1432,64 +1311,57 @@ public final class BatchReport { return this; } + // optional string href = 2; private java.lang.Object href_ = ""; - /** * optional string href = 2; */ public boolean hasHref() { return ((bitField0_ & 0x00000002) == 0x00000002); } - /** * optional string href = 2; */ public java.lang.String getHref() { java.lang.Object ref = href_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - href_ = s; - } + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + href_ = s; return s; } else { return (java.lang.String) ref; } } - /** * optional string href = 2; */ public com.google.protobuf.ByteString - getHrefBytes() { + getHrefBytes() { java.lang.Object ref = href_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); href_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - /** * optional string href = 2; */ public Builder setHref( - java.lang.String value) { + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; href_ = value; onChanged(); return this; } - /** * optional string href = 2; */ @@ -1499,16 +1371,15 @@ public final class BatchReport { onChanged(); return this; } - /** * optional string href = 2; */ public Builder setHrefBytes( - com.google.protobuf.ByteString value) { + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; href_ = value; onChanged(); return this; @@ -1525,131 +1396,124 @@ public final class BatchReport { // @@protoc_insertion_point(class_scope:ComponentLink) } - public interface ComponentOrBuilder extends - // @@protoc_insertion_point(interface_extends:Component) - com.google.protobuf.MessageOrBuilder { + public interface ComponentOrBuilder + extends com.google.protobuf.MessageOrBuilder { + // optional int32 ref = 1; /** * optional int32 ref = 1; */ boolean hasRef(); - /** * optional int32 ref = 1; */ int getRef(); + // optional string path = 2; /** * optional string path = 2; */ boolean hasPath(); - /** * optional string path = 2; */ java.lang.String getPath(); - /** * optional string path = 2; */ com.google.protobuf.ByteString - getPathBytes(); + getPathBytes(); + // optional string name = 3; /** * optional string name = 3; */ boolean hasName(); - /** * optional string name = 3; */ java.lang.String getName(); - /** * optional string name = 3; */ com.google.protobuf.ByteString - getNameBytes(); + getNameBytes(); + // optional .ComponentType type = 4; /** * optional .ComponentType type = 4; */ boolean hasType(); - /** * optional .ComponentType type = 4; */ org.sonar.batch.protocol.Constants.ComponentType getType(); + // optional bool is_test = 5; /** * optional bool is_test = 5; */ boolean hasIsTest(); - /** * optional bool is_test = 5; */ boolean getIsTest(); + // optional string language = 6; /** * optional string language = 6; */ boolean hasLanguage(); - /** * optional string language = 6; */ java.lang.String getLanguage(); - /** * optional string language = 6; */ com.google.protobuf.ByteString - getLanguageBytes(); + getLanguageBytes(); + // repeated int32 child_ref = 7 [packed = true]; /** - * repeated int32 child_refs = 7 [packed = true]; + * repeated int32 child_ref = 7 [packed = true]; */ - java.util.List getChildRefsList(); - + java.util.List getChildRefList(); /** - * repeated int32 child_refs = 7 [packed = true]; + * repeated int32 child_ref = 7 [packed = true]; */ - int getChildRefsCount(); - + int getChildRefCount(); /** - * repeated int32 child_refs = 7 [packed = true]; + * repeated int32 child_ref = 7 [packed = true]; */ - int getChildRefs(int index); + int getChildRef(int index); + // repeated .ComponentLink link = 10; /** - * repeated .ComponentLink links = 10; + * repeated .ComponentLink link = 10; */ - java.util.List - getLinksList(); - + java.util.List + getLinkList(); /** - * repeated .ComponentLink links = 10; + * repeated .ComponentLink link = 10; */ - org.sonar.batch.protocol.output.BatchReport.ComponentLink getLinks(int index); - + org.sonar.batch.protocol.output.BatchReport.ComponentLink getLink(int index); /** - * repeated .ComponentLink links = 10; + * repeated .ComponentLink link = 10; */ - int getLinksCount(); - + int getLinkCount(); /** - * repeated .ComponentLink links = 10; + * repeated .ComponentLink link = 10; */ - java.util.List - getLinksOrBuilderList(); - + java.util.List + getLinkOrBuilderList(); /** - * repeated .ComponentLink links = 10; + * repeated .ComponentLink link = 10; */ - org.sonar.batch.protocol.output.BatchReport.ComponentLinkOrBuilder getLinksOrBuilder( - int index); + org.sonar.batch.protocol.output.BatchReport.ComponentLinkOrBuilder getLinkOrBuilder( + int index); + // optional int32 snapshot_id = 8; /** * optional int32 snapshot_id = 8; * @@ -1658,7 +1522,6 @@ public final class BatchReport { * */ boolean hasSnapshotId(); - /** * optional int32 snapshot_id = 8; * @@ -1668,41 +1531,35 @@ public final class BatchReport { */ int getSnapshotId(); + // optional string uuid = 9; /** * optional string uuid = 9; */ boolean hasUuid(); - /** * optional string uuid = 9; */ java.lang.String getUuid(); - /** * optional string uuid = 9; */ com.google.protobuf.ByteString - getUuidBytes(); + getUuidBytes(); } /** * Protobuf type {@code Component} */ public static final class Component extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:Component) - ComponentOrBuilder { + com.google.protobuf.GeneratedMessage + implements ComponentOrBuilder { // Use Component.newBuilder() to construct. private Component(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } - - private Component(boolean noInit) { - this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } + private Component(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final Component defaultInstance; - public static Component getDefaultInstance() { return defaultInstance; } @@ -1712,21 +1569,19 @@ public final class BatchReport { } private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + getUnknownFields() { return this.unknownFields; } - private Component( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); + com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { @@ -1737,7 +1592,7 @@ public final class BatchReport { break; default: { if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { + extensionRegistry, tag)) { done = true; } break; @@ -1748,15 +1603,13 @@ public final class BatchReport { break; } case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; - path_ = bs; + path_ = input.readBytes(); break; } case 26: { - com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000004; - name_ = bs; + name_ = input.readBytes(); break; } case 32: { @@ -1776,28 +1629,27 @@ public final class BatchReport { break; } case 50: { - com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000020; - language_ = bs; + language_ = input.readBytes(); break; } case 56: { if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { - childRefs_ = new java.util.ArrayList(); + childRef_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000040; } - childRefs_.add(input.readInt32()); + childRef_.add(input.readInt32()); break; } case 58: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000040) == 0x00000040) && input.getBytesUntilLimit() > 0) { - childRefs_ = new java.util.ArrayList(); + childRef_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000040; } while (input.getBytesUntilLimit() > 0) { - childRefs_.add(input.readInt32()); + childRef_.add(input.readInt32()); } input.popLimit(limit); break; @@ -1808,17 +1660,16 @@ public final class BatchReport { break; } case 74: { - com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000080; - uuid_ = bs; + uuid_ = input.readBytes(); break; } case 82: { if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) { - links_ = new java.util.ArrayList(); + link_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000080; } - links_.add(input.readMessage(org.sonar.batch.protocol.output.BatchReport.ComponentLink.PARSER, extensionRegistry)); + link_.add(input.readMessage(org.sonar.batch.protocol.output.BatchReport.ComponentLink.PARSER, extensionRegistry)); break; } } @@ -1827,40 +1678,39 @@ public final class BatchReport { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); + e.getMessage()).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) { - childRefs_ = java.util.Collections.unmodifiableList(childRefs_); + childRef_ = java.util.Collections.unmodifiableList(childRef_); } if (((mutable_bitField0_ & 0x00000080) == 0x00000080)) { - links_ = java.util.Collections.unmodifiableList(links_); + link_ = java.util.Collections.unmodifiableList(link_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + getDescriptor() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Component_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { + internalGetFieldAccessorTable() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Component_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.batch.protocol.output.BatchReport.Component.class, org.sonar.batch.protocol.output.BatchReport.Component.Builder.class); + .ensureFieldAccessorsInitialized( + org.sonar.batch.protocol.output.BatchReport.Component.class, org.sonar.batch.protocol.output.BatchReport.Component.Builder.class); } public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Component parsePartialFrom( + new com.google.protobuf.AbstractParser() { + public Component parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Component(input, extensionRegistry); - } - }; + return new Component(input, extensionRegistry); + } + }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { @@ -1868,16 +1718,15 @@ public final class BatchReport { } private int bitField0_; + // optional int32 ref = 1; public static final int REF_FIELD_NUMBER = 1; private int ref_; - /** * optional int32 ref = 1; */ public boolean hasRef() { return ((bitField0_ & 0x00000001) == 0x00000001); } - /** * optional int32 ref = 1; */ @@ -1885,16 +1734,15 @@ public final class BatchReport { return ref_; } + // optional string path = 2; public static final int PATH_FIELD_NUMBER = 2; private java.lang.Object path_; - /** * optional string path = 2; */ public boolean hasPath() { return ((bitField0_ & 0x00000002) == 0x00000002); } - /** * optional string path = 2; */ @@ -1903,8 +1751,8 @@ public final class BatchReport { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { path_ = s; @@ -1912,17 +1760,16 @@ public final class BatchReport { return s; } } - /** * optional string path = 2; */ public com.google.protobuf.ByteString - getPathBytes() { + getPathBytes() { java.lang.Object ref = path_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); path_ = b; return b; } else { @@ -1930,16 +1777,15 @@ public final class BatchReport { } } + // optional string name = 3; public static final int NAME_FIELD_NUMBER = 3; private java.lang.Object name_; - /** * optional string name = 3; */ public boolean hasName() { return ((bitField0_ & 0x00000004) == 0x00000004); } - /** * optional string name = 3; */ @@ -1948,8 +1794,8 @@ public final class BatchReport { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { name_ = s; @@ -1957,17 +1803,16 @@ public final class BatchReport { return s; } } - /** * optional string name = 3; */ public com.google.protobuf.ByteString - getNameBytes() { + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1975,16 +1820,15 @@ public final class BatchReport { } } + // optional .ComponentType type = 4; public static final int TYPE_FIELD_NUMBER = 4; private org.sonar.batch.protocol.Constants.ComponentType type_; - /** * optional .ComponentType type = 4; */ public boolean hasType() { return ((bitField0_ & 0x00000008) == 0x00000008); } - /** * optional .ComponentType type = 4; */ @@ -1992,16 +1836,15 @@ public final class BatchReport { return type_; } + // optional bool is_test = 5; public static final int IS_TEST_FIELD_NUMBER = 5; private boolean isTest_; - /** * optional bool is_test = 5; */ public boolean hasIsTest() { return ((bitField0_ & 0x00000010) == 0x00000010); } - /** * optional bool is_test = 5; */ @@ -2009,16 +1852,15 @@ public final class BatchReport { return isTest_; } + // optional string language = 6; public static final int LANGUAGE_FIELD_NUMBER = 6; private java.lang.Object language_; - /** * optional string language = 6; */ public boolean hasLanguage() { return ((bitField0_ & 0x00000020) == 0x00000020); } - /** * optional string language = 6; */ @@ -2027,8 +1869,8 @@ public final class BatchReport { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { language_ = s; @@ -2036,17 +1878,16 @@ public final class BatchReport { return s; } } - /** * optional string language = 6; */ public com.google.protobuf.ByteString - getLanguageBytes() { + getLanguageBytes() { java.lang.Object ref = language_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); language_ = b; return b; } else { @@ -2054,76 +1895,69 @@ public final class BatchReport { } } - public static final int CHILD_REFS_FIELD_NUMBER = 7; - private java.util.List childRefs_; - + // repeated int32 child_ref = 7 [packed = true]; + public static final int CHILD_REF_FIELD_NUMBER = 7; + private java.util.List childRef_; /** - * repeated int32 child_refs = 7 [packed = true]; + * repeated int32 child_ref = 7 [packed = true]; */ public java.util.List - getChildRefsList() { - return childRefs_; + getChildRefList() { + return childRef_; } - /** - * repeated int32 child_refs = 7 [packed = true]; + * repeated int32 child_ref = 7 [packed = true]; */ - public int getChildRefsCount() { - return childRefs_.size(); + public int getChildRefCount() { + return childRef_.size(); } - /** - * repeated int32 child_refs = 7 [packed = true]; + * repeated int32 child_ref = 7 [packed = true]; */ - public int getChildRefs(int index) { - return childRefs_.get(index); + public int getChildRef(int index) { + return childRef_.get(index); } + private int childRefMemoizedSerializedSize = -1; - private int childRefsMemoizedSerializedSize = -1; - - public static final int LINKS_FIELD_NUMBER = 10; - private java.util.List links_; - + // repeated .ComponentLink link = 10; + public static final int LINK_FIELD_NUMBER = 10; + private java.util.List link_; /** - * repeated .ComponentLink links = 10; + * repeated .ComponentLink link = 10; */ - public java.util.List getLinksList() { - return links_; + public java.util.List getLinkList() { + return link_; } - /** - * repeated .ComponentLink links = 10; + * repeated .ComponentLink link = 10; */ - public java.util.List - getLinksOrBuilderList() { - return links_; + public java.util.List + getLinkOrBuilderList() { + return link_; } - /** - * repeated .ComponentLink links = 10; + * repeated .ComponentLink link = 10; */ - public int getLinksCount() { - return links_.size(); + public int getLinkCount() { + return link_.size(); } - /** - * repeated .ComponentLink links = 10; + * repeated .ComponentLink link = 10; */ - public org.sonar.batch.protocol.output.BatchReport.ComponentLink getLinks(int index) { - return links_.get(index); + public org.sonar.batch.protocol.output.BatchReport.ComponentLink getLink(int index) { + return link_.get(index); } - /** - * repeated .ComponentLink links = 10; + * repeated .ComponentLink link = 10; */ - public org.sonar.batch.protocol.output.BatchReport.ComponentLinkOrBuilder getLinksOrBuilder( - int index) { - return links_.get(index); + public org.sonar.batch.protocol.output.BatchReport.ComponentLinkOrBuilder getLinkOrBuilder( + int index) { + return link_.get(index); } + // optional int32 snapshot_id = 8; public static final int SNAPSHOT_ID_FIELD_NUMBER = 8; private int snapshotId_; - /** * optional int32 snapshot_id = 8; * @@ -2134,7 +1968,6 @@ public final class BatchReport { public boolean hasSnapshotId() { return ((bitField0_ & 0x00000040) == 0x00000040); } - /** * optional int32 snapshot_id = 8; * @@ -2146,16 +1979,15 @@ public final class BatchReport { return snapshotId_; } + // optional string uuid = 9; public static final int UUID_FIELD_NUMBER = 9; private java.lang.Object uuid_; - /** * optional string uuid = 9; */ public boolean hasUuid() { return ((bitField0_ & 0x00000080) == 0x00000080); } - /** * optional string uuid = 9; */ @@ -2164,8 +1996,8 @@ public final class BatchReport { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { uuid_ = s; @@ -2173,17 +2005,16 @@ public final class BatchReport { return s; } } - /** * optional string uuid = 9; */ public com.google.protobuf.ByteString - getUuidBytes() { + getUuidBytes() { java.lang.Object ref = uuid_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uuid_ = b; return b; } else { @@ -2198,27 +2029,22 @@ public final class BatchReport { type_ = org.sonar.batch.protocol.Constants.ComponentType.PROJECT; isTest_ = false; language_ = ""; - childRefs_ = java.util.Collections.emptyList(); - links_ = java.util.Collections.emptyList(); + childRef_ = java.util.Collections.emptyList(); + link_ = java.util.Collections.emptyList(); snapshotId_ = 0; uuid_ = ""; } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) - return true; - if (isInitialized == 0) - return false; + if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt32(1, ref_); @@ -2238,12 +2064,12 @@ public final class BatchReport { if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeBytes(6, getLanguageBytes()); } - if (getChildRefsList().size() > 0) { + if (getChildRefList().size() > 0) { output.writeRawVarint32(58); - output.writeRawVarint32(childRefsMemoizedSerializedSize); + output.writeRawVarint32(childRefMemoizedSerializedSize); } - for (int i = 0; i < childRefs_.size(); i++) { - output.writeInt32NoTag(childRefs_.get(i)); + for (int i = 0; i < childRef_.size(); i++) { + output.writeInt32NoTag(childRef_.get(i)); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeInt32(8, snapshotId_); @@ -2251,18 +2077,16 @@ public final class BatchReport { if (((bitField0_ & 0x00000080) == 0x00000080)) { output.writeBytes(9, getUuidBytes()); } - for (int i = 0; i < links_.size(); i++) { - output.writeMessage(10, links_.get(i)); + for (int i = 0; i < link_.size(); i++) { + output.writeMessage(10, link_.get(i)); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; - public int getSerializedSize() { int size = memoizedSerializedSize; - if (size != -1) - return size; + if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { @@ -2291,17 +2115,17 @@ public final class BatchReport { } { int dataSize = 0; - for (int i = 0; i < childRefs_.size(); i++) { + for (int i = 0; i < childRef_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(childRefs_.get(i)); + .computeInt32SizeNoTag(childRef_.get(i)); } size += dataSize; - if (!getChildRefsList().isEmpty()) { + if (!getChildRefList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); + .computeInt32SizeNoTag(dataSize); } - childRefsMemoizedSerializedSize = dataSize; + childRefMemoizedSerializedSize = dataSize; } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream @@ -2311,9 +2135,9 @@ public final class BatchReport { size += com.google.protobuf.CodedOutputStream .computeBytesSize(9, getUuidBytes()); } - for (int i = 0; i < links_.size(); i++) { + for (int i = 0; i < link_.size(); i++) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, links_.get(i)); + .computeMessageSize(10, link_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; @@ -2321,115 +2145,94 @@ public final class BatchReport { } private static final long serialVersionUID = 0L; - @java.lang.Override protected java.lang.Object writeReplace() - throws java.io.ObjectStreamException { + throws java.io.ObjectStreamException { return super.writeReplace(); } public static org.sonar.batch.protocol.output.BatchReport.Component parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.sonar.batch.protocol.output.BatchReport.Component parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.sonar.batch.protocol.output.BatchReport.Component parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.sonar.batch.protocol.output.BatchReport.Component parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.sonar.batch.protocol.output.BatchReport.Component parseFrom(java.io.InputStream input) - throws java.io.IOException { + throws java.io.IOException { return PARSER.parseFrom(input); } - public static org.sonar.batch.protocol.output.BatchReport.Component parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } - public static org.sonar.batch.protocol.output.BatchReport.Component parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { + throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } - public static org.sonar.batch.protocol.output.BatchReport.Component parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } - public static org.sonar.batch.protocol.output.BatchReport.Component parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { return PARSER.parseFrom(input); } - public static org.sonar.batch.protocol.output.BatchReport.Component parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } - public static Builder newBuilder() { - return Builder.create(); - } - - public Builder newBuilderForType() { - return newBuilder(); - } - + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(org.sonar.batch.protocol.output.BatchReport.Component prototype) { return newBuilder().mergeFrom(prototype); } - - public Builder toBuilder() { - return newBuilder(this); - } + public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** * Protobuf type {@code Component} */ public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:Component) - org.sonar.batch.protocol.output.BatchReport.ComponentOrBuilder { + com.google.protobuf.GeneratedMessage.Builder + implements org.sonar.batch.protocol.output.BatchReport.ComponentOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + getDescriptor() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Component_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { + internalGetFieldAccessorTable() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Component_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.batch.protocol.output.BatchReport.Component.class, org.sonar.batch.protocol.output.BatchReport.Component.Builder.class); + .ensureFieldAccessorsInitialized( + org.sonar.batch.protocol.output.BatchReport.Component.class, org.sonar.batch.protocol.output.BatchReport.Component.Builder.class); } // Construct using org.sonar.batch.protocol.output.BatchReport.Component.newBuilder() @@ -2438,17 +2241,15 @@ public final class BatchReport { } private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getLinksFieldBuilder(); + getLinkFieldBuilder(); } } - private static Builder create() { return new Builder(); } @@ -2467,13 +2268,13 @@ public final class BatchReport { bitField0_ = (bitField0_ & ~0x00000010); language_ = ""; bitField0_ = (bitField0_ & ~0x00000020); - childRefs_ = java.util.Collections.emptyList(); + childRef_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); - if (linksBuilder_ == null) { - links_ = java.util.Collections.emptyList(); + if (linkBuilder_ == null) { + link_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000080); } else { - linksBuilder_.clear(); + linkBuilder_.clear(); } snapshotId_ = 0; bitField0_ = (bitField0_ & ~0x00000100); @@ -2487,7 +2288,7 @@ public final class BatchReport { } public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { + getDescriptorForType() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Component_descriptor; } @@ -2532,18 +2333,18 @@ public final class BatchReport { } result.language_ = language_; if (((bitField0_ & 0x00000040) == 0x00000040)) { - childRefs_ = java.util.Collections.unmodifiableList(childRefs_); + childRef_ = java.util.Collections.unmodifiableList(childRef_); bitField0_ = (bitField0_ & ~0x00000040); } - result.childRefs_ = childRefs_; - if (linksBuilder_ == null) { + result.childRef_ = childRef_; + if (linkBuilder_ == null) { if (((bitField0_ & 0x00000080) == 0x00000080)) { - links_ = java.util.Collections.unmodifiableList(links_); + link_ = java.util.Collections.unmodifiableList(link_); bitField0_ = (bitField0_ & ~0x00000080); } - result.links_ = links_; + result.link_ = link_; } else { - result.links_ = linksBuilder_.build(); + result.link_ = linkBuilder_.build(); } if (((from_bitField0_ & 0x00000100) == 0x00000100)) { to_bitField0_ |= 0x00000040; @@ -2560,7 +2361,7 @@ public final class BatchReport { public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.sonar.batch.protocol.output.BatchReport.Component) { - return mergeFrom((org.sonar.batch.protocol.output.BatchReport.Component) other); + return mergeFrom((org.sonar.batch.protocol.output.BatchReport.Component)other); } else { super.mergeFrom(other); return this; @@ -2568,8 +2369,7 @@ public final class BatchReport { } public Builder mergeFrom(org.sonar.batch.protocol.output.BatchReport.Component other) { - if (other == org.sonar.batch.protocol.output.BatchReport.Component.getDefaultInstance()) - return this; + if (other == org.sonar.batch.protocol.output.BatchReport.Component.getDefaultInstance()) return this; if (other.hasRef()) { setRef(other.getRef()); } @@ -2594,39 +2394,39 @@ public final class BatchReport { language_ = other.language_; onChanged(); } - if (!other.childRefs_.isEmpty()) { - if (childRefs_.isEmpty()) { - childRefs_ = other.childRefs_; + if (!other.childRef_.isEmpty()) { + if (childRef_.isEmpty()) { + childRef_ = other.childRef_; bitField0_ = (bitField0_ & ~0x00000040); } else { - ensureChildRefsIsMutable(); - childRefs_.addAll(other.childRefs_); + ensureChildRefIsMutable(); + childRef_.addAll(other.childRef_); } onChanged(); } - if (linksBuilder_ == null) { - if (!other.links_.isEmpty()) { - if (links_.isEmpty()) { - links_ = other.links_; + if (linkBuilder_ == null) { + if (!other.link_.isEmpty()) { + if (link_.isEmpty()) { + link_ = other.link_; bitField0_ = (bitField0_ & ~0x00000080); } else { - ensureLinksIsMutable(); - links_.addAll(other.links_); + ensureLinkIsMutable(); + link_.addAll(other.link_); } onChanged(); } } else { - if (!other.links_.isEmpty()) { - if (linksBuilder_.isEmpty()) { - linksBuilder_.dispose(); - linksBuilder_ = null; - links_ = other.links_; + if (!other.link_.isEmpty()) { + if (linkBuilder_.isEmpty()) { + linkBuilder_.dispose(); + linkBuilder_ = null; + link_ = other.link_; bitField0_ = (bitField0_ & ~0x00000080); - linksBuilder_ = + linkBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getLinksFieldBuilder() : null; + getLinkFieldBuilder() : null; } else { - linksBuilder_.addAllMessages(other.links_); + linkBuilder_.addAllMessages(other.link_); } } } @@ -2647,9 +2447,9 @@ public final class BatchReport { } public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { org.sonar.batch.protocol.output.BatchReport.Component parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); @@ -2663,25 +2463,22 @@ public final class BatchReport { } return this; } - private int bitField0_; - private int ref_; - + // optional int32 ref = 1; + private int ref_ ; /** * optional int32 ref = 1; */ public boolean hasRef() { return ((bitField0_ & 0x00000001) == 0x00000001); } - /** * optional int32 ref = 1; */ public int getRef() { return ref_; } - /** * optional int32 ref = 1; */ @@ -2691,7 +2488,6 @@ public final class BatchReport { onChanged(); return this; } - /** * optional int32 ref = 1; */ @@ -2702,64 +2498,57 @@ public final class BatchReport { return this; } + // optional string path = 2; private java.lang.Object path_ = ""; - /** * optional string path = 2; */ public boolean hasPath() { return ((bitField0_ & 0x00000002) == 0x00000002); } - /** * optional string path = 2; */ public java.lang.String getPath() { java.lang.Object ref = path_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - path_ = s; - } + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + path_ = s; return s; } else { return (java.lang.String) ref; } } - /** * optional string path = 2; */ public com.google.protobuf.ByteString - getPathBytes() { + getPathBytes() { java.lang.Object ref = path_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); path_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - /** * optional string path = 2; */ public Builder setPath( - java.lang.String value) { + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; path_ = value; onChanged(); return this; } - /** * optional string path = 2; */ @@ -2769,79 +2558,71 @@ public final class BatchReport { onChanged(); return this; } - /** * optional string path = 2; */ public Builder setPathBytes( - com.google.protobuf.ByteString value) { + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; path_ = value; onChanged(); return this; } + // optional string name = 3; private java.lang.Object name_ = ""; - /** * optional string name = 3; */ public boolean hasName() { return ((bitField0_ & 0x00000004) == 0x00000004); } - /** * optional string name = 3; */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - name_ = s; - } + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + name_ = s; return s; } else { return (java.lang.String) ref; } } - /** * optional string name = 3; */ public com.google.protobuf.ByteString - getNameBytes() { + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - /** * optional string name = 3; */ public Builder setName( - java.lang.String value) { + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; name_ = value; onChanged(); return this; } - /** * optional string name = 3; */ @@ -2851,37 +2632,34 @@ public final class BatchReport { onChanged(); return this; } - /** * optional string name = 3; */ public Builder setNameBytes( - com.google.protobuf.ByteString value) { + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; name_ = value; onChanged(); return this; } + // optional .ComponentType type = 4; private org.sonar.batch.protocol.Constants.ComponentType type_ = org.sonar.batch.protocol.Constants.ComponentType.PROJECT; - /** * optional .ComponentType type = 4; */ public boolean hasType() { return ((bitField0_ & 0x00000008) == 0x00000008); } - /** * optional .ComponentType type = 4; */ public org.sonar.batch.protocol.Constants.ComponentType getType() { return type_; } - /** * optional .ComponentType type = 4; */ @@ -2894,7 +2672,6 @@ public final class BatchReport { onChanged(); return this; } - /** * optional .ComponentType type = 4; */ @@ -2905,22 +2682,20 @@ public final class BatchReport { return this; } - private boolean isTest_; - + // optional bool is_test = 5; + private boolean isTest_ ; /** * optional bool is_test = 5; */ public boolean hasIsTest() { return ((bitField0_ & 0x00000010) == 0x00000010); } - /** * optional bool is_test = 5; */ public boolean getIsTest() { return isTest_; } - /** * optional bool is_test = 5; */ @@ -2930,7 +2705,6 @@ public final class BatchReport { onChanged(); return this; } - /** * optional bool is_test = 5; */ @@ -2941,64 +2715,57 @@ public final class BatchReport { return this; } + // optional string language = 6; private java.lang.Object language_ = ""; - /** * optional string language = 6; */ public boolean hasLanguage() { return ((bitField0_ & 0x00000020) == 0x00000020); } - /** * optional string language = 6; */ public java.lang.String getLanguage() { java.lang.Object ref = language_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - language_ = s; - } + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + language_ = s; return s; } else { return (java.lang.String) ref; } } - /** * optional string language = 6; */ public com.google.protobuf.ByteString - getLanguageBytes() { + getLanguageBytes() { java.lang.Object ref = language_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); language_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - /** * optional string language = 6; */ public Builder setLanguage( - java.lang.String value) { + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; language_ = value; onChanged(); return this; } - /** * optional string language = 6; */ @@ -3008,356 +2775,328 @@ public final class BatchReport { onChanged(); return this; } - /** * optional string language = 6; */ public Builder setLanguageBytes( - com.google.protobuf.ByteString value) { + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; language_ = value; onChanged(); return this; } - private java.util.List childRefs_ = java.util.Collections.emptyList(); - - private void ensureChildRefsIsMutable() { + // repeated int32 child_ref = 7 [packed = true]; + private java.util.List childRef_ = java.util.Collections.emptyList(); + private void ensureChildRefIsMutable() { if (!((bitField0_ & 0x00000040) == 0x00000040)) { - childRefs_ = new java.util.ArrayList(childRefs_); + childRef_ = new java.util.ArrayList(childRef_); bitField0_ |= 0x00000040; - } + } } - /** - * repeated int32 child_refs = 7 [packed = true]; + * repeated int32 child_ref = 7 [packed = true]; */ public java.util.List - getChildRefsList() { - return java.util.Collections.unmodifiableList(childRefs_); + getChildRefList() { + return java.util.Collections.unmodifiableList(childRef_); } - /** - * repeated int32 child_refs = 7 [packed = true]; + * repeated int32 child_ref = 7 [packed = true]; */ - public int getChildRefsCount() { - return childRefs_.size(); + public int getChildRefCount() { + return childRef_.size(); } - /** - * repeated int32 child_refs = 7 [packed = true]; + * repeated int32 child_ref = 7 [packed = true]; */ - public int getChildRefs(int index) { - return childRefs_.get(index); + public int getChildRef(int index) { + return childRef_.get(index); } - /** - * repeated int32 child_refs = 7 [packed = true]; + * repeated int32 child_ref = 7 [packed = true]; */ - public Builder setChildRefs( - int index, int value) { - ensureChildRefsIsMutable(); - childRefs_.set(index, value); + public Builder setChildRef( + int index, int value) { + ensureChildRefIsMutable(); + childRef_.set(index, value); onChanged(); return this; } - /** - * repeated int32 child_refs = 7 [packed = true]; + * repeated int32 child_ref = 7 [packed = true]; */ - public Builder addChildRefs(int value) { - ensureChildRefsIsMutable(); - childRefs_.add(value); + public Builder addChildRef(int value) { + ensureChildRefIsMutable(); + childRef_.add(value); onChanged(); return this; } - /** - * repeated int32 child_refs = 7 [packed = true]; + * repeated int32 child_ref = 7 [packed = true]; */ - public Builder addAllChildRefs( - java.lang.Iterable values) { - ensureChildRefsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, childRefs_); + public Builder addAllChildRef( + java.lang.Iterable values) { + ensureChildRefIsMutable(); + super.addAll(values, childRef_); onChanged(); return this; } - /** - * repeated int32 child_refs = 7 [packed = true]; + * repeated int32 child_ref = 7 [packed = true]; */ - public Builder clearChildRefs() { - childRefs_ = java.util.Collections.emptyList(); + public Builder clearChildRef() { + childRef_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } - private java.util.List links_ = + // repeated .ComponentLink link = 10; + private java.util.List link_ = java.util.Collections.emptyList(); - - private void ensureLinksIsMutable() { + private void ensureLinkIsMutable() { if (!((bitField0_ & 0x00000080) == 0x00000080)) { - links_ = new java.util.ArrayList(links_); + link_ = new java.util.ArrayList(link_); bitField0_ |= 0x00000080; - } + } } - private com.google.protobuf.RepeatedFieldBuilder linksBuilder_; + private com.google.protobuf.RepeatedFieldBuilder< + org.sonar.batch.protocol.output.BatchReport.ComponentLink, org.sonar.batch.protocol.output.BatchReport.ComponentLink.Builder, org.sonar.batch.protocol.output.BatchReport.ComponentLinkOrBuilder> linkBuilder_; /** - * repeated .ComponentLink links = 10; + * repeated .ComponentLink link = 10; */ - public java.util.List getLinksList() { - if (linksBuilder_ == null) { - return java.util.Collections.unmodifiableList(links_); + public java.util.List getLinkList() { + if (linkBuilder_ == null) { + return java.util.Collections.unmodifiableList(link_); } else { - return linksBuilder_.getMessageList(); + return linkBuilder_.getMessageList(); } } - /** - * repeated .ComponentLink links = 10; + * repeated .ComponentLink link = 10; */ - public int getLinksCount() { - if (linksBuilder_ == null) { - return links_.size(); + public int getLinkCount() { + if (linkBuilder_ == null) { + return link_.size(); } else { - return linksBuilder_.getCount(); + return linkBuilder_.getCount(); } } - /** - * repeated .ComponentLink links = 10; + * repeated .ComponentLink link = 10; */ - public org.sonar.batch.protocol.output.BatchReport.ComponentLink getLinks(int index) { - if (linksBuilder_ == null) { - return links_.get(index); + public org.sonar.batch.protocol.output.BatchReport.ComponentLink getLink(int index) { + if (linkBuilder_ == null) { + return link_.get(index); } else { - return linksBuilder_.getMessage(index); + return linkBuilder_.getMessage(index); } } - /** - * repeated .ComponentLink links = 10; + * repeated .ComponentLink link = 10; */ - public Builder setLinks( - int index, org.sonar.batch.protocol.output.BatchReport.ComponentLink value) { - if (linksBuilder_ == null) { + public Builder setLink( + int index, org.sonar.batch.protocol.output.BatchReport.ComponentLink value) { + if (linkBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureLinksIsMutable(); - links_.set(index, value); + ensureLinkIsMutable(); + link_.set(index, value); onChanged(); } else { - linksBuilder_.setMessage(index, value); + linkBuilder_.setMessage(index, value); } return this; } - /** - * repeated .ComponentLink links = 10; + * repeated .ComponentLink link = 10; */ - public Builder setLinks( - int index, org.sonar.batch.protocol.output.BatchReport.ComponentLink.Builder builderForValue) { - if (linksBuilder_ == null) { - ensureLinksIsMutable(); - links_.set(index, builderForValue.build()); + public Builder setLink( + int index, org.sonar.batch.protocol.output.BatchReport.ComponentLink.Builder builderForValue) { + if (linkBuilder_ == null) { + ensureLinkIsMutable(); + link_.set(index, builderForValue.build()); onChanged(); } else { - linksBuilder_.setMessage(index, builderForValue.build()); + linkBuilder_.setMessage(index, builderForValue.build()); } return this; } - /** - * repeated .ComponentLink links = 10; + * repeated .ComponentLink link = 10; */ - public Builder addLinks(org.sonar.batch.protocol.output.BatchReport.ComponentLink value) { - if (linksBuilder_ == null) { + public Builder addLink(org.sonar.batch.protocol.output.BatchReport.ComponentLink value) { + if (linkBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureLinksIsMutable(); - links_.add(value); + ensureLinkIsMutable(); + link_.add(value); onChanged(); } else { - linksBuilder_.addMessage(value); + linkBuilder_.addMessage(value); } return this; } - /** - * repeated .ComponentLink links = 10; + * repeated .ComponentLink link = 10; */ - public Builder addLinks( - int index, org.sonar.batch.protocol.output.BatchReport.ComponentLink value) { - if (linksBuilder_ == null) { + public Builder addLink( + int index, org.sonar.batch.protocol.output.BatchReport.ComponentLink value) { + if (linkBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureLinksIsMutable(); - links_.add(index, value); + ensureLinkIsMutable(); + link_.add(index, value); onChanged(); } else { - linksBuilder_.addMessage(index, value); + linkBuilder_.addMessage(index, value); } return this; } - /** - * repeated .ComponentLink links = 10; + * repeated .ComponentLink link = 10; */ - public Builder addLinks( - org.sonar.batch.protocol.output.BatchReport.ComponentLink.Builder builderForValue) { - if (linksBuilder_ == null) { - ensureLinksIsMutable(); - links_.add(builderForValue.build()); + public Builder addLink( + org.sonar.batch.protocol.output.BatchReport.ComponentLink.Builder builderForValue) { + if (linkBuilder_ == null) { + ensureLinkIsMutable(); + link_.add(builderForValue.build()); onChanged(); } else { - linksBuilder_.addMessage(builderForValue.build()); + linkBuilder_.addMessage(builderForValue.build()); } return this; } - /** - * repeated .ComponentLink links = 10; + * repeated .ComponentLink link = 10; */ - public Builder addLinks( - int index, org.sonar.batch.protocol.output.BatchReport.ComponentLink.Builder builderForValue) { - if (linksBuilder_ == null) { - ensureLinksIsMutable(); - links_.add(index, builderForValue.build()); + public Builder addLink( + int index, org.sonar.batch.protocol.output.BatchReport.ComponentLink.Builder builderForValue) { + if (linkBuilder_ == null) { + ensureLinkIsMutable(); + link_.add(index, builderForValue.build()); onChanged(); } else { - linksBuilder_.addMessage(index, builderForValue.build()); + linkBuilder_.addMessage(index, builderForValue.build()); } return this; } - /** - * repeated .ComponentLink links = 10; + * repeated .ComponentLink link = 10; */ - public Builder addAllLinks( - java.lang.Iterable values) { - if (linksBuilder_ == null) { - ensureLinksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, links_); + public Builder addAllLink( + java.lang.Iterable values) { + if (linkBuilder_ == null) { + ensureLinkIsMutable(); + super.addAll(values, link_); onChanged(); } else { - linksBuilder_.addAllMessages(values); + linkBuilder_.addAllMessages(values); } return this; } - /** - * repeated .ComponentLink links = 10; + * repeated .ComponentLink link = 10; */ - public Builder clearLinks() { - if (linksBuilder_ == null) { - links_ = java.util.Collections.emptyList(); + public Builder clearLink() { + if (linkBuilder_ == null) { + link_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000080); onChanged(); } else { - linksBuilder_.clear(); + linkBuilder_.clear(); } return this; } - /** - * repeated .ComponentLink links = 10; + * repeated .ComponentLink link = 10; */ - public Builder removeLinks(int index) { - if (linksBuilder_ == null) { - ensureLinksIsMutable(); - links_.remove(index); + public Builder removeLink(int index) { + if (linkBuilder_ == null) { + ensureLinkIsMutable(); + link_.remove(index); onChanged(); } else { - linksBuilder_.remove(index); + linkBuilder_.remove(index); } return this; } - /** - * repeated .ComponentLink links = 10; + * repeated .ComponentLink link = 10; */ - public org.sonar.batch.protocol.output.BatchReport.ComponentLink.Builder getLinksBuilder( - int index) { - return getLinksFieldBuilder().getBuilder(index); + public org.sonar.batch.protocol.output.BatchReport.ComponentLink.Builder getLinkBuilder( + int index) { + return getLinkFieldBuilder().getBuilder(index); } - /** - * repeated .ComponentLink links = 10; + * repeated .ComponentLink link = 10; */ - public org.sonar.batch.protocol.output.BatchReport.ComponentLinkOrBuilder getLinksOrBuilder( - int index) { - if (linksBuilder_ == null) { - return links_.get(index); - } else { - return linksBuilder_.getMessageOrBuilder(index); + public org.sonar.batch.protocol.output.BatchReport.ComponentLinkOrBuilder getLinkOrBuilder( + int index) { + if (linkBuilder_ == null) { + return link_.get(index); } else { + return linkBuilder_.getMessageOrBuilder(index); } } - /** - * repeated .ComponentLink links = 10; + * repeated .ComponentLink link = 10; */ - public java.util.List - getLinksOrBuilderList() { - if (linksBuilder_ != null) { - return linksBuilder_.getMessageOrBuilderList(); + public java.util.List + getLinkOrBuilderList() { + if (linkBuilder_ != null) { + return linkBuilder_.getMessageOrBuilderList(); } else { - return java.util.Collections.unmodifiableList(links_); + return java.util.Collections.unmodifiableList(link_); } } - /** - * repeated .ComponentLink links = 10; + * repeated .ComponentLink link = 10; */ - public org.sonar.batch.protocol.output.BatchReport.ComponentLink.Builder addLinksBuilder() { - return getLinksFieldBuilder().addBuilder( - org.sonar.batch.protocol.output.BatchReport.ComponentLink.getDefaultInstance()); + public org.sonar.batch.protocol.output.BatchReport.ComponentLink.Builder addLinkBuilder() { + return getLinkFieldBuilder().addBuilder( + org.sonar.batch.protocol.output.BatchReport.ComponentLink.getDefaultInstance()); } - /** - * repeated .ComponentLink links = 10; + * repeated .ComponentLink link = 10; */ - public org.sonar.batch.protocol.output.BatchReport.ComponentLink.Builder addLinksBuilder( - int index) { - return getLinksFieldBuilder().addBuilder( - index, org.sonar.batch.protocol.output.BatchReport.ComponentLink.getDefaultInstance()); + public org.sonar.batch.protocol.output.BatchReport.ComponentLink.Builder addLinkBuilder( + int index) { + return getLinkFieldBuilder().addBuilder( + index, org.sonar.batch.protocol.output.BatchReport.ComponentLink.getDefaultInstance()); } - /** - * repeated .ComponentLink links = 10; + * repeated .ComponentLink link = 10; */ - public java.util.List - getLinksBuilderList() { - return getLinksFieldBuilder().getBuilderList(); + public java.util.List + getLinkBuilderList() { + return getLinkFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilder< - org.sonar.batch.protocol.output.BatchReport.ComponentLink, org.sonar.batch.protocol.output.BatchReport.ComponentLink.Builder, org.sonar.batch.protocol.output.BatchReport.ComponentLinkOrBuilder> - getLinksFieldBuilder() { - if (linksBuilder_ == null) { - linksBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - org.sonar.batch.protocol.output.BatchReport.ComponentLink, org.sonar.batch.protocol.output.BatchReport.ComponentLink.Builder, org.sonar.batch.protocol.output.BatchReport.ComponentLinkOrBuilder>( - links_, - ((bitField0_ & 0x00000080) == 0x00000080), - getParentForChildren(), - isClean()); - links_ = null; + org.sonar.batch.protocol.output.BatchReport.ComponentLink, org.sonar.batch.protocol.output.BatchReport.ComponentLink.Builder, org.sonar.batch.protocol.output.BatchReport.ComponentLinkOrBuilder> + getLinkFieldBuilder() { + if (linkBuilder_ == null) { + linkBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + org.sonar.batch.protocol.output.BatchReport.ComponentLink, org.sonar.batch.protocol.output.BatchReport.ComponentLink.Builder, org.sonar.batch.protocol.output.BatchReport.ComponentLinkOrBuilder>( + link_, + ((bitField0_ & 0x00000080) == 0x00000080), + getParentForChildren(), + isClean()); + link_ = null; } - return linksBuilder_; + return linkBuilder_; } - private int snapshotId_; - + // optional int32 snapshot_id = 8; + private int snapshotId_ ; /** * optional int32 snapshot_id = 8; * @@ -3368,7 +3107,6 @@ public final class BatchReport { public boolean hasSnapshotId() { return ((bitField0_ & 0x00000100) == 0x00000100); } - /** * optional int32 snapshot_id = 8; * @@ -3379,7 +3117,6 @@ public final class BatchReport { public int getSnapshotId() { return snapshotId_; } - /** * optional int32 snapshot_id = 8; * @@ -3393,7 +3130,6 @@ public final class BatchReport { onChanged(); return this; } - /** * optional int32 snapshot_id = 8; * @@ -3408,64 +3144,57 @@ public final class BatchReport { return this; } + // optional string uuid = 9; private java.lang.Object uuid_ = ""; - /** * optional string uuid = 9; */ public boolean hasUuid() { return ((bitField0_ & 0x00000200) == 0x00000200); } - /** * optional string uuid = 9; */ public java.lang.String getUuid() { java.lang.Object ref = uuid_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - uuid_ = s; - } + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + uuid_ = s; return s; } else { return (java.lang.String) ref; } } - /** * optional string uuid = 9; */ public com.google.protobuf.ByteString - getUuidBytes() { + getUuidBytes() { java.lang.Object ref = uuid_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uuid_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - /** * optional string uuid = 9; */ public Builder setUuid( - java.lang.String value) { + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000200; + throw new NullPointerException(); + } + bitField0_ |= 0x00000200; uuid_ = value; onChanged(); return this; } - /** * optional string uuid = 9; */ @@ -3475,16 +3204,15 @@ public final class BatchReport { onChanged(); return this; } - /** * optional string uuid = 9; */ public Builder setUuidBytes( - com.google.protobuf.ByteString value) { + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000200; + throw new NullPointerException(); + } + bitField0_ |= 0x00000200; uuid_ = value; onChanged(); return this; @@ -3501,100 +3229,95 @@ public final class BatchReport { // @@protoc_insertion_point(class_scope:Component) } - public interface IssueOrBuilder extends - // @@protoc_insertion_point(interface_extends:Issue) - com.google.protobuf.MessageOrBuilder { + public interface IssueOrBuilder + extends com.google.protobuf.MessageOrBuilder { + // optional string rule_repository = 1; /** * optional string rule_repository = 1; */ boolean hasRuleRepository(); - /** * optional string rule_repository = 1; */ java.lang.String getRuleRepository(); - /** * optional string rule_repository = 1; */ com.google.protobuf.ByteString - getRuleRepositoryBytes(); + getRuleRepositoryBytes(); + // optional string rule_key = 2; /** * optional string rule_key = 2; */ boolean hasRuleKey(); - /** * optional string rule_key = 2; */ java.lang.String getRuleKey(); - /** * optional string rule_key = 2; */ com.google.protobuf.ByteString - getRuleKeyBytes(); + getRuleKeyBytes(); + // optional int32 line = 3; /** * optional int32 line = 3; */ boolean hasLine(); - /** * optional int32 line = 3; */ int getLine(); + // optional string msg = 4; /** * optional string msg = 4; */ boolean hasMsg(); - /** * optional string msg = 4; */ java.lang.String getMsg(); - /** * optional string msg = 4; */ com.google.protobuf.ByteString - getMsgBytes(); + getMsgBytes(); + // optional .Severity severity = 5; /** * optional .Severity severity = 5; */ boolean hasSeverity(); - /** * optional .Severity severity = 5; */ org.sonar.batch.protocol.Constants.Severity getSeverity(); + // repeated string tag = 6; /** - * repeated string tags = 6; + * repeated string tag = 6; */ - com.google.protobuf.ProtocolStringList - getTagsList(); - + java.util.List + getTagList(); /** - * repeated string tags = 6; + * repeated string tag = 6; */ - int getTagsCount(); - + int getTagCount(); /** - * repeated string tags = 6; + * repeated string tag = 6; */ - java.lang.String getTags(int index); - + java.lang.String getTag(int index); /** - * repeated string tags = 6; + * repeated string tag = 6; */ com.google.protobuf.ByteString - getTagsBytes(int index); + getTagBytes(int index); + // optional double effort_to_fix = 7; /** * optional double effort_to_fix = 7; * @@ -3603,7 +3326,6 @@ public final class BatchReport { * */ boolean hasEffortToFix(); - /** * optional double effort_to_fix = 7; * @@ -3613,251 +3335,241 @@ public final class BatchReport { */ double getEffortToFix(); + // optional bool is_new = 8; /** * optional bool is_new = 8; */ boolean hasIsNew(); - /** * optional bool is_new = 8; */ boolean getIsNew(); + // optional string uuid = 9; /** * optional string uuid = 9; */ boolean hasUuid(); - /** * optional string uuid = 9; */ java.lang.String getUuid(); - /** * optional string uuid = 9; */ com.google.protobuf.ByteString - getUuidBytes(); + getUuidBytes(); + // optional int64 debt_in_minutes = 10; /** * optional int64 debt_in_minutes = 10; */ boolean hasDebtInMinutes(); - /** * optional int64 debt_in_minutes = 10; */ long getDebtInMinutes(); + // optional string resolution = 11; /** * optional string resolution = 11; */ boolean hasResolution(); - /** * optional string resolution = 11; */ java.lang.String getResolution(); - /** * optional string resolution = 11; */ com.google.protobuf.ByteString - getResolutionBytes(); + getResolutionBytes(); + // optional string status = 12; /** * optional string status = 12; */ boolean hasStatus(); - /** * optional string status = 12; */ java.lang.String getStatus(); - /** * optional string status = 12; */ com.google.protobuf.ByteString - getStatusBytes(); + getStatusBytes(); + // optional string checksum = 13; /** * optional string checksum = 13; */ boolean hasChecksum(); - /** * optional string checksum = 13; */ java.lang.String getChecksum(); - /** * optional string checksum = 13; */ com.google.protobuf.ByteString - getChecksumBytes(); + getChecksumBytes(); + // optional bool manual_severity = 14; /** * optional bool manual_severity = 14; */ boolean hasManualSeverity(); - /** * optional bool manual_severity = 14; */ boolean getManualSeverity(); + // optional string reporter = 15; /** * optional string reporter = 15; */ boolean hasReporter(); - /** * optional string reporter = 15; */ java.lang.String getReporter(); - /** * optional string reporter = 15; */ com.google.protobuf.ByteString - getReporterBytes(); + getReporterBytes(); + // optional string assignee = 16; /** * optional string assignee = 16; */ boolean hasAssignee(); - /** * optional string assignee = 16; */ java.lang.String getAssignee(); - /** * optional string assignee = 16; */ com.google.protobuf.ByteString - getAssigneeBytes(); + getAssigneeBytes(); + // optional string action_plan_key = 17; /** * optional string action_plan_key = 17; */ boolean hasActionPlanKey(); - /** * optional string action_plan_key = 17; */ java.lang.String getActionPlanKey(); - /** * optional string action_plan_key = 17; */ com.google.protobuf.ByteString - getActionPlanKeyBytes(); + getActionPlanKeyBytes(); + // optional string attributes = 18; /** * optional string attributes = 18; */ boolean hasAttributes(); - /** * optional string attributes = 18; */ java.lang.String getAttributes(); - /** * optional string attributes = 18; */ com.google.protobuf.ByteString - getAttributesBytes(); + getAttributesBytes(); + // optional string author_login = 19; /** * optional string author_login = 19; */ boolean hasAuthorLogin(); - /** * optional string author_login = 19; */ java.lang.String getAuthorLogin(); - /** * optional string author_login = 19; */ com.google.protobuf.ByteString - getAuthorLoginBytes(); + getAuthorLoginBytes(); + // optional int64 creation_date = 20; /** * optional int64 creation_date = 20; */ boolean hasCreationDate(); - /** * optional int64 creation_date = 20; */ long getCreationDate(); + // optional int64 close_date = 21; /** * optional int64 close_date = 21; */ boolean hasCloseDate(); - /** * optional int64 close_date = 21; */ long getCloseDate(); + // optional int64 update_date = 22; /** * optional int64 update_date = 22; */ boolean hasUpdateDate(); - /** * optional int64 update_date = 22; */ long getUpdateDate(); + // optional int64 selected_at = 23; /** * optional int64 selected_at = 23; */ boolean hasSelectedAt(); - /** * optional int64 selected_at = 23; */ long getSelectedAt(); + // optional string diff_fields = 24; /** * optional string diff_fields = 24; */ boolean hasDiffFields(); - /** * optional string diff_fields = 24; */ java.lang.String getDiffFields(); - /** * optional string diff_fields = 24; */ com.google.protobuf.ByteString - getDiffFieldsBytes(); + getDiffFieldsBytes(); + // optional bool is_changed = 25; /** * optional bool is_changed = 25; */ boolean hasIsChanged(); - /** * optional bool is_changed = 25; */ boolean getIsChanged(); + // optional bool must_send_notification = 26; /** * optional bool must_send_notification = 26; */ boolean hasMustSendNotification(); - /** * optional bool must_send_notification = 26; */ @@ -3867,21 +3579,16 @@ public final class BatchReport { * Protobuf type {@code Issue} */ public static final class Issue extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:Issue) - IssueOrBuilder { + com.google.protobuf.GeneratedMessage + implements IssueOrBuilder { // Use Issue.newBuilder() to construct. private Issue(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } - - private Issue(boolean noInit) { - this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } + private Issue(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final Issue defaultInstance; - public static Issue getDefaultInstance() { return defaultInstance; } @@ -3891,21 +3598,19 @@ public final class BatchReport { } private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + getUnknownFields() { return this.unknownFields; } - private Issue( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); + com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { @@ -3916,21 +3621,19 @@ public final class BatchReport { break; default: { if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { + extensionRegistry, tag)) { done = true; } break; } case 10: { - com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; - ruleRepository_ = bs; + ruleRepository_ = input.readBytes(); break; } case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; - ruleKey_ = bs; + ruleKey_ = input.readBytes(); break; } case 24: { @@ -3939,9 +3642,8 @@ public final class BatchReport { break; } case 34: { - com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000008; - msg_ = bs; + msg_ = input.readBytes(); break; } case 40: { @@ -3956,12 +3658,11 @@ public final class BatchReport { break; } case 50: { - com.google.protobuf.ByteString bs = input.readBytes(); if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { - tags_ = new com.google.protobuf.LazyStringArrayList(); + tag_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000020; } - tags_.add(bs); + tag_.add(input.readBytes()); break; } case 57: { @@ -3975,9 +3676,8 @@ public final class BatchReport { break; } case 74: { - com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000080; - uuid_ = bs; + uuid_ = input.readBytes(); break; } case 80: { @@ -3986,21 +3686,18 @@ public final class BatchReport { break; } case 90: { - com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000200; - resolution_ = bs; + resolution_ = input.readBytes(); break; } case 98: { - com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000400; - status_ = bs; + status_ = input.readBytes(); break; } case 106: { - com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000800; - checksum_ = bs; + checksum_ = input.readBytes(); break; } case 112: { @@ -4009,33 +3706,28 @@ public final class BatchReport { break; } case 122: { - com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00002000; - reporter_ = bs; + reporter_ = input.readBytes(); break; } case 130: { - com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00004000; - assignee_ = bs; + assignee_ = input.readBytes(); break; } case 138: { - com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00008000; - actionPlanKey_ = bs; + actionPlanKey_ = input.readBytes(); break; } case 146: { - com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00010000; - attributes_ = bs; + attributes_ = input.readBytes(); break; } case 154: { - com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00020000; - authorLogin_ = bs; + authorLogin_ = input.readBytes(); break; } case 160: { @@ -4059,9 +3751,8 @@ public final class BatchReport { break; } case 194: { - com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00400000; - diffFields_ = bs; + diffFields_ = input.readBytes(); break; } case 200: { @@ -4080,37 +3771,36 @@ public final class BatchReport { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); + e.getMessage()).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) { - tags_ = tags_.getUnmodifiableView(); + tag_ = new com.google.protobuf.UnmodifiableLazyStringList(tag_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + getDescriptor() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Issue_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { + internalGetFieldAccessorTable() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Issue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.batch.protocol.output.BatchReport.Issue.class, org.sonar.batch.protocol.output.BatchReport.Issue.Builder.class); + .ensureFieldAccessorsInitialized( + org.sonar.batch.protocol.output.BatchReport.Issue.class, org.sonar.batch.protocol.output.BatchReport.Issue.Builder.class); } public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Issue parsePartialFrom( + new com.google.protobuf.AbstractParser() { + public Issue parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Issue(input, extensionRegistry); - } - }; + return new Issue(input, extensionRegistry); + } + }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { @@ -4118,16 +3808,15 @@ public final class BatchReport { } private int bitField0_; + // optional string rule_repository = 1; public static final int RULE_REPOSITORY_FIELD_NUMBER = 1; private java.lang.Object ruleRepository_; - /** * optional string rule_repository = 1; */ public boolean hasRuleRepository() { return ((bitField0_ & 0x00000001) == 0x00000001); } - /** * optional string rule_repository = 1; */ @@ -4136,8 +3825,8 @@ public final class BatchReport { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { ruleRepository_ = s; @@ -4145,17 +3834,16 @@ public final class BatchReport { return s; } } - /** * optional string rule_repository = 1; */ public com.google.protobuf.ByteString - getRuleRepositoryBytes() { + getRuleRepositoryBytes() { java.lang.Object ref = ruleRepository_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); ruleRepository_ = b; return b; } else { @@ -4163,16 +3851,15 @@ public final class BatchReport { } } + // optional string rule_key = 2; public static final int RULE_KEY_FIELD_NUMBER = 2; private java.lang.Object ruleKey_; - /** * optional string rule_key = 2; */ public boolean hasRuleKey() { return ((bitField0_ & 0x00000002) == 0x00000002); } - /** * optional string rule_key = 2; */ @@ -4181,8 +3868,8 @@ public final class BatchReport { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { ruleKey_ = s; @@ -4190,17 +3877,16 @@ public final class BatchReport { return s; } } - /** * optional string rule_key = 2; */ public com.google.protobuf.ByteString - getRuleKeyBytes() { + getRuleKeyBytes() { java.lang.Object ref = ruleKey_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); ruleKey_ = b; return b; } else { @@ -4208,16 +3894,15 @@ public final class BatchReport { } } + // optional int32 line = 3; public static final int LINE_FIELD_NUMBER = 3; private int line_; - /** * optional int32 line = 3; */ public boolean hasLine() { return ((bitField0_ & 0x00000004) == 0x00000004); } - /** * optional int32 line = 3; */ @@ -4225,16 +3910,15 @@ public final class BatchReport { return line_; } + // optional string msg = 4; public static final int MSG_FIELD_NUMBER = 4; private java.lang.Object msg_; - /** * optional string msg = 4; */ public boolean hasMsg() { return ((bitField0_ & 0x00000008) == 0x00000008); } - /** * optional string msg = 4; */ @@ -4243,8 +3927,8 @@ public final class BatchReport { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { msg_ = s; @@ -4252,17 +3936,16 @@ public final class BatchReport { return s; } } - /** * optional string msg = 4; */ public com.google.protobuf.ByteString - getMsgBytes() { + getMsgBytes() { java.lang.Object ref = msg_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); msg_ = b; return b; } else { @@ -4270,16 +3953,15 @@ public final class BatchReport { } } + // optional .Severity severity = 5; public static final int SEVERITY_FIELD_NUMBER = 5; private org.sonar.batch.protocol.Constants.Severity severity_; - /** * optional .Severity severity = 5; */ public boolean hasSeverity() { return ((bitField0_ & 0x00000010) == 0x00000010); } - /** * optional .Severity severity = 5; */ @@ -4287,42 +3969,39 @@ public final class BatchReport { return severity_; } - public static final int TAGS_FIELD_NUMBER = 6; - private com.google.protobuf.LazyStringList tags_; - + // repeated string tag = 6; + public static final int TAG_FIELD_NUMBER = 6; + private com.google.protobuf.LazyStringList tag_; /** - * repeated string tags = 6; + * repeated string tag = 6; */ - public com.google.protobuf.ProtocolStringList - getTagsList() { - return tags_; + public java.util.List + getTagList() { + return tag_; } - /** - * repeated string tags = 6; + * repeated string tag = 6; */ - public int getTagsCount() { - return tags_.size(); + public int getTagCount() { + return tag_.size(); } - /** - * repeated string tags = 6; + * repeated string tag = 6; */ - public java.lang.String getTags(int index) { - return tags_.get(index); + public java.lang.String getTag(int index) { + return tag_.get(index); } - /** - * repeated string tags = 6; + * repeated string tag = 6; */ public com.google.protobuf.ByteString - getTagsBytes(int index) { - return tags_.getByteString(index); + getTagBytes(int index) { + return tag_.getByteString(index); } + // optional double effort_to_fix = 7; public static final int EFFORT_TO_FIX_FIELD_NUMBER = 7; private double effortToFix_; - /** * optional double effort_to_fix = 7; * @@ -4333,7 +4012,6 @@ public final class BatchReport { public boolean hasEffortToFix() { return ((bitField0_ & 0x00000020) == 0x00000020); } - /** * optional double effort_to_fix = 7; * @@ -4345,16 +4023,15 @@ public final class BatchReport { return effortToFix_; } + // optional bool is_new = 8; public static final int IS_NEW_FIELD_NUMBER = 8; private boolean isNew_; - /** * optional bool is_new = 8; */ public boolean hasIsNew() { return ((bitField0_ & 0x00000040) == 0x00000040); } - /** * optional bool is_new = 8; */ @@ -4362,16 +4039,15 @@ public final class BatchReport { return isNew_; } + // optional string uuid = 9; public static final int UUID_FIELD_NUMBER = 9; private java.lang.Object uuid_; - /** * optional string uuid = 9; */ public boolean hasUuid() { return ((bitField0_ & 0x00000080) == 0x00000080); } - /** * optional string uuid = 9; */ @@ -4380,8 +4056,8 @@ public final class BatchReport { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { uuid_ = s; @@ -4389,17 +4065,16 @@ public final class BatchReport { return s; } } - /** * optional string uuid = 9; */ public com.google.protobuf.ByteString - getUuidBytes() { + getUuidBytes() { java.lang.Object ref = uuid_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uuid_ = b; return b; } else { @@ -4407,16 +4082,15 @@ public final class BatchReport { } } + // optional int64 debt_in_minutes = 10; public static final int DEBT_IN_MINUTES_FIELD_NUMBER = 10; private long debtInMinutes_; - /** * optional int64 debt_in_minutes = 10; */ public boolean hasDebtInMinutes() { return ((bitField0_ & 0x00000100) == 0x00000100); } - /** * optional int64 debt_in_minutes = 10; */ @@ -4424,16 +4098,15 @@ public final class BatchReport { return debtInMinutes_; } + // optional string resolution = 11; public static final int RESOLUTION_FIELD_NUMBER = 11; private java.lang.Object resolution_; - /** * optional string resolution = 11; */ public boolean hasResolution() { return ((bitField0_ & 0x00000200) == 0x00000200); } - /** * optional string resolution = 11; */ @@ -4442,8 +4115,8 @@ public final class BatchReport { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { resolution_ = s; @@ -4451,17 +4124,16 @@ public final class BatchReport { return s; } } - /** * optional string resolution = 11; */ public com.google.protobuf.ByteString - getResolutionBytes() { + getResolutionBytes() { java.lang.Object ref = resolution_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resolution_ = b; return b; } else { @@ -4469,16 +4141,15 @@ public final class BatchReport { } } + // optional string status = 12; public static final int STATUS_FIELD_NUMBER = 12; private java.lang.Object status_; - /** * optional string status = 12; */ public boolean hasStatus() { return ((bitField0_ & 0x00000400) == 0x00000400); } - /** * optional string status = 12; */ @@ -4487,8 +4158,8 @@ public final class BatchReport { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { status_ = s; @@ -4496,17 +4167,16 @@ public final class BatchReport { return s; } } - /** * optional string status = 12; */ public com.google.protobuf.ByteString - getStatusBytes() { + getStatusBytes() { java.lang.Object ref = status_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); status_ = b; return b; } else { @@ -4514,16 +4184,15 @@ public final class BatchReport { } } + // optional string checksum = 13; public static final int CHECKSUM_FIELD_NUMBER = 13; private java.lang.Object checksum_; - /** * optional string checksum = 13; */ public boolean hasChecksum() { return ((bitField0_ & 0x00000800) == 0x00000800); } - /** * optional string checksum = 13; */ @@ -4532,8 +4201,8 @@ public final class BatchReport { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { checksum_ = s; @@ -4541,17 +4210,16 @@ public final class BatchReport { return s; } } - /** * optional string checksum = 13; */ public com.google.protobuf.ByteString - getChecksumBytes() { + getChecksumBytes() { java.lang.Object ref = checksum_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); checksum_ = b; return b; } else { @@ -4559,16 +4227,15 @@ public final class BatchReport { } } + // optional bool manual_severity = 14; public static final int MANUAL_SEVERITY_FIELD_NUMBER = 14; private boolean manualSeverity_; - /** * optional bool manual_severity = 14; */ public boolean hasManualSeverity() { return ((bitField0_ & 0x00001000) == 0x00001000); } - /** * optional bool manual_severity = 14; */ @@ -4576,16 +4243,15 @@ public final class BatchReport { return manualSeverity_; } + // optional string reporter = 15; public static final int REPORTER_FIELD_NUMBER = 15; private java.lang.Object reporter_; - /** * optional string reporter = 15; */ public boolean hasReporter() { return ((bitField0_ & 0x00002000) == 0x00002000); } - /** * optional string reporter = 15; */ @@ -4594,8 +4260,8 @@ public final class BatchReport { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { reporter_ = s; @@ -4603,17 +4269,16 @@ public final class BatchReport { return s; } } - /** * optional string reporter = 15; */ public com.google.protobuf.ByteString - getReporterBytes() { + getReporterBytes() { java.lang.Object ref = reporter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); reporter_ = b; return b; } else { @@ -4621,16 +4286,15 @@ public final class BatchReport { } } + // optional string assignee = 16; public static final int ASSIGNEE_FIELD_NUMBER = 16; private java.lang.Object assignee_; - /** * optional string assignee = 16; */ public boolean hasAssignee() { return ((bitField0_ & 0x00004000) == 0x00004000); } - /** * optional string assignee = 16; */ @@ -4639,8 +4303,8 @@ public final class BatchReport { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { assignee_ = s; @@ -4648,17 +4312,16 @@ public final class BatchReport { return s; } } - /** * optional string assignee = 16; */ public com.google.protobuf.ByteString - getAssigneeBytes() { + getAssigneeBytes() { java.lang.Object ref = assignee_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); assignee_ = b; return b; } else { @@ -4666,16 +4329,15 @@ public final class BatchReport { } } + // optional string action_plan_key = 17; public static final int ACTION_PLAN_KEY_FIELD_NUMBER = 17; private java.lang.Object actionPlanKey_; - /** * optional string action_plan_key = 17; */ public boolean hasActionPlanKey() { return ((bitField0_ & 0x00008000) == 0x00008000); } - /** * optional string action_plan_key = 17; */ @@ -4684,8 +4346,8 @@ public final class BatchReport { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { actionPlanKey_ = s; @@ -4693,17 +4355,16 @@ public final class BatchReport { return s; } } - /** * optional string action_plan_key = 17; */ public com.google.protobuf.ByteString - getActionPlanKeyBytes() { + getActionPlanKeyBytes() { java.lang.Object ref = actionPlanKey_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); actionPlanKey_ = b; return b; } else { @@ -4711,16 +4372,15 @@ public final class BatchReport { } } + // optional string attributes = 18; public static final int ATTRIBUTES_FIELD_NUMBER = 18; private java.lang.Object attributes_; - /** * optional string attributes = 18; */ public boolean hasAttributes() { return ((bitField0_ & 0x00010000) == 0x00010000); } - /** * optional string attributes = 18; */ @@ -4729,8 +4389,8 @@ public final class BatchReport { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { attributes_ = s; @@ -4738,17 +4398,16 @@ public final class BatchReport { return s; } } - /** * optional string attributes = 18; */ public com.google.protobuf.ByteString - getAttributesBytes() { + getAttributesBytes() { java.lang.Object ref = attributes_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); attributes_ = b; return b; } else { @@ -4756,16 +4415,15 @@ public final class BatchReport { } } + // optional string author_login = 19; public static final int AUTHOR_LOGIN_FIELD_NUMBER = 19; private java.lang.Object authorLogin_; - /** * optional string author_login = 19; */ public boolean hasAuthorLogin() { return ((bitField0_ & 0x00020000) == 0x00020000); } - /** * optional string author_login = 19; */ @@ -4774,8 +4432,8 @@ public final class BatchReport { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { authorLogin_ = s; @@ -4783,17 +4441,16 @@ public final class BatchReport { return s; } } - /** * optional string author_login = 19; */ public com.google.protobuf.ByteString - getAuthorLoginBytes() { + getAuthorLoginBytes() { java.lang.Object ref = authorLogin_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); authorLogin_ = b; return b; } else { @@ -4801,16 +4458,15 @@ public final class BatchReport { } } + // optional int64 creation_date = 20; public static final int CREATION_DATE_FIELD_NUMBER = 20; private long creationDate_; - /** * optional int64 creation_date = 20; */ public boolean hasCreationDate() { return ((bitField0_ & 0x00040000) == 0x00040000); } - /** * optional int64 creation_date = 20; */ @@ -4818,16 +4474,15 @@ public final class BatchReport { return creationDate_; } + // optional int64 close_date = 21; public static final int CLOSE_DATE_FIELD_NUMBER = 21; private long closeDate_; - /** * optional int64 close_date = 21; */ public boolean hasCloseDate() { return ((bitField0_ & 0x00080000) == 0x00080000); } - /** * optional int64 close_date = 21; */ @@ -4835,16 +4490,15 @@ public final class BatchReport { return closeDate_; } + // optional int64 update_date = 22; public static final int UPDATE_DATE_FIELD_NUMBER = 22; private long updateDate_; - /** * optional int64 update_date = 22; */ public boolean hasUpdateDate() { return ((bitField0_ & 0x00100000) == 0x00100000); } - /** * optional int64 update_date = 22; */ @@ -4852,16 +4506,15 @@ public final class BatchReport { return updateDate_; } + // optional int64 selected_at = 23; public static final int SELECTED_AT_FIELD_NUMBER = 23; private long selectedAt_; - /** * optional int64 selected_at = 23; */ public boolean hasSelectedAt() { return ((bitField0_ & 0x00200000) == 0x00200000); } - /** * optional int64 selected_at = 23; */ @@ -4869,16 +4522,15 @@ public final class BatchReport { return selectedAt_; } + // optional string diff_fields = 24; public static final int DIFF_FIELDS_FIELD_NUMBER = 24; private java.lang.Object diffFields_; - /** * optional string diff_fields = 24; */ public boolean hasDiffFields() { return ((bitField0_ & 0x00400000) == 0x00400000); } - /** * optional string diff_fields = 24; */ @@ -4887,8 +4539,8 @@ public final class BatchReport { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { diffFields_ = s; @@ -4896,17 +4548,16 @@ public final class BatchReport { return s; } } - /** * optional string diff_fields = 24; */ public com.google.protobuf.ByteString - getDiffFieldsBytes() { + getDiffFieldsBytes() { java.lang.Object ref = diffFields_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); diffFields_ = b; return b; } else { @@ -4914,16 +4565,15 @@ public final class BatchReport { } } + // optional bool is_changed = 25; public static final int IS_CHANGED_FIELD_NUMBER = 25; private boolean isChanged_; - /** * optional bool is_changed = 25; */ public boolean hasIsChanged() { return ((bitField0_ & 0x00800000) == 0x00800000); } - /** * optional bool is_changed = 25; */ @@ -4931,16 +4581,15 @@ public final class BatchReport { return isChanged_; } + // optional bool must_send_notification = 26; public static final int MUST_SEND_NOTIFICATION_FIELD_NUMBER = 26; private boolean mustSendNotification_; - /** * optional bool must_send_notification = 26; */ public boolean hasMustSendNotification() { return ((bitField0_ & 0x01000000) == 0x01000000); } - /** * optional bool must_send_notification = 26; */ @@ -4954,7 +4603,7 @@ public final class BatchReport { line_ = 0; msg_ = ""; severity_ = org.sonar.batch.protocol.Constants.Severity.INFO; - tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + tag_ = com.google.protobuf.LazyStringArrayList.EMPTY; effortToFix_ = 0D; isNew_ = false; uuid_ = ""; @@ -4976,22 +4625,17 @@ public final class BatchReport { isChanged_ = false; mustSendNotification_ = false; } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) - return true; - if (isInitialized == 0) - return false; + if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getRuleRepositoryBytes()); @@ -5008,8 +4652,8 @@ public final class BatchReport { if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeEnum(5, severity_.getNumber()); } - for (int i = 0; i < tags_.size(); i++) { - output.writeBytes(6, tags_.getByteString(i)); + for (int i = 0; i < tag_.size(); i++) { + output.writeBytes(6, tag_.getByteString(i)); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeDouble(7, effortToFix_); @@ -5075,11 +4719,9 @@ public final class BatchReport { } private int memoizedSerializedSize = -1; - public int getSerializedSize() { int size = memoizedSerializedSize; - if (size != -1) - return size; + if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { @@ -5104,12 +4746,12 @@ public final class BatchReport { } { int dataSize = 0; - for (int i = 0; i < tags_.size(); i++) { + for (int i = 0; i < tag_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream - .computeBytesSizeNoTag(tags_.getByteString(i)); + .computeBytesSizeNoTag(tag_.getByteString(i)); } size += dataSize; - size += 1 * getTagsList().size(); + size += 1 * getTagList().size(); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream @@ -5197,115 +4839,94 @@ public final class BatchReport { } private static final long serialVersionUID = 0L; - @java.lang.Override protected java.lang.Object writeReplace() - throws java.io.ObjectStreamException { + throws java.io.ObjectStreamException { return super.writeReplace(); } public static org.sonar.batch.protocol.output.BatchReport.Issue parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.sonar.batch.protocol.output.BatchReport.Issue parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.sonar.batch.protocol.output.BatchReport.Issue parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.sonar.batch.protocol.output.BatchReport.Issue parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.sonar.batch.protocol.output.BatchReport.Issue parseFrom(java.io.InputStream input) - throws java.io.IOException { + throws java.io.IOException { return PARSER.parseFrom(input); } - public static org.sonar.batch.protocol.output.BatchReport.Issue parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } - public static org.sonar.batch.protocol.output.BatchReport.Issue parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { + throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } - public static org.sonar.batch.protocol.output.BatchReport.Issue parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } - public static org.sonar.batch.protocol.output.BatchReport.Issue parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { return PARSER.parseFrom(input); } - public static org.sonar.batch.protocol.output.BatchReport.Issue parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } - public static Builder newBuilder() { - return Builder.create(); - } - - public Builder newBuilderForType() { - return newBuilder(); - } - + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(org.sonar.batch.protocol.output.BatchReport.Issue prototype) { return newBuilder().mergeFrom(prototype); } - - public Builder toBuilder() { - return newBuilder(this); - } + public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** * Protobuf type {@code Issue} */ public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:Issue) - org.sonar.batch.protocol.output.BatchReport.IssueOrBuilder { + com.google.protobuf.GeneratedMessage.Builder + implements org.sonar.batch.protocol.output.BatchReport.IssueOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + getDescriptor() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Issue_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { + internalGetFieldAccessorTable() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Issue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.batch.protocol.output.BatchReport.Issue.class, org.sonar.batch.protocol.output.BatchReport.Issue.Builder.class); + .ensureFieldAccessorsInitialized( + org.sonar.batch.protocol.output.BatchReport.Issue.class, org.sonar.batch.protocol.output.BatchReport.Issue.Builder.class); } // Construct using org.sonar.batch.protocol.output.BatchReport.Issue.newBuilder() @@ -5314,16 +4935,14 @@ public final class BatchReport { } private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } - private static Builder create() { return new Builder(); } @@ -5340,7 +4959,7 @@ public final class BatchReport { bitField0_ = (bitField0_ & ~0x00000008); severity_ = org.sonar.batch.protocol.Constants.Severity.INFO; bitField0_ = (bitField0_ & ~0x00000010); - tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + tag_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000020); effortToFix_ = 0D; bitField0_ = (bitField0_ & ~0x00000040); @@ -5390,7 +5009,7 @@ public final class BatchReport { } public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { + getDescriptorForType() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Issue_descriptor; } @@ -5431,10 +5050,11 @@ public final class BatchReport { } result.severity_ = severity_; if (((bitField0_ & 0x00000020) == 0x00000020)) { - tags_ = tags_.getUnmodifiableView(); + tag_ = new com.google.protobuf.UnmodifiableLazyStringList( + tag_); bitField0_ = (bitField0_ & ~0x00000020); } - result.tags_ = tags_; + result.tag_ = tag_; if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000020; } @@ -5522,7 +5142,7 @@ public final class BatchReport { public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.sonar.batch.protocol.output.BatchReport.Issue) { - return mergeFrom((org.sonar.batch.protocol.output.BatchReport.Issue) other); + return mergeFrom((org.sonar.batch.protocol.output.BatchReport.Issue)other); } else { super.mergeFrom(other); return this; @@ -5530,8 +5150,7 @@ public final class BatchReport { } public Builder mergeFrom(org.sonar.batch.protocol.output.BatchReport.Issue other) { - if (other == org.sonar.batch.protocol.output.BatchReport.Issue.getDefaultInstance()) - return this; + if (other == org.sonar.batch.protocol.output.BatchReport.Issue.getDefaultInstance()) return this; if (other.hasRuleRepository()) { bitField0_ |= 0x00000001; ruleRepository_ = other.ruleRepository_; @@ -5553,13 +5172,13 @@ public final class BatchReport { if (other.hasSeverity()) { setSeverity(other.getSeverity()); } - if (!other.tags_.isEmpty()) { - if (tags_.isEmpty()) { - tags_ = other.tags_; + if (!other.tag_.isEmpty()) { + if (tag_.isEmpty()) { + tag_ = other.tag_; bitField0_ = (bitField0_ & ~0x00000020); } else { - ensureTagsIsMutable(); - tags_.addAll(other.tags_); + ensureTagIsMutable(); + tag_.addAll(other.tag_); } onChanged(); } @@ -5652,9 +5271,9 @@ public final class BatchReport { } public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { org.sonar.batch.protocol.output.BatchReport.Issue parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); @@ -5668,67 +5287,59 @@ public final class BatchReport { } return this; } - private int bitField0_; + // optional string rule_repository = 1; private java.lang.Object ruleRepository_ = ""; - /** * optional string rule_repository = 1; */ public boolean hasRuleRepository() { return ((bitField0_ & 0x00000001) == 0x00000001); } - /** * optional string rule_repository = 1; */ public java.lang.String getRuleRepository() { java.lang.Object ref = ruleRepository_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - ruleRepository_ = s; - } + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + ruleRepository_ = s; return s; } else { return (java.lang.String) ref; } } - /** * optional string rule_repository = 1; */ public com.google.protobuf.ByteString - getRuleRepositoryBytes() { + getRuleRepositoryBytes() { java.lang.Object ref = ruleRepository_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); ruleRepository_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - /** * optional string rule_repository = 1; */ public Builder setRuleRepository( - java.lang.String value) { + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; ruleRepository_ = value; onChanged(); return this; } - /** * optional string rule_repository = 1; */ @@ -5738,79 +5349,71 @@ public final class BatchReport { onChanged(); return this; } - /** * optional string rule_repository = 1; */ public Builder setRuleRepositoryBytes( - com.google.protobuf.ByteString value) { + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; ruleRepository_ = value; onChanged(); return this; } + // optional string rule_key = 2; private java.lang.Object ruleKey_ = ""; - /** * optional string rule_key = 2; */ public boolean hasRuleKey() { return ((bitField0_ & 0x00000002) == 0x00000002); } - /** * optional string rule_key = 2; */ public java.lang.String getRuleKey() { java.lang.Object ref = ruleKey_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - ruleKey_ = s; - } + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + ruleKey_ = s; return s; } else { return (java.lang.String) ref; } } - /** * optional string rule_key = 2; */ public com.google.protobuf.ByteString - getRuleKeyBytes() { + getRuleKeyBytes() { java.lang.Object ref = ruleKey_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); ruleKey_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - /** * optional string rule_key = 2; */ public Builder setRuleKey( - java.lang.String value) { + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; ruleKey_ = value; onChanged(); return this; } - /** * optional string rule_key = 2; */ @@ -5820,37 +5423,34 @@ public final class BatchReport { onChanged(); return this; } - /** * optional string rule_key = 2; */ public Builder setRuleKeyBytes( - com.google.protobuf.ByteString value) { + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; ruleKey_ = value; onChanged(); return this; } - private int line_; - + // optional int32 line = 3; + private int line_ ; /** * optional int32 line = 3; */ public boolean hasLine() { return ((bitField0_ & 0x00000004) == 0x00000004); } - /** * optional int32 line = 3; */ public int getLine() { return line_; } - /** * optional int32 line = 3; */ @@ -5860,7 +5460,6 @@ public final class BatchReport { onChanged(); return this; } - /** * optional int32 line = 3; */ @@ -5871,64 +5470,57 @@ public final class BatchReport { return this; } + // optional string msg = 4; private java.lang.Object msg_ = ""; - /** * optional string msg = 4; */ public boolean hasMsg() { return ((bitField0_ & 0x00000008) == 0x00000008); } - /** * optional string msg = 4; */ public java.lang.String getMsg() { java.lang.Object ref = msg_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - msg_ = s; - } + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + msg_ = s; return s; } else { return (java.lang.String) ref; } } - /** * optional string msg = 4; */ public com.google.protobuf.ByteString - getMsgBytes() { + getMsgBytes() { java.lang.Object ref = msg_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); msg_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - /** * optional string msg = 4; */ public Builder setMsg( - java.lang.String value) { + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; msg_ = value; onChanged(); return this; } - /** * optional string msg = 4; */ @@ -5938,37 +5530,34 @@ public final class BatchReport { onChanged(); return this; } - /** * optional string msg = 4; */ public Builder setMsgBytes( - com.google.protobuf.ByteString value) { + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; msg_ = value; onChanged(); return this; } + // optional .Severity severity = 5; private org.sonar.batch.protocol.Constants.Severity severity_ = org.sonar.batch.protocol.Constants.Severity.INFO; - /** * optional .Severity severity = 5; */ public boolean hasSeverity() { return ((bitField0_ & 0x00000010) == 0x00000010); } - /** * optional .Severity severity = 5; */ public org.sonar.batch.protocol.Constants.Severity getSeverity() { return severity_; } - /** * optional .Severity severity = 5; */ @@ -5981,7 +5570,6 @@ public final class BatchReport { onChanged(); return this; } - /** * optional .Severity severity = 5; */ @@ -5992,111 +5580,101 @@ public final class BatchReport { return this; } - private com.google.protobuf.LazyStringList tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureTagsIsMutable() { + // repeated string tag = 6; + private com.google.protobuf.LazyStringList tag_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureTagIsMutable() { if (!((bitField0_ & 0x00000020) == 0x00000020)) { - tags_ = new com.google.protobuf.LazyStringArrayList(tags_); + tag_ = new com.google.protobuf.LazyStringArrayList(tag_); bitField0_ |= 0x00000020; - } + } } - /** - * repeated string tags = 6; + * repeated string tag = 6; */ - public com.google.protobuf.ProtocolStringList - getTagsList() { - return tags_.getUnmodifiableView(); + public java.util.List + getTagList() { + return java.util.Collections.unmodifiableList(tag_); } - /** - * repeated string tags = 6; + * repeated string tag = 6; */ - public int getTagsCount() { - return tags_.size(); + public int getTagCount() { + return tag_.size(); } - /** - * repeated string tags = 6; + * repeated string tag = 6; */ - public java.lang.String getTags(int index) { - return tags_.get(index); + public java.lang.String getTag(int index) { + return tag_.get(index); } - /** - * repeated string tags = 6; + * repeated string tag = 6; */ public com.google.protobuf.ByteString - getTagsBytes(int index) { - return tags_.getByteString(index); + getTagBytes(int index) { + return tag_.getByteString(index); } - /** - * repeated string tags = 6; + * repeated string tag = 6; */ - public Builder setTags( - int index, java.lang.String value) { + public Builder setTag( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureTagsIsMutable(); - tags_.set(index, value); + throw new NullPointerException(); + } + ensureTagIsMutable(); + tag_.set(index, value); onChanged(); return this; } - /** - * repeated string tags = 6; + * repeated string tag = 6; */ - public Builder addTags( - java.lang.String value) { + public Builder addTag( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureTagsIsMutable(); - tags_.add(value); + throw new NullPointerException(); + } + ensureTagIsMutable(); + tag_.add(value); onChanged(); return this; } - /** - * repeated string tags = 6; + * repeated string tag = 6; */ - public Builder addAllTags( - java.lang.Iterable values) { - ensureTagsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, tags_); + public Builder addAllTag( + java.lang.Iterable values) { + ensureTagIsMutable(); + super.addAll(values, tag_); onChanged(); return this; } - /** - * repeated string tags = 6; + * repeated string tag = 6; */ - public Builder clearTags() { - tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + public Builder clearTag() { + tag_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } - /** - * repeated string tags = 6; + * repeated string tag = 6; */ - public Builder addTagsBytes( - com.google.protobuf.ByteString value) { + public Builder addTagBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - ensureTagsIsMutable(); - tags_.add(value); + throw new NullPointerException(); + } + ensureTagIsMutable(); + tag_.add(value); onChanged(); return this; } - private double effortToFix_; - + // optional double effort_to_fix = 7; + private double effortToFix_ ; /** * optional double effort_to_fix = 7; * @@ -6107,7 +5685,6 @@ public final class BatchReport { public boolean hasEffortToFix() { return ((bitField0_ & 0x00000040) == 0x00000040); } - /** * optional double effort_to_fix = 7; * @@ -6118,7 +5695,6 @@ public final class BatchReport { public double getEffortToFix() { return effortToFix_; } - /** * optional double effort_to_fix = 7; * @@ -6132,7 +5708,6 @@ public final class BatchReport { onChanged(); return this; } - /** * optional double effort_to_fix = 7; * @@ -6147,22 +5722,20 @@ public final class BatchReport { return this; } - private boolean isNew_; - + // optional bool is_new = 8; + private boolean isNew_ ; /** * optional bool is_new = 8; */ public boolean hasIsNew() { return ((bitField0_ & 0x00000080) == 0x00000080); } - /** * optional bool is_new = 8; */ public boolean getIsNew() { return isNew_; } - /** * optional bool is_new = 8; */ @@ -6172,7 +5745,6 @@ public final class BatchReport { onChanged(); return this; } - /** * optional bool is_new = 8; */ @@ -6183,64 +5755,57 @@ public final class BatchReport { return this; } + // optional string uuid = 9; private java.lang.Object uuid_ = ""; - /** * optional string uuid = 9; */ public boolean hasUuid() { return ((bitField0_ & 0x00000100) == 0x00000100); } - /** * optional string uuid = 9; */ public java.lang.String getUuid() { java.lang.Object ref = uuid_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - uuid_ = s; - } + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + uuid_ = s; return s; } else { return (java.lang.String) ref; } } - /** * optional string uuid = 9; */ public com.google.protobuf.ByteString - getUuidBytes() { + getUuidBytes() { java.lang.Object ref = uuid_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uuid_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - /** * optional string uuid = 9; */ public Builder setUuid( - java.lang.String value) { + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000100; + throw new NullPointerException(); + } + bitField0_ |= 0x00000100; uuid_ = value; onChanged(); return this; } - /** * optional string uuid = 9; */ @@ -6250,37 +5815,34 @@ public final class BatchReport { onChanged(); return this; } - /** * optional string uuid = 9; */ public Builder setUuidBytes( - com.google.protobuf.ByteString value) { + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000100; + throw new NullPointerException(); + } + bitField0_ |= 0x00000100; uuid_ = value; onChanged(); return this; } - private long debtInMinutes_; - + // optional int64 debt_in_minutes = 10; + private long debtInMinutes_ ; /** * optional int64 debt_in_minutes = 10; */ public boolean hasDebtInMinutes() { return ((bitField0_ & 0x00000200) == 0x00000200); } - /** * optional int64 debt_in_minutes = 10; */ public long getDebtInMinutes() { return debtInMinutes_; } - /** * optional int64 debt_in_minutes = 10; */ @@ -6290,7 +5852,6 @@ public final class BatchReport { onChanged(); return this; } - /** * optional int64 debt_in_minutes = 10; */ @@ -6301,64 +5862,57 @@ public final class BatchReport { return this; } + // optional string resolution = 11; private java.lang.Object resolution_ = ""; - /** * optional string resolution = 11; */ public boolean hasResolution() { return ((bitField0_ & 0x00000400) == 0x00000400); } - /** * optional string resolution = 11; */ public java.lang.String getResolution() { java.lang.Object ref = resolution_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - resolution_ = s; - } + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + resolution_ = s; return s; } else { return (java.lang.String) ref; } } - /** * optional string resolution = 11; */ public com.google.protobuf.ByteString - getResolutionBytes() { + getResolutionBytes() { java.lang.Object ref = resolution_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resolution_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - /** * optional string resolution = 11; */ public Builder setResolution( - java.lang.String value) { + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000400; + throw new NullPointerException(); + } + bitField0_ |= 0x00000400; resolution_ = value; onChanged(); return this; } - /** * optional string resolution = 11; */ @@ -6368,79 +5922,71 @@ public final class BatchReport { onChanged(); return this; } - /** * optional string resolution = 11; */ public Builder setResolutionBytes( - com.google.protobuf.ByteString value) { + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000400; + throw new NullPointerException(); + } + bitField0_ |= 0x00000400; resolution_ = value; onChanged(); return this; } + // optional string status = 12; private java.lang.Object status_ = ""; - /** * optional string status = 12; */ public boolean hasStatus() { return ((bitField0_ & 0x00000800) == 0x00000800); } - /** * optional string status = 12; */ public java.lang.String getStatus() { java.lang.Object ref = status_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - status_ = s; - } + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + status_ = s; return s; } else { return (java.lang.String) ref; } } - /** * optional string status = 12; */ public com.google.protobuf.ByteString - getStatusBytes() { + getStatusBytes() { java.lang.Object ref = status_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); status_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - /** * optional string status = 12; */ public Builder setStatus( - java.lang.String value) { + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000800; + throw new NullPointerException(); + } + bitField0_ |= 0x00000800; status_ = value; onChanged(); return this; } - /** * optional string status = 12; */ @@ -6450,79 +5996,71 @@ public final class BatchReport { onChanged(); return this; } - /** * optional string status = 12; */ public Builder setStatusBytes( - com.google.protobuf.ByteString value) { + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000800; + throw new NullPointerException(); + } + bitField0_ |= 0x00000800; status_ = value; onChanged(); return this; } + // optional string checksum = 13; private java.lang.Object checksum_ = ""; - /** * optional string checksum = 13; */ public boolean hasChecksum() { return ((bitField0_ & 0x00001000) == 0x00001000); } - /** * optional string checksum = 13; */ public java.lang.String getChecksum() { java.lang.Object ref = checksum_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - checksum_ = s; - } + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + checksum_ = s; return s; } else { return (java.lang.String) ref; } } - /** * optional string checksum = 13; */ public com.google.protobuf.ByteString - getChecksumBytes() { + getChecksumBytes() { java.lang.Object ref = checksum_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); checksum_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - /** * optional string checksum = 13; */ public Builder setChecksum( - java.lang.String value) { + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00001000; + throw new NullPointerException(); + } + bitField0_ |= 0x00001000; checksum_ = value; onChanged(); return this; } - /** * optional string checksum = 13; */ @@ -6532,37 +6070,34 @@ public final class BatchReport { onChanged(); return this; } - /** * optional string checksum = 13; */ public Builder setChecksumBytes( - com.google.protobuf.ByteString value) { + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00001000; + throw new NullPointerException(); + } + bitField0_ |= 0x00001000; checksum_ = value; onChanged(); return this; } - private boolean manualSeverity_; - + // optional bool manual_severity = 14; + private boolean manualSeverity_ ; /** * optional bool manual_severity = 14; */ public boolean hasManualSeverity() { return ((bitField0_ & 0x00002000) == 0x00002000); } - /** * optional bool manual_severity = 14; */ public boolean getManualSeverity() { return manualSeverity_; } - /** * optional bool manual_severity = 14; */ @@ -6572,7 +6107,6 @@ public final class BatchReport { onChanged(); return this; } - /** * optional bool manual_severity = 14; */ @@ -6583,64 +6117,57 @@ public final class BatchReport { return this; } + // optional string reporter = 15; private java.lang.Object reporter_ = ""; - /** * optional string reporter = 15; */ public boolean hasReporter() { return ((bitField0_ & 0x00004000) == 0x00004000); } - /** * optional string reporter = 15; */ public java.lang.String getReporter() { java.lang.Object ref = reporter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - reporter_ = s; - } + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + reporter_ = s; return s; } else { return (java.lang.String) ref; } } - /** * optional string reporter = 15; */ public com.google.protobuf.ByteString - getReporterBytes() { + getReporterBytes() { java.lang.Object ref = reporter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); reporter_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - /** * optional string reporter = 15; */ public Builder setReporter( - java.lang.String value) { + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00004000; + throw new NullPointerException(); + } + bitField0_ |= 0x00004000; reporter_ = value; onChanged(); return this; } - /** * optional string reporter = 15; */ @@ -6650,79 +6177,71 @@ public final class BatchReport { onChanged(); return this; } - /** * optional string reporter = 15; */ public Builder setReporterBytes( - com.google.protobuf.ByteString value) { + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00004000; + throw new NullPointerException(); + } + bitField0_ |= 0x00004000; reporter_ = value; onChanged(); return this; } + // optional string assignee = 16; private java.lang.Object assignee_ = ""; - /** * optional string assignee = 16; */ public boolean hasAssignee() { return ((bitField0_ & 0x00008000) == 0x00008000); } - /** * optional string assignee = 16; */ public java.lang.String getAssignee() { java.lang.Object ref = assignee_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - assignee_ = s; - } + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + assignee_ = s; return s; } else { return (java.lang.String) ref; } } - /** * optional string assignee = 16; */ public com.google.protobuf.ByteString - getAssigneeBytes() { + getAssigneeBytes() { java.lang.Object ref = assignee_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); assignee_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - /** * optional string assignee = 16; */ public Builder setAssignee( - java.lang.String value) { + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00008000; + throw new NullPointerException(); + } + bitField0_ |= 0x00008000; assignee_ = value; onChanged(); return this; } - /** * optional string assignee = 16; */ @@ -6732,79 +6251,71 @@ public final class BatchReport { onChanged(); return this; } - /** * optional string assignee = 16; */ public Builder setAssigneeBytes( - com.google.protobuf.ByteString value) { + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00008000; + throw new NullPointerException(); + } + bitField0_ |= 0x00008000; assignee_ = value; onChanged(); return this; } + // optional string action_plan_key = 17; private java.lang.Object actionPlanKey_ = ""; - /** * optional string action_plan_key = 17; */ public boolean hasActionPlanKey() { return ((bitField0_ & 0x00010000) == 0x00010000); } - /** * optional string action_plan_key = 17; */ public java.lang.String getActionPlanKey() { java.lang.Object ref = actionPlanKey_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - actionPlanKey_ = s; - } + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + actionPlanKey_ = s; return s; } else { return (java.lang.String) ref; } } - /** * optional string action_plan_key = 17; */ public com.google.protobuf.ByteString - getActionPlanKeyBytes() { + getActionPlanKeyBytes() { java.lang.Object ref = actionPlanKey_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); actionPlanKey_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - /** * optional string action_plan_key = 17; */ public Builder setActionPlanKey( - java.lang.String value) { + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00010000; + throw new NullPointerException(); + } + bitField0_ |= 0x00010000; actionPlanKey_ = value; onChanged(); return this; } - /** * optional string action_plan_key = 17; */ @@ -6814,79 +6325,71 @@ public final class BatchReport { onChanged(); return this; } - /** * optional string action_plan_key = 17; */ public Builder setActionPlanKeyBytes( - com.google.protobuf.ByteString value) { + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00010000; + throw new NullPointerException(); + } + bitField0_ |= 0x00010000; actionPlanKey_ = value; onChanged(); return this; } + // optional string attributes = 18; private java.lang.Object attributes_ = ""; - /** * optional string attributes = 18; */ public boolean hasAttributes() { return ((bitField0_ & 0x00020000) == 0x00020000); } - /** * optional string attributes = 18; */ public java.lang.String getAttributes() { java.lang.Object ref = attributes_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - attributes_ = s; - } + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + attributes_ = s; return s; } else { return (java.lang.String) ref; } } - /** * optional string attributes = 18; */ public com.google.protobuf.ByteString - getAttributesBytes() { + getAttributesBytes() { java.lang.Object ref = attributes_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); attributes_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - /** * optional string attributes = 18; */ public Builder setAttributes( - java.lang.String value) { + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00020000; + throw new NullPointerException(); + } + bitField0_ |= 0x00020000; attributes_ = value; onChanged(); return this; } - /** * optional string attributes = 18; */ @@ -6896,79 +6399,71 @@ public final class BatchReport { onChanged(); return this; } - /** * optional string attributes = 18; */ public Builder setAttributesBytes( - com.google.protobuf.ByteString value) { + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00020000; + throw new NullPointerException(); + } + bitField0_ |= 0x00020000; attributes_ = value; onChanged(); return this; } + // optional string author_login = 19; private java.lang.Object authorLogin_ = ""; - /** * optional string author_login = 19; */ public boolean hasAuthorLogin() { return ((bitField0_ & 0x00040000) == 0x00040000); } - /** * optional string author_login = 19; */ public java.lang.String getAuthorLogin() { java.lang.Object ref = authorLogin_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - authorLogin_ = s; - } + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + authorLogin_ = s; return s; } else { return (java.lang.String) ref; } } - /** * optional string author_login = 19; */ public com.google.protobuf.ByteString - getAuthorLoginBytes() { + getAuthorLoginBytes() { java.lang.Object ref = authorLogin_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); authorLogin_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - /** * optional string author_login = 19; */ public Builder setAuthorLogin( - java.lang.String value) { + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00040000; + throw new NullPointerException(); + } + bitField0_ |= 0x00040000; authorLogin_ = value; onChanged(); return this; } - /** * optional string author_login = 19; */ @@ -6978,37 +6473,34 @@ public final class BatchReport { onChanged(); return this; } - /** * optional string author_login = 19; */ public Builder setAuthorLoginBytes( - com.google.protobuf.ByteString value) { + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00040000; + throw new NullPointerException(); + } + bitField0_ |= 0x00040000; authorLogin_ = value; onChanged(); return this; } - private long creationDate_; - + // optional int64 creation_date = 20; + private long creationDate_ ; /** * optional int64 creation_date = 20; */ public boolean hasCreationDate() { return ((bitField0_ & 0x00080000) == 0x00080000); } - /** * optional int64 creation_date = 20; */ public long getCreationDate() { return creationDate_; } - /** * optional int64 creation_date = 20; */ @@ -7018,7 +6510,6 @@ public final class BatchReport { onChanged(); return this; } - /** * optional int64 creation_date = 20; */ @@ -7029,22 +6520,20 @@ public final class BatchReport { return this; } - private long closeDate_; - + // optional int64 close_date = 21; + private long closeDate_ ; /** * optional int64 close_date = 21; */ public boolean hasCloseDate() { return ((bitField0_ & 0x00100000) == 0x00100000); } - /** * optional int64 close_date = 21; */ public long getCloseDate() { return closeDate_; } - /** * optional int64 close_date = 21; */ @@ -7054,7 +6543,6 @@ public final class BatchReport { onChanged(); return this; } - /** * optional int64 close_date = 21; */ @@ -7065,22 +6553,20 @@ public final class BatchReport { return this; } - private long updateDate_; - + // optional int64 update_date = 22; + private long updateDate_ ; /** * optional int64 update_date = 22; */ public boolean hasUpdateDate() { return ((bitField0_ & 0x00200000) == 0x00200000); } - /** * optional int64 update_date = 22; */ public long getUpdateDate() { return updateDate_; } - /** * optional int64 update_date = 22; */ @@ -7090,7 +6576,6 @@ public final class BatchReport { onChanged(); return this; } - /** * optional int64 update_date = 22; */ @@ -7101,22 +6586,20 @@ public final class BatchReport { return this; } - private long selectedAt_; - + // optional int64 selected_at = 23; + private long selectedAt_ ; /** * optional int64 selected_at = 23; */ public boolean hasSelectedAt() { return ((bitField0_ & 0x00400000) == 0x00400000); } - /** * optional int64 selected_at = 23; */ public long getSelectedAt() { return selectedAt_; } - /** * optional int64 selected_at = 23; */ @@ -7126,7 +6609,6 @@ public final class BatchReport { onChanged(); return this; } - /** * optional int64 selected_at = 23; */ @@ -7137,64 +6619,57 @@ public final class BatchReport { return this; } + // optional string diff_fields = 24; private java.lang.Object diffFields_ = ""; - /** * optional string diff_fields = 24; */ public boolean hasDiffFields() { return ((bitField0_ & 0x00800000) == 0x00800000); } - /** * optional string diff_fields = 24; */ public java.lang.String getDiffFields() { java.lang.Object ref = diffFields_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - diffFields_ = s; - } + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + diffFields_ = s; return s; } else { return (java.lang.String) ref; } } - /** * optional string diff_fields = 24; */ public com.google.protobuf.ByteString - getDiffFieldsBytes() { + getDiffFieldsBytes() { java.lang.Object ref = diffFields_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); diffFields_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - /** * optional string diff_fields = 24; */ public Builder setDiffFields( - java.lang.String value) { + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00800000; + throw new NullPointerException(); + } + bitField0_ |= 0x00800000; diffFields_ = value; onChanged(); return this; } - /** * optional string diff_fields = 24; */ @@ -7204,37 +6679,34 @@ public final class BatchReport { onChanged(); return this; } - /** * optional string diff_fields = 24; */ public Builder setDiffFieldsBytes( - com.google.protobuf.ByteString value) { + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00800000; + throw new NullPointerException(); + } + bitField0_ |= 0x00800000; diffFields_ = value; onChanged(); return this; } - private boolean isChanged_; - + // optional bool is_changed = 25; + private boolean isChanged_ ; /** * optional bool is_changed = 25; */ public boolean hasIsChanged() { return ((bitField0_ & 0x01000000) == 0x01000000); } - /** * optional bool is_changed = 25; */ public boolean getIsChanged() { return isChanged_; } - /** * optional bool is_changed = 25; */ @@ -7244,7 +6716,6 @@ public final class BatchReport { onChanged(); return this; } - /** * optional bool is_changed = 25; */ @@ -7255,22 +6726,20 @@ public final class BatchReport { return this; } - private boolean mustSendNotification_; - + // optional bool must_send_notification = 26; + private boolean mustSendNotification_ ; /** * optional bool must_send_notification = 26; */ public boolean hasMustSendNotification() { return ((bitField0_ & 0x02000000) == 0x02000000); } - /** * optional bool must_send_notification = 26; */ public boolean getMustSendNotification() { return mustSendNotification_; } - /** * optional bool must_send_notification = 26; */ @@ -7280,7 +6749,6 @@ public final class BatchReport { onChanged(); return this; } - /** * optional bool must_send_notification = 26; */ @@ -7302,48 +6770,45 @@ public final class BatchReport { // @@protoc_insertion_point(class_scope:Issue) } - public interface IssuesOrBuilder extends - // @@protoc_insertion_point(interface_extends:Issues) - com.google.protobuf.MessageOrBuilder { + public interface IssuesOrBuilder + extends com.google.protobuf.MessageOrBuilder { + // optional int32 component_ref = 1; /** * optional int32 component_ref = 1; */ boolean hasComponentRef(); - /** * optional int32 component_ref = 1; */ int getComponentRef(); + // repeated .Issue issue = 2; /** - * repeated .Issue list = 2; + * repeated .Issue issue = 2; */ - java.util.List - getListList(); - + java.util.List + getIssueList(); /** - * repeated .Issue list = 2; + * repeated .Issue issue = 2; */ - org.sonar.batch.protocol.output.BatchReport.Issue getList(int index); - + org.sonar.batch.protocol.output.BatchReport.Issue getIssue(int index); /** - * repeated .Issue list = 2; + * repeated .Issue issue = 2; */ - int getListCount(); - + int getIssueCount(); /** - * repeated .Issue list = 2; + * repeated .Issue issue = 2; */ - java.util.List - getListOrBuilderList(); - + java.util.List + getIssueOrBuilderList(); /** - * repeated .Issue list = 2; + * repeated .Issue issue = 2; */ - org.sonar.batch.protocol.output.BatchReport.IssueOrBuilder getListOrBuilder( - int index); + org.sonar.batch.protocol.output.BatchReport.IssueOrBuilder getIssueOrBuilder( + int index); + // optional string component_uuid = 3; /** * optional string component_uuid = 3; * @@ -7352,7 +6817,6 @@ public final class BatchReport { * */ boolean hasComponentUuid(); - /** * optional string component_uuid = 3; * @@ -7361,7 +6825,6 @@ public final class BatchReport { * */ java.lang.String getComponentUuid(); - /** * optional string component_uuid = 3; * @@ -7370,27 +6833,22 @@ public final class BatchReport { * */ com.google.protobuf.ByteString - getComponentUuidBytes(); + getComponentUuidBytes(); } /** * Protobuf type {@code Issues} */ public static final class Issues extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:Issues) - IssuesOrBuilder { + com.google.protobuf.GeneratedMessage + implements IssuesOrBuilder { // Use Issues.newBuilder() to construct. private Issues(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } - - private Issues(boolean noInit) { - this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } + private Issues(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final Issues defaultInstance; - public static Issues getDefaultInstance() { return defaultInstance; } @@ -7400,21 +6858,19 @@ public final class BatchReport { } private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + getUnknownFields() { return this.unknownFields; } - private Issues( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); + com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { @@ -7425,7 +6881,7 @@ public final class BatchReport { break; default: { if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { + extensionRegistry, tag)) { done = true; } break; @@ -7437,16 +6893,15 @@ public final class BatchReport { } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - list_ = new java.util.ArrayList(); + issue_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } - list_.add(input.readMessage(org.sonar.batch.protocol.output.BatchReport.Issue.PARSER, extensionRegistry)); + issue_.add(input.readMessage(org.sonar.batch.protocol.output.BatchReport.Issue.PARSER, extensionRegistry)); break; } case 26: { - com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; - componentUuid_ = bs; + componentUuid_ = input.readBytes(); break; } } @@ -7455,37 +6910,36 @@ public final class BatchReport { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); + e.getMessage()).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - list_ = java.util.Collections.unmodifiableList(list_); + issue_ = java.util.Collections.unmodifiableList(issue_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + getDescriptor() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Issues_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { + internalGetFieldAccessorTable() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Issues_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.batch.protocol.output.BatchReport.Issues.class, org.sonar.batch.protocol.output.BatchReport.Issues.Builder.class); + .ensureFieldAccessorsInitialized( + org.sonar.batch.protocol.output.BatchReport.Issues.class, org.sonar.batch.protocol.output.BatchReport.Issues.Builder.class); } public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Issues parsePartialFrom( + new com.google.protobuf.AbstractParser() { + public Issues parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Issues(input, extensionRegistry); - } - }; + return new Issues(input, extensionRegistry); + } + }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { @@ -7493,16 +6947,15 @@ public final class BatchReport { } private int bitField0_; + // optional int32 component_ref = 1; public static final int COMPONENT_REF_FIELD_NUMBER = 1; private int componentRef_; - /** * optional int32 component_ref = 1; */ public boolean hasComponentRef() { return ((bitField0_ & 0x00000001) == 0x00000001); } - /** * optional int32 component_ref = 1; */ @@ -7510,49 +6963,45 @@ public final class BatchReport { return componentRef_; } - public static final int LIST_FIELD_NUMBER = 2; - private java.util.List list_; - + // repeated .Issue issue = 2; + public static final int ISSUE_FIELD_NUMBER = 2; + private java.util.List issue_; /** - * repeated .Issue list = 2; + * repeated .Issue issue = 2; */ - public java.util.List getListList() { - return list_; + public java.util.List getIssueList() { + return issue_; } - /** - * repeated .Issue list = 2; + * repeated .Issue issue = 2; */ - public java.util.List - getListOrBuilderList() { - return list_; + public java.util.List + getIssueOrBuilderList() { + return issue_; } - /** - * repeated .Issue list = 2; + * repeated .Issue issue = 2; */ - public int getListCount() { - return list_.size(); + public int getIssueCount() { + return issue_.size(); } - /** - * repeated .Issue list = 2; + * repeated .Issue issue = 2; */ - public org.sonar.batch.protocol.output.BatchReport.Issue getList(int index) { - return list_.get(index); + public org.sonar.batch.protocol.output.BatchReport.Issue getIssue(int index) { + return issue_.get(index); } - /** - * repeated .Issue list = 2; + * repeated .Issue issue = 2; */ - public org.sonar.batch.protocol.output.BatchReport.IssueOrBuilder getListOrBuilder( - int index) { - return list_.get(index); + public org.sonar.batch.protocol.output.BatchReport.IssueOrBuilder getIssueOrBuilder( + int index) { + return issue_.get(index); } + // optional string component_uuid = 3; public static final int COMPONENT_UUID_FIELD_NUMBER = 3; private java.lang.Object componentUuid_; - /** * optional string component_uuid = 3; * @@ -7563,7 +7012,6 @@ public final class BatchReport { public boolean hasComponentUuid() { return ((bitField0_ & 0x00000002) == 0x00000002); } - /** * optional string component_uuid = 3; * @@ -7576,8 +7024,8 @@ public final class BatchReport { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { componentUuid_ = s; @@ -7585,7 +7033,6 @@ public final class BatchReport { return s; } } - /** * optional string component_uuid = 3; * @@ -7594,12 +7041,12 @@ public final class BatchReport { * */ public com.google.protobuf.ByteString - getComponentUuidBytes() { + getComponentUuidBytes() { java.lang.Object ref = componentUuid_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); componentUuid_ = b; return b; } else { @@ -7609,31 +7056,26 @@ public final class BatchReport { private void initFields() { componentRef_ = 0; - list_ = java.util.Collections.emptyList(); + issue_ = java.util.Collections.emptyList(); componentUuid_ = ""; } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) - return true; - if (isInitialized == 0) - return false; + if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt32(1, componentRef_); } - for (int i = 0; i < list_.size(); i++) { - output.writeMessage(2, list_.get(i)); + for (int i = 0; i < issue_.size(); i++) { + output.writeMessage(2, issue_.get(i)); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(3, getComponentUuidBytes()); @@ -7642,20 +7084,18 @@ public final class BatchReport { } private int memoizedSerializedSize = -1; - public int getSerializedSize() { int size = memoizedSerializedSize; - if (size != -1) - return size; + if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, componentRef_); } - for (int i = 0; i < list_.size(); i++) { + for (int i = 0; i < issue_.size(); i++) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, list_.get(i)); + .computeMessageSize(2, issue_.get(i)); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream @@ -7667,115 +7107,94 @@ public final class BatchReport { } private static final long serialVersionUID = 0L; - @java.lang.Override protected java.lang.Object writeReplace() - throws java.io.ObjectStreamException { + throws java.io.ObjectStreamException { return super.writeReplace(); } public static org.sonar.batch.protocol.output.BatchReport.Issues parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.sonar.batch.protocol.output.BatchReport.Issues parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.sonar.batch.protocol.output.BatchReport.Issues parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.sonar.batch.protocol.output.BatchReport.Issues parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.sonar.batch.protocol.output.BatchReport.Issues parseFrom(java.io.InputStream input) - throws java.io.IOException { + throws java.io.IOException { return PARSER.parseFrom(input); } - public static org.sonar.batch.protocol.output.BatchReport.Issues parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } - public static org.sonar.batch.protocol.output.BatchReport.Issues parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { + throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } - public static org.sonar.batch.protocol.output.BatchReport.Issues parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } - public static org.sonar.batch.protocol.output.BatchReport.Issues parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { return PARSER.parseFrom(input); } - public static org.sonar.batch.protocol.output.BatchReport.Issues parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } - public static Builder newBuilder() { - return Builder.create(); - } - - public Builder newBuilderForType() { - return newBuilder(); - } - + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(org.sonar.batch.protocol.output.BatchReport.Issues prototype) { return newBuilder().mergeFrom(prototype); } - - public Builder toBuilder() { - return newBuilder(this); - } + public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** * Protobuf type {@code Issues} */ public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:Issues) - org.sonar.batch.protocol.output.BatchReport.IssuesOrBuilder { + com.google.protobuf.GeneratedMessage.Builder + implements org.sonar.batch.protocol.output.BatchReport.IssuesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + getDescriptor() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Issues_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { + internalGetFieldAccessorTable() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Issues_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.batch.protocol.output.BatchReport.Issues.class, org.sonar.batch.protocol.output.BatchReport.Issues.Builder.class); + .ensureFieldAccessorsInitialized( + org.sonar.batch.protocol.output.BatchReport.Issues.class, org.sonar.batch.protocol.output.BatchReport.Issues.Builder.class); } // Construct using org.sonar.batch.protocol.output.BatchReport.Issues.newBuilder() @@ -7784,17 +7203,15 @@ public final class BatchReport { } private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getListFieldBuilder(); + getIssueFieldBuilder(); } } - private static Builder create() { return new Builder(); } @@ -7803,11 +7220,11 @@ public final class BatchReport { super.clear(); componentRef_ = 0; bitField0_ = (bitField0_ & ~0x00000001); - if (listBuilder_ == null) { - list_ = java.util.Collections.emptyList(); + if (issueBuilder_ == null) { + issue_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { - listBuilder_.clear(); + issueBuilder_.clear(); } componentUuid_ = ""; bitField0_ = (bitField0_ & ~0x00000004); @@ -7819,7 +7236,7 @@ public final class BatchReport { } public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { + getDescriptorForType() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Issues_descriptor; } @@ -7843,14 +7260,14 @@ public final class BatchReport { to_bitField0_ |= 0x00000001; } result.componentRef_ = componentRef_; - if (listBuilder_ == null) { + if (issueBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { - list_ = java.util.Collections.unmodifiableList(list_); + issue_ = java.util.Collections.unmodifiableList(issue_); bitField0_ = (bitField0_ & ~0x00000002); } - result.list_ = list_; + result.issue_ = issue_; } else { - result.list_ = listBuilder_.build(); + result.issue_ = issueBuilder_.build(); } if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000002; @@ -7863,7 +7280,7 @@ public final class BatchReport { public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.sonar.batch.protocol.output.BatchReport.Issues) { - return mergeFrom((org.sonar.batch.protocol.output.BatchReport.Issues) other); + return mergeFrom((org.sonar.batch.protocol.output.BatchReport.Issues)other); } else { super.mergeFrom(other); return this; @@ -7871,34 +7288,33 @@ public final class BatchReport { } public Builder mergeFrom(org.sonar.batch.protocol.output.BatchReport.Issues other) { - if (other == org.sonar.batch.protocol.output.BatchReport.Issues.getDefaultInstance()) - return this; + if (other == org.sonar.batch.protocol.output.BatchReport.Issues.getDefaultInstance()) return this; if (other.hasComponentRef()) { setComponentRef(other.getComponentRef()); } - if (listBuilder_ == null) { - if (!other.list_.isEmpty()) { - if (list_.isEmpty()) { - list_ = other.list_; + if (issueBuilder_ == null) { + if (!other.issue_.isEmpty()) { + if (issue_.isEmpty()) { + issue_ = other.issue_; bitField0_ = (bitField0_ & ~0x00000002); } else { - ensureListIsMutable(); - list_.addAll(other.list_); + ensureIssueIsMutable(); + issue_.addAll(other.issue_); } onChanged(); } } else { - if (!other.list_.isEmpty()) { - if (listBuilder_.isEmpty()) { - listBuilder_.dispose(); - listBuilder_ = null; - list_ = other.list_; + if (!other.issue_.isEmpty()) { + if (issueBuilder_.isEmpty()) { + issueBuilder_.dispose(); + issueBuilder_ = null; + issue_ = other.issue_; bitField0_ = (bitField0_ & ~0x00000002); - listBuilder_ = + issueBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getListFieldBuilder() : null; + getIssueFieldBuilder() : null; } else { - listBuilder_.addAllMessages(other.list_); + issueBuilder_.addAllMessages(other.issue_); } } } @@ -7916,9 +7332,9 @@ public final class BatchReport { } public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { org.sonar.batch.protocol.output.BatchReport.Issues parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); @@ -7932,25 +7348,22 @@ public final class BatchReport { } return this; } - private int bitField0_; - private int componentRef_; - + // optional int32 component_ref = 1; + private int componentRef_ ; /** * optional int32 component_ref = 1; */ public boolean hasComponentRef() { return ((bitField0_ & 0x00000001) == 0x00000001); } - /** * optional int32 component_ref = 1; */ public int getComponentRef() { return componentRef_; } - /** * optional int32 component_ref = 1; */ @@ -7960,7 +7373,6 @@ public final class BatchReport { onChanged(); return this; } - /** * optional int32 component_ref = 1; */ @@ -7971,267 +7383,248 @@ public final class BatchReport { return this; } - private java.util.List list_ = + // repeated .Issue issue = 2; + private java.util.List issue_ = java.util.Collections.emptyList(); - - private void ensureListIsMutable() { + private void ensureIssueIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { - list_ = new java.util.ArrayList(list_); + issue_ = new java.util.ArrayList(issue_); bitField0_ |= 0x00000002; - } + } } - private com.google.protobuf.RepeatedFieldBuilder listBuilder_; + private com.google.protobuf.RepeatedFieldBuilder< + org.sonar.batch.protocol.output.BatchReport.Issue, org.sonar.batch.protocol.output.BatchReport.Issue.Builder, org.sonar.batch.protocol.output.BatchReport.IssueOrBuilder> issueBuilder_; /** - * repeated .Issue list = 2; + * repeated .Issue issue = 2; */ - public java.util.List getListList() { - if (listBuilder_ == null) { - return java.util.Collections.unmodifiableList(list_); + public java.util.List getIssueList() { + if (issueBuilder_ == null) { + return java.util.Collections.unmodifiableList(issue_); } else { - return listBuilder_.getMessageList(); + return issueBuilder_.getMessageList(); } } - /** - * repeated .Issue list = 2; + * repeated .Issue issue = 2; */ - public int getListCount() { - if (listBuilder_ == null) { - return list_.size(); + public int getIssueCount() { + if (issueBuilder_ == null) { + return issue_.size(); } else { - return listBuilder_.getCount(); + return issueBuilder_.getCount(); } } - /** - * repeated .Issue list = 2; + * repeated .Issue issue = 2; */ - public org.sonar.batch.protocol.output.BatchReport.Issue getList(int index) { - if (listBuilder_ == null) { - return list_.get(index); + public org.sonar.batch.protocol.output.BatchReport.Issue getIssue(int index) { + if (issueBuilder_ == null) { + return issue_.get(index); } else { - return listBuilder_.getMessage(index); + return issueBuilder_.getMessage(index); } } - /** - * repeated .Issue list = 2; + * repeated .Issue issue = 2; */ - public Builder setList( - int index, org.sonar.batch.protocol.output.BatchReport.Issue value) { - if (listBuilder_ == null) { + public Builder setIssue( + int index, org.sonar.batch.protocol.output.BatchReport.Issue value) { + if (issueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureListIsMutable(); - list_.set(index, value); + ensureIssueIsMutable(); + issue_.set(index, value); onChanged(); } else { - listBuilder_.setMessage(index, value); + issueBuilder_.setMessage(index, value); } return this; } - /** - * repeated .Issue list = 2; + * repeated .Issue issue = 2; */ - public Builder setList( - int index, org.sonar.batch.protocol.output.BatchReport.Issue.Builder builderForValue) { - if (listBuilder_ == null) { - ensureListIsMutable(); - list_.set(index, builderForValue.build()); + public Builder setIssue( + int index, org.sonar.batch.protocol.output.BatchReport.Issue.Builder builderForValue) { + if (issueBuilder_ == null) { + ensureIssueIsMutable(); + issue_.set(index, builderForValue.build()); onChanged(); } else { - listBuilder_.setMessage(index, builderForValue.build()); + issueBuilder_.setMessage(index, builderForValue.build()); } return this; } - /** - * repeated .Issue list = 2; + * repeated .Issue issue = 2; */ - public Builder addList(org.sonar.batch.protocol.output.BatchReport.Issue value) { - if (listBuilder_ == null) { + public Builder addIssue(org.sonar.batch.protocol.output.BatchReport.Issue value) { + if (issueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureListIsMutable(); - list_.add(value); + ensureIssueIsMutable(); + issue_.add(value); onChanged(); } else { - listBuilder_.addMessage(value); + issueBuilder_.addMessage(value); } return this; } - /** - * repeated .Issue list = 2; + * repeated .Issue issue = 2; */ - public Builder addList( - int index, org.sonar.batch.protocol.output.BatchReport.Issue value) { - if (listBuilder_ == null) { + public Builder addIssue( + int index, org.sonar.batch.protocol.output.BatchReport.Issue value) { + if (issueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureListIsMutable(); - list_.add(index, value); + ensureIssueIsMutable(); + issue_.add(index, value); onChanged(); } else { - listBuilder_.addMessage(index, value); + issueBuilder_.addMessage(index, value); } return this; } - /** - * repeated .Issue list = 2; + * repeated .Issue issue = 2; */ - public Builder addList( - org.sonar.batch.protocol.output.BatchReport.Issue.Builder builderForValue) { - if (listBuilder_ == null) { - ensureListIsMutable(); - list_.add(builderForValue.build()); + public Builder addIssue( + org.sonar.batch.protocol.output.BatchReport.Issue.Builder builderForValue) { + if (issueBuilder_ == null) { + ensureIssueIsMutable(); + issue_.add(builderForValue.build()); onChanged(); } else { - listBuilder_.addMessage(builderForValue.build()); + issueBuilder_.addMessage(builderForValue.build()); } return this; } - /** - * repeated .Issue list = 2; + * repeated .Issue issue = 2; */ - public Builder addList( - int index, org.sonar.batch.protocol.output.BatchReport.Issue.Builder builderForValue) { - if (listBuilder_ == null) { - ensureListIsMutable(); - list_.add(index, builderForValue.build()); + public Builder addIssue( + int index, org.sonar.batch.protocol.output.BatchReport.Issue.Builder builderForValue) { + if (issueBuilder_ == null) { + ensureIssueIsMutable(); + issue_.add(index, builderForValue.build()); onChanged(); } else { - listBuilder_.addMessage(index, builderForValue.build()); + issueBuilder_.addMessage(index, builderForValue.build()); } return this; } - /** - * repeated .Issue list = 2; + * repeated .Issue issue = 2; */ - public Builder addAllList( - java.lang.Iterable values) { - if (listBuilder_ == null) { - ensureListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, list_); + public Builder addAllIssue( + java.lang.Iterable values) { + if (issueBuilder_ == null) { + ensureIssueIsMutable(); + super.addAll(values, issue_); onChanged(); } else { - listBuilder_.addAllMessages(values); + issueBuilder_.addAllMessages(values); } return this; } - /** - * repeated .Issue list = 2; + * repeated .Issue issue = 2; */ - public Builder clearList() { - if (listBuilder_ == null) { - list_ = java.util.Collections.emptyList(); + public Builder clearIssue() { + if (issueBuilder_ == null) { + issue_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { - listBuilder_.clear(); + issueBuilder_.clear(); } return this; } - /** - * repeated .Issue list = 2; + * repeated .Issue issue = 2; */ - public Builder removeList(int index) { - if (listBuilder_ == null) { - ensureListIsMutable(); - list_.remove(index); + public Builder removeIssue(int index) { + if (issueBuilder_ == null) { + ensureIssueIsMutable(); + issue_.remove(index); onChanged(); } else { - listBuilder_.remove(index); + issueBuilder_.remove(index); } return this; } - /** - * repeated .Issue list = 2; + * repeated .Issue issue = 2; */ - public org.sonar.batch.protocol.output.BatchReport.Issue.Builder getListBuilder( - int index) { - return getListFieldBuilder().getBuilder(index); + public org.sonar.batch.protocol.output.BatchReport.Issue.Builder getIssueBuilder( + int index) { + return getIssueFieldBuilder().getBuilder(index); } - /** - * repeated .Issue list = 2; + * repeated .Issue issue = 2; */ - public org.sonar.batch.protocol.output.BatchReport.IssueOrBuilder getListOrBuilder( - int index) { - if (listBuilder_ == null) { - return list_.get(index); - } else { - return listBuilder_.getMessageOrBuilder(index); + public org.sonar.batch.protocol.output.BatchReport.IssueOrBuilder getIssueOrBuilder( + int index) { + if (issueBuilder_ == null) { + return issue_.get(index); } else { + return issueBuilder_.getMessageOrBuilder(index); } } - /** - * repeated .Issue list = 2; + * repeated .Issue issue = 2; */ - public java.util.List - getListOrBuilderList() { - if (listBuilder_ != null) { - return listBuilder_.getMessageOrBuilderList(); + public java.util.List + getIssueOrBuilderList() { + if (issueBuilder_ != null) { + return issueBuilder_.getMessageOrBuilderList(); } else { - return java.util.Collections.unmodifiableList(list_); + return java.util.Collections.unmodifiableList(issue_); } } - /** - * repeated .Issue list = 2; + * repeated .Issue issue = 2; */ - public org.sonar.batch.protocol.output.BatchReport.Issue.Builder addListBuilder() { - return getListFieldBuilder().addBuilder( - org.sonar.batch.protocol.output.BatchReport.Issue.getDefaultInstance()); + public org.sonar.batch.protocol.output.BatchReport.Issue.Builder addIssueBuilder() { + return getIssueFieldBuilder().addBuilder( + org.sonar.batch.protocol.output.BatchReport.Issue.getDefaultInstance()); } - /** - * repeated .Issue list = 2; + * repeated .Issue issue = 2; */ - public org.sonar.batch.protocol.output.BatchReport.Issue.Builder addListBuilder( - int index) { - return getListFieldBuilder().addBuilder( - index, org.sonar.batch.protocol.output.BatchReport.Issue.getDefaultInstance()); + public org.sonar.batch.protocol.output.BatchReport.Issue.Builder addIssueBuilder( + int index) { + return getIssueFieldBuilder().addBuilder( + index, org.sonar.batch.protocol.output.BatchReport.Issue.getDefaultInstance()); } - /** - * repeated .Issue list = 2; + * repeated .Issue issue = 2; */ - public java.util.List - getListBuilderList() { - return getListFieldBuilder().getBuilderList(); + public java.util.List + getIssueBuilderList() { + return getIssueFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilder< - org.sonar.batch.protocol.output.BatchReport.Issue, org.sonar.batch.protocol.output.BatchReport.Issue.Builder, org.sonar.batch.protocol.output.BatchReport.IssueOrBuilder> - getListFieldBuilder() { - if (listBuilder_ == null) { - listBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - org.sonar.batch.protocol.output.BatchReport.Issue, org.sonar.batch.protocol.output.BatchReport.Issue.Builder, org.sonar.batch.protocol.output.BatchReport.IssueOrBuilder>( - list_, - ((bitField0_ & 0x00000002) == 0x00000002), - getParentForChildren(), - isClean()); - list_ = null; + org.sonar.batch.protocol.output.BatchReport.Issue, org.sonar.batch.protocol.output.BatchReport.Issue.Builder, org.sonar.batch.protocol.output.BatchReport.IssueOrBuilder> + getIssueFieldBuilder() { + if (issueBuilder_ == null) { + issueBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + org.sonar.batch.protocol.output.BatchReport.Issue, org.sonar.batch.protocol.output.BatchReport.Issue.Builder, org.sonar.batch.protocol.output.BatchReport.IssueOrBuilder>( + issue_, + ((bitField0_ & 0x00000002) == 0x00000002), + getParentForChildren(), + isClean()); + issue_ = null; } - return listBuilder_; + return issueBuilder_; } + // optional string component_uuid = 3; private java.lang.Object componentUuid_ = ""; - /** * optional string component_uuid = 3; * @@ -8242,7 +7635,6 @@ public final class BatchReport { public boolean hasComponentUuid() { return ((bitField0_ & 0x00000004) == 0x00000004); } - /** * optional string component_uuid = 3; * @@ -8253,18 +7645,14 @@ public final class BatchReport { public java.lang.String getComponentUuid() { java.lang.Object ref = componentUuid_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - componentUuid_ = s; - } + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + componentUuid_ = s; return s; } else { return (java.lang.String) ref; } } - /** * optional string component_uuid = 3; * @@ -8273,19 +7661,18 @@ public final class BatchReport { * */ public com.google.protobuf.ByteString - getComponentUuidBytes() { + getComponentUuidBytes() { java.lang.Object ref = componentUuid_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); componentUuid_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - /** * optional string component_uuid = 3; * @@ -8294,16 +7681,15 @@ public final class BatchReport { * */ public Builder setComponentUuid( - java.lang.String value) { + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; componentUuid_ = value; onChanged(); return this; } - /** * optional string component_uuid = 3; * @@ -8317,7 +7703,6 @@ public final class BatchReport { onChanged(); return this; } - /** * optional string component_uuid = 3; * @@ -8326,11 +7711,11 @@ public final class BatchReport { * */ public Builder setComponentUuidBytes( - com.google.protobuf.ByteString value) { + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; componentUuid_ = value; onChanged(); return this; @@ -8347,100 +7732,112 @@ public final class BatchReport { // @@protoc_insertion_point(class_scope:Issues) } - private static final com.google.protobuf.Descriptors.Descriptor internal_static_Metadata_descriptor; - private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Metadata_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor internal_static_ComponentLink_descriptor; - private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_ComponentLink_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor internal_static_Component_descriptor; - private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Component_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor internal_static_Issue_descriptor; - private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Issue_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor internal_static_Issues_descriptor; - private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Issues_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_Metadata_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_Metadata_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_ComponentLink_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_ComponentLink_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_Component_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_Component_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_Issue_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_Issue_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_Issues_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_Issues_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { + getDescriptor() { return descriptor; } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { java.lang.String[] descriptorData = { "\n\022batch_report.proto\032\017constants.proto\"\211\001" + - "\n\010Metadata\022\025\n\ranalysis_date\030\001 \001(\003\022\023\n\013pro" + - "ject_key\030\002 \001(\t\022\032\n\022root_component_ref\030\003 \001" + - "(\005\022\023\n\013snapshot_id\030\004 \001(\003\022 \n\030deleted_compo" + - "nents_count\030\005 \001(\005\"?\n\rComponentLink\022 \n\004ty" + - "pe\030\001 \001(\0162\022.ComponentLinkType\022\014\n\004href\030\002 \001" + - "(\t\"\317\001\n\tComponent\022\013\n\003ref\030\001 \001(\005\022\014\n\004path\030\002 " + - "\001(\t\022\014\n\004name\030\003 \001(\t\022\034\n\004type\030\004 \001(\0162\016.Compon" + - "entType\022\017\n\007is_test\030\005 \001(\010\022\020\n\010language\030\006 \001" + - "(\t\022\026\n\nchild_refs\030\007 \003(\005B\002\020\001\022\035\n\005links\030\n \003(", - "\0132\016.ComponentLink\022\023\n\013snapshot_id\030\010 \001(\005\022\014" + - "\n\004uuid\030\t \001(\t\"\232\004\n\005Issue\022\027\n\017rule_repositor" + - "y\030\001 \001(\t\022\020\n\010rule_key\030\002 \001(\t\022\014\n\004line\030\003 \001(\005\022" + - "\013\n\003msg\030\004 \001(\t\022\033\n\010severity\030\005 \001(\0162\t.Severit" + - "y\022\014\n\004tags\030\006 \003(\t\022\025\n\reffort_to_fix\030\007 \001(\001\022\016" + - "\n\006is_new\030\010 \001(\010\022\014\n\004uuid\030\t \001(\t\022\027\n\017debt_in_" + - "minutes\030\n \001(\003\022\022\n\nresolution\030\013 \001(\t\022\016\n\006sta" + - "tus\030\014 \001(\t\022\020\n\010checksum\030\r \001(\t\022\027\n\017manual_se" + - "verity\030\016 \001(\010\022\020\n\010reporter\030\017 \001(\t\022\020\n\010assign" + - "ee\030\020 \001(\t\022\027\n\017action_plan_key\030\021 \001(\t\022\022\n\natt", - "ributes\030\022 \001(\t\022\024\n\014author_login\030\023 \001(\t\022\025\n\rc" + - "reation_date\030\024 \001(\003\022\022\n\nclose_date\030\025 \001(\003\022\023" + - "\n\013update_date\030\026 \001(\003\022\023\n\013selected_at\030\027 \001(\003" + - "\022\023\n\013diff_fields\030\030 \001(\t\022\022\n\nis_changed\030\031 \001(" + - "\010\022\036\n\026must_send_notification\030\032 \001(\010\"M\n\006Iss" + - "ues\022\025\n\rcomponent_ref\030\001 \001(\005\022\024\n\004list\030\002 \003(\013" + - "2\006.Issue\022\026\n\016component_uuid\030\003 \001(\tB#\n\037org." + - "sonar.batch.protocol.outputH\001" + "\n\010Metadata\022\025\n\ranalysis_date\030\001 \001(\003\022\023\n\013pro" + + "ject_key\030\002 \001(\t\022\032\n\022root_component_ref\030\003 \001" + + "(\005\022\023\n\013snapshot_id\030\004 \001(\003\022 \n\030deleted_compo" + + "nents_count\030\005 \001(\005\"?\n\rComponentLink\022 \n\004ty" + + "pe\030\001 \001(\0162\022.ComponentLinkType\022\014\n\004href\030\002 \001" + + "(\t\"\315\001\n\tComponent\022\013\n\003ref\030\001 \001(\005\022\014\n\004path\030\002 " + + "\001(\t\022\014\n\004name\030\003 \001(\t\022\034\n\004type\030\004 \001(\0162\016.Compon" + + "entType\022\017\n\007is_test\030\005 \001(\010\022\020\n\010language\030\006 \001" + + "(\t\022\025\n\tchild_ref\030\007 \003(\005B\002\020\001\022\034\n\004link\030\n \003(\0132", + "\016.ComponentLink\022\023\n\013snapshot_id\030\010 \001(\005\022\014\n\004" + + "uuid\030\t \001(\t\"\231\004\n\005Issue\022\027\n\017rule_repository\030" + + "\001 \001(\t\022\020\n\010rule_key\030\002 \001(\t\022\014\n\004line\030\003 \001(\005\022\013\n" + + "\003msg\030\004 \001(\t\022\033\n\010severity\030\005 \001(\0162\t.Severity\022" + + "\013\n\003tag\030\006 \003(\t\022\025\n\reffort_to_fix\030\007 \001(\001\022\016\n\006i" + + "s_new\030\010 \001(\010\022\014\n\004uuid\030\t \001(\t\022\027\n\017debt_in_min" + + "utes\030\n \001(\003\022\022\n\nresolution\030\013 \001(\t\022\016\n\006status" + + "\030\014 \001(\t\022\020\n\010checksum\030\r \001(\t\022\027\n\017manual_sever" + + "ity\030\016 \001(\010\022\020\n\010reporter\030\017 \001(\t\022\020\n\010assignee\030" + + "\020 \001(\t\022\027\n\017action_plan_key\030\021 \001(\t\022\022\n\nattrib", + "utes\030\022 \001(\t\022\024\n\014author_login\030\023 \001(\t\022\025\n\rcrea" + + "tion_date\030\024 \001(\003\022\022\n\nclose_date\030\025 \001(\003\022\023\n\013u" + + "pdate_date\030\026 \001(\003\022\023\n\013selected_at\030\027 \001(\003\022\023\n" + + "\013diff_fields\030\030 \001(\t\022\022\n\nis_changed\030\031 \001(\010\022\036" + + "\n\026must_send_notification\030\032 \001(\010\"N\n\006Issues" + + "\022\025\n\rcomponent_ref\030\001 \001(\005\022\025\n\005issue\030\002 \003(\0132\006" + + ".Issue\022\026\n\016component_uuid\030\003 \001(\tB#\n\037org.so" + + "nar.batch.protocol.outputH\001" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { + com.google.protobuf.Descriptors.FileDescriptor root) { descriptor = root; + internal_static_Metadata_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_Metadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_Metadata_descriptor, + new java.lang.String[] { "AnalysisDate", "ProjectKey", "RootComponentRef", "SnapshotId", "DeletedComponentsCount", }); + internal_static_ComponentLink_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_ComponentLink_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_ComponentLink_descriptor, + new java.lang.String[] { "Type", "Href", }); + internal_static_Component_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_Component_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_Component_descriptor, + new java.lang.String[] { "Ref", "Path", "Name", "Type", "IsTest", "Language", "ChildRef", "Link", "SnapshotId", "Uuid", }); + internal_static_Issue_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_Issue_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_Issue_descriptor, + new java.lang.String[] { "RuleRepository", "RuleKey", "Line", "Msg", "Severity", "Tag", "EffortToFix", "IsNew", "Uuid", "DebtInMinutes", "Resolution", "Status", "Checksum", "ManualSeverity", "Reporter", "Assignee", "ActionPlanKey", "Attributes", "AuthorLogin", "CreationDate", "CloseDate", "UpdateDate", "SelectedAt", "DiffFields", "IsChanged", "MustSendNotification", }); + internal_static_Issues_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_Issues_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_Issues_descriptor, + new java.lang.String[] { "ComponentRef", "Issue", "ComponentUuid", }); return null; } }; com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - org.sonar.batch.protocol.Constants.getDescriptor(), + org.sonar.batch.protocol.Constants.getDescriptor(), }, assigner); - internal_static_Metadata_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_Metadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_Metadata_descriptor, - new java.lang.String[] {"AnalysisDate", "ProjectKey", "RootComponentRef", "SnapshotId", "DeletedComponentsCount",}); - internal_static_ComponentLink_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_ComponentLink_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_ComponentLink_descriptor, - new java.lang.String[] {"Type", "Href",}); - internal_static_Component_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_Component_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_Component_descriptor, - new java.lang.String[] {"Ref", "Path", "Name", "Type", "IsTest", "Language", "ChildRefs", "Links", "SnapshotId", "Uuid",}); - internal_static_Issue_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_Issue_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_Issue_descriptor, - 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",}); - internal_static_Issues_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_Issues_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_Issues_descriptor, - new java.lang.String[] {"ComponentRef", "List", "ComponentUuid",}); - org.sonar.batch.protocol.Constants.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/sonar-batch-protocol/src/main/gen-java/org/sonar/server/source/db/FileSourceDb.java b/sonar-batch-protocol/src/main/gen-java/org/sonar/server/source/db/FileSourceDb.java index 13609283ec4..6603bc8ef05 100644 --- a/sonar-batch-protocol/src/main/gen-java/org/sonar/server/source/db/FileSourceDb.java +++ b/sonar-batch-protocol/src/main/gen-java/org/sonar/server/source/db/FileSourceDb.java @@ -4,43 +4,39 @@ package org.sonar.server.source.db; public final class FileSourceDb { - private FileSourceDb() { - } - + private FileSourceDb() {} public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { + com.google.protobuf.ExtensionRegistry registry) { } + public interface LineOrBuilder + extends com.google.protobuf.MessageOrBuilder { - public interface LineOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.sonar.server.source.db.Line) - com.google.protobuf.MessageOrBuilder { - + // optional int32 line = 1; /** * optional int32 line = 1; */ boolean hasLine(); - /** * optional int32 line = 1; */ int getLine(); + // optional string source = 2; /** * optional string source = 2; */ boolean hasSource(); - /** * optional string source = 2; */ java.lang.String getSource(); - /** * optional string source = 2; */ com.google.protobuf.ByteString - getSourceBytes(); + getSourceBytes(); + // optional string scm_revision = 3; /** * optional string scm_revision = 3; * @@ -49,7 +45,6 @@ public final class FileSourceDb { * */ boolean hasScmRevision(); - /** * optional string scm_revision = 3; * @@ -58,7 +53,6 @@ public final class FileSourceDb { * */ java.lang.String getScmRevision(); - /** * optional string scm_revision = 3; * @@ -67,34 +61,34 @@ public final class FileSourceDb { * */ com.google.protobuf.ByteString - getScmRevisionBytes(); + getScmRevisionBytes(); + // optional string scm_author = 4; /** * optional string scm_author = 4; */ boolean hasScmAuthor(); - /** * optional string scm_author = 4; */ java.lang.String getScmAuthor(); - /** * optional string scm_author = 4; */ com.google.protobuf.ByteString - getScmAuthorBytes(); + getScmAuthorBytes(); + // optional int64 scm_date = 5; /** * optional int64 scm_date = 5; */ boolean hasScmDate(); - /** * optional int64 scm_date = 5; */ long getScmDate(); + // optional int32 ut_line_hits = 6; /** * optional int32 ut_line_hits = 6; * @@ -103,7 +97,6 @@ public final class FileSourceDb { * */ boolean hasUtLineHits(); - /** * optional int32 ut_line_hits = 6; * @@ -113,26 +106,27 @@ public final class FileSourceDb { */ int getUtLineHits(); + // optional int32 ut_conditions = 7; /** * optional int32 ut_conditions = 7; */ boolean hasUtConditions(); - /** * optional int32 ut_conditions = 7; */ int getUtConditions(); + // optional int32 ut_covered_conditions = 8; /** * optional int32 ut_covered_conditions = 8; */ boolean hasUtCoveredConditions(); - /** * optional int32 ut_covered_conditions = 8; */ int getUtCoveredConditions(); + // optional int32 it_line_hits = 9; /** * optional int32 it_line_hits = 9; * @@ -141,7 +135,6 @@ public final class FileSourceDb { * */ boolean hasItLineHits(); - /** * optional int32 it_line_hits = 9; * @@ -151,26 +144,27 @@ public final class FileSourceDb { */ int getItLineHits(); + // optional int32 it_conditions = 10; /** * optional int32 it_conditions = 10; */ boolean hasItConditions(); - /** * optional int32 it_conditions = 10; */ int getItConditions(); + // optional int32 it_covered_conditions = 11; /** * optional int32 it_covered_conditions = 11; */ boolean hasItCoveredConditions(); - /** * optional int32 it_covered_conditions = 11; */ int getItCoveredConditions(); + // optional int32 overall_line_hits = 12; /** * optional int32 overall_line_hits = 12; * @@ -179,7 +173,6 @@ public final class FileSourceDb { * */ boolean hasOverallLineHits(); - /** * optional int32 overall_line_hits = 12; * @@ -189,92 +182,84 @@ public final class FileSourceDb { */ int getOverallLineHits(); + // optional int32 overall_conditions = 13; /** * optional int32 overall_conditions = 13; */ boolean hasOverallConditions(); - /** * optional int32 overall_conditions = 13; */ int getOverallConditions(); + // optional int32 overall_covered_conditions = 14; /** * optional int32 overall_covered_conditions = 14; */ boolean hasOverallCoveredConditions(); - /** * optional int32 overall_covered_conditions = 14; */ int getOverallCoveredConditions(); + // optional string highlighting = 15; /** * optional string highlighting = 15; */ boolean hasHighlighting(); - /** * optional string highlighting = 15; */ java.lang.String getHighlighting(); - /** * optional string highlighting = 15; */ com.google.protobuf.ByteString - getHighlightingBytes(); + getHighlightingBytes(); + // optional string symbols = 16; /** * optional string symbols = 16; */ boolean hasSymbols(); - /** * optional string symbols = 16; */ java.lang.String getSymbols(); - /** * optional string symbols = 16; */ com.google.protobuf.ByteString - getSymbolsBytes(); + getSymbolsBytes(); + // repeated int32 duplication = 17 [packed = true]; /** - * repeated int32 duplications = 17 [packed = true]; + * repeated int32 duplication = 17 [packed = true]; */ - java.util.List getDuplicationsList(); - + java.util.List getDuplicationList(); /** - * repeated int32 duplications = 17 [packed = true]; + * repeated int32 duplication = 17 [packed = true]; */ - int getDuplicationsCount(); - + int getDuplicationCount(); /** - * repeated int32 duplications = 17 [packed = true]; + * repeated int32 duplication = 17 [packed = true]; */ - int getDuplications(int index); + int getDuplication(int index); } /** * Protobuf type {@code org.sonar.server.source.db.Line} */ public static final class Line extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:org.sonar.server.source.db.Line) - LineOrBuilder { + com.google.protobuf.GeneratedMessage + implements LineOrBuilder { // Use Line.newBuilder() to construct. private Line(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } - - private Line(boolean noInit) { - this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } + private Line(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final Line defaultInstance; - public static Line getDefaultInstance() { return defaultInstance; } @@ -284,21 +269,19 @@ public final class FileSourceDb { } private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + getUnknownFields() { return this.unknownFields; } - private Line( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); + com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { @@ -309,7 +292,7 @@ public final class FileSourceDb { break; default: { if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { + extensionRegistry, tag)) { done = true; } break; @@ -320,21 +303,18 @@ public final class FileSourceDb { break; } case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; - source_ = bs; + source_ = input.readBytes(); break; } case 26: { - com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000004; - scmRevision_ = bs; + scmRevision_ = input.readBytes(); break; } case 34: { - com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000008; - scmAuthor_ = bs; + scmAuthor_ = input.readBytes(); break; } case 40: { @@ -388,34 +368,32 @@ public final class FileSourceDb { break; } case 122: { - com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00004000; - highlighting_ = bs; + highlighting_ = input.readBytes(); break; } case 130: { - com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00008000; - symbols_ = bs; + symbols_ = input.readBytes(); break; } case 136: { if (!((mutable_bitField0_ & 0x00010000) == 0x00010000)) { - duplications_ = new java.util.ArrayList(); + duplication_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00010000; } - duplications_.add(input.readInt32()); + duplication_.add(input.readInt32()); break; } case 138: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00010000) == 0x00010000) && input.getBytesUntilLimit() > 0) { - duplications_ = new java.util.ArrayList(); + duplication_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00010000; } while (input.getBytesUntilLimit() > 0) { - duplications_.add(input.readInt32()); + duplication_.add(input.readInt32()); } input.popLimit(limit); break; @@ -426,37 +404,36 @@ public final class FileSourceDb { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); + e.getMessage()).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00010000) == 0x00010000)) { - duplications_ = java.util.Collections.unmodifiableList(duplications_); + duplication_ = java.util.Collections.unmodifiableList(duplication_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + getDescriptor() { return org.sonar.server.source.db.FileSourceDb.internal_static_org_sonar_server_source_db_Line_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { + internalGetFieldAccessorTable() { return org.sonar.server.source.db.FileSourceDb.internal_static_org_sonar_server_source_db_Line_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.server.source.db.FileSourceDb.Line.class, org.sonar.server.source.db.FileSourceDb.Line.Builder.class); + .ensureFieldAccessorsInitialized( + org.sonar.server.source.db.FileSourceDb.Line.class, org.sonar.server.source.db.FileSourceDb.Line.Builder.class); } public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Line parsePartialFrom( + new com.google.protobuf.AbstractParser() { + public Line parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Line(input, extensionRegistry); - } - }; + return new Line(input, extensionRegistry); + } + }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { @@ -464,16 +441,15 @@ public final class FileSourceDb { } private int bitField0_; + // optional int32 line = 1; public static final int LINE_FIELD_NUMBER = 1; private int line_; - /** * optional int32 line = 1; */ public boolean hasLine() { return ((bitField0_ & 0x00000001) == 0x00000001); } - /** * optional int32 line = 1; */ @@ -481,16 +457,15 @@ public final class FileSourceDb { return line_; } + // optional string source = 2; public static final int SOURCE_FIELD_NUMBER = 2; private java.lang.Object source_; - /** * optional string source = 2; */ public boolean hasSource() { return ((bitField0_ & 0x00000002) == 0x00000002); } - /** * optional string source = 2; */ @@ -499,8 +474,8 @@ public final class FileSourceDb { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { source_ = s; @@ -508,17 +483,16 @@ public final class FileSourceDb { return s; } } - /** * optional string source = 2; */ public com.google.protobuf.ByteString - getSourceBytes() { + getSourceBytes() { java.lang.Object ref = source_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); source_ = b; return b; } else { @@ -526,9 +500,9 @@ public final class FileSourceDb { } } + // optional string scm_revision = 3; public static final int SCM_REVISION_FIELD_NUMBER = 3; private java.lang.Object scmRevision_; - /** * optional string scm_revision = 3; * @@ -539,7 +513,6 @@ public final class FileSourceDb { public boolean hasScmRevision() { return ((bitField0_ & 0x00000004) == 0x00000004); } - /** * optional string scm_revision = 3; * @@ -552,8 +525,8 @@ public final class FileSourceDb { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { scmRevision_ = s; @@ -561,7 +534,6 @@ public final class FileSourceDb { return s; } } - /** * optional string scm_revision = 3; * @@ -570,12 +542,12 @@ public final class FileSourceDb { * */ public com.google.protobuf.ByteString - getScmRevisionBytes() { + getScmRevisionBytes() { java.lang.Object ref = scmRevision_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); scmRevision_ = b; return b; } else { @@ -583,16 +555,15 @@ public final class FileSourceDb { } } + // optional string scm_author = 4; public static final int SCM_AUTHOR_FIELD_NUMBER = 4; private java.lang.Object scmAuthor_; - /** * optional string scm_author = 4; */ public boolean hasScmAuthor() { return ((bitField0_ & 0x00000008) == 0x00000008); } - /** * optional string scm_author = 4; */ @@ -601,8 +572,8 @@ public final class FileSourceDb { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { scmAuthor_ = s; @@ -610,17 +581,16 @@ public final class FileSourceDb { return s; } } - /** * optional string scm_author = 4; */ public com.google.protobuf.ByteString - getScmAuthorBytes() { + getScmAuthorBytes() { java.lang.Object ref = scmAuthor_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); scmAuthor_ = b; return b; } else { @@ -628,16 +598,15 @@ public final class FileSourceDb { } } + // optional int64 scm_date = 5; public static final int SCM_DATE_FIELD_NUMBER = 5; private long scmDate_; - /** * optional int64 scm_date = 5; */ public boolean hasScmDate() { return ((bitField0_ & 0x00000010) == 0x00000010); } - /** * optional int64 scm_date = 5; */ @@ -645,9 +614,9 @@ public final class FileSourceDb { return scmDate_; } + // optional int32 ut_line_hits = 6; public static final int UT_LINE_HITS_FIELD_NUMBER = 6; private int utLineHits_; - /** * optional int32 ut_line_hits = 6; * @@ -658,7 +627,6 @@ public final class FileSourceDb { public boolean hasUtLineHits() { return ((bitField0_ & 0x00000020) == 0x00000020); } - /** * optional int32 ut_line_hits = 6; * @@ -670,16 +638,15 @@ public final class FileSourceDb { return utLineHits_; } + // optional int32 ut_conditions = 7; public static final int UT_CONDITIONS_FIELD_NUMBER = 7; private int utConditions_; - /** * optional int32 ut_conditions = 7; */ public boolean hasUtConditions() { return ((bitField0_ & 0x00000040) == 0x00000040); } - /** * optional int32 ut_conditions = 7; */ @@ -687,16 +654,15 @@ public final class FileSourceDb { return utConditions_; } + // optional int32 ut_covered_conditions = 8; public static final int UT_COVERED_CONDITIONS_FIELD_NUMBER = 8; private int utCoveredConditions_; - /** * optional int32 ut_covered_conditions = 8; */ public boolean hasUtCoveredConditions() { return ((bitField0_ & 0x00000080) == 0x00000080); } - /** * optional int32 ut_covered_conditions = 8; */ @@ -704,9 +670,9 @@ public final class FileSourceDb { return utCoveredConditions_; } + // optional int32 it_line_hits = 9; public static final int IT_LINE_HITS_FIELD_NUMBER = 9; private int itLineHits_; - /** * optional int32 it_line_hits = 9; * @@ -717,7 +683,6 @@ public final class FileSourceDb { public boolean hasItLineHits() { return ((bitField0_ & 0x00000100) == 0x00000100); } - /** * optional int32 it_line_hits = 9; * @@ -729,16 +694,15 @@ public final class FileSourceDb { return itLineHits_; } + // optional int32 it_conditions = 10; public static final int IT_CONDITIONS_FIELD_NUMBER = 10; private int itConditions_; - /** * optional int32 it_conditions = 10; */ public boolean hasItConditions() { return ((bitField0_ & 0x00000200) == 0x00000200); } - /** * optional int32 it_conditions = 10; */ @@ -746,16 +710,15 @@ public final class FileSourceDb { return itConditions_; } + // optional int32 it_covered_conditions = 11; public static final int IT_COVERED_CONDITIONS_FIELD_NUMBER = 11; private int itCoveredConditions_; - /** * optional int32 it_covered_conditions = 11; */ public boolean hasItCoveredConditions() { return ((bitField0_ & 0x00000400) == 0x00000400); } - /** * optional int32 it_covered_conditions = 11; */ @@ -763,9 +726,9 @@ public final class FileSourceDb { return itCoveredConditions_; } + // optional int32 overall_line_hits = 12; public static final int OVERALL_LINE_HITS_FIELD_NUMBER = 12; private int overallLineHits_; - /** * optional int32 overall_line_hits = 12; * @@ -776,7 +739,6 @@ public final class FileSourceDb { public boolean hasOverallLineHits() { return ((bitField0_ & 0x00000800) == 0x00000800); } - /** * optional int32 overall_line_hits = 12; * @@ -788,16 +750,15 @@ public final class FileSourceDb { return overallLineHits_; } + // optional int32 overall_conditions = 13; public static final int OVERALL_CONDITIONS_FIELD_NUMBER = 13; private int overallConditions_; - /** * optional int32 overall_conditions = 13; */ public boolean hasOverallConditions() { return ((bitField0_ & 0x00001000) == 0x00001000); } - /** * optional int32 overall_conditions = 13; */ @@ -805,16 +766,15 @@ public final class FileSourceDb { return overallConditions_; } + // optional int32 overall_covered_conditions = 14; public static final int OVERALL_COVERED_CONDITIONS_FIELD_NUMBER = 14; private int overallCoveredConditions_; - /** * optional int32 overall_covered_conditions = 14; */ public boolean hasOverallCoveredConditions() { return ((bitField0_ & 0x00002000) == 0x00002000); } - /** * optional int32 overall_covered_conditions = 14; */ @@ -822,16 +782,15 @@ public final class FileSourceDb { return overallCoveredConditions_; } + // optional string highlighting = 15; public static final int HIGHLIGHTING_FIELD_NUMBER = 15; private java.lang.Object highlighting_; - /** * optional string highlighting = 15; */ public boolean hasHighlighting() { return ((bitField0_ & 0x00004000) == 0x00004000); } - /** * optional string highlighting = 15; */ @@ -840,8 +799,8 @@ public final class FileSourceDb { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { highlighting_ = s; @@ -849,17 +808,16 @@ public final class FileSourceDb { return s; } } - /** * optional string highlighting = 15; */ public com.google.protobuf.ByteString - getHighlightingBytes() { + getHighlightingBytes() { java.lang.Object ref = highlighting_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); highlighting_ = b; return b; } else { @@ -867,16 +825,15 @@ public final class FileSourceDb { } } + // optional string symbols = 16; public static final int SYMBOLS_FIELD_NUMBER = 16; private java.lang.Object symbols_; - /** * optional string symbols = 16; */ public boolean hasSymbols() { return ((bitField0_ & 0x00008000) == 0x00008000); } - /** * optional string symbols = 16; */ @@ -885,8 +842,8 @@ public final class FileSourceDb { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { symbols_ = s; @@ -894,17 +851,16 @@ public final class FileSourceDb { return s; } } - /** * optional string symbols = 16; */ public com.google.protobuf.ByteString - getSymbolsBytes() { + getSymbolsBytes() { java.lang.Object ref = symbols_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); symbols_ = b; return b; } else { @@ -912,32 +868,29 @@ public final class FileSourceDb { } } - public static final int DUPLICATIONS_FIELD_NUMBER = 17; - private java.util.List duplications_; - + // repeated int32 duplication = 17 [packed = true]; + public static final int DUPLICATION_FIELD_NUMBER = 17; + private java.util.List duplication_; /** - * repeated int32 duplications = 17 [packed = true]; + * repeated int32 duplication = 17 [packed = true]; */ public java.util.List - getDuplicationsList() { - return duplications_; + getDuplicationList() { + return duplication_; } - /** - * repeated int32 duplications = 17 [packed = true]; + * repeated int32 duplication = 17 [packed = true]; */ - public int getDuplicationsCount() { - return duplications_.size(); + public int getDuplicationCount() { + return duplication_.size(); } - /** - * repeated int32 duplications = 17 [packed = true]; + * repeated int32 duplication = 17 [packed = true]; */ - public int getDuplications(int index) { - return duplications_.get(index); + public int getDuplication(int index) { + return duplication_.get(index); } - - private int duplicationsMemoizedSerializedSize = -1; + private int duplicationMemoizedSerializedSize = -1; private void initFields() { line_ = 0; @@ -956,24 +909,19 @@ public final class FileSourceDb { overallCoveredConditions_ = 0; highlighting_ = ""; symbols_ = ""; - duplications_ = java.util.Collections.emptyList(); + duplication_ = java.util.Collections.emptyList(); } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) - return true; - if (isInitialized == 0) - return false; + if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt32(1, line_); @@ -1023,22 +971,20 @@ public final class FileSourceDb { if (((bitField0_ & 0x00008000) == 0x00008000)) { output.writeBytes(16, getSymbolsBytes()); } - if (getDuplicationsList().size() > 0) { + if (getDuplicationList().size() > 0) { output.writeRawVarint32(138); - output.writeRawVarint32(duplicationsMemoizedSerializedSize); + output.writeRawVarint32(duplicationMemoizedSerializedSize); } - for (int i = 0; i < duplications_.size(); i++) { - output.writeInt32NoTag(duplications_.get(i)); + for (int i = 0; i < duplication_.size(); i++) { + output.writeInt32NoTag(duplication_.get(i)); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; - public int getSerializedSize() { int size = memoizedSerializedSize; - if (size != -1) - return size; + if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { @@ -1107,17 +1053,17 @@ public final class FileSourceDb { } { int dataSize = 0; - for (int i = 0; i < duplications_.size(); i++) { + for (int i = 0; i < duplication_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(duplications_.get(i)); + .computeInt32SizeNoTag(duplication_.get(i)); } size += dataSize; - if (!getDuplicationsList().isEmpty()) { + if (!getDuplicationList().isEmpty()) { size += 2; size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); + .computeInt32SizeNoTag(dataSize); } - duplicationsMemoizedSerializedSize = dataSize; + duplicationMemoizedSerializedSize = dataSize; } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; @@ -1125,115 +1071,94 @@ public final class FileSourceDb { } private static final long serialVersionUID = 0L; - @java.lang.Override protected java.lang.Object writeReplace() - throws java.io.ObjectStreamException { + throws java.io.ObjectStreamException { return super.writeReplace(); } public static org.sonar.server.source.db.FileSourceDb.Line parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.sonar.server.source.db.FileSourceDb.Line parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.sonar.server.source.db.FileSourceDb.Line parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.sonar.server.source.db.FileSourceDb.Line parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.sonar.server.source.db.FileSourceDb.Line parseFrom(java.io.InputStream input) - throws java.io.IOException { + throws java.io.IOException { return PARSER.parseFrom(input); } - public static org.sonar.server.source.db.FileSourceDb.Line parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } - public static org.sonar.server.source.db.FileSourceDb.Line parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { + throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } - public static org.sonar.server.source.db.FileSourceDb.Line parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } - public static org.sonar.server.source.db.FileSourceDb.Line parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { return PARSER.parseFrom(input); } - public static org.sonar.server.source.db.FileSourceDb.Line parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } - public static Builder newBuilder() { - return Builder.create(); - } - - public Builder newBuilderForType() { - return newBuilder(); - } - + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(org.sonar.server.source.db.FileSourceDb.Line prototype) { return newBuilder().mergeFrom(prototype); } - - public Builder toBuilder() { - return newBuilder(this); - } + public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** * Protobuf type {@code org.sonar.server.source.db.Line} */ public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:org.sonar.server.source.db.Line) - org.sonar.server.source.db.FileSourceDb.LineOrBuilder { + com.google.protobuf.GeneratedMessage.Builder + implements org.sonar.server.source.db.FileSourceDb.LineOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + getDescriptor() { return org.sonar.server.source.db.FileSourceDb.internal_static_org_sonar_server_source_db_Line_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { + internalGetFieldAccessorTable() { return org.sonar.server.source.db.FileSourceDb.internal_static_org_sonar_server_source_db_Line_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.server.source.db.FileSourceDb.Line.class, org.sonar.server.source.db.FileSourceDb.Line.Builder.class); + .ensureFieldAccessorsInitialized( + org.sonar.server.source.db.FileSourceDb.Line.class, org.sonar.server.source.db.FileSourceDb.Line.Builder.class); } // Construct using org.sonar.server.source.db.FileSourceDb.Line.newBuilder() @@ -1242,16 +1167,14 @@ public final class FileSourceDb { } private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } - private static Builder create() { return new Builder(); } @@ -1290,7 +1213,7 @@ public final class FileSourceDb { bitField0_ = (bitField0_ & ~0x00004000); symbols_ = ""; bitField0_ = (bitField0_ & ~0x00008000); - duplications_ = java.util.Collections.emptyList(); + duplication_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00010000); return this; } @@ -1300,7 +1223,7 @@ public final class FileSourceDb { } public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { + getDescriptorForType() { return org.sonar.server.source.db.FileSourceDb.internal_static_org_sonar_server_source_db_Line_descriptor; } @@ -1385,10 +1308,10 @@ public final class FileSourceDb { } result.symbols_ = symbols_; if (((bitField0_ & 0x00010000) == 0x00010000)) { - duplications_ = java.util.Collections.unmodifiableList(duplications_); + duplication_ = java.util.Collections.unmodifiableList(duplication_); bitField0_ = (bitField0_ & ~0x00010000); } - result.duplications_ = duplications_; + result.duplication_ = duplication_; result.bitField0_ = to_bitField0_; onBuilt(); return result; @@ -1396,7 +1319,7 @@ public final class FileSourceDb { public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.sonar.server.source.db.FileSourceDb.Line) { - return mergeFrom((org.sonar.server.source.db.FileSourceDb.Line) other); + return mergeFrom((org.sonar.server.source.db.FileSourceDb.Line)other); } else { super.mergeFrom(other); return this; @@ -1404,8 +1327,7 @@ public final class FileSourceDb { } public Builder mergeFrom(org.sonar.server.source.db.FileSourceDb.Line other) { - if (other == org.sonar.server.source.db.FileSourceDb.Line.getDefaultInstance()) - return this; + if (other == org.sonar.server.source.db.FileSourceDb.Line.getDefaultInstance()) return this; if (other.hasLine()) { setLine(other.getLine()); } @@ -1464,13 +1386,13 @@ public final class FileSourceDb { symbols_ = other.symbols_; onChanged(); } - if (!other.duplications_.isEmpty()) { - if (duplications_.isEmpty()) { - duplications_ = other.duplications_; + if (!other.duplication_.isEmpty()) { + if (duplication_.isEmpty()) { + duplication_ = other.duplication_; bitField0_ = (bitField0_ & ~0x00010000); } else { - ensureDuplicationsIsMutable(); - duplications_.addAll(other.duplications_); + ensureDuplicationIsMutable(); + duplication_.addAll(other.duplication_); } onChanged(); } @@ -1483,9 +1405,9 @@ public final class FileSourceDb { } public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { org.sonar.server.source.db.FileSourceDb.Line parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); @@ -1499,25 +1421,22 @@ public final class FileSourceDb { } return this; } - private int bitField0_; - private int line_; - + // optional int32 line = 1; + private int line_ ; /** * optional int32 line = 1; */ public boolean hasLine() { return ((bitField0_ & 0x00000001) == 0x00000001); } - /** * optional int32 line = 1; */ public int getLine() { return line_; } - /** * optional int32 line = 1; */ @@ -1527,7 +1446,6 @@ public final class FileSourceDb { onChanged(); return this; } - /** * optional int32 line = 1; */ @@ -1538,64 +1456,57 @@ public final class FileSourceDb { return this; } + // optional string source = 2; private java.lang.Object source_ = ""; - /** * optional string source = 2; */ public boolean hasSource() { return ((bitField0_ & 0x00000002) == 0x00000002); } - /** * optional string source = 2; */ public java.lang.String getSource() { java.lang.Object ref = source_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - source_ = s; - } + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + source_ = s; return s; } else { return (java.lang.String) ref; } } - /** * optional string source = 2; */ public com.google.protobuf.ByteString - getSourceBytes() { + getSourceBytes() { java.lang.Object ref = source_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); source_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - /** * optional string source = 2; */ public Builder setSource( - java.lang.String value) { + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; source_ = value; onChanged(); return this; } - /** * optional string source = 2; */ @@ -1605,23 +1516,22 @@ public final class FileSourceDb { onChanged(); return this; } - /** * optional string source = 2; */ public Builder setSourceBytes( - com.google.protobuf.ByteString value) { + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; source_ = value; onChanged(); return this; } + // optional string scm_revision = 3; private java.lang.Object scmRevision_ = ""; - /** * optional string scm_revision = 3; * @@ -1632,7 +1542,6 @@ public final class FileSourceDb { public boolean hasScmRevision() { return ((bitField0_ & 0x00000004) == 0x00000004); } - /** * optional string scm_revision = 3; * @@ -1643,18 +1552,14 @@ public final class FileSourceDb { public java.lang.String getScmRevision() { java.lang.Object ref = scmRevision_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - scmRevision_ = s; - } + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + scmRevision_ = s; return s; } else { return (java.lang.String) ref; } } - /** * optional string scm_revision = 3; * @@ -1663,19 +1568,18 @@ public final class FileSourceDb { * */ public com.google.protobuf.ByteString - getScmRevisionBytes() { + getScmRevisionBytes() { java.lang.Object ref = scmRevision_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); scmRevision_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - /** * optional string scm_revision = 3; * @@ -1684,16 +1588,15 @@ public final class FileSourceDb { * */ public Builder setScmRevision( - java.lang.String value) { + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; scmRevision_ = value; onChanged(); return this; } - /** * optional string scm_revision = 3; * @@ -1707,7 +1610,6 @@ public final class FileSourceDb { onChanged(); return this; } - /** * optional string scm_revision = 3; * @@ -1716,74 +1618,67 @@ public final class FileSourceDb { * */ public Builder setScmRevisionBytes( - com.google.protobuf.ByteString value) { + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; scmRevision_ = value; onChanged(); return this; } + // optional string scm_author = 4; private java.lang.Object scmAuthor_ = ""; - /** * optional string scm_author = 4; */ public boolean hasScmAuthor() { return ((bitField0_ & 0x00000008) == 0x00000008); } - /** * optional string scm_author = 4; */ public java.lang.String getScmAuthor() { java.lang.Object ref = scmAuthor_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - scmAuthor_ = s; - } + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + scmAuthor_ = s; return s; } else { return (java.lang.String) ref; } } - /** * optional string scm_author = 4; */ public com.google.protobuf.ByteString - getScmAuthorBytes() { + getScmAuthorBytes() { java.lang.Object ref = scmAuthor_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); scmAuthor_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - /** * optional string scm_author = 4; */ public Builder setScmAuthor( - java.lang.String value) { + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; scmAuthor_ = value; onChanged(); return this; } - /** * optional string scm_author = 4; */ @@ -1793,37 +1688,34 @@ public final class FileSourceDb { onChanged(); return this; } - /** * optional string scm_author = 4; */ public Builder setScmAuthorBytes( - com.google.protobuf.ByteString value) { + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; scmAuthor_ = value; onChanged(); return this; } - private long scmDate_; - + // optional int64 scm_date = 5; + private long scmDate_ ; /** * optional int64 scm_date = 5; */ public boolean hasScmDate() { return ((bitField0_ & 0x00000010) == 0x00000010); } - /** * optional int64 scm_date = 5; */ public long getScmDate() { return scmDate_; } - /** * optional int64 scm_date = 5; */ @@ -1833,7 +1725,6 @@ public final class FileSourceDb { onChanged(); return this; } - /** * optional int64 scm_date = 5; */ @@ -1844,8 +1735,8 @@ public final class FileSourceDb { return this; } - private int utLineHits_; - + // optional int32 ut_line_hits = 6; + private int utLineHits_ ; /** * optional int32 ut_line_hits = 6; * @@ -1856,7 +1747,6 @@ public final class FileSourceDb { public boolean hasUtLineHits() { return ((bitField0_ & 0x00000020) == 0x00000020); } - /** * optional int32 ut_line_hits = 6; * @@ -1867,7 +1757,6 @@ public final class FileSourceDb { public int getUtLineHits() { return utLineHits_; } - /** * optional int32 ut_line_hits = 6; * @@ -1881,7 +1770,6 @@ public final class FileSourceDb { onChanged(); return this; } - /** * optional int32 ut_line_hits = 6; * @@ -1896,22 +1784,20 @@ public final class FileSourceDb { return this; } - private int utConditions_; - + // optional int32 ut_conditions = 7; + private int utConditions_ ; /** * optional int32 ut_conditions = 7; */ public boolean hasUtConditions() { return ((bitField0_ & 0x00000040) == 0x00000040); } - /** * optional int32 ut_conditions = 7; */ public int getUtConditions() { return utConditions_; } - /** * optional int32 ut_conditions = 7; */ @@ -1921,7 +1807,6 @@ public final class FileSourceDb { onChanged(); return this; } - /** * optional int32 ut_conditions = 7; */ @@ -1932,22 +1817,20 @@ public final class FileSourceDb { return this; } - private int utCoveredConditions_; - + // optional int32 ut_covered_conditions = 8; + private int utCoveredConditions_ ; /** * optional int32 ut_covered_conditions = 8; */ public boolean hasUtCoveredConditions() { return ((bitField0_ & 0x00000080) == 0x00000080); } - /** * optional int32 ut_covered_conditions = 8; */ public int getUtCoveredConditions() { return utCoveredConditions_; } - /** * optional int32 ut_covered_conditions = 8; */ @@ -1957,7 +1840,6 @@ public final class FileSourceDb { onChanged(); return this; } - /** * optional int32 ut_covered_conditions = 8; */ @@ -1968,8 +1850,8 @@ public final class FileSourceDb { return this; } - private int itLineHits_; - + // optional int32 it_line_hits = 9; + private int itLineHits_ ; /** * optional int32 it_line_hits = 9; * @@ -1980,7 +1862,6 @@ public final class FileSourceDb { public boolean hasItLineHits() { return ((bitField0_ & 0x00000100) == 0x00000100); } - /** * optional int32 it_line_hits = 9; * @@ -1991,7 +1872,6 @@ public final class FileSourceDb { public int getItLineHits() { return itLineHits_; } - /** * optional int32 it_line_hits = 9; * @@ -2005,7 +1885,6 @@ public final class FileSourceDb { onChanged(); return this; } - /** * optional int32 it_line_hits = 9; * @@ -2020,22 +1899,20 @@ public final class FileSourceDb { return this; } - private int itConditions_; - + // optional int32 it_conditions = 10; + private int itConditions_ ; /** * optional int32 it_conditions = 10; */ public boolean hasItConditions() { return ((bitField0_ & 0x00000200) == 0x00000200); } - /** * optional int32 it_conditions = 10; */ public int getItConditions() { return itConditions_; } - /** * optional int32 it_conditions = 10; */ @@ -2045,7 +1922,6 @@ public final class FileSourceDb { onChanged(); return this; } - /** * optional int32 it_conditions = 10; */ @@ -2056,22 +1932,20 @@ public final class FileSourceDb { return this; } - private int itCoveredConditions_; - + // optional int32 it_covered_conditions = 11; + private int itCoveredConditions_ ; /** * optional int32 it_covered_conditions = 11; */ public boolean hasItCoveredConditions() { return ((bitField0_ & 0x00000400) == 0x00000400); } - /** * optional int32 it_covered_conditions = 11; */ public int getItCoveredConditions() { return itCoveredConditions_; } - /** * optional int32 it_covered_conditions = 11; */ @@ -2081,7 +1955,6 @@ public final class FileSourceDb { onChanged(); return this; } - /** * optional int32 it_covered_conditions = 11; */ @@ -2092,8 +1965,8 @@ public final class FileSourceDb { return this; } - private int overallLineHits_; - + // optional int32 overall_line_hits = 12; + private int overallLineHits_ ; /** * optional int32 overall_line_hits = 12; * @@ -2104,7 +1977,6 @@ public final class FileSourceDb { public boolean hasOverallLineHits() { return ((bitField0_ & 0x00000800) == 0x00000800); } - /** * optional int32 overall_line_hits = 12; * @@ -2115,7 +1987,6 @@ public final class FileSourceDb { public int getOverallLineHits() { return overallLineHits_; } - /** * optional int32 overall_line_hits = 12; * @@ -2129,7 +2000,6 @@ public final class FileSourceDb { onChanged(); return this; } - /** * optional int32 overall_line_hits = 12; * @@ -2144,22 +2014,20 @@ public final class FileSourceDb { return this; } - private int overallConditions_; - + // optional int32 overall_conditions = 13; + private int overallConditions_ ; /** * optional int32 overall_conditions = 13; */ public boolean hasOverallConditions() { return ((bitField0_ & 0x00001000) == 0x00001000); } - /** * optional int32 overall_conditions = 13; */ public int getOverallConditions() { return overallConditions_; } - /** * optional int32 overall_conditions = 13; */ @@ -2169,7 +2037,6 @@ public final class FileSourceDb { onChanged(); return this; } - /** * optional int32 overall_conditions = 13; */ @@ -2180,22 +2047,20 @@ public final class FileSourceDb { return this; } - private int overallCoveredConditions_; - + // optional int32 overall_covered_conditions = 14; + private int overallCoveredConditions_ ; /** * optional int32 overall_covered_conditions = 14; */ public boolean hasOverallCoveredConditions() { return ((bitField0_ & 0x00002000) == 0x00002000); } - /** * optional int32 overall_covered_conditions = 14; */ public int getOverallCoveredConditions() { return overallCoveredConditions_; } - /** * optional int32 overall_covered_conditions = 14; */ @@ -2205,7 +2070,6 @@ public final class FileSourceDb { onChanged(); return this; } - /** * optional int32 overall_covered_conditions = 14; */ @@ -2216,64 +2080,57 @@ public final class FileSourceDb { return this; } + // optional string highlighting = 15; private java.lang.Object highlighting_ = ""; - /** * optional string highlighting = 15; */ public boolean hasHighlighting() { return ((bitField0_ & 0x00004000) == 0x00004000); } - /** * optional string highlighting = 15; */ public java.lang.String getHighlighting() { java.lang.Object ref = highlighting_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - highlighting_ = s; - } + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + highlighting_ = s; return s; } else { return (java.lang.String) ref; } } - /** * optional string highlighting = 15; */ public com.google.protobuf.ByteString - getHighlightingBytes() { + getHighlightingBytes() { java.lang.Object ref = highlighting_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); highlighting_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - /** * optional string highlighting = 15; */ public Builder setHighlighting( - java.lang.String value) { + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00004000; + throw new NullPointerException(); + } + bitField0_ |= 0x00004000; highlighting_ = value; onChanged(); return this; } - /** * optional string highlighting = 15; */ @@ -2283,79 +2140,71 @@ public final class FileSourceDb { onChanged(); return this; } - /** * optional string highlighting = 15; */ public Builder setHighlightingBytes( - com.google.protobuf.ByteString value) { + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00004000; + throw new NullPointerException(); + } + bitField0_ |= 0x00004000; highlighting_ = value; onChanged(); return this; } + // optional string symbols = 16; private java.lang.Object symbols_ = ""; - /** * optional string symbols = 16; */ public boolean hasSymbols() { return ((bitField0_ & 0x00008000) == 0x00008000); } - /** * optional string symbols = 16; */ public java.lang.String getSymbols() { java.lang.Object ref = symbols_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - symbols_ = s; - } + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + symbols_ = s; return s; } else { return (java.lang.String) ref; } } - /** * optional string symbols = 16; */ public com.google.protobuf.ByteString - getSymbolsBytes() { + getSymbolsBytes() { java.lang.Object ref = symbols_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); symbols_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - /** * optional string symbols = 16; */ public Builder setSymbols( - java.lang.String value) { + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00008000; + throw new NullPointerException(); + } + bitField0_ |= 0x00008000; symbols_ = value; onChanged(); return this; } - /** * optional string symbols = 16; */ @@ -2365,90 +2214,81 @@ public final class FileSourceDb { onChanged(); return this; } - /** * optional string symbols = 16; */ public Builder setSymbolsBytes( - com.google.protobuf.ByteString value) { + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00008000; + throw new NullPointerException(); + } + bitField0_ |= 0x00008000; symbols_ = value; onChanged(); return this; } - private java.util.List duplications_ = java.util.Collections.emptyList(); - - private void ensureDuplicationsIsMutable() { + // repeated int32 duplication = 17 [packed = true]; + private java.util.List duplication_ = java.util.Collections.emptyList(); + private void ensureDuplicationIsMutable() { if (!((bitField0_ & 0x00010000) == 0x00010000)) { - duplications_ = new java.util.ArrayList(duplications_); + duplication_ = new java.util.ArrayList(duplication_); bitField0_ |= 0x00010000; - } + } } - /** - * repeated int32 duplications = 17 [packed = true]; + * repeated int32 duplication = 17 [packed = true]; */ public java.util.List - getDuplicationsList() { - return java.util.Collections.unmodifiableList(duplications_); + getDuplicationList() { + return java.util.Collections.unmodifiableList(duplication_); } - /** - * repeated int32 duplications = 17 [packed = true]; + * repeated int32 duplication = 17 [packed = true]; */ - public int getDuplicationsCount() { - return duplications_.size(); + public int getDuplicationCount() { + return duplication_.size(); } - /** - * repeated int32 duplications = 17 [packed = true]; + * repeated int32 duplication = 17 [packed = true]; */ - public int getDuplications(int index) { - return duplications_.get(index); + public int getDuplication(int index) { + return duplication_.get(index); } - /** - * repeated int32 duplications = 17 [packed = true]; + * repeated int32 duplication = 17 [packed = true]; */ - public Builder setDuplications( - int index, int value) { - ensureDuplicationsIsMutable(); - duplications_.set(index, value); + public Builder setDuplication( + int index, int value) { + ensureDuplicationIsMutable(); + duplication_.set(index, value); onChanged(); return this; } - /** - * repeated int32 duplications = 17 [packed = true]; + * repeated int32 duplication = 17 [packed = true]; */ - public Builder addDuplications(int value) { - ensureDuplicationsIsMutable(); - duplications_.add(value); + public Builder addDuplication(int value) { + ensureDuplicationIsMutable(); + duplication_.add(value); onChanged(); return this; } - /** - * repeated int32 duplications = 17 [packed = true]; + * repeated int32 duplication = 17 [packed = true]; */ - public Builder addAllDuplications( - java.lang.Iterable values) { - ensureDuplicationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, duplications_); + public Builder addAllDuplication( + java.lang.Iterable values) { + ensureDuplicationIsMutable(); + super.addAll(values, duplication_); onChanged(); return this; } - /** - * repeated int32 duplications = 17 [packed = true]; + * repeated int32 duplication = 17 [packed = true]; */ - public Builder clearDuplications() { - duplications_ = java.util.Collections.emptyList(); + public Builder clearDuplication() { + duplication_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00010000); onChanged(); return this; @@ -2465,57 +2305,48 @@ public final class FileSourceDb { // @@protoc_insertion_point(class_scope:org.sonar.server.source.db.Line) } - public interface DataOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.sonar.server.source.db.Data) - com.google.protobuf.MessageOrBuilder { + public interface DataOrBuilder + extends com.google.protobuf.MessageOrBuilder { + // repeated .org.sonar.server.source.db.Line lines = 1; /** * repeated .org.sonar.server.source.db.Line lines = 1; */ - java.util.List - getLinesList(); - + java.util.List + getLinesList(); /** * repeated .org.sonar.server.source.db.Line lines = 1; */ org.sonar.server.source.db.FileSourceDb.Line getLines(int index); - /** * repeated .org.sonar.server.source.db.Line lines = 1; */ int getLinesCount(); - /** * repeated .org.sonar.server.source.db.Line lines = 1; */ - java.util.List - getLinesOrBuilderList(); - + java.util.List + getLinesOrBuilderList(); /** * repeated .org.sonar.server.source.db.Line lines = 1; */ org.sonar.server.source.db.FileSourceDb.LineOrBuilder getLinesOrBuilder( - int index); + int index); } /** * Protobuf type {@code org.sonar.server.source.db.Data} */ public static final class Data extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:org.sonar.server.source.db.Data) - DataOrBuilder { + com.google.protobuf.GeneratedMessage + implements DataOrBuilder { // Use Data.newBuilder() to construct. private Data(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } - - private Data(boolean noInit) { - this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } + private Data(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final Data defaultInstance; - public static Data getDefaultInstance() { return defaultInstance; } @@ -2525,21 +2356,19 @@ public final class FileSourceDb { } private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + getUnknownFields() { return this.unknownFields; } - private Data( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); + com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { @@ -2550,7 +2379,7 @@ public final class FileSourceDb { break; default: { if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { + extensionRegistry, tag)) { done = true; } break; @@ -2569,7 +2398,7 @@ public final class FileSourceDb { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); + e.getMessage()).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { lines_ = java.util.Collections.unmodifiableList(lines_); @@ -2578,93 +2407,83 @@ public final class FileSourceDb { makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + getDescriptor() { return org.sonar.server.source.db.FileSourceDb.internal_static_org_sonar_server_source_db_Data_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { + internalGetFieldAccessorTable() { return org.sonar.server.source.db.FileSourceDb.internal_static_org_sonar_server_source_db_Data_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.server.source.db.FileSourceDb.Data.class, org.sonar.server.source.db.FileSourceDb.Data.Builder.class); + .ensureFieldAccessorsInitialized( + org.sonar.server.source.db.FileSourceDb.Data.class, org.sonar.server.source.db.FileSourceDb.Data.Builder.class); } public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Data parsePartialFrom( + new com.google.protobuf.AbstractParser() { + public Data parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Data(input, extensionRegistry); - } - }; + return new Data(input, extensionRegistry); + } + }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } + // repeated .org.sonar.server.source.db.Line lines = 1; public static final int LINES_FIELD_NUMBER = 1; private java.util.List lines_; - /** * repeated .org.sonar.server.source.db.Line lines = 1; */ public java.util.List getLinesList() { return lines_; } - /** * repeated .org.sonar.server.source.db.Line lines = 1; */ - public java.util.List - getLinesOrBuilderList() { + public java.util.List + getLinesOrBuilderList() { return lines_; } - /** * repeated .org.sonar.server.source.db.Line lines = 1; */ public int getLinesCount() { return lines_.size(); } - /** * repeated .org.sonar.server.source.db.Line lines = 1; */ public org.sonar.server.source.db.FileSourceDb.Line getLines(int index) { return lines_.get(index); } - /** * repeated .org.sonar.server.source.db.Line lines = 1; */ public org.sonar.server.source.db.FileSourceDb.LineOrBuilder getLinesOrBuilder( - int index) { + int index) { return lines_.get(index); } private void initFields() { lines_ = java.util.Collections.emptyList(); } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) - return true; - if (isInitialized == 0) - return false; + if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + throws java.io.IOException { getSerializedSize(); for (int i = 0; i < lines_.size(); i++) { output.writeMessage(1, lines_.get(i)); @@ -2673,11 +2492,9 @@ public final class FileSourceDb { } private int memoizedSerializedSize = -1; - public int getSerializedSize() { int size = memoizedSerializedSize; - if (size != -1) - return size; + if (size != -1) return size; size = 0; for (int i = 0; i < lines_.size(); i++) { @@ -2690,115 +2507,94 @@ public final class FileSourceDb { } private static final long serialVersionUID = 0L; - @java.lang.Override protected java.lang.Object writeReplace() - throws java.io.ObjectStreamException { + throws java.io.ObjectStreamException { return super.writeReplace(); } public static org.sonar.server.source.db.FileSourceDb.Data parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.sonar.server.source.db.FileSourceDb.Data parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.sonar.server.source.db.FileSourceDb.Data parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.sonar.server.source.db.FileSourceDb.Data parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.sonar.server.source.db.FileSourceDb.Data parseFrom(java.io.InputStream input) - throws java.io.IOException { + throws java.io.IOException { return PARSER.parseFrom(input); } - public static org.sonar.server.source.db.FileSourceDb.Data parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } - public static org.sonar.server.source.db.FileSourceDb.Data parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { + throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } - public static org.sonar.server.source.db.FileSourceDb.Data parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } - public static org.sonar.server.source.db.FileSourceDb.Data parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { return PARSER.parseFrom(input); } - public static org.sonar.server.source.db.FileSourceDb.Data parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } - public static Builder newBuilder() { - return Builder.create(); - } - - public Builder newBuilderForType() { - return newBuilder(); - } - + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(org.sonar.server.source.db.FileSourceDb.Data prototype) { return newBuilder().mergeFrom(prototype); } - - public Builder toBuilder() { - return newBuilder(this); - } + public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** * Protobuf type {@code org.sonar.server.source.db.Data} */ public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:org.sonar.server.source.db.Data) - org.sonar.server.source.db.FileSourceDb.DataOrBuilder { + com.google.protobuf.GeneratedMessage.Builder + implements org.sonar.server.source.db.FileSourceDb.DataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + getDescriptor() { return org.sonar.server.source.db.FileSourceDb.internal_static_org_sonar_server_source_db_Data_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { + internalGetFieldAccessorTable() { return org.sonar.server.source.db.FileSourceDb.internal_static_org_sonar_server_source_db_Data_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.server.source.db.FileSourceDb.Data.class, org.sonar.server.source.db.FileSourceDb.Data.Builder.class); + .ensureFieldAccessorsInitialized( + org.sonar.server.source.db.FileSourceDb.Data.class, org.sonar.server.source.db.FileSourceDb.Data.Builder.class); } // Construct using org.sonar.server.source.db.FileSourceDb.Data.newBuilder() @@ -2807,17 +2603,15 @@ public final class FileSourceDb { } private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getLinesFieldBuilder(); } } - private static Builder create() { return new Builder(); } @@ -2838,7 +2632,7 @@ public final class FileSourceDb { } public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { + getDescriptorForType() { return org.sonar.server.source.db.FileSourceDb.internal_static_org_sonar_server_source_db_Data_descriptor; } @@ -2872,7 +2666,7 @@ public final class FileSourceDb { public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.sonar.server.source.db.FileSourceDb.Data) { - return mergeFrom((org.sonar.server.source.db.FileSourceDb.Data) other); + return mergeFrom((org.sonar.server.source.db.FileSourceDb.Data)other); } else { super.mergeFrom(other); return this; @@ -2880,8 +2674,7 @@ public final class FileSourceDb { } public Builder mergeFrom(org.sonar.server.source.db.FileSourceDb.Data other) { - if (other == org.sonar.server.source.db.FileSourceDb.Data.getDefaultInstance()) - return this; + if (other == org.sonar.server.source.db.FileSourceDb.Data.getDefaultInstance()) return this; if (linesBuilder_ == null) { if (!other.lines_.isEmpty()) { if (lines_.isEmpty()) { @@ -2900,9 +2693,9 @@ public final class FileSourceDb { linesBuilder_ = null; lines_ = other.lines_; bitField0_ = (bitField0_ & ~0x00000001); - linesBuilder_ = + linesBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getLinesFieldBuilder() : null; + getLinesFieldBuilder() : null; } else { linesBuilder_.addAllMessages(other.lines_); } @@ -2917,9 +2710,9 @@ public final class FileSourceDb { } public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { org.sonar.server.source.db.FileSourceDb.Data parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); @@ -2933,20 +2726,20 @@ public final class FileSourceDb { } return this; } - private int bitField0_; + // repeated .org.sonar.server.source.db.Line lines = 1; private java.util.List lines_ = java.util.Collections.emptyList(); - private void ensureLinesIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { lines_ = new java.util.ArrayList(lines_); bitField0_ |= 0x00000001; - } + } } - private com.google.protobuf.RepeatedFieldBuilder linesBuilder_; + private com.google.protobuf.RepeatedFieldBuilder< + org.sonar.server.source.db.FileSourceDb.Line, org.sonar.server.source.db.FileSourceDb.Line.Builder, org.sonar.server.source.db.FileSourceDb.LineOrBuilder> linesBuilder_; /** * repeated .org.sonar.server.source.db.Line lines = 1; @@ -2958,7 +2751,6 @@ public final class FileSourceDb { return linesBuilder_.getMessageList(); } } - /** * repeated .org.sonar.server.source.db.Line lines = 1; */ @@ -2969,7 +2761,6 @@ public final class FileSourceDb { return linesBuilder_.getCount(); } } - /** * repeated .org.sonar.server.source.db.Line lines = 1; */ @@ -2980,12 +2771,11 @@ public final class FileSourceDb { return linesBuilder_.getMessage(index); } } - /** * repeated .org.sonar.server.source.db.Line lines = 1; */ public Builder setLines( - int index, org.sonar.server.source.db.FileSourceDb.Line value) { + int index, org.sonar.server.source.db.FileSourceDb.Line value) { if (linesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2998,12 +2788,11 @@ public final class FileSourceDb { } return this; } - /** * repeated .org.sonar.server.source.db.Line lines = 1; */ public Builder setLines( - int index, org.sonar.server.source.db.FileSourceDb.Line.Builder builderForValue) { + int index, org.sonar.server.source.db.FileSourceDb.Line.Builder builderForValue) { if (linesBuilder_ == null) { ensureLinesIsMutable(); lines_.set(index, builderForValue.build()); @@ -3013,7 +2802,6 @@ public final class FileSourceDb { } return this; } - /** * repeated .org.sonar.server.source.db.Line lines = 1; */ @@ -3030,12 +2818,11 @@ public final class FileSourceDb { } return this; } - /** * repeated .org.sonar.server.source.db.Line lines = 1; */ public Builder addLines( - int index, org.sonar.server.source.db.FileSourceDb.Line value) { + int index, org.sonar.server.source.db.FileSourceDb.Line value) { if (linesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3048,12 +2835,11 @@ public final class FileSourceDb { } return this; } - /** * repeated .org.sonar.server.source.db.Line lines = 1; */ public Builder addLines( - org.sonar.server.source.db.FileSourceDb.Line.Builder builderForValue) { + org.sonar.server.source.db.FileSourceDb.Line.Builder builderForValue) { if (linesBuilder_ == null) { ensureLinesIsMutable(); lines_.add(builderForValue.build()); @@ -3063,12 +2849,11 @@ public final class FileSourceDb { } return this; } - /** * repeated .org.sonar.server.source.db.Line lines = 1; */ public Builder addLines( - int index, org.sonar.server.source.db.FileSourceDb.Line.Builder builderForValue) { + int index, org.sonar.server.source.db.FileSourceDb.Line.Builder builderForValue) { if (linesBuilder_ == null) { ensureLinesIsMutable(); lines_.add(index, builderForValue.build()); @@ -3078,23 +2863,20 @@ public final class FileSourceDb { } return this; } - /** * repeated .org.sonar.server.source.db.Line lines = 1; */ public Builder addAllLines( - java.lang.Iterable values) { + java.lang.Iterable values) { if (linesBuilder_ == null) { ensureLinesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, lines_); + super.addAll(values, lines_); onChanged(); } else { linesBuilder_.addAllMessages(values); } return this; } - /** * repeated .org.sonar.server.source.db.Line lines = 1; */ @@ -3108,7 +2890,6 @@ public final class FileSourceDb { } return this; } - /** * repeated .org.sonar.server.source.db.Line lines = 1; */ @@ -3122,74 +2903,66 @@ public final class FileSourceDb { } return this; } - /** * repeated .org.sonar.server.source.db.Line lines = 1; */ public org.sonar.server.source.db.FileSourceDb.Line.Builder getLinesBuilder( - int index) { + int index) { return getLinesFieldBuilder().getBuilder(index); } - /** * repeated .org.sonar.server.source.db.Line lines = 1; */ public org.sonar.server.source.db.FileSourceDb.LineOrBuilder getLinesOrBuilder( - int index) { + int index) { if (linesBuilder_ == null) { - return lines_.get(index); - } else { + return lines_.get(index); } else { return linesBuilder_.getMessageOrBuilder(index); } } - /** * repeated .org.sonar.server.source.db.Line lines = 1; */ - public java.util.List - getLinesOrBuilderList() { + public java.util.List + getLinesOrBuilderList() { if (linesBuilder_ != null) { return linesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(lines_); } } - /** * repeated .org.sonar.server.source.db.Line lines = 1; */ public org.sonar.server.source.db.FileSourceDb.Line.Builder addLinesBuilder() { return getLinesFieldBuilder().addBuilder( - org.sonar.server.source.db.FileSourceDb.Line.getDefaultInstance()); + org.sonar.server.source.db.FileSourceDb.Line.getDefaultInstance()); } - /** * repeated .org.sonar.server.source.db.Line lines = 1; */ public org.sonar.server.source.db.FileSourceDb.Line.Builder addLinesBuilder( - int index) { + int index) { return getLinesFieldBuilder().addBuilder( - index, org.sonar.server.source.db.FileSourceDb.Line.getDefaultInstance()); + index, org.sonar.server.source.db.FileSourceDb.Line.getDefaultInstance()); } - /** * repeated .org.sonar.server.source.db.Line lines = 1; */ - public java.util.List - getLinesBuilderList() { + public java.util.List + getLinesBuilderList() { return getLinesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilder< - org.sonar.server.source.db.FileSourceDb.Line, org.sonar.server.source.db.FileSourceDb.Line.Builder, org.sonar.server.source.db.FileSourceDb.LineOrBuilder> - getLinesFieldBuilder() { + org.sonar.server.source.db.FileSourceDb.Line, org.sonar.server.source.db.FileSourceDb.Line.Builder, org.sonar.server.source.db.FileSourceDb.LineOrBuilder> + getLinesFieldBuilder() { if (linesBuilder_ == null) { linesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - org.sonar.server.source.db.FileSourceDb.Line, org.sonar.server.source.db.FileSourceDb.Line.Builder, org.sonar.server.source.db.FileSourceDb.LineOrBuilder>( - lines_, - ((bitField0_ & 0x00000001) == 0x00000001), - getParentForChildren(), - isClean()); + org.sonar.server.source.db.FileSourceDb.Line, org.sonar.server.source.db.FileSourceDb.Line.Builder, org.sonar.server.source.db.FileSourceDb.LineOrBuilder>( + lines_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); lines_ = null; } return linesBuilder_; @@ -3206,38 +2979,56 @@ public final class FileSourceDb { // @@protoc_insertion_point(class_scope:org.sonar.server.source.db.Data) } - private static final com.google.protobuf.Descriptors.Descriptor internal_static_org_sonar_server_source_db_Line_descriptor; - private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_org_sonar_server_source_db_Line_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor internal_static_org_sonar_server_source_db_Data_descriptor; - private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_org_sonar_server_source_db_Data_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_org_sonar_server_source_db_Line_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_org_sonar_server_source_db_Line_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_org_sonar_server_source_db_Data_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_org_sonar_server_source_db_Data_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { + getDescriptor() { return descriptor; } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { java.lang.String[] descriptorData = { "\n\024file_source_db.proto\022\032org.sonar.server" + - ".source.db\"\224\003\n\004Line\022\014\n\004line\030\001 \001(\005\022\016\n\006sou" + - "rce\030\002 \001(\t\022\024\n\014scm_revision\030\003 \001(\t\022\022\n\nscm_a" + - "uthor\030\004 \001(\t\022\020\n\010scm_date\030\005 \001(\003\022\024\n\014ut_line" + - "_hits\030\006 \001(\005\022\025\n\rut_conditions\030\007 \001(\005\022\035\n\025ut" + - "_covered_conditions\030\010 \001(\005\022\024\n\014it_line_hit" + - "s\030\t \001(\005\022\025\n\rit_conditions\030\n \001(\005\022\035\n\025it_cov" + - "ered_conditions\030\013 \001(\005\022\031\n\021overall_line_hi" + - "ts\030\014 \001(\005\022\032\n\022overall_conditions\030\r \001(\005\022\"\n\032" + - "overall_covered_conditions\030\016 \001(\005\022\024\n\014high", - "lighting\030\017 \001(\t\022\017\n\007symbols\030\020 \001(\t\022\030\n\014dupli" + - "cations\030\021 \003(\005B\002\020\001\"7\n\004Data\022/\n\005lines\030\001 \003(\013" + - "2 .org.sonar.server.source.db.LineB\002H\001" + ".source.db\"\223\003\n\004Line\022\014\n\004line\030\001 \001(\005\022\016\n\006sou" + + "rce\030\002 \001(\t\022\024\n\014scm_revision\030\003 \001(\t\022\022\n\nscm_a" + + "uthor\030\004 \001(\t\022\020\n\010scm_date\030\005 \001(\003\022\024\n\014ut_line" + + "_hits\030\006 \001(\005\022\025\n\rut_conditions\030\007 \001(\005\022\035\n\025ut" + + "_covered_conditions\030\010 \001(\005\022\024\n\014it_line_hit" + + "s\030\t \001(\005\022\025\n\rit_conditions\030\n \001(\005\022\035\n\025it_cov" + + "ered_conditions\030\013 \001(\005\022\031\n\021overall_line_hi" + + "ts\030\014 \001(\005\022\032\n\022overall_conditions\030\r \001(\005\022\"\n\032" + + "overall_covered_conditions\030\016 \001(\005\022\024\n\014high", + "lighting\030\017 \001(\t\022\017\n\007symbols\030\020 \001(\t\022\027\n\013dupli" + + "cation\030\021 \003(\005B\002\020\001\"7\n\004Data\022/\n\005lines\030\001 \003(\0132" + + " .org.sonar.server.source.db.LineB\002H\001" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { + com.google.protobuf.Descriptors.FileDescriptor root) { descriptor = root; + internal_static_org_sonar_server_source_db_Line_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_org_sonar_server_source_db_Line_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_org_sonar_server_source_db_Line_descriptor, + new java.lang.String[] { "Line", "Source", "ScmRevision", "ScmAuthor", "ScmDate", "UtLineHits", "UtConditions", "UtCoveredConditions", "ItLineHits", "ItConditions", "ItCoveredConditions", "OverallLineHits", "OverallConditions", "OverallCoveredConditions", "Highlighting", "Symbols", "Duplication", }); + internal_static_org_sonar_server_source_db_Data_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_org_sonar_server_source_db_Data_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_org_sonar_server_source_db_Data_descriptor, + new java.lang.String[] { "Lines", }); return null; } }; @@ -3245,19 +3036,6 @@ public final class FileSourceDb { .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { }, assigner); - internal_static_org_sonar_server_source_db_Line_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_org_sonar_server_source_db_Line_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_org_sonar_server_source_db_Line_descriptor, - new java.lang.String[] {"Line", "Source", "ScmRevision", "ScmAuthor", "ScmDate", "UtLineHits", "UtConditions", "UtCoveredConditions", "ItLineHits", "ItConditions", - "ItCoveredConditions", "OverallLineHits", "OverallConditions", "OverallCoveredConditions", "Highlighting", "Symbols", "Duplications",}); - internal_static_org_sonar_server_source_db_Data_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_org_sonar_server_source_db_Data_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_org_sonar_server_source_db_Data_descriptor, - new java.lang.String[] {"Lines",}); } // @@protoc_insertion_point(outer_class_scope) diff --git a/sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/output/BatchReportReader.java b/sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/output/BatchReportReader.java index a2cee3bd75f..58807f83d40 100644 --- a/sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/output/BatchReportReader.java +++ b/sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/output/BatchReportReader.java @@ -55,7 +55,7 @@ public class BatchReportReader { if (file.exists() && file.isFile()) { // all the issues are loaded in memory BatchReport.Issues issues = ProtobufUtil.readFile(file, BatchReport.Issues.PARSER); - return issues.getListList(); + return issues.getIssueList(); } return Collections.emptyList(); } diff --git a/sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/output/BatchReportWriter.java b/sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/output/BatchReportWriter.java index 55ced1fa354..47f62c80b90 100644 --- a/sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/output/BatchReportWriter.java +++ b/sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/output/BatchReportWriter.java @@ -58,7 +58,7 @@ public class BatchReportWriter { public void writeComponentIssues(int componentRef, Iterable issues) { BatchReport.Issues.Builder issuesBuilder = BatchReport.Issues.newBuilder(); issuesBuilder.setComponentRef(componentRef); - issuesBuilder.addAllList(issues); + issuesBuilder.addAllIssue(issues); File file = fileStructure.fileFor(FileStructure.Domain.ISSUES, componentRef); ProtobufUtil.writeToFile(issuesBuilder.build(), file); } @@ -71,7 +71,7 @@ public class BatchReportWriter { BatchReport.Issues.Builder issuesBuilder = BatchReport.Issues.newBuilder(); issuesBuilder.setComponentRef(componentRef); issuesBuilder.setComponentUuid(componentUuid); - issuesBuilder.addAllList(issues); + issuesBuilder.addAllIssue(issues); File file = fileStructure.fileFor(FileStructure.Domain.ISSUES_ON_DELETED, componentRef); ProtobufUtil.writeToFile(issuesBuilder.build(), file); } diff --git a/sonar-batch-protocol/src/main/protobuf/batch_report.proto b/sonar-batch-protocol/src/main/protobuf/batch_report.proto index 58ba5c532d4..e159bedf516 100644 --- a/sonar-batch-protocol/src/main/protobuf/batch_report.proto +++ b/sonar-batch-protocol/src/main/protobuf/batch_report.proto @@ -60,8 +60,8 @@ message Component { optional ComponentType type = 4; optional bool is_test = 5; optional string language = 6; - repeated int32 child_refs = 7 [packed=true]; - repeated ComponentLink links = 10; + repeated int32 child_ref = 7 [packed=true]; + repeated ComponentLink link = 10; // temporary fields during development of computation stack optional int32 snapshot_id = 8; @@ -74,7 +74,7 @@ message Issue { optional int32 line = 3; optional string msg = 4; optional Severity severity = 5; - repeated string tags = 6; + repeated string tag = 6; // temporary fields during development of computation stack optional double effort_to_fix = 7; @@ -101,7 +101,7 @@ message Issue { message Issues { optional int32 component_ref = 1; - repeated Issue list = 2; + repeated Issue issue = 2; // Temporary field for issues on deleted components optional string component_uuid = 3; diff --git a/sonar-batch-protocol/src/main/protobuf/file_source_db.proto b/sonar-batch-protocol/src/main/protobuf/file_source_db.proto index cc29e17ccdc..a0068fad2d7 100644 --- a/sonar-batch-protocol/src/main/protobuf/file_source_db.proto +++ b/sonar-batch-protocol/src/main/protobuf/file_source_db.proto @@ -64,7 +64,7 @@ message Line { optional string highlighting = 15; optional string symbols = 16; - repeated int32 duplications = 17 [packed=true]; + repeated int32 duplication = 17 [packed=true]; } message Data { diff --git a/sonar-batch-protocol/src/test/java/org/sonar/batch/protocol/output/BatchReportReaderTest.java b/sonar-batch-protocol/src/test/java/org/sonar/batch/protocol/output/BatchReportReaderTest.java index cee15cf1c65..45117e47999 100644 --- a/sonar-batch-protocol/src/test/java/org/sonar/batch/protocol/output/BatchReportReaderTest.java +++ b/sonar-batch-protocol/src/test/java/org/sonar/batch/protocol/output/BatchReportReaderTest.java @@ -50,7 +50,7 @@ public class BatchReportReaderTest { assertThat(reader.readComponent(1).getUuid()).isEqualTo("UUID_A"); Issues deletedComponentIssues = reader.readDeletedComponentIssues(1); assertThat(deletedComponentIssues.getComponentUuid()).isEqualTo("compUuid"); - assertThat(deletedComponentIssues.getListList()).hasSize(1); + assertThat(deletedComponentIssues.getIssueList()).hasSize(1); } @Test(expected = IllegalStateException.class) @@ -62,7 +62,7 @@ public class BatchReportReaderTest { } @Test(expected = IllegalStateException.class) - public void fail_if_missing_file_on_deleted_component() throws Exception { + public void fail_if_missing_file_on_deleted_component() throws Exception { File dir = temp.newFolder(); BatchReportReader reader = new BatchReportReader(dir); diff --git a/sonar-batch-protocol/src/test/java/org/sonar/batch/protocol/output/BatchReportWriterTest.java b/sonar-batch-protocol/src/test/java/org/sonar/batch/protocol/output/BatchReportWriterTest.java index a26ba76d58d..dd9b619687c 100644 --- a/sonar-batch-protocol/src/test/java/org/sonar/batch/protocol/output/BatchReportWriterTest.java +++ b/sonar-batch-protocol/src/test/java/org/sonar/batch/protocol/output/BatchReportWriterTest.java @@ -78,8 +78,8 @@ public class BatchReportWriterTest { .setUuid("UUID_A") .setType(Constants.ComponentType.FILE) .setIsTest(false) - .addChildRefs(5) - .addChildRefs(42); + .addChildRef(5) + .addChildRef(42); writer.writeComponent(component.build()); assertThat(writer.hasComponentData(FileStructure.Domain.COMPONENT, 1)).isTrue(); @@ -87,7 +87,7 @@ public class BatchReportWriterTest { assertThat(file).exists().isFile(); BatchReport.Component read = ProtobufUtil.readFile(file, BatchReport.Component.PARSER); assertThat(read.getRef()).isEqualTo(1); - assertThat(read.getChildRefsList()).containsOnly(5, 42); + assertThat(read.getChildRefList()).containsOnly(5, 42); assertThat(read.hasName()).isFalse(); assertThat(read.getIsTest()).isFalse(); assertThat(read.getUuid()).isEqualTo("UUID_A"); @@ -116,7 +116,7 @@ public class BatchReportWriterTest { BatchReport.Issues read = ProtobufUtil.readFile(file, BatchReport.Issues.PARSER); assertThat(read.getComponentRef()).isEqualTo(1); assertThat(read.hasComponentUuid()).isFalse(); - assertThat(read.getListCount()).isEqualTo(1); + assertThat(read.getIssueCount()).isEqualTo(1); } @Test @@ -142,6 +142,6 @@ public class BatchReportWriterTest { BatchReport.Issues read = ProtobufUtil.readFile(file, BatchReport.Issues.PARSER); assertThat(read.getComponentRef()).isEqualTo(1); assertThat(read.getComponentUuid()).isEqualTo("componentUuid"); - assertThat(read.getListCount()).isEqualTo(1); + assertThat(read.getIssueCount()).isEqualTo(1); } } diff --git a/sonar-batch/src/main/java/org/sonar/batch/index/SourceDataFactory.java b/sonar-batch/src/main/java/org/sonar/batch/index/SourceDataFactory.java index 0b7d9414f35..2aa0b854e01 100644 --- a/sonar-batch/src/main/java/org/sonar/batch/index/SourceDataFactory.java +++ b/sonar-batch/src/main/java/org/sonar/batch/index/SourceDataFactory.java @@ -43,12 +43,7 @@ import org.sonar.core.source.db.FileSourceDto; import org.sonar.server.source.db.FileSourceDb; import java.io.IOException; -import java.util.ArrayList; -import java.util.Collections; -import java.util.Comparator; -import java.util.Iterator; -import java.util.List; -import java.util.Map; +import java.util.*; /** * Consolidate different caches for the export of file sources to server. @@ -362,7 +357,7 @@ public class SourceDataFactory implements BatchComponent { int currentLine = block.startLine(); for (int i = 0; i < block.length(); i++) { if (currentLine <= to.getLinesCount()) { - to.getLinesBuilder(currentLine - 1).addDuplications(blockId); + to.getLinesBuilder(currentLine - 1).addDuplication(blockId); currentLine++; } } diff --git a/sonar-batch/src/main/java/org/sonar/batch/report/ComponentsPublisher.java b/sonar-batch/src/main/java/org/sonar/batch/report/ComponentsPublisher.java index 06f5998bb7d..4f93d6fbcaf 100644 --- a/sonar-batch/src/main/java/org/sonar/batch/report/ComponentsPublisher.java +++ b/sonar-batch/src/main/java/org/sonar/batch/report/ComponentsPublisher.java @@ -89,7 +89,7 @@ public class ComponentsPublisher implements ReportPublisher { builder.setLanguage(lang); } for (BatchResource child : batchResource.children()) { - builder.addChildRefs(child.batchId()); + builder.addChildRef(child.batchId()); } if (isRealProjectOrModule(r)) { ProjectDefinition def = getProjectDefinition(reactor, r.getKey()); @@ -128,7 +128,7 @@ public class ComponentsPublisher implements ReportPublisher { if (StringUtils.isNotBlank(link)) { linkBuilder.setType(linkType); linkBuilder.setHref(link); - componentBuilder.addLinks(linkBuilder.build()); + componentBuilder.addLink(linkBuilder.build()); linkBuilder.clear(); } } diff --git a/sonar-batch/src/main/java/org/sonar/batch/report/IssuesPublisher.java b/sonar-batch/src/main/java/org/sonar/batch/report/IssuesPublisher.java index 0cefc7d25db..540c3fb723f 100644 --- a/sonar-batch/src/main/java/org/sonar/batch/report/IssuesPublisher.java +++ b/sonar-batch/src/main/java/org/sonar/batch/report/IssuesPublisher.java @@ -30,8 +30,8 @@ import org.sonar.batch.index.BatchResource; import org.sonar.batch.index.ResourceCache; import org.sonar.batch.issue.IssueCache; import org.sonar.batch.protocol.Constants; -import org.sonar.batch.protocol.output.BatchReportWriter; import org.sonar.batch.protocol.output.BatchReport; +import org.sonar.batch.protocol.output.BatchReportWriter; import javax.annotation.Nullable; @@ -114,7 +114,7 @@ public class IssuesPublisher implements ReportPublisher { builder.setRuleRepository(issue.ruleKey().repository()); builder.setRuleKey(issue.ruleKey().rule()); builder.setAttributes(KeyValueFormat.format(issue.attributes())); - builder.addAllTags(issue.tags()); + builder.addAllTag(issue.tags()); builder.setMustSendNotification(issue.mustSendNotifications()); builder.setIsChanged(issue.isChanged()); diff --git a/sonar-batch/src/test/java/org/sonar/batch/index/SourceDataFactoryTest.java b/sonar-batch/src/test/java/org/sonar/batch/index/SourceDataFactoryTest.java index 131ba214571..f55cd36f09f 100644 --- a/sonar-batch/src/test/java/org/sonar/batch/index/SourceDataFactoryTest.java +++ b/sonar-batch/src/test/java/org/sonar/batch/index/SourceDataFactoryTest.java @@ -187,9 +187,9 @@ public class SourceDataFactoryTest { sut.applyDuplications(inputFile.key(), output); FileSourceDb.Data data = output.build(); - assertThat(data.getLines(0).getDuplicationsList()).containsExactly(1, 3); - assertThat(data.getLines(1).getDuplicationsList()).containsExactly(3); - assertThat(data.getLines(2).getDuplicationsList()).containsExactly(2); + assertThat(data.getLines(0).getDuplicationList()).containsExactly(1, 3); + assertThat(data.getLines(1).getDuplicationList()).containsExactly(3); + assertThat(data.getLines(2).getDuplicationList()).containsExactly(2); } @Test @@ -203,9 +203,9 @@ public class SourceDataFactoryTest { sut.applyDuplications(inputFile.key(), output); FileSourceDb.Data data = output.build(); - assertThat(data.getLines(0).getDuplicationsList()).containsExactly(1); - assertThat(data.getLines(1).getDuplicationsList()).containsExactly(1); - assertThat(data.getLines(2).getDuplicationsList()).containsExactly(1); + assertThat(data.getLines(0).getDuplicationList()).containsExactly(1); + assertThat(data.getLines(1).getDuplicationList()).containsExactly(1); + assertThat(data.getLines(2).getDuplicationList()).containsExactly(1); } @Test diff --git a/sonar-batch/src/test/java/org/sonar/batch/report/ComponentsPublisherTest.java b/sonar-batch/src/test/java/org/sonar/batch/report/ComponentsPublisherTest.java index 3a97334d075..43c2e697baa 100644 --- a/sonar-batch/src/test/java/org/sonar/batch/report/ComponentsPublisherTest.java +++ b/sonar-batch/src/test/java/org/sonar/batch/report/ComponentsPublisherTest.java @@ -108,7 +108,7 @@ public class ComponentsPublisherTest { BatchReportReader reader = new BatchReportReader(outputDir); Component rootProtobuf = reader.readComponent(1); - assertThat(rootProtobuf.getLinksCount()).isEqualTo(0); + assertThat(rootProtobuf.getLinkCount()).isEqualTo(0); } @@ -146,13 +146,13 @@ public class ComponentsPublisherTest { BatchReportReader reader = new BatchReportReader(outputDir); Component rootProtobuf = reader.readComponent(1); - assertThat(rootProtobuf.getLinksCount()).isEqualTo(1); - assertThat(rootProtobuf.getLinks(0).getType()).isEqualTo(ComponentLinkType.HOME); - assertThat(rootProtobuf.getLinks(0).getHref()).isEqualTo("http://home"); + assertThat(rootProtobuf.getLinkCount()).isEqualTo(1); + assertThat(rootProtobuf.getLink(0).getType()).isEqualTo(ComponentLinkType.HOME); + assertThat(rootProtobuf.getLink(0).getHref()).isEqualTo("http://home"); Component module1Protobuf = reader.readComponent(2); - assertThat(module1Protobuf.getLinksCount()).isEqualTo(1); - assertThat(module1Protobuf.getLinks(0).getType()).isEqualTo(ComponentLinkType.CI); - assertThat(module1Protobuf.getLinks(0).getHref()).isEqualTo("http://ci"); + assertThat(module1Protobuf.getLinkCount()).isEqualTo(1); + assertThat(module1Protobuf.getLink(0).getType()).isEqualTo(ComponentLinkType.CI); + assertThat(module1Protobuf.getLink(0).getHref()).isEqualTo("http://ci"); } } diff --git a/sonar-batch/src/test/java/org/sonar/batch/report/IssuesPublisherTest.java b/sonar-batch/src/test/java/org/sonar/batch/report/IssuesPublisherTest.java index 9a020765298..ecfd2377b17 100644 --- a/sonar-batch/src/test/java/org/sonar/batch/report/IssuesPublisherTest.java +++ b/sonar-batch/src/test/java/org/sonar/batch/report/IssuesPublisherTest.java @@ -33,9 +33,9 @@ import org.sonar.api.rule.RuleKey; import org.sonar.api.utils.Duration; import org.sonar.batch.index.ResourceCache; import org.sonar.batch.issue.IssueCache; -import org.sonar.batch.protocol.output.BatchReportWriter; import org.sonar.batch.protocol.output.BatchReport.Metadata; import org.sonar.batch.protocol.output.BatchReportReader; +import org.sonar.batch.protocol.output.BatchReportWriter; import java.io.File; import java.util.Arrays; @@ -160,7 +160,7 @@ public class IssuesPublisherTest { assertThat(reader.readComponentIssues(1)).hasSize(0); assertThat(reader.readComponentIssues(2)).hasSize(0); assertThat(reader.readDeletedComponentIssues(1).getComponentUuid()).isEqualTo("deletedUuid"); - assertThat(reader.readDeletedComponentIssues(1).getListList()).hasSize(2); + assertThat(reader.readDeletedComponentIssues(1).getIssueList()).hasSize(2); } } -- 2.39.5