From: Julien Lancelot Date: Thu, 21 May 2015 15:30:43 +0000 (+0200) Subject: SONAR-6259 Use component caches to get id or uuid X-Git-Tag: 5.2-RC1~1871 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=db30e4ece39c2dfd0c41b4d9eb612d5b494afd18;p=sonarqube.git SONAR-6259 Use component caches to get id or uuid --- diff --git a/server/sonar-server-benchmarks/src/test/java/org/sonar/server/benchmark/PersistFileSourcesStepTest.java b/server/sonar-server-benchmarks/src/test/java/org/sonar/server/benchmark/PersistFileSourcesStepTest.java index eaabcd82d7b..02e71a9eff2 100644 --- a/server/sonar-server-benchmarks/src/test/java/org/sonar/server/benchmark/PersistFileSourcesStepTest.java +++ b/server/sonar-server-benchmarks/src/test/java/org/sonar/server/benchmark/PersistFileSourcesStepTest.java @@ -35,6 +35,8 @@ import org.sonar.batch.protocol.output.BatchReportWriter; import org.sonar.core.persistence.DbTester; import org.sonar.server.component.ComponentTesting; import org.sonar.server.computation.ComputationContext; +import org.sonar.server.computation.component.DbComponentsRefCache; +import org.sonar.server.computation.component.DbComponentsRefCache.DbComponent; import org.sonar.server.computation.step.PersistFileSourcesStep; import org.sonar.server.db.DbClient; import org.sonar.server.source.db.FileSourceDao; @@ -54,6 +56,8 @@ public class PersistFileSourcesStepTest { public static final int NUMBER_OF_LINES = 1000; public static final String PROJECT_UUID = Uuids.create(); + DbComponentsRefCache dbComponentsRefCache = new DbComponentsRefCache(); + @Rule public TemporaryFolder temp = new TemporaryFolder(); @@ -75,7 +79,7 @@ public class PersistFileSourcesStepTest { long start = System.currentTimeMillis(); - PersistFileSourcesStep step = new PersistFileSourcesStep(dbClient, System2.INSTANCE); + PersistFileSourcesStep step = new PersistFileSourcesStep(dbClient, System2.INSTANCE, dbComponentsRefCache); step.execute(new ComputationContext(new BatchReportReader(reportDir), ComponentTesting.newProjectDto(PROJECT_UUID))); long end = System.currentTimeMillis(); @@ -97,8 +101,9 @@ public class PersistFileSourcesStepTest { .build()); BatchReport.Component.Builder project = BatchReport.Component.newBuilder() .setRef(1) - .setType(Constants.ComponentType.PROJECT) - .setUuid(PROJECT_UUID); + .setType(Constants.ComponentType.PROJECT); + + dbComponentsRefCache.addComponent(1, new DbComponent(1L, "PROJECT", PROJECT_UUID)); for (int fileRef = 2; fileRef <= NUMBER_OF_FILES + 1; fileRef++) { generateFileReport(writer, fileRef); @@ -118,10 +123,11 @@ public class PersistFileSourcesStepTest { writer.writeComponent(BatchReport.Component.newBuilder() .setRef(fileRef) .setType(Constants.ComponentType.FILE) - .setUuid(Uuids.create()) .setLines(NUMBER_OF_LINES) .build()); + dbComponentsRefCache.addComponent(fileRef, new DbComponent((long) fileRef, "PROJECT:" + fileRef, Uuids.create())); + FileUtils.writeLines(writer.getSourceFile(fileRef), lineData.lines); writer.writeComponentCoverage(fileRef, lineData.coverages); writer.writeComponentChangesets(lineData.changesetsBuilder.setComponentRef(fileRef).build()); diff --git a/server/sonar-server/src/main/java/org/sonar/server/component/db/ComponentDao.java b/server/sonar-server/src/main/java/org/sonar/server/component/db/ComponentDao.java index 95b22226bcd..fdebb5a6f69 100644 --- a/server/sonar-server/src/main/java/org/sonar/server/component/db/ComponentDao.java +++ b/server/sonar-server/src/main/java/org/sonar/server/component/db/ComponentDao.java @@ -23,9 +23,9 @@ package org.sonar.server.component.db; import com.google.common.base.Function; import com.google.common.collect.Lists; import org.apache.ibatis.session.RowBounds; -import org.sonar.api.server.ServerSide; import org.sonar.api.resources.Qualifiers; import org.sonar.api.resources.Scopes; +import org.sonar.api.server.ServerSide; import org.sonar.core.component.ComponentDto; import org.sonar.core.component.FilePathWithHashDto; import org.sonar.core.component.UuidWithProjectUuidDto; @@ -136,8 +136,8 @@ public class ComponentDao implements DaoComponent { }); } - public List selectComponentsFromProjectUuid(DbSession session, String projectKey) { - return mapper(session).selectComponentsFromProjectUuid(projectKey); + public List selectComponentsFromProjectKey(DbSession session, String projectKey) { + return mapper(session).selectComponentsFromProjectKey(projectKey); } public List selectByKeys(DbSession session, Collection keys) { diff --git a/server/sonar-server/src/main/java/org/sonar/server/computation/ComputationContainer.java b/server/sonar-server/src/main/java/org/sonar/server/computation/ComputationContainer.java index 1ead2800482..32525bf6cb4 100644 --- a/server/sonar-server/src/main/java/org/sonar/server/computation/ComputationContainer.java +++ b/server/sonar-server/src/main/java/org/sonar/server/computation/ComputationContainer.java @@ -21,6 +21,8 @@ package org.sonar.server.computation; import org.sonar.core.issue.db.UpdateConflictResolver; import org.sonar.core.platform.ComponentContainer; +import org.sonar.server.computation.component.ComputeComponentsRefCache; +import org.sonar.server.computation.component.DbComponentsRefCache; import org.sonar.server.computation.issue.IssueCache; import org.sonar.server.computation.issue.IssueComputation; import org.sonar.server.computation.issue.RuleCache; @@ -47,6 +49,10 @@ public class ComputationContainer { ComputationService.class, ComputationSteps.class, + // component caches + ComputeComponentsRefCache.class, + DbComponentsRefCache.class, + // issues ScmAccountCacheLoader.class, ScmAccountCache.class, diff --git a/server/sonar-server/src/main/java/org/sonar/server/computation/component/Component.java b/server/sonar-server/src/main/java/org/sonar/server/computation/component/Component.java deleted file mode 100644 index e3852bc302b..00000000000 --- a/server/sonar-server/src/main/java/org/sonar/server/computation/component/Component.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * SonarQube, open source software quality management tool. - * Copyright (C) 2008-2014 SonarSource - * mailto:contact AT sonarsource DOT com - * - * SonarQube is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * SonarQube is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software Foundation, - * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - */ - -package org.sonar.server.computation.component; - -public class Component { - - private Long id; - private String uuid; - private String key; - - public Long getId() { - return id; - } - - public Component setId(Long id) { - this.id = id; - return this; - } - - public String getKey() { - return key; - } - - public Component setKey(String key) { - this.key = key; - return this; - } - - public String getUuid() { - return uuid; - } - - public Component setUuid(String uuid) { - this.uuid = uuid; - return this; - } -} diff --git a/server/sonar-server/src/main/java/org/sonar/server/computation/component/ComputeComponentsRefCache.java b/server/sonar-server/src/main/java/org/sonar/server/computation/component/ComputeComponentsRefCache.java new file mode 100644 index 00000000000..76b32768b76 --- /dev/null +++ b/server/sonar-server/src/main/java/org/sonar/server/computation/component/ComputeComponentsRefCache.java @@ -0,0 +1,68 @@ +/* + * SonarQube, open source software quality management tool. + * Copyright (C) 2008-2014 SonarSource + * mailto:contact AT sonarsource DOT com + * + * SonarQube is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * SonarQube is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program; if not, write to the Free Software Foundation, + * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + */ + +package org.sonar.server.computation.component; + +import java.util.HashMap; +import java.util.Map; + +/** + * Cache of components (uuid and key) that can be used in compute steps (For instance for issue computation) + */ +public class ComputeComponentsRefCache { + + private final Map componentsByRef; + + public ComputeComponentsRefCache() { + componentsByRef = new HashMap<>(); + } + + public ComputeComponentsRefCache addComponent(Integer ref, ComputeComponent computeComponent) { + componentsByRef.put(ref, computeComponent); + return this; + } + + public ComputeComponent getByRef(Integer ref) { + ComputeComponent computeComponent = componentsByRef.get(ref); + if (computeComponent == null) { + throw new IllegalArgumentException(String.format("Component ref '%s' does not exists", ref)); + } + return componentsByRef.get(ref); + } + + public static class ComputeComponent { + private String uuid; + private String key; + + public ComputeComponent(String key, String uuid) { + this.key = key; + this.uuid = uuid; + } + + public String getKey() { + return key; + } + + public String getUuid() { + return uuid; + } + + } +} diff --git a/server/sonar-server/src/main/java/org/sonar/server/computation/component/DbComponentsRefCache.java b/server/sonar-server/src/main/java/org/sonar/server/computation/component/DbComponentsRefCache.java new file mode 100644 index 00000000000..3c9dda687f4 --- /dev/null +++ b/server/sonar-server/src/main/java/org/sonar/server/computation/component/DbComponentsRefCache.java @@ -0,0 +1,76 @@ +/* + * SonarQube, open source software quality management tool. + * Copyright (C) 2008-2014 SonarSource + * mailto:contact AT sonarsource DOT com + * + * SonarQube is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * SonarQube is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program; if not, write to the Free Software Foundation, + * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + */ + +package org.sonar.server.computation.component; + +import java.util.HashMap; +import java.util.Map; + +/** + * Cache of components (id, uuid and key) that can be used in the persistence steps + * Snapshot id will also be added in this cache + */ +public class DbComponentsRefCache { + + private final Map componentsByRef; + + public DbComponentsRefCache() { + componentsByRef = new HashMap<>(); + } + + public DbComponentsRefCache addComponent(Integer ref, DbComponent component) { + componentsByRef.put(ref, component); + return this; + } + + public DbComponent getByRef(Integer ref) { + DbComponent component = componentsByRef.get(ref); + if (component == null) { + throw new IllegalArgumentException(String.format("Component ref '%s' does not exists", ref)); + } + return componentsByRef.get(ref); + } + + public static class DbComponent { + + private Long id; + private String uuid; + private String key; + + public DbComponent(Long id, String key, String uuid) { + this.id = id; + this.key = key; + this.uuid = uuid; + } + + public Long getId() { + return id; + } + + public String getKey() { + return key; + } + + public String getUuid() { + return uuid; + } + + } +} 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 c6d8d4fd252..8efbcf20648 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 @@ -61,11 +61,12 @@ public class IssueComputation { this.diskIssuesAppender = issueCache.newAppender(); } - public void processComponentIssues(ComputationContext context, Iterable issues, String componentUuid, @Nullable Integer componentReportRef) { + public void processComponentIssues(ComputationContext context, Iterable issues, String componentUuid, @Nullable Integer componentReportRef, + String projectKey, String projectUuid) { linesCache.init(componentUuid, componentReportRef, context.getReportReader()); computeDefaultAssignee(context.getProjectSettings().getString(CoreProperties.DEFAULT_ISSUE_ASSIGNEE)); for (BatchReport.Issue reportIssue : issues) { - DefaultIssue issue = toDefaultIssue(context, componentUuid, reportIssue); + DefaultIssue issue = toDefaultIssue(context, componentUuid, reportIssue, projectKey, projectUuid); if (issue.isNew()) { guessAuthor(issue); autoAssign(issue, defaultAssignee); @@ -76,7 +77,7 @@ public class IssueComputation { linesCache.clear(); } - private DefaultIssue toDefaultIssue(ComputationContext context, String componentUuid, BatchReport.Issue issue) { + private DefaultIssue toDefaultIssue(ComputationContext context, String componentUuid, BatchReport.Issue issue, String projectKey, String projectUuid) { DefaultIssue target = new DefaultIssue(); target.setKey(issue.getUuid()); target.setComponentUuid(componentUuid); @@ -85,8 +86,8 @@ public class IssueComputation { target.setManualSeverity(issue.getManualSeverity()); target.setMessage(issue.hasMsg() ? issue.getMsg() : null); target.setLine(issue.hasLine() ? issue.getLine() : null); - target.setProjectUuid(context.getProject().uuid()); - target.setProjectKey(context.getProject().key()); + target.setProjectUuid(projectUuid); + target.setProjectKey(projectKey); target.setEffortToFix(issue.hasEffortToFix() ? issue.getEffortToFix() : null); target.setDebt(issue.hasDebtInMinutes() ? Duration.create(issue.getDebtInMinutes()) : null); if (issue.hasDiffFields()) { diff --git a/server/sonar-server/src/main/java/org/sonar/server/computation/step/ComponentUuidsCache.java b/server/sonar-server/src/main/java/org/sonar/server/computation/step/ComponentUuidsCache.java deleted file mode 100644 index e7f60c6def8..00000000000 --- a/server/sonar-server/src/main/java/org/sonar/server/computation/step/ComponentUuidsCache.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * SonarQube, open source software quality management tool. - * Copyright (C) 2008-2014 SonarSource - * mailto:contact AT sonarsource DOT com - * - * SonarQube is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * SonarQube is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software Foundation, - * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - */ - -package org.sonar.server.computation.step; - -import com.google.common.cache.Cache; -import com.google.common.cache.CacheBuilder; -import com.google.common.cache.CacheLoader; -import org.sonar.batch.protocol.output.BatchReportReader; - -import java.util.concurrent.ExecutionException; - -/** - * Waiting for having all components persisted by the Compute Engine, this class contains a cache of component uuids by their report reference - */ -public class ComponentUuidsCache { - - private final Cache componentRefToUuidCache; - - public ComponentUuidsCache(final BatchReportReader reader) { - this.componentRefToUuidCache = CacheBuilder.newBuilder() - .maximumSize(500_000) - .build( - new CacheLoader() { - @Override - public String load(Integer ref) { - return reader.readComponent(ref).getUuid(); - } - }); - } - - public String getUuidFromRef(int componentRef) { - try { - return componentRefToUuidCache.get(componentRef); - } catch (ExecutionException e) { - throw new IllegalStateException(String.format("Error while retrieving uuid of component ref '%d'", componentRef), e); - } - } -} diff --git a/server/sonar-server/src/main/java/org/sonar/server/computation/step/ComponentsCache.java b/server/sonar-server/src/main/java/org/sonar/server/computation/step/ComponentsCache.java deleted file mode 100644 index 5865f0e034f..00000000000 --- a/server/sonar-server/src/main/java/org/sonar/server/computation/step/ComponentsCache.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * SonarQube, open source software quality management tool. - * Copyright (C) 2008-2014 SonarSource - * mailto:contact AT sonarsource DOT com - * - * SonarQube is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * SonarQube is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software Foundation, - * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - */ - -package org.sonar.server.computation.step; - -import org.sonar.batch.protocol.output.BatchReportReader; -import org.sonar.server.computation.component.Component; - -import java.util.HashMap; -import java.util.Map; - -/** - * To be finished - */ -public class ComponentsCache { - - private final Map componentsByRef; - - public ComponentsCache(final BatchReportReader reader) { - this.componentsByRef = new HashMap<>(); - } - - public Component getComponent(int componentRef) { - // TODO should we return null or fail on unknown component ? - return null; - } -} diff --git a/server/sonar-server/src/main/java/org/sonar/server/computation/step/ComputationSteps.java b/server/sonar-server/src/main/java/org/sonar/server/computation/step/ComputationSteps.java index 25d58b8cc40..134418ae278 100644 --- a/server/sonar-server/src/main/java/org/sonar/server/computation/step/ComputationSteps.java +++ b/server/sonar-server/src/main/java/org/sonar/server/computation/step/ComputationSteps.java @@ -37,10 +37,13 @@ public class ComputationSteps { */ public static List> orderedStepClasses() { return Arrays.asList( + FeedComponentsCacheStep.class, + // Read report ParseReportStep.class, // Persist data + PersistComponentsStep.class, PersistNumberOfDaysSinceLastCommitStep.class, PersistMeasuresStep.class, PersistIssuesStep.class, diff --git a/server/sonar-server/src/main/java/org/sonar/server/computation/step/FeedComponentsCacheStep.java b/server/sonar-server/src/main/java/org/sonar/server/computation/step/FeedComponentsCacheStep.java index 2ca84a4cb2c..7fdbc3f21cf 100644 --- a/server/sonar-server/src/main/java/org/sonar/server/computation/step/FeedComponentsCacheStep.java +++ b/server/sonar-server/src/main/java/org/sonar/server/computation/step/FeedComponentsCacheStep.java @@ -21,7 +21,6 @@ package org.sonar.server.computation.step; import com.google.common.collect.Maps; -import org.sonar.api.resources.Qualifiers; import org.sonar.api.utils.internal.Uuids; import org.sonar.batch.protocol.Constants; import org.sonar.batch.protocol.output.BatchReport; @@ -31,67 +30,65 @@ import org.sonar.core.component.ComponentKeys; import org.sonar.core.persistence.DbSession; import org.sonar.core.util.NonNullInputFunction; import org.sonar.server.computation.ComputationContext; -import org.sonar.server.computation.component.Component; +import org.sonar.server.computation.component.ComputeComponentsRefCache; import org.sonar.server.db.DbClient; -import java.util.HashMap; import java.util.List; import java.util.Map; /** - * To be finished + * Read all components from the batch report and feed the cache containing component uuid and key */ public class FeedComponentsCacheStep implements ComputationStep { private final DbClient dbClient; + private final ComputeComponentsRefCache computeComponentsRefCache; - public FeedComponentsCacheStep(DbClient dbClient) { + public FeedComponentsCacheStep(DbClient dbClient, ComputeComponentsRefCache computeComponentsRefCache) { this.dbClient = dbClient; - } - - @Override - public String[] supportedProjectQualifiers() { - return new String[] {Qualifiers.PROJECT}; + this.computeComponentsRefCache = computeComponentsRefCache; } @Override public void execute(ComputationContext context) { DbSession session = dbClient.openSession(false); try { - List components = dbClient.componentDao().selectComponentsFromProjectUuid(session, context.getProject().uuid()); + List components = dbClient.componentDao().selectComponentsFromProjectKey(session, context.getProject().key()); Map componentDtosByKey = componentDtosByKey(components); - Map componentsByRef = new HashMap<>(); int rootComponentRef = context.getReportMetadata().getRootComponentRef(); - recursivelyProcessComponent(context, rootComponentRef, context.getReportReader().readComponent(rootComponentRef), componentDtosByKey, componentsByRef); + recursivelyProcessComponent(context, rootComponentRef, context.getReportReader().readComponent(rootComponentRef), componentDtosByKey); } finally { session.close(); } } - private void recursivelyProcessComponent(ComputationContext context, int componentRef, BatchReport.Component nearestModule, - Map componentDtosByKey, Map componentsByRef) { + private void recursivelyProcessComponent(ComputationContext context, int componentRef, BatchReport.Component nearestModule, Map componentDtosByKey) { BatchReportReader reportReader = context.getReportReader(); BatchReport.Component reportComponent = reportReader.readComponent(componentRef); - String componentKey = ComponentKeys.createKey(nearestModule.getKey(), reportComponent.getPath(), context.getReportMetadata().getBranch()); - Component component = new Component().setKey(componentKey); + String path = reportComponent.hasPath() ? reportComponent.getPath() : null; + String branch = context.getReportMetadata().hasBranch() ? context.getReportMetadata().getBranch() : null; + String componentKey = reportComponent.hasKey() ? + ComponentKeys.createKey(reportComponent.getKey(), branch) : + ComponentKeys.createKey(nearestModule.getKey(), path, branch); + ComponentDto componentDto = componentDtosByKey.get(componentKey); if (componentDto == null) { - component.setUuid(Uuids.create()); + computeComponentsRefCache.addComponent(componentRef, new ComputeComponentsRefCache.ComputeComponent(componentKey, Uuids.create())); } else { - component.setId(component.getId()); - component.setKey(componentKey); + computeComponentsRefCache.addComponent(componentRef, new ComputeComponentsRefCache.ComputeComponent(componentKey, componentDto.uuid())); } for (Integer childRef : reportComponent.getChildRefList()) { // If current component is not a module or a project, we need to keep the parent reference to the nearest module - BatchReport.Component nextNearestModule = !reportComponent.getType().equals(Constants.ComponentType.PROJECT) && !reportComponent.getType().equals(Constants.ComponentType.MODULE) ? + BatchReport.Component nextModuleParent = !reportComponent.getType().equals(Constants.ComponentType.PROJECT) + && !reportComponent.getType().equals(Constants.ComponentType.MODULE) ? nearestModule : reportComponent; - recursivelyProcessComponent(context, childRef, nextNearestModule, componentDtosByKey, componentsByRef); + recursivelyProcessComponent(context, childRef, nextModuleParent, componentDtosByKey); } } - private Map componentDtosByKey(List components){ + private Map componentDtosByKey(List components) { return Maps.uniqueIndex(components, new NonNullInputFunction() { @Override public String doApply(ComponentDto input) { diff --git a/server/sonar-server/src/main/java/org/sonar/server/computation/step/IndexComponentsStep.java b/server/sonar-server/src/main/java/org/sonar/server/computation/step/IndexComponentsStep.java index 60d3f219759..80f6cfb87a6 100644 --- a/server/sonar-server/src/main/java/org/sonar/server/computation/step/IndexComponentsStep.java +++ b/server/sonar-server/src/main/java/org/sonar/server/computation/step/IndexComponentsStep.java @@ -22,20 +22,23 @@ package org.sonar.server.computation.step; import org.sonar.core.resource.ResourceIndexerDao; import org.sonar.server.computation.ComputationContext; +import org.sonar.server.computation.component.DbComponentsRefCache; /** * Components are currently indexed in db table RESOURCE_INDEX, not in Elasticsearch */ public class IndexComponentsStep implements ComputationStep { private final ResourceIndexerDao resourceIndexerDao; + private final DbComponentsRefCache dbComponentsRefCache; - public IndexComponentsStep(ResourceIndexerDao resourceIndexerDao) { + public IndexComponentsStep(ResourceIndexerDao resourceIndexerDao, DbComponentsRefCache dbComponentsRefCache) { this.resourceIndexerDao = resourceIndexerDao; + this.dbComponentsRefCache = dbComponentsRefCache; } @Override public void execute(ComputationContext context) { - resourceIndexerDao.indexProject(context.getProject().getId()); + resourceIndexerDao.indexProject(dbComponentsRefCache.getByRef(context.getReportMetadata().getRootComponentRef()).getId()); } @Override diff --git a/server/sonar-server/src/main/java/org/sonar/server/computation/step/IndexSourceLinesStep.java b/server/sonar-server/src/main/java/org/sonar/server/computation/step/IndexSourceLinesStep.java index 35f0e12de9f..acdf08cb74d 100644 --- a/server/sonar-server/src/main/java/org/sonar/server/computation/step/IndexSourceLinesStep.java +++ b/server/sonar-server/src/main/java/org/sonar/server/computation/step/IndexSourceLinesStep.java @@ -20,19 +20,22 @@ package org.sonar.server.computation.step; import org.sonar.server.computation.ComputationContext; +import org.sonar.server.computation.component.DbComponentsRefCache; import org.sonar.server.source.index.SourceLineIndexer; public class IndexSourceLinesStep implements ComputationStep { private final SourceLineIndexer indexer; + private final DbComponentsRefCache dbComponentsRefCache; - public IndexSourceLinesStep(SourceLineIndexer indexer) { + public IndexSourceLinesStep(SourceLineIndexer indexer, DbComponentsRefCache dbComponentsRefCache) { this.indexer = indexer; + this.dbComponentsRefCache = dbComponentsRefCache; } @Override public void execute(ComputationContext context) { - indexer.index(context.getProject().uuid()); + indexer.index(dbComponentsRefCache.getByRef(context.getReportMetadata().getRootComponentRef()).getUuid()); } @Override diff --git a/server/sonar-server/src/main/java/org/sonar/server/computation/step/IndexTestsStep.java b/server/sonar-server/src/main/java/org/sonar/server/computation/step/IndexTestsStep.java index c6498ed21cb..b727452be99 100644 --- a/server/sonar-server/src/main/java/org/sonar/server/computation/step/IndexTestsStep.java +++ b/server/sonar-server/src/main/java/org/sonar/server/computation/step/IndexTestsStep.java @@ -21,19 +21,22 @@ package org.sonar.server.computation.step; import org.sonar.server.computation.ComputationContext; +import org.sonar.server.computation.component.DbComponentsRefCache; import org.sonar.server.test.index.TestIndexer; public class IndexTestsStep implements ComputationStep { private final TestIndexer indexer; + private final DbComponentsRefCache dbComponentsRefCache; - public IndexTestsStep(TestIndexer indexer) { + public IndexTestsStep(TestIndexer indexer, DbComponentsRefCache dbComponentsRefCache) { this.indexer = indexer; + this.dbComponentsRefCache = dbComponentsRefCache; } @Override public void execute(ComputationContext context) { - indexer.index(context.getProject().uuid()); + indexer.index(dbComponentsRefCache.getByRef(context.getReportMetadata().getRootComponentRef()).getUuid()); } @Override 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 af46d652ac4..04de00edbc8 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 @@ -23,6 +23,7 @@ package org.sonar.server.computation.step; import org.sonar.batch.protocol.output.BatchReport; import org.sonar.batch.protocol.output.BatchReportReader; import org.sonar.server.computation.ComputationContext; +import org.sonar.server.computation.component.ComputeComponentsRefCache; import org.sonar.server.computation.issue.IssueComputation; import java.util.List; @@ -30,9 +31,11 @@ import java.util.List; public class ParseReportStep implements ComputationStep { private final IssueComputation issueComputation; + private final ComputeComponentsRefCache computeComponentsRefCache; - public ParseReportStep(IssueComputation issueComputation) { + public ParseReportStep(IssueComputation issueComputation, ComputeComponentsRefCache computeComponentsRefCache) { this.issueComputation = issueComputation; + this.computeComponentsRefCache = computeComponentsRefCache; } @Override @@ -47,7 +50,9 @@ public class ParseReportStep implements ComputationStep { BatchReportReader reportReader = context.getReportReader(); BatchReport.Component component = reportReader.readComponent(componentRef); List issues = reportReader.readComponentIssues(componentRef); - issueComputation.processComponentIssues(context, issues, component.getUuid(), componentRef); + ComputeComponentsRefCache.ComputeComponent computeProject = computeComponentsRefCache.getByRef(context.getReportMetadata().getRootComponentRef()); + issueComputation.processComponentIssues(context, issues, computeComponentsRefCache.getByRef(componentRef).getUuid(), componentRef, computeProject.getKey(), + computeProject.getUuid()); for (Integer childRef : component.getChildRefList()) { recursivelyProcessComponent(context, childRef); } @@ -55,9 +60,10 @@ public class ParseReportStep implements ComputationStep { private void processDeletedComponents(ComputationContext context) { int deletedComponentsCount = context.getReportMetadata().getDeletedComponentsCount(); + ComputeComponentsRefCache.ComputeComponent computeProject = computeComponentsRefCache.getByRef(context.getReportMetadata().getRootComponentRef()); for (int componentRef = 1; componentRef <= deletedComponentsCount; componentRef++) { BatchReport.Issues issues = context.getReportReader().readDeletedComponentIssues(componentRef); - issueComputation.processComponentIssues(context, issues.getIssueList(), issues.getComponentUuid(), null); + issueComputation.processComponentIssues(context, issues.getIssueList(), issues.getComponentUuid(), null, computeProject.getKey(), computeProject.getUuid()); } } diff --git a/server/sonar-server/src/main/java/org/sonar/server/computation/step/PersistComponentsStep.java b/server/sonar-server/src/main/java/org/sonar/server/computation/step/PersistComponentsStep.java index 2fbcf62f2c8..765f8aa4163 100644 --- a/server/sonar-server/src/main/java/org/sonar/server/computation/step/PersistComponentsStep.java +++ b/server/sonar-server/src/main/java/org/sonar/server/computation/step/PersistComponentsStep.java @@ -26,15 +26,15 @@ import org.apache.commons.lang.ObjectUtils; import org.apache.commons.lang.StringUtils; import org.sonar.api.resources.Qualifiers; import org.sonar.api.resources.Scopes; -import org.sonar.api.utils.internal.Uuids; import org.sonar.batch.protocol.Constants; import org.sonar.batch.protocol.output.BatchReport; import org.sonar.batch.protocol.output.BatchReportReader; import org.sonar.core.component.ComponentDto; -import org.sonar.core.component.ComponentKeys; import org.sonar.core.persistence.DbSession; import org.sonar.core.util.NonNullInputFunction; import org.sonar.server.computation.ComputationContext; +import org.sonar.server.computation.component.ComputeComponentsRefCache; +import org.sonar.server.computation.component.DbComponentsRefCache; import org.sonar.server.db.DbClient; import javax.annotation.Nullable; @@ -45,21 +45,20 @@ import java.util.Map; public class PersistComponentsStep implements ComputationStep { private final DbClient dbClient; + private final ComputeComponentsRefCache computeComponentsRefCache; + private final DbComponentsRefCache dbComponentsRefCache; - public PersistComponentsStep(DbClient dbClient) { + public PersistComponentsStep(DbClient dbClient, ComputeComponentsRefCache computeComponentsRefCache, DbComponentsRefCache dbComponentsRefCache) { this.dbClient = dbClient; - } - - @Override - public String[] supportedProjectQualifiers() { - return new String[] {Qualifiers.PROJECT}; + this.computeComponentsRefCache = computeComponentsRefCache; + this.dbComponentsRefCache = dbComponentsRefCache; } @Override public void execute(ComputationContext context) { DbSession session = dbClient.openSession(false); try { - List components = dbClient.componentDao().selectComponentsFromProjectUuid(session, context.getProject().uuid()); + List components = dbClient.componentDao().selectComponentsFromProjectKey(session, context.getProject().key()); Map componentDtosByKey = componentDtosByKey(components); int rootComponentRef = context.getReportMetadata().getRootComponentRef(); ComponentContext componentContext = new ComponentContext(context, session, componentDtosByKey); @@ -74,6 +73,7 @@ public class PersistComponentsStep implements ComputationStep { BatchReportReader reportReader = componentContext.context.getReportReader(); BatchReport.Component reportComponent = reportReader.readComponent(componentRef); ComponentDto componentDto = processComponent(componentContext, reportComponent, moduleParent); + dbComponentsRefCache.addComponent(componentRef, new DbComponentsRefCache.DbComponent(componentDto.getId(), componentDto.getKey(), componentDto.uuid())); for (Integer childRef : reportComponent.getChildRefList()) { // If current component is not a module or a project, we need to keep the parent reference to the nearest module @@ -84,14 +84,12 @@ public class PersistComponentsStep implements ComputationStep { } private ComponentDto processComponent(ComponentContext componentContext, BatchReport.Component reportComponent, @Nullable ComponentDto moduleParent) { - String path = reportComponent.hasPath() ? reportComponent.getPath() : null; - String branch = componentContext.context.getReportMetadata().hasBranch() ? componentContext.context.getReportMetadata().getBranch() : null; - String componentKey = reportComponent.hasKey() || moduleParent == null ? - ComponentKeys.createKey(reportComponent.getKey(), branch) : - ComponentKeys.createEffectiveKey(moduleParent.getKey(), path); + ComputeComponentsRefCache.ComputeComponent cacheComputeComponent = computeComponentsRefCache.getByRef(reportComponent.getRef()); + String componentKey = cacheComputeComponent.getKey(); + String componentUuid = cacheComputeComponent.getUuid(); ComponentDto existingComponent = componentContext.componentDtosByKey.get(componentKey); if (existingComponent == null) { - ComponentDto component = createComponent(reportComponent, componentKey, Uuids.create(), moduleParent); + ComponentDto component = createComponent(reportComponent, componentKey, componentUuid, moduleParent); dbClient.componentDao().insert(componentContext.dbSession, component); return component; } else { @@ -184,8 +182,9 @@ public class PersistComponentsStep implements ComputationStep { return Scopes.DIRECTORY; case FILE: return Scopes.FILE; + default : + throw new IllegalArgumentException(String.format("Unknown type '%s'", reportComponent.getType())); } - throw new IllegalArgumentException(String.format("Unknown type '%s'", reportComponent.getType())); } private static String getQualifier(BatchReport.Component reportComponent) { @@ -198,8 +197,9 @@ public class PersistComponentsStep implements ComputationStep { return Qualifiers.DIRECTORY; case FILE: return !reportComponent.getIsTest() ? Qualifiers.FILE : Qualifiers.UNIT_TEST_FILE; + default : + throw new IllegalArgumentException(String.format("Unknown type '%s'", reportComponent.getType())); } - throw new IllegalArgumentException(String.format("Unknown type '%s'", reportComponent.getType())); } private static String getFileName(BatchReport.Component reportComponent) { diff --git a/server/sonar-server/src/main/java/org/sonar/server/computation/step/PersistDuplicationsStep.java b/server/sonar-server/src/main/java/org/sonar/server/computation/step/PersistDuplicationsStep.java index 68234957871..fd678891c96 100644 --- a/server/sonar-server/src/main/java/org/sonar/server/computation/step/PersistDuplicationsStep.java +++ b/server/sonar-server/src/main/java/org/sonar/server/computation/step/PersistDuplicationsStep.java @@ -22,16 +22,15 @@ package org.sonar.server.computation.step; import org.apache.commons.lang.StringEscapeUtils; import org.sonar.api.measures.CoreMetrics; -import org.sonar.batch.protocol.Constants; import org.sonar.batch.protocol.output.BatchReport; import org.sonar.batch.protocol.output.BatchReport.Range; import org.sonar.batch.protocol.output.BatchReportReader; -import org.sonar.core.component.ComponentKeys; import org.sonar.core.measure.db.MeasureDto; import org.sonar.core.measure.db.MetricDto; import org.sonar.core.persistence.DbSession; import org.sonar.core.persistence.MyBatis; import org.sonar.server.computation.ComputationContext; +import org.sonar.server.computation.component.DbComponentsRefCache; import org.sonar.server.db.DbClient; import java.util.List; @@ -42,9 +41,11 @@ import java.util.List; public class PersistDuplicationsStep implements ComputationStep { private final DbClient dbClient; + private final DbComponentsRefCache dbComponentsRefCache; - public PersistDuplicationsStep(DbClient dbClient) { + public PersistDuplicationsStep(DbClient dbClient, DbComponentsRefCache dbComponentsRefCache) { this.dbClient = dbClient; + this.dbComponentsRefCache = dbComponentsRefCache; } @Override @@ -54,52 +55,47 @@ public class PersistDuplicationsStep implements ComputationStep { MetricDto duplicationMetric = dbClient.metricDao().selectByKey(session, CoreMetrics.DUPLICATIONS_DATA_KEY); DuplicationContext duplicationContext = new DuplicationContext(context, duplicationMetric, session); int rootComponentRef = context.getReportMetadata().getRootComponentRef(); - recursivelyProcessComponent(duplicationContext, rootComponentRef, rootComponentRef); + recursivelyProcessComponent(duplicationContext, rootComponentRef); session.commit(); } finally { MyBatis.closeQuietly(session); } } - private void recursivelyProcessComponent(DuplicationContext duplicationContext, int parentModuleRef, int componentRef) { + private void recursivelyProcessComponent(DuplicationContext duplicationContext, int componentRef) { BatchReportReader reportReader = duplicationContext.context().getReportReader(); BatchReport.Component component = reportReader.readComponent(componentRef); List duplications = reportReader.readComponentDuplications(componentRef); if (!duplications.isEmpty()) { - saveDuplications(duplicationContext, reportReader.readComponent(parentModuleRef), component, duplications); + saveDuplications(duplicationContext, component, duplications); } for (Integer childRef : component.getChildRefList()) { - // If current component is a folder, we need to keep the parent reference to module parent - int nextParent = !component.getType().equals(Constants.ComponentType.PROJECT) && !component.getType().equals(Constants.ComponentType.MODULE) ? - parentModuleRef : componentRef; - recursivelyProcessComponent(duplicationContext, nextParent, childRef); + recursivelyProcessComponent(duplicationContext, childRef); } } - private void saveDuplications(DuplicationContext duplicationContext, BatchReport.Component parentComponent, BatchReport.Component component, - List duplications) { + private void saveDuplications(DuplicationContext duplicationContext, BatchReport.Component component, List duplications) { - String duplicationXml = createXmlDuplications(duplicationContext, parentComponent, component.getPath(), duplications); + DbComponentsRefCache.DbComponent dbComponent = dbComponentsRefCache.getByRef(component.getRef()); + String duplicationXml = createXmlDuplications(duplicationContext, dbComponent.getKey(), duplications); MeasureDto measureDto = new MeasureDto() .setMetricId(duplicationContext.metric().getId()) .setData(duplicationXml) - .setComponentId(component.getId()) + .setComponentId(dbComponent.getId()) .setSnapshotId(component.getSnapshotId()); dbClient.measureDao().insert(duplicationContext.session(), measureDto); } - private String createXmlDuplications(DuplicationContext duplicationContext, BatchReport.Component parentComponent, String componentPath, - Iterable duplications) { + private String createXmlDuplications(DuplicationContext duplicationContext, String componentKey, Iterable duplications) { StringBuilder xml = new StringBuilder(); xml.append(""); for (BatchReport.Duplication duplication : duplications) { xml.append(""); - appendDuplication(xml, ComponentKeys.createKey(parentComponent.getKey(), componentPath, duplicationContext.context().getReportMetadata().getBranch()), - duplication.getOriginPosition()); + appendDuplication(xml, componentKey, duplication.getOriginPosition()); for (BatchReport.Duplicate duplicationBlock : duplication.getDuplicateList()) { - processDuplicationBlock(duplicationContext, xml, duplicationBlock, parentComponent.getKey(), componentPath); + processDuplicationBlock(duplicationContext, xml, duplicationBlock, componentKey); } xml.append(""); } @@ -107,22 +103,21 @@ public class PersistDuplicationsStep implements ComputationStep { return xml.toString(); } - private void processDuplicationBlock(DuplicationContext duplicationContext, StringBuilder xml, BatchReport.Duplicate duplicate, String parentComponentKey, - String componentPath) { + private void processDuplicationBlock(DuplicationContext duplicationContext, StringBuilder xml, BatchReport.Duplicate duplicate, String componentKey) { if (duplicate.hasOtherFileKey()) { // componentKey is only set for cross project duplications String crossProjectComponentKey = duplicate.getOtherFileKey(); appendDuplication(xml, crossProjectComponentKey, duplicate); } else { - String branch = duplicationContext.context().getReportMetadata().getBranch(); if (duplicate.hasOtherFileRef()) { // Duplication is on a different file BatchReport.Component duplicationComponent = duplicationContext.context().getReportReader().readComponent(duplicate.getOtherFileRef()); - appendDuplication(xml, ComponentKeys.createKey(parentComponentKey, duplicationComponent.getPath(), branch), duplicate); + DbComponentsRefCache.DbComponent dbComponent = dbComponentsRefCache.getByRef(duplicationComponent.getRef()); + appendDuplication(xml, dbComponent.getKey(), duplicate); } else { // Duplication is on a the same file - appendDuplication(xml, ComponentKeys.createKey(parentComponentKey, componentPath, branch), duplicate); + appendDuplication(xml, componentKey, duplicate); } } } diff --git a/server/sonar-server/src/main/java/org/sonar/server/computation/step/PersistEventsStep.java b/server/sonar-server/src/main/java/org/sonar/server/computation/step/PersistEventsStep.java index 2b1f3c7ef90..d45e5c80c28 100644 --- a/server/sonar-server/src/main/java/org/sonar/server/computation/step/PersistEventsStep.java +++ b/server/sonar-server/src/main/java/org/sonar/server/computation/step/PersistEventsStep.java @@ -28,6 +28,7 @@ import org.sonar.core.event.EventDto; import org.sonar.core.persistence.DbSession; import org.sonar.core.persistence.MyBatis; import org.sonar.server.computation.ComputationContext; +import org.sonar.server.computation.component.DbComponentsRefCache; import org.sonar.server.db.DbClient; import java.util.List; @@ -36,10 +37,12 @@ public class PersistEventsStep implements ComputationStep { private final DbClient dbClient; private final System2 system2; + private final DbComponentsRefCache dbComponentsRefCache; - public PersistEventsStep(DbClient dbClient, System2 system2) { + public PersistEventsStep(DbClient dbClient, System2 system2, DbComponentsRefCache dbComponentsRefCache) { this.dbClient = dbClient; this.system2 = system2; + this.dbComponentsRefCache = dbComponentsRefCache; } @Override @@ -90,7 +93,7 @@ public class PersistEventsStep implements ComputationStep { } private void deletePreviousEventsHavingSameVersion(DbSession session, BatchReport.Component component) { - for (EventDto dto : dbClient.eventDao().selectByComponentUuid(session, component.getUuid())) { + for (EventDto dto : dbClient.eventDao().selectByComponentUuid(session, dbComponentsRefCache.getByRef(component.getRef()).getUuid())) { if (dto.getCategory().equals(EventDto.CATEGORY_VERSION) && dto.getName().equals(component.getVersion())) { dbClient.eventDao().delete(session, dto.getId()); } @@ -99,7 +102,7 @@ public class PersistEventsStep implements ComputationStep { private EventDto newBaseEvent(BatchReport.Component component, Long analysisDate) { return new EventDto() - .setComponentUuid(component.getUuid()) + .setComponentUuid(dbComponentsRefCache.getByRef(component.getRef()).getUuid()) .setSnapshotId(component.getSnapshotId()) .setCreatedAt(system2.now()) .setDate(analysisDate); diff --git a/server/sonar-server/src/main/java/org/sonar/server/computation/step/PersistFileSourcesStep.java b/server/sonar-server/src/main/java/org/sonar/server/computation/step/PersistFileSourcesStep.java index b8ce0a1f5d3..c48d8c38182 100644 --- a/server/sonar-server/src/main/java/org/sonar/server/computation/step/PersistFileSourcesStep.java +++ b/server/sonar-server/src/main/java/org/sonar/server/computation/step/PersistFileSourcesStep.java @@ -36,6 +36,7 @@ import org.sonar.core.persistence.MyBatis; import org.sonar.core.source.db.FileSourceDto; import org.sonar.core.source.db.FileSourceDto.Type; import org.sonar.server.computation.ComputationContext; +import org.sonar.server.computation.component.DbComponentsRefCache; import org.sonar.server.computation.source.ComputeFileSourceData; import org.sonar.server.computation.source.CoverageLineReader; import org.sonar.server.computation.source.DuplicationLineReader; @@ -59,10 +60,12 @@ public class PersistFileSourcesStep implements ComputationStep { private final DbClient dbClient; private final System2 system2; + private final DbComponentsRefCache dbComponentsRefCache; - public PersistFileSourcesStep(DbClient dbClient, System2 system2) { + public PersistFileSourcesStep(DbClient dbClient, System2 system2, DbComponentsRefCache dbComponentsRefCache) { this.dbClient = dbClient; this.system2 = system2; + this.dbComponentsRefCache = dbComponentsRefCache; } @Override @@ -72,7 +75,8 @@ public class PersistFileSourcesStep implements ComputationStep { DbSession session = dbClient.openSession(false); try { final Map previousFileSourcesByUuid = new HashMap<>(); - session.select("org.sonar.core.source.db.FileSourceMapper.selectHashesForProject", ImmutableMap.of("projectUuid", context.getProject().uuid(), "dataType", Type.SOURCE), + String projectUuid = dbComponentsRefCache.getByRef(context.getReportMetadata().getRootComponentRef()).getUuid(); + session.select("org.sonar.core.source.db.FileSourceMapper.selectHashesForProject", ImmutableMap.of("projectUuid", projectUuid, "dataType", Type.SOURCE), new ResultHandler() { @Override public void handleResult(ResultContext context) { @@ -81,7 +85,7 @@ public class PersistFileSourcesStep implements ComputationStep { } }); - recursivelyProcessComponent(new FileSourcesContext(session, context, previousFileSourcesByUuid), rootComponentRef); + recursivelyProcessComponent(new FileSourcesContext(session, context, previousFileSourcesByUuid, projectUuid), rootComponentRef); } finally { MyBatis.closeQuietly(session); } @@ -125,12 +129,13 @@ public class PersistFileSourcesStep implements ComputationStep { String dataHash = DigestUtils.md5Hex(data); String srcHash = fileSourceData.getSrcHash(); String lineHashes = fileSourceData.getLineHashes(); - FileSourceDto previousDto = fileSourcesContext.previousFileSourcesByUuid.get(component.getUuid()); + String componentUuid = dbComponentsRefCache.getByRef(component.getRef()).getUuid(); + FileSourceDto previousDto = fileSourcesContext.previousFileSourcesByUuid.get(componentUuid); if (previousDto == null) { FileSourceDto dto = new FileSourceDto() - .setProjectUuid(fileSourcesContext.context.getProject().uuid()) - .setFileUuid(component.getUuid()) + .setProjectUuid(fileSourcesContext.projectUuid) + .setFileUuid(componentUuid) .setDataType(Type.SOURCE) .setBinaryData(data) .setSrcHash(srcHash) @@ -164,11 +169,13 @@ public class PersistFileSourcesStep implements ComputationStep { DbSession session; ComputationContext context; Map previousFileSourcesByUuid; + String projectUuid; - public FileSourcesContext(DbSession session, ComputationContext context, Map previousFileSourcesByUuid) { + public FileSourcesContext(DbSession session, ComputationContext context, Map previousFileSourcesByUuid, String projectUuid) { this.context = context; this.previousFileSourcesByUuid = previousFileSourcesByUuid; this.session = session; + this.projectUuid = projectUuid; } } diff --git a/server/sonar-server/src/main/java/org/sonar/server/computation/step/PersistMeasuresStep.java b/server/sonar-server/src/main/java/org/sonar/server/computation/step/PersistMeasuresStep.java index 0094159b298..f0c46d470ee 100644 --- a/server/sonar-server/src/main/java/org/sonar/server/computation/step/PersistMeasuresStep.java +++ b/server/sonar-server/src/main/java/org/sonar/server/computation/step/PersistMeasuresStep.java @@ -28,6 +28,7 @@ import org.sonar.batch.protocol.output.BatchReportReader; import org.sonar.core.measure.db.MeasureDto; import org.sonar.core.persistence.DbSession; import org.sonar.server.computation.ComputationContext; +import org.sonar.server.computation.component.DbComponentsRefCache; import org.sonar.server.computation.issue.RuleCache; import org.sonar.server.computation.measure.MetricCache; import org.sonar.server.db.DbClient; @@ -48,11 +49,13 @@ public class PersistMeasuresStep implements ComputationStep { private final DbClient dbClient; private final RuleCache ruleCache; private final MetricCache metricCache; + private final DbComponentsRefCache dbComponentsRefCache; - public PersistMeasuresStep(DbClient dbClient, RuleCache ruleCache, MetricCache metricCache) { + public PersistMeasuresStep(DbClient dbClient, RuleCache ruleCache, MetricCache metricCache, DbComponentsRefCache dbComponentsRefCache) { this.dbClient = dbClient; this.ruleCache = ruleCache; this.metricCache = metricCache; + this.dbComponentsRefCache = dbComponentsRefCache; } @Override @@ -107,7 +110,7 @@ public class PersistMeasuresStep implements ComputationStep { out.setAlertText(in.hasAlertText() ? in.getAlertText() : null); out.setDescription(in.hasDescription() ? in.getDescription() : null); out.setSeverity(in.hasSeverity() ? in.getSeverity().name() : null); - out.setComponentId(component.getId()); + out.setComponentId(dbComponentsRefCache.getByRef(component.getRef()).getId()); out.setSnapshotId(component.getSnapshotId()); out.setMetricId(metricCache.get(in.getMetricKey()).getId()); out.setRuleId(in.hasRuleKey() ? ruleCache.get(RuleKey.parse(in.getRuleKey())).getId() : null); diff --git a/server/sonar-server/src/main/java/org/sonar/server/computation/step/PersistNumberOfDaysSinceLastCommitStep.java b/server/sonar-server/src/main/java/org/sonar/server/computation/step/PersistNumberOfDaysSinceLastCommitStep.java index c518eec3825..b36ba0347c4 100644 --- a/server/sonar-server/src/main/java/org/sonar/server/computation/step/PersistNumberOfDaysSinceLastCommitStep.java +++ b/server/sonar-server/src/main/java/org/sonar/server/computation/step/PersistNumberOfDaysSinceLastCommitStep.java @@ -28,6 +28,7 @@ import org.sonar.core.measure.db.MeasureDto; import org.sonar.core.persistence.DbSession; import org.sonar.core.persistence.MyBatis; import org.sonar.server.computation.ComputationContext; +import org.sonar.server.computation.component.DbComponentsRefCache; import org.sonar.server.computation.measure.MetricCache; import org.sonar.server.db.DbClient; import org.sonar.server.source.index.SourceLineIndex; @@ -48,14 +49,17 @@ public class PersistNumberOfDaysSinceLastCommitStep implements ComputationStep { private final SourceLineIndex sourceLineIndex; private final MetricCache metricCache; private final System2 system; + private final DbComponentsRefCache dbComponentsRefCache; private long lastCommitTimestamp = 0L; - public PersistNumberOfDaysSinceLastCommitStep(System2 system, DbClient dbClient, SourceLineIndex sourceLineIndex, MetricCache metricCache) { + public PersistNumberOfDaysSinceLastCommitStep(System2 system, DbClient dbClient, SourceLineIndex sourceLineIndex, MetricCache metricCache, + DbComponentsRefCache dbComponentsRefCache) { this.dbClient = dbClient; this.sourceLineIndex = sourceLineIndex; this.metricCache = metricCache; this.system = system; + this.dbComponentsRefCache = dbComponentsRefCache; } @Override @@ -69,7 +73,7 @@ public class PersistNumberOfDaysSinceLastCommitStep implements ComputationStep { recursivelyProcessComponent(context, rootComponentRef); if (!commitFound()) { - Long lastCommitFromIndex = lastCommitFromIndex(context.getProject().uuid()); + Long lastCommitFromIndex = lastCommitFromIndex(dbComponentsRefCache.getByRef(context.getReportMetadata().getRootComponentRef()).getUuid()); lastCommitTimestamp = firstNonNull(lastCommitFromIndex, lastCommitTimestamp); } diff --git a/server/sonar-server/src/main/java/org/sonar/server/computation/step/PersistProjectLinksStep.java b/server/sonar-server/src/main/java/org/sonar/server/computation/step/PersistProjectLinksStep.java index ac6f68f9cba..9a2bf486dec 100644 --- a/server/sonar-server/src/main/java/org/sonar/server/computation/step/PersistProjectLinksStep.java +++ b/server/sonar-server/src/main/java/org/sonar/server/computation/step/PersistProjectLinksStep.java @@ -31,6 +31,7 @@ import org.sonar.core.component.ComponentLinkDto; import org.sonar.core.persistence.DbSession; import org.sonar.core.persistence.MyBatis; import org.sonar.server.computation.ComputationContext; +import org.sonar.server.computation.component.DbComponentsRefCache; import org.sonar.server.db.DbClient; import javax.annotation.Nullable; @@ -49,6 +50,7 @@ public class PersistProjectLinksStep implements ComputationStep { private final DbClient dbClient; private final I18n i18n; + private final DbComponentsRefCache dbComponentsRefCache; private static final Map typesConverter = ImmutableMap.of( Constants.ComponentLinkType.HOME, ComponentLinkDto.TYPE_HOME_PAGE, @@ -58,9 +60,10 @@ public class PersistProjectLinksStep implements ComputationStep { Constants.ComponentLinkType.ISSUE, ComponentLinkDto.TYPE_ISSUE_TRACKER ); - public PersistProjectLinksStep(DbClient dbClient, I18n i18n) { + public PersistProjectLinksStep(DbClient dbClient, I18n i18n, DbComponentsRefCache dbComponentsRefCache) { this.dbClient = dbClient; this.i18n = i18n; + this.dbComponentsRefCache = dbComponentsRefCache; } @Override @@ -88,8 +91,9 @@ public class PersistProjectLinksStep implements ComputationStep { private void processLinks(DbSession session, BatchReport.Component component) { if (component.getType().equals(Constants.ComponentType.PROJECT) || component.getType().equals(Constants.ComponentType.MODULE)) { List links = component.getLinkList(); - List previousLinks = dbClient.componentLinkDao().selectByComponentUuid(session, component.getUuid()); - mergeLinks(session, component.getUuid(), links, previousLinks); + String componentUuid = dbComponentsRefCache.getByRef(component.getRef()).getUuid(); + List previousLinks = dbClient.componentLinkDao().selectByComponentUuid(session, componentUuid); + mergeLinks(session, componentUuid, links, previousLinks); } } diff --git a/server/sonar-server/src/main/java/org/sonar/server/computation/step/PersistTestsStep.java b/server/sonar-server/src/main/java/org/sonar/server/computation/step/PersistTestsStep.java index b4b49bd8a71..d594d1da33e 100644 --- a/server/sonar-server/src/main/java/org/sonar/server/computation/step/PersistTestsStep.java +++ b/server/sonar-server/src/main/java/org/sonar/server/computation/step/PersistTestsStep.java @@ -39,6 +39,7 @@ import org.sonar.core.persistence.MyBatis; import org.sonar.core.source.db.FileSourceDto; import org.sonar.core.source.db.FileSourceDto.Type; import org.sonar.server.computation.ComputationContext; +import org.sonar.server.computation.component.DbComponentsRefCache; import org.sonar.server.computation.source.ReportIterator; import org.sonar.server.db.DbClient; import org.sonar.server.source.db.FileSourceDb; @@ -59,10 +60,12 @@ public class PersistTestsStep implements ComputationStep { private final DbClient dbClient; private final System2 system; + private final DbComponentsRefCache dbComponentsRefCache; - public PersistTestsStep(DbClient dbClient, System2 system) { + public PersistTestsStep(DbClient dbClient, System2 system, DbComponentsRefCache dbComponentsRefCache) { this.dbClient = dbClient; this.system = system; + this.dbComponentsRefCache = dbComponentsRefCache; } @Override @@ -70,7 +73,7 @@ public class PersistTestsStep implements ComputationStep { DbSession session = dbClient.openSession(true); try { int rootComponentRef = computationContext.getReportMetadata().getRootComponentRef(); - TestContext context = new TestContext(computationContext, session); + TestContext context = new TestContext(computationContext, session, dbComponentsRefCache); recursivelyProcessComponent(context, rootComponentRef); session.commit(); @@ -106,7 +109,8 @@ public class PersistTestsStep implements ComputationStep { return; } - FileSourceDto existingDto = context.existingFileSourcesByUuid.get(component.getUuid()); + String componentUuid = context.getUuid(component.getRef()); + FileSourceDto existingDto = context.existingFileSourcesByUuid.get(componentUuid); long now = system.now(); if (existingDto != null) { // update @@ -118,8 +122,8 @@ public class PersistTestsStep implements ComputationStep { // insert FileSourceDto newDto = new FileSourceDto() .setTestData(tests) - .setFileUuid(component.getUuid()) - .setProjectUuid(context.context.getProject().uuid()) + .setFileUuid(componentUuid) + .setProjectUuid(context.getUuid(context.context.getReportMetadata().getRootComponentRef())) .setDataType(Type.TEST) .setCreatedAt(now) .setUpdatedAt(now); @@ -236,18 +240,18 @@ public class PersistTestsStep implements ComputationStep { final DbSession session; final ComputationContext context; final BatchReportReader reader; - final ComponentUuidsCache componentRefToUuidCache; + final DbComponentsRefCache dbComponentsRefCache; final Map existingFileSourcesByUuid; boolean hasUnprocessedCoverageDetails = false; - TestContext(ComputationContext context, DbSession session) { + TestContext(ComputationContext context, DbSession session, DbComponentsRefCache dbComponentsRefCache) { this.session = session; this.context = context; + this.dbComponentsRefCache = dbComponentsRefCache; this.reader = context.getReportReader(); - this.componentRefToUuidCache = new ComponentUuidsCache(context.getReportReader()); this.existingFileSourcesByUuid = new HashMap<>(); session.select("org.sonar.core.source.db.FileSourceMapper.selectHashesForProject", - ImmutableMap.of("projectUuid", context.getProject().uuid(), "dataType", Type.TEST), + ImmutableMap.of("projectUuid", dbComponentsRefCache.getByRef(context.getReportMetadata().getRootComponentRef()).getUuid(), "dataType", Type.TEST), new ResultHandler() { @Override public void handleResult(ResultContext context) { @@ -258,7 +262,7 @@ public class PersistTestsStep implements ComputationStep { } public String getUuid(int fileRef) { - return componentRefToUuidCache.getUuidFromRef(fileRef); + return dbComponentsRefCache.getByRef(fileRef).getUuid(); } } } diff --git a/server/sonar-server/src/main/java/org/sonar/server/computation/step/PurgeDatastoresStep.java b/server/sonar-server/src/main/java/org/sonar/server/computation/step/PurgeDatastoresStep.java index e7be2274c05..0e0fa940e06 100644 --- a/server/sonar-server/src/main/java/org/sonar/server/computation/step/PurgeDatastoresStep.java +++ b/server/sonar-server/src/main/java/org/sonar/server/computation/step/PurgeDatastoresStep.java @@ -25,23 +25,27 @@ import org.sonar.core.persistence.DbSession; import org.sonar.core.persistence.MyBatis; import org.sonar.core.purge.IdUuidPair; import org.sonar.server.computation.ComputationContext; +import org.sonar.server.computation.component.DbComponentsRefCache; import org.sonar.server.db.DbClient; public class PurgeDatastoresStep implements ComputationStep { private final ProjectCleaner projectCleaner; private final DbClient dbClient; + private final DbComponentsRefCache dbComponentsRefCache; - public PurgeDatastoresStep(DbClient dbClient, ProjectCleaner projectCleaner) { + public PurgeDatastoresStep(DbClient dbClient, ProjectCleaner projectCleaner, DbComponentsRefCache dbComponentsRefCache) { this.projectCleaner = projectCleaner; this.dbClient = dbClient; + this.dbComponentsRefCache = dbComponentsRefCache; } @Override public void execute(ComputationContext context) { DbSession session = dbClient.openSession(true); try { - projectCleaner.purge(session, new IdUuidPair(context.getProject().getId(), context.getProject().uuid()), context.getProjectSettings()); + DbComponentsRefCache.DbComponent project = dbComponentsRefCache.getByRef(context.getReportMetadata().getRootComponentRef()); + projectCleaner.purge(session, new IdUuidPair(project.getId(), project.getUuid()), context.getProjectSettings()); session.commit(); } finally { MyBatis.closeQuietly(session); diff --git a/server/sonar-server/src/test/java/org/sonar/server/component/db/ComponentDaoTest.java b/server/sonar-server/src/test/java/org/sonar/server/component/db/ComponentDaoTest.java index 62d3b58548e..d64ef797efa 100644 --- a/server/sonar-server/src/test/java/org/sonar/server/component/db/ComponentDaoTest.java +++ b/server/sonar-server/src/test/java/org/sonar/server/component/db/ComponentDaoTest.java @@ -457,10 +457,10 @@ public class ComponentDaoTest { public void select_components_from_project() { db.prepareDbUnit(getClass(), "multi-modules.xml"); - List components = sut.selectComponentsFromProjectUuid(session, "ABCD"); + List components = sut.selectComponentsFromProjectKey(session, "org.struts:struts"); assertThat(components).hasSize(5); - assertThat(sut.selectComponentsFromProjectUuid(session, "UNKNOWN")).isEmpty(); + assertThat(sut.selectComponentsFromProjectKey(session, "UNKNOWN")).isEmpty(); } @Test diff --git a/server/sonar-server/src/test/java/org/sonar/server/computation/issue/IssueComputationTest.java b/server/sonar-server/src/test/java/org/sonar/server/computation/issue/IssueComputationTest.java index 2bda0425723..656f8cfcd9a 100644 --- a/server/sonar-server/src/test/java/org/sonar/server/computation/issue/IssueComputationTest.java +++ b/server/sonar-server/src/test/java/org/sonar/server/computation/issue/IssueComputationTest.java @@ -43,7 +43,9 @@ import java.io.IOException; import java.util.Arrays; import static org.assertj.core.api.Assertions.assertThat; -import static org.mockito.Mockito.*; +import static org.mockito.Mockito.mock; +import static org.mockito.Mockito.verifyZeroInteractions; +import static org.mockito.Mockito.when; public class IssueComputationTest { @@ -214,6 +216,6 @@ public class IssueComputationTest { } private void process() { - sut.processComponentIssues(context, Arrays.asList(inputIssue.build()), "FILE_A", 1); + sut.processComponentIssues(context, Arrays.asList(inputIssue.build()), "FILE_A", 1, "PROJECT_KEY", "PROJECT_UUID"); } } diff --git a/server/sonar-server/src/test/java/org/sonar/server/computation/step/ComponentUuidsCacheTest.java b/server/sonar-server/src/test/java/org/sonar/server/computation/step/ComponentUuidsCacheTest.java deleted file mode 100644 index 280b42f3722..00000000000 --- a/server/sonar-server/src/test/java/org/sonar/server/computation/step/ComponentUuidsCacheTest.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * SonarQube, open source software quality management tool. - * Copyright (C) 2008-2014 SonarSource - * mailto:contact AT sonarsource DOT com - * - * SonarQube is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * SonarQube is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software Foundation, - * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - */ - -package org.sonar.server.computation.step; - -import org.junit.Before; -import org.junit.Rule; -import org.junit.Test; -import org.junit.rules.TemporaryFolder; -import org.sonar.batch.protocol.Constants; -import org.sonar.batch.protocol.output.BatchReport; -import org.sonar.batch.protocol.output.BatchReportReader; -import org.sonar.batch.protocol.output.BatchReportWriter; - -import java.io.File; - -import static org.assertj.core.api.Assertions.assertThat; - -public class ComponentUuidsCacheTest { - - @Rule - public TemporaryFolder temp = new TemporaryFolder(); - - File reportDir; - - @Before - public void setUp() throws Exception { - reportDir = temp.newFolder(); - } - - @Test - public void get_uuid_from_ref() { - BatchReportWriter writer = new BatchReportWriter(reportDir); - writer.writeComponent(BatchReport.Component.newBuilder() - .setRef(1) - .setType(Constants.ComponentType.PROJECT) - .setUuid("ABCD") - .build()); - - ComponentUuidsCache cache = new ComponentUuidsCache(new BatchReportReader(reportDir)); - assertThat(cache.getUuidFromRef(1)).isEqualTo("ABCD"); - } -} diff --git a/server/sonar-server/src/test/java/org/sonar/server/computation/step/ComputationStepsTest.java b/server/sonar-server/src/test/java/org/sonar/server/computation/step/ComputationStepsTest.java index dad2e0562e8..4e217db6925 100644 --- a/server/sonar-server/src/test/java/org/sonar/server/computation/step/ComputationStepsTest.java +++ b/server/sonar-server/src/test/java/org/sonar/server/computation/step/ComputationStepsTest.java @@ -48,12 +48,14 @@ public class ComputationStepsTest { mock(PersistNumberOfDaysSinceLastCommitStep.class), mock(PersistFileSourcesStep.class), mock(PersistTestsStep.class), - mock(IndexTestsStep.class) - ); + mock(IndexTestsStep.class), + mock(FeedComponentsCacheStep.class), + mock(PersistComponentsStep.class) + ); - assertThat(registry.orderedSteps()).hasSize(17); - assertThat(registry.orderedSteps().get(0)).isInstanceOf(ParseReportStep.class); - assertThat(registry.orderedSteps().get(16)).isInstanceOf(SendIssueNotificationsStep.class); + assertThat(registry.orderedSteps()).hasSize(19); + assertThat(registry.orderedSteps().get(0)).isInstanceOf(FeedComponentsCacheStep.class); + assertThat(registry.orderedSteps().get(18)).isInstanceOf(SendIssueNotificationsStep.class); } @Test diff --git a/server/sonar-server/src/test/java/org/sonar/server/computation/step/FeedComponentsCacheStepTest.java b/server/sonar-server/src/test/java/org/sonar/server/computation/step/FeedComponentsCacheStepTest.java new file mode 100644 index 00000000000..157fb668893 --- /dev/null +++ b/server/sonar-server/src/test/java/org/sonar/server/computation/step/FeedComponentsCacheStepTest.java @@ -0,0 +1,220 @@ +/* + * SonarQube, open source software quality management tool. + * Copyright (C) 2008-2014 SonarSource + * mailto:contact AT sonarsource DOT com + * + * SonarQube is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * SonarQube is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program; if not, write to the Free Software Foundation, + * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + */ + +package org.sonar.server.computation.step; + +import org.junit.Before; +import org.junit.ClassRule; +import org.junit.Rule; +import org.junit.Test; +import org.junit.experimental.categories.Category; +import org.junit.rules.TemporaryFolder; +import org.sonar.batch.protocol.Constants; +import org.sonar.batch.protocol.output.BatchReport; +import org.sonar.batch.protocol.output.BatchReportReader; +import org.sonar.batch.protocol.output.BatchReportWriter; +import org.sonar.core.persistence.DbSession; +import org.sonar.core.persistence.DbTester; +import org.sonar.server.component.ComponentTesting; +import org.sonar.server.component.db.ComponentDao; +import org.sonar.server.computation.ComputationContext; +import org.sonar.server.computation.component.ComputeComponentsRefCache; +import org.sonar.server.db.DbClient; +import org.sonar.test.DbTests; + +import java.io.File; + +import static org.assertj.core.api.Assertions.assertThat; + +@Category(DbTests.class) +public class FeedComponentsCacheStepTest extends BaseStepTest { + + @ClassRule + public static DbTester dbTester = new DbTester(); + + @Rule + public TemporaryFolder temp = new TemporaryFolder(); + + File reportDir; + + DbSession session; + + DbClient dbClient; + + ComputeComponentsRefCache computeComponentsRefCache; + + FeedComponentsCacheStep sut; + + @Before + public void setup() throws Exception { + dbTester.truncateTables(); + session = dbTester.myBatis().openSession(false); + dbClient = new DbClient(dbTester.database(), dbTester.myBatis(), new ComponentDao()); + + reportDir = temp.newFolder(); + + computeComponentsRefCache = new ComputeComponentsRefCache(); + sut = new FeedComponentsCacheStep(dbClient, computeComponentsRefCache); + } + + @Override + protected ComputationStep step() { + return sut; + } + + @Test + public void add_components() throws Exception { + File reportDir = temp.newFolder(); + BatchReportWriter writer = new BatchReportWriter(reportDir); + writer.writeMetadata(BatchReport.Metadata.newBuilder() + .setRootComponentRef(1) + .build()); + + writer.writeComponent(BatchReport.Component.newBuilder() + .setRef(1) + .setType(Constants.ComponentType.PROJECT) + .setKey("PROJECT_KEY") + .addChildRef(2) + .build()); + writer.writeComponent(BatchReport.Component.newBuilder() + .setRef(2) + .setType(Constants.ComponentType.MODULE) + .setKey("MODULE_KEY") + .addChildRef(3) + .build()); + writer.writeComponent(BatchReport.Component.newBuilder() + .setRef(3) + .setType(Constants.ComponentType.DIRECTORY) + .setPath("src/main/java/dir") + .addChildRef(4) + .build()); + writer.writeComponent(BatchReport.Component.newBuilder() + .setRef(4) + .setType(Constants.ComponentType.FILE) + .setPath("src/main/java/dir/Foo.java") + .build()); + + sut.execute(new ComputationContext(new BatchReportReader(reportDir), ComponentTesting.newProjectDto())); + + assertThat(computeComponentsRefCache.getByRef(1).getKey()).isEqualTo("PROJECT_KEY"); + assertThat(computeComponentsRefCache.getByRef(1).getUuid()).isNotNull(); + + assertThat(computeComponentsRefCache.getByRef(2).getKey()).isEqualTo("MODULE_KEY"); + assertThat(computeComponentsRefCache.getByRef(2).getUuid()).isNotNull(); + + assertThat(computeComponentsRefCache.getByRef(3).getKey()).isEqualTo("MODULE_KEY:src/main/java/dir"); + assertThat(computeComponentsRefCache.getByRef(3).getUuid()).isNotNull(); + + assertThat(computeComponentsRefCache.getByRef(4).getKey()).isEqualTo("MODULE_KEY:src/main/java/dir/Foo.java"); + assertThat(computeComponentsRefCache.getByRef(4).getUuid()).isNotNull(); + } + + @Test + public void use_latest_module_for_files_key() throws Exception { + File reportDir = temp.newFolder(); + BatchReportWriter writer = new BatchReportWriter(reportDir); + writer.writeMetadata(BatchReport.Metadata.newBuilder() + .setRootComponentRef(1) + .build()); + + writer.writeComponent(BatchReport.Component.newBuilder() + .setRef(1) + .setType(Constants.ComponentType.PROJECT) + .setKey("PROJECT_KEY") + .setName("Project") + .addChildRef(2) + .build()); + writer.writeComponent(BatchReport.Component.newBuilder() + .setRef(2) + .setType(Constants.ComponentType.MODULE) + .setKey("MODULE_KEY") + .setName("Module") + .addChildRef(3) + .build()); + writer.writeComponent(BatchReport.Component.newBuilder() + .setRef(3) + .setType(Constants.ComponentType.MODULE) + .setKey("SUB_MODULE_KEY") + .setName("Sub Module") + .addChildRef(4) + .build()); + writer.writeComponent(BatchReport.Component.newBuilder() + .setRef(4) + .setType(Constants.ComponentType.DIRECTORY) + .setPath("src/main/java/dir") + .addChildRef(5) + .build()); + writer.writeComponent(BatchReport.Component.newBuilder() + .setRef(5) + .setType(Constants.ComponentType.FILE) + .setPath("src/main/java/dir/Foo.java") + .build()); + + sut.execute(new ComputationContext(new BatchReportReader(reportDir), ComponentTesting.newProjectDto())); + + assertThat(computeComponentsRefCache.getByRef(4).getKey()).isEqualTo("SUB_MODULE_KEY:src/main/java/dir"); + assertThat(computeComponentsRefCache.getByRef(5).getKey()).isEqualTo("SUB_MODULE_KEY:src/main/java/dir/Foo.java"); + } + + @Test + public void use_branch_to_generate_keys() throws Exception { + File reportDir = temp.newFolder(); + BatchReportWriter writer = new BatchReportWriter(reportDir); + writer.writeMetadata(BatchReport.Metadata.newBuilder() + .setRootComponentRef(1) + .setBranch("origin/master") + .build()); + + writer.writeComponent(BatchReport.Component.newBuilder() + .setRef(1) + .setType(Constants.ComponentType.PROJECT) + .setKey("PROJECT_KEY") + .setName("Project") + .addChildRef(2) + .build()); + writer.writeComponent(BatchReport.Component.newBuilder() + .setRef(2) + .setType(Constants.ComponentType.MODULE) + .setKey("MODULE_KEY") + .setName("Module") + .addChildRef(3) + .build()); + writer.writeComponent(BatchReport.Component.newBuilder() + .setRef(3) + .setType(Constants.ComponentType.DIRECTORY) + .setPath("src/main/java/dir") + .addChildRef(4) + .build()); + writer.writeComponent(BatchReport.Component.newBuilder() + .setRef(4) + .setType(Constants.ComponentType.FILE) + .setPath("src/main/java/dir/Foo.java") + .build()); + + sut.execute(new ComputationContext(new BatchReportReader(reportDir), ComponentTesting.newProjectDto())); + + assertThat(computeComponentsRefCache.getByRef(1).getKey()).isEqualTo("PROJECT_KEY:origin/master"); + assertThat(computeComponentsRefCache.getByRef(2).getKey()).isEqualTo("MODULE_KEY:origin/master"); + assertThat(computeComponentsRefCache.getByRef(3).getKey()).isEqualTo("MODULE_KEY:origin/master:src/main/java/dir"); + assertThat(computeComponentsRefCache.getByRef(4).getKey()).isEqualTo("MODULE_KEY:origin/master:src/main/java/dir/Foo.java"); + } + + +} diff --git a/server/sonar-server/src/test/java/org/sonar/server/computation/step/IndexComponentsStepTest.java b/server/sonar-server/src/test/java/org/sonar/server/computation/step/IndexComponentsStepTest.java index 8423795f6a6..e97c6b000c5 100644 --- a/server/sonar-server/src/test/java/org/sonar/server/computation/step/IndexComponentsStepTest.java +++ b/server/sonar-server/src/test/java/org/sonar/server/computation/step/IndexComponentsStepTest.java @@ -20,24 +20,47 @@ package org.sonar.server.computation.step; +import org.junit.Rule; import org.junit.Test; +import org.junit.rules.TemporaryFolder; +import org.sonar.batch.protocol.output.BatchReport; import org.sonar.batch.protocol.output.BatchReportReader; +import org.sonar.batch.protocol.output.BatchReportWriter; import org.sonar.core.component.ComponentDto; import org.sonar.core.resource.ResourceIndexerDao; import org.sonar.server.computation.ComputationContext; +import org.sonar.server.computation.component.DbComponentsRefCache; +import org.sonar.server.computation.component.DbComponentsRefCache.DbComponent; -import static org.mockito.Mockito.*; +import java.io.File; +import java.io.IOException; + +import static org.mockito.Mockito.mock; +import static org.mockito.Mockito.verify; +import static org.mockito.Mockito.when; public class IndexComponentsStepTest extends BaseStepTest { + @Rule + public TemporaryFolder temp = new TemporaryFolder(); + ResourceIndexerDao resourceIndexerDao = mock(ResourceIndexerDao.class); - IndexComponentsStep sut = new IndexComponentsStep(resourceIndexerDao); + DbComponentsRefCache dbComponentsRefCache = new DbComponentsRefCache(); + IndexComponentsStep sut = new IndexComponentsStep(resourceIndexerDao, dbComponentsRefCache); @Test - public void call_indexProject_of_dao() { + public void call_indexProject_of_dao() throws IOException { + dbComponentsRefCache.addComponent(1, new DbComponent(123L, "PROJECT_KEY", "PROJECT_UUID")); + + File reportDir = temp.newFolder(); + BatchReportWriter writer = new BatchReportWriter(reportDir); + writer.writeMetadata(BatchReport.Metadata.newBuilder() + .setRootComponentRef(1) + .build()); + ComponentDto project = mock(ComponentDto.class); when(project.getId()).thenReturn(123L); - ComputationContext context = new ComputationContext(mock(BatchReportReader.class), project); + ComputationContext context = new ComputationContext(new BatchReportReader(reportDir), project); sut.execute(context); diff --git a/server/sonar-server/src/test/java/org/sonar/server/computation/step/IndexSourceLinesStepTest.java b/server/sonar-server/src/test/java/org/sonar/server/computation/step/IndexSourceLinesStepTest.java index bf0ba151e54..bac8d1fa5fb 100644 --- a/server/sonar-server/src/test/java/org/sonar/server/computation/step/IndexSourceLinesStepTest.java +++ b/server/sonar-server/src/test/java/org/sonar/server/computation/step/IndexSourceLinesStepTest.java @@ -22,12 +22,17 @@ package org.sonar.server.computation.step; import org.elasticsearch.search.SearchHit; import org.junit.Before; import org.junit.ClassRule; +import org.junit.Rule; import org.junit.Test; +import org.junit.rules.TemporaryFolder; import org.sonar.api.config.Settings; +import org.sonar.batch.protocol.output.BatchReport; import org.sonar.batch.protocol.output.BatchReportReader; +import org.sonar.batch.protocol.output.BatchReportWriter; import org.sonar.core.persistence.DbTester; import org.sonar.server.component.ComponentTesting; import org.sonar.server.computation.ComputationContext; +import org.sonar.server.computation.component.DbComponentsRefCache; import org.sonar.server.db.DbClient; import org.sonar.server.es.EsTester; import org.sonar.server.source.db.FileSourceDao; @@ -36,14 +41,17 @@ import org.sonar.server.source.index.SourceLineDoc; import org.sonar.server.source.index.SourceLineIndexDefinition; import org.sonar.server.source.index.SourceLineIndexer; +import java.io.File; import java.sql.Connection; import java.util.List; import static org.assertj.core.api.Assertions.assertThat; -import static org.mockito.Mockito.mock; public class IndexSourceLinesStepTest extends BaseStepTest { + @Rule + public TemporaryFolder temp = new TemporaryFolder(); + @ClassRule public static DbTester dbTester = new DbTester(); @@ -52,26 +60,37 @@ public class IndexSourceLinesStepTest extends BaseStepTest { DbClient dbClient; + DbComponentsRefCache dbComponentsRefCache; + @Before public void setUp() { dbClient = new DbClient(dbTester.database(), dbTester.myBatis(), new FileSourceDao(null)); + dbComponentsRefCache = new DbComponentsRefCache(); } @Override protected ComputationStep step() { SourceLineIndexer sourceLineIndexer = new SourceLineIndexer(dbClient, esTester.client()); sourceLineIndexer.setEnabled(true); - return new IndexSourceLinesStep(sourceLineIndexer); + return new IndexSourceLinesStep(sourceLineIndexer, dbComponentsRefCache); } @Test public void index_source() throws Exception { + dbComponentsRefCache.addComponent(1, new DbComponentsRefCache.DbComponent(1L, "PROJECT_KEY", "ABCD")); + dbTester.prepareDbUnit(getClass(), "index_source.xml"); Connection connection = dbTester.openConnection(); FileSourceTesting.updateDataColumn(connection, "FILE1_UUID", FileSourceTesting.newRandomData(1).build()); connection.close(); - step().execute(new ComputationContext(mock(BatchReportReader.class), ComponentTesting.newProjectDto("ABCD"))); + File reportDir = temp.newFolder(); + BatchReportWriter writer = new BatchReportWriter(reportDir); + writer.writeMetadata(BatchReport.Metadata.newBuilder() + .setRootComponentRef(1) + .build()); + + step().execute(new ComputationContext(new BatchReportReader(reportDir), ComponentTesting.newProjectDto("ABCD"))); List docs = esTester.getDocuments(SourceLineIndexDefinition.INDEX, SourceLineIndexDefinition.TYPE); assertThat(docs).hasSize(1); diff --git a/server/sonar-server/src/test/java/org/sonar/server/computation/step/IndexTestsStepTest.java b/server/sonar-server/src/test/java/org/sonar/server/computation/step/IndexTestsStepTest.java index c5ea4eabe3c..1c3cff61d1c 100644 --- a/server/sonar-server/src/test/java/org/sonar/server/computation/step/IndexTestsStepTest.java +++ b/server/sonar-server/src/test/java/org/sonar/server/computation/step/IndexTestsStepTest.java @@ -23,12 +23,17 @@ package org.sonar.server.computation.step; import org.elasticsearch.search.SearchHit; import org.junit.Before; import org.junit.ClassRule; +import org.junit.Rule; import org.junit.Test; +import org.junit.rules.TemporaryFolder; import org.sonar.api.config.Settings; +import org.sonar.batch.protocol.output.BatchReport; import org.sonar.batch.protocol.output.BatchReportReader; +import org.sonar.batch.protocol.output.BatchReportWriter; import org.sonar.core.persistence.DbTester; import org.sonar.server.component.ComponentTesting; import org.sonar.server.computation.ComputationContext; +import org.sonar.server.computation.component.DbComponentsRefCache; import org.sonar.server.db.DbClient; import org.sonar.server.es.EsTester; import org.sonar.server.source.db.FileSourceDao; @@ -37,14 +42,17 @@ import org.sonar.server.test.index.TestDoc; import org.sonar.server.test.index.TestIndexDefinition; import org.sonar.server.test.index.TestIndexer; +import java.io.File; import java.sql.Connection; import java.util.List; import static org.assertj.core.api.Assertions.assertThat; -import static org.mockito.Mockito.mock; public class IndexTestsStepTest extends BaseStepTest { + @Rule + public TemporaryFolder temp = new TemporaryFolder(); + @ClassRule public static DbTester dbTester = new DbTester(); @@ -53,27 +61,38 @@ public class IndexTestsStepTest extends BaseStepTest { DbClient dbClient; + DbComponentsRefCache dbComponentsRefCache; + @Before public void setUp() { dbClient = new DbClient(dbTester.database(), dbTester.myBatis(), new FileSourceDao(null)); esTester.truncateIndices(); + dbComponentsRefCache = new DbComponentsRefCache(); } @Override protected ComputationStep step() { TestIndexer testIndexer = new TestIndexer(dbClient, esTester.client()); testIndexer.setEnabled(true); - return new IndexTestsStep(testIndexer); + return new IndexTestsStep(testIndexer, dbComponentsRefCache); } @Test public void index_test() throws Exception { + dbComponentsRefCache.addComponent(1, new DbComponentsRefCache.DbComponent(1L, "PROJECT_KEY", "ABCD")); + dbTester.prepareDbUnit(getClass(), "index_source.xml"); Connection connection = dbTester.openConnection(); TestTesting.updateDataColumn(connection, "FILE1_UUID", TestTesting.newRandomTests(1)); connection.close(); - step().execute(new ComputationContext(mock(BatchReportReader.class), ComponentTesting.newProjectDto("ABCD"))); + File reportDir = temp.newFolder(); + BatchReportWriter writer = new BatchReportWriter(reportDir); + writer.writeMetadata(BatchReport.Metadata.newBuilder() + .setRootComponentRef(1) + .build()); + + step().execute(new ComputationContext(new BatchReportReader(reportDir), ComponentTesting.newProjectDto("ABCD"))); List docs = esTester.getDocuments(TestIndexDefinition.INDEX, TestIndexDefinition.TYPE); assertThat(docs).hasSize(1); diff --git a/server/sonar-server/src/test/java/org/sonar/server/computation/step/ParseReportStepTest.java b/server/sonar-server/src/test/java/org/sonar/server/computation/step/ParseReportStepTest.java index ec0613c8f89..21a14102565 100644 --- a/server/sonar-server/src/test/java/org/sonar/server/computation/step/ParseReportStepTest.java +++ b/server/sonar-server/src/test/java/org/sonar/server/computation/step/ParseReportStepTest.java @@ -30,6 +30,7 @@ import org.sonar.batch.protocol.output.BatchReportWriter; import org.sonar.core.component.ComponentDto; import org.sonar.core.persistence.DbTester; import org.sonar.server.computation.ComputationContext; +import org.sonar.server.computation.component.ComputeComponentsRefCache; import org.sonar.server.computation.issue.IssueComputation; import java.io.File; @@ -55,10 +56,16 @@ public class ParseReportStepTest extends BaseStepTest { public static DbTester dbTester = new DbTester(); IssueComputation issueComputation = mock(IssueComputation.class); - ParseReportStep sut = new ParseReportStep(issueComputation); + ComputeComponentsRefCache computeComponentsRefCache = new ComputeComponentsRefCache(); + + ParseReportStep sut = new ParseReportStep(issueComputation, computeComponentsRefCache); @Test public void extract_report_from_db_and_browse_components() throws Exception { + computeComponentsRefCache.addComponent(1, new ComputeComponentsRefCache.ComputeComponent("PROJECT_KEY", "PROJECT_UUID")); + computeComponentsRefCache.addComponent(2, new ComputeComponentsRefCache.ComputeComponent("PROJECT_KEY:file1", "FILE1_UUID")); + computeComponentsRefCache.addComponent(3, new ComputeComponentsRefCache.ComputeComponent("PROJECT_KEY:file2", "FILE2_UUID")); + File reportDir = generateReport(); ComputationContext context = new ComputationContext(new BatchReportReader(reportDir), mock(ComponentDto.class)); @@ -68,10 +75,10 @@ public class ParseReportStepTest extends BaseStepTest { assertThat(context.getReportMetadata().getDeletedComponentsCount()).isEqualTo(1); // verify that all components are processed (currently only for issues) - verify(issueComputation).processComponentIssues(context, Collections.emptyList(), "PROJECT_UUID", 1); - verify(issueComputation).processComponentIssues(context, Collections.emptyList(), "FILE1_UUID", 2); - verify(issueComputation).processComponentIssues(context, Collections.emptyList(), "FILE2_UUID", 3); - verify(issueComputation).processComponentIssues(context, ISSUES_ON_DELETED_COMPONENT, "DELETED_UUID", null); + verify(issueComputation).processComponentIssues(context, Collections.emptyList(), "PROJECT_UUID", 1, "PROJECT_KEY", "PROJECT_UUID"); + verify(issueComputation).processComponentIssues(context, Collections.emptyList(), "FILE1_UUID", 2, "PROJECT_KEY", "PROJECT_UUID"); + verify(issueComputation).processComponentIssues(context, Collections.emptyList(), "FILE2_UUID", 3, "PROJECT_KEY", "PROJECT_UUID"); + verify(issueComputation).processComponentIssues(context, ISSUES_ON_DELETED_COMPONENT, "DELETED_UUID", null, "PROJECT_KEY", "PROJECT_UUID"); verify(issueComputation).afterReportProcessing(); } @@ -89,19 +96,16 @@ public class ParseReportStepTest extends BaseStepTest { writer.writeComponent(BatchReport.Component.newBuilder() .setRef(1) .setType(Constants.ComponentType.PROJECT) - .setUuid("PROJECT_UUID") .addChildRef(2) .addChildRef(3) .build()); writer.writeComponent(BatchReport.Component.newBuilder() .setRef(2) .setType(Constants.ComponentType.FILE) - .setUuid("FILE1_UUID") .build()); writer.writeComponent(BatchReport.Component.newBuilder() .setRef(3) .setType(Constants.ComponentType.FILE) - .setUuid("FILE2_UUID") .build()); // deleted components diff --git a/server/sonar-server/src/test/java/org/sonar/server/computation/step/PersistComponentsStepTest.java b/server/sonar-server/src/test/java/org/sonar/server/computation/step/PersistComponentsStepTest.java index 33a3240115f..1893f552f5e 100644 --- a/server/sonar-server/src/test/java/org/sonar/server/computation/step/PersistComponentsStepTest.java +++ b/server/sonar-server/src/test/java/org/sonar/server/computation/step/PersistComponentsStepTest.java @@ -37,6 +37,8 @@ import org.sonar.core.persistence.DbTester; import org.sonar.server.component.ComponentTesting; import org.sonar.server.component.db.ComponentDao; import org.sonar.server.computation.ComputationContext; +import org.sonar.server.computation.component.ComputeComponentsRefCache; +import org.sonar.server.computation.component.DbComponentsRefCache; import org.sonar.server.db.DbClient; import org.sonar.test.DbTests; @@ -59,6 +61,9 @@ public class PersistComponentsStepTest extends BaseStepTest { DbClient dbClient; + ComputeComponentsRefCache computeComponentsRefCache; + DbComponentsRefCache dbComponentsRefCache; + PersistComponentsStep sut; @Before @@ -69,7 +74,9 @@ public class PersistComponentsStepTest extends BaseStepTest { reportDir = temp.newFolder(); - sut = new PersistComponentsStep(dbClient); + computeComponentsRefCache = new ComputeComponentsRefCache(); + dbComponentsRefCache = new DbComponentsRefCache(); + sut = new PersistComponentsStep(dbClient, computeComponentsRefCache, dbComponentsRefCache); } @Override @@ -84,6 +91,11 @@ public class PersistComponentsStepTest extends BaseStepTest { @Test public void persist_components() throws Exception { + computeComponentsRefCache.addComponent(1, new ComputeComponentsRefCache.ComputeComponent("PROJECT_KEY", "ABCD")); + computeComponentsRefCache.addComponent(2, new ComputeComponentsRefCache.ComputeComponent("MODULE_KEY", "BCDE")); + computeComponentsRefCache.addComponent(3, new ComputeComponentsRefCache.ComputeComponent("MODULE_KEY:src/main/java/dir", "CDEF")); + computeComponentsRefCache.addComponent(4, new ComputeComponentsRefCache.ComputeComponent("MODULE_KEY:src/main/java/dir/Foo.java", "DEFG")); + File reportDir = temp.newFolder(); BatchReportWriter writer = new BatchReportWriter(reportDir); writer.writeMetadata(BatchReport.Metadata.newBuilder() @@ -127,7 +139,7 @@ public class PersistComponentsStepTest extends BaseStepTest { assertThat(project).isNotNull(); assertThat(project.name()).isEqualTo("Project"); assertThat(project.description()).isEqualTo("Project description"); - assertThat(project.uuid()).isNotNull(); + assertThat(project.uuid()).isEqualTo("ABCD"); assertThat(project.moduleUuid()).isNull(); assertThat(project.moduleUuidPath()).isEqualTo("." + project.uuid() + "."); assertThat(project.projectUuid()).isEqualTo(project.uuid()); @@ -139,7 +151,7 @@ public class PersistComponentsStepTest extends BaseStepTest { assertThat(module).isNotNull(); assertThat(module.name()).isEqualTo("Module"); assertThat(module.description()).isEqualTo("Module description"); - assertThat(module.uuid()).isNotNull(); + assertThat(module.uuid()).isEqualTo("BCDE"); assertThat(module.moduleUuid()).isEqualTo(project.uuid()); assertThat(module.moduleUuidPath()).isEqualTo(project.moduleUuidPath() + module.uuid() + "."); assertThat(module.projectUuid()).isEqualTo(project.uuid()); @@ -151,7 +163,7 @@ public class PersistComponentsStepTest extends BaseStepTest { assertThat(directory).isNotNull(); assertThat(directory.name()).isEqualTo("src/main/java/dir"); assertThat(directory.path()).isEqualTo("src/main/java/dir"); - assertThat(directory.uuid()).isNotNull(); + assertThat(directory.uuid()).isEqualTo("CDEF"); assertThat(directory.moduleUuid()).isEqualTo(module.uuid()); assertThat(directory.moduleUuidPath()).isEqualTo(module.moduleUuidPath()); assertThat(directory.projectUuid()).isEqualTo(project.uuid()); @@ -164,17 +176,26 @@ public class PersistComponentsStepTest extends BaseStepTest { assertThat(file.name()).isEqualTo("Foo.java"); assertThat(file.path()).isEqualTo("src/main/java/dir/Foo.java"); assertThat(file.language()).isEqualTo("java"); - assertThat(file.uuid()).isNotNull(); + assertThat(file.uuid()).isEqualTo("DEFG"); assertThat(file.moduleUuid()).isEqualTo(module.uuid()); assertThat(file.moduleUuidPath()).isEqualTo(module.moduleUuidPath()); assertThat(file.projectUuid()).isEqualTo(project.uuid()); assertThat(file.qualifier()).isEqualTo("FIL"); assertThat(file.scope()).isEqualTo("FIL"); assertThat(file.parentProjectId()).isEqualTo(module.getId()); + + assertThat(dbComponentsRefCache.getByRef(1).getId()).isEqualTo(project.getId()); + assertThat(dbComponentsRefCache.getByRef(2).getId()).isEqualTo(module.getId()); + assertThat(dbComponentsRefCache.getByRef(3).getId()).isEqualTo(directory.getId()); + assertThat(dbComponentsRefCache.getByRef(4).getId()).isEqualTo(file.getId()); } @Test public void persist_file_directly_attached_on_root_directory() throws Exception { + computeComponentsRefCache.addComponent(1, new ComputeComponentsRefCache.ComputeComponent("PROJECT_KEY", "ABCD")); + computeComponentsRefCache.addComponent(2, new ComputeComponentsRefCache.ComputeComponent("PROJECT_KEY:/", "CDEF")); + computeComponentsRefCache.addComponent(3, new ComputeComponentsRefCache.ComputeComponent("PROJECT_KEY:pom.xml", "DEFG")); + File reportDir = temp.newFolder(); BatchReportWriter writer = new BatchReportWriter(reportDir); writer.writeMetadata(BatchReport.Metadata.newBuilder() @@ -215,6 +236,10 @@ public class PersistComponentsStepTest extends BaseStepTest { @Test public void persist_unit_test() throws Exception { + computeComponentsRefCache.addComponent(1, new ComputeComponentsRefCache.ComputeComponent("PROJECT_KEY", "ABCD")); + computeComponentsRefCache.addComponent(2, new ComputeComponentsRefCache.ComputeComponent("PROJECT_KEY:src/test/java/dir", "CDEF")); + computeComponentsRefCache.addComponent(3, new ComputeComponentsRefCache.ComputeComponent("PROJECT_KEY:src/test/java/dir/FooTest.java", "DEFG")); + File reportDir = temp.newFolder(); BatchReportWriter writer = new BatchReportWriter(reportDir); writer.writeMetadata(BatchReport.Metadata.newBuilder() @@ -251,101 +276,13 @@ public class PersistComponentsStepTest extends BaseStepTest { assertThat(file.scope()).isEqualTo("FIL"); } - @Test - public void use_latest_module_for_files_key() throws Exception { - File reportDir = temp.newFolder(); - BatchReportWriter writer = new BatchReportWriter(reportDir); - writer.writeMetadata(BatchReport.Metadata.newBuilder() - .setRootComponentRef(1) - .build()); - - writer.writeComponent(BatchReport.Component.newBuilder() - .setRef(1) - .setType(Constants.ComponentType.PROJECT) - .setKey("PROJECT_KEY") - .setName("Project") - .addChildRef(2) - .build()); - writer.writeComponent(BatchReport.Component.newBuilder() - .setRef(2) - .setType(Constants.ComponentType.MODULE) - .setKey("MODULE_KEY") - .setName("Module") - .addChildRef(3) - .build()); - writer.writeComponent(BatchReport.Component.newBuilder() - .setRef(3) - .setType(Constants.ComponentType.MODULE) - .setKey("SUB_MODULE_KEY") - .setName("Sub Module") - .addChildRef(4) - .build()); - writer.writeComponent(BatchReport.Component.newBuilder() - .setRef(4) - .setType(Constants.ComponentType.DIRECTORY) - .setPath("src/main/java/dir") - .addChildRef(5) - .build()); - writer.writeComponent(BatchReport.Component.newBuilder() - .setRef(5) - .setType(Constants.ComponentType.FILE) - .setPath("src/main/java/dir/Foo.java") - .build()); - - sut.execute(new ComputationContext(new BatchReportReader(reportDir), ComponentTesting.newProjectDto())); - - assertThat(dbClient.componentDao().selectNullableByKey(session, "MODULE_KEY")).isNotNull(); - assertThat(dbClient.componentDao().selectNullableByKey(session, "SUB_MODULE_KEY")).isNotNull(); - assertThat(dbClient.componentDao().selectNullableByKey(session, "SUB_MODULE_KEY:src/main/java/dir")).isNotNull(); - assertThat(dbClient.componentDao().selectNullableByKey(session, "SUB_MODULE_KEY:src/main/java/dir/Foo.java")).isNotNull(); - } - - @Test - public void persist_with_branch() throws Exception { - File reportDir = temp.newFolder(); - BatchReportWriter writer = new BatchReportWriter(reportDir); - writer.writeMetadata(BatchReport.Metadata.newBuilder() - .setRootComponentRef(1) - .setBranch("origin/master") - .build()); - - writer.writeComponent(BatchReport.Component.newBuilder() - .setRef(1) - .setType(Constants.ComponentType.PROJECT) - .setKey("PROJECT_KEY") - .setName("Project") - .addChildRef(2) - .build()); - writer.writeComponent(BatchReport.Component.newBuilder() - .setRef(2) - .setType(Constants.ComponentType.MODULE) - .setKey("MODULE_KEY") - .setName("Module") - .addChildRef(3) - .build()); - writer.writeComponent(BatchReport.Component.newBuilder() - .setRef(3) - .setType(Constants.ComponentType.DIRECTORY) - .setPath("src/main/java/dir") - .addChildRef(4) - .build()); - writer.writeComponent(BatchReport.Component.newBuilder() - .setRef(4) - .setType(Constants.ComponentType.FILE) - .setPath("src/main/java/dir/Foo.java") - .build()); - - sut.execute(new ComputationContext(new BatchReportReader(reportDir), ComponentTesting.newProjectDto())); - - assertThat(dbTester.countRowsOfTable("projects")).isEqualTo(4); - assertThat(dbClient.componentDao().selectNullableByKey(session, "PROJECT_KEY:origin/master")).isNotNull(); - assertThat(dbClient.componentDao().selectNullableByKey(session, "MODULE_KEY:origin/master")).isNotNull(); - assertThat(dbClient.componentDao().selectNullableByKey(session, "MODULE_KEY:origin/master:src/main/java/dir")).isNotNull(); - assertThat(dbClient.componentDao().selectNullableByKey(session, "MODULE_KEY:origin/master:src/main/java/dir/Foo.java")).isNotNull(); - } - @Test public void persist_only_new_components() throws Exception { + computeComponentsRefCache.addComponent(1, new ComputeComponentsRefCache.ComputeComponent("PROJECT_KEY", "ABCD")); + computeComponentsRefCache.addComponent(2, new ComputeComponentsRefCache.ComputeComponent("MODULE_KEY", "BCDE")); + computeComponentsRefCache.addComponent(3, new ComputeComponentsRefCache.ComputeComponent("MODULE_KEY:src/main/java/dir", "CDEF")); + computeComponentsRefCache.addComponent(4, new ComputeComponentsRefCache.ComputeComponent("MODULE_KEY:src/main/java/dir/Foo.java", "DEFG")); + // Project amd module already exists ComponentDto project = ComponentTesting.newProjectDto("ABCD").setKey("PROJECT_KEY").setName("Project"); dbClient.componentDao().insert(session, project); @@ -418,6 +355,11 @@ public class PersistComponentsStepTest extends BaseStepTest { @Test public void nothing_to_persist() throws Exception { + computeComponentsRefCache.addComponent(1, new ComputeComponentsRefCache.ComputeComponent("PROJECT_KEY", "ABCD")); + computeComponentsRefCache.addComponent(2, new ComputeComponentsRefCache.ComputeComponent("MODULE_KEY", "BCDE")); + computeComponentsRefCache.addComponent(3, new ComputeComponentsRefCache.ComputeComponent("MODULE_KEY:src/main/java/dir", "CDEF")); + computeComponentsRefCache.addComponent(4, new ComputeComponentsRefCache.ComputeComponent("MODULE_KEY:src/main/java/dir/Foo.java", "DEFG")); + ComponentDto project = ComponentTesting.newProjectDto("ABCD").setKey("PROJECT_KEY").setName("Project"); dbClient.componentDao().insert(session, project); ComponentDto module = ComponentTesting.newModuleDto("BCDE", project).setKey("MODULE_KEY").setName("Module"); @@ -506,6 +448,9 @@ public class PersistComponentsStepTest extends BaseStepTest { @Test public void update_name_and_description() throws Exception { + computeComponentsRefCache.addComponent(1, new ComputeComponentsRefCache.ComputeComponent("PROJECT_KEY", "ABCD")); + computeComponentsRefCache.addComponent(2, new ComputeComponentsRefCache.ComputeComponent("MODULE_KEY", "BCDE")); + ComponentDto project = ComponentTesting.newProjectDto("ABCD").setKey("PROJECT_KEY").setName("Project"); dbClient.componentDao().insert(session, project); ComponentDto module = ComponentTesting.newModuleDto("BCDE", project).setKey("MODULE_KEY").setName("Module"); @@ -547,10 +492,17 @@ public class PersistComponentsStepTest extends BaseStepTest { @Test public void update_module_uuid_when_moving_a_module() throws Exception { + computeComponentsRefCache.addComponent(1, new ComputeComponentsRefCache.ComputeComponent("PROJECT_KEY", "ABCD")); + computeComponentsRefCache.addComponent(2, new ComputeComponentsRefCache.ComputeComponent("MODULE_A", "EDCB")); + computeComponentsRefCache.addComponent(3, new ComputeComponentsRefCache.ComputeComponent("MODULE_B", "BCDE")); + computeComponentsRefCache.addComponent(4, new ComputeComponentsRefCache.ComputeComponent("MODULE_B:src/main/java/dir", "CDEF")); + computeComponentsRefCache.addComponent(5, new ComputeComponentsRefCache.ComputeComponent("MODULE_B:src/main/java/dir/Foo.java", "DEFG")); + ComponentDto project = ComponentTesting.newProjectDto("ABCD").setKey("PROJECT_KEY").setName("Project"); dbClient.componentDao().insert(session, project); + ComponentDto moduleA = ComponentTesting.newModuleDto("EDCB", project).setKey("MODULE_A").setName("Module A"); ComponentDto moduleB = ComponentTesting.newModuleDto("BCDE", project).setKey("MODULE_B").setName("Module B"); - dbClient.componentDao().insert(session, moduleB); + dbClient.componentDao().insert(session, moduleA, moduleB); ComponentDto directory = ComponentTesting.newDirectory(moduleB, "src/main/java/dir").setUuid("CDEF").setKey("MODULE_B:src/main/java/dir"); ComponentDto file = ComponentTesting.newFileDto(moduleB, "DEFG").setPath("src/main/java/dir/Foo.java").setName("Foo.java").setKey("MODULE_B:src/main/java/dir/Foo.java"); dbClient.componentDao().insert(session, directory, file); @@ -600,16 +552,16 @@ public class PersistComponentsStepTest extends BaseStepTest { assertThat(dbTester.countRowsOfTable("projects")).isEqualTo(5); - ComponentDto moduleA = dbClient.componentDao().selectNullableByKey(session, "MODULE_A"); - assertThat(moduleA).isNotNull(); + ComponentDto moduleAreloaded = dbClient.componentDao().selectNullableByKey(session, "MODULE_A"); + assertThat(moduleAreloaded).isNotNull(); ComponentDto moduleBReloaded = dbClient.componentDao().selectNullableByKey(session, "MODULE_B"); assertThat(moduleBReloaded).isNotNull(); assertThat(moduleBReloaded.uuid()).isEqualTo(moduleB.uuid()); - assertThat(moduleBReloaded.moduleUuid()).isEqualTo(moduleA.uuid()); - assertThat(moduleBReloaded.moduleUuidPath()).isEqualTo(moduleA.moduleUuidPath() + moduleBReloaded.uuid() + "."); + assertThat(moduleBReloaded.moduleUuid()).isEqualTo(moduleAreloaded.uuid()); + assertThat(moduleBReloaded.moduleUuidPath()).isEqualTo(moduleAreloaded.moduleUuidPath() + moduleBReloaded.uuid() + "."); assertThat(moduleBReloaded.projectUuid()).isEqualTo(project.uuid()); - assertThat(moduleBReloaded.parentProjectId()).isEqualTo(moduleA.getId()); + assertThat(moduleBReloaded.parentProjectId()).isEqualTo(moduleAreloaded.getId()); ComponentDto directoryReloaded = dbClient.componentDao().selectNullableByKey(session, "MODULE_B:src/main/java/dir"); assertThat(directoryReloaded).isNotNull(); diff --git a/server/sonar-server/src/test/java/org/sonar/server/computation/step/PersistDuplicationsStepTest.java b/server/sonar-server/src/test/java/org/sonar/server/computation/step/PersistDuplicationsStepTest.java index ebd7c15b209..d83a3f1f866 100644 --- a/server/sonar-server/src/test/java/org/sonar/server/computation/step/PersistDuplicationsStepTest.java +++ b/server/sonar-server/src/test/java/org/sonar/server/computation/step/PersistDuplicationsStepTest.java @@ -38,6 +38,8 @@ import org.sonar.core.persistence.DbSession; import org.sonar.core.persistence.DbTester; import org.sonar.server.component.ComponentTesting; import org.sonar.server.computation.ComputationContext; +import org.sonar.server.computation.component.DbComponentsRefCache; +import org.sonar.server.computation.component.DbComponentsRefCache.DbComponent; import org.sonar.server.db.DbClient; import org.sonar.server.measure.persistence.MeasureDao; import org.sonar.server.measure.persistence.MetricDao; @@ -64,6 +66,8 @@ public class PersistDuplicationsStepTest extends BaseStepTest { DbClient dbClient; + DbComponentsRefCache dbComponentsRefCache; + PersistDuplicationsStep sut; @Before @@ -74,7 +78,8 @@ public class PersistDuplicationsStepTest extends BaseStepTest { reportDir = temp.newFolder(); - sut = new PersistDuplicationsStep(dbClient); + dbComponentsRefCache = new DbComponentsRefCache(); + sut = new PersistDuplicationsStep(dbClient, dbComponentsRefCache); } @Override @@ -130,6 +135,10 @@ public class PersistDuplicationsStepTest extends BaseStepTest { @Test public void persist_duplications_on_same_file_linked_on_a_module() throws Exception { + dbComponentsRefCache.addComponent(1, new DbComponent(1L, "PROJECT_KEY", "ABCD")); + dbComponentsRefCache.addComponent(2, new DbComponent(2L, "MODULE_KEY", "BCDE")); + dbComponentsRefCache.addComponent(3, new DbComponent(3L, "MODULE_KEY:file", "CDEF")); + saveDuplicationMetric(); File reportDir = temp.newFolder(); @@ -185,6 +194,11 @@ public class PersistDuplicationsStepTest extends BaseStepTest { @Test public void persist_duplications_on_same_file_linked_on_a_folder() { + dbComponentsRefCache.addComponent(1, new DbComponent(1L, "PROJECT_KEY", "ABCD")); + dbComponentsRefCache.addComponent(2, new DbComponent(2L, "PROJECT_KEY:dir", "BCDE")); + dbComponentsRefCache.addComponent(3, new DbComponent(3L, "PROJECT_KEY:file", "CDEF")); + + saveDuplicationMetric(); BatchReportWriter writer = new BatchReportWriter(reportDir); @@ -239,6 +253,11 @@ public class PersistDuplicationsStepTest extends BaseStepTest { @Test public void persist_duplications_on_same_file_linked_on_sub_folder() { + dbComponentsRefCache.addComponent(1, new DbComponent(1L, "PROJECT_KEY", "ABCD")); + dbComponentsRefCache.addComponent(2, new DbComponent(2L, "PROJECT_KEY:dir", "BCDE")); + dbComponentsRefCache.addComponent(3, new DbComponent(3L, "PROJECT_KEY:dir", "CDEF")); + dbComponentsRefCache.addComponent(10, new DbComponent(10L, "PROJECT_KEY:file", "DEFG")); + saveDuplicationMetric(); BatchReportWriter writer = new BatchReportWriter(reportDir); @@ -297,58 +316,9 @@ public class PersistDuplicationsStepTest extends BaseStepTest { assertThat(dto.get("textValue")).isEqualTo(""); } - @Test - public void persist_duplications_on_same_file_when_a_branch_is_used() throws Exception { - saveDuplicationMetric(); - - File reportDir = temp.newFolder(); - BatchReportWriter writer = new BatchReportWriter(reportDir); - writer.writeMetadata(BatchReport.Metadata.newBuilder() - .setRootComponentRef(1) - .setBranch("origin/master") - .build()); - - writer.writeComponent(BatchReport.Component.newBuilder() - .setRef(1) - .setType(Constants.ComponentType.PROJECT) - .setKey("PROJECT_KEY") - .setSnapshotId(10L) - .addChildRef(2) - .build()); - writer.writeComponent(BatchReport.Component.newBuilder() - .setRef(2) - .setType(Constants.ComponentType.FILE) - .setSnapshotId(11L) - .setPath("file") - .build()); - - BatchReport.Duplication duplication = BatchReport.Duplication.newBuilder() - .setOriginPosition(Range.newBuilder() - .setStartLine(1) - .setEndLine(5) - .build()) - .addDuplicate(BatchReport.Duplicate.newBuilder() - .setOtherFileRef(2) - .setRange(Range.newBuilder() - .setStartLine(6) - .setEndLine(10) - .build()) - .build()) - .build(); - writer.writeComponentDuplications(2, newArrayList(duplication)); - - sut.execute(new ComputationContext(new BatchReportReader(reportDir), ComponentTesting.newProjectDto("PROJECT"))); - - assertThat(dbTester.countRowsOfTable("project_measures")).isEqualTo(1); - - Map dto = dbTester.selectFirst("select snapshot_id as \"snapshotId\", text_value as \"textValue\" from project_measures"); - assertThat(dto.get("snapshotId")).isEqualTo(11L); - assertThat(dto.get("textValue")).isEqualTo( - ""); - } - @Test public void persist_duplications_on_different_files() { + dbComponentsRefCache.addComponent(3, new DbComponent(3L, "PROJECT_KEY:file2", "CDEF")); saveDuplicationMetric(); BatchReportWriter writer = initReportWithProjectAndFile(); @@ -413,6 +383,9 @@ public class PersistDuplicationsStepTest extends BaseStepTest { } private BatchReportWriter initReportWithProjectAndFile() { + dbComponentsRefCache.addComponent(1, new DbComponent(1L, "PROJECT_KEY", "ABCD")); + dbComponentsRefCache.addComponent(2, new DbComponent(2L, "PROJECT_KEY:file", "BCDE")); + BatchReportWriter writer = new BatchReportWriter(reportDir); writer.writeMetadata(BatchReport.Metadata.newBuilder() .setRootComponentRef(1) diff --git a/server/sonar-server/src/test/java/org/sonar/server/computation/step/PersistEventsStepTest.java b/server/sonar-server/src/test/java/org/sonar/server/computation/step/PersistEventsStepTest.java index 77c87f580a2..316b2a131c9 100644 --- a/server/sonar-server/src/test/java/org/sonar/server/computation/step/PersistEventsStepTest.java +++ b/server/sonar-server/src/test/java/org/sonar/server/computation/step/PersistEventsStepTest.java @@ -36,6 +36,8 @@ import org.sonar.core.component.ComponentDto; import org.sonar.core.persistence.DbSession; import org.sonar.core.persistence.DbTester; import org.sonar.server.computation.ComputationContext; +import org.sonar.server.computation.component.DbComponentsRefCache; +import org.sonar.server.computation.component.DbComponentsRefCache.DbComponent; import org.sonar.server.db.DbClient; import org.sonar.server.event.db.EventDao; import org.sonar.test.DbTests; @@ -60,6 +62,8 @@ public class PersistEventsStepTest extends BaseStepTest { System2 system2; + DbComponentsRefCache dbComponentsRefCache; + PersistEventsStep step; @Before @@ -71,7 +75,8 @@ public class PersistEventsStepTest extends BaseStepTest { system2 = mock(System2.class); when(system2.now()).thenReturn(1225630680000L); - step = new PersistEventsStep(dbClient, system2); + dbComponentsRefCache = new DbComponentsRefCache(); + step = new PersistEventsStep(dbClient, system2, dbComponentsRefCache); } @Override @@ -88,6 +93,8 @@ public class PersistEventsStepTest extends BaseStepTest { public void nothing_to_do_when_no_events_in_report() throws Exception { dbTester.prepareDbUnit(getClass(), "nothing_to_do_when_no_events_in_report.xml"); + dbComponentsRefCache.addComponent(1, new DbComponent(1L, "PROJECT_KEY", "ABCD")); + File reportDir = temp.newFolder(); BatchReportWriter writer = new BatchReportWriter(reportDir); writer.writeMetadata(BatchReport.Metadata.newBuilder() @@ -99,7 +106,6 @@ public class PersistEventsStepTest extends BaseStepTest { writer.writeComponent(BatchReport.Component.newBuilder() .setRef(1) .setType(Constants.ComponentType.PROJECT) - .setUuid("ABCD") .build()); step.execute(new ComputationContext(new BatchReportReader(reportDir), mock(ComponentDto.class))); @@ -111,6 +117,8 @@ public class PersistEventsStepTest extends BaseStepTest { public void persist_report_events() throws Exception { dbTester.prepareDbUnit(getClass(), "empty.xml"); + dbComponentsRefCache.addComponent(1, new DbComponent(1L, "PROJECT_KEY", "ABCD")); + File reportDir = temp.newFolder(); BatchReportWriter writer = new BatchReportWriter(reportDir); writer.writeMetadata(BatchReport.Metadata.newBuilder() @@ -122,7 +130,6 @@ public class PersistEventsStepTest extends BaseStepTest { writer.writeComponent(BatchReport.Component.newBuilder() .setRef(1) .setType(Constants.ComponentType.PROJECT) - .setUuid("ABCD") .setSnapshotId(1000L) .addEvent(BatchReport.Event.newBuilder() .setName("Red (was Orange)") @@ -147,6 +154,9 @@ public class PersistEventsStepTest extends BaseStepTest { public void persist_report_events_with_component_children() throws Exception { dbTester.prepareDbUnit(getClass(), "empty.xml"); + dbComponentsRefCache.addComponent(1, new DbComponent(1L, "PROJECT_KEY", "ABCD")); + dbComponentsRefCache.addComponent(2, new DbComponent(2L, "MODULE_KEY", "BCDE")); + File reportDir = temp.newFolder(); BatchReportWriter writer = new BatchReportWriter(reportDir); writer.writeMetadata(BatchReport.Metadata.newBuilder() @@ -158,7 +168,6 @@ public class PersistEventsStepTest extends BaseStepTest { writer.writeComponent(BatchReport.Component.newBuilder() .setRef(1) .setType(Constants.ComponentType.PROJECT) - .setUuid("ABCD") .setSnapshotId(1000L) .addEvent(BatchReport.Event.newBuilder() .setName("Red (was Orange)") @@ -171,7 +180,6 @@ public class PersistEventsStepTest extends BaseStepTest { writer.writeComponent(BatchReport.Component.newBuilder() .setRef(2) .setType(Constants.ComponentType.MODULE) - .setUuid("BCDE") .setSnapshotId(1001L) .addEvent(BatchReport.Event.newBuilder() .setName("Red (was Orange)") @@ -189,6 +197,8 @@ public class PersistEventsStepTest extends BaseStepTest { public void create_version_event() throws Exception { dbTester.prepareDbUnit(getClass(), "empty.xml"); + dbComponentsRefCache.addComponent(1, new DbComponent(1L, "PROJECT_KEY", "ABCD")); + File reportDir = temp.newFolder(); BatchReportWriter writer = new BatchReportWriter(reportDir); writer.writeMetadata(BatchReport.Metadata.newBuilder() @@ -200,7 +210,6 @@ public class PersistEventsStepTest extends BaseStepTest { writer.writeComponent(BatchReport.Component.newBuilder() .setRef(1) .setType(Constants.ComponentType.PROJECT) - .setUuid("ABCD") .setSnapshotId(1000L) .setVersion("1.0") .build()); @@ -214,6 +223,8 @@ public class PersistEventsStepTest extends BaseStepTest { public void keep_one_event_by_version() throws Exception { dbTester.prepareDbUnit(getClass(), "keep_one_event_by_version.xml"); + dbComponentsRefCache.addComponent(1, new DbComponent(1L, "PROJECT_KEY", "ABCD")); + File reportDir = temp.newFolder(); BatchReportWriter writer = new BatchReportWriter(reportDir); writer.writeMetadata(BatchReport.Metadata.newBuilder() @@ -225,7 +236,6 @@ public class PersistEventsStepTest extends BaseStepTest { writer.writeComponent(BatchReport.Component.newBuilder() .setRef(1) .setType(Constants.ComponentType.PROJECT) - .setUuid("ABCD") .setSnapshotId(1001L) .setVersion("1.5-SNAPSHOT") .build()); diff --git a/server/sonar-server/src/test/java/org/sonar/server/computation/step/PersistFileSourcesStepTest.java b/server/sonar-server/src/test/java/org/sonar/server/computation/step/PersistFileSourcesStepTest.java index d66e24ad040..866541368a5 100644 --- a/server/sonar-server/src/test/java/org/sonar/server/computation/step/PersistFileSourcesStepTest.java +++ b/server/sonar-server/src/test/java/org/sonar/server/computation/step/PersistFileSourcesStepTest.java @@ -41,6 +41,7 @@ import org.sonar.core.source.db.FileSourceDto; import org.sonar.core.source.db.FileSourceDto.Type; import org.sonar.server.component.ComponentTesting; import org.sonar.server.computation.ComputationContext; +import org.sonar.server.computation.component.DbComponentsRefCache; import org.sonar.server.db.DbClient; import org.sonar.server.source.db.FileSourceDao; import org.sonar.server.source.db.FileSourceDb; @@ -78,6 +79,8 @@ public class PersistFileSourcesStepTest extends BaseStepTest { System2 system2; + DbComponentsRefCache dbComponentsRefCache; + PersistFileSourcesStep sut; long now = 123456789L; @@ -92,7 +95,8 @@ public class PersistFileSourcesStepTest extends BaseStepTest { system2 = mock(System2.class); when(system2.now()).thenReturn(now); - sut = new PersistFileSourcesStep(dbClient, system2); + dbComponentsRefCache = new DbComponentsRefCache(); + sut = new PersistFileSourcesStep(dbClient, system2, dbComponentsRefCache); } @Override @@ -131,6 +135,9 @@ public class PersistFileSourcesStepTest extends BaseStepTest { @Test public void persist_last_line() throws Exception { + dbComponentsRefCache.addComponent(1, new DbComponentsRefCache.DbComponent(1L, "PROJECT_KEY", PROJECT_UUID)); + dbComponentsRefCache.addComponent(FILE_REF, new DbComponentsRefCache.DbComponent(2L, "PROJECT_KEY:file", FILE_UUID)); + BatchReportWriter writer = new BatchReportWriter(reportDir); FileUtils.writeLines(writer.getFileStructure().fileFor(FileStructure.Domain.SOURCE, FILE_REF), Lists.newArrayList("line1", "line2")); writer.writeMetadata(BatchReport.Metadata.newBuilder() @@ -140,13 +147,11 @@ public class PersistFileSourcesStepTest extends BaseStepTest { writer.writeComponent(BatchReport.Component.newBuilder() .setRef(1) .setType(Constants.ComponentType.PROJECT) - .setUuid(PROJECT_UUID) .addChildRef(FILE_REF) .build()); writer.writeComponent(BatchReport.Component.newBuilder() .setRef(FILE_REF) .setType(Constants.ComponentType.FILE) - .setUuid(FILE_UUID) // Lines is set to 3 but only 2 lines are read from the file -> the last lines should be added .setLines(3) .build()); @@ -440,6 +445,10 @@ public class PersistFileSourcesStepTest extends BaseStepTest { } private BatchReportWriter initBasicReport(int numberOfLines) throws IOException { + dbComponentsRefCache.addComponent(1, new DbComponentsRefCache.DbComponent(1L, "PROJECT_KEY", PROJECT_UUID)); + dbComponentsRefCache.addComponent(2, new DbComponentsRefCache.DbComponent(2L, "MODULE_KEY", "MODULE")); + dbComponentsRefCache.addComponent(FILE_REF, new DbComponentsRefCache.DbComponent(3L, "MODULE_KEY:src/Foo.java", FILE_UUID)); + BatchReportWriter writer = new BatchReportWriter(reportDir); writer.writeMetadata(BatchReport.Metadata.newBuilder() .setRootComponentRef(1) @@ -449,19 +458,16 @@ public class PersistFileSourcesStepTest extends BaseStepTest { writer.writeComponent(BatchReport.Component.newBuilder() .setRef(1) .setType(Constants.ComponentType.PROJECT) - .setUuid(PROJECT_UUID) .addChildRef(2) .build()); writer.writeComponent(BatchReport.Component.newBuilder() .setRef(2) .setType(Constants.ComponentType.MODULE) - .setUuid("MODULE") .addChildRef(FILE_REF) .build()); writer.writeComponent(BatchReport.Component.newBuilder() .setRef(FILE_REF) .setType(Constants.ComponentType.FILE) - .setUuid(FILE_UUID) .setPath("src/Foo.java") .setLines(numberOfLines) .build()); diff --git a/server/sonar-server/src/test/java/org/sonar/server/computation/step/PersistMeasuresStepTest.java b/server/sonar-server/src/test/java/org/sonar/server/computation/step/PersistMeasuresStepTest.java index 71889bf90e9..4d768928265 100644 --- a/server/sonar-server/src/test/java/org/sonar/server/computation/step/PersistMeasuresStepTest.java +++ b/server/sonar-server/src/test/java/org/sonar/server/computation/step/PersistMeasuresStepTest.java @@ -20,15 +20,17 @@ package org.sonar.server.computation.step; -import org.assertj.core.data.Offset; +import org.junit.After; import org.junit.Before; +import org.junit.ClassRule; import org.junit.Rule; import org.junit.Test; +import org.junit.experimental.categories.Category; import org.junit.rules.TemporaryFolder; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; import org.sonar.api.rule.RuleKey; import org.sonar.api.rule.Severity; +import org.sonar.api.utils.System2; +import org.sonar.api.utils.internal.Uuids; import org.sonar.batch.protocol.Constants; import org.sonar.batch.protocol.Constants.MeasureValueType; import org.sonar.batch.protocol.output.BatchReport; @@ -36,55 +38,93 @@ import org.sonar.batch.protocol.output.BatchReportReader; import org.sonar.batch.protocol.output.BatchReportWriter; import org.sonar.core.component.ComponentDto; import org.sonar.core.measure.db.MeasureDto; +import org.sonar.core.measure.db.MetricDto; import org.sonar.core.persistence.DbSession; +import org.sonar.core.persistence.DbTester; +import org.sonar.core.rule.RuleDto; +import org.sonar.server.component.db.ComponentDao; import org.sonar.server.computation.ComputationContext; +import org.sonar.server.computation.component.DbComponentsRefCache; import org.sonar.server.computation.issue.RuleCache; +import org.sonar.server.computation.issue.RuleCacheLoader; import org.sonar.server.computation.measure.MetricCache; import org.sonar.server.db.DbClient; import org.sonar.server.measure.persistence.MeasureDao; +import org.sonar.server.measure.persistence.MetricDao; +import org.sonar.server.rule.RuleTesting; +import org.sonar.server.rule.db.RuleDao; +import org.sonar.test.DbTests; import java.io.File; import java.util.Arrays; import java.util.Date; +import java.util.List; +import java.util.Map; import static org.assertj.core.api.Assertions.assertThat; -import static org.mockito.Mockito.*; +import static org.mockito.Mockito.mock; +@Category(DbTests.class) public class PersistMeasuresStepTest extends BaseStepTest { + private static final String METRIC_KEY = "metric-key"; + private static final RuleKey RULE_KEY = RuleKey.of("repo", "rule-key"); + + DbSession session; + @Rule public TemporaryFolder temp = new TemporaryFolder(); + @ClassRule + public static DbTester dbTester = new DbTester(); + DbClient dbClient; RuleCache ruleCache; MetricCache metricCache; MeasureDao measureDao; + DbComponentsRefCache dbComponentsRefCache; - PersistMeasuresStep sut; + MetricDto metric; + RuleDto rule; - private BatchReport.Component component; + PersistMeasuresStep sut; @Before public void setUp() { - dbClient = mock(DbClient.class, Mockito.RETURNS_DEEP_STUBS); - ruleCache = mock(RuleCache.class, Mockito.RETURNS_DEEP_STUBS); - metricCache = mock(MetricCache.class, Mockito.RETURNS_DEEP_STUBS); - when(metricCache.get("metric-key").getId()).thenReturn(654); - measureDao = mock(MeasureDao.class); - when(ruleCache.get(any(RuleKey.class)).getId()).thenReturn(987); + dbTester.truncateTables(); - sut = new PersistMeasuresStep(dbClient, ruleCache, metricCache); + dbComponentsRefCache = new DbComponentsRefCache(); - component = defaultComponent().build(); + measureDao = new MeasureDao(); + dbClient = new DbClient(dbTester.database(), dbTester.myBatis(), measureDao, new ComponentDao(), new MetricDao(), new RuleDao(System2.INSTANCE)); + session = dbClient.openSession(false); + + metric = new MetricDto().setKey(METRIC_KEY).setEnabled(true).setOptimizedBestValue(false).setHidden(false).setDeleteHistoricalData(false); + dbClient.metricDao().insert(session, metric); + rule = RuleTesting.newDto(RULE_KEY); + dbClient.ruleDao().insert(session, rule); + session.commit(); + + ruleCache = new RuleCache(new RuleCacheLoader(dbClient)); + metricCache = new MetricCache(dbClient); + session.commit(); + + sut = new PersistMeasuresStep(dbClient, ruleCache, metricCache, dbComponentsRefCache); + } + + @After + public void tearDown() throws Exception { + session.close(); } @Test public void insert_measures_from_report() throws Exception { + ComponentDto project = addComponent(1, "project-key"); + ComponentDto file = addComponent(2, "file-key"); + File dir = temp.newFolder(); BatchReportWriter report = new BatchReportWriter(dir); - when(dbClient.measureDao()).thenReturn(measureDao); - report.writeMetadata(BatchReport.Metadata.newBuilder() .setAnalysisDate(new Date().getTime()) .setRootComponentRef(1) @@ -102,73 +142,85 @@ public class PersistMeasuresStepTest extends BaseStepTest { report.writeComponentMeasures(1, Arrays.asList( BatchReport.Measure.newBuilder() - .setValueType(Constants.MeasureValueType.STRING) + .setValueType(MeasureValueType.STRING) .setStringValue("measure-data") .setVariationValue1(1.1d) .setVariationValue2(2.2d) .setVariationValue3(3.3d) .setVariationValue4(4.4d) .setVariationValue5(5.5d) - .setAlertStatus("measure-alert-status") - .setAlertText("measure-alert-text") + .setAlertStatus("WARN") + .setAlertText("Open issues > 0") .setDescription("measure-description") .setSeverity(Constants.Severity.INFO) - .setMetricKey("metric-key") - .setRuleKey("repo:rule-key") + .setMetricKey(METRIC_KEY) + .setRuleKey(RULE_KEY.toString()) .setCharactericId(123456) .build())); report.writeComponentMeasures(2, Arrays.asList( BatchReport.Measure.newBuilder() - .setValueType(Constants.MeasureValueType.DOUBLE) + .setValueType(MeasureValueType.DOUBLE) .setDoubleValue(123.123d) .setVariationValue1(1.1d) .setVariationValue2(2.2d) .setVariationValue3(3.3d) .setVariationValue4(4.4d) .setVariationValue5(5.5d) - .setAlertStatus("measure-alert-status") - .setAlertText("measure-alert-text") + .setAlertStatus("ERROR") + .setAlertText("Blocker issues variation > 0") .setDescription("measure-description") .setSeverity(Constants.Severity.BLOCKER) - .setMetricKey("metric-key") - .setRuleKey("repo:rule-key") + .setMetricKey(METRIC_KEY) + .setRuleKey(RULE_KEY.toString()) .setCharactericId(123456) .build())); sut.execute(new ComputationContext(new BatchReportReader(dir), mock(ComponentDto.class))); - - ArgumentCaptor argument = ArgumentCaptor.forClass(MeasureDto.class); - verify(measureDao, times(2)).insert(any(DbSession.class), argument.capture()); - assertThat(argument.getValue().getValue()).isEqualTo(123.123d, Offset.offset(0.0001d)); - assertThat(argument.getValue().getMetricId()).isEqualTo(654); - assertThat(argument.getValue().getRuleId()).isEqualTo(987); - assertThat(argument.getValue().getSeverity()).isEqualTo(Severity.BLOCKER); - } - - private BatchReport.Component.Builder defaultComponent() { - return BatchReport.Component.newBuilder() - .setRef(1) - .setId(2) - .setSnapshotId(3); + session.commit(); + + assertThat(dbTester.countRowsOfTable("project_measures")).isEqualTo(2); + + List> dtos = dbTester.select( + "select snapshot_id as \"snapshotId\", project_id as \"componentId\", metric_id as \"metricId\", rule_id as \"ruleId\", value as \"value\", text_value as \"textValue\", " + + "rule_priority as \"severity\" from project_measures"); + + Map dto = dtos.get(0); + assertThat(dto.get("snapshotId")).isNotNull(); + assertThat(dto.get("componentId")).isEqualTo(project.getId()); + assertThat(dto.get("metricId")).isEqualTo(metric.getId().longValue()); + assertThat(dto.get("ruleId")).isEqualTo(rule.getId().longValue()); + assertThat(dto.get("textValue")).isEqualTo("measure-data"); + assertThat(dto.get("severity")).isEqualTo(0L); + + dto = dtos.get(1); + assertThat(dto.get("snapshotId")).isNotNull(); + assertThat(dto.get("componentId")).isEqualTo(file.getId()); + assertThat(dto.get("metricId")).isEqualTo(metric.getId().longValue()); + assertThat(dto.get("ruleId")).isEqualTo(rule.getId().longValue()); + assertThat(dto.get("value")).isEqualTo(123.123d); + assertThat(dto.get("severity")).isEqualTo(4L); } @Test public void map_full_batch_measure() { + BatchReport.Component component = defaultComponent().build(); + addComponent(component.getRef(), "component-key"); + BatchReport.Measure batchMeasure = BatchReport.Measure.newBuilder() - .setValueType(Constants.MeasureValueType.DOUBLE) + .setValueType(MeasureValueType.DOUBLE) .setDoubleValue(123.123d) .setVariationValue1(1.1d) .setVariationValue2(2.2d) .setVariationValue3(3.3d) .setVariationValue4(4.4d) .setVariationValue5(5.5d) - .setAlertStatus("measure-alert-status") - .setAlertText("measure-alert-text") + .setAlertStatus("WARN") + .setAlertText("Open issues > 0") .setDescription("measure-description") .setSeverity(Constants.Severity.CRITICAL) - .setMetricKey("metric-key") - .setRuleKey("repo:rule-key") + .setMetricKey(METRIC_KEY) + .setRuleKey(RULE_KEY.toString()) .setCharactericId(123456) .setPersonId(5432) .build(); @@ -180,9 +232,12 @@ public class PersistMeasuresStepTest extends BaseStepTest { @Test public void map_minimal_batch_measure() { + BatchReport.Component component = defaultComponent().build(); + addComponent(component.getRef(), "component-key"); + BatchReport.Measure batchMeasure = BatchReport.Measure.newBuilder() - .setValueType(Constants.MeasureValueType.INT) - .setMetricKey("metric-key") + .setValueType(MeasureValueType.INT) + .setMetricKey(METRIC_KEY) .build(); MeasureDto measure = sut.toMeasureDto(batchMeasure, component); @@ -192,10 +247,13 @@ public class PersistMeasuresStepTest extends BaseStepTest { @Test public void map_boolean_batch_measure() { + BatchReport.Component component = defaultComponent().build(); + addComponent(component.getRef(), "component-key"); + BatchReport.Measure batchMeasure = BatchReport.Measure.newBuilder() - .setValueType(Constants.MeasureValueType.BOOLEAN) + .setValueType(MeasureValueType.BOOLEAN) .setBooleanValue(true) - .setMetricKey("metric-key") + .setMetricKey(METRIC_KEY) .build(); MeasureDto measure = sut.toMeasureDto(batchMeasure, component); @@ -203,9 +261,9 @@ public class PersistMeasuresStepTest extends BaseStepTest { assertThat(measure.getValue()).isEqualTo(1.0); batchMeasure = BatchReport.Measure.newBuilder() - .setValueType(Constants.MeasureValueType.BOOLEAN) + .setValueType(MeasureValueType.BOOLEAN) .setBooleanValue(false) - .setMetricKey("metric-key") + .setMetricKey(METRIC_KEY) .build(); measure = sut.toMeasureDto(batchMeasure, component); @@ -213,8 +271,8 @@ public class PersistMeasuresStepTest extends BaseStepTest { assertThat(measure.getValue()).isEqualTo(0.0); batchMeasure = BatchReport.Measure.newBuilder() - .setValueType(Constants.MeasureValueType.BOOLEAN) - .setMetricKey("metric-key") + .setValueType(MeasureValueType.BOOLEAN) + .setMetricKey(METRIC_KEY) .build(); measure = sut.toMeasureDto(batchMeasure, component); @@ -224,10 +282,13 @@ public class PersistMeasuresStepTest extends BaseStepTest { @Test public void map_double_batch_measure() { + BatchReport.Component component = defaultComponent().build(); + addComponent(component.getRef(), "component-key"); + BatchReport.Measure batchMeasure = BatchReport.Measure.newBuilder() - .setValueType(Constants.MeasureValueType.DOUBLE) + .setValueType(MeasureValueType.DOUBLE) .setDoubleValue(3.2) - .setMetricKey("metric-key") + .setMetricKey(METRIC_KEY) .build(); MeasureDto measure = sut.toMeasureDto(batchMeasure, component); @@ -235,8 +296,8 @@ public class PersistMeasuresStepTest extends BaseStepTest { assertThat(measure.getValue()).isEqualTo(3.2); batchMeasure = BatchReport.Measure.newBuilder() - .setValueType(Constants.MeasureValueType.DOUBLE) - .setMetricKey("metric-key") + .setValueType(MeasureValueType.DOUBLE) + .setMetricKey(METRIC_KEY) .build(); measure = sut.toMeasureDto(batchMeasure, component); @@ -246,10 +307,13 @@ public class PersistMeasuresStepTest extends BaseStepTest { @Test public void map_int_batch_measure() { + BatchReport.Component component = defaultComponent().build(); + addComponent(component.getRef(), "component-key"); + BatchReport.Measure batchMeasure = BatchReport.Measure.newBuilder() - .setValueType(Constants.MeasureValueType.INT) + .setValueType(MeasureValueType.INT) .setIntValue(3) - .setMetricKey("metric-key") + .setMetricKey(METRIC_KEY) .build(); MeasureDto measure = sut.toMeasureDto(batchMeasure, component); @@ -257,8 +321,8 @@ public class PersistMeasuresStepTest extends BaseStepTest { assertThat(measure.getValue()).isEqualTo(3.0); batchMeasure = BatchReport.Measure.newBuilder() - .setValueType(Constants.MeasureValueType.INT) - .setMetricKey("metric-key") + .setValueType(MeasureValueType.INT) + .setMetricKey(METRIC_KEY) .build(); measure = sut.toMeasureDto(batchMeasure, component); @@ -268,10 +332,13 @@ public class PersistMeasuresStepTest extends BaseStepTest { @Test public void map_long_batch_measure() { + BatchReport.Component component = defaultComponent().build(); + addComponent(component.getRef(), "component-key"); + BatchReport.Measure batchMeasure = BatchReport.Measure.newBuilder() - .setValueType(Constants.MeasureValueType.LONG) + .setValueType(MeasureValueType.LONG) .setLongValue(3L) - .setMetricKey("metric-key") + .setMetricKey(METRIC_KEY) .build(); MeasureDto measure = sut.toMeasureDto(batchMeasure, component); @@ -279,8 +346,8 @@ public class PersistMeasuresStepTest extends BaseStepTest { assertThat(measure.getValue()).isEqualTo(3.0); batchMeasure = BatchReport.Measure.newBuilder() - .setValueType(Constants.MeasureValueType.LONG) - .setMetricKey("metric-key") + .setValueType(MeasureValueType.LONG) + .setMetricKey(METRIC_KEY) .build(); measure = sut.toMeasureDto(batchMeasure, component); @@ -296,6 +363,7 @@ public class PersistMeasuresStepTest extends BaseStepTest { .build(); BatchReport.Component component = defaultComponent() .build(); + addComponent(component.getRef(), "component-key"); sut.toMeasureDto(measure, component); } @@ -306,6 +374,7 @@ public class PersistMeasuresStepTest extends BaseStepTest { .build(); BatchReport.Component component = defaultComponent() .build(); + addComponent(component.getRef(), "component-key"); sut.toMeasureDto(measure, component); } @@ -316,6 +385,7 @@ public class PersistMeasuresStepTest extends BaseStepTest { .build(); BatchReport.Component component = defaultComponent() .build(); + addComponent(component.getRef(), "component-key"); sut.toMeasureDto(measure, component); } @@ -331,19 +401,33 @@ public class PersistMeasuresStepTest extends BaseStepTest { .setVariation(3, 3.3d) .setVariation(4, 4.4d) .setVariation(5, 5.5d) - .setAlertStatus("measure-alert-status") - .setAlertText("measure-alert-text") + .setAlertStatus("WARN") + .setAlertText("Open issues > 0") .setDescription("measure-description") .setSeverity(Severity.CRITICAL) - .setMetricId(654) - .setRuleId(987); + .setMetricId(metric.getId()) + .setRuleId(rule.getId()); } private MeasureDto expectedMinimalistMeasure() { return new MeasureDto() .setComponentId(2L) .setSnapshotId(3L) - .setMetricId(654); + .setMetricId(metric.getId()); + } + + private BatchReport.Component.Builder defaultComponent() { + return BatchReport.Component.newBuilder() + .setRef(1) + .setSnapshotId(3); + } + + private ComponentDto addComponent(int ref, String key){ + ComponentDto componentDto = new ComponentDto().setKey(key).setUuid(Uuids.create()); + dbClient.componentDao().insert(session, componentDto); + session.commit(); + dbComponentsRefCache.addComponent(ref, new DbComponentsRefCache.DbComponent(componentDto.getId(), key, componentDto.uuid())); + return componentDto; } @Override diff --git a/server/sonar-server/src/test/java/org/sonar/server/computation/step/PersistNumberOfDaysSinceLastCommitStepTest.java b/server/sonar-server/src/test/java/org/sonar/server/computation/step/PersistNumberOfDaysSinceLastCommitStepTest.java index d76795d5700..ebde86c9570 100644 --- a/server/sonar-server/src/test/java/org/sonar/server/computation/step/PersistNumberOfDaysSinceLastCommitStepTest.java +++ b/server/sonar-server/src/test/java/org/sonar/server/computation/step/PersistNumberOfDaysSinceLastCommitStepTest.java @@ -35,6 +35,7 @@ import org.sonar.core.measure.db.MetricDto; import org.sonar.core.persistence.DbTester; import org.sonar.server.component.ComponentTesting; import org.sonar.server.computation.ComputationContext; +import org.sonar.server.computation.component.DbComponentsRefCache; import org.sonar.server.computation.measure.MetricCache; import org.sonar.server.db.DbClient; import org.sonar.server.measure.persistence.MeasureDao; @@ -61,16 +62,19 @@ public class PersistNumberOfDaysSinceLastCommitStepTest extends BaseStepTest { SourceLineIndex sourceLineIndex; MetricCache metricCache; + DbComponentsRefCache dbComponentsRefCache; + @Before public void setUp() throws Exception { + db.truncateTables(); dbClient = new DbClient(db.database(), db.myBatis(), new MeasureDao()); sourceLineIndex = mock(SourceLineIndex.class); metricCache = mock(MetricCache.class); when(metricCache.get(anyString())).thenReturn(new MetricDto().setId(10)); + dbComponentsRefCache = new DbComponentsRefCache(); dir = temp.newFolder(); - db.truncateTables(); - sut = new PersistNumberOfDaysSinceLastCommitStep(System2.INSTANCE, dbClient, sourceLineIndex, metricCache); + sut = new PersistNumberOfDaysSinceLastCommitStep(System2.INSTANCE, dbClient, sourceLineIndex, metricCache, dbComponentsRefCache); } @Override @@ -121,6 +125,9 @@ public class PersistNumberOfDaysSinceLastCommitStepTest extends BaseStepTest { } private BatchReportWriter initReportWithProjectAndFile() { + dbComponentsRefCache.addComponent(1, new DbComponentsRefCache.DbComponent(1L, "project-key", "project-uuid")); + dbComponentsRefCache.addComponent(2, new DbComponentsRefCache.DbComponent(2L, "project-key:file", "file-uuid")); + BatchReportWriter writer = new BatchReportWriter(dir); writer.writeMetadata(BatchReport.Metadata.newBuilder() .setRootComponentRef(1) @@ -131,7 +138,6 @@ public class PersistNumberOfDaysSinceLastCommitStepTest extends BaseStepTest { .setRef(1) .setType(Constants.ComponentType.PROJECT) .setKey("project-key") - .setUuid("project-uuid") .setSnapshotId(10L) .addChildRef(2) .build()); diff --git a/server/sonar-server/src/test/java/org/sonar/server/computation/step/PersistProjectLinksStepTest.java b/server/sonar-server/src/test/java/org/sonar/server/computation/step/PersistProjectLinksStepTest.java index 81e423d147a..256b008343c 100644 --- a/server/sonar-server/src/test/java/org/sonar/server/computation/step/PersistProjectLinksStepTest.java +++ b/server/sonar-server/src/test/java/org/sonar/server/computation/step/PersistProjectLinksStepTest.java @@ -37,6 +37,7 @@ import org.sonar.core.persistence.DbSession; import org.sonar.core.persistence.DbTester; import org.sonar.server.component.db.ComponentLinkDao; import org.sonar.server.computation.ComputationContext; +import org.sonar.server.computation.component.DbComponentsRefCache; import org.sonar.server.db.DbClient; import org.sonar.test.DbTests; @@ -63,6 +64,8 @@ public class PersistProjectLinksStepTest extends BaseStepTest { I18n i18n; + DbComponentsRefCache dbComponentsRefCache; + PersistProjectLinksStep step; @Before @@ -78,7 +81,8 @@ public class PersistProjectLinksStepTest extends BaseStepTest { when(i18n.message(Locale.ENGLISH, "project_links.ci", null)).thenReturn("Continuous integration"); when(i18n.message(Locale.ENGLISH, "project_links.issue", null)).thenReturn("Issues"); - step = new PersistProjectLinksStep(dbClient, i18n); + dbComponentsRefCache = new DbComponentsRefCache(); + step = new PersistProjectLinksStep(dbClient, i18n, dbComponentsRefCache); } @Override @@ -95,6 +99,9 @@ public class PersistProjectLinksStepTest extends BaseStepTest { public void add_links_on_project_and_module() throws Exception { dbTester.prepareDbUnit(getClass(), "empty.xml"); + dbComponentsRefCache.addComponent(1, new DbComponentsRefCache.DbComponent(1L, "PROJECT_KEY", "ABCD")); + dbComponentsRefCache.addComponent(2, new DbComponentsRefCache.DbComponent(2L, "MODULE_KEY", "BCDE")); + File reportDir = temp.newFolder(); // project and 1 module BatchReportWriter writer = new BatchReportWriter(reportDir); @@ -107,7 +114,6 @@ public class PersistProjectLinksStepTest extends BaseStepTest { writer.writeComponent(BatchReport.Component.newBuilder() .setRef(1) .setType(Constants.ComponentType.PROJECT) - .setUuid("ABCD") .addChildRef(2) .addLink(BatchReport.ComponentLink.newBuilder().setType(Constants.ComponentLinkType.HOME).setHref("http://www.sonarqube.org").build()) .addLink(BatchReport.ComponentLink.newBuilder().setType(Constants.ComponentLinkType.SCM).setHref("https://github.com/SonarSource/sonar").build()) @@ -118,7 +124,6 @@ public class PersistProjectLinksStepTest extends BaseStepTest { writer.writeComponent(BatchReport.Component.newBuilder() .setRef(2) .setType(Constants.ComponentType.MODULE) - .setUuid("BCDE") .addLink(BatchReport.ComponentLink.newBuilder().setType(Constants.ComponentLinkType.SCM).setHref("https://github.com/SonarSource/sonar/server").build()) .build()); @@ -131,18 +136,18 @@ public class PersistProjectLinksStepTest extends BaseStepTest { public void nothing_to_do_when_link_already_exists() throws Exception { dbTester.prepareDbUnit(getClass(), "nothing_to_do_when_link_already_exists.xml"); + dbComponentsRefCache.addComponent(1, new DbComponentsRefCache.DbComponent(1L, "PROJECT_KEY", "ABCD")); + File reportDir = temp.newFolder(); BatchReportWriter writer = new BatchReportWriter(reportDir); writer.writeMetadata(BatchReport.Metadata.newBuilder() .setRootComponentRef(1) .setProjectKey("PROJECT_KEY") - .setAnalysisDate(150000000L) .build()); writer.writeComponent(BatchReport.Component.newBuilder() .setRef(1) .setType(Constants.ComponentType.PROJECT) - .setUuid("ABCD") .addLink(BatchReport.ComponentLink.newBuilder().setType(Constants.ComponentLinkType.HOME).setHref("http://www.sonarqube.org").build()) .build()); @@ -155,18 +160,18 @@ public class PersistProjectLinksStepTest extends BaseStepTest { public void do_not_add_links_on_file() throws Exception { dbTester.prepareDbUnit(getClass(), "empty.xml"); + dbComponentsRefCache.addComponent(1, new DbComponentsRefCache.DbComponent(1L, "PROJECT_KEY", "ABCD")); + File reportDir = temp.newFolder(); BatchReportWriter writer = new BatchReportWriter(reportDir); writer.writeMetadata(BatchReport.Metadata.newBuilder() .setRootComponentRef(1) .setProjectKey("PROJECT_KEY") - .setAnalysisDate(150000000L) .build()); writer.writeComponent(BatchReport.Component.newBuilder() .setRef(1) .setType(Constants.ComponentType.FILE) - .setUuid("ABCD") .addLink(BatchReport.ComponentLink.newBuilder().setType(Constants.ComponentLinkType.HOME).setHref("http://www.sonarqube.org").build()) .build()); @@ -179,18 +184,18 @@ public class PersistProjectLinksStepTest extends BaseStepTest { public void update_link() throws Exception { dbTester.prepareDbUnit(getClass(), "update_link.xml"); + dbComponentsRefCache.addComponent(1, new DbComponentsRefCache.DbComponent(1L, "PROJECT_KEY", "ABCD")); + File reportDir = temp.newFolder(); BatchReportWriter writer = new BatchReportWriter(reportDir); writer.writeMetadata(BatchReport.Metadata.newBuilder() .setRootComponentRef(1) .setProjectKey("PROJECT_KEY") - .setAnalysisDate(150000000L) .build()); writer.writeComponent(BatchReport.Component.newBuilder() .setRef(1) .setType(Constants.ComponentType.PROJECT) - .setUuid("ABCD") .addLink(BatchReport.ComponentLink.newBuilder().setType(Constants.ComponentLinkType.HOME).setHref("http://www.sonarqube.org").build()) .build()); @@ -203,18 +208,18 @@ public class PersistProjectLinksStepTest extends BaseStepTest { public void delete_link() throws Exception { dbTester.prepareDbUnit(getClass(), "delete_link.xml"); + dbComponentsRefCache.addComponent(1, new DbComponentsRefCache.DbComponent(1L, "PROJECT_KEY", "ABCD")); + File reportDir = temp.newFolder(); BatchReportWriter writer = new BatchReportWriter(reportDir); writer.writeMetadata(BatchReport.Metadata.newBuilder() .setRootComponentRef(1) .setProjectKey("PROJECT_KEY") - .setAnalysisDate(150000000L) .build()); writer.writeComponent(BatchReport.Component.newBuilder() .setRef(1) .setType(Constants.ComponentType.PROJECT) - .setUuid("ABCD") .build()); step.execute(new ComputationContext(new BatchReportReader(reportDir), mock(ComponentDto.class))); @@ -226,18 +231,18 @@ public class PersistProjectLinksStepTest extends BaseStepTest { public void not_delete_custom_link() throws Exception { dbTester.prepareDbUnit(getClass(), "not_delete_custom_link.xml"); + dbComponentsRefCache.addComponent(1, new DbComponentsRefCache.DbComponent(1L, "PROJECT_KEY", "ABCD")); + File reportDir = temp.newFolder(); BatchReportWriter writer = new BatchReportWriter(reportDir); writer.writeMetadata(BatchReport.Metadata.newBuilder() .setRootComponentRef(1) .setProjectKey("PROJECT_KEY") - .setAnalysisDate(150000000L) .build()); writer.writeComponent(BatchReport.Component.newBuilder() .setRef(1) .setType(Constants.ComponentType.PROJECT) - .setUuid("ABCD") .build()); step.execute(new ComputationContext(new BatchReportReader(reportDir), mock(ComponentDto.class))); @@ -249,18 +254,18 @@ public class PersistProjectLinksStepTest extends BaseStepTest { public void fail_when_trying_to_add_same_link_type_multiple_times() throws Exception { dbTester.prepareDbUnit(getClass(), "empty.xml"); + dbComponentsRefCache.addComponent(1, new DbComponentsRefCache.DbComponent(1L, "PROJECT_KEY", "ABCD")); + File reportDir = temp.newFolder(); BatchReportWriter writer = new BatchReportWriter(reportDir); writer.writeMetadata(BatchReport.Metadata.newBuilder() .setRootComponentRef(1) .setProjectKey("PROJECT_KEY") - .setAnalysisDate(150000000L) .build()); writer.writeComponent(BatchReport.Component.newBuilder() .setRef(1) .setType(Constants.ComponentType.PROJECT) - .setUuid("ABCD") .addLink(BatchReport.ComponentLink.newBuilder().setType(Constants.ComponentLinkType.HOME).setHref("http://www.sonarqube.org").build()) .addLink(BatchReport.ComponentLink.newBuilder().setType(Constants.ComponentLinkType.HOME).setHref("http://www.sonarqube.org").build()) .build()); diff --git a/server/sonar-server/src/test/java/org/sonar/server/computation/step/PersistTestsStepTest.java b/server/sonar-server/src/test/java/org/sonar/server/computation/step/PersistTestsStepTest.java index 180a823f961..642ed46756a 100644 --- a/server/sonar-server/src/test/java/org/sonar/server/computation/step/PersistTestsStepTest.java +++ b/server/sonar-server/src/test/java/org/sonar/server/computation/step/PersistTestsStepTest.java @@ -39,6 +39,8 @@ import org.sonar.core.persistence.DbTester; import org.sonar.core.persistence.MyBatis; import org.sonar.core.source.db.FileSourceDto; import org.sonar.server.computation.ComputationContext; +import org.sonar.server.computation.component.DbComponentsRefCache; +import org.sonar.server.computation.component.DbComponentsRefCache.DbComponent; import org.sonar.server.db.DbClient; import org.sonar.server.source.db.FileSourceDao; import org.sonar.server.source.db.FileSourceDb; @@ -66,8 +68,6 @@ public class PersistTestsStepTest extends BaseStepTest { private static final String TEST_FILE_PATH_1 = "TEST-PATH-1"; private static final String TEST_FILE_PATH_2 = "TEST-PATH-2"; - PersistTestsStep sut; - @Rule public TemporaryFolder temp = new TemporaryFolder(); @@ -84,6 +84,10 @@ public class PersistTestsStepTest extends BaseStepTest { long now = 123456789L; + DbComponentsRefCache dbComponentsRefCache; + + PersistTestsStep sut; + @Before public void setup() throws Exception { db.truncateTables(); @@ -93,7 +97,9 @@ public class PersistTestsStepTest extends BaseStepTest { system2 = mock(System2.class); when(system2.now()).thenReturn(now); - sut = new PersistTestsStep(dbClient, system2); + + dbComponentsRefCache = new DbComponentsRefCache(); + sut = new PersistTestsStep(dbClient, system2, dbComponentsRefCache); initBasicReport(); } @@ -131,6 +137,8 @@ public class PersistTestsStepTest extends BaseStepTest { sut.execute(new ComputationContext(new BatchReportReader(reportDir), newProjectDto(PROJECT_UUID))); + assertThat(db.countRowsOfTable("file_sources")).isEqualTo(1); + FileSourceDto dto = dbClient.fileSourceDao().selectTest(TEST_FILE_UUID_1); assertThat(dto.getCreatedAt()).isEqualTo(now); assertThat(dto.getUpdatedAt()).isEqualTo(now); @@ -295,6 +303,13 @@ public class PersistTestsStepTest extends BaseStepTest { } private BatchReportWriter initBasicReport() { + dbComponentsRefCache.addComponent(1, new DbComponent(1L, "PROJECT_KEY", PROJECT_UUID)); + dbComponentsRefCache.addComponent(2, new DbComponent(2L, "MODULE_KEY", "MODULE")); + dbComponentsRefCache.addComponent(3, new DbComponent(3L, "TEST_FILE1_KEY", TEST_FILE_UUID_1)); + dbComponentsRefCache.addComponent(4, new DbComponent(4L, "TEST_FILE2_KEY", TEST_FILE_UUID_2)); + dbComponentsRefCache.addComponent(5, new DbComponent(5L, "MAIN_FILE1_KEY", MAIN_FILE_UUID_1)); + dbComponentsRefCache.addComponent(6, new DbComponent(6L, "MAIN_FILE2_KEY", MAIN_FILE_UUID_2)); + BatchReportWriter writer = new BatchReportWriter(reportDir); writer.writeMetadata(BatchReport.Metadata.newBuilder() .setRootComponentRef(1) @@ -304,38 +319,32 @@ public class PersistTestsStepTest extends BaseStepTest { writer.writeComponent(BatchReport.Component.newBuilder() .setRef(1) .setType(Constants.ComponentType.PROJECT) - .setUuid(PROJECT_UUID) .addChildRef(2) .build()); writer.writeComponent(BatchReport.Component.newBuilder() .setRef(2) .setType(Constants.ComponentType.MODULE) - .setUuid("MODULE") .addAllChildRef(Arrays.asList(TEST_FILE_REF_1, TEST_FILE_REF_2, MAIN_FILE_REF_1, MAIN_FILE_REF_2)) .build()); writer.writeComponent(BatchReport.Component.newBuilder() .setRef(TEST_FILE_REF_1) .setIsTest(true) .setType(Constants.ComponentType.FILE) - .setUuid(TEST_FILE_UUID_1) .setPath(TEST_FILE_PATH_1) .build()); writer.writeComponent(BatchReport.Component.newBuilder() .setRef(TEST_FILE_REF_2) .setIsTest(true) .setType(Constants.ComponentType.FILE) - .setUuid(TEST_FILE_UUID_2) .setPath(TEST_FILE_PATH_2) .build()); writer.writeComponent(BatchReport.Component.newBuilder() .setRef(MAIN_FILE_REF_1) .setType(Constants.ComponentType.FILE) - .setUuid(MAIN_FILE_UUID_1) .build()); writer.writeComponent(BatchReport.Component.newBuilder() .setRef(MAIN_FILE_REF_2) .setType(Constants.ComponentType.FILE) - .setUuid(MAIN_FILE_UUID_2) .build()); return writer; diff --git a/server/sonar-server/src/test/java/org/sonar/server/computation/step/PurgeDatastoresStepTest.java b/server/sonar-server/src/test/java/org/sonar/server/computation/step/PurgeDatastoresStepTest.java index 02ddf1ec50b..0a9bd7fd095 100644 --- a/server/sonar-server/src/test/java/org/sonar/server/computation/step/PurgeDatastoresStepTest.java +++ b/server/sonar-server/src/test/java/org/sonar/server/computation/step/PurgeDatastoresStepTest.java @@ -23,36 +23,56 @@ package org.sonar.server.computation.step; import org.junit.Rule; import org.junit.Test; import org.junit.rules.TemporaryFolder; +import org.mockito.ArgumentCaptor; import org.mockito.Mockito; import org.sonar.api.config.Settings; +import org.sonar.batch.protocol.output.BatchReport; import org.sonar.batch.protocol.output.BatchReportReader; +import org.sonar.batch.protocol.output.BatchReportWriter; import org.sonar.core.component.ComponentDto; import org.sonar.core.computation.dbcleaner.ProjectCleaner; import org.sonar.core.persistence.DbSession; import org.sonar.core.purge.IdUuidPair; import org.sonar.server.computation.ComputationContext; +import org.sonar.server.computation.component.DbComponentsRefCache; import org.sonar.server.db.DbClient; -import static org.mockito.Mockito.*; +import java.io.File; +import java.io.IOException; + +import static org.assertj.core.api.Assertions.assertThat; +import static org.mockito.Mockito.any; +import static org.mockito.Mockito.mock; +import static org.mockito.Mockito.verify; public class PurgeDatastoresStepTest extends BaseStepTest { - ProjectCleaner projectCleaner = mock(ProjectCleaner.class);; - PurgeDatastoresStep sut = new PurgeDatastoresStep(mock(DbClient.class, Mockito.RETURNS_DEEP_STUBS), projectCleaner); + ProjectCleaner projectCleaner = mock(ProjectCleaner.class); + DbComponentsRefCache dbComponentsRefCache = new DbComponentsRefCache(); + PurgeDatastoresStep sut = new PurgeDatastoresStep(mock(DbClient.class, Mockito.RETURNS_DEEP_STUBS), projectCleaner, dbComponentsRefCache); @Rule public TemporaryFolder temp = new TemporaryFolder(); @Test - public void call_purge_method_of_the_purge_task() { + public void call_purge_method_of_the_purge_task() throws IOException { + dbComponentsRefCache.addComponent(1, new DbComponentsRefCache.DbComponent(123L, "PROJECT_KEY", "UUID-1234")); + + File reportDir = temp.newFolder(); + BatchReportWriter writer = new BatchReportWriter(reportDir); + writer.writeMetadata(BatchReport.Metadata.newBuilder() + .setRootComponentRef(1) + .build()); + ComponentDto project = mock(ComponentDto.class); - when(project.getId()).thenReturn(123L); - when(project.uuid()).thenReturn("UUID-1234"); - ComputationContext context = new ComputationContext(mock(BatchReportReader.class), project); + ComputationContext context = new ComputationContext(new BatchReportReader(reportDir), project); sut.execute(context); - verify(projectCleaner).purge(any(DbSession.class), any(IdUuidPair.class), any(Settings.class)); + ArgumentCaptor argumentCaptor = ArgumentCaptor.forClass(IdUuidPair.class); + verify(projectCleaner).purge(any(DbSession.class), argumentCaptor.capture(), any(Settings.class)); + assertThat(argumentCaptor.getValue().getId()).isEqualTo(123L); + assertThat(argumentCaptor.getValue().getUuid()).isEqualTo("UUID-1234"); } @Override 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 2baa63e0aa6..c27bdc96ff1 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,22 +4,18 @@ 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 - // @@protoc_insertion_point(interface_extends:Metadata) - com.google.protobuf.MessageOrBuilder { + // @@protoc_insertion_point(interface_extends:Metadata) + com.google.protobuf.MessageOrBuilder { /** * optional int64 analysis_date = 1; */ boolean hasAnalysisDate(); - /** * optional int64 analysis_date = 1; */ @@ -29,39 +25,34 @@ public final class BatchReport { * 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 string branch = 6; */ boolean hasBranch(); - /** * optional string branch = 6; */ java.lang.String getBranch(); - /** * optional string branch = 6; */ com.google.protobuf.ByteString - getBranchBytes(); + getBranchBytes(); /** * optional int32 root_component_ref = 3; */ boolean hasRootComponentRef(); - /** * optional int32 root_component_ref = 3; */ @@ -75,7 +66,6 @@ public final class BatchReport { * */ boolean hasSnapshotId(); - /** * optional int64 snapshot_id = 4; * @@ -89,7 +79,6 @@ public final class BatchReport { * optional int32 deleted_components_count = 5; */ boolean hasDeletedComponentsCount(); - /** * optional int32 deleted_components_count = 5; */ @@ -99,21 +88,17 @@ 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 + // @@protoc_insertion_point(message_implements:Metadata) + 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; } @@ -123,21 +108,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) { @@ -148,7 +131,7 @@ public final class BatchReport { break; default: { if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { + extensionRegistry, tag)) { done = true; } break; @@ -191,34 +174,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() { @@ -228,14 +210,12 @@ public final class BatchReport { private int bitField0_; 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; */ @@ -245,14 +225,12 @@ public final class BatchReport { 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; */ @@ -261,8 +239,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; @@ -270,17 +248,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 { @@ -290,14 +267,12 @@ public final class BatchReport { public static final int BRANCH_FIELD_NUMBER = 6; private java.lang.Object branch_; - /** * optional string branch = 6; */ public boolean hasBranch() { return ((bitField0_ & 0x00000004) == 0x00000004); } - /** * optional string branch = 6; */ @@ -306,8 +281,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()) { branch_ = s; @@ -315,17 +290,16 @@ public final class BatchReport { return s; } } - /** * optional string branch = 6; */ public com.google.protobuf.ByteString - getBranchBytes() { + getBranchBytes() { java.lang.Object ref = branch_; 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); branch_ = b; return b; } else { @@ -335,14 +309,12 @@ public final class BatchReport { public static final int ROOT_COMPONENT_REF_FIELD_NUMBER = 3; private int rootComponentRef_; - /** * optional int32 root_component_ref = 3; */ public boolean hasRootComponentRef() { return ((bitField0_ & 0x00000008) == 0x00000008); } - /** * optional int32 root_component_ref = 3; */ @@ -352,7 +324,6 @@ public final class BatchReport { public static final int SNAPSHOT_ID_FIELD_NUMBER = 4; private long snapshotId_; - /** * optional int64 snapshot_id = 4; * @@ -363,7 +334,6 @@ public final class BatchReport { public boolean hasSnapshotId() { return ((bitField0_ & 0x00000010) == 0x00000010); } - /** * optional int64 snapshot_id = 4; * @@ -377,14 +347,12 @@ public final class BatchReport { public static final int DELETED_COMPONENTS_COUNT_FIELD_NUMBER = 5; private int deletedComponentsCount_; - /** * optional int32 deleted_components_count = 5; */ public boolean hasDeletedComponentsCount() { return ((bitField0_ & 0x00000020) == 0x00000020); } - /** * optional int32 deleted_components_count = 5; */ @@ -400,22 +368,18 @@ 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 true; + if (isInitialized == 0) return false; 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_); @@ -439,11 +403,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)) { @@ -476,115 +438,95 @@ 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 + // @@protoc_insertion_point(builder_implements:Metadata) + 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() @@ -593,16 +535,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(); } @@ -629,7 +569,7 @@ public final class BatchReport { } public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { + getDescriptorForType() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Metadata_descriptor; } @@ -680,7 +620,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; @@ -688,8 +628,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()); } @@ -721,9 +660,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); @@ -737,25 +676,21 @@ public final class BatchReport { } return this; } - private int bitField0_; - private long analysisDate_; - + 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; */ @@ -765,7 +700,6 @@ public final class BatchReport { onChanged(); return this; } - /** * optional int64 analysis_date = 1; */ @@ -777,14 +711,12 @@ public final class BatchReport { } private java.lang.Object projectKey_ = ""; - /** * optional string project_key = 2; */ public boolean hasProjectKey() { return ((bitField0_ & 0x00000002) == 0x00000002); } - /** * optional string project_key = 2; */ @@ -792,7 +724,7 @@ public final class BatchReport { java.lang.Object ref = projectKey_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { projectKey_ = s; @@ -802,38 +734,35 @@ public final class BatchReport { 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; */ @@ -843,30 +772,27 @@ 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 java.lang.Object branch_ = ""; - /** * optional string branch = 6; */ public boolean hasBranch() { return ((bitField0_ & 0x00000004) == 0x00000004); } - /** * optional string branch = 6; */ @@ -874,7 +800,7 @@ public final class BatchReport { java.lang.Object ref = branch_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { branch_ = s; @@ -884,38 +810,35 @@ public final class BatchReport { return (java.lang.String) ref; } } - /** * optional string branch = 6; */ public com.google.protobuf.ByteString - getBranchBytes() { + getBranchBytes() { java.lang.Object ref = branch_; 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); branch_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - /** * optional string branch = 6; */ public Builder setBranch( - java.lang.String value) { + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; branch_ = value; onChanged(); return this; } - /** * optional string branch = 6; */ @@ -925,37 +848,33 @@ public final class BatchReport { onChanged(); return this; } - /** * optional string branch = 6; */ public Builder setBranchBytes( - com.google.protobuf.ByteString value) { + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; branch_ = value; onChanged(); return this; } - private int rootComponentRef_; - + private int rootComponentRef_ ; /** * optional int32 root_component_ref = 3; */ public boolean hasRootComponentRef() { return ((bitField0_ & 0x00000008) == 0x00000008); } - /** * optional int32 root_component_ref = 3; */ public int getRootComponentRef() { return rootComponentRef_; } - /** * optional int32 root_component_ref = 3; */ @@ -965,7 +884,6 @@ public final class BatchReport { onChanged(); return this; } - /** * optional int32 root_component_ref = 3; */ @@ -976,8 +894,7 @@ public final class BatchReport { return this; } - private long snapshotId_; - + private long snapshotId_ ; /** * optional int64 snapshot_id = 4; * @@ -988,7 +905,6 @@ public final class BatchReport { public boolean hasSnapshotId() { return ((bitField0_ & 0x00000010) == 0x00000010); } - /** * optional int64 snapshot_id = 4; * @@ -999,7 +915,6 @@ public final class BatchReport { public long getSnapshotId() { return snapshotId_; } - /** * optional int64 snapshot_id = 4; * @@ -1013,7 +928,6 @@ public final class BatchReport { onChanged(); return this; } - /** * optional int64 snapshot_id = 4; * @@ -1028,22 +942,19 @@ public final class BatchReport { return this; } - private int deletedComponentsCount_; - + private int deletedComponentsCount_ ; /** * optional int32 deleted_components_count = 5; */ public boolean hasDeletedComponentsCount() { return ((bitField0_ & 0x00000020) == 0x00000020); } - /** * optional int32 deleted_components_count = 5; */ public int getDeletedComponentsCount() { return deletedComponentsCount_; } - /** * optional int32 deleted_components_count = 5; */ @@ -1053,7 +964,6 @@ public final class BatchReport { onChanged(); return this; } - /** * optional int32 deleted_components_count = 5; */ @@ -1076,14 +986,13 @@ public final class BatchReport { } public interface ComponentLinkOrBuilder extends - // @@protoc_insertion_point(interface_extends:ComponentLink) - com.google.protobuf.MessageOrBuilder { + // @@protoc_insertion_point(interface_extends:ComponentLink) + com.google.protobuf.MessageOrBuilder { /** * optional .ComponentLinkType type = 1; */ boolean hasType(); - /** * optional .ComponentLinkType type = 1; */ @@ -1093,37 +1002,31 @@ public final class BatchReport { * 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 + // @@protoc_insertion_point(message_implements:ComponentLink) + 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; } @@ -1133,21 +1036,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) { @@ -1158,7 +1059,7 @@ public final class BatchReport { break; default: { if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { + extensionRegistry, tag)) { done = true; } break; @@ -1186,34 +1087,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() { @@ -1223,14 +1123,12 @@ public final class BatchReport { private int bitField0_; 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; */ @@ -1240,14 +1138,12 @@ public final class BatchReport { 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; */ @@ -1256,8 +1152,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; @@ -1265,17 +1161,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 { @@ -1287,22 +1182,18 @@ 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 true; + if (isInitialized == 0) return false; 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()); @@ -1314,11 +1205,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)) { @@ -1335,115 +1224,95 @@ 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 + // @@protoc_insertion_point(builder_implements:ComponentLink) + 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() @@ -1452,16 +1321,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(); } @@ -1480,7 +1347,7 @@ public final class BatchReport { } public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { + getDescriptorForType() { return org.sonar.batch.protocol.output.BatchReport.internal_static_ComponentLink_descriptor; } @@ -1515,7 +1382,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; @@ -1523,8 +1390,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()); } @@ -1542,9 +1408,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); @@ -1558,25 +1424,21 @@ public final class BatchReport { } return this; } - private int bitField0_; 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; */ @@ -1589,7 +1451,6 @@ public final class BatchReport { onChanged(); return this; } - /** * optional .ComponentLinkType type = 1; */ @@ -1601,14 +1462,12 @@ public final class BatchReport { } private java.lang.Object href_ = ""; - /** * optional string href = 2; */ public boolean hasHref() { return ((bitField0_ & 0x00000002) == 0x00000002); } - /** * optional string href = 2; */ @@ -1616,7 +1475,7 @@ public final class BatchReport { java.lang.Object ref = href_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { href_ = s; @@ -1626,38 +1485,35 @@ public final class BatchReport { 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; */ @@ -1667,16 +1523,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; @@ -1694,14 +1549,13 @@ public final class BatchReport { } public interface EventOrBuilder extends - // @@protoc_insertion_point(interface_extends:Event) - com.google.protobuf.MessageOrBuilder { + // @@protoc_insertion_point(interface_extends:Event) + com.google.protobuf.MessageOrBuilder { /** * optional int32 component_ref = 1; */ boolean hasComponentRef(); - /** * optional int32 component_ref = 1; */ @@ -1711,39 +1565,34 @@ public final class BatchReport { * optional string name = 2; */ boolean hasName(); - /** * optional string name = 2; */ java.lang.String getName(); - /** * optional string name = 2; */ com.google.protobuf.ByteString - getNameBytes(); + getNameBytes(); /** * optional string description = 3; */ boolean hasDescription(); - /** * optional string description = 3; */ java.lang.String getDescription(); - /** * optional string description = 3; */ com.google.protobuf.ByteString - getDescriptionBytes(); + getDescriptionBytes(); /** * optional .EventCategory category = 4; */ boolean hasCategory(); - /** * optional .EventCategory category = 4; */ @@ -1753,17 +1602,15 @@ public final class BatchReport { * optional string event_data = 5; */ boolean hasEventData(); - /** * optional string event_data = 5; */ java.lang.String getEventData(); - /** * optional string event_data = 5; */ com.google.protobuf.ByteString - getEventDataBytes(); + getEventDataBytes(); } /** * Protobuf type {@code Event} @@ -1773,21 +1620,17 @@ public final class BatchReport { * */ public static final class Event extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:Event) - EventOrBuilder { + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:Event) + EventOrBuilder { // Use Event.newBuilder() to construct. private Event(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } - - private Event(boolean noInit) { - this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } + private Event(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final Event defaultInstance; - public static Event getDefaultInstance() { return defaultInstance; } @@ -1797,21 +1640,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 Event( - 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) { @@ -1822,7 +1663,7 @@ public final class BatchReport { break; default: { if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { + extensionRegistry, tag)) { done = true; } break; @@ -1867,34 +1708,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_Event_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { + internalGetFieldAccessorTable() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Event_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.batch.protocol.output.BatchReport.Event.class, org.sonar.batch.protocol.output.BatchReport.Event.Builder.class); + .ensureFieldAccessorsInitialized( + org.sonar.batch.protocol.output.BatchReport.Event.class, org.sonar.batch.protocol.output.BatchReport.Event.Builder.class); } public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Event parsePartialFrom( + new com.google.protobuf.AbstractParser() { + public Event parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Event(input, extensionRegistry); - } - }; + return new Event(input, extensionRegistry); + } + }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { @@ -1904,14 +1744,12 @@ public final class BatchReport { private int bitField0_; 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; */ @@ -1921,14 +1759,12 @@ public final class BatchReport { public static final int NAME_FIELD_NUMBER = 2; private java.lang.Object name_; - /** * optional string name = 2; */ public boolean hasName() { return ((bitField0_ & 0x00000002) == 0x00000002); } - /** * optional string name = 2; */ @@ -1937,8 +1773,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; @@ -1946,17 +1782,16 @@ public final class BatchReport { return s; } } - /** * optional string name = 2; */ 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 { @@ -1966,14 +1801,12 @@ public final class BatchReport { public static final int DESCRIPTION_FIELD_NUMBER = 3; private java.lang.Object description_; - /** * optional string description = 3; */ public boolean hasDescription() { return ((bitField0_ & 0x00000004) == 0x00000004); } - /** * optional string description = 3; */ @@ -1982,8 +1815,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()) { description_ = s; @@ -1991,17 +1824,16 @@ public final class BatchReport { return s; } } - /** * optional string description = 3; */ public com.google.protobuf.ByteString - getDescriptionBytes() { + getDescriptionBytes() { java.lang.Object ref = description_; 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); description_ = b; return b; } else { @@ -2011,14 +1843,12 @@ public final class BatchReport { public static final int CATEGORY_FIELD_NUMBER = 4; private org.sonar.batch.protocol.Constants.EventCategory category_; - /** * optional .EventCategory category = 4; */ public boolean hasCategory() { return ((bitField0_ & 0x00000008) == 0x00000008); } - /** * optional .EventCategory category = 4; */ @@ -2028,14 +1858,12 @@ public final class BatchReport { public static final int EVENT_DATA_FIELD_NUMBER = 5; private java.lang.Object eventData_; - /** * optional string event_data = 5; */ public boolean hasEventData() { return ((bitField0_ & 0x00000010) == 0x00000010); } - /** * optional string event_data = 5; */ @@ -2044,8 +1872,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()) { eventData_ = s; @@ -2053,17 +1881,16 @@ public final class BatchReport { return s; } } - /** * optional string event_data = 5; */ public com.google.protobuf.ByteString - getEventDataBytes() { + getEventDataBytes() { java.lang.Object ref = eventData_; 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); eventData_ = b; return b; } else { @@ -2078,22 +1905,18 @@ public final class BatchReport { category_ = org.sonar.batch.protocol.Constants.EventCategory.ALERT; eventData_ = ""; } - 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 true; + if (isInitialized == 0) return false; 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_); @@ -2114,11 +1937,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)) { @@ -2147,98 +1968,78 @@ 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.Event 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.Event 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.Event 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.Event 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.Event 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.Event 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.Event 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.Event 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.Event 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.Event 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.Event 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 Event} * @@ -2247,19 +2048,19 @@ public final class BatchReport { * */ public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:Event) - org.sonar.batch.protocol.output.BatchReport.EventOrBuilder { + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:Event) + org.sonar.batch.protocol.output.BatchReport.EventOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + getDescriptor() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Event_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { + internalGetFieldAccessorTable() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Event_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.batch.protocol.output.BatchReport.Event.class, org.sonar.batch.protocol.output.BatchReport.Event.Builder.class); + .ensureFieldAccessorsInitialized( + org.sonar.batch.protocol.output.BatchReport.Event.class, org.sonar.batch.protocol.output.BatchReport.Event.Builder.class); } // Construct using org.sonar.batch.protocol.output.BatchReport.Event.newBuilder() @@ -2268,16 +2069,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(); } @@ -2302,7 +2101,7 @@ public final class BatchReport { } public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { + getDescriptorForType() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Event_descriptor; } @@ -2349,7 +2148,7 @@ public final class BatchReport { public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.sonar.batch.protocol.output.BatchReport.Event) { - return mergeFrom((org.sonar.batch.protocol.output.BatchReport.Event) other); + return mergeFrom((org.sonar.batch.protocol.output.BatchReport.Event)other); } else { super.mergeFrom(other); return this; @@ -2357,8 +2156,7 @@ public final class BatchReport { } public Builder mergeFrom(org.sonar.batch.protocol.output.BatchReport.Event other) { - if (other == org.sonar.batch.protocol.output.BatchReport.Event.getDefaultInstance()) - return this; + if (other == org.sonar.batch.protocol.output.BatchReport.Event.getDefaultInstance()) return this; if (other.hasComponentRef()) { setComponentRef(other.getComponentRef()); } @@ -2389,9 +2187,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.Event parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); @@ -2405,25 +2203,21 @@ public final class BatchReport { } return this; } - private int bitField0_; - private int componentRef_; - + 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; */ @@ -2433,7 +2227,6 @@ public final class BatchReport { onChanged(); return this; } - /** * optional int32 component_ref = 1; */ @@ -2445,14 +2238,12 @@ public final class BatchReport { } private java.lang.Object name_ = ""; - /** * optional string name = 2; */ public boolean hasName() { return ((bitField0_ & 0x00000002) == 0x00000002); } - /** * optional string name = 2; */ @@ -2460,7 +2251,7 @@ public final class BatchReport { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { name_ = s; @@ -2470,38 +2261,35 @@ public final class BatchReport { return (java.lang.String) ref; } } - /** * optional string name = 2; */ 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 = 2; */ public Builder setName( - java.lang.String value) { + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; name_ = value; onChanged(); return this; } - /** * optional string name = 2; */ @@ -2511,30 +2299,27 @@ public final class BatchReport { onChanged(); return this; } - /** * optional string name = 2; */ public Builder setNameBytes( - com.google.protobuf.ByteString value) { + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; name_ = value; onChanged(); return this; } private java.lang.Object description_ = ""; - /** * optional string description = 3; */ public boolean hasDescription() { return ((bitField0_ & 0x00000004) == 0x00000004); } - /** * optional string description = 3; */ @@ -2542,7 +2327,7 @@ public final class BatchReport { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { description_ = s; @@ -2552,38 +2337,35 @@ public final class BatchReport { return (java.lang.String) ref; } } - /** * optional string description = 3; */ public com.google.protobuf.ByteString - getDescriptionBytes() { + getDescriptionBytes() { java.lang.Object ref = description_; 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); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - /** * optional string description = 3; */ public Builder setDescription( - java.lang.String value) { + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; description_ = value; onChanged(); return this; } - /** * optional string description = 3; */ @@ -2593,37 +2375,33 @@ public final class BatchReport { onChanged(); return this; } - /** * optional string description = 3; */ public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; description_ = value; onChanged(); return this; } private org.sonar.batch.protocol.Constants.EventCategory category_ = org.sonar.batch.protocol.Constants.EventCategory.ALERT; - /** * optional .EventCategory category = 4; */ public boolean hasCategory() { return ((bitField0_ & 0x00000008) == 0x00000008); } - /** * optional .EventCategory category = 4; */ public org.sonar.batch.protocol.Constants.EventCategory getCategory() { return category_; } - /** * optional .EventCategory category = 4; */ @@ -2636,7 +2414,6 @@ public final class BatchReport { onChanged(); return this; } - /** * optional .EventCategory category = 4; */ @@ -2648,14 +2425,12 @@ public final class BatchReport { } private java.lang.Object eventData_ = ""; - /** * optional string event_data = 5; */ public boolean hasEventData() { return ((bitField0_ & 0x00000010) == 0x00000010); } - /** * optional string event_data = 5; */ @@ -2663,7 +2438,7 @@ public final class BatchReport { java.lang.Object ref = eventData_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { eventData_ = s; @@ -2673,38 +2448,35 @@ public final class BatchReport { return (java.lang.String) ref; } } - /** * optional string event_data = 5; */ public com.google.protobuf.ByteString - getEventDataBytes() { + getEventDataBytes() { java.lang.Object ref = eventData_; 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); eventData_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - /** * optional string event_data = 5; */ public Builder setEventData( - java.lang.String value) { + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; eventData_ = value; onChanged(); return this; } - /** * optional string event_data = 5; */ @@ -2714,16 +2486,15 @@ public final class BatchReport { onChanged(); return this; } - /** * optional string event_data = 5; */ public Builder setEventDataBytes( - com.google.protobuf.ByteString value) { + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; eventData_ = value; onChanged(); return this; @@ -2741,14 +2512,13 @@ public final class BatchReport { } public interface ComponentOrBuilder extends - // @@protoc_insertion_point(interface_extends:Component) - com.google.protobuf.MessageOrBuilder { + // @@protoc_insertion_point(interface_extends:Component) + com.google.protobuf.MessageOrBuilder { /** * optional int32 ref = 1; */ boolean hasRef(); - /** * optional int32 ref = 1; */ @@ -2758,39 +2528,34 @@ public final class BatchReport { * 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; */ boolean hasName(); - /** * optional string name = 3; */ java.lang.String getName(); - /** * optional string name = 3; */ com.google.protobuf.ByteString - getNameBytes(); + getNameBytes(); /** * optional .ComponentType type = 4; */ boolean hasType(); - /** * optional .ComponentType type = 4; */ @@ -2800,7 +2565,6 @@ public final class BatchReport { * optional bool is_test = 5; */ boolean hasIsTest(); - /** * optional bool is_test = 5; */ @@ -2810,128 +2574,115 @@ public final class BatchReport { * 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]; */ java.util.List getChildRefList(); - /** * repeated int32 child_ref = 7 [packed = true]; */ int getChildRefCount(); - /** * repeated int32 child_ref = 7 [packed = true]; */ int getChildRef(int index); /** - * repeated .ComponentLink link = 10; + * repeated .ComponentLink link = 8; */ - java.util.List - getLinkList(); - + java.util.List + getLinkList(); /** - * repeated .ComponentLink link = 10; + * repeated .ComponentLink link = 8; */ org.sonar.batch.protocol.output.BatchReport.ComponentLink getLink(int index); - /** - * repeated .ComponentLink link = 10; + * repeated .ComponentLink link = 8; */ int getLinkCount(); - /** - * repeated .ComponentLink link = 10; + * repeated .ComponentLink link = 8; */ - java.util.List - getLinkOrBuilderList(); - + java.util.List + getLinkOrBuilderList(); /** - * repeated .ComponentLink link = 10; + * repeated .ComponentLink link = 8; */ org.sonar.batch.protocol.output.BatchReport.ComponentLinkOrBuilder getLinkOrBuilder( - int index); + int index); /** - * optional string version = 12; + * optional string version = 9; * *
      * Only available on PROJECT and MODULE types
      * 
*/ boolean hasVersion(); - /** - * optional string version = 12; + * optional string version = 9; * *
      * Only available on PROJECT and MODULE types
      * 
*/ java.lang.String getVersion(); - /** - * optional string version = 12; + * optional string version = 9; * *
      * Only available on PROJECT and MODULE types
      * 
*/ com.google.protobuf.ByteString - getVersionBytes(); + getVersionBytes(); /** - * optional string key = 14; + * optional string key = 10; * *
      * Only available on PROJECT and MODULE types
      * 
*/ boolean hasKey(); - /** - * optional string key = 14; + * optional string key = 10; * *
      * Only available on PROJECT and MODULE types
      * 
*/ java.lang.String getKey(); - /** - * optional string key = 14; + * optional string key = 10; * *
      * Only available on PROJECT and MODULE types
      * 
*/ com.google.protobuf.ByteString - getKeyBytes(); + getKeyBytes(); /** - * optional int32 lines = 15; + * optional int32 lines = 11; * *
      * Only available on FILE type
      * 
*/ boolean hasLines(); - /** - * optional int32 lines = 15; + * optional int32 lines = 11; * *
      * Only available on FILE type
@@ -2940,124 +2691,87 @@ public final class BatchReport {
     int getLines();
 
     /**
-     * optional string description = 16;
+     * optional string description = 12;
      *
      * 
      * Only available on PROJECT and MODULE types
      * 
*/ boolean hasDescription(); - /** - * optional string description = 16; + * optional string description = 12; * *
      * Only available on PROJECT and MODULE types
      * 
*/ java.lang.String getDescription(); - /** - * optional string description = 16; + * optional string description = 12; * *
      * Only available on PROJECT and MODULE types
      * 
*/ com.google.protobuf.ByteString - getDescriptionBytes(); + getDescriptionBytes(); /** - * optional int64 id = 13; + * optional int64 snapshot_id = 13; * *
      * temporary fields during development of computation stack
      * 
*/ - boolean hasId(); - + boolean hasSnapshotId(); /** - * optional int64 id = 13; + * optional int64 snapshot_id = 13; * *
      * temporary fields during development of computation stack
      * 
*/ - long getId(); - - /** - * optional int64 snapshot_id = 8; - */ - boolean hasSnapshotId(); - - /** - * optional int64 snapshot_id = 8; - */ long getSnapshotId(); /** - * optional string uuid = 9; - */ - boolean hasUuid(); - - /** - * optional string uuid = 9; - */ - java.lang.String getUuid(); - - /** - * optional string uuid = 9; - */ - com.google.protobuf.ByteString - getUuidBytes(); - - /** - * repeated .Event event = 11; + * repeated .Event event = 14; */ - java.util.List - getEventList(); - + java.util.List + getEventList(); /** - * repeated .Event event = 11; + * repeated .Event event = 14; */ org.sonar.batch.protocol.output.BatchReport.Event getEvent(int index); - /** - * repeated .Event event = 11; + * repeated .Event event = 14; */ int getEventCount(); - /** - * repeated .Event event = 11; + * repeated .Event event = 14; */ - java.util.List - getEventOrBuilderList(); - + java.util.List + getEventOrBuilderList(); /** - * repeated .Event event = 11; + * repeated .Event event = 14; */ org.sonar.batch.protocol.output.BatchReport.EventOrBuilder getEventOrBuilder( - int index); + int index); } /** * 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 + // @@protoc_insertion_point(message_implements:Component) + 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; } @@ -3067,21 +2781,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) { @@ -3092,7 +2804,7 @@ public final class BatchReport { break; default: { if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { + extensionRegistry, tag)) { done = true; } break; @@ -3157,18 +2869,7 @@ public final class BatchReport { input.popLimit(limit); break; } - case 64: { - bitField0_ |= 0x00000800; - snapshotId_ = input.readInt64(); - break; - } - case 74: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00001000; - uuid_ = bs; - break; - } - case 82: { + case 66: { if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) { link_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000080; @@ -3176,49 +2877,49 @@ public final class BatchReport { link_.add(input.readMessage(org.sonar.batch.protocol.output.BatchReport.ComponentLink.PARSER, extensionRegistry)); break; } - case 90: { - if (!((mutable_bitField0_ & 0x00008000) == 0x00008000)) { - event_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00008000; - } - event_.add(input.readMessage(org.sonar.batch.protocol.output.BatchReport.Event.PARSER, extensionRegistry)); - break; - } - case 98: { + case 74: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000040; version_ = bs; break; } - case 104: { - bitField0_ |= 0x00000400; - id_ = input.readInt64(); - break; - } - case 114: { + case 82: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000080; key_ = bs; break; } - case 120: { + case 88: { bitField0_ |= 0x00000100; lines_ = input.readInt32(); break; } - case 130: { + case 98: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000200; description_ = bs; break; } + case 104: { + bitField0_ |= 0x00000400; + snapshotId_ = input.readInt64(); + break; + } + case 114: { + if (!((mutable_bitField0_ & 0x00002000) == 0x00002000)) { + event_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00002000; + } + event_.add(input.readMessage(org.sonar.batch.protocol.output.BatchReport.Event.PARSER, extensionRegistry)); + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { 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)) { childRef_ = java.util.Collections.unmodifiableList(childRef_); @@ -3226,35 +2927,34 @@ public final class BatchReport { if (((mutable_bitField0_ & 0x00000080) == 0x00000080)) { link_ = java.util.Collections.unmodifiableList(link_); } - if (((mutable_bitField0_ & 0x00008000) == 0x00008000)) { + if (((mutable_bitField0_ & 0x00002000) == 0x00002000)) { event_ = java.util.Collections.unmodifiableList(event_); } 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() { @@ -3264,14 +2964,12 @@ public final class BatchReport { private int bitField0_; 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; */ @@ -3281,14 +2979,12 @@ public final class BatchReport { 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; */ @@ -3297,8 +2993,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; @@ -3306,17 +3002,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 { @@ -3326,14 +3021,12 @@ public final class BatchReport { 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; */ @@ -3342,8 +3035,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; @@ -3351,17 +3044,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 { @@ -3371,14 +3063,12 @@ public final class BatchReport { 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; */ @@ -3388,14 +3078,12 @@ public final class BatchReport { 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; */ @@ -3405,14 +3093,12 @@ public final class BatchReport { 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; */ @@ -3421,8 +3107,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; @@ -3430,17 +3116,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 { @@ -3450,76 +3135,66 @@ public final class BatchReport { public static final int CHILD_REF_FIELD_NUMBER = 7; private java.util.List childRef_; - /** * repeated int32 child_ref = 7 [packed = true]; */ public java.util.List - getChildRefList() { + getChildRefList() { return childRef_; } - /** * repeated int32 child_ref = 7 [packed = true]; */ public int getChildRefCount() { return childRef_.size(); } - /** * repeated int32 child_ref = 7 [packed = true]; */ public int getChildRef(int index) { return childRef_.get(index); } - private int childRefMemoizedSerializedSize = -1; - public static final int LINK_FIELD_NUMBER = 10; + public static final int LINK_FIELD_NUMBER = 8; private java.util.List link_; - /** - * repeated .ComponentLink link = 10; + * repeated .ComponentLink link = 8; */ public java.util.List getLinkList() { return link_; } - /** - * repeated .ComponentLink link = 10; + * repeated .ComponentLink link = 8; */ - public java.util.List - getLinkOrBuilderList() { + public java.util.List + getLinkOrBuilderList() { return link_; } - /** - * repeated .ComponentLink link = 10; + * repeated .ComponentLink link = 8; */ public int getLinkCount() { return link_.size(); } - /** - * repeated .ComponentLink link = 10; + * repeated .ComponentLink link = 8; */ public org.sonar.batch.protocol.output.BatchReport.ComponentLink getLink(int index) { return link_.get(index); } - /** - * repeated .ComponentLink link = 10; + * repeated .ComponentLink link = 8; */ public org.sonar.batch.protocol.output.BatchReport.ComponentLinkOrBuilder getLinkOrBuilder( - int index) { + int index) { return link_.get(index); } - public static final int VERSION_FIELD_NUMBER = 12; + public static final int VERSION_FIELD_NUMBER = 9; private java.lang.Object version_; - /** - * optional string version = 12; + * optional string version = 9; * *
      * Only available on PROJECT and MODULE types
@@ -3528,9 +3203,8 @@ public final class BatchReport {
     public boolean hasVersion() {
       return ((bitField0_ & 0x00000040) == 0x00000040);
     }
-
     /**
-     * optional string version = 12;
+     * optional string version = 9;
      *
      * 
      * Only available on PROJECT and MODULE types
@@ -3541,8 +3215,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()) {
           version_ = s;
@@ -3550,21 +3224,20 @@ public final class BatchReport {
         return s;
       }
     }
-
     /**
-     * optional string version = 12;
+     * optional string version = 9;
      *
      * 
      * Only available on PROJECT and MODULE types
      * 
*/ public com.google.protobuf.ByteString - getVersionBytes() { + getVersionBytes() { java.lang.Object ref = version_; 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); version_ = b; return b; } else { @@ -3572,11 +3245,10 @@ public final class BatchReport { } } - public static final int KEY_FIELD_NUMBER = 14; + public static final int KEY_FIELD_NUMBER = 10; private java.lang.Object key_; - /** - * optional string key = 14; + * optional string key = 10; * *
      * Only available on PROJECT and MODULE types
@@ -3585,9 +3257,8 @@ public final class BatchReport {
     public boolean hasKey() {
       return ((bitField0_ & 0x00000080) == 0x00000080);
     }
-
     /**
-     * optional string key = 14;
+     * optional string key = 10;
      *
      * 
      * Only available on PROJECT and MODULE types
@@ -3598,8 +3269,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()) {
           key_ = s;
@@ -3607,21 +3278,20 @@ public final class BatchReport {
         return s;
       }
     }
-
     /**
-     * optional string key = 14;
+     * optional string key = 10;
      *
      * 
      * Only available on PROJECT and MODULE types
      * 
*/ 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 { @@ -3629,11 +3299,10 @@ public final class BatchReport { } } - public static final int LINES_FIELD_NUMBER = 15; + public static final int LINES_FIELD_NUMBER = 11; private int lines_; - /** - * optional int32 lines = 15; + * optional int32 lines = 11; * *
      * Only available on FILE type
@@ -3642,9 +3311,8 @@ public final class BatchReport {
     public boolean hasLines() {
       return ((bitField0_ & 0x00000100) == 0x00000100);
     }
-
     /**
-     * optional int32 lines = 15;
+     * optional int32 lines = 11;
      *
      * 
      * Only available on FILE type
@@ -3654,11 +3322,10 @@ public final class BatchReport {
       return lines_;
     }
 
-    public static final int DESCRIPTION_FIELD_NUMBER = 16;
+    public static final int DESCRIPTION_FIELD_NUMBER = 12;
     private java.lang.Object description_;
-
     /**
-     * optional string description = 16;
+     * optional string description = 12;
      *
      * 
      * Only available on PROJECT and MODULE types
@@ -3667,9 +3334,8 @@ public final class BatchReport {
     public boolean hasDescription() {
       return ((bitField0_ & 0x00000200) == 0x00000200);
     }
-
     /**
-     * optional string description = 16;
+     * optional string description = 12;
      *
      * 
      * Only available on PROJECT and MODULE types
@@ -3680,8 +3346,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()) {
           description_ = s;
@@ -3689,21 +3355,20 @@ public final class BatchReport {
         return s;
       }
     }
-
     /**
-     * optional string description = 16;
+     * optional string description = 12;
      *
      * 
      * Only available on PROJECT and MODULE types
      * 
*/ public com.google.protobuf.ByteString - getDescriptionBytes() { + getDescriptionBytes() { java.lang.Object ref = description_; 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); description_ = b; return b; } else { @@ -3711,130 +3376,61 @@ public final class BatchReport { } } - public static final int ID_FIELD_NUMBER = 13; - private long id_; - + public static final int SNAPSHOT_ID_FIELD_NUMBER = 13; + private long snapshotId_; /** - * optional int64 id = 13; + * optional int64 snapshot_id = 13; * *
      * temporary fields during development of computation stack
      * 
*/ - public boolean hasId() { + public boolean hasSnapshotId() { return ((bitField0_ & 0x00000400) == 0x00000400); } - /** - * optional int64 id = 13; + * optional int64 snapshot_id = 13; * *
      * temporary fields during development of computation stack
      * 
*/ - public long getId() { - return id_; - } - - public static final int SNAPSHOT_ID_FIELD_NUMBER = 8; - private long snapshotId_; - - /** - * optional int64 snapshot_id = 8; - */ - public boolean hasSnapshotId() { - return ((bitField0_ & 0x00000800) == 0x00000800); - } - - /** - * optional int64 snapshot_id = 8; - */ public long getSnapshotId() { return snapshotId_; } - public static final int UUID_FIELD_NUMBER = 9; - private java.lang.Object uuid_; - - /** - * optional string uuid = 9; - */ - public boolean hasUuid() { - return ((bitField0_ & 0x00001000) == 0x00001000); - } - - /** - * optional string uuid = 9; - */ - public java.lang.String getUuid() { - java.lang.Object ref = uuid_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - uuid_ = s; - } - return s; - } - } - - /** - * optional string uuid = 9; - */ - public com.google.protobuf.ByteString - 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); - uuid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int EVENT_FIELD_NUMBER = 11; + public static final int EVENT_FIELD_NUMBER = 14; private java.util.List event_; - /** - * repeated .Event event = 11; + * repeated .Event event = 14; */ public java.util.List getEventList() { return event_; } - /** - * repeated .Event event = 11; + * repeated .Event event = 14; */ - public java.util.List - getEventOrBuilderList() { + public java.util.List + getEventOrBuilderList() { return event_; } - /** - * repeated .Event event = 11; + * repeated .Event event = 14; */ public int getEventCount() { return event_.size(); } - /** - * repeated .Event event = 11; + * repeated .Event event = 14; */ public org.sonar.batch.protocol.output.BatchReport.Event getEvent(int index) { return event_.get(index); } - /** - * repeated .Event event = 11; + * repeated .Event event = 14; */ public org.sonar.batch.protocol.output.BatchReport.EventOrBuilder getEventOrBuilder( - int index) { + int index) { return event_.get(index); } @@ -3851,27 +3447,21 @@ public final class BatchReport { key_ = ""; lines_ = 0; description_ = ""; - id_ = 0L; snapshotId_ = 0L; - uuid_ = ""; event_ = 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 true; + if (isInitialized == 0) return false; 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_); @@ -3898,42 +3488,34 @@ public final class BatchReport { for (int i = 0; i < childRef_.size(); i++) { output.writeInt32NoTag(childRef_.get(i)); } - if (((bitField0_ & 0x00000800) == 0x00000800)) { - output.writeInt64(8, snapshotId_); - } - if (((bitField0_ & 0x00001000) == 0x00001000)) { - output.writeBytes(9, getUuidBytes()); - } for (int i = 0; i < link_.size(); i++) { - output.writeMessage(10, link_.get(i)); - } - for (int i = 0; i < event_.size(); i++) { - output.writeMessage(11, event_.get(i)); + output.writeMessage(8, link_.get(i)); } if (((bitField0_ & 0x00000040) == 0x00000040)) { - output.writeBytes(12, getVersionBytes()); - } - if (((bitField0_ & 0x00000400) == 0x00000400)) { - output.writeInt64(13, id_); + output.writeBytes(9, getVersionBytes()); } if (((bitField0_ & 0x00000080) == 0x00000080)) { - output.writeBytes(14, getKeyBytes()); + output.writeBytes(10, getKeyBytes()); } if (((bitField0_ & 0x00000100) == 0x00000100)) { - output.writeInt32(15, lines_); + output.writeInt32(11, lines_); } if (((bitField0_ & 0x00000200) == 0x00000200)) { - output.writeBytes(16, getDescriptionBytes()); + output.writeBytes(12, getDescriptionBytes()); + } + if (((bitField0_ & 0x00000400) == 0x00000400)) { + output.writeInt64(13, snapshotId_); + } + for (int i = 0; i < event_.size(); i++) { + output.writeMessage(14, event_.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)) { @@ -3970,45 +3552,37 @@ public final class BatchReport { if (!getChildRefList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); + .computeInt32SizeNoTag(dataSize); } childRefMemoizedSerializedSize = dataSize; } - if (((bitField0_ & 0x00000800) == 0x00000800)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(8, snapshotId_); - } - if (((bitField0_ & 0x00001000) == 0x00001000)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(9, getUuidBytes()); - } for (int i = 0; i < link_.size(); i++) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, link_.get(i)); - } - for (int i = 0; i < event_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, event_.get(i)); + .computeMessageSize(8, link_.get(i)); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream - .computeBytesSize(12, getVersionBytes()); - } - if (((bitField0_ & 0x00000400) == 0x00000400)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(13, id_); + .computeBytesSize(9, getVersionBytes()); } if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.CodedOutputStream - .computeBytesSize(14, getKeyBytes()); + .computeBytesSize(10, getKeyBytes()); } if (((bitField0_ & 0x00000100) == 0x00000100)) { size += com.google.protobuf.CodedOutputStream - .computeInt32Size(15, lines_); + .computeInt32Size(11, lines_); } if (((bitField0_ & 0x00000200) == 0x00000200)) { size += com.google.protobuf.CodedOutputStream - .computeBytesSize(16, getDescriptionBytes()); + .computeBytesSize(12, getDescriptionBytes()); + } + if (((bitField0_ & 0x00000400) == 0x00000400)) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(13, snapshotId_); + } + for (int i = 0; i < event_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(14, event_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; @@ -4016,115 +3590,95 @@ 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 + // @@protoc_insertion_point(builder_implements:Component) + 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() @@ -4133,18 +3687,16 @@ 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) { getLinkFieldBuilder(); getEventFieldBuilder(); } } - private static Builder create() { return new Builder(); } @@ -4179,15 +3731,11 @@ public final class BatchReport { bitField0_ = (bitField0_ & ~0x00000400); description_ = ""; bitField0_ = (bitField0_ & ~0x00000800); - id_ = 0L; - bitField0_ = (bitField0_ & ~0x00001000); snapshotId_ = 0L; - bitField0_ = (bitField0_ & ~0x00002000); - uuid_ = ""; - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00001000); if (eventBuilder_ == null) { event_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00008000); + bitField0_ = (bitField0_ & ~0x00002000); } else { eventBuilder_.clear(); } @@ -4199,7 +3747,7 @@ public final class BatchReport { } public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { + getDescriptorForType() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Component_descriptor; } @@ -4276,19 +3824,11 @@ public final class BatchReport { if (((from_bitField0_ & 0x00001000) == 0x00001000)) { to_bitField0_ |= 0x00000400; } - result.id_ = id_; - if (((from_bitField0_ & 0x00002000) == 0x00002000)) { - to_bitField0_ |= 0x00000800; - } result.snapshotId_ = snapshotId_; - if (((from_bitField0_ & 0x00004000) == 0x00004000)) { - to_bitField0_ |= 0x00001000; - } - result.uuid_ = uuid_; if (eventBuilder_ == null) { - if (((bitField0_ & 0x00008000) == 0x00008000)) { + if (((bitField0_ & 0x00002000) == 0x00002000)) { event_ = java.util.Collections.unmodifiableList(event_); - bitField0_ = (bitField0_ & ~0x00008000); + bitField0_ = (bitField0_ & ~0x00002000); } result.event_ = event_; } else { @@ -4301,7 +3841,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; @@ -4309,8 +3849,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()); } @@ -4363,9 +3902,9 @@ public final class BatchReport { linkBuilder_ = null; link_ = other.link_; bitField0_ = (bitField0_ & ~0x00000080); - linkBuilder_ = + linkBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getLinkFieldBuilder() : null; + getLinkFieldBuilder() : null; } else { linkBuilder_.addAllMessages(other.link_); } @@ -4389,22 +3928,14 @@ public final class BatchReport { description_ = other.description_; onChanged(); } - if (other.hasId()) { - setId(other.getId()); - } if (other.hasSnapshotId()) { setSnapshotId(other.getSnapshotId()); } - if (other.hasUuid()) { - bitField0_ |= 0x00004000; - uuid_ = other.uuid_; - onChanged(); - } if (eventBuilder_ == null) { if (!other.event_.isEmpty()) { if (event_.isEmpty()) { event_ = other.event_; - bitField0_ = (bitField0_ & ~0x00008000); + bitField0_ = (bitField0_ & ~0x00002000); } else { ensureEventIsMutable(); event_.addAll(other.event_); @@ -4417,10 +3948,10 @@ public final class BatchReport { eventBuilder_.dispose(); eventBuilder_ = null; event_ = other.event_; - bitField0_ = (bitField0_ & ~0x00008000); - eventBuilder_ = + bitField0_ = (bitField0_ & ~0x00002000); + eventBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getEventFieldBuilder() : null; + getEventFieldBuilder() : null; } else { eventBuilder_.addAllMessages(other.event_); } @@ -4435,9 +3966,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); @@ -4451,25 +3982,21 @@ public final class BatchReport { } return this; } - private int bitField0_; - private int ref_; - + 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; */ @@ -4479,7 +4006,6 @@ public final class BatchReport { onChanged(); return this; } - /** * optional int32 ref = 1; */ @@ -4491,14 +4017,12 @@ public final class BatchReport { } private java.lang.Object path_ = ""; - /** * optional string path = 2; */ public boolean hasPath() { return ((bitField0_ & 0x00000002) == 0x00000002); } - /** * optional string path = 2; */ @@ -4506,7 +4030,7 @@ public final class BatchReport { java.lang.Object ref = path_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { path_ = s; @@ -4516,38 +4040,35 @@ public final class BatchReport { 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; */ @@ -4557,30 +4078,27 @@ 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; } private java.lang.Object name_ = ""; - /** * optional string name = 3; */ public boolean hasName() { return ((bitField0_ & 0x00000004) == 0x00000004); } - /** * optional string name = 3; */ @@ -4588,7 +4106,7 @@ public final class BatchReport { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { name_ = s; @@ -4598,38 +4116,35 @@ public final class BatchReport { 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; */ @@ -4639,37 +4154,33 @@ 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; } 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; */ @@ -4682,7 +4193,6 @@ public final class BatchReport { onChanged(); return this; } - /** * optional .ComponentType type = 4; */ @@ -4693,22 +4203,19 @@ public final class BatchReport { return this; } - private boolean isTest_; - + 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; */ @@ -4718,7 +4225,6 @@ public final class BatchReport { onChanged(); return this; } - /** * optional bool is_test = 5; */ @@ -4730,14 +4236,12 @@ public final class BatchReport { } private java.lang.Object language_ = ""; - /** * optional string language = 6; */ public boolean hasLanguage() { return ((bitField0_ & 0x00000020) == 0x00000020); } - /** * optional string language = 6; */ @@ -4745,7 +4249,7 @@ public final class BatchReport { java.lang.Object ref = language_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { language_ = s; @@ -4755,38 +4259,35 @@ public final class BatchReport { 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; */ @@ -4796,63 +4297,56 @@ 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 childRef_ = java.util.Collections.emptyList(); - private void ensureChildRefIsMutable() { if (!((bitField0_ & 0x00000040) == 0x00000040)) { childRef_ = new java.util.ArrayList(childRef_); bitField0_ |= 0x00000040; - } + } } - /** * repeated int32 child_ref = 7 [packed = true]; */ public java.util.List - getChildRefList() { + getChildRefList() { return java.util.Collections.unmodifiableList(childRef_); } - /** * repeated int32 child_ref = 7 [packed = true]; */ public int getChildRefCount() { return childRef_.size(); } - /** * repeated int32 child_ref = 7 [packed = true]; */ public int getChildRef(int index) { return childRef_.get(index); } - /** * repeated int32 child_ref = 7 [packed = true]; */ public Builder setChildRef( - int index, int value) { + int index, int value) { ensureChildRefIsMutable(); childRef_.set(index, value); onChanged(); return this; } - /** * repeated int32 child_ref = 7 [packed = true]; */ @@ -4862,19 +4356,17 @@ public final class BatchReport { onChanged(); return this; } - /** * repeated int32 child_ref = 7 [packed = true]; */ public Builder addAllChildRef( - java.lang.Iterable values) { + java.lang.Iterable values) { ensureChildRefIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, childRef_); + values, childRef_); onChanged(); return this; } - /** * repeated int32 child_ref = 7 [packed = true]; */ @@ -4887,18 +4379,18 @@ public final class BatchReport { private java.util.List link_ = java.util.Collections.emptyList(); - private void ensureLinkIsMutable() { if (!((bitField0_ & 0x00000080) == 0x00000080)) { link_ = new java.util.ArrayList(link_); bitField0_ |= 0x00000080; - } + } } - private com.google.protobuf.RepeatedFieldBuilder linkBuilder_; + 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 link = 10; + * repeated .ComponentLink link = 8; */ public java.util.List getLinkList() { if (linkBuilder_ == null) { @@ -4907,9 +4399,8 @@ public final class BatchReport { return linkBuilder_.getMessageList(); } } - /** - * repeated .ComponentLink link = 10; + * repeated .ComponentLink link = 8; */ public int getLinkCount() { if (linkBuilder_ == null) { @@ -4918,9 +4409,8 @@ public final class BatchReport { return linkBuilder_.getCount(); } } - /** - * repeated .ComponentLink link = 10; + * repeated .ComponentLink link = 8; */ public org.sonar.batch.protocol.output.BatchReport.ComponentLink getLink(int index) { if (linkBuilder_ == null) { @@ -4929,12 +4419,11 @@ public final class BatchReport { return linkBuilder_.getMessage(index); } } - /** - * repeated .ComponentLink link = 10; + * repeated .ComponentLink link = 8; */ public Builder setLink( - int index, org.sonar.batch.protocol.output.BatchReport.ComponentLink value) { + int index, org.sonar.batch.protocol.output.BatchReport.ComponentLink value) { if (linkBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4947,12 +4436,11 @@ public final class BatchReport { } return this; } - /** - * repeated .ComponentLink link = 10; + * repeated .ComponentLink link = 8; */ public Builder setLink( - int index, org.sonar.batch.protocol.output.BatchReport.ComponentLink.Builder builderForValue) { + int index, org.sonar.batch.protocol.output.BatchReport.ComponentLink.Builder builderForValue) { if (linkBuilder_ == null) { ensureLinkIsMutable(); link_.set(index, builderForValue.build()); @@ -4962,9 +4450,8 @@ public final class BatchReport { } return this; } - /** - * repeated .ComponentLink link = 10; + * repeated .ComponentLink link = 8; */ public Builder addLink(org.sonar.batch.protocol.output.BatchReport.ComponentLink value) { if (linkBuilder_ == null) { @@ -4979,12 +4466,11 @@ public final class BatchReport { } return this; } - /** - * repeated .ComponentLink link = 10; + * repeated .ComponentLink link = 8; */ public Builder addLink( - int index, org.sonar.batch.protocol.output.BatchReport.ComponentLink value) { + int index, org.sonar.batch.protocol.output.BatchReport.ComponentLink value) { if (linkBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4997,12 +4483,11 @@ public final class BatchReport { } return this; } - /** - * repeated .ComponentLink link = 10; + * repeated .ComponentLink link = 8; */ public Builder addLink( - org.sonar.batch.protocol.output.BatchReport.ComponentLink.Builder builderForValue) { + org.sonar.batch.protocol.output.BatchReport.ComponentLink.Builder builderForValue) { if (linkBuilder_ == null) { ensureLinkIsMutable(); link_.add(builderForValue.build()); @@ -5012,12 +4497,11 @@ public final class BatchReport { } return this; } - /** - * repeated .ComponentLink link = 10; + * repeated .ComponentLink link = 8; */ public Builder addLink( - int index, org.sonar.batch.protocol.output.BatchReport.ComponentLink.Builder builderForValue) { + int index, org.sonar.batch.protocol.output.BatchReport.ComponentLink.Builder builderForValue) { if (linkBuilder_ == null) { ensureLinkIsMutable(); link_.add(index, builderForValue.build()); @@ -5027,25 +4511,23 @@ public final class BatchReport { } return this; } - /** - * repeated .ComponentLink link = 10; + * repeated .ComponentLink link = 8; */ public Builder addAllLink( - java.lang.Iterable values) { + java.lang.Iterable values) { if (linkBuilder_ == null) { ensureLinkIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, link_); + values, link_); onChanged(); } else { linkBuilder_.addAllMessages(values); } return this; } - /** - * repeated .ComponentLink link = 10; + * repeated .ComponentLink link = 8; */ public Builder clearLink() { if (linkBuilder_ == null) { @@ -5057,9 +4539,8 @@ public final class BatchReport { } return this; } - /** - * repeated .ComponentLink link = 10; + * repeated .ComponentLink link = 8; */ public Builder removeLink(int index) { if (linkBuilder_ == null) { @@ -5071,83 +4552,74 @@ public final class BatchReport { } return this; } - /** - * repeated .ComponentLink link = 10; + * repeated .ComponentLink link = 8; */ public org.sonar.batch.protocol.output.BatchReport.ComponentLink.Builder getLinkBuilder( - int index) { + int index) { return getLinkFieldBuilder().getBuilder(index); } - /** - * repeated .ComponentLink link = 10; + * repeated .ComponentLink link = 8; */ public org.sonar.batch.protocol.output.BatchReport.ComponentLinkOrBuilder getLinkOrBuilder( - int index) { + int index) { if (linkBuilder_ == null) { - return link_.get(index); - } else { + return link_.get(index); } else { return linkBuilder_.getMessageOrBuilder(index); } } - /** - * repeated .ComponentLink link = 10; + * repeated .ComponentLink link = 8; */ - public java.util.List - getLinkOrBuilderList() { + public java.util.List + getLinkOrBuilderList() { if (linkBuilder_ != null) { return linkBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(link_); } } - /** - * repeated .ComponentLink link = 10; + * repeated .ComponentLink link = 8; */ public org.sonar.batch.protocol.output.BatchReport.ComponentLink.Builder addLinkBuilder() { return getLinkFieldBuilder().addBuilder( - org.sonar.batch.protocol.output.BatchReport.ComponentLink.getDefaultInstance()); + org.sonar.batch.protocol.output.BatchReport.ComponentLink.getDefaultInstance()); } - /** - * repeated .ComponentLink link = 10; + * repeated .ComponentLink link = 8; */ public org.sonar.batch.protocol.output.BatchReport.ComponentLink.Builder addLinkBuilder( - int index) { + int index) { return getLinkFieldBuilder().addBuilder( - index, org.sonar.batch.protocol.output.BatchReport.ComponentLink.getDefaultInstance()); + index, org.sonar.batch.protocol.output.BatchReport.ComponentLink.getDefaultInstance()); } - /** - * repeated .ComponentLink link = 10; + * repeated .ComponentLink link = 8; */ - public java.util.List - getLinkBuilderList() { + 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> - getLinkFieldBuilder() { + 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()); + 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 linkBuilder_; } private java.lang.Object version_ = ""; - /** - * optional string version = 12; + * optional string version = 9; * *
        * Only available on PROJECT and MODULE types
@@ -5156,9 +4628,8 @@ public final class BatchReport {
       public boolean hasVersion() {
         return ((bitField0_ & 0x00000100) == 0x00000100);
       }
-
       /**
-       * optional string version = 12;
+       * optional string version = 9;
        *
        * 
        * Only available on PROJECT and MODULE types
@@ -5168,7 +4639,7 @@ public final class BatchReport {
         java.lang.Object ref = version_;
         if (!(ref instanceof java.lang.String)) {
           com.google.protobuf.ByteString bs =
-            (com.google.protobuf.ByteString) ref;
+              (com.google.protobuf.ByteString) ref;
           java.lang.String s = bs.toStringUtf8();
           if (bs.isValidUtf8()) {
             version_ = s;
@@ -5178,48 +4649,45 @@ public final class BatchReport {
           return (java.lang.String) ref;
         }
       }
-
       /**
-       * optional string version = 12;
+       * optional string version = 9;
        *
        * 
        * Only available on PROJECT and MODULE types
        * 
*/ public com.google.protobuf.ByteString - getVersionBytes() { + getVersionBytes() { java.lang.Object ref = version_; 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); version_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - /** - * optional string version = 12; + * optional string version = 9; * *
        * Only available on PROJECT and MODULE types
        * 
*/ public Builder setVersion( - java.lang.String value) { + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000100; + throw new NullPointerException(); + } + bitField0_ |= 0x00000100; version_ = value; onChanged(); return this; } - /** - * optional string version = 12; + * optional string version = 9; * *
        * Only available on PROJECT and MODULE types
@@ -5231,29 +4699,27 @@ public final class BatchReport {
         onChanged();
         return this;
       }
-
       /**
-       * optional string version = 12;
+       * optional string version = 9;
        *
        * 
        * Only available on PROJECT and MODULE types
        * 
*/ public Builder setVersionBytes( - com.google.protobuf.ByteString value) { + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000100; + throw new NullPointerException(); + } + bitField0_ |= 0x00000100; version_ = value; onChanged(); return this; } private java.lang.Object key_ = ""; - /** - * optional string key = 14; + * optional string key = 10; * *
        * Only available on PROJECT and MODULE types
@@ -5262,9 +4728,8 @@ public final class BatchReport {
       public boolean hasKey() {
         return ((bitField0_ & 0x00000200) == 0x00000200);
       }
-
       /**
-       * optional string key = 14;
+       * optional string key = 10;
        *
        * 
        * Only available on PROJECT and MODULE types
@@ -5274,7 +4739,7 @@ public final class BatchReport {
         java.lang.Object ref = key_;
         if (!(ref instanceof java.lang.String)) {
           com.google.protobuf.ByteString bs =
-            (com.google.protobuf.ByteString) ref;
+              (com.google.protobuf.ByteString) ref;
           java.lang.String s = bs.toStringUtf8();
           if (bs.isValidUtf8()) {
             key_ = s;
@@ -5284,48 +4749,45 @@ public final class BatchReport {
           return (java.lang.String) ref;
         }
       }
-
       /**
-       * optional string key = 14;
+       * optional string key = 10;
        *
        * 
        * Only available on PROJECT and MODULE types
        * 
*/ 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 = 14; + * optional string key = 10; * *
        * Only available on PROJECT and MODULE types
        * 
*/ public Builder setKey( - java.lang.String value) { + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000200; + throw new NullPointerException(); + } + bitField0_ |= 0x00000200; key_ = value; onChanged(); return this; } - /** - * optional string key = 14; + * optional string key = 10; * *
        * Only available on PROJECT and MODULE types
@@ -5337,29 +4799,27 @@ public final class BatchReport {
         onChanged();
         return this;
       }
-
       /**
-       * optional string key = 14;
+       * optional string key = 10;
        *
        * 
        * Only available on PROJECT and MODULE types
        * 
*/ public Builder setKeyBytes( - com.google.protobuf.ByteString value) { + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000200; + throw new NullPointerException(); + } + bitField0_ |= 0x00000200; key_ = value; onChanged(); return this; } - private int lines_; - + private int lines_ ; /** - * optional int32 lines = 15; + * optional int32 lines = 11; * *
        * Only available on FILE type
@@ -5368,9 +4828,8 @@ public final class BatchReport {
       public boolean hasLines() {
         return ((bitField0_ & 0x00000400) == 0x00000400);
       }
-
       /**
-       * optional int32 lines = 15;
+       * optional int32 lines = 11;
        *
        * 
        * Only available on FILE type
@@ -5379,9 +4838,8 @@ public final class BatchReport {
       public int getLines() {
         return lines_;
       }
-
       /**
-       * optional int32 lines = 15;
+       * optional int32 lines = 11;
        *
        * 
        * Only available on FILE type
@@ -5393,9 +4851,8 @@ public final class BatchReport {
         onChanged();
         return this;
       }
-
       /**
-       * optional int32 lines = 15;
+       * optional int32 lines = 11;
        *
        * 
        * Only available on FILE type
@@ -5409,9 +4866,8 @@ public final class BatchReport {
       }
 
       private java.lang.Object description_ = "";
-
       /**
-       * optional string description = 16;
+       * optional string description = 12;
        *
        * 
        * Only available on PROJECT and MODULE types
@@ -5420,9 +4876,8 @@ public final class BatchReport {
       public boolean hasDescription() {
         return ((bitField0_ & 0x00000800) == 0x00000800);
       }
-
       /**
-       * optional string description = 16;
+       * optional string description = 12;
        *
        * 
        * Only available on PROJECT and MODULE types
@@ -5432,7 +4887,7 @@ public final class BatchReport {
         java.lang.Object ref = description_;
         if (!(ref instanceof java.lang.String)) {
           com.google.protobuf.ByteString bs =
-            (com.google.protobuf.ByteString) ref;
+              (com.google.protobuf.ByteString) ref;
           java.lang.String s = bs.toStringUtf8();
           if (bs.isValidUtf8()) {
             description_ = s;
@@ -5442,48 +4897,45 @@ public final class BatchReport {
           return (java.lang.String) ref;
         }
       }
-
       /**
-       * optional string description = 16;
+       * optional string description = 12;
        *
        * 
        * Only available on PROJECT and MODULE types
        * 
*/ public com.google.protobuf.ByteString - getDescriptionBytes() { + getDescriptionBytes() { java.lang.Object ref = description_; 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); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - /** - * optional string description = 16; + * optional string description = 12; * *
        * Only available on PROJECT and MODULE types
        * 
*/ public Builder setDescription( - java.lang.String value) { + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000800; + throw new NullPointerException(); + } + bitField0_ |= 0x00000800; description_ = value; onChanged(); return this; } - /** - * optional string description = 16; + * optional string description = 12; * *
        * Only available on PROJECT and MODULE types
@@ -5495,209 +4947,86 @@ public final class BatchReport {
         onChanged();
         return this;
       }
-
       /**
-       * optional string description = 16;
+       * optional string description = 12;
        *
        * 
        * Only available on PROJECT and MODULE types
        * 
*/ public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000800; + throw new NullPointerException(); + } + bitField0_ |= 0x00000800; description_ = value; onChanged(); return this; } - private long id_; - + private long snapshotId_ ; /** - * optional int64 id = 13; + * optional int64 snapshot_id = 13; * *
        * temporary fields during development of computation stack
        * 
*/ - public boolean hasId() { + public boolean hasSnapshotId() { return ((bitField0_ & 0x00001000) == 0x00001000); } - /** - * optional int64 id = 13; + * optional int64 snapshot_id = 13; * *
        * temporary fields during development of computation stack
        * 
*/ - public long getId() { - return id_; + public long getSnapshotId() { + return snapshotId_; } - /** - * optional int64 id = 13; + * optional int64 snapshot_id = 13; * *
        * temporary fields during development of computation stack
        * 
*/ - public Builder setId(long value) { + public Builder setSnapshotId(long value) { bitField0_ |= 0x00001000; - id_ = value; + snapshotId_ = value; onChanged(); return this; } - /** - * optional int64 id = 13; + * optional int64 snapshot_id = 13; * *
        * temporary fields during development of computation stack
        * 
*/ - public Builder clearId() { - bitField0_ = (bitField0_ & ~0x00001000); - id_ = 0L; - onChanged(); - return this; - } - - private long snapshotId_; - - /** - * optional int64 snapshot_id = 8; - */ - public boolean hasSnapshotId() { - return ((bitField0_ & 0x00002000) == 0x00002000); - } - - /** - * optional int64 snapshot_id = 8; - */ - public long getSnapshotId() { - return snapshotId_; - } - - /** - * optional int64 snapshot_id = 8; - */ - public Builder setSnapshotId(long value) { - bitField0_ |= 0x00002000; - snapshotId_ = value; - onChanged(); - return this; - } - - /** - * optional int64 snapshot_id = 8; - */ public Builder clearSnapshotId() { - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00001000); snapshotId_ = 0L; onChanged(); return this; } - private java.lang.Object uuid_ = ""; - - /** - * optional string uuid = 9; - */ - public boolean hasUuid() { - return ((bitField0_ & 0x00004000) == 0x00004000); - } - - /** - * 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; - } - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * optional string uuid = 9; - */ - public com.google.protobuf.ByteString - getUuidBytes() { - java.lang.Object ref = uuid_; - if (ref instanceof String) { - 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) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00004000; - uuid_ = value; - onChanged(); - return this; - } - - /** - * optional string uuid = 9; - */ - public Builder clearUuid() { - bitField0_ = (bitField0_ & ~0x00004000); - uuid_ = getDefaultInstance().getUuid(); - onChanged(); - return this; - } - - /** - * optional string uuid = 9; - */ - public Builder setUuidBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00004000; - uuid_ = value; - onChanged(); - return this; - } - private java.util.List event_ = java.util.Collections.emptyList(); - private void ensureEventIsMutable() { - if (!((bitField0_ & 0x00008000) == 0x00008000)) { + if (!((bitField0_ & 0x00002000) == 0x00002000)) { event_ = new java.util.ArrayList(event_); - bitField0_ |= 0x00008000; - } + bitField0_ |= 0x00002000; + } } - private com.google.protobuf.RepeatedFieldBuilder eventBuilder_; + private com.google.protobuf.RepeatedFieldBuilder< + org.sonar.batch.protocol.output.BatchReport.Event, org.sonar.batch.protocol.output.BatchReport.Event.Builder, org.sonar.batch.protocol.output.BatchReport.EventOrBuilder> eventBuilder_; /** - * repeated .Event event = 11; + * repeated .Event event = 14; */ public java.util.List getEventList() { if (eventBuilder_ == null) { @@ -5706,9 +5035,8 @@ public final class BatchReport { return eventBuilder_.getMessageList(); } } - /** - * repeated .Event event = 11; + * repeated .Event event = 14; */ public int getEventCount() { if (eventBuilder_ == null) { @@ -5717,9 +5045,8 @@ public final class BatchReport { return eventBuilder_.getCount(); } } - /** - * repeated .Event event = 11; + * repeated .Event event = 14; */ public org.sonar.batch.protocol.output.BatchReport.Event getEvent(int index) { if (eventBuilder_ == null) { @@ -5728,12 +5055,11 @@ public final class BatchReport { return eventBuilder_.getMessage(index); } } - /** - * repeated .Event event = 11; + * repeated .Event event = 14; */ public Builder setEvent( - int index, org.sonar.batch.protocol.output.BatchReport.Event value) { + int index, org.sonar.batch.protocol.output.BatchReport.Event value) { if (eventBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5746,12 +5072,11 @@ public final class BatchReport { } return this; } - /** - * repeated .Event event = 11; + * repeated .Event event = 14; */ public Builder setEvent( - int index, org.sonar.batch.protocol.output.BatchReport.Event.Builder builderForValue) { + int index, org.sonar.batch.protocol.output.BatchReport.Event.Builder builderForValue) { if (eventBuilder_ == null) { ensureEventIsMutable(); event_.set(index, builderForValue.build()); @@ -5761,9 +5086,8 @@ public final class BatchReport { } return this; } - /** - * repeated .Event event = 11; + * repeated .Event event = 14; */ public Builder addEvent(org.sonar.batch.protocol.output.BatchReport.Event value) { if (eventBuilder_ == null) { @@ -5778,12 +5102,11 @@ public final class BatchReport { } return this; } - /** - * repeated .Event event = 11; + * repeated .Event event = 14; */ public Builder addEvent( - int index, org.sonar.batch.protocol.output.BatchReport.Event value) { + int index, org.sonar.batch.protocol.output.BatchReport.Event value) { if (eventBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5796,12 +5119,11 @@ public final class BatchReport { } return this; } - /** - * repeated .Event event = 11; + * repeated .Event event = 14; */ public Builder addEvent( - org.sonar.batch.protocol.output.BatchReport.Event.Builder builderForValue) { + org.sonar.batch.protocol.output.BatchReport.Event.Builder builderForValue) { if (eventBuilder_ == null) { ensureEventIsMutable(); event_.add(builderForValue.build()); @@ -5811,12 +5133,11 @@ public final class BatchReport { } return this; } - /** - * repeated .Event event = 11; + * repeated .Event event = 14; */ public Builder addEvent( - int index, org.sonar.batch.protocol.output.BatchReport.Event.Builder builderForValue) { + int index, org.sonar.batch.protocol.output.BatchReport.Event.Builder builderForValue) { if (eventBuilder_ == null) { ensureEventIsMutable(); event_.add(index, builderForValue.build()); @@ -5826,39 +5147,36 @@ public final class BatchReport { } return this; } - /** - * repeated .Event event = 11; + * repeated .Event event = 14; */ public Builder addAllEvent( - java.lang.Iterable values) { + java.lang.Iterable values) { if (eventBuilder_ == null) { ensureEventIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, event_); + values, event_); onChanged(); } else { eventBuilder_.addAllMessages(values); } return this; } - /** - * repeated .Event event = 11; + * repeated .Event event = 14; */ public Builder clearEvent() { if (eventBuilder_ == null) { event_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00008000); + bitField0_ = (bitField0_ & ~0x00002000); onChanged(); } else { eventBuilder_.clear(); } return this; } - /** - * repeated .Event event = 11; + * repeated .Event event = 14; */ public Builder removeEvent(int index) { if (eventBuilder_ == null) { @@ -5870,74 +5188,66 @@ public final class BatchReport { } return this; } - /** - * repeated .Event event = 11; + * repeated .Event event = 14; */ public org.sonar.batch.protocol.output.BatchReport.Event.Builder getEventBuilder( - int index) { + int index) { return getEventFieldBuilder().getBuilder(index); } - /** - * repeated .Event event = 11; + * repeated .Event event = 14; */ public org.sonar.batch.protocol.output.BatchReport.EventOrBuilder getEventOrBuilder( - int index) { + int index) { if (eventBuilder_ == null) { - return event_.get(index); - } else { + return event_.get(index); } else { return eventBuilder_.getMessageOrBuilder(index); } } - /** - * repeated .Event event = 11; + * repeated .Event event = 14; */ - public java.util.List - getEventOrBuilderList() { + public java.util.List + getEventOrBuilderList() { if (eventBuilder_ != null) { return eventBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(event_); } } - /** - * repeated .Event event = 11; + * repeated .Event event = 14; */ public org.sonar.batch.protocol.output.BatchReport.Event.Builder addEventBuilder() { return getEventFieldBuilder().addBuilder( - org.sonar.batch.protocol.output.BatchReport.Event.getDefaultInstance()); + org.sonar.batch.protocol.output.BatchReport.Event.getDefaultInstance()); } - /** - * repeated .Event event = 11; + * repeated .Event event = 14; */ public org.sonar.batch.protocol.output.BatchReport.Event.Builder addEventBuilder( - int index) { + int index) { return getEventFieldBuilder().addBuilder( - index, org.sonar.batch.protocol.output.BatchReport.Event.getDefaultInstance()); + index, org.sonar.batch.protocol.output.BatchReport.Event.getDefaultInstance()); } - /** - * repeated .Event event = 11; + * repeated .Event event = 14; */ - public java.util.List - getEventBuilderList() { + public java.util.List + getEventBuilderList() { return getEventFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilder< - org.sonar.batch.protocol.output.BatchReport.Event, org.sonar.batch.protocol.output.BatchReport.Event.Builder, org.sonar.batch.protocol.output.BatchReport.EventOrBuilder> - getEventFieldBuilder() { + org.sonar.batch.protocol.output.BatchReport.Event, org.sonar.batch.protocol.output.BatchReport.Event.Builder, org.sonar.batch.protocol.output.BatchReport.EventOrBuilder> + getEventFieldBuilder() { if (eventBuilder_ == null) { eventBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - org.sonar.batch.protocol.output.BatchReport.Event, org.sonar.batch.protocol.output.BatchReport.Event.Builder, org.sonar.batch.protocol.output.BatchReport.EventOrBuilder>( - event_, - ((bitField0_ & 0x00008000) == 0x00008000), - getParentForChildren(), - isClean()); + org.sonar.batch.protocol.output.BatchReport.Event, org.sonar.batch.protocol.output.BatchReport.Event.Builder, org.sonar.batch.protocol.output.BatchReport.EventOrBuilder>( + event_, + ((bitField0_ & 0x00002000) == 0x00002000), + getParentForChildren(), + isClean()); event_ = null; } return eventBuilder_; @@ -5955,14 +5265,13 @@ public final class BatchReport { } public interface MeasureOrBuilder extends - // @@protoc_insertion_point(interface_extends:Measure) - com.google.protobuf.MessageOrBuilder { + // @@protoc_insertion_point(interface_extends:Measure) + com.google.protobuf.MessageOrBuilder { /** * optional .MeasureValueType value_type = 1; */ boolean hasValueType(); - /** * optional .MeasureValueType value_type = 1; */ @@ -5976,7 +5285,6 @@ public final class BatchReport { *
*/ boolean hasBooleanValue(); - /** * optional bool boolean_value = 2; * @@ -5990,7 +5298,6 @@ public final class BatchReport { * optional int32 int_value = 3; */ boolean hasIntValue(); - /** * optional int32 int_value = 3; */ @@ -6000,7 +5307,6 @@ public final class BatchReport { * optional int64 long_value = 4; */ boolean hasLongValue(); - /** * optional int64 long_value = 4; */ @@ -6010,7 +5316,6 @@ public final class BatchReport { * optional double double_value = 5; */ boolean hasDoubleValue(); - /** * optional double double_value = 5; */ @@ -6020,33 +5325,29 @@ public final class BatchReport { * optional string string_value = 6; */ boolean hasStringValue(); - /** * optional string string_value = 6; */ java.lang.String getStringValue(); - /** * optional string string_value = 6; */ com.google.protobuf.ByteString - getStringValueBytes(); + getStringValueBytes(); /** * optional string metric_key = 7; */ boolean hasMetricKey(); - /** * optional string metric_key = 7; */ java.lang.String getMetricKey(); - /** * optional string metric_key = 7; */ com.google.protobuf.ByteString - getMetricKeyBytes(); + getMetricKeyBytes(); /** * optional string description = 9; @@ -6056,7 +5357,6 @@ public final class BatchReport { *
*/ boolean hasDescription(); - /** * optional string description = 9; * @@ -6065,7 +5365,6 @@ public final class BatchReport { *
*/ java.lang.String getDescription(); - /** * optional string description = 9; * @@ -6074,29 +5373,26 @@ public final class BatchReport { *
*/ com.google.protobuf.ByteString - getDescriptionBytes(); + getDescriptionBytes(); /** * optional string rule_key = 10; */ boolean hasRuleKey(); - /** * optional string rule_key = 10; */ java.lang.String getRuleKey(); - /** * optional string rule_key = 10; */ com.google.protobuf.ByteString - getRuleKeyBytes(); + getRuleKeyBytes(); /** * optional .Severity severity = 11; */ boolean hasSeverity(); - /** * optional .Severity severity = 11; */ @@ -6106,39 +5402,34 @@ public final class BatchReport { * optional string alert_status = 12; */ boolean hasAlertStatus(); - /** * optional string alert_status = 12; */ java.lang.String getAlertStatus(); - /** * optional string alert_status = 12; */ com.google.protobuf.ByteString - getAlertStatusBytes(); + getAlertStatusBytes(); /** * optional string alert_text = 13; */ boolean hasAlertText(); - /** * optional string alert_text = 13; */ java.lang.String getAlertText(); - /** * optional string alert_text = 13; */ com.google.protobuf.ByteString - getAlertTextBytes(); + getAlertTextBytes(); /** * optional double variation_value_1 = 14; */ boolean hasVariationValue1(); - /** * optional double variation_value_1 = 14; */ @@ -6148,7 +5439,6 @@ public final class BatchReport { * optional double variation_value_2 = 15; */ boolean hasVariationValue2(); - /** * optional double variation_value_2 = 15; */ @@ -6158,7 +5448,6 @@ public final class BatchReport { * optional double variation_value_3 = 16; */ boolean hasVariationValue3(); - /** * optional double variation_value_3 = 16; */ @@ -6168,7 +5457,6 @@ public final class BatchReport { * optional double variation_value_4 = 17; */ boolean hasVariationValue4(); - /** * optional double variation_value_4 = 17; */ @@ -6178,7 +5466,6 @@ public final class BatchReport { * optional double variation_value_5 = 18; */ boolean hasVariationValue5(); - /** * optional double variation_value_5 = 18; */ @@ -6188,7 +5475,6 @@ public final class BatchReport { * optional int32 characteric_id = 19; */ boolean hasCharactericId(); - /** * optional int32 characteric_id = 19; */ @@ -6198,7 +5484,6 @@ public final class BatchReport { * optional int32 person_id = 20; */ boolean hasPersonId(); - /** * optional int32 person_id = 20; */ @@ -6208,21 +5493,17 @@ public final class BatchReport { * Protobuf type {@code Measure} */ public static final class Measure extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:Measure) - MeasureOrBuilder { + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:Measure) + MeasureOrBuilder { // Use Measure.newBuilder() to construct. private Measure(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } - - private Measure(boolean noInit) { - this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } + private Measure(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final Measure defaultInstance; - public static Measure getDefaultInstance() { return defaultInstance; } @@ -6232,21 +5513,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 Measure( - 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) { @@ -6257,7 +5536,7 @@ public final class BatchReport { break; default: { if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { + extensionRegistry, tag)) { done = true; } break; @@ -6381,34 +5660,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_Measure_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { + internalGetFieldAccessorTable() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Measure_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.batch.protocol.output.BatchReport.Measure.class, org.sonar.batch.protocol.output.BatchReport.Measure.Builder.class); + .ensureFieldAccessorsInitialized( + org.sonar.batch.protocol.output.BatchReport.Measure.class, org.sonar.batch.protocol.output.BatchReport.Measure.Builder.class); } public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Measure parsePartialFrom( + new com.google.protobuf.AbstractParser() { + public Measure parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Measure(input, extensionRegistry); - } - }; + return new Measure(input, extensionRegistry); + } + }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { @@ -6418,14 +5696,12 @@ public final class BatchReport { private int bitField0_; public static final int VALUE_TYPE_FIELD_NUMBER = 1; private org.sonar.batch.protocol.Constants.MeasureValueType valueType_; - /** * optional .MeasureValueType value_type = 1; */ public boolean hasValueType() { return ((bitField0_ & 0x00000001) == 0x00000001); } - /** * optional .MeasureValueType value_type = 1; */ @@ -6435,7 +5711,6 @@ public final class BatchReport { public static final int BOOLEAN_VALUE_FIELD_NUMBER = 2; private boolean booleanValue_; - /** * optional bool boolean_value = 2; * @@ -6446,7 +5721,6 @@ public final class BatchReport { public boolean hasBooleanValue() { return ((bitField0_ & 0x00000002) == 0x00000002); } - /** * optional bool boolean_value = 2; * @@ -6460,14 +5734,12 @@ public final class BatchReport { public static final int INT_VALUE_FIELD_NUMBER = 3; private int intValue_; - /** * optional int32 int_value = 3; */ public boolean hasIntValue() { return ((bitField0_ & 0x00000004) == 0x00000004); } - /** * optional int32 int_value = 3; */ @@ -6477,14 +5749,12 @@ public final class BatchReport { public static final int LONG_VALUE_FIELD_NUMBER = 4; private long longValue_; - /** * optional int64 long_value = 4; */ public boolean hasLongValue() { return ((bitField0_ & 0x00000008) == 0x00000008); } - /** * optional int64 long_value = 4; */ @@ -6494,14 +5764,12 @@ public final class BatchReport { public static final int DOUBLE_VALUE_FIELD_NUMBER = 5; private double doubleValue_; - /** * optional double double_value = 5; */ public boolean hasDoubleValue() { return ((bitField0_ & 0x00000010) == 0x00000010); } - /** * optional double double_value = 5; */ @@ -6511,14 +5779,12 @@ public final class BatchReport { public static final int STRING_VALUE_FIELD_NUMBER = 6; private java.lang.Object stringValue_; - /** * optional string string_value = 6; */ public boolean hasStringValue() { return ((bitField0_ & 0x00000020) == 0x00000020); } - /** * optional string string_value = 6; */ @@ -6527,8 +5793,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()) { stringValue_ = s; @@ -6536,17 +5802,16 @@ public final class BatchReport { return s; } } - /** * optional string string_value = 6; */ public com.google.protobuf.ByteString - getStringValueBytes() { + getStringValueBytes() { java.lang.Object ref = stringValue_; 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); stringValue_ = b; return b; } else { @@ -6556,14 +5821,12 @@ public final class BatchReport { public static final int METRIC_KEY_FIELD_NUMBER = 7; private java.lang.Object metricKey_; - /** * optional string metric_key = 7; */ public boolean hasMetricKey() { return ((bitField0_ & 0x00000040) == 0x00000040); } - /** * optional string metric_key = 7; */ @@ -6572,8 +5835,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()) { metricKey_ = s; @@ -6581,17 +5844,16 @@ public final class BatchReport { return s; } } - /** * optional string metric_key = 7; */ public com.google.protobuf.ByteString - getMetricKeyBytes() { + getMetricKeyBytes() { java.lang.Object ref = metricKey_; 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); metricKey_ = b; return b; } else { @@ -6601,7 +5863,6 @@ public final class BatchReport { public static final int DESCRIPTION_FIELD_NUMBER = 9; private java.lang.Object description_; - /** * optional string description = 9; * @@ -6612,7 +5873,6 @@ public final class BatchReport { public boolean hasDescription() { return ((bitField0_ & 0x00000080) == 0x00000080); } - /** * optional string description = 9; * @@ -6625,8 +5885,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()) { description_ = s; @@ -6634,7 +5894,6 @@ public final class BatchReport { return s; } } - /** * optional string description = 9; * @@ -6643,12 +5902,12 @@ public final class BatchReport { *
*/ public com.google.protobuf.ByteString - getDescriptionBytes() { + getDescriptionBytes() { java.lang.Object ref = description_; 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); description_ = b; return b; } else { @@ -6658,14 +5917,12 @@ public final class BatchReport { public static final int RULE_KEY_FIELD_NUMBER = 10; private java.lang.Object ruleKey_; - /** * optional string rule_key = 10; */ public boolean hasRuleKey() { return ((bitField0_ & 0x00000100) == 0x00000100); } - /** * optional string rule_key = 10; */ @@ -6674,8 +5931,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; @@ -6683,17 +5940,16 @@ public final class BatchReport { return s; } } - /** * optional string rule_key = 10; */ 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 { @@ -6703,14 +5959,12 @@ public final class BatchReport { public static final int SEVERITY_FIELD_NUMBER = 11; private org.sonar.batch.protocol.Constants.Severity severity_; - /** * optional .Severity severity = 11; */ public boolean hasSeverity() { return ((bitField0_ & 0x00000200) == 0x00000200); } - /** * optional .Severity severity = 11; */ @@ -6720,14 +5974,12 @@ public final class BatchReport { public static final int ALERT_STATUS_FIELD_NUMBER = 12; private java.lang.Object alertStatus_; - /** * optional string alert_status = 12; */ public boolean hasAlertStatus() { return ((bitField0_ & 0x00000400) == 0x00000400); } - /** * optional string alert_status = 12; */ @@ -6736,8 +5988,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()) { alertStatus_ = s; @@ -6745,17 +5997,16 @@ public final class BatchReport { return s; } } - /** * optional string alert_status = 12; */ public com.google.protobuf.ByteString - getAlertStatusBytes() { + getAlertStatusBytes() { java.lang.Object ref = alertStatus_; 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); alertStatus_ = b; return b; } else { @@ -6765,14 +6016,12 @@ public final class BatchReport { public static final int ALERT_TEXT_FIELD_NUMBER = 13; private java.lang.Object alertText_; - /** * optional string alert_text = 13; */ public boolean hasAlertText() { return ((bitField0_ & 0x00000800) == 0x00000800); } - /** * optional string alert_text = 13; */ @@ -6781,8 +6030,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()) { alertText_ = s; @@ -6790,17 +6039,16 @@ public final class BatchReport { return s; } } - /** * optional string alert_text = 13; */ public com.google.protobuf.ByteString - getAlertTextBytes() { + getAlertTextBytes() { java.lang.Object ref = alertText_; 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); alertText_ = b; return b; } else { @@ -6810,14 +6058,12 @@ public final class BatchReport { public static final int VARIATION_VALUE_1_FIELD_NUMBER = 14; private double variationValue1_; - /** * optional double variation_value_1 = 14; */ public boolean hasVariationValue1() { return ((bitField0_ & 0x00001000) == 0x00001000); } - /** * optional double variation_value_1 = 14; */ @@ -6827,14 +6073,12 @@ public final class BatchReport { public static final int VARIATION_VALUE_2_FIELD_NUMBER = 15; private double variationValue2_; - /** * optional double variation_value_2 = 15; */ public boolean hasVariationValue2() { return ((bitField0_ & 0x00002000) == 0x00002000); } - /** * optional double variation_value_2 = 15; */ @@ -6844,14 +6088,12 @@ public final class BatchReport { public static final int VARIATION_VALUE_3_FIELD_NUMBER = 16; private double variationValue3_; - /** * optional double variation_value_3 = 16; */ public boolean hasVariationValue3() { return ((bitField0_ & 0x00004000) == 0x00004000); } - /** * optional double variation_value_3 = 16; */ @@ -6861,14 +6103,12 @@ public final class BatchReport { public static final int VARIATION_VALUE_4_FIELD_NUMBER = 17; private double variationValue4_; - /** * optional double variation_value_4 = 17; */ public boolean hasVariationValue4() { return ((bitField0_ & 0x00008000) == 0x00008000); } - /** * optional double variation_value_4 = 17; */ @@ -6878,14 +6118,12 @@ public final class BatchReport { public static final int VARIATION_VALUE_5_FIELD_NUMBER = 18; private double variationValue5_; - /** * optional double variation_value_5 = 18; */ public boolean hasVariationValue5() { return ((bitField0_ & 0x00010000) == 0x00010000); } - /** * optional double variation_value_5 = 18; */ @@ -6895,14 +6133,12 @@ public final class BatchReport { public static final int CHARACTERIC_ID_FIELD_NUMBER = 19; private int charactericId_; - /** * optional int32 characteric_id = 19; */ public boolean hasCharactericId() { return ((bitField0_ & 0x00020000) == 0x00020000); } - /** * optional int32 characteric_id = 19; */ @@ -6912,14 +6148,12 @@ public final class BatchReport { public static final int PERSON_ID_FIELD_NUMBER = 20; private int personId_; - /** * optional int32 person_id = 20; */ public boolean hasPersonId() { return ((bitField0_ & 0x00040000) == 0x00040000); } - /** * optional int32 person_id = 20; */ @@ -6948,22 +6182,18 @@ public final class BatchReport { charactericId_ = 0; personId_ = 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 true; + if (isInitialized == 0) return false; 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, valueType_.getNumber()); @@ -7026,11 +6256,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)) { @@ -7115,115 +6343,95 @@ 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.Measure 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.Measure 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.Measure 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.Measure 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.Measure 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.Measure 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.Measure 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.Measure 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.Measure 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.Measure 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.Measure 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 Measure} */ public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:Measure) - org.sonar.batch.protocol.output.BatchReport.MeasureOrBuilder { + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:Measure) + org.sonar.batch.protocol.output.BatchReport.MeasureOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + getDescriptor() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Measure_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { + internalGetFieldAccessorTable() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Measure_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.batch.protocol.output.BatchReport.Measure.class, org.sonar.batch.protocol.output.BatchReport.Measure.Builder.class); + .ensureFieldAccessorsInitialized( + org.sonar.batch.protocol.output.BatchReport.Measure.class, org.sonar.batch.protocol.output.BatchReport.Measure.Builder.class); } // Construct using org.sonar.batch.protocol.output.BatchReport.Measure.newBuilder() @@ -7232,16 +6440,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(); } @@ -7294,7 +6500,7 @@ public final class BatchReport { } public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { + getDescriptorForType() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Measure_descriptor; } @@ -7397,7 +6603,7 @@ public final class BatchReport { public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.sonar.batch.protocol.output.BatchReport.Measure) { - return mergeFrom((org.sonar.batch.protocol.output.BatchReport.Measure) other); + return mergeFrom((org.sonar.batch.protocol.output.BatchReport.Measure)other); } else { super.mergeFrom(other); return this; @@ -7405,8 +6611,7 @@ public final class BatchReport { } public Builder mergeFrom(org.sonar.batch.protocol.output.BatchReport.Measure other) { - if (other == org.sonar.batch.protocol.output.BatchReport.Measure.getDefaultInstance()) - return this; + if (other == org.sonar.batch.protocol.output.BatchReport.Measure.getDefaultInstance()) return this; if (other.hasValueType()) { setValueType(other.getValueType()); } @@ -7485,9 +6690,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.Measure parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); @@ -7501,25 +6706,21 @@ public final class BatchReport { } return this; } - private int bitField0_; private org.sonar.batch.protocol.Constants.MeasureValueType valueType_ = org.sonar.batch.protocol.Constants.MeasureValueType.INT; - /** * optional .MeasureValueType value_type = 1; */ public boolean hasValueType() { return ((bitField0_ & 0x00000001) == 0x00000001); } - /** * optional .MeasureValueType value_type = 1; */ public org.sonar.batch.protocol.Constants.MeasureValueType getValueType() { return valueType_; } - /** * optional .MeasureValueType value_type = 1; */ @@ -7532,7 +6733,6 @@ public final class BatchReport { onChanged(); return this; } - /** * optional .MeasureValueType value_type = 1; */ @@ -7543,8 +6743,7 @@ public final class BatchReport { return this; } - private boolean booleanValue_; - + private boolean booleanValue_ ; /** * optional bool boolean_value = 2; * @@ -7555,7 +6754,6 @@ public final class BatchReport { public boolean hasBooleanValue() { return ((bitField0_ & 0x00000002) == 0x00000002); } - /** * optional bool boolean_value = 2; * @@ -7566,7 +6764,6 @@ public final class BatchReport { public boolean getBooleanValue() { return booleanValue_; } - /** * optional bool boolean_value = 2; * @@ -7580,7 +6777,6 @@ public final class BatchReport { onChanged(); return this; } - /** * optional bool boolean_value = 2; * @@ -7595,22 +6791,19 @@ public final class BatchReport { return this; } - private int intValue_; - + private int intValue_ ; /** * optional int32 int_value = 3; */ public boolean hasIntValue() { return ((bitField0_ & 0x00000004) == 0x00000004); } - /** * optional int32 int_value = 3; */ public int getIntValue() { return intValue_; } - /** * optional int32 int_value = 3; */ @@ -7620,7 +6813,6 @@ public final class BatchReport { onChanged(); return this; } - /** * optional int32 int_value = 3; */ @@ -7631,22 +6823,19 @@ public final class BatchReport { return this; } - private long longValue_; - + private long longValue_ ; /** * optional int64 long_value = 4; */ public boolean hasLongValue() { return ((bitField0_ & 0x00000008) == 0x00000008); } - /** * optional int64 long_value = 4; */ public long getLongValue() { return longValue_; } - /** * optional int64 long_value = 4; */ @@ -7656,7 +6845,6 @@ public final class BatchReport { onChanged(); return this; } - /** * optional int64 long_value = 4; */ @@ -7667,22 +6855,19 @@ public final class BatchReport { return this; } - private double doubleValue_; - + private double doubleValue_ ; /** * optional double double_value = 5; */ public boolean hasDoubleValue() { return ((bitField0_ & 0x00000010) == 0x00000010); } - /** * optional double double_value = 5; */ public double getDoubleValue() { return doubleValue_; } - /** * optional double double_value = 5; */ @@ -7692,7 +6877,6 @@ public final class BatchReport { onChanged(); return this; } - /** * optional double double_value = 5; */ @@ -7704,14 +6888,12 @@ public final class BatchReport { } private java.lang.Object stringValue_ = ""; - /** * optional string string_value = 6; */ public boolean hasStringValue() { return ((bitField0_ & 0x00000020) == 0x00000020); } - /** * optional string string_value = 6; */ @@ -7719,7 +6901,7 @@ public final class BatchReport { java.lang.Object ref = stringValue_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { stringValue_ = s; @@ -7729,38 +6911,35 @@ public final class BatchReport { return (java.lang.String) ref; } } - /** * optional string string_value = 6; */ public com.google.protobuf.ByteString - getStringValueBytes() { + getStringValueBytes() { java.lang.Object ref = stringValue_; 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); stringValue_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - /** * optional string string_value = 6; */ public Builder setStringValue( - java.lang.String value) { + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; stringValue_ = value; onChanged(); return this; } - /** * optional string string_value = 6; */ @@ -7770,30 +6949,27 @@ public final class BatchReport { onChanged(); return this; } - /** * optional string string_value = 6; */ public Builder setStringValueBytes( - com.google.protobuf.ByteString value) { + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; stringValue_ = value; onChanged(); return this; } private java.lang.Object metricKey_ = ""; - /** * optional string metric_key = 7; */ public boolean hasMetricKey() { return ((bitField0_ & 0x00000040) == 0x00000040); } - /** * optional string metric_key = 7; */ @@ -7801,7 +6977,7 @@ public final class BatchReport { java.lang.Object ref = metricKey_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { metricKey_ = s; @@ -7811,38 +6987,35 @@ public final class BatchReport { return (java.lang.String) ref; } } - /** * optional string metric_key = 7; */ public com.google.protobuf.ByteString - getMetricKeyBytes() { + getMetricKeyBytes() { java.lang.Object ref = metricKey_; 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); metricKey_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - /** * optional string metric_key = 7; */ public Builder setMetricKey( - java.lang.String value) { + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000040; + throw new NullPointerException(); + } + bitField0_ |= 0x00000040; metricKey_ = value; onChanged(); return this; } - /** * optional string metric_key = 7; */ @@ -7852,23 +7025,21 @@ public final class BatchReport { onChanged(); return this; } - /** * optional string metric_key = 7; */ public Builder setMetricKeyBytes( - com.google.protobuf.ByteString value) { + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000040; + throw new NullPointerException(); + } + bitField0_ |= 0x00000040; metricKey_ = value; onChanged(); return this; } private java.lang.Object description_ = ""; - /** * optional string description = 9; * @@ -7879,7 +7050,6 @@ public final class BatchReport { public boolean hasDescription() { return ((bitField0_ & 0x00000080) == 0x00000080); } - /** * optional string description = 9; * @@ -7891,7 +7061,7 @@ public final class BatchReport { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { description_ = s; @@ -7901,7 +7071,6 @@ public final class BatchReport { return (java.lang.String) ref; } } - /** * optional string description = 9; * @@ -7910,19 +7079,18 @@ public final class BatchReport { *
*/ public com.google.protobuf.ByteString - getDescriptionBytes() { + getDescriptionBytes() { java.lang.Object ref = description_; 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); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - /** * optional string description = 9; * @@ -7931,16 +7099,15 @@ public final class BatchReport { *
*/ public Builder setDescription( - java.lang.String value) { + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000080; + throw new NullPointerException(); + } + bitField0_ |= 0x00000080; description_ = value; onChanged(); return this; } - /** * optional string description = 9; * @@ -7954,7 +7121,6 @@ public final class BatchReport { onChanged(); return this; } - /** * optional string description = 9; * @@ -7963,25 +7129,23 @@ public final class BatchReport { *
*/ public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000080; + throw new NullPointerException(); + } + bitField0_ |= 0x00000080; description_ = value; onChanged(); return this; } private java.lang.Object ruleKey_ = ""; - /** * optional string rule_key = 10; */ public boolean hasRuleKey() { return ((bitField0_ & 0x00000100) == 0x00000100); } - /** * optional string rule_key = 10; */ @@ -7989,7 +7153,7 @@ public final class BatchReport { java.lang.Object ref = ruleKey_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { ruleKey_ = s; @@ -7999,38 +7163,35 @@ public final class BatchReport { return (java.lang.String) ref; } } - /** * optional string rule_key = 10; */ 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 = 10; */ public Builder setRuleKey( - java.lang.String value) { + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000100; + throw new NullPointerException(); + } + bitField0_ |= 0x00000100; ruleKey_ = value; onChanged(); return this; } - /** * optional string rule_key = 10; */ @@ -8040,37 +7201,33 @@ public final class BatchReport { onChanged(); return this; } - /** * optional string rule_key = 10; */ public Builder setRuleKeyBytes( - com.google.protobuf.ByteString value) { + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000100; + throw new NullPointerException(); + } + bitField0_ |= 0x00000100; ruleKey_ = value; onChanged(); return this; } private org.sonar.batch.protocol.Constants.Severity severity_ = org.sonar.batch.protocol.Constants.Severity.INFO; - /** * optional .Severity severity = 11; */ public boolean hasSeverity() { return ((bitField0_ & 0x00000200) == 0x00000200); } - /** * optional .Severity severity = 11; */ public org.sonar.batch.protocol.Constants.Severity getSeverity() { return severity_; } - /** * optional .Severity severity = 11; */ @@ -8083,7 +7240,6 @@ public final class BatchReport { onChanged(); return this; } - /** * optional .Severity severity = 11; */ @@ -8095,14 +7251,12 @@ public final class BatchReport { } private java.lang.Object alertStatus_ = ""; - /** * optional string alert_status = 12; */ public boolean hasAlertStatus() { return ((bitField0_ & 0x00000400) == 0x00000400); } - /** * optional string alert_status = 12; */ @@ -8110,7 +7264,7 @@ public final class BatchReport { java.lang.Object ref = alertStatus_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { alertStatus_ = s; @@ -8120,38 +7274,35 @@ public final class BatchReport { return (java.lang.String) ref; } } - /** * optional string alert_status = 12; */ public com.google.protobuf.ByteString - getAlertStatusBytes() { + getAlertStatusBytes() { java.lang.Object ref = alertStatus_; 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); alertStatus_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - /** * optional string alert_status = 12; */ public Builder setAlertStatus( - java.lang.String value) { + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000400; + throw new NullPointerException(); + } + bitField0_ |= 0x00000400; alertStatus_ = value; onChanged(); return this; } - /** * optional string alert_status = 12; */ @@ -8161,30 +7312,27 @@ public final class BatchReport { onChanged(); return this; } - /** * optional string alert_status = 12; */ public Builder setAlertStatusBytes( - com.google.protobuf.ByteString value) { + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000400; + throw new NullPointerException(); + } + bitField0_ |= 0x00000400; alertStatus_ = value; onChanged(); return this; } private java.lang.Object alertText_ = ""; - /** * optional string alert_text = 13; */ public boolean hasAlertText() { return ((bitField0_ & 0x00000800) == 0x00000800); } - /** * optional string alert_text = 13; */ @@ -8192,7 +7340,7 @@ public final class BatchReport { java.lang.Object ref = alertText_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { alertText_ = s; @@ -8202,38 +7350,35 @@ public final class BatchReport { return (java.lang.String) ref; } } - /** * optional string alert_text = 13; */ public com.google.protobuf.ByteString - getAlertTextBytes() { + getAlertTextBytes() { java.lang.Object ref = alertText_; 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); alertText_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - /** * optional string alert_text = 13; */ public Builder setAlertText( - java.lang.String value) { + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000800; + throw new NullPointerException(); + } + bitField0_ |= 0x00000800; alertText_ = value; onChanged(); return this; } - /** * optional string alert_text = 13; */ @@ -8243,37 +7388,33 @@ public final class BatchReport { onChanged(); return this; } - /** * optional string alert_text = 13; */ public Builder setAlertTextBytes( - com.google.protobuf.ByteString value) { + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000800; + throw new NullPointerException(); + } + bitField0_ |= 0x00000800; alertText_ = value; onChanged(); return this; } - private double variationValue1_; - + private double variationValue1_ ; /** * optional double variation_value_1 = 14; */ public boolean hasVariationValue1() { return ((bitField0_ & 0x00001000) == 0x00001000); } - /** * optional double variation_value_1 = 14; */ public double getVariationValue1() { return variationValue1_; } - /** * optional double variation_value_1 = 14; */ @@ -8283,7 +7424,6 @@ public final class BatchReport { onChanged(); return this; } - /** * optional double variation_value_1 = 14; */ @@ -8294,22 +7434,19 @@ public final class BatchReport { return this; } - private double variationValue2_; - + private double variationValue2_ ; /** * optional double variation_value_2 = 15; */ public boolean hasVariationValue2() { return ((bitField0_ & 0x00002000) == 0x00002000); } - /** * optional double variation_value_2 = 15; */ public double getVariationValue2() { return variationValue2_; } - /** * optional double variation_value_2 = 15; */ @@ -8319,7 +7456,6 @@ public final class BatchReport { onChanged(); return this; } - /** * optional double variation_value_2 = 15; */ @@ -8330,22 +7466,19 @@ public final class BatchReport { return this; } - private double variationValue3_; - + private double variationValue3_ ; /** * optional double variation_value_3 = 16; */ public boolean hasVariationValue3() { return ((bitField0_ & 0x00004000) == 0x00004000); } - /** * optional double variation_value_3 = 16; */ public double getVariationValue3() { return variationValue3_; } - /** * optional double variation_value_3 = 16; */ @@ -8355,7 +7488,6 @@ public final class BatchReport { onChanged(); return this; } - /** * optional double variation_value_3 = 16; */ @@ -8366,22 +7498,19 @@ public final class BatchReport { return this; } - private double variationValue4_; - + private double variationValue4_ ; /** * optional double variation_value_4 = 17; */ public boolean hasVariationValue4() { return ((bitField0_ & 0x00008000) == 0x00008000); } - /** * optional double variation_value_4 = 17; */ public double getVariationValue4() { return variationValue4_; } - /** * optional double variation_value_4 = 17; */ @@ -8391,7 +7520,6 @@ public final class BatchReport { onChanged(); return this; } - /** * optional double variation_value_4 = 17; */ @@ -8402,22 +7530,19 @@ public final class BatchReport { return this; } - private double variationValue5_; - + private double variationValue5_ ; /** * optional double variation_value_5 = 18; */ public boolean hasVariationValue5() { return ((bitField0_ & 0x00010000) == 0x00010000); } - /** * optional double variation_value_5 = 18; */ public double getVariationValue5() { return variationValue5_; } - /** * optional double variation_value_5 = 18; */ @@ -8427,7 +7552,6 @@ public final class BatchReport { onChanged(); return this; } - /** * optional double variation_value_5 = 18; */ @@ -8438,22 +7562,19 @@ public final class BatchReport { return this; } - private int charactericId_; - + private int charactericId_ ; /** * optional int32 characteric_id = 19; */ public boolean hasCharactericId() { return ((bitField0_ & 0x00020000) == 0x00020000); } - /** * optional int32 characteric_id = 19; */ public int getCharactericId() { return charactericId_; } - /** * optional int32 characteric_id = 19; */ @@ -8463,7 +7584,6 @@ public final class BatchReport { onChanged(); return this; } - /** * optional int32 characteric_id = 19; */ @@ -8474,22 +7594,19 @@ public final class BatchReport { return this; } - private int personId_; - + private int personId_ ; /** * optional int32 person_id = 20; */ public boolean hasPersonId() { return ((bitField0_ & 0x00040000) == 0x00040000); } - /** * optional int32 person_id = 20; */ public int getPersonId() { return personId_; } - /** * optional int32 person_id = 20; */ @@ -8499,7 +7616,6 @@ public final class BatchReport { onChanged(); return this; } - /** * optional int32 person_id = 20; */ @@ -8522,14 +7638,13 @@ public final class BatchReport { } public interface MeasuresOrBuilder extends - // @@protoc_insertion_point(interface_extends:Measures) - com.google.protobuf.MessageOrBuilder { + // @@protoc_insertion_point(interface_extends:Measures) + com.google.protobuf.MessageOrBuilder { /** * optional int32 component_ref = 1; */ boolean hasComponentRef(); - /** * optional int32 component_ref = 1; */ @@ -8538,50 +7653,42 @@ public final class BatchReport { /** * repeated .Measure measure = 2; */ - java.util.List - getMeasureList(); - + java.util.List + getMeasureList(); /** * repeated .Measure measure = 2; */ org.sonar.batch.protocol.output.BatchReport.Measure getMeasure(int index); - /** * repeated .Measure measure = 2; */ int getMeasureCount(); - /** * repeated .Measure measure = 2; */ - java.util.List - getMeasureOrBuilderList(); - + java.util.List + getMeasureOrBuilderList(); /** * repeated .Measure measure = 2; */ org.sonar.batch.protocol.output.BatchReport.MeasureOrBuilder getMeasureOrBuilder( - int index); + int index); } /** * Protobuf type {@code Measures} */ public static final class Measures extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:Measures) - MeasuresOrBuilder { + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:Measures) + MeasuresOrBuilder { // Use Measures.newBuilder() to construct. private Measures(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } - - private Measures(boolean noInit) { - this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } + private Measures(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final Measures defaultInstance; - public static Measures getDefaultInstance() { return defaultInstance; } @@ -8591,21 +7698,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 Measures( - 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) { @@ -8616,7 +7721,7 @@ public final class BatchReport { break; default: { if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { + extensionRegistry, tag)) { done = true; } break; @@ -8640,7 +7745,7 @@ 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)) { measure_ = java.util.Collections.unmodifiableList(measure_); @@ -8649,28 +7754,27 @@ public final class BatchReport { makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + getDescriptor() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Measures_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { + internalGetFieldAccessorTable() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Measures_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.batch.protocol.output.BatchReport.Measures.class, org.sonar.batch.protocol.output.BatchReport.Measures.Builder.class); + .ensureFieldAccessorsInitialized( + org.sonar.batch.protocol.output.BatchReport.Measures.class, org.sonar.batch.protocol.output.BatchReport.Measures.Builder.class); } public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Measures parsePartialFrom( + new com.google.protobuf.AbstractParser() { + public Measures parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Measures(input, extensionRegistry); - } - }; + return new Measures(input, extensionRegistry); + } + }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { @@ -8680,14 +7784,12 @@ public final class BatchReport { private int bitField0_; 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; */ @@ -8697,41 +7799,36 @@ public final class BatchReport { public static final int MEASURE_FIELD_NUMBER = 2; private java.util.List measure_; - /** * repeated .Measure measure = 2; */ public java.util.List getMeasureList() { return measure_; } - /** * repeated .Measure measure = 2; */ - public java.util.List - getMeasureOrBuilderList() { + public java.util.List + getMeasureOrBuilderList() { return measure_; } - /** * repeated .Measure measure = 2; */ public int getMeasureCount() { return measure_.size(); } - /** * repeated .Measure measure = 2; */ public org.sonar.batch.protocol.output.BatchReport.Measure getMeasure(int index) { return measure_.get(index); } - /** * repeated .Measure measure = 2; */ public org.sonar.batch.protocol.output.BatchReport.MeasureOrBuilder getMeasureOrBuilder( - int index) { + int index) { return measure_.get(index); } @@ -8739,22 +7836,18 @@ public final class BatchReport { componentRef_ = 0; measure_ = 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 true; + if (isInitialized == 0) return false; 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_); @@ -8766,11 +7859,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)) { @@ -8787,115 +7878,95 @@ 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.Measures 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.Measures 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.Measures 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.Measures 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.Measures 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.Measures 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.Measures 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.Measures 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.Measures 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.Measures 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.Measures 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 Measures} */ public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:Measures) - org.sonar.batch.protocol.output.BatchReport.MeasuresOrBuilder { + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:Measures) + org.sonar.batch.protocol.output.BatchReport.MeasuresOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + getDescriptor() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Measures_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { + internalGetFieldAccessorTable() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Measures_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.batch.protocol.output.BatchReport.Measures.class, org.sonar.batch.protocol.output.BatchReport.Measures.Builder.class); + .ensureFieldAccessorsInitialized( + org.sonar.batch.protocol.output.BatchReport.Measures.class, org.sonar.batch.protocol.output.BatchReport.Measures.Builder.class); } // Construct using org.sonar.batch.protocol.output.BatchReport.Measures.newBuilder() @@ -8904,17 +7975,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) { getMeasureFieldBuilder(); } } - private static Builder create() { return new Builder(); } @@ -8937,7 +8006,7 @@ public final class BatchReport { } public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { + getDescriptorForType() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Measures_descriptor; } @@ -8977,7 +8046,7 @@ public final class BatchReport { public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.sonar.batch.protocol.output.BatchReport.Measures) { - return mergeFrom((org.sonar.batch.protocol.output.BatchReport.Measures) other); + return mergeFrom((org.sonar.batch.protocol.output.BatchReport.Measures)other); } else { super.mergeFrom(other); return this; @@ -8985,8 +8054,7 @@ public final class BatchReport { } public Builder mergeFrom(org.sonar.batch.protocol.output.BatchReport.Measures other) { - if (other == org.sonar.batch.protocol.output.BatchReport.Measures.getDefaultInstance()) - return this; + if (other == org.sonar.batch.protocol.output.BatchReport.Measures.getDefaultInstance()) return this; if (other.hasComponentRef()) { setComponentRef(other.getComponentRef()); } @@ -9008,9 +8076,9 @@ public final class BatchReport { measureBuilder_ = null; measure_ = other.measure_; bitField0_ = (bitField0_ & ~0x00000002); - measureBuilder_ = + measureBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getMeasureFieldBuilder() : null; + getMeasureFieldBuilder() : null; } else { measureBuilder_.addAllMessages(other.measure_); } @@ -9025,9 +8093,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.Measures parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); @@ -9041,25 +8109,21 @@ public final class BatchReport { } return this; } - private int bitField0_; - private int componentRef_; - + 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; */ @@ -9069,7 +8133,6 @@ public final class BatchReport { onChanged(); return this; } - /** * optional int32 component_ref = 1; */ @@ -9082,15 +8145,15 @@ public final class BatchReport { private java.util.List measure_ = java.util.Collections.emptyList(); - private void ensureMeasureIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { measure_ = new java.util.ArrayList(measure_); bitField0_ |= 0x00000002; - } + } } - private com.google.protobuf.RepeatedFieldBuilder measureBuilder_; + private com.google.protobuf.RepeatedFieldBuilder< + org.sonar.batch.protocol.output.BatchReport.Measure, org.sonar.batch.protocol.output.BatchReport.Measure.Builder, org.sonar.batch.protocol.output.BatchReport.MeasureOrBuilder> measureBuilder_; /** * repeated .Measure measure = 2; @@ -9102,7 +8165,6 @@ public final class BatchReport { return measureBuilder_.getMessageList(); } } - /** * repeated .Measure measure = 2; */ @@ -9113,7 +8175,6 @@ public final class BatchReport { return measureBuilder_.getCount(); } } - /** * repeated .Measure measure = 2; */ @@ -9124,12 +8185,11 @@ public final class BatchReport { return measureBuilder_.getMessage(index); } } - /** * repeated .Measure measure = 2; */ public Builder setMeasure( - int index, org.sonar.batch.protocol.output.BatchReport.Measure value) { + int index, org.sonar.batch.protocol.output.BatchReport.Measure value) { if (measureBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -9142,12 +8202,11 @@ public final class BatchReport { } return this; } - /** * repeated .Measure measure = 2; */ public Builder setMeasure( - int index, org.sonar.batch.protocol.output.BatchReport.Measure.Builder builderForValue) { + int index, org.sonar.batch.protocol.output.BatchReport.Measure.Builder builderForValue) { if (measureBuilder_ == null) { ensureMeasureIsMutable(); measure_.set(index, builderForValue.build()); @@ -9157,7 +8216,6 @@ public final class BatchReport { } return this; } - /** * repeated .Measure measure = 2; */ @@ -9174,12 +8232,11 @@ public final class BatchReport { } return this; } - /** * repeated .Measure measure = 2; */ public Builder addMeasure( - int index, org.sonar.batch.protocol.output.BatchReport.Measure value) { + int index, org.sonar.batch.protocol.output.BatchReport.Measure value) { if (measureBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -9192,12 +8249,11 @@ public final class BatchReport { } return this; } - /** * repeated .Measure measure = 2; */ public Builder addMeasure( - org.sonar.batch.protocol.output.BatchReport.Measure.Builder builderForValue) { + org.sonar.batch.protocol.output.BatchReport.Measure.Builder builderForValue) { if (measureBuilder_ == null) { ensureMeasureIsMutable(); measure_.add(builderForValue.build()); @@ -9207,12 +8263,11 @@ public final class BatchReport { } return this; } - /** * repeated .Measure measure = 2; */ public Builder addMeasure( - int index, org.sonar.batch.protocol.output.BatchReport.Measure.Builder builderForValue) { + int index, org.sonar.batch.protocol.output.BatchReport.Measure.Builder builderForValue) { if (measureBuilder_ == null) { ensureMeasureIsMutable(); measure_.add(index, builderForValue.build()); @@ -9222,23 +8277,21 @@ public final class BatchReport { } return this; } - /** * repeated .Measure measure = 2; */ public Builder addAllMeasure( - java.lang.Iterable values) { + java.lang.Iterable values) { if (measureBuilder_ == null) { ensureMeasureIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, measure_); + values, measure_); onChanged(); } else { measureBuilder_.addAllMessages(values); } return this; } - /** * repeated .Measure measure = 2; */ @@ -9252,7 +8305,6 @@ public final class BatchReport { } return this; } - /** * repeated .Measure measure = 2; */ @@ -9266,74 +8318,66 @@ public final class BatchReport { } return this; } - /** * repeated .Measure measure = 2; */ public org.sonar.batch.protocol.output.BatchReport.Measure.Builder getMeasureBuilder( - int index) { + int index) { return getMeasureFieldBuilder().getBuilder(index); } - /** * repeated .Measure measure = 2; */ public org.sonar.batch.protocol.output.BatchReport.MeasureOrBuilder getMeasureOrBuilder( - int index) { + int index) { if (measureBuilder_ == null) { - return measure_.get(index); - } else { + return measure_.get(index); } else { return measureBuilder_.getMessageOrBuilder(index); } } - /** * repeated .Measure measure = 2; */ - public java.util.List - getMeasureOrBuilderList() { + public java.util.List + getMeasureOrBuilderList() { if (measureBuilder_ != null) { return measureBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(measure_); } } - /** * repeated .Measure measure = 2; */ public org.sonar.batch.protocol.output.BatchReport.Measure.Builder addMeasureBuilder() { return getMeasureFieldBuilder().addBuilder( - org.sonar.batch.protocol.output.BatchReport.Measure.getDefaultInstance()); + org.sonar.batch.protocol.output.BatchReport.Measure.getDefaultInstance()); } - /** * repeated .Measure measure = 2; */ public org.sonar.batch.protocol.output.BatchReport.Measure.Builder addMeasureBuilder( - int index) { + int index) { return getMeasureFieldBuilder().addBuilder( - index, org.sonar.batch.protocol.output.BatchReport.Measure.getDefaultInstance()); + index, org.sonar.batch.protocol.output.BatchReport.Measure.getDefaultInstance()); } - /** * repeated .Measure measure = 2; */ - public java.util.List - getMeasureBuilderList() { + public java.util.List + getMeasureBuilderList() { return getMeasureFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilder< - org.sonar.batch.protocol.output.BatchReport.Measure, org.sonar.batch.protocol.output.BatchReport.Measure.Builder, org.sonar.batch.protocol.output.BatchReport.MeasureOrBuilder> - getMeasureFieldBuilder() { + org.sonar.batch.protocol.output.BatchReport.Measure, org.sonar.batch.protocol.output.BatchReport.Measure.Builder, org.sonar.batch.protocol.output.BatchReport.MeasureOrBuilder> + getMeasureFieldBuilder() { if (measureBuilder_ == null) { measureBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - org.sonar.batch.protocol.output.BatchReport.Measure, org.sonar.batch.protocol.output.BatchReport.Measure.Builder, org.sonar.batch.protocol.output.BatchReport.MeasureOrBuilder>( - measure_, - ((bitField0_ & 0x00000002) == 0x00000002), - getParentForChildren(), - isClean()); + org.sonar.batch.protocol.output.BatchReport.Measure, org.sonar.batch.protocol.output.BatchReport.Measure.Builder, org.sonar.batch.protocol.output.BatchReport.MeasureOrBuilder>( + measure_, + ((bitField0_ & 0x00000002) == 0x00000002), + getParentForChildren(), + isClean()); measure_ = null; } return measureBuilder_; @@ -9351,46 +8395,41 @@ public final class BatchReport { } public interface IssueOrBuilder extends - // @@protoc_insertion_point(interface_extends:Issue) - com.google.protobuf.MessageOrBuilder { + // @@protoc_insertion_point(interface_extends:Issue) + com.google.protobuf.MessageOrBuilder { /** * 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; */ 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; */ boolean hasLine(); - /** * optional int32 line = 3; */ @@ -9400,23 +8439,20 @@ public final class BatchReport { * 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; */ boolean hasSeverity(); - /** * optional .Severity severity = 5; */ @@ -9426,23 +8462,20 @@ public final class BatchReport { * repeated string tag = 6; */ com.google.protobuf.ProtocolStringList - getTagList(); - + getTagList(); /** * repeated string tag = 6; */ int getTagCount(); - /** * repeated string tag = 6; */ java.lang.String getTag(int index); - /** * repeated string tag = 6; */ com.google.protobuf.ByteString - getTagBytes(int index); + getTagBytes(int index); /** * optional double effort_to_fix = 7; @@ -9452,7 +8485,6 @@ public final class BatchReport { *
*/ boolean hasEffortToFix(); - /** * optional double effort_to_fix = 7; * @@ -9466,7 +8498,6 @@ public final class BatchReport { * optional bool is_new = 8; */ boolean hasIsNew(); - /** * optional bool is_new = 8; */ @@ -9476,23 +8507,20 @@ public final class BatchReport { * 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; */ boolean hasDebtInMinutes(); - /** * optional int64 debt_in_minutes = 10; */ @@ -9502,55 +8530,48 @@ public final class BatchReport { * 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; */ boolean hasStatus(); - /** * optional string status = 12; */ java.lang.String getStatus(); - /** * optional string status = 12; */ com.google.protobuf.ByteString - getStatusBytes(); + getStatusBytes(); /** * 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; */ boolean hasManualSeverity(); - /** * optional bool manual_severity = 14; */ @@ -9560,87 +8581,76 @@ public final class BatchReport { * 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; */ 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; */ 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; */ 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; */ 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; */ boolean hasCreationDate(); - /** * optional int64 creation_date = 20; */ @@ -9650,7 +8660,6 @@ public final class BatchReport { * optional int64 close_date = 21; */ boolean hasCloseDate(); - /** * optional int64 close_date = 21; */ @@ -9660,7 +8669,6 @@ public final class BatchReport { * optional int64 update_date = 22; */ boolean hasUpdateDate(); - /** * optional int64 update_date = 22; */ @@ -9670,7 +8678,6 @@ public final class BatchReport { * optional int64 selected_at = 23; */ boolean hasSelectedAt(); - /** * optional int64 selected_at = 23; */ @@ -9680,23 +8687,20 @@ public final class BatchReport { * 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; */ boolean hasIsChanged(); - /** * optional bool is_changed = 25; */ @@ -9706,7 +8710,6 @@ public final class BatchReport { * optional bool must_send_notification = 26; */ boolean hasMustSendNotification(); - /** * optional bool must_send_notification = 26; */ @@ -9716,21 +8719,17 @@ 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 + // @@protoc_insertion_point(message_implements:Issue) + 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; } @@ -9740,21 +8739,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) { @@ -9765,7 +8762,7 @@ public final class BatchReport { break; default: { if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { + extensionRegistry, tag)) { done = true; } break; @@ -9929,7 +8926,7 @@ 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)) { tag_ = tag_.getUnmodifiableView(); @@ -9938,28 +8935,27 @@ public final class BatchReport { 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() { @@ -9969,14 +8965,12 @@ public final class BatchReport { private int bitField0_; 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; */ @@ -9985,8 +8979,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; @@ -9994,17 +8988,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 { @@ -10014,14 +9007,12 @@ public final class BatchReport { 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; */ @@ -10030,8 +9021,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; @@ -10039,17 +9030,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 { @@ -10059,14 +9049,12 @@ public final class BatchReport { 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; */ @@ -10076,14 +9064,12 @@ public final class BatchReport { 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; */ @@ -10092,8 +9078,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; @@ -10101,17 +9087,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 { @@ -10121,14 +9106,12 @@ public final class BatchReport { 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; */ @@ -10138,40 +9121,35 @@ public final class BatchReport { public static final int TAG_FIELD_NUMBER = 6; private com.google.protobuf.LazyStringList tag_; - /** * repeated string tag = 6; */ public com.google.protobuf.ProtocolStringList - getTagList() { + getTagList() { return tag_; } - /** * repeated string tag = 6; */ public int getTagCount() { return tag_.size(); } - /** * repeated string tag = 6; */ public java.lang.String getTag(int index) { return tag_.get(index); } - /** * repeated string tag = 6; */ public com.google.protobuf.ByteString - getTagBytes(int index) { + getTagBytes(int index) { return tag_.getByteString(index); } public static final int EFFORT_TO_FIX_FIELD_NUMBER = 7; private double effortToFix_; - /** * optional double effort_to_fix = 7; * @@ -10182,7 +9160,6 @@ public final class BatchReport { public boolean hasEffortToFix() { return ((bitField0_ & 0x00000020) == 0x00000020); } - /** * optional double effort_to_fix = 7; * @@ -10196,14 +9173,12 @@ public final class BatchReport { 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; */ @@ -10213,14 +9188,12 @@ public final class BatchReport { 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; */ @@ -10229,8 +9202,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; @@ -10238,17 +9211,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 { @@ -10258,14 +9230,12 @@ public final class BatchReport { 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; */ @@ -10275,14 +9245,12 @@ public final class BatchReport { 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; */ @@ -10291,8 +9259,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; @@ -10300,17 +9268,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 { @@ -10320,14 +9287,12 @@ public final class BatchReport { 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; */ @@ -10336,8 +9301,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; @@ -10345,17 +9310,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 { @@ -10365,14 +9329,12 @@ public final class BatchReport { 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; */ @@ -10381,8 +9343,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; @@ -10390,17 +9352,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 { @@ -10410,14 +9371,12 @@ public final class BatchReport { 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; */ @@ -10427,14 +9386,12 @@ public final class BatchReport { 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; */ @@ -10443,8 +9400,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; @@ -10452,17 +9409,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 { @@ -10472,14 +9428,12 @@ public final class BatchReport { 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; */ @@ -10488,8 +9442,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; @@ -10497,17 +9451,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 { @@ -10517,14 +9470,12 @@ public final class BatchReport { 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; */ @@ -10533,8 +9484,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; @@ -10542,17 +9493,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 { @@ -10562,14 +9512,12 @@ public final class BatchReport { 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; */ @@ -10578,8 +9526,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; @@ -10587,17 +9535,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 { @@ -10607,14 +9554,12 @@ public final class BatchReport { 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; */ @@ -10623,8 +9568,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; @@ -10632,17 +9577,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 { @@ -10652,14 +9596,12 @@ public final class BatchReport { 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; */ @@ -10669,14 +9611,12 @@ public final class BatchReport { 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; */ @@ -10686,14 +9626,12 @@ public final class BatchReport { 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; */ @@ -10703,14 +9641,12 @@ public final class BatchReport { 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; */ @@ -10720,14 +9656,12 @@ public final class BatchReport { 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; */ @@ -10736,8 +9670,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; @@ -10745,17 +9679,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 { @@ -10765,14 +9698,12 @@ public final class BatchReport { 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; */ @@ -10782,14 +9713,12 @@ public final class BatchReport { 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; */ @@ -10825,22 +9754,18 @@ 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 true; + if (isInitialized == 0) return false; 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()); @@ -10924,11 +9849,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)) { @@ -11046,115 +9969,95 @@ 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 + // @@protoc_insertion_point(builder_implements:Issue) + 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() @@ -11163,16 +10066,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(); } @@ -11239,7 +10140,7 @@ public final class BatchReport { } public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { + getDescriptorForType() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Issue_descriptor; } @@ -11371,7 +10272,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; @@ -11379,8 +10280,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_; @@ -11501,9 +10401,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); @@ -11517,18 +10417,15 @@ public final class BatchReport { } return this; } - private int bitField0_; private java.lang.Object ruleRepository_ = ""; - /** * optional string rule_repository = 1; */ public boolean hasRuleRepository() { return ((bitField0_ & 0x00000001) == 0x00000001); } - /** * optional string rule_repository = 1; */ @@ -11536,7 +10433,7 @@ public final class BatchReport { java.lang.Object ref = ruleRepository_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { ruleRepository_ = s; @@ -11546,38 +10443,35 @@ public final class BatchReport { 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; */ @@ -11587,30 +10481,27 @@ 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; } private java.lang.Object ruleKey_ = ""; - /** * optional string rule_key = 2; */ public boolean hasRuleKey() { return ((bitField0_ & 0x00000002) == 0x00000002); } - /** * optional string rule_key = 2; */ @@ -11618,7 +10509,7 @@ public final class BatchReport { java.lang.Object ref = ruleKey_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { ruleKey_ = s; @@ -11628,38 +10519,35 @@ public final class BatchReport { 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; */ @@ -11669,37 +10557,33 @@ 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_; - + 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; */ @@ -11709,7 +10593,6 @@ public final class BatchReport { onChanged(); return this; } - /** * optional int32 line = 3; */ @@ -11721,14 +10604,12 @@ public final class BatchReport { } private java.lang.Object msg_ = ""; - /** * optional string msg = 4; */ public boolean hasMsg() { return ((bitField0_ & 0x00000008) == 0x00000008); } - /** * optional string msg = 4; */ @@ -11736,7 +10617,7 @@ public final class BatchReport { java.lang.Object ref = msg_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { msg_ = s; @@ -11746,38 +10627,35 @@ public final class BatchReport { 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; */ @@ -11787,37 +10665,33 @@ 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; } 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; */ @@ -11830,7 +10704,6 @@ public final class BatchReport { onChanged(); return this; } - /** * optional .Severity severity = 5; */ @@ -11842,84 +10715,75 @@ public final class BatchReport { } private com.google.protobuf.LazyStringList tag_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureTagIsMutable() { if (!((bitField0_ & 0x00000020) == 0x00000020)) { tag_ = new com.google.protobuf.LazyStringArrayList(tag_); bitField0_ |= 0x00000020; - } + } } - /** * repeated string tag = 6; */ public com.google.protobuf.ProtocolStringList - getTagList() { + getTagList() { return tag_.getUnmodifiableView(); } - /** * repeated string tag = 6; */ public int getTagCount() { return tag_.size(); } - /** * repeated string tag = 6; */ public java.lang.String getTag(int index) { return tag_.get(index); } - /** * repeated string tag = 6; */ public com.google.protobuf.ByteString - getTagBytes(int index) { + getTagBytes(int index) { return tag_.getByteString(index); } - /** * repeated string tag = 6; */ public Builder setTag( - int index, java.lang.String value) { + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureTagIsMutable(); + throw new NullPointerException(); + } + ensureTagIsMutable(); tag_.set(index, value); onChanged(); return this; } - /** * repeated string tag = 6; */ public Builder addTag( - java.lang.String value) { + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureTagIsMutable(); + throw new NullPointerException(); + } + ensureTagIsMutable(); tag_.add(value); onChanged(); return this; } - /** * repeated string tag = 6; */ public Builder addAllTag( - java.lang.Iterable values) { + java.lang.Iterable values) { ensureTagIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, tag_); + values, tag_); onChanged(); return this; } - /** * repeated string tag = 6; */ @@ -11929,23 +10793,21 @@ public final class BatchReport { onChanged(); return this; } - /** * repeated string tag = 6; */ public Builder addTagBytes( - com.google.protobuf.ByteString value) { + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - ensureTagIsMutable(); + throw new NullPointerException(); + } + ensureTagIsMutable(); tag_.add(value); onChanged(); return this; } - private double effortToFix_; - + private double effortToFix_ ; /** * optional double effort_to_fix = 7; * @@ -11956,7 +10818,6 @@ public final class BatchReport { public boolean hasEffortToFix() { return ((bitField0_ & 0x00000040) == 0x00000040); } - /** * optional double effort_to_fix = 7; * @@ -11967,7 +10828,6 @@ public final class BatchReport { public double getEffortToFix() { return effortToFix_; } - /** * optional double effort_to_fix = 7; * @@ -11981,7 +10841,6 @@ public final class BatchReport { onChanged(); return this; } - /** * optional double effort_to_fix = 7; * @@ -11996,22 +10855,19 @@ public final class BatchReport { return this; } - private boolean isNew_; - + 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; */ @@ -12021,7 +10877,6 @@ public final class BatchReport { onChanged(); return this; } - /** * optional bool is_new = 8; */ @@ -12033,14 +10888,12 @@ public final class BatchReport { } private java.lang.Object uuid_ = ""; - /** * optional string uuid = 9; */ public boolean hasUuid() { return ((bitField0_ & 0x00000100) == 0x00000100); } - /** * optional string uuid = 9; */ @@ -12048,7 +10901,7 @@ public final class BatchReport { java.lang.Object ref = uuid_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { uuid_ = s; @@ -12058,38 +10911,35 @@ public final class BatchReport { 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; */ @@ -12099,37 +10949,33 @@ 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_; - + 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; */ @@ -12139,7 +10985,6 @@ public final class BatchReport { onChanged(); return this; } - /** * optional int64 debt_in_minutes = 10; */ @@ -12151,14 +10996,12 @@ public final class BatchReport { } private java.lang.Object resolution_ = ""; - /** * optional string resolution = 11; */ public boolean hasResolution() { return ((bitField0_ & 0x00000400) == 0x00000400); } - /** * optional string resolution = 11; */ @@ -12166,7 +11009,7 @@ public final class BatchReport { java.lang.Object ref = resolution_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { resolution_ = s; @@ -12176,38 +11019,35 @@ public final class BatchReport { 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; */ @@ -12217,30 +11057,27 @@ 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; } private java.lang.Object status_ = ""; - /** * optional string status = 12; */ public boolean hasStatus() { return ((bitField0_ & 0x00000800) == 0x00000800); } - /** * optional string status = 12; */ @@ -12248,7 +11085,7 @@ public final class BatchReport { java.lang.Object ref = status_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { status_ = s; @@ -12258,38 +11095,35 @@ public final class BatchReport { 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; */ @@ -12299,30 +11133,27 @@ 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; } private java.lang.Object checksum_ = ""; - /** * optional string checksum = 13; */ public boolean hasChecksum() { return ((bitField0_ & 0x00001000) == 0x00001000); } - /** * optional string checksum = 13; */ @@ -12330,7 +11161,7 @@ public final class BatchReport { java.lang.Object ref = checksum_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { checksum_ = s; @@ -12340,38 +11171,35 @@ public final class BatchReport { 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; */ @@ -12381,37 +11209,33 @@ 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_; - + 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; */ @@ -12421,7 +11245,6 @@ public final class BatchReport { onChanged(); return this; } - /** * optional bool manual_severity = 14; */ @@ -12433,14 +11256,12 @@ public final class BatchReport { } private java.lang.Object reporter_ = ""; - /** * optional string reporter = 15; */ public boolean hasReporter() { return ((bitField0_ & 0x00004000) == 0x00004000); } - /** * optional string reporter = 15; */ @@ -12448,7 +11269,7 @@ public final class BatchReport { java.lang.Object ref = reporter_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { reporter_ = s; @@ -12458,38 +11279,35 @@ public final class BatchReport { 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; */ @@ -12499,30 +11317,27 @@ 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; } private java.lang.Object assignee_ = ""; - /** * optional string assignee = 16; */ public boolean hasAssignee() { return ((bitField0_ & 0x00008000) == 0x00008000); } - /** * optional string assignee = 16; */ @@ -12530,7 +11345,7 @@ public final class BatchReport { java.lang.Object ref = assignee_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { assignee_ = s; @@ -12540,38 +11355,35 @@ public final class BatchReport { 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; */ @@ -12581,30 +11393,27 @@ 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; } private java.lang.Object actionPlanKey_ = ""; - /** * optional string action_plan_key = 17; */ public boolean hasActionPlanKey() { return ((bitField0_ & 0x00010000) == 0x00010000); } - /** * optional string action_plan_key = 17; */ @@ -12612,7 +11421,7 @@ public final class BatchReport { java.lang.Object ref = actionPlanKey_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { actionPlanKey_ = s; @@ -12622,38 +11431,35 @@ public final class BatchReport { 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; */ @@ -12663,30 +11469,27 @@ 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; } private java.lang.Object attributes_ = ""; - /** * optional string attributes = 18; */ public boolean hasAttributes() { return ((bitField0_ & 0x00020000) == 0x00020000); } - /** * optional string attributes = 18; */ @@ -12694,7 +11497,7 @@ public final class BatchReport { java.lang.Object ref = attributes_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { attributes_ = s; @@ -12704,38 +11507,35 @@ public final class BatchReport { 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; */ @@ -12745,30 +11545,27 @@ 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; } private java.lang.Object authorLogin_ = ""; - /** * optional string author_login = 19; */ public boolean hasAuthorLogin() { return ((bitField0_ & 0x00040000) == 0x00040000); } - /** * optional string author_login = 19; */ @@ -12776,7 +11573,7 @@ public final class BatchReport { java.lang.Object ref = authorLogin_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { authorLogin_ = s; @@ -12786,38 +11583,35 @@ public final class BatchReport { 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; */ @@ -12827,37 +11621,33 @@ 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_; - + 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; */ @@ -12867,7 +11657,6 @@ public final class BatchReport { onChanged(); return this; } - /** * optional int64 creation_date = 20; */ @@ -12878,22 +11667,19 @@ public final class BatchReport { return this; } - private long closeDate_; - + 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; */ @@ -12903,7 +11689,6 @@ public final class BatchReport { onChanged(); return this; } - /** * optional int64 close_date = 21; */ @@ -12914,22 +11699,19 @@ public final class BatchReport { return this; } - private long updateDate_; - + 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; */ @@ -12939,7 +11721,6 @@ public final class BatchReport { onChanged(); return this; } - /** * optional int64 update_date = 22; */ @@ -12950,22 +11731,19 @@ public final class BatchReport { return this; } - private long selectedAt_; - + 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; */ @@ -12975,7 +11753,6 @@ public final class BatchReport { onChanged(); return this; } - /** * optional int64 selected_at = 23; */ @@ -12987,14 +11764,12 @@ public final class BatchReport { } private java.lang.Object diffFields_ = ""; - /** * optional string diff_fields = 24; */ public boolean hasDiffFields() { return ((bitField0_ & 0x00800000) == 0x00800000); } - /** * optional string diff_fields = 24; */ @@ -13002,7 +11777,7 @@ public final class BatchReport { java.lang.Object ref = diffFields_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { diffFields_ = s; @@ -13012,38 +11787,35 @@ public final class BatchReport { 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; */ @@ -13053,37 +11825,33 @@ 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_; - + 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; */ @@ -13093,7 +11861,6 @@ public final class BatchReport { onChanged(); return this; } - /** * optional bool is_changed = 25; */ @@ -13104,22 +11871,19 @@ public final class BatchReport { return this; } - private boolean mustSendNotification_; - + 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; */ @@ -13129,7 +11893,6 @@ public final class BatchReport { onChanged(); return this; } - /** * optional bool must_send_notification = 26; */ @@ -13152,14 +11915,13 @@ public final class BatchReport { } public interface IssuesOrBuilder extends - // @@protoc_insertion_point(interface_extends:Issues) - com.google.protobuf.MessageOrBuilder { + // @@protoc_insertion_point(interface_extends:Issues) + com.google.protobuf.MessageOrBuilder { /** * optional int32 component_ref = 1; */ boolean hasComponentRef(); - /** * optional int32 component_ref = 1; */ @@ -13168,30 +11930,26 @@ public final class BatchReport { /** * repeated .Issue issue = 2; */ - java.util.List - getIssueList(); - + java.util.List + getIssueList(); /** * repeated .Issue issue = 2; */ org.sonar.batch.protocol.output.BatchReport.Issue getIssue(int index); - /** * repeated .Issue issue = 2; */ int getIssueCount(); - /** * repeated .Issue issue = 2; */ - java.util.List - getIssueOrBuilderList(); - + java.util.List + getIssueOrBuilderList(); /** * repeated .Issue issue = 2; */ org.sonar.batch.protocol.output.BatchReport.IssueOrBuilder getIssueOrBuilder( - int index); + int index); /** * optional string component_uuid = 3; @@ -13201,7 +11959,6 @@ public final class BatchReport { *
*/ boolean hasComponentUuid(); - /** * optional string component_uuid = 3; * @@ -13210,7 +11967,6 @@ public final class BatchReport { *
*/ java.lang.String getComponentUuid(); - /** * optional string component_uuid = 3; * @@ -13219,27 +11975,23 @@ 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 + // @@protoc_insertion_point(message_implements:Issues) + 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; } @@ -13249,21 +12001,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) { @@ -13274,7 +12024,7 @@ public final class BatchReport { break; default: { if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { + extensionRegistry, tag)) { done = true; } break; @@ -13304,7 +12054,7 @@ 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)) { issue_ = java.util.Collections.unmodifiableList(issue_); @@ -13313,28 +12063,27 @@ public final class BatchReport { 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() { @@ -13344,14 +12093,12 @@ public final class BatchReport { private int bitField0_; 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; */ @@ -13361,47 +12108,41 @@ public final class BatchReport { public static final int ISSUE_FIELD_NUMBER = 2; private java.util.List issue_; - /** * repeated .Issue issue = 2; */ public java.util.List getIssueList() { return issue_; } - /** * repeated .Issue issue = 2; */ - public java.util.List - getIssueOrBuilderList() { + public java.util.List + getIssueOrBuilderList() { return issue_; } - /** * repeated .Issue issue = 2; */ public int getIssueCount() { return issue_.size(); } - /** * repeated .Issue issue = 2; */ public org.sonar.batch.protocol.output.BatchReport.Issue getIssue(int index) { return issue_.get(index); } - /** * repeated .Issue issue = 2; */ public org.sonar.batch.protocol.output.BatchReport.IssueOrBuilder getIssueOrBuilder( - int index) { + int index) { return issue_.get(index); } public static final int COMPONENT_UUID_FIELD_NUMBER = 3; private java.lang.Object componentUuid_; - /** * optional string component_uuid = 3; * @@ -13412,7 +12153,6 @@ public final class BatchReport { public boolean hasComponentUuid() { return ((bitField0_ & 0x00000002) == 0x00000002); } - /** * optional string component_uuid = 3; * @@ -13425,8 +12165,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; @@ -13434,7 +12174,6 @@ public final class BatchReport { return s; } } - /** * optional string component_uuid = 3; * @@ -13443,12 +12182,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 { @@ -13461,22 +12200,18 @@ public final class BatchReport { 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 true; + if (isInitialized == 0) return false; 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_); @@ -13491,11 +12226,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)) { @@ -13516,115 +12249,95 @@ 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 + // @@protoc_insertion_point(builder_implements:Issues) + 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() @@ -13633,17 +12346,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) { getIssueFieldBuilder(); } } - private static Builder create() { return new Builder(); } @@ -13668,7 +12379,7 @@ public final class BatchReport { } public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { + getDescriptorForType() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Issues_descriptor; } @@ -13712,7 +12423,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; @@ -13720,8 +12431,7 @@ 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()); } @@ -13743,9 +12453,9 @@ public final class BatchReport { issueBuilder_ = null; issue_ = other.issue_; bitField0_ = (bitField0_ & ~0x00000002); - issueBuilder_ = + issueBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getIssueFieldBuilder() : null; + getIssueFieldBuilder() : null; } else { issueBuilder_.addAllMessages(other.issue_); } @@ -13765,9 +12475,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); @@ -13781,25 +12491,21 @@ public final class BatchReport { } return this; } - private int bitField0_; - private int componentRef_; - + 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; */ @@ -13809,7 +12515,6 @@ public final class BatchReport { onChanged(); return this; } - /** * optional int32 component_ref = 1; */ @@ -13822,15 +12527,15 @@ public final class BatchReport { private java.util.List issue_ = java.util.Collections.emptyList(); - private void ensureIssueIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { issue_ = new java.util.ArrayList(issue_); bitField0_ |= 0x00000002; - } + } } - private com.google.protobuf.RepeatedFieldBuilder issueBuilder_; + 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 issue = 2; @@ -13842,7 +12547,6 @@ public final class BatchReport { return issueBuilder_.getMessageList(); } } - /** * repeated .Issue issue = 2; */ @@ -13853,7 +12557,6 @@ public final class BatchReport { return issueBuilder_.getCount(); } } - /** * repeated .Issue issue = 2; */ @@ -13864,12 +12567,11 @@ public final class BatchReport { return issueBuilder_.getMessage(index); } } - /** * repeated .Issue issue = 2; */ public Builder setIssue( - int index, org.sonar.batch.protocol.output.BatchReport.Issue value) { + int index, org.sonar.batch.protocol.output.BatchReport.Issue value) { if (issueBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -13882,12 +12584,11 @@ public final class BatchReport { } return this; } - /** * repeated .Issue issue = 2; */ public Builder setIssue( - int index, org.sonar.batch.protocol.output.BatchReport.Issue.Builder builderForValue) { + int index, org.sonar.batch.protocol.output.BatchReport.Issue.Builder builderForValue) { if (issueBuilder_ == null) { ensureIssueIsMutable(); issue_.set(index, builderForValue.build()); @@ -13897,7 +12598,6 @@ public final class BatchReport { } return this; } - /** * repeated .Issue issue = 2; */ @@ -13914,12 +12614,11 @@ public final class BatchReport { } return this; } - /** * repeated .Issue issue = 2; */ public Builder addIssue( - int index, org.sonar.batch.protocol.output.BatchReport.Issue value) { + int index, org.sonar.batch.protocol.output.BatchReport.Issue value) { if (issueBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -13932,12 +12631,11 @@ public final class BatchReport { } return this; } - /** * repeated .Issue issue = 2; */ public Builder addIssue( - org.sonar.batch.protocol.output.BatchReport.Issue.Builder builderForValue) { + org.sonar.batch.protocol.output.BatchReport.Issue.Builder builderForValue) { if (issueBuilder_ == null) { ensureIssueIsMutable(); issue_.add(builderForValue.build()); @@ -13947,12 +12645,11 @@ public final class BatchReport { } return this; } - /** * repeated .Issue issue = 2; */ public Builder addIssue( - int index, org.sonar.batch.protocol.output.BatchReport.Issue.Builder builderForValue) { + int index, org.sonar.batch.protocol.output.BatchReport.Issue.Builder builderForValue) { if (issueBuilder_ == null) { ensureIssueIsMutable(); issue_.add(index, builderForValue.build()); @@ -13962,23 +12659,21 @@ public final class BatchReport { } return this; } - /** * repeated .Issue issue = 2; */ public Builder addAllIssue( - java.lang.Iterable values) { + java.lang.Iterable values) { if (issueBuilder_ == null) { ensureIssueIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, issue_); + values, issue_); onChanged(); } else { issueBuilder_.addAllMessages(values); } return this; } - /** * repeated .Issue issue = 2; */ @@ -13992,7 +12687,6 @@ public final class BatchReport { } return this; } - /** * repeated .Issue issue = 2; */ @@ -14006,81 +12700,72 @@ public final class BatchReport { } return this; } - /** * repeated .Issue issue = 2; */ public org.sonar.batch.protocol.output.BatchReport.Issue.Builder getIssueBuilder( - int index) { + int index) { return getIssueFieldBuilder().getBuilder(index); } - /** * repeated .Issue issue = 2; */ public org.sonar.batch.protocol.output.BatchReport.IssueOrBuilder getIssueOrBuilder( - int index) { + int index) { if (issueBuilder_ == null) { - return issue_.get(index); - } else { + return issue_.get(index); } else { return issueBuilder_.getMessageOrBuilder(index); } } - /** * repeated .Issue issue = 2; */ - public java.util.List - getIssueOrBuilderList() { + public java.util.List + getIssueOrBuilderList() { if (issueBuilder_ != null) { return issueBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(issue_); } } - /** * repeated .Issue issue = 2; */ public org.sonar.batch.protocol.output.BatchReport.Issue.Builder addIssueBuilder() { return getIssueFieldBuilder().addBuilder( - org.sonar.batch.protocol.output.BatchReport.Issue.getDefaultInstance()); + org.sonar.batch.protocol.output.BatchReport.Issue.getDefaultInstance()); } - /** * repeated .Issue issue = 2; */ public org.sonar.batch.protocol.output.BatchReport.Issue.Builder addIssueBuilder( - int index) { + int index) { return getIssueFieldBuilder().addBuilder( - index, org.sonar.batch.protocol.output.BatchReport.Issue.getDefaultInstance()); + index, org.sonar.batch.protocol.output.BatchReport.Issue.getDefaultInstance()); } - /** * repeated .Issue issue = 2; */ - public java.util.List - getIssueBuilderList() { + 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> - getIssueFieldBuilder() { + 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()); + 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 issueBuilder_; } private java.lang.Object componentUuid_ = ""; - /** * optional string component_uuid = 3; * @@ -14091,7 +12776,6 @@ public final class BatchReport { public boolean hasComponentUuid() { return ((bitField0_ & 0x00000004) == 0x00000004); } - /** * optional string component_uuid = 3; * @@ -14103,7 +12787,7 @@ public final class BatchReport { java.lang.Object ref = componentUuid_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { componentUuid_ = s; @@ -14113,7 +12797,6 @@ public final class BatchReport { return (java.lang.String) ref; } } - /** * optional string component_uuid = 3; * @@ -14122,19 +12805,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; * @@ -14143,16 +12825,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; * @@ -14166,7 +12847,6 @@ public final class BatchReport { onChanged(); return this; } - /** * optional string component_uuid = 3; * @@ -14175,11 +12855,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; @@ -14197,14 +12877,13 @@ public final class BatchReport { } public interface ChangesetsOrBuilder extends - // @@protoc_insertion_point(interface_extends:Changesets) - com.google.protobuf.MessageOrBuilder { + // @@protoc_insertion_point(interface_extends:Changesets) + com.google.protobuf.MessageOrBuilder { /** * optional int32 component_ref = 1; */ boolean hasComponentRef(); - /** * optional int32 component_ref = 1; */ @@ -14213,30 +12892,26 @@ public final class BatchReport { /** * repeated .Changesets.Changeset changeset = 2; */ - java.util.List - getChangesetList(); - + java.util.List + getChangesetList(); /** * repeated .Changesets.Changeset changeset = 2; */ org.sonar.batch.protocol.output.BatchReport.Changesets.Changeset getChangeset(int index); - /** * repeated .Changesets.Changeset changeset = 2; */ int getChangesetCount(); - /** * repeated .Changesets.Changeset changeset = 2; */ - java.util.List - getChangesetOrBuilderList(); - + java.util.List + getChangesetOrBuilderList(); /** * repeated .Changesets.Changeset changeset = 2; */ org.sonar.batch.protocol.output.BatchReport.Changesets.ChangesetOrBuilder getChangesetOrBuilder( - int index); + int index); /** * repeated int32 changesetIndexByLine = 3 [packed = true]; @@ -14246,7 +12921,6 @@ public final class BatchReport { *
*/ java.util.List getChangesetIndexByLineList(); - /** * repeated int32 changesetIndexByLine = 3 [packed = true]; * @@ -14255,7 +12929,6 @@ public final class BatchReport { *
*/ int getChangesetIndexByLineCount(); - /** * repeated int32 changesetIndexByLine = 3 [packed = true]; * @@ -14269,21 +12942,17 @@ public final class BatchReport { * Protobuf type {@code Changesets} */ public static final class Changesets extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:Changesets) - ChangesetsOrBuilder { + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:Changesets) + ChangesetsOrBuilder { // Use Changesets.newBuilder() to construct. private Changesets(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } - - private Changesets(boolean noInit) { - this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } + private Changesets(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final Changesets defaultInstance; - public static Changesets getDefaultInstance() { return defaultInstance; } @@ -14293,21 +12962,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 Changesets( - 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) { @@ -14318,7 +12985,7 @@ public final class BatchReport { break; default: { if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { + extensionRegistry, tag)) { done = true; } break; @@ -14363,7 +13030,7 @@ 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)) { changeset_ = java.util.Collections.unmodifiableList(changeset_); @@ -14375,28 +13042,27 @@ public final class BatchReport { makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + getDescriptor() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Changesets_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { + internalGetFieldAccessorTable() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Changesets_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.batch.protocol.output.BatchReport.Changesets.class, org.sonar.batch.protocol.output.BatchReport.Changesets.Builder.class); + .ensureFieldAccessorsInitialized( + org.sonar.batch.protocol.output.BatchReport.Changesets.class, org.sonar.batch.protocol.output.BatchReport.Changesets.Builder.class); } public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Changesets parsePartialFrom( + new com.google.protobuf.AbstractParser() { + public Changesets parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Changesets(input, extensionRegistry); - } - }; + return new Changesets(input, extensionRegistry); + } + }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { @@ -14404,46 +13070,41 @@ public final class BatchReport { } public interface ChangesetOrBuilder extends - // @@protoc_insertion_point(interface_extends:Changesets.Changeset) - com.google.protobuf.MessageOrBuilder { + // @@protoc_insertion_point(interface_extends:Changesets.Changeset) + com.google.protobuf.MessageOrBuilder { /** * optional string revision = 1; */ boolean hasRevision(); - /** * optional string revision = 1; */ java.lang.String getRevision(); - /** * optional string revision = 1; */ com.google.protobuf.ByteString - getRevisionBytes(); + getRevisionBytes(); /** * optional string author = 2; */ boolean hasAuthor(); - /** * optional string author = 2; */ java.lang.String getAuthor(); - /** * optional string author = 2; */ com.google.protobuf.ByteString - getAuthorBytes(); + getAuthorBytes(); /** * optional int64 date = 3; */ boolean hasDate(); - /** * optional int64 date = 3; */ @@ -14453,21 +13114,17 @@ public final class BatchReport { * Protobuf type {@code Changesets.Changeset} */ public static final class Changeset extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:Changesets.Changeset) - ChangesetOrBuilder { + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:Changesets.Changeset) + ChangesetOrBuilder { // Use Changeset.newBuilder() to construct. private Changeset(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } - - private Changeset(boolean noInit) { - this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } + private Changeset(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final Changeset defaultInstance; - public static Changeset getDefaultInstance() { return defaultInstance; } @@ -14477,21 +13134,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 Changeset( - 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) { @@ -14502,7 +13157,7 @@ public final class BatchReport { break; default: { if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { + extensionRegistry, tag)) { done = true; } break; @@ -14530,34 +13185,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_Changesets_Changeset_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { + internalGetFieldAccessorTable() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Changesets_Changeset_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.batch.protocol.output.BatchReport.Changesets.Changeset.class, org.sonar.batch.protocol.output.BatchReport.Changesets.Changeset.Builder.class); + .ensureFieldAccessorsInitialized( + org.sonar.batch.protocol.output.BatchReport.Changesets.Changeset.class, org.sonar.batch.protocol.output.BatchReport.Changesets.Changeset.Builder.class); } public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Changeset parsePartialFrom( + new com.google.protobuf.AbstractParser() { + public Changeset parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Changeset(input, extensionRegistry); - } - }; + return new Changeset(input, extensionRegistry); + } + }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { @@ -14567,14 +13221,12 @@ public final class BatchReport { private int bitField0_; public static final int REVISION_FIELD_NUMBER = 1; private java.lang.Object revision_; - /** * optional string revision = 1; */ public boolean hasRevision() { return ((bitField0_ & 0x00000001) == 0x00000001); } - /** * optional string revision = 1; */ @@ -14583,8 +13235,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()) { revision_ = s; @@ -14592,17 +13244,16 @@ public final class BatchReport { return s; } } - /** * optional string revision = 1; */ public com.google.protobuf.ByteString - getRevisionBytes() { + getRevisionBytes() { java.lang.Object ref = revision_; 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); revision_ = b; return b; } else { @@ -14612,14 +13263,12 @@ public final class BatchReport { public static final int AUTHOR_FIELD_NUMBER = 2; private java.lang.Object author_; - /** * optional string author = 2; */ public boolean hasAuthor() { return ((bitField0_ & 0x00000002) == 0x00000002); } - /** * optional string author = 2; */ @@ -14628,8 +13277,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()) { author_ = s; @@ -14637,17 +13286,16 @@ public final class BatchReport { return s; } } - /** * optional string author = 2; */ public com.google.protobuf.ByteString - getAuthorBytes() { + getAuthorBytes() { java.lang.Object ref = author_; 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); author_ = b; return b; } else { @@ -14657,14 +13305,12 @@ public final class BatchReport { public static final int DATE_FIELD_NUMBER = 3; private long date_; - /** * optional int64 date = 3; */ public boolean hasDate() { return ((bitField0_ & 0x00000004) == 0x00000004); } - /** * optional int64 date = 3; */ @@ -14677,22 +13323,18 @@ public final class BatchReport { author_ = ""; date_ = 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 true; + if (isInitialized == 0) return false; 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, getRevisionBytes()); @@ -14707,11 +13349,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)) { @@ -14732,115 +13372,95 @@ 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.Changesets.Changeset 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.Changesets.Changeset 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.Changesets.Changeset 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.Changesets.Changeset 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.Changesets.Changeset 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.Changesets.Changeset 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.Changesets.Changeset 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.Changesets.Changeset 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.Changesets.Changeset 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.Changesets.Changeset 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.Changesets.Changeset 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 Changesets.Changeset} */ public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:Changesets.Changeset) - org.sonar.batch.protocol.output.BatchReport.Changesets.ChangesetOrBuilder { + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:Changesets.Changeset) + org.sonar.batch.protocol.output.BatchReport.Changesets.ChangesetOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + getDescriptor() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Changesets_Changeset_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { + internalGetFieldAccessorTable() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Changesets_Changeset_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.batch.protocol.output.BatchReport.Changesets.Changeset.class, org.sonar.batch.protocol.output.BatchReport.Changesets.Changeset.Builder.class); + .ensureFieldAccessorsInitialized( + org.sonar.batch.protocol.output.BatchReport.Changesets.Changeset.class, org.sonar.batch.protocol.output.BatchReport.Changesets.Changeset.Builder.class); } // Construct using org.sonar.batch.protocol.output.BatchReport.Changesets.Changeset.newBuilder() @@ -14849,16 +13469,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(); } @@ -14879,7 +13497,7 @@ public final class BatchReport { } public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { + getDescriptorForType() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Changesets_Changeset_descriptor; } @@ -14918,7 +13536,7 @@ public final class BatchReport { public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.sonar.batch.protocol.output.BatchReport.Changesets.Changeset) { - return mergeFrom((org.sonar.batch.protocol.output.BatchReport.Changesets.Changeset) other); + return mergeFrom((org.sonar.batch.protocol.output.BatchReport.Changesets.Changeset)other); } else { super.mergeFrom(other); return this; @@ -14926,8 +13544,7 @@ public final class BatchReport { } public Builder mergeFrom(org.sonar.batch.protocol.output.BatchReport.Changesets.Changeset other) { - if (other == org.sonar.batch.protocol.output.BatchReport.Changesets.Changeset.getDefaultInstance()) - return this; + if (other == org.sonar.batch.protocol.output.BatchReport.Changesets.Changeset.getDefaultInstance()) return this; if (other.hasRevision()) { bitField0_ |= 0x00000001; revision_ = other.revision_; @@ -14950,9 +13567,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.Changesets.Changeset parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); @@ -14966,18 +13583,15 @@ public final class BatchReport { } return this; } - private int bitField0_; private java.lang.Object revision_ = ""; - /** * optional string revision = 1; */ public boolean hasRevision() { return ((bitField0_ & 0x00000001) == 0x00000001); } - /** * optional string revision = 1; */ @@ -14985,7 +13599,7 @@ public final class BatchReport { java.lang.Object ref = revision_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { revision_ = s; @@ -14995,38 +13609,35 @@ public final class BatchReport { return (java.lang.String) ref; } } - /** * optional string revision = 1; */ public com.google.protobuf.ByteString - getRevisionBytes() { + getRevisionBytes() { java.lang.Object ref = revision_; 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); revision_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - /** * optional string revision = 1; */ public Builder setRevision( - java.lang.String value) { + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; revision_ = value; onChanged(); return this; } - /** * optional string revision = 1; */ @@ -15036,30 +13647,27 @@ public final class BatchReport { onChanged(); return this; } - /** * optional string revision = 1; */ public Builder setRevisionBytes( - com.google.protobuf.ByteString value) { + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; revision_ = value; onChanged(); return this; } private java.lang.Object author_ = ""; - /** * optional string author = 2; */ public boolean hasAuthor() { return ((bitField0_ & 0x00000002) == 0x00000002); } - /** * optional string author = 2; */ @@ -15067,7 +13675,7 @@ public final class BatchReport { java.lang.Object ref = author_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { author_ = s; @@ -15077,38 +13685,35 @@ public final class BatchReport { return (java.lang.String) ref; } } - /** * optional string author = 2; */ public com.google.protobuf.ByteString - getAuthorBytes() { + getAuthorBytes() { java.lang.Object ref = author_; 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); author_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - /** * optional string author = 2; */ public Builder setAuthor( - java.lang.String value) { + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; author_ = value; onChanged(); return this; } - /** * optional string author = 2; */ @@ -15118,37 +13723,33 @@ public final class BatchReport { onChanged(); return this; } - /** * optional string author = 2; */ public Builder setAuthorBytes( - com.google.protobuf.ByteString value) { + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; author_ = value; onChanged(); return this; } - private long date_; - + private long date_ ; /** * optional int64 date = 3; */ public boolean hasDate() { return ((bitField0_ & 0x00000004) == 0x00000004); } - /** * optional int64 date = 3; */ public long getDate() { return date_; } - /** * optional int64 date = 3; */ @@ -15158,7 +13759,6 @@ public final class BatchReport { onChanged(); return this; } - /** * optional int64 date = 3; */ @@ -15183,14 +13783,12 @@ public final class BatchReport { private int bitField0_; 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; */ @@ -15200,47 +13798,41 @@ public final class BatchReport { public static final int CHANGESET_FIELD_NUMBER = 2; private java.util.List changeset_; - /** * repeated .Changesets.Changeset changeset = 2; */ public java.util.List getChangesetList() { return changeset_; } - /** * repeated .Changesets.Changeset changeset = 2; */ - public java.util.List - getChangesetOrBuilderList() { + public java.util.List + getChangesetOrBuilderList() { return changeset_; } - /** * repeated .Changesets.Changeset changeset = 2; */ public int getChangesetCount() { return changeset_.size(); } - /** * repeated .Changesets.Changeset changeset = 2; */ public org.sonar.batch.protocol.output.BatchReport.Changesets.Changeset getChangeset(int index) { return changeset_.get(index); } - /** * repeated .Changesets.Changeset changeset = 2; */ public org.sonar.batch.protocol.output.BatchReport.Changesets.ChangesetOrBuilder getChangesetOrBuilder( - int index) { + int index) { return changeset_.get(index); } public static final int CHANGESETINDEXBYLINE_FIELD_NUMBER = 3; private java.util.List changesetIndexByLine_; - /** * repeated int32 changesetIndexByLine = 3 [packed = true]; * @@ -15249,10 +13841,9 @@ public final class BatchReport { *
*/ public java.util.List - getChangesetIndexByLineList() { + getChangesetIndexByLineList() { return changesetIndexByLine_; } - /** * repeated int32 changesetIndexByLine = 3 [packed = true]; * @@ -15263,7 +13854,6 @@ public final class BatchReport { public int getChangesetIndexByLineCount() { return changesetIndexByLine_.size(); } - /** * repeated int32 changesetIndexByLine = 3 [packed = true]; * @@ -15274,7 +13864,6 @@ public final class BatchReport { public int getChangesetIndexByLine(int index) { return changesetIndexByLine_.get(index); } - private int changesetIndexByLineMemoizedSerializedSize = -1; private void initFields() { @@ -15282,22 +13871,18 @@ public final class BatchReport { changeset_ = java.util.Collections.emptyList(); changesetIndexByLine_ = 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 true; + if (isInitialized == 0) return false; 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_); @@ -15316,11 +13901,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)) { @@ -15341,7 +13924,7 @@ public final class BatchReport { if (!getChangesetIndexByLineList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); + .computeInt32SizeNoTag(dataSize); } changesetIndexByLineMemoizedSerializedSize = dataSize; } @@ -15351,115 +13934,95 @@ 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.Changesets 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.Changesets 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.Changesets 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.Changesets 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.Changesets 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.Changesets 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.Changesets 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.Changesets 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.Changesets 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.Changesets 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.Changesets 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 Changesets} */ public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:Changesets) - org.sonar.batch.protocol.output.BatchReport.ChangesetsOrBuilder { + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:Changesets) + org.sonar.batch.protocol.output.BatchReport.ChangesetsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + getDescriptor() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Changesets_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { + internalGetFieldAccessorTable() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Changesets_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.batch.protocol.output.BatchReport.Changesets.class, org.sonar.batch.protocol.output.BatchReport.Changesets.Builder.class); + .ensureFieldAccessorsInitialized( + org.sonar.batch.protocol.output.BatchReport.Changesets.class, org.sonar.batch.protocol.output.BatchReport.Changesets.Builder.class); } // Construct using org.sonar.batch.protocol.output.BatchReport.Changesets.newBuilder() @@ -15468,17 +14031,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) { getChangesetFieldBuilder(); } } - private static Builder create() { return new Builder(); } @@ -15503,7 +14064,7 @@ public final class BatchReport { } public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { + getDescriptorForType() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Changesets_descriptor; } @@ -15548,7 +14109,7 @@ public final class BatchReport { public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.sonar.batch.protocol.output.BatchReport.Changesets) { - return mergeFrom((org.sonar.batch.protocol.output.BatchReport.Changesets) other); + return mergeFrom((org.sonar.batch.protocol.output.BatchReport.Changesets)other); } else { super.mergeFrom(other); return this; @@ -15556,8 +14117,7 @@ public final class BatchReport { } public Builder mergeFrom(org.sonar.batch.protocol.output.BatchReport.Changesets other) { - if (other == org.sonar.batch.protocol.output.BatchReport.Changesets.getDefaultInstance()) - return this; + if (other == org.sonar.batch.protocol.output.BatchReport.Changesets.getDefaultInstance()) return this; if (other.hasComponentRef()) { setComponentRef(other.getComponentRef()); } @@ -15579,9 +14139,9 @@ public final class BatchReport { changesetBuilder_ = null; changeset_ = other.changeset_; bitField0_ = (bitField0_ & ~0x00000002); - changesetBuilder_ = + changesetBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getChangesetFieldBuilder() : null; + getChangesetFieldBuilder() : null; } else { changesetBuilder_.addAllMessages(other.changeset_); } @@ -15606,9 +14166,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.Changesets parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); @@ -15622,25 +14182,21 @@ public final class BatchReport { } return this; } - private int bitField0_; - private int componentRef_; - + 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; */ @@ -15650,7 +14206,6 @@ public final class BatchReport { onChanged(); return this; } - /** * optional int32 component_ref = 1; */ @@ -15663,15 +14218,15 @@ public final class BatchReport { private java.util.List changeset_ = java.util.Collections.emptyList(); - private void ensureChangesetIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { changeset_ = new java.util.ArrayList(changeset_); bitField0_ |= 0x00000002; - } + } } - private com.google.protobuf.RepeatedFieldBuilder changesetBuilder_; + private com.google.protobuf.RepeatedFieldBuilder< + org.sonar.batch.protocol.output.BatchReport.Changesets.Changeset, org.sonar.batch.protocol.output.BatchReport.Changesets.Changeset.Builder, org.sonar.batch.protocol.output.BatchReport.Changesets.ChangesetOrBuilder> changesetBuilder_; /** * repeated .Changesets.Changeset changeset = 2; @@ -15683,7 +14238,6 @@ public final class BatchReport { return changesetBuilder_.getMessageList(); } } - /** * repeated .Changesets.Changeset changeset = 2; */ @@ -15694,7 +14248,6 @@ public final class BatchReport { return changesetBuilder_.getCount(); } } - /** * repeated .Changesets.Changeset changeset = 2; */ @@ -15705,12 +14258,11 @@ public final class BatchReport { return changesetBuilder_.getMessage(index); } } - /** * repeated .Changesets.Changeset changeset = 2; */ public Builder setChangeset( - int index, org.sonar.batch.protocol.output.BatchReport.Changesets.Changeset value) { + int index, org.sonar.batch.protocol.output.BatchReport.Changesets.Changeset value) { if (changesetBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -15723,12 +14275,11 @@ public final class BatchReport { } return this; } - /** * repeated .Changesets.Changeset changeset = 2; */ public Builder setChangeset( - int index, org.sonar.batch.protocol.output.BatchReport.Changesets.Changeset.Builder builderForValue) { + int index, org.sonar.batch.protocol.output.BatchReport.Changesets.Changeset.Builder builderForValue) { if (changesetBuilder_ == null) { ensureChangesetIsMutable(); changeset_.set(index, builderForValue.build()); @@ -15738,7 +14289,6 @@ public final class BatchReport { } return this; } - /** * repeated .Changesets.Changeset changeset = 2; */ @@ -15755,12 +14305,11 @@ public final class BatchReport { } return this; } - /** * repeated .Changesets.Changeset changeset = 2; */ public Builder addChangeset( - int index, org.sonar.batch.protocol.output.BatchReport.Changesets.Changeset value) { + int index, org.sonar.batch.protocol.output.BatchReport.Changesets.Changeset value) { if (changesetBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -15773,12 +14322,11 @@ public final class BatchReport { } return this; } - /** * repeated .Changesets.Changeset changeset = 2; */ public Builder addChangeset( - org.sonar.batch.protocol.output.BatchReport.Changesets.Changeset.Builder builderForValue) { + org.sonar.batch.protocol.output.BatchReport.Changesets.Changeset.Builder builderForValue) { if (changesetBuilder_ == null) { ensureChangesetIsMutable(); changeset_.add(builderForValue.build()); @@ -15788,12 +14336,11 @@ public final class BatchReport { } return this; } - /** * repeated .Changesets.Changeset changeset = 2; */ public Builder addChangeset( - int index, org.sonar.batch.protocol.output.BatchReport.Changesets.Changeset.Builder builderForValue) { + int index, org.sonar.batch.protocol.output.BatchReport.Changesets.Changeset.Builder builderForValue) { if (changesetBuilder_ == null) { ensureChangesetIsMutable(); changeset_.add(index, builderForValue.build()); @@ -15803,23 +14350,21 @@ public final class BatchReport { } return this; } - /** * repeated .Changesets.Changeset changeset = 2; */ public Builder addAllChangeset( - java.lang.Iterable values) { + java.lang.Iterable values) { if (changesetBuilder_ == null) { ensureChangesetIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, changeset_); + values, changeset_); onChanged(); } else { changesetBuilder_.addAllMessages(values); } return this; } - /** * repeated .Changesets.Changeset changeset = 2; */ @@ -15833,7 +14378,6 @@ public final class BatchReport { } return this; } - /** * repeated .Changesets.Changeset changeset = 2; */ @@ -15847,88 +14391,78 @@ public final class BatchReport { } return this; } - /** * repeated .Changesets.Changeset changeset = 2; */ public org.sonar.batch.protocol.output.BatchReport.Changesets.Changeset.Builder getChangesetBuilder( - int index) { + int index) { return getChangesetFieldBuilder().getBuilder(index); } - /** * repeated .Changesets.Changeset changeset = 2; */ public org.sonar.batch.protocol.output.BatchReport.Changesets.ChangesetOrBuilder getChangesetOrBuilder( - int index) { + int index) { if (changesetBuilder_ == null) { - return changeset_.get(index); - } else { + return changeset_.get(index); } else { return changesetBuilder_.getMessageOrBuilder(index); } } - /** * repeated .Changesets.Changeset changeset = 2; */ - public java.util.List - getChangesetOrBuilderList() { + public java.util.List + getChangesetOrBuilderList() { if (changesetBuilder_ != null) { return changesetBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(changeset_); } } - /** * repeated .Changesets.Changeset changeset = 2; */ public org.sonar.batch.protocol.output.BatchReport.Changesets.Changeset.Builder addChangesetBuilder() { return getChangesetFieldBuilder().addBuilder( - org.sonar.batch.protocol.output.BatchReport.Changesets.Changeset.getDefaultInstance()); + org.sonar.batch.protocol.output.BatchReport.Changesets.Changeset.getDefaultInstance()); } - /** * repeated .Changesets.Changeset changeset = 2; */ public org.sonar.batch.protocol.output.BatchReport.Changesets.Changeset.Builder addChangesetBuilder( - int index) { + int index) { return getChangesetFieldBuilder().addBuilder( - index, org.sonar.batch.protocol.output.BatchReport.Changesets.Changeset.getDefaultInstance()); + index, org.sonar.batch.protocol.output.BatchReport.Changesets.Changeset.getDefaultInstance()); } - /** * repeated .Changesets.Changeset changeset = 2; */ - public java.util.List - getChangesetBuilderList() { + public java.util.List + getChangesetBuilderList() { return getChangesetFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilder< - org.sonar.batch.protocol.output.BatchReport.Changesets.Changeset, org.sonar.batch.protocol.output.BatchReport.Changesets.Changeset.Builder, org.sonar.batch.protocol.output.BatchReport.Changesets.ChangesetOrBuilder> - getChangesetFieldBuilder() { + org.sonar.batch.protocol.output.BatchReport.Changesets.Changeset, org.sonar.batch.protocol.output.BatchReport.Changesets.Changeset.Builder, org.sonar.batch.protocol.output.BatchReport.Changesets.ChangesetOrBuilder> + getChangesetFieldBuilder() { if (changesetBuilder_ == null) { changesetBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - org.sonar.batch.protocol.output.BatchReport.Changesets.Changeset, org.sonar.batch.protocol.output.BatchReport.Changesets.Changeset.Builder, org.sonar.batch.protocol.output.BatchReport.Changesets.ChangesetOrBuilder>( - changeset_, - ((bitField0_ & 0x00000002) == 0x00000002), - getParentForChildren(), - isClean()); + org.sonar.batch.protocol.output.BatchReport.Changesets.Changeset, org.sonar.batch.protocol.output.BatchReport.Changesets.Changeset.Builder, org.sonar.batch.protocol.output.BatchReport.Changesets.ChangesetOrBuilder>( + changeset_, + ((bitField0_ & 0x00000002) == 0x00000002), + getParentForChildren(), + isClean()); changeset_ = null; } return changesetBuilder_; } private java.util.List changesetIndexByLine_ = java.util.Collections.emptyList(); - private void ensureChangesetIndexByLineIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { changesetIndexByLine_ = new java.util.ArrayList(changesetIndexByLine_); bitField0_ |= 0x00000004; - } + } } - /** * repeated int32 changesetIndexByLine = 3 [packed = true]; * @@ -15937,10 +14471,9 @@ public final class BatchReport { *
*/ public java.util.List - getChangesetIndexByLineList() { + getChangesetIndexByLineList() { return java.util.Collections.unmodifiableList(changesetIndexByLine_); } - /** * repeated int32 changesetIndexByLine = 3 [packed = true]; * @@ -15951,7 +14484,6 @@ public final class BatchReport { public int getChangesetIndexByLineCount() { return changesetIndexByLine_.size(); } - /** * repeated int32 changesetIndexByLine = 3 [packed = true]; * @@ -15962,7 +14494,6 @@ public final class BatchReport { public int getChangesetIndexByLine(int index) { return changesetIndexByLine_.get(index); } - /** * repeated int32 changesetIndexByLine = 3 [packed = true]; * @@ -15971,13 +14502,12 @@ public final class BatchReport { *
*/ public Builder setChangesetIndexByLine( - int index, int value) { + int index, int value) { ensureChangesetIndexByLineIsMutable(); changesetIndexByLine_.set(index, value); onChanged(); return this; } - /** * repeated int32 changesetIndexByLine = 3 [packed = true]; * @@ -15991,7 +14521,6 @@ public final class BatchReport { onChanged(); return this; } - /** * repeated int32 changesetIndexByLine = 3 [packed = true]; * @@ -16000,14 +14529,13 @@ public final class BatchReport { *
*/ public Builder addAllChangesetIndexByLine( - java.lang.Iterable values) { + java.lang.Iterable values) { ensureChangesetIndexByLineIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, changesetIndexByLine_); + values, changesetIndexByLine_); onChanged(); return this; } - /** * repeated int32 changesetIndexByLine = 3 [packed = true]; * @@ -16034,8 +14562,8 @@ public final class BatchReport { } public interface DuplicateOrBuilder extends - // @@protoc_insertion_point(interface_extends:Duplicate) - com.google.protobuf.MessageOrBuilder { + // @@protoc_insertion_point(interface_extends:Duplicate) + com.google.protobuf.MessageOrBuilder { /** * optional int32 other_file_ref = 1; @@ -16045,7 +14573,6 @@ public final class BatchReport { * */ boolean hasOtherFileRef(); - /** * optional int32 other_file_ref = 1; * @@ -16059,12 +14586,10 @@ public final class BatchReport { * optional .Range range = 2; */ boolean hasRange(); - /** * optional .Range range = 2; */ org.sonar.batch.protocol.output.BatchReport.Range getRange(); - /** * optional .Range range = 2; */ @@ -16078,7 +14603,6 @@ public final class BatchReport { * */ boolean hasOtherFileKey(); - /** * optional string other_file_key = 3; * @@ -16087,7 +14611,6 @@ public final class BatchReport { * */ java.lang.String getOtherFileKey(); - /** * optional string other_file_key = 3; * @@ -16096,27 +14619,23 @@ public final class BatchReport { * */ com.google.protobuf.ByteString - getOtherFileKeyBytes(); + getOtherFileKeyBytes(); } /** * Protobuf type {@code Duplicate} */ public static final class Duplicate extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:Duplicate) - DuplicateOrBuilder { + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:Duplicate) + DuplicateOrBuilder { // Use Duplicate.newBuilder() to construct. private Duplicate(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } - - private Duplicate(boolean noInit) { - this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } + private Duplicate(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final Duplicate defaultInstance; - public static Duplicate getDefaultInstance() { return defaultInstance; } @@ -16126,21 +14645,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 Duplicate( - 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) { @@ -16151,7 +14668,7 @@ public final class BatchReport { break; default: { if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { + extensionRegistry, tag)) { done = true; } break; @@ -16186,34 +14703,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_Duplicate_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { + internalGetFieldAccessorTable() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Duplicate_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.batch.protocol.output.BatchReport.Duplicate.class, org.sonar.batch.protocol.output.BatchReport.Duplicate.Builder.class); + .ensureFieldAccessorsInitialized( + org.sonar.batch.protocol.output.BatchReport.Duplicate.class, org.sonar.batch.protocol.output.BatchReport.Duplicate.Builder.class); } public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Duplicate parsePartialFrom( + new com.google.protobuf.AbstractParser() { + public Duplicate parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Duplicate(input, extensionRegistry); - } - }; + return new Duplicate(input, extensionRegistry); + } + }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { @@ -16223,7 +14739,6 @@ public final class BatchReport { private int bitField0_; public static final int OTHER_FILE_REF_FIELD_NUMBER = 1; private int otherFileRef_; - /** * optional int32 other_file_ref = 1; * @@ -16234,7 +14749,6 @@ public final class BatchReport { public boolean hasOtherFileRef() { return ((bitField0_ & 0x00000001) == 0x00000001); } - /** * optional int32 other_file_ref = 1; * @@ -16248,21 +14762,18 @@ public final class BatchReport { public static final int RANGE_FIELD_NUMBER = 2; private org.sonar.batch.protocol.output.BatchReport.Range range_; - /** * optional .Range range = 2; */ public boolean hasRange() { return ((bitField0_ & 0x00000002) == 0x00000002); } - /** * optional .Range range = 2; */ public org.sonar.batch.protocol.output.BatchReport.Range getRange() { return range_; } - /** * optional .Range range = 2; */ @@ -16272,7 +14783,6 @@ public final class BatchReport { public static final int OTHER_FILE_KEY_FIELD_NUMBER = 3; private java.lang.Object otherFileKey_; - /** * optional string other_file_key = 3; * @@ -16283,7 +14793,6 @@ public final class BatchReport { public boolean hasOtherFileKey() { return ((bitField0_ & 0x00000004) == 0x00000004); } - /** * optional string other_file_key = 3; * @@ -16296,8 +14805,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()) { otherFileKey_ = s; @@ -16305,7 +14814,6 @@ public final class BatchReport { return s; } } - /** * optional string other_file_key = 3; * @@ -16314,12 +14822,12 @@ public final class BatchReport { * */ public com.google.protobuf.ByteString - getOtherFileKeyBytes() { + getOtherFileKeyBytes() { java.lang.Object ref = otherFileKey_; 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); otherFileKey_ = b; return b; } else { @@ -16332,22 +14840,18 @@ public final class BatchReport { range_ = org.sonar.batch.protocol.output.BatchReport.Range.getDefaultInstance(); otherFileKey_ = ""; } - 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 true; + if (isInitialized == 0) return false; 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, otherFileRef_); @@ -16362,11 +14866,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)) { @@ -16387,115 +14889,95 @@ 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.Duplicate 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.Duplicate 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.Duplicate 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.Duplicate 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.Duplicate 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.Duplicate 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.Duplicate 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.Duplicate 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.Duplicate 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.Duplicate 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.Duplicate 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 Duplicate} */ public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:Duplicate) - org.sonar.batch.protocol.output.BatchReport.DuplicateOrBuilder { + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:Duplicate) + org.sonar.batch.protocol.output.BatchReport.DuplicateOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + getDescriptor() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Duplicate_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { + internalGetFieldAccessorTable() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Duplicate_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.batch.protocol.output.BatchReport.Duplicate.class, org.sonar.batch.protocol.output.BatchReport.Duplicate.Builder.class); + .ensureFieldAccessorsInitialized( + org.sonar.batch.protocol.output.BatchReport.Duplicate.class, org.sonar.batch.protocol.output.BatchReport.Duplicate.Builder.class); } // Construct using org.sonar.batch.protocol.output.BatchReport.Duplicate.newBuilder() @@ -16504,17 +14986,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) { getRangeFieldBuilder(); } } - private static Builder create() { return new Builder(); } @@ -16539,7 +15019,7 @@ public final class BatchReport { } public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { + getDescriptorForType() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Duplicate_descriptor; } @@ -16582,7 +15062,7 @@ public final class BatchReport { public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.sonar.batch.protocol.output.BatchReport.Duplicate) { - return mergeFrom((org.sonar.batch.protocol.output.BatchReport.Duplicate) other); + return mergeFrom((org.sonar.batch.protocol.output.BatchReport.Duplicate)other); } else { super.mergeFrom(other); return this; @@ -16590,8 +15070,7 @@ public final class BatchReport { } public Builder mergeFrom(org.sonar.batch.protocol.output.BatchReport.Duplicate other) { - if (other == org.sonar.batch.protocol.output.BatchReport.Duplicate.getDefaultInstance()) - return this; + if (other == org.sonar.batch.protocol.output.BatchReport.Duplicate.getDefaultInstance()) return this; if (other.hasOtherFileRef()) { setOtherFileRef(other.getOtherFileRef()); } @@ -16612,9 +15091,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.Duplicate parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); @@ -16628,11 +15107,9 @@ public final class BatchReport { } return this; } - private int bitField0_; - private int otherFileRef_; - + private int otherFileRef_ ; /** * optional int32 other_file_ref = 1; * @@ -16643,7 +15120,6 @@ public final class BatchReport { public boolean hasOtherFileRef() { return ((bitField0_ & 0x00000001) == 0x00000001); } - /** * optional int32 other_file_ref = 1; * @@ -16654,7 +15130,6 @@ public final class BatchReport { public int getOtherFileRef() { return otherFileRef_; } - /** * optional int32 other_file_ref = 1; * @@ -16668,7 +15143,6 @@ public final class BatchReport { onChanged(); return this; } - /** * optional int32 other_file_ref = 1; * @@ -16684,15 +15158,14 @@ public final class BatchReport { } private org.sonar.batch.protocol.output.BatchReport.Range range_ = org.sonar.batch.protocol.output.BatchReport.Range.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder rangeBuilder_; - + private com.google.protobuf.SingleFieldBuilder< + org.sonar.batch.protocol.output.BatchReport.Range, org.sonar.batch.protocol.output.BatchReport.Range.Builder, org.sonar.batch.protocol.output.BatchReport.RangeOrBuilder> rangeBuilder_; /** * optional .Range range = 2; */ public boolean hasRange() { return ((bitField0_ & 0x00000002) == 0x00000002); } - /** * optional .Range range = 2; */ @@ -16703,7 +15176,6 @@ public final class BatchReport { return rangeBuilder_.getMessage(); } } - /** * optional .Range range = 2; */ @@ -16720,12 +15192,11 @@ public final class BatchReport { bitField0_ |= 0x00000002; return this; } - /** * optional .Range range = 2; */ public Builder setRange( - org.sonar.batch.protocol.output.BatchReport.Range.Builder builderForValue) { + org.sonar.batch.protocol.output.BatchReport.Range.Builder builderForValue) { if (rangeBuilder_ == null) { range_ = builderForValue.build(); onChanged(); @@ -16735,14 +15206,13 @@ public final class BatchReport { bitField0_ |= 0x00000002; return this; } - /** * optional .Range range = 2; */ public Builder mergeRange(org.sonar.batch.protocol.output.BatchReport.Range value) { if (rangeBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && - range_ != org.sonar.batch.protocol.output.BatchReport.Range.getDefaultInstance()) { + range_ != org.sonar.batch.protocol.output.BatchReport.Range.getDefaultInstance()) { range_ = org.sonar.batch.protocol.output.BatchReport.Range.newBuilder(range_).mergeFrom(value).buildPartial(); } else { @@ -16755,7 +15225,6 @@ public final class BatchReport { bitField0_ |= 0x00000002; return this; } - /** * optional .Range range = 2; */ @@ -16769,7 +15238,6 @@ public final class BatchReport { bitField0_ = (bitField0_ & ~0x00000002); return this; } - /** * optional .Range range = 2; */ @@ -16778,7 +15246,6 @@ public final class BatchReport { onChanged(); return getRangeFieldBuilder().getBuilder(); } - /** * optional .Range range = 2; */ @@ -16789,26 +15256,24 @@ public final class BatchReport { return range_; } } - /** * optional .Range range = 2; */ private com.google.protobuf.SingleFieldBuilder< - org.sonar.batch.protocol.output.BatchReport.Range, org.sonar.batch.protocol.output.BatchReport.Range.Builder, org.sonar.batch.protocol.output.BatchReport.RangeOrBuilder> - getRangeFieldBuilder() { + org.sonar.batch.protocol.output.BatchReport.Range, org.sonar.batch.protocol.output.BatchReport.Range.Builder, org.sonar.batch.protocol.output.BatchReport.RangeOrBuilder> + getRangeFieldBuilder() { if (rangeBuilder_ == null) { rangeBuilder_ = new com.google.protobuf.SingleFieldBuilder< - org.sonar.batch.protocol.output.BatchReport.Range, org.sonar.batch.protocol.output.BatchReport.Range.Builder, org.sonar.batch.protocol.output.BatchReport.RangeOrBuilder>( - getRange(), - getParentForChildren(), - isClean()); + org.sonar.batch.protocol.output.BatchReport.Range, org.sonar.batch.protocol.output.BatchReport.Range.Builder, org.sonar.batch.protocol.output.BatchReport.RangeOrBuilder>( + getRange(), + getParentForChildren(), + isClean()); range_ = null; } return rangeBuilder_; } private java.lang.Object otherFileKey_ = ""; - /** * optional string other_file_key = 3; * @@ -16819,7 +15284,6 @@ public final class BatchReport { public boolean hasOtherFileKey() { return ((bitField0_ & 0x00000004) == 0x00000004); } - /** * optional string other_file_key = 3; * @@ -16831,7 +15295,7 @@ public final class BatchReport { java.lang.Object ref = otherFileKey_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { otherFileKey_ = s; @@ -16841,7 +15305,6 @@ public final class BatchReport { return (java.lang.String) ref; } } - /** * optional string other_file_key = 3; * @@ -16850,19 +15313,18 @@ public final class BatchReport { * */ public com.google.protobuf.ByteString - getOtherFileKeyBytes() { + getOtherFileKeyBytes() { java.lang.Object ref = otherFileKey_; 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); otherFileKey_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - /** * optional string other_file_key = 3; * @@ -16871,16 +15333,15 @@ public final class BatchReport { * */ public Builder setOtherFileKey( - java.lang.String value) { + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; otherFileKey_ = value; onChanged(); return this; } - /** * optional string other_file_key = 3; * @@ -16894,7 +15355,6 @@ public final class BatchReport { onChanged(); return this; } - /** * optional string other_file_key = 3; * @@ -16903,11 +15363,11 @@ public final class BatchReport { * */ public Builder setOtherFileKeyBytes( - com.google.protobuf.ByteString value) { + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; otherFileKey_ = value; onChanged(); return this; @@ -16925,8 +15385,8 @@ public final class BatchReport { } public interface DuplicationOrBuilder extends - // @@protoc_insertion_point(interface_extends:Duplication) - com.google.protobuf.MessageOrBuilder { + // @@protoc_insertion_point(interface_extends:Duplication) + com.google.protobuf.MessageOrBuilder { /** * optional .Range origin_position = 1; @@ -16936,7 +15396,6 @@ public final class BatchReport { * */ boolean hasOriginPosition(); - /** * optional .Range origin_position = 1; * @@ -16945,7 +15404,6 @@ public final class BatchReport { * */ org.sonar.batch.protocol.output.BatchReport.Range getOriginPosition(); - /** * optional .Range origin_position = 1; * @@ -16958,50 +15416,42 @@ public final class BatchReport { /** * repeated .Duplicate duplicate = 2; */ - java.util.List - getDuplicateList(); - + java.util.List + getDuplicateList(); /** * repeated .Duplicate duplicate = 2; */ org.sonar.batch.protocol.output.BatchReport.Duplicate getDuplicate(int index); - /** * repeated .Duplicate duplicate = 2; */ int getDuplicateCount(); - /** * repeated .Duplicate duplicate = 2; */ - java.util.List - getDuplicateOrBuilderList(); - + java.util.List + getDuplicateOrBuilderList(); /** * repeated .Duplicate duplicate = 2; */ org.sonar.batch.protocol.output.BatchReport.DuplicateOrBuilder getDuplicateOrBuilder( - int index); + int index); } /** * Protobuf type {@code Duplication} */ public static final class Duplication extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:Duplication) - DuplicationOrBuilder { + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:Duplication) + DuplicationOrBuilder { // Use Duplication.newBuilder() to construct. private Duplication(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } - - private Duplication(boolean noInit) { - this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } + private Duplication(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final Duplication defaultInstance; - public static Duplication getDefaultInstance() { return defaultInstance; } @@ -17011,21 +15461,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 Duplication( - 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) { @@ -17036,7 +15484,7 @@ public final class BatchReport { break; default: { if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { + extensionRegistry, tag)) { done = true; } break; @@ -17068,7 +15516,7 @@ 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)) { duplicate_ = java.util.Collections.unmodifiableList(duplicate_); @@ -17077,28 +15525,27 @@ public final class BatchReport { makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + getDescriptor() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Duplication_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { + internalGetFieldAccessorTable() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Duplication_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.batch.protocol.output.BatchReport.Duplication.class, org.sonar.batch.protocol.output.BatchReport.Duplication.Builder.class); + .ensureFieldAccessorsInitialized( + org.sonar.batch.protocol.output.BatchReport.Duplication.class, org.sonar.batch.protocol.output.BatchReport.Duplication.Builder.class); } public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Duplication parsePartialFrom( + new com.google.protobuf.AbstractParser() { + public Duplication parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Duplication(input, extensionRegistry); - } - }; + return new Duplication(input, extensionRegistry); + } + }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { @@ -17108,7 +15555,6 @@ public final class BatchReport { private int bitField0_; public static final int ORIGIN_POSITION_FIELD_NUMBER = 1; private org.sonar.batch.protocol.output.BatchReport.Range originPosition_; - /** * optional .Range origin_position = 1; * @@ -17119,7 +15565,6 @@ public final class BatchReport { public boolean hasOriginPosition() { return ((bitField0_ & 0x00000001) == 0x00000001); } - /** * optional .Range origin_position = 1; * @@ -17130,7 +15575,6 @@ public final class BatchReport { public org.sonar.batch.protocol.output.BatchReport.Range getOriginPosition() { return originPosition_; } - /** * optional .Range origin_position = 1; * @@ -17144,41 +15588,36 @@ public final class BatchReport { public static final int DUPLICATE_FIELD_NUMBER = 2; private java.util.List duplicate_; - /** * repeated .Duplicate duplicate = 2; */ public java.util.List getDuplicateList() { return duplicate_; } - /** * repeated .Duplicate duplicate = 2; */ - public java.util.List - getDuplicateOrBuilderList() { + public java.util.List + getDuplicateOrBuilderList() { return duplicate_; } - /** * repeated .Duplicate duplicate = 2; */ public int getDuplicateCount() { return duplicate_.size(); } - /** * repeated .Duplicate duplicate = 2; */ public org.sonar.batch.protocol.output.BatchReport.Duplicate getDuplicate(int index) { return duplicate_.get(index); } - /** * repeated .Duplicate duplicate = 2; */ public org.sonar.batch.protocol.output.BatchReport.DuplicateOrBuilder getDuplicateOrBuilder( - int index) { + int index) { return duplicate_.get(index); } @@ -17186,22 +15625,18 @@ public final class BatchReport { originPosition_ = org.sonar.batch.protocol.output.BatchReport.Range.getDefaultInstance(); duplicate_ = 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 true; + if (isInitialized == 0) return false; 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.writeMessage(1, originPosition_); @@ -17213,11 +15648,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)) { @@ -17234,115 +15667,95 @@ 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.Duplication 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.Duplication 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.Duplication 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.Duplication 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.Duplication 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.Duplication 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.Duplication 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.Duplication 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.Duplication 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.Duplication 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.Duplication 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 Duplication} */ public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:Duplication) - org.sonar.batch.protocol.output.BatchReport.DuplicationOrBuilder { + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:Duplication) + org.sonar.batch.protocol.output.BatchReport.DuplicationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + getDescriptor() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Duplication_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { + internalGetFieldAccessorTable() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Duplication_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.batch.protocol.output.BatchReport.Duplication.class, org.sonar.batch.protocol.output.BatchReport.Duplication.Builder.class); + .ensureFieldAccessorsInitialized( + org.sonar.batch.protocol.output.BatchReport.Duplication.class, org.sonar.batch.protocol.output.BatchReport.Duplication.Builder.class); } // Construct using org.sonar.batch.protocol.output.BatchReport.Duplication.newBuilder() @@ -17351,18 +15764,16 @@ 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) { getOriginPositionFieldBuilder(); getDuplicateFieldBuilder(); } } - private static Builder create() { return new Builder(); } @@ -17389,7 +15800,7 @@ public final class BatchReport { } public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { + getDescriptorForType() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Duplication_descriptor; } @@ -17433,7 +15844,7 @@ public final class BatchReport { public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.sonar.batch.protocol.output.BatchReport.Duplication) { - return mergeFrom((org.sonar.batch.protocol.output.BatchReport.Duplication) other); + return mergeFrom((org.sonar.batch.protocol.output.BatchReport.Duplication)other); } else { super.mergeFrom(other); return this; @@ -17441,8 +15852,7 @@ public final class BatchReport { } public Builder mergeFrom(org.sonar.batch.protocol.output.BatchReport.Duplication other) { - if (other == org.sonar.batch.protocol.output.BatchReport.Duplication.getDefaultInstance()) - return this; + if (other == org.sonar.batch.protocol.output.BatchReport.Duplication.getDefaultInstance()) return this; if (other.hasOriginPosition()) { mergeOriginPosition(other.getOriginPosition()); } @@ -17464,9 +15874,9 @@ public final class BatchReport { duplicateBuilder_ = null; duplicate_ = other.duplicate_; bitField0_ = (bitField0_ & ~0x00000002); - duplicateBuilder_ = + duplicateBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getDuplicateFieldBuilder() : null; + getDuplicateFieldBuilder() : null; } else { duplicateBuilder_.addAllMessages(other.duplicate_); } @@ -17481,9 +15891,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.Duplication parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); @@ -17497,12 +15907,11 @@ public final class BatchReport { } return this; } - private int bitField0_; private org.sonar.batch.protocol.output.BatchReport.Range originPosition_ = org.sonar.batch.protocol.output.BatchReport.Range.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder originPositionBuilder_; - + private com.google.protobuf.SingleFieldBuilder< + org.sonar.batch.protocol.output.BatchReport.Range, org.sonar.batch.protocol.output.BatchReport.Range.Builder, org.sonar.batch.protocol.output.BatchReport.RangeOrBuilder> originPositionBuilder_; /** * optional .Range origin_position = 1; * @@ -17513,7 +15922,6 @@ public final class BatchReport { public boolean hasOriginPosition() { return ((bitField0_ & 0x00000001) == 0x00000001); } - /** * optional .Range origin_position = 1; * @@ -17528,7 +15936,6 @@ public final class BatchReport { return originPositionBuilder_.getMessage(); } } - /** * optional .Range origin_position = 1; * @@ -17549,7 +15956,6 @@ public final class BatchReport { bitField0_ |= 0x00000001; return this; } - /** * optional .Range origin_position = 1; * @@ -17558,7 +15964,7 @@ public final class BatchReport { * */ public Builder setOriginPosition( - org.sonar.batch.protocol.output.BatchReport.Range.Builder builderForValue) { + org.sonar.batch.protocol.output.BatchReport.Range.Builder builderForValue) { if (originPositionBuilder_ == null) { originPosition_ = builderForValue.build(); onChanged(); @@ -17568,7 +15974,6 @@ public final class BatchReport { bitField0_ |= 0x00000001; return this; } - /** * optional .Range origin_position = 1; * @@ -17579,7 +15984,7 @@ public final class BatchReport { public Builder mergeOriginPosition(org.sonar.batch.protocol.output.BatchReport.Range value) { if (originPositionBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && - originPosition_ != org.sonar.batch.protocol.output.BatchReport.Range.getDefaultInstance()) { + originPosition_ != org.sonar.batch.protocol.output.BatchReport.Range.getDefaultInstance()) { originPosition_ = org.sonar.batch.protocol.output.BatchReport.Range.newBuilder(originPosition_).mergeFrom(value).buildPartial(); } else { @@ -17592,7 +15997,6 @@ public final class BatchReport { bitField0_ |= 0x00000001; return this; } - /** * optional .Range origin_position = 1; * @@ -17610,7 +16014,6 @@ public final class BatchReport { bitField0_ = (bitField0_ & ~0x00000001); return this; } - /** * optional .Range origin_position = 1; * @@ -17623,7 +16026,6 @@ public final class BatchReport { onChanged(); return getOriginPositionFieldBuilder().getBuilder(); } - /** * optional .Range origin_position = 1; * @@ -17638,7 +16040,6 @@ public final class BatchReport { return originPosition_; } } - /** * optional .Range origin_position = 1; * @@ -17647,14 +16048,14 @@ public final class BatchReport { * */ private com.google.protobuf.SingleFieldBuilder< - org.sonar.batch.protocol.output.BatchReport.Range, org.sonar.batch.protocol.output.BatchReport.Range.Builder, org.sonar.batch.protocol.output.BatchReport.RangeOrBuilder> - getOriginPositionFieldBuilder() { + org.sonar.batch.protocol.output.BatchReport.Range, org.sonar.batch.protocol.output.BatchReport.Range.Builder, org.sonar.batch.protocol.output.BatchReport.RangeOrBuilder> + getOriginPositionFieldBuilder() { if (originPositionBuilder_ == null) { originPositionBuilder_ = new com.google.protobuf.SingleFieldBuilder< - org.sonar.batch.protocol.output.BatchReport.Range, org.sonar.batch.protocol.output.BatchReport.Range.Builder, org.sonar.batch.protocol.output.BatchReport.RangeOrBuilder>( - getOriginPosition(), - getParentForChildren(), - isClean()); + org.sonar.batch.protocol.output.BatchReport.Range, org.sonar.batch.protocol.output.BatchReport.Range.Builder, org.sonar.batch.protocol.output.BatchReport.RangeOrBuilder>( + getOriginPosition(), + getParentForChildren(), + isClean()); originPosition_ = null; } return originPositionBuilder_; @@ -17662,15 +16063,15 @@ public final class BatchReport { private java.util.List duplicate_ = java.util.Collections.emptyList(); - private void ensureDuplicateIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { duplicate_ = new java.util.ArrayList(duplicate_); bitField0_ |= 0x00000002; - } + } } - private com.google.protobuf.RepeatedFieldBuilder duplicateBuilder_; + private com.google.protobuf.RepeatedFieldBuilder< + org.sonar.batch.protocol.output.BatchReport.Duplicate, org.sonar.batch.protocol.output.BatchReport.Duplicate.Builder, org.sonar.batch.protocol.output.BatchReport.DuplicateOrBuilder> duplicateBuilder_; /** * repeated .Duplicate duplicate = 2; @@ -17682,7 +16083,6 @@ public final class BatchReport { return duplicateBuilder_.getMessageList(); } } - /** * repeated .Duplicate duplicate = 2; */ @@ -17693,7 +16093,6 @@ public final class BatchReport { return duplicateBuilder_.getCount(); } } - /** * repeated .Duplicate duplicate = 2; */ @@ -17704,12 +16103,11 @@ public final class BatchReport { return duplicateBuilder_.getMessage(index); } } - /** * repeated .Duplicate duplicate = 2; */ public Builder setDuplicate( - int index, org.sonar.batch.protocol.output.BatchReport.Duplicate value) { + int index, org.sonar.batch.protocol.output.BatchReport.Duplicate value) { if (duplicateBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -17722,12 +16120,11 @@ public final class BatchReport { } return this; } - /** * repeated .Duplicate duplicate = 2; */ public Builder setDuplicate( - int index, org.sonar.batch.protocol.output.BatchReport.Duplicate.Builder builderForValue) { + int index, org.sonar.batch.protocol.output.BatchReport.Duplicate.Builder builderForValue) { if (duplicateBuilder_ == null) { ensureDuplicateIsMutable(); duplicate_.set(index, builderForValue.build()); @@ -17737,7 +16134,6 @@ public final class BatchReport { } return this; } - /** * repeated .Duplicate duplicate = 2; */ @@ -17754,12 +16150,11 @@ public final class BatchReport { } return this; } - /** * repeated .Duplicate duplicate = 2; */ public Builder addDuplicate( - int index, org.sonar.batch.protocol.output.BatchReport.Duplicate value) { + int index, org.sonar.batch.protocol.output.BatchReport.Duplicate value) { if (duplicateBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -17772,12 +16167,11 @@ public final class BatchReport { } return this; } - /** * repeated .Duplicate duplicate = 2; */ public Builder addDuplicate( - org.sonar.batch.protocol.output.BatchReport.Duplicate.Builder builderForValue) { + org.sonar.batch.protocol.output.BatchReport.Duplicate.Builder builderForValue) { if (duplicateBuilder_ == null) { ensureDuplicateIsMutable(); duplicate_.add(builderForValue.build()); @@ -17787,12 +16181,11 @@ public final class BatchReport { } return this; } - /** * repeated .Duplicate duplicate = 2; */ public Builder addDuplicate( - int index, org.sonar.batch.protocol.output.BatchReport.Duplicate.Builder builderForValue) { + int index, org.sonar.batch.protocol.output.BatchReport.Duplicate.Builder builderForValue) { if (duplicateBuilder_ == null) { ensureDuplicateIsMutable(); duplicate_.add(index, builderForValue.build()); @@ -17802,23 +16195,21 @@ public final class BatchReport { } return this; } - /** * repeated .Duplicate duplicate = 2; */ public Builder addAllDuplicate( - java.lang.Iterable values) { + java.lang.Iterable values) { if (duplicateBuilder_ == null) { ensureDuplicateIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, duplicate_); + values, duplicate_); onChanged(); } else { duplicateBuilder_.addAllMessages(values); } return this; } - /** * repeated .Duplicate duplicate = 2; */ @@ -17832,7 +16223,6 @@ public final class BatchReport { } return this; } - /** * repeated .Duplicate duplicate = 2; */ @@ -17846,74 +16236,66 @@ public final class BatchReport { } return this; } - /** * repeated .Duplicate duplicate = 2; */ public org.sonar.batch.protocol.output.BatchReport.Duplicate.Builder getDuplicateBuilder( - int index) { + int index) { return getDuplicateFieldBuilder().getBuilder(index); } - /** * repeated .Duplicate duplicate = 2; */ public org.sonar.batch.protocol.output.BatchReport.DuplicateOrBuilder getDuplicateOrBuilder( - int index) { + int index) { if (duplicateBuilder_ == null) { - return duplicate_.get(index); - } else { + return duplicate_.get(index); } else { return duplicateBuilder_.getMessageOrBuilder(index); } } - /** * repeated .Duplicate duplicate = 2; */ - public java.util.List - getDuplicateOrBuilderList() { + public java.util.List + getDuplicateOrBuilderList() { if (duplicateBuilder_ != null) { return duplicateBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(duplicate_); } } - /** * repeated .Duplicate duplicate = 2; */ public org.sonar.batch.protocol.output.BatchReport.Duplicate.Builder addDuplicateBuilder() { return getDuplicateFieldBuilder().addBuilder( - org.sonar.batch.protocol.output.BatchReport.Duplicate.getDefaultInstance()); + org.sonar.batch.protocol.output.BatchReport.Duplicate.getDefaultInstance()); } - /** * repeated .Duplicate duplicate = 2; */ public org.sonar.batch.protocol.output.BatchReport.Duplicate.Builder addDuplicateBuilder( - int index) { + int index) { return getDuplicateFieldBuilder().addBuilder( - index, org.sonar.batch.protocol.output.BatchReport.Duplicate.getDefaultInstance()); + index, org.sonar.batch.protocol.output.BatchReport.Duplicate.getDefaultInstance()); } - /** * repeated .Duplicate duplicate = 2; */ - public java.util.List - getDuplicateBuilderList() { + public java.util.List + getDuplicateBuilderList() { return getDuplicateFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilder< - org.sonar.batch.protocol.output.BatchReport.Duplicate, org.sonar.batch.protocol.output.BatchReport.Duplicate.Builder, org.sonar.batch.protocol.output.BatchReport.DuplicateOrBuilder> - getDuplicateFieldBuilder() { + org.sonar.batch.protocol.output.BatchReport.Duplicate, org.sonar.batch.protocol.output.BatchReport.Duplicate.Builder, org.sonar.batch.protocol.output.BatchReport.DuplicateOrBuilder> + getDuplicateFieldBuilder() { if (duplicateBuilder_ == null) { duplicateBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - org.sonar.batch.protocol.output.BatchReport.Duplicate, org.sonar.batch.protocol.output.BatchReport.Duplicate.Builder, org.sonar.batch.protocol.output.BatchReport.DuplicateOrBuilder>( - duplicate_, - ((bitField0_ & 0x00000002) == 0x00000002), - getParentForChildren(), - isClean()); + org.sonar.batch.protocol.output.BatchReport.Duplicate, org.sonar.batch.protocol.output.BatchReport.Duplicate.Builder, org.sonar.batch.protocol.output.BatchReport.DuplicateOrBuilder>( + duplicate_, + ((bitField0_ & 0x00000002) == 0x00000002), + getParentForChildren(), + isClean()); duplicate_ = null; } return duplicateBuilder_; @@ -17931,14 +16313,13 @@ public final class BatchReport { } public interface DuplicationsOrBuilder extends - // @@protoc_insertion_point(interface_extends:Duplications) - com.google.protobuf.MessageOrBuilder { + // @@protoc_insertion_point(interface_extends:Duplications) + com.google.protobuf.MessageOrBuilder { /** * optional int32 component_ref = 1; */ boolean hasComponentRef(); - /** * optional int32 component_ref = 1; */ @@ -17947,50 +16328,42 @@ public final class BatchReport { /** * repeated .Duplication duplication = 2; */ - java.util.List - getDuplicationList(); - + java.util.List + getDuplicationList(); /** * repeated .Duplication duplication = 2; */ org.sonar.batch.protocol.output.BatchReport.Duplication getDuplication(int index); - /** * repeated .Duplication duplication = 2; */ int getDuplicationCount(); - /** * repeated .Duplication duplication = 2; */ - java.util.List - getDuplicationOrBuilderList(); - + java.util.List + getDuplicationOrBuilderList(); /** * repeated .Duplication duplication = 2; */ org.sonar.batch.protocol.output.BatchReport.DuplicationOrBuilder getDuplicationOrBuilder( - int index); + int index); } /** * Protobuf type {@code Duplications} */ public static final class Duplications extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:Duplications) - DuplicationsOrBuilder { + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:Duplications) + DuplicationsOrBuilder { // Use Duplications.newBuilder() to construct. private Duplications(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } - - private Duplications(boolean noInit) { - this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } + private Duplications(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final Duplications defaultInstance; - public static Duplications getDefaultInstance() { return defaultInstance; } @@ -18000,21 +16373,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 Duplications( - 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) { @@ -18025,7 +16396,7 @@ public final class BatchReport { break; default: { if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { + extensionRegistry, tag)) { done = true; } break; @@ -18049,7 +16420,7 @@ 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)) { duplication_ = java.util.Collections.unmodifiableList(duplication_); @@ -18058,28 +16429,27 @@ public final class BatchReport { makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + getDescriptor() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Duplications_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { + internalGetFieldAccessorTable() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Duplications_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.batch.protocol.output.BatchReport.Duplications.class, org.sonar.batch.protocol.output.BatchReport.Duplications.Builder.class); + .ensureFieldAccessorsInitialized( + org.sonar.batch.protocol.output.BatchReport.Duplications.class, org.sonar.batch.protocol.output.BatchReport.Duplications.Builder.class); } public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Duplications parsePartialFrom( + new com.google.protobuf.AbstractParser() { + public Duplications parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Duplications(input, extensionRegistry); - } - }; + return new Duplications(input, extensionRegistry); + } + }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { @@ -18089,14 +16459,12 @@ public final class BatchReport { private int bitField0_; 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; */ @@ -18106,41 +16474,36 @@ public final class BatchReport { public static final int DUPLICATION_FIELD_NUMBER = 2; private java.util.List duplication_; - /** * repeated .Duplication duplication = 2; */ public java.util.List getDuplicationList() { return duplication_; } - /** * repeated .Duplication duplication = 2; */ - public java.util.List - getDuplicationOrBuilderList() { + public java.util.List + getDuplicationOrBuilderList() { return duplication_; } - /** * repeated .Duplication duplication = 2; */ public int getDuplicationCount() { return duplication_.size(); } - /** * repeated .Duplication duplication = 2; */ public org.sonar.batch.protocol.output.BatchReport.Duplication getDuplication(int index) { return duplication_.get(index); } - /** * repeated .Duplication duplication = 2; */ public org.sonar.batch.protocol.output.BatchReport.DuplicationOrBuilder getDuplicationOrBuilder( - int index) { + int index) { return duplication_.get(index); } @@ -18148,22 +16511,18 @@ public final class BatchReport { componentRef_ = 0; 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 true; + if (isInitialized == 0) return false; 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_); @@ -18175,11 +16534,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)) { @@ -18196,115 +16553,95 @@ 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.Duplications 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.Duplications 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.Duplications 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.Duplications 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.Duplications 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.Duplications 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.Duplications 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.Duplications 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.Duplications 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.Duplications 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.Duplications 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 Duplications} */ public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:Duplications) - org.sonar.batch.protocol.output.BatchReport.DuplicationsOrBuilder { + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:Duplications) + org.sonar.batch.protocol.output.BatchReport.DuplicationsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + getDescriptor() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Duplications_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { + internalGetFieldAccessorTable() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Duplications_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.batch.protocol.output.BatchReport.Duplications.class, org.sonar.batch.protocol.output.BatchReport.Duplications.Builder.class); + .ensureFieldAccessorsInitialized( + org.sonar.batch.protocol.output.BatchReport.Duplications.class, org.sonar.batch.protocol.output.BatchReport.Duplications.Builder.class); } // Construct using org.sonar.batch.protocol.output.BatchReport.Duplications.newBuilder() @@ -18313,17 +16650,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) { getDuplicationFieldBuilder(); } } - private static Builder create() { return new Builder(); } @@ -18346,7 +16681,7 @@ public final class BatchReport { } public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { + getDescriptorForType() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Duplications_descriptor; } @@ -18386,7 +16721,7 @@ public final class BatchReport { public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.sonar.batch.protocol.output.BatchReport.Duplications) { - return mergeFrom((org.sonar.batch.protocol.output.BatchReport.Duplications) other); + return mergeFrom((org.sonar.batch.protocol.output.BatchReport.Duplications)other); } else { super.mergeFrom(other); return this; @@ -18394,8 +16729,7 @@ public final class BatchReport { } public Builder mergeFrom(org.sonar.batch.protocol.output.BatchReport.Duplications other) { - if (other == org.sonar.batch.protocol.output.BatchReport.Duplications.getDefaultInstance()) - return this; + if (other == org.sonar.batch.protocol.output.BatchReport.Duplications.getDefaultInstance()) return this; if (other.hasComponentRef()) { setComponentRef(other.getComponentRef()); } @@ -18417,9 +16751,9 @@ public final class BatchReport { duplicationBuilder_ = null; duplication_ = other.duplication_; bitField0_ = (bitField0_ & ~0x00000002); - duplicationBuilder_ = + duplicationBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getDuplicationFieldBuilder() : null; + getDuplicationFieldBuilder() : null; } else { duplicationBuilder_.addAllMessages(other.duplication_); } @@ -18434,9 +16768,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.Duplications parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); @@ -18450,25 +16784,21 @@ public final class BatchReport { } return this; } - private int bitField0_; - private int componentRef_; - + 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; */ @@ -18478,7 +16808,6 @@ public final class BatchReport { onChanged(); return this; } - /** * optional int32 component_ref = 1; */ @@ -18491,15 +16820,15 @@ public final class BatchReport { private java.util.List duplication_ = java.util.Collections.emptyList(); - private void ensureDuplicationIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { duplication_ = new java.util.ArrayList(duplication_); bitField0_ |= 0x00000002; - } + } } - private com.google.protobuf.RepeatedFieldBuilder duplicationBuilder_; + private com.google.protobuf.RepeatedFieldBuilder< + org.sonar.batch.protocol.output.BatchReport.Duplication, org.sonar.batch.protocol.output.BatchReport.Duplication.Builder, org.sonar.batch.protocol.output.BatchReport.DuplicationOrBuilder> duplicationBuilder_; /** * repeated .Duplication duplication = 2; @@ -18511,7 +16840,6 @@ public final class BatchReport { return duplicationBuilder_.getMessageList(); } } - /** * repeated .Duplication duplication = 2; */ @@ -18522,7 +16850,6 @@ public final class BatchReport { return duplicationBuilder_.getCount(); } } - /** * repeated .Duplication duplication = 2; */ @@ -18533,12 +16860,11 @@ public final class BatchReport { return duplicationBuilder_.getMessage(index); } } - /** * repeated .Duplication duplication = 2; */ public Builder setDuplication( - int index, org.sonar.batch.protocol.output.BatchReport.Duplication value) { + int index, org.sonar.batch.protocol.output.BatchReport.Duplication value) { if (duplicationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -18551,12 +16877,11 @@ public final class BatchReport { } return this; } - /** * repeated .Duplication duplication = 2; */ public Builder setDuplication( - int index, org.sonar.batch.protocol.output.BatchReport.Duplication.Builder builderForValue) { + int index, org.sonar.batch.protocol.output.BatchReport.Duplication.Builder builderForValue) { if (duplicationBuilder_ == null) { ensureDuplicationIsMutable(); duplication_.set(index, builderForValue.build()); @@ -18566,7 +16891,6 @@ public final class BatchReport { } return this; } - /** * repeated .Duplication duplication = 2; */ @@ -18583,12 +16907,11 @@ public final class BatchReport { } return this; } - /** * repeated .Duplication duplication = 2; */ public Builder addDuplication( - int index, org.sonar.batch.protocol.output.BatchReport.Duplication value) { + int index, org.sonar.batch.protocol.output.BatchReport.Duplication value) { if (duplicationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -18601,12 +16924,11 @@ public final class BatchReport { } return this; } - /** * repeated .Duplication duplication = 2; */ public Builder addDuplication( - org.sonar.batch.protocol.output.BatchReport.Duplication.Builder builderForValue) { + org.sonar.batch.protocol.output.BatchReport.Duplication.Builder builderForValue) { if (duplicationBuilder_ == null) { ensureDuplicationIsMutable(); duplication_.add(builderForValue.build()); @@ -18616,12 +16938,11 @@ public final class BatchReport { } return this; } - /** * repeated .Duplication duplication = 2; */ public Builder addDuplication( - int index, org.sonar.batch.protocol.output.BatchReport.Duplication.Builder builderForValue) { + int index, org.sonar.batch.protocol.output.BatchReport.Duplication.Builder builderForValue) { if (duplicationBuilder_ == null) { ensureDuplicationIsMutable(); duplication_.add(index, builderForValue.build()); @@ -18631,23 +16952,21 @@ public final class BatchReport { } return this; } - /** * repeated .Duplication duplication = 2; */ public Builder addAllDuplication( - java.lang.Iterable values) { + java.lang.Iterable values) { if (duplicationBuilder_ == null) { ensureDuplicationIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, duplication_); + values, duplication_); onChanged(); } else { duplicationBuilder_.addAllMessages(values); } return this; } - /** * repeated .Duplication duplication = 2; */ @@ -18661,7 +16980,6 @@ public final class BatchReport { } return this; } - /** * repeated .Duplication duplication = 2; */ @@ -18675,74 +16993,66 @@ public final class BatchReport { } return this; } - /** * repeated .Duplication duplication = 2; */ public org.sonar.batch.protocol.output.BatchReport.Duplication.Builder getDuplicationBuilder( - int index) { + int index) { return getDuplicationFieldBuilder().getBuilder(index); } - /** * repeated .Duplication duplication = 2; */ public org.sonar.batch.protocol.output.BatchReport.DuplicationOrBuilder getDuplicationOrBuilder( - int index) { + int index) { if (duplicationBuilder_ == null) { - return duplication_.get(index); - } else { + return duplication_.get(index); } else { return duplicationBuilder_.getMessageOrBuilder(index); } } - /** * repeated .Duplication duplication = 2; */ - public java.util.List - getDuplicationOrBuilderList() { + public java.util.List + getDuplicationOrBuilderList() { if (duplicationBuilder_ != null) { return duplicationBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(duplication_); } } - /** * repeated .Duplication duplication = 2; */ public org.sonar.batch.protocol.output.BatchReport.Duplication.Builder addDuplicationBuilder() { return getDuplicationFieldBuilder().addBuilder( - org.sonar.batch.protocol.output.BatchReport.Duplication.getDefaultInstance()); + org.sonar.batch.protocol.output.BatchReport.Duplication.getDefaultInstance()); } - /** * repeated .Duplication duplication = 2; */ public org.sonar.batch.protocol.output.BatchReport.Duplication.Builder addDuplicationBuilder( - int index) { + int index) { return getDuplicationFieldBuilder().addBuilder( - index, org.sonar.batch.protocol.output.BatchReport.Duplication.getDefaultInstance()); + index, org.sonar.batch.protocol.output.BatchReport.Duplication.getDefaultInstance()); } - /** * repeated .Duplication duplication = 2; */ - public java.util.List - getDuplicationBuilderList() { + public java.util.List + getDuplicationBuilderList() { return getDuplicationFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilder< - org.sonar.batch.protocol.output.BatchReport.Duplication, org.sonar.batch.protocol.output.BatchReport.Duplication.Builder, org.sonar.batch.protocol.output.BatchReport.DuplicationOrBuilder> - getDuplicationFieldBuilder() { + org.sonar.batch.protocol.output.BatchReport.Duplication, org.sonar.batch.protocol.output.BatchReport.Duplication.Builder, org.sonar.batch.protocol.output.BatchReport.DuplicationOrBuilder> + getDuplicationFieldBuilder() { if (duplicationBuilder_ == null) { duplicationBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - org.sonar.batch.protocol.output.BatchReport.Duplication, org.sonar.batch.protocol.output.BatchReport.Duplication.Builder, org.sonar.batch.protocol.output.BatchReport.DuplicationOrBuilder>( - duplication_, - ((bitField0_ & 0x00000002) == 0x00000002), - getParentForChildren(), - isClean()); + org.sonar.batch.protocol.output.BatchReport.Duplication, org.sonar.batch.protocol.output.BatchReport.Duplication.Builder, org.sonar.batch.protocol.output.BatchReport.DuplicationOrBuilder>( + duplication_, + ((bitField0_ & 0x00000002) == 0x00000002), + getParentForChildren(), + isClean()); duplication_ = null; } return duplicationBuilder_; @@ -18760,8 +17070,8 @@ public final class BatchReport { } public interface RangeOrBuilder extends - // @@protoc_insertion_point(interface_extends:Range) - com.google.protobuf.MessageOrBuilder { + // @@protoc_insertion_point(interface_extends:Range) + com.google.protobuf.MessageOrBuilder { /** * optional int32 start_line = 1; @@ -18771,7 +17081,6 @@ public final class BatchReport { * */ boolean hasStartLine(); - /** * optional int32 start_line = 1; * @@ -18789,7 +17098,6 @@ public final class BatchReport { * */ boolean hasEndLine(); - /** * optional int32 end_line = 2; * @@ -18807,7 +17115,6 @@ public final class BatchReport { * */ boolean hasStartOffset(); - /** * optional int32 start_offset = 3; * @@ -18825,7 +17132,6 @@ public final class BatchReport { * */ boolean hasEndOffset(); - /** * optional int32 end_offset = 4; * @@ -18843,21 +17149,17 @@ public final class BatchReport { * */ public static final class Range extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:Range) - RangeOrBuilder { + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:Range) + RangeOrBuilder { // Use Range.newBuilder() to construct. private Range(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } - - private Range(boolean noInit) { - this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } + private Range(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final Range defaultInstance; - public static Range getDefaultInstance() { return defaultInstance; } @@ -18867,21 +17169,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 Range( - 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) { @@ -18892,7 +17192,7 @@ public final class BatchReport { break; default: { if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { + extensionRegistry, tag)) { done = true; } break; @@ -18923,34 +17223,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_Range_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { + internalGetFieldAccessorTable() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Range_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.batch.protocol.output.BatchReport.Range.class, org.sonar.batch.protocol.output.BatchReport.Range.Builder.class); + .ensureFieldAccessorsInitialized( + org.sonar.batch.protocol.output.BatchReport.Range.class, org.sonar.batch.protocol.output.BatchReport.Range.Builder.class); } public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Range parsePartialFrom( + new com.google.protobuf.AbstractParser() { + public Range parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Range(input, extensionRegistry); - } - }; + return new Range(input, extensionRegistry); + } + }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { @@ -18960,7 +17259,6 @@ public final class BatchReport { private int bitField0_; public static final int START_LINE_FIELD_NUMBER = 1; private int startLine_; - /** * optional int32 start_line = 1; * @@ -18971,7 +17269,6 @@ public final class BatchReport { public boolean hasStartLine() { return ((bitField0_ & 0x00000001) == 0x00000001); } - /** * optional int32 start_line = 1; * @@ -18985,7 +17282,6 @@ public final class BatchReport { public static final int END_LINE_FIELD_NUMBER = 2; private int endLine_; - /** * optional int32 end_line = 2; * @@ -18996,7 +17292,6 @@ public final class BatchReport { public boolean hasEndLine() { return ((bitField0_ & 0x00000002) == 0x00000002); } - /** * optional int32 end_line = 2; * @@ -19010,7 +17305,6 @@ public final class BatchReport { public static final int START_OFFSET_FIELD_NUMBER = 3; private int startOffset_; - /** * optional int32 start_offset = 3; * @@ -19021,7 +17315,6 @@ public final class BatchReport { public boolean hasStartOffset() { return ((bitField0_ & 0x00000004) == 0x00000004); } - /** * optional int32 start_offset = 3; * @@ -19035,7 +17328,6 @@ public final class BatchReport { public static final int END_OFFSET_FIELD_NUMBER = 4; private int endOffset_; - /** * optional int32 end_offset = 4; * @@ -19046,7 +17338,6 @@ public final class BatchReport { public boolean hasEndOffset() { return ((bitField0_ & 0x00000008) == 0x00000008); } - /** * optional int32 end_offset = 4; * @@ -19064,22 +17355,18 @@ public final class BatchReport { startOffset_ = 0; endOffset_ = 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 true; + if (isInitialized == 0) return false; 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, startLine_); @@ -19097,11 +17384,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)) { @@ -19126,98 +17411,78 @@ 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.Range 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.Range 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.Range 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.Range 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.Range 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.Range 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.Range 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.Range 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.Range 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.Range 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.Range 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 Range} * @@ -19226,19 +17491,19 @@ public final class BatchReport { * */ public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:Range) - org.sonar.batch.protocol.output.BatchReport.RangeOrBuilder { + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:Range) + org.sonar.batch.protocol.output.BatchReport.RangeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + getDescriptor() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Range_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { + internalGetFieldAccessorTable() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Range_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.batch.protocol.output.BatchReport.Range.class, org.sonar.batch.protocol.output.BatchReport.Range.Builder.class); + .ensureFieldAccessorsInitialized( + org.sonar.batch.protocol.output.BatchReport.Range.class, org.sonar.batch.protocol.output.BatchReport.Range.Builder.class); } // Construct using org.sonar.batch.protocol.output.BatchReport.Range.newBuilder() @@ -19247,16 +17512,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(); } @@ -19279,7 +17542,7 @@ public final class BatchReport { } public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { + getDescriptorForType() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Range_descriptor; } @@ -19322,7 +17585,7 @@ public final class BatchReport { public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.sonar.batch.protocol.output.BatchReport.Range) { - return mergeFrom((org.sonar.batch.protocol.output.BatchReport.Range) other); + return mergeFrom((org.sonar.batch.protocol.output.BatchReport.Range)other); } else { super.mergeFrom(other); return this; @@ -19330,8 +17593,7 @@ public final class BatchReport { } public Builder mergeFrom(org.sonar.batch.protocol.output.BatchReport.Range other) { - if (other == org.sonar.batch.protocol.output.BatchReport.Range.getDefaultInstance()) - return this; + if (other == org.sonar.batch.protocol.output.BatchReport.Range.getDefaultInstance()) return this; if (other.hasStartLine()) { setStartLine(other.getStartLine()); } @@ -19353,9 +17615,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.Range parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); @@ -19369,11 +17631,9 @@ public final class BatchReport { } return this; } - private int bitField0_; - private int startLine_; - + private int startLine_ ; /** * optional int32 start_line = 1; * @@ -19384,7 +17644,6 @@ public final class BatchReport { public boolean hasStartLine() { return ((bitField0_ & 0x00000001) == 0x00000001); } - /** * optional int32 start_line = 1; * @@ -19395,7 +17654,6 @@ public final class BatchReport { public int getStartLine() { return startLine_; } - /** * optional int32 start_line = 1; * @@ -19409,7 +17667,6 @@ public final class BatchReport { onChanged(); return this; } - /** * optional int32 start_line = 1; * @@ -19424,8 +17681,7 @@ public final class BatchReport { return this; } - private int endLine_; - + private int endLine_ ; /** * optional int32 end_line = 2; * @@ -19436,7 +17692,6 @@ public final class BatchReport { public boolean hasEndLine() { return ((bitField0_ & 0x00000002) == 0x00000002); } - /** * optional int32 end_line = 2; * @@ -19447,7 +17702,6 @@ public final class BatchReport { public int getEndLine() { return endLine_; } - /** * optional int32 end_line = 2; * @@ -19461,7 +17715,6 @@ public final class BatchReport { onChanged(); return this; } - /** * optional int32 end_line = 2; * @@ -19476,8 +17729,7 @@ public final class BatchReport { return this; } - private int startOffset_; - + private int startOffset_ ; /** * optional int32 start_offset = 3; * @@ -19488,7 +17740,6 @@ public final class BatchReport { public boolean hasStartOffset() { return ((bitField0_ & 0x00000004) == 0x00000004); } - /** * optional int32 start_offset = 3; * @@ -19499,7 +17750,6 @@ public final class BatchReport { public int getStartOffset() { return startOffset_; } - /** * optional int32 start_offset = 3; * @@ -19513,7 +17763,6 @@ public final class BatchReport { onChanged(); return this; } - /** * optional int32 start_offset = 3; * @@ -19528,8 +17777,7 @@ public final class BatchReport { return this; } - private int endOffset_; - + private int endOffset_ ; /** * optional int32 end_offset = 4; * @@ -19540,7 +17788,6 @@ public final class BatchReport { public boolean hasEndOffset() { return ((bitField0_ & 0x00000008) == 0x00000008); } - /** * optional int32 end_offset = 4; * @@ -19551,7 +17798,6 @@ public final class BatchReport { public int getEndOffset() { return endOffset_; } - /** * optional int32 end_offset = 4; * @@ -19565,7 +17811,6 @@ public final class BatchReport { onChanged(); return this; } - /** * optional int32 end_offset = 4; * @@ -19592,14 +17837,13 @@ public final class BatchReport { } public interface SymbolsOrBuilder extends - // @@protoc_insertion_point(interface_extends:Symbols) - com.google.protobuf.MessageOrBuilder { + // @@protoc_insertion_point(interface_extends:Symbols) + com.google.protobuf.MessageOrBuilder { /** * optional int32 file_ref = 1; */ boolean hasFileRef(); - /** * optional int32 file_ref = 1; */ @@ -19608,50 +17852,42 @@ public final class BatchReport { /** * repeated .Symbols.Symbol symbol = 2; */ - java.util.List - getSymbolList(); - + java.util.List + getSymbolList(); /** * repeated .Symbols.Symbol symbol = 2; */ org.sonar.batch.protocol.output.BatchReport.Symbols.Symbol getSymbol(int index); - /** * repeated .Symbols.Symbol symbol = 2; */ int getSymbolCount(); - /** * repeated .Symbols.Symbol symbol = 2; */ - java.util.List - getSymbolOrBuilderList(); - + java.util.List + getSymbolOrBuilderList(); /** * repeated .Symbols.Symbol symbol = 2; */ org.sonar.batch.protocol.output.BatchReport.Symbols.SymbolOrBuilder getSymbolOrBuilder( - int index); + int index); } /** * Protobuf type {@code Symbols} */ public static final class Symbols extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:Symbols) - SymbolsOrBuilder { + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:Symbols) + SymbolsOrBuilder { // Use Symbols.newBuilder() to construct. private Symbols(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } - - private Symbols(boolean noInit) { - this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } + private Symbols(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final Symbols defaultInstance; - public static Symbols getDefaultInstance() { return defaultInstance; } @@ -19661,21 +17897,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 Symbols( - 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) { @@ -19686,7 +17920,7 @@ public final class BatchReport { break; default: { if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { + extensionRegistry, tag)) { done = true; } break; @@ -19710,7 +17944,7 @@ 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)) { symbol_ = java.util.Collections.unmodifiableList(symbol_); @@ -19719,28 +17953,27 @@ public final class BatchReport { makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + getDescriptor() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Symbols_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { + internalGetFieldAccessorTable() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Symbols_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.batch.protocol.output.BatchReport.Symbols.class, org.sonar.batch.protocol.output.BatchReport.Symbols.Builder.class); + .ensureFieldAccessorsInitialized( + org.sonar.batch.protocol.output.BatchReport.Symbols.class, org.sonar.batch.protocol.output.BatchReport.Symbols.Builder.class); } public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Symbols parsePartialFrom( + new com.google.protobuf.AbstractParser() { + public Symbols parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Symbols(input, extensionRegistry); - } - }; + return new Symbols(input, extensionRegistry); + } + }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { @@ -19748,19 +17981,17 @@ public final class BatchReport { } public interface SymbolOrBuilder extends - // @@protoc_insertion_point(interface_extends:Symbols.Symbol) - com.google.protobuf.MessageOrBuilder { + // @@protoc_insertion_point(interface_extends:Symbols.Symbol) + com.google.protobuf.MessageOrBuilder { /** * optional .Range declaration = 1; */ boolean hasDeclaration(); - /** * optional .Range declaration = 1; */ org.sonar.batch.protocol.output.BatchReport.Range getDeclaration(); - /** * optional .Range declaration = 1; */ @@ -19769,50 +18000,42 @@ public final class BatchReport { /** * repeated .Range reference = 2; */ - java.util.List - getReferenceList(); - + java.util.List + getReferenceList(); /** * repeated .Range reference = 2; */ org.sonar.batch.protocol.output.BatchReport.Range getReference(int index); - /** * repeated .Range reference = 2; */ int getReferenceCount(); - /** * repeated .Range reference = 2; */ - java.util.List - getReferenceOrBuilderList(); - + java.util.List + getReferenceOrBuilderList(); /** * repeated .Range reference = 2; */ org.sonar.batch.protocol.output.BatchReport.RangeOrBuilder getReferenceOrBuilder( - int index); + int index); } /** * Protobuf type {@code Symbols.Symbol} */ public static final class Symbol extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:Symbols.Symbol) - SymbolOrBuilder { + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:Symbols.Symbol) + SymbolOrBuilder { // Use Symbol.newBuilder() to construct. private Symbol(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } - - private Symbol(boolean noInit) { - this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } + private Symbol(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final Symbol defaultInstance; - public static Symbol getDefaultInstance() { return defaultInstance; } @@ -19822,21 +18045,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 Symbol( - 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) { @@ -19847,7 +18068,7 @@ public final class BatchReport { break; default: { if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { + extensionRegistry, tag)) { done = true; } break; @@ -19879,7 +18100,7 @@ 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)) { reference_ = java.util.Collections.unmodifiableList(reference_); @@ -19888,28 +18109,27 @@ public final class BatchReport { makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + getDescriptor() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Symbols_Symbol_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { + internalGetFieldAccessorTable() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Symbols_Symbol_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.batch.protocol.output.BatchReport.Symbols.Symbol.class, org.sonar.batch.protocol.output.BatchReport.Symbols.Symbol.Builder.class); + .ensureFieldAccessorsInitialized( + org.sonar.batch.protocol.output.BatchReport.Symbols.Symbol.class, org.sonar.batch.protocol.output.BatchReport.Symbols.Symbol.Builder.class); } public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Symbol parsePartialFrom( + new com.google.protobuf.AbstractParser() { + public Symbol parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Symbol(input, extensionRegistry); - } - }; + return new Symbol(input, extensionRegistry); + } + }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { @@ -19919,21 +18139,18 @@ public final class BatchReport { private int bitField0_; public static final int DECLARATION_FIELD_NUMBER = 1; private org.sonar.batch.protocol.output.BatchReport.Range declaration_; - /** * optional .Range declaration = 1; */ public boolean hasDeclaration() { return ((bitField0_ & 0x00000001) == 0x00000001); } - /** * optional .Range declaration = 1; */ public org.sonar.batch.protocol.output.BatchReport.Range getDeclaration() { return declaration_; } - /** * optional .Range declaration = 1; */ @@ -19943,41 +18160,36 @@ public final class BatchReport { public static final int REFERENCE_FIELD_NUMBER = 2; private java.util.List reference_; - /** * repeated .Range reference = 2; */ public java.util.List getReferenceList() { return reference_; } - /** * repeated .Range reference = 2; */ - public java.util.List - getReferenceOrBuilderList() { + public java.util.List + getReferenceOrBuilderList() { return reference_; } - /** * repeated .Range reference = 2; */ public int getReferenceCount() { return reference_.size(); } - /** * repeated .Range reference = 2; */ public org.sonar.batch.protocol.output.BatchReport.Range getReference(int index) { return reference_.get(index); } - /** * repeated .Range reference = 2; */ public org.sonar.batch.protocol.output.BatchReport.RangeOrBuilder getReferenceOrBuilder( - int index) { + int index) { return reference_.get(index); } @@ -19985,22 +18197,18 @@ public final class BatchReport { declaration_ = org.sonar.batch.protocol.output.BatchReport.Range.getDefaultInstance(); reference_ = 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 true; + if (isInitialized == 0) return false; 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.writeMessage(1, declaration_); @@ -20012,11 +18220,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)) { @@ -20033,115 +18239,95 @@ 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.Symbols.Symbol 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.Symbols.Symbol 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.Symbols.Symbol 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.Symbols.Symbol 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.Symbols.Symbol 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.Symbols.Symbol 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.Symbols.Symbol 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.Symbols.Symbol 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.Symbols.Symbol 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.Symbols.Symbol 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.Symbols.Symbol 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 Symbols.Symbol} */ public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:Symbols.Symbol) - org.sonar.batch.protocol.output.BatchReport.Symbols.SymbolOrBuilder { + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:Symbols.Symbol) + org.sonar.batch.protocol.output.BatchReport.Symbols.SymbolOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + getDescriptor() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Symbols_Symbol_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { + internalGetFieldAccessorTable() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Symbols_Symbol_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.batch.protocol.output.BatchReport.Symbols.Symbol.class, org.sonar.batch.protocol.output.BatchReport.Symbols.Symbol.Builder.class); + .ensureFieldAccessorsInitialized( + org.sonar.batch.protocol.output.BatchReport.Symbols.Symbol.class, org.sonar.batch.protocol.output.BatchReport.Symbols.Symbol.Builder.class); } // Construct using org.sonar.batch.protocol.output.BatchReport.Symbols.Symbol.newBuilder() @@ -20150,18 +18336,16 @@ 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) { getDeclarationFieldBuilder(); getReferenceFieldBuilder(); } } - private static Builder create() { return new Builder(); } @@ -20188,7 +18372,7 @@ public final class BatchReport { } public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { + getDescriptorForType() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Symbols_Symbol_descriptor; } @@ -20232,7 +18416,7 @@ public final class BatchReport { public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.sonar.batch.protocol.output.BatchReport.Symbols.Symbol) { - return mergeFrom((org.sonar.batch.protocol.output.BatchReport.Symbols.Symbol) other); + return mergeFrom((org.sonar.batch.protocol.output.BatchReport.Symbols.Symbol)other); } else { super.mergeFrom(other); return this; @@ -20240,8 +18424,7 @@ public final class BatchReport { } public Builder mergeFrom(org.sonar.batch.protocol.output.BatchReport.Symbols.Symbol other) { - if (other == org.sonar.batch.protocol.output.BatchReport.Symbols.Symbol.getDefaultInstance()) - return this; + if (other == org.sonar.batch.protocol.output.BatchReport.Symbols.Symbol.getDefaultInstance()) return this; if (other.hasDeclaration()) { mergeDeclaration(other.getDeclaration()); } @@ -20263,9 +18446,9 @@ public final class BatchReport { referenceBuilder_ = null; reference_ = other.reference_; bitField0_ = (bitField0_ & ~0x00000002); - referenceBuilder_ = + referenceBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getReferenceFieldBuilder() : null; + getReferenceFieldBuilder() : null; } else { referenceBuilder_.addAllMessages(other.reference_); } @@ -20280,9 +18463,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.Symbols.Symbol parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); @@ -20296,19 +18479,17 @@ public final class BatchReport { } return this; } - private int bitField0_; private org.sonar.batch.protocol.output.BatchReport.Range declaration_ = org.sonar.batch.protocol.output.BatchReport.Range.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder declarationBuilder_; - + private com.google.protobuf.SingleFieldBuilder< + org.sonar.batch.protocol.output.BatchReport.Range, org.sonar.batch.protocol.output.BatchReport.Range.Builder, org.sonar.batch.protocol.output.BatchReport.RangeOrBuilder> declarationBuilder_; /** * optional .Range declaration = 1; */ public boolean hasDeclaration() { return ((bitField0_ & 0x00000001) == 0x00000001); } - /** * optional .Range declaration = 1; */ @@ -20319,7 +18500,6 @@ public final class BatchReport { return declarationBuilder_.getMessage(); } } - /** * optional .Range declaration = 1; */ @@ -20336,12 +18516,11 @@ public final class BatchReport { bitField0_ |= 0x00000001; return this; } - /** * optional .Range declaration = 1; */ public Builder setDeclaration( - org.sonar.batch.protocol.output.BatchReport.Range.Builder builderForValue) { + org.sonar.batch.protocol.output.BatchReport.Range.Builder builderForValue) { if (declarationBuilder_ == null) { declaration_ = builderForValue.build(); onChanged(); @@ -20351,14 +18530,13 @@ public final class BatchReport { bitField0_ |= 0x00000001; return this; } - /** * optional .Range declaration = 1; */ public Builder mergeDeclaration(org.sonar.batch.protocol.output.BatchReport.Range value) { if (declarationBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && - declaration_ != org.sonar.batch.protocol.output.BatchReport.Range.getDefaultInstance()) { + declaration_ != org.sonar.batch.protocol.output.BatchReport.Range.getDefaultInstance()) { declaration_ = org.sonar.batch.protocol.output.BatchReport.Range.newBuilder(declaration_).mergeFrom(value).buildPartial(); } else { @@ -20371,7 +18549,6 @@ public final class BatchReport { bitField0_ |= 0x00000001; return this; } - /** * optional .Range declaration = 1; */ @@ -20385,7 +18562,6 @@ public final class BatchReport { bitField0_ = (bitField0_ & ~0x00000001); return this; } - /** * optional .Range declaration = 1; */ @@ -20394,7 +18570,6 @@ public final class BatchReport { onChanged(); return getDeclarationFieldBuilder().getBuilder(); } - /** * optional .Range declaration = 1; */ @@ -20405,19 +18580,18 @@ public final class BatchReport { return declaration_; } } - /** * optional .Range declaration = 1; */ private com.google.protobuf.SingleFieldBuilder< - org.sonar.batch.protocol.output.BatchReport.Range, org.sonar.batch.protocol.output.BatchReport.Range.Builder, org.sonar.batch.protocol.output.BatchReport.RangeOrBuilder> - getDeclarationFieldBuilder() { + org.sonar.batch.protocol.output.BatchReport.Range, org.sonar.batch.protocol.output.BatchReport.Range.Builder, org.sonar.batch.protocol.output.BatchReport.RangeOrBuilder> + getDeclarationFieldBuilder() { if (declarationBuilder_ == null) { declarationBuilder_ = new com.google.protobuf.SingleFieldBuilder< - org.sonar.batch.protocol.output.BatchReport.Range, org.sonar.batch.protocol.output.BatchReport.Range.Builder, org.sonar.batch.protocol.output.BatchReport.RangeOrBuilder>( - getDeclaration(), - getParentForChildren(), - isClean()); + org.sonar.batch.protocol.output.BatchReport.Range, org.sonar.batch.protocol.output.BatchReport.Range.Builder, org.sonar.batch.protocol.output.BatchReport.RangeOrBuilder>( + getDeclaration(), + getParentForChildren(), + isClean()); declaration_ = null; } return declarationBuilder_; @@ -20425,15 +18599,15 @@ public final class BatchReport { private java.util.List reference_ = java.util.Collections.emptyList(); - private void ensureReferenceIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { reference_ = new java.util.ArrayList(reference_); bitField0_ |= 0x00000002; - } + } } - private com.google.protobuf.RepeatedFieldBuilder referenceBuilder_; + private com.google.protobuf.RepeatedFieldBuilder< + org.sonar.batch.protocol.output.BatchReport.Range, org.sonar.batch.protocol.output.BatchReport.Range.Builder, org.sonar.batch.protocol.output.BatchReport.RangeOrBuilder> referenceBuilder_; /** * repeated .Range reference = 2; @@ -20445,7 +18619,6 @@ public final class BatchReport { return referenceBuilder_.getMessageList(); } } - /** * repeated .Range reference = 2; */ @@ -20456,7 +18629,6 @@ public final class BatchReport { return referenceBuilder_.getCount(); } } - /** * repeated .Range reference = 2; */ @@ -20467,12 +18639,11 @@ public final class BatchReport { return referenceBuilder_.getMessage(index); } } - /** * repeated .Range reference = 2; */ public Builder setReference( - int index, org.sonar.batch.protocol.output.BatchReport.Range value) { + int index, org.sonar.batch.protocol.output.BatchReport.Range value) { if (referenceBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -20485,12 +18656,11 @@ public final class BatchReport { } return this; } - /** * repeated .Range reference = 2; */ public Builder setReference( - int index, org.sonar.batch.protocol.output.BatchReport.Range.Builder builderForValue) { + int index, org.sonar.batch.protocol.output.BatchReport.Range.Builder builderForValue) { if (referenceBuilder_ == null) { ensureReferenceIsMutable(); reference_.set(index, builderForValue.build()); @@ -20500,7 +18670,6 @@ public final class BatchReport { } return this; } - /** * repeated .Range reference = 2; */ @@ -20517,12 +18686,11 @@ public final class BatchReport { } return this; } - /** * repeated .Range reference = 2; */ public Builder addReference( - int index, org.sonar.batch.protocol.output.BatchReport.Range value) { + int index, org.sonar.batch.protocol.output.BatchReport.Range value) { if (referenceBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -20535,12 +18703,11 @@ public final class BatchReport { } return this; } - /** * repeated .Range reference = 2; */ public Builder addReference( - org.sonar.batch.protocol.output.BatchReport.Range.Builder builderForValue) { + org.sonar.batch.protocol.output.BatchReport.Range.Builder builderForValue) { if (referenceBuilder_ == null) { ensureReferenceIsMutable(); reference_.add(builderForValue.build()); @@ -20550,12 +18717,11 @@ public final class BatchReport { } return this; } - /** * repeated .Range reference = 2; */ public Builder addReference( - int index, org.sonar.batch.protocol.output.BatchReport.Range.Builder builderForValue) { + int index, org.sonar.batch.protocol.output.BatchReport.Range.Builder builderForValue) { if (referenceBuilder_ == null) { ensureReferenceIsMutable(); reference_.add(index, builderForValue.build()); @@ -20565,23 +18731,21 @@ public final class BatchReport { } return this; } - /** * repeated .Range reference = 2; */ public Builder addAllReference( - java.lang.Iterable values) { + java.lang.Iterable values) { if (referenceBuilder_ == null) { ensureReferenceIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, reference_); + values, reference_); onChanged(); } else { referenceBuilder_.addAllMessages(values); } return this; } - /** * repeated .Range reference = 2; */ @@ -20595,7 +18759,6 @@ public final class BatchReport { } return this; } - /** * repeated .Range reference = 2; */ @@ -20609,74 +18772,66 @@ public final class BatchReport { } return this; } - /** * repeated .Range reference = 2; */ public org.sonar.batch.protocol.output.BatchReport.Range.Builder getReferenceBuilder( - int index) { + int index) { return getReferenceFieldBuilder().getBuilder(index); } - /** * repeated .Range reference = 2; */ public org.sonar.batch.protocol.output.BatchReport.RangeOrBuilder getReferenceOrBuilder( - int index) { + int index) { if (referenceBuilder_ == null) { - return reference_.get(index); - } else { + return reference_.get(index); } else { return referenceBuilder_.getMessageOrBuilder(index); } } - /** * repeated .Range reference = 2; */ - public java.util.List - getReferenceOrBuilderList() { + public java.util.List + getReferenceOrBuilderList() { if (referenceBuilder_ != null) { return referenceBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(reference_); } } - /** * repeated .Range reference = 2; */ public org.sonar.batch.protocol.output.BatchReport.Range.Builder addReferenceBuilder() { return getReferenceFieldBuilder().addBuilder( - org.sonar.batch.protocol.output.BatchReport.Range.getDefaultInstance()); + org.sonar.batch.protocol.output.BatchReport.Range.getDefaultInstance()); } - /** * repeated .Range reference = 2; */ public org.sonar.batch.protocol.output.BatchReport.Range.Builder addReferenceBuilder( - int index) { + int index) { return getReferenceFieldBuilder().addBuilder( - index, org.sonar.batch.protocol.output.BatchReport.Range.getDefaultInstance()); + index, org.sonar.batch.protocol.output.BatchReport.Range.getDefaultInstance()); } - /** * repeated .Range reference = 2; */ - public java.util.List - getReferenceBuilderList() { + public java.util.List + getReferenceBuilderList() { return getReferenceFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilder< - org.sonar.batch.protocol.output.BatchReport.Range, org.sonar.batch.protocol.output.BatchReport.Range.Builder, org.sonar.batch.protocol.output.BatchReport.RangeOrBuilder> - getReferenceFieldBuilder() { + org.sonar.batch.protocol.output.BatchReport.Range, org.sonar.batch.protocol.output.BatchReport.Range.Builder, org.sonar.batch.protocol.output.BatchReport.RangeOrBuilder> + getReferenceFieldBuilder() { if (referenceBuilder_ == null) { referenceBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - org.sonar.batch.protocol.output.BatchReport.Range, org.sonar.batch.protocol.output.BatchReport.Range.Builder, org.sonar.batch.protocol.output.BatchReport.RangeOrBuilder>( - reference_, - ((bitField0_ & 0x00000002) == 0x00000002), - getParentForChildren(), - isClean()); + org.sonar.batch.protocol.output.BatchReport.Range, org.sonar.batch.protocol.output.BatchReport.Range.Builder, org.sonar.batch.protocol.output.BatchReport.RangeOrBuilder>( + reference_, + ((bitField0_ & 0x00000002) == 0x00000002), + getParentForChildren(), + isClean()); reference_ = null; } return referenceBuilder_; @@ -20696,14 +18851,12 @@ public final class BatchReport { private int bitField0_; public static final int FILE_REF_FIELD_NUMBER = 1; private int fileRef_; - /** * optional int32 file_ref = 1; */ public boolean hasFileRef() { return ((bitField0_ & 0x00000001) == 0x00000001); } - /** * optional int32 file_ref = 1; */ @@ -20713,41 +18866,36 @@ public final class BatchReport { public static final int SYMBOL_FIELD_NUMBER = 2; private java.util.List symbol_; - /** * repeated .Symbols.Symbol symbol = 2; */ public java.util.List getSymbolList() { return symbol_; } - /** * repeated .Symbols.Symbol symbol = 2; */ - public java.util.List - getSymbolOrBuilderList() { + public java.util.List + getSymbolOrBuilderList() { return symbol_; } - /** * repeated .Symbols.Symbol symbol = 2; */ public int getSymbolCount() { return symbol_.size(); } - /** * repeated .Symbols.Symbol symbol = 2; */ public org.sonar.batch.protocol.output.BatchReport.Symbols.Symbol getSymbol(int index) { return symbol_.get(index); } - /** * repeated .Symbols.Symbol symbol = 2; */ public org.sonar.batch.protocol.output.BatchReport.Symbols.SymbolOrBuilder getSymbolOrBuilder( - int index) { + int index) { return symbol_.get(index); } @@ -20755,22 +18903,18 @@ public final class BatchReport { fileRef_ = 0; symbol_ = 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 true; + if (isInitialized == 0) return false; 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, fileRef_); @@ -20782,11 +18926,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)) { @@ -20803,115 +18945,95 @@ 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.Symbols 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.Symbols 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.Symbols 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.Symbols 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.Symbols 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.Symbols 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.Symbols 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.Symbols 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.Symbols 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.Symbols 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.Symbols 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 Symbols} */ public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:Symbols) - org.sonar.batch.protocol.output.BatchReport.SymbolsOrBuilder { + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:Symbols) + org.sonar.batch.protocol.output.BatchReport.SymbolsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + getDescriptor() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Symbols_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { + internalGetFieldAccessorTable() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Symbols_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.batch.protocol.output.BatchReport.Symbols.class, org.sonar.batch.protocol.output.BatchReport.Symbols.Builder.class); + .ensureFieldAccessorsInitialized( + org.sonar.batch.protocol.output.BatchReport.Symbols.class, org.sonar.batch.protocol.output.BatchReport.Symbols.Builder.class); } // Construct using org.sonar.batch.protocol.output.BatchReport.Symbols.newBuilder() @@ -20920,17 +19042,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) { getSymbolFieldBuilder(); } } - private static Builder create() { return new Builder(); } @@ -20953,7 +19073,7 @@ public final class BatchReport { } public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { + getDescriptorForType() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Symbols_descriptor; } @@ -20993,7 +19113,7 @@ public final class BatchReport { public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.sonar.batch.protocol.output.BatchReport.Symbols) { - return mergeFrom((org.sonar.batch.protocol.output.BatchReport.Symbols) other); + return mergeFrom((org.sonar.batch.protocol.output.BatchReport.Symbols)other); } else { super.mergeFrom(other); return this; @@ -21001,8 +19121,7 @@ public final class BatchReport { } public Builder mergeFrom(org.sonar.batch.protocol.output.BatchReport.Symbols other) { - if (other == org.sonar.batch.protocol.output.BatchReport.Symbols.getDefaultInstance()) - return this; + if (other == org.sonar.batch.protocol.output.BatchReport.Symbols.getDefaultInstance()) return this; if (other.hasFileRef()) { setFileRef(other.getFileRef()); } @@ -21024,9 +19143,9 @@ public final class BatchReport { symbolBuilder_ = null; symbol_ = other.symbol_; bitField0_ = (bitField0_ & ~0x00000002); - symbolBuilder_ = + symbolBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getSymbolFieldBuilder() : null; + getSymbolFieldBuilder() : null; } else { symbolBuilder_.addAllMessages(other.symbol_); } @@ -21041,9 +19160,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.Symbols parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); @@ -21057,25 +19176,21 @@ public final class BatchReport { } return this; } - private int bitField0_; - private int fileRef_; - + private int fileRef_ ; /** * optional int32 file_ref = 1; */ public boolean hasFileRef() { return ((bitField0_ & 0x00000001) == 0x00000001); } - /** * optional int32 file_ref = 1; */ public int getFileRef() { return fileRef_; } - /** * optional int32 file_ref = 1; */ @@ -21085,7 +19200,6 @@ public final class BatchReport { onChanged(); return this; } - /** * optional int32 file_ref = 1; */ @@ -21098,15 +19212,15 @@ public final class BatchReport { private java.util.List symbol_ = java.util.Collections.emptyList(); - private void ensureSymbolIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { symbol_ = new java.util.ArrayList(symbol_); bitField0_ |= 0x00000002; - } + } } - private com.google.protobuf.RepeatedFieldBuilder symbolBuilder_; + private com.google.protobuf.RepeatedFieldBuilder< + org.sonar.batch.protocol.output.BatchReport.Symbols.Symbol, org.sonar.batch.protocol.output.BatchReport.Symbols.Symbol.Builder, org.sonar.batch.protocol.output.BatchReport.Symbols.SymbolOrBuilder> symbolBuilder_; /** * repeated .Symbols.Symbol symbol = 2; @@ -21118,7 +19232,6 @@ public final class BatchReport { return symbolBuilder_.getMessageList(); } } - /** * repeated .Symbols.Symbol symbol = 2; */ @@ -21129,7 +19242,6 @@ public final class BatchReport { return symbolBuilder_.getCount(); } } - /** * repeated .Symbols.Symbol symbol = 2; */ @@ -21140,12 +19252,11 @@ public final class BatchReport { return symbolBuilder_.getMessage(index); } } - /** * repeated .Symbols.Symbol symbol = 2; */ public Builder setSymbol( - int index, org.sonar.batch.protocol.output.BatchReport.Symbols.Symbol value) { + int index, org.sonar.batch.protocol.output.BatchReport.Symbols.Symbol value) { if (symbolBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -21158,12 +19269,11 @@ public final class BatchReport { } return this; } - /** * repeated .Symbols.Symbol symbol = 2; */ public Builder setSymbol( - int index, org.sonar.batch.protocol.output.BatchReport.Symbols.Symbol.Builder builderForValue) { + int index, org.sonar.batch.protocol.output.BatchReport.Symbols.Symbol.Builder builderForValue) { if (symbolBuilder_ == null) { ensureSymbolIsMutable(); symbol_.set(index, builderForValue.build()); @@ -21173,7 +19283,6 @@ public final class BatchReport { } return this; } - /** * repeated .Symbols.Symbol symbol = 2; */ @@ -21190,12 +19299,11 @@ public final class BatchReport { } return this; } - /** * repeated .Symbols.Symbol symbol = 2; */ public Builder addSymbol( - int index, org.sonar.batch.protocol.output.BatchReport.Symbols.Symbol value) { + int index, org.sonar.batch.protocol.output.BatchReport.Symbols.Symbol value) { if (symbolBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -21208,12 +19316,11 @@ public final class BatchReport { } return this; } - /** * repeated .Symbols.Symbol symbol = 2; */ public Builder addSymbol( - org.sonar.batch.protocol.output.BatchReport.Symbols.Symbol.Builder builderForValue) { + org.sonar.batch.protocol.output.BatchReport.Symbols.Symbol.Builder builderForValue) { if (symbolBuilder_ == null) { ensureSymbolIsMutable(); symbol_.add(builderForValue.build()); @@ -21223,12 +19330,11 @@ public final class BatchReport { } return this; } - /** * repeated .Symbols.Symbol symbol = 2; */ public Builder addSymbol( - int index, org.sonar.batch.protocol.output.BatchReport.Symbols.Symbol.Builder builderForValue) { + int index, org.sonar.batch.protocol.output.BatchReport.Symbols.Symbol.Builder builderForValue) { if (symbolBuilder_ == null) { ensureSymbolIsMutable(); symbol_.add(index, builderForValue.build()); @@ -21238,23 +19344,21 @@ public final class BatchReport { } return this; } - /** * repeated .Symbols.Symbol symbol = 2; */ public Builder addAllSymbol( - java.lang.Iterable values) { + java.lang.Iterable values) { if (symbolBuilder_ == null) { ensureSymbolIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, symbol_); + values, symbol_); onChanged(); } else { symbolBuilder_.addAllMessages(values); } return this; } - /** * repeated .Symbols.Symbol symbol = 2; */ @@ -21268,7 +19372,6 @@ public final class BatchReport { } return this; } - /** * repeated .Symbols.Symbol symbol = 2; */ @@ -21282,74 +19385,66 @@ public final class BatchReport { } return this; } - /** * repeated .Symbols.Symbol symbol = 2; */ public org.sonar.batch.protocol.output.BatchReport.Symbols.Symbol.Builder getSymbolBuilder( - int index) { + int index) { return getSymbolFieldBuilder().getBuilder(index); } - /** * repeated .Symbols.Symbol symbol = 2; */ public org.sonar.batch.protocol.output.BatchReport.Symbols.SymbolOrBuilder getSymbolOrBuilder( - int index) { + int index) { if (symbolBuilder_ == null) { - return symbol_.get(index); - } else { + return symbol_.get(index); } else { return symbolBuilder_.getMessageOrBuilder(index); } } - /** * repeated .Symbols.Symbol symbol = 2; */ - public java.util.List - getSymbolOrBuilderList() { + public java.util.List + getSymbolOrBuilderList() { if (symbolBuilder_ != null) { return symbolBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(symbol_); } } - /** * repeated .Symbols.Symbol symbol = 2; */ public org.sonar.batch.protocol.output.BatchReport.Symbols.Symbol.Builder addSymbolBuilder() { return getSymbolFieldBuilder().addBuilder( - org.sonar.batch.protocol.output.BatchReport.Symbols.Symbol.getDefaultInstance()); + org.sonar.batch.protocol.output.BatchReport.Symbols.Symbol.getDefaultInstance()); } - /** * repeated .Symbols.Symbol symbol = 2; */ public org.sonar.batch.protocol.output.BatchReport.Symbols.Symbol.Builder addSymbolBuilder( - int index) { + int index) { return getSymbolFieldBuilder().addBuilder( - index, org.sonar.batch.protocol.output.BatchReport.Symbols.Symbol.getDefaultInstance()); + index, org.sonar.batch.protocol.output.BatchReport.Symbols.Symbol.getDefaultInstance()); } - /** * repeated .Symbols.Symbol symbol = 2; */ - public java.util.List - getSymbolBuilderList() { + public java.util.List + getSymbolBuilderList() { return getSymbolFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilder< - org.sonar.batch.protocol.output.BatchReport.Symbols.Symbol, org.sonar.batch.protocol.output.BatchReport.Symbols.Symbol.Builder, org.sonar.batch.protocol.output.BatchReport.Symbols.SymbolOrBuilder> - getSymbolFieldBuilder() { + org.sonar.batch.protocol.output.BatchReport.Symbols.Symbol, org.sonar.batch.protocol.output.BatchReport.Symbols.Symbol.Builder, org.sonar.batch.protocol.output.BatchReport.Symbols.SymbolOrBuilder> + getSymbolFieldBuilder() { if (symbolBuilder_ == null) { symbolBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - org.sonar.batch.protocol.output.BatchReport.Symbols.Symbol, org.sonar.batch.protocol.output.BatchReport.Symbols.Symbol.Builder, org.sonar.batch.protocol.output.BatchReport.Symbols.SymbolOrBuilder>( - symbol_, - ((bitField0_ & 0x00000002) == 0x00000002), - getParentForChildren(), - isClean()); + org.sonar.batch.protocol.output.BatchReport.Symbols.Symbol, org.sonar.batch.protocol.output.BatchReport.Symbols.Symbol.Builder, org.sonar.batch.protocol.output.BatchReport.Symbols.SymbolOrBuilder>( + symbol_, + ((bitField0_ & 0x00000002) == 0x00000002), + getParentForChildren(), + isClean()); symbol_ = null; } return symbolBuilder_; @@ -21367,14 +19462,13 @@ public final class BatchReport { } public interface CoverageOrBuilder extends - // @@protoc_insertion_point(interface_extends:Coverage) - com.google.protobuf.MessageOrBuilder { + // @@protoc_insertion_point(interface_extends:Coverage) + com.google.protobuf.MessageOrBuilder { /** * optional int32 line = 1; */ boolean hasLine(); - /** * optional int32 line = 1; */ @@ -21388,7 +19482,6 @@ public final class BatchReport { * */ boolean hasConditions(); - /** * optional int32 conditions = 2; * @@ -21406,7 +19499,6 @@ public final class BatchReport { * */ boolean hasUtHits(); - /** * optional bool ut_hits = 3; * @@ -21424,7 +19516,6 @@ public final class BatchReport { * */ boolean hasItHits(); - /** * optional bool it_hits = 4; * @@ -21442,7 +19533,6 @@ public final class BatchReport { * */ boolean hasUtCoveredConditions(); - /** * optional int32 ut_covered_conditions = 5; * @@ -21460,7 +19550,6 @@ public final class BatchReport { * */ boolean hasItCoveredConditions(); - /** * optional int32 it_covered_conditions = 6; * @@ -21478,7 +19567,6 @@ public final class BatchReport { * */ boolean hasOverallCoveredConditions(); - /** * optional int32 overall_covered_conditions = 7; * @@ -21497,21 +19585,17 @@ public final class BatchReport { * */ public static final class Coverage extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:Coverage) - CoverageOrBuilder { + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:Coverage) + CoverageOrBuilder { // Use Coverage.newBuilder() to construct. private Coverage(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } - - private Coverage(boolean noInit) { - this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } + private Coverage(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final Coverage defaultInstance; - public static Coverage getDefaultInstance() { return defaultInstance; } @@ -21521,21 +19605,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 Coverage( - 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) { @@ -21546,7 +19628,7 @@ public final class BatchReport { break; default: { if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { + extensionRegistry, tag)) { done = true; } break; @@ -21592,34 +19674,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_Coverage_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { + internalGetFieldAccessorTable() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Coverage_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.batch.protocol.output.BatchReport.Coverage.class, org.sonar.batch.protocol.output.BatchReport.Coverage.Builder.class); + .ensureFieldAccessorsInitialized( + org.sonar.batch.protocol.output.BatchReport.Coverage.class, org.sonar.batch.protocol.output.BatchReport.Coverage.Builder.class); } public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Coverage parsePartialFrom( + new com.google.protobuf.AbstractParser() { + public Coverage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Coverage(input, extensionRegistry); - } - }; + return new Coverage(input, extensionRegistry); + } + }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { @@ -21629,14 +19710,12 @@ public final class BatchReport { private int bitField0_; 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; */ @@ -21646,7 +19725,6 @@ public final class BatchReport { public static final int CONDITIONS_FIELD_NUMBER = 2; private int conditions_; - /** * optional int32 conditions = 2; * @@ -21657,7 +19735,6 @@ public final class BatchReport { public boolean hasConditions() { return ((bitField0_ & 0x00000002) == 0x00000002); } - /** * optional int32 conditions = 2; * @@ -21671,7 +19748,6 @@ public final class BatchReport { public static final int UT_HITS_FIELD_NUMBER = 3; private boolean utHits_; - /** * optional bool ut_hits = 3; * @@ -21682,7 +19758,6 @@ public final class BatchReport { public boolean hasUtHits() { return ((bitField0_ & 0x00000004) == 0x00000004); } - /** * optional bool ut_hits = 3; * @@ -21696,7 +19771,6 @@ public final class BatchReport { public static final int IT_HITS_FIELD_NUMBER = 4; private boolean itHits_; - /** * optional bool it_hits = 4; * @@ -21707,7 +19781,6 @@ public final class BatchReport { public boolean hasItHits() { return ((bitField0_ & 0x00000008) == 0x00000008); } - /** * optional bool it_hits = 4; * @@ -21721,7 +19794,6 @@ public final class BatchReport { public static final int UT_COVERED_CONDITIONS_FIELD_NUMBER = 5; private int utCoveredConditions_; - /** * optional int32 ut_covered_conditions = 5; * @@ -21732,7 +19804,6 @@ public final class BatchReport { public boolean hasUtCoveredConditions() { return ((bitField0_ & 0x00000010) == 0x00000010); } - /** * optional int32 ut_covered_conditions = 5; * @@ -21746,7 +19817,6 @@ public final class BatchReport { public static final int IT_COVERED_CONDITIONS_FIELD_NUMBER = 6; private int itCoveredConditions_; - /** * optional int32 it_covered_conditions = 6; * @@ -21757,7 +19827,6 @@ public final class BatchReport { public boolean hasItCoveredConditions() { return ((bitField0_ & 0x00000020) == 0x00000020); } - /** * optional int32 it_covered_conditions = 6; * @@ -21771,7 +19840,6 @@ public final class BatchReport { public static final int OVERALL_COVERED_CONDITIONS_FIELD_NUMBER = 7; private int overallCoveredConditions_; - /** * optional int32 overall_covered_conditions = 7; * @@ -21782,7 +19850,6 @@ public final class BatchReport { public boolean hasOverallCoveredConditions() { return ((bitField0_ & 0x00000040) == 0x00000040); } - /** * optional int32 overall_covered_conditions = 7; * @@ -21803,22 +19870,18 @@ public final class BatchReport { itCoveredConditions_ = 0; overallCoveredConditions_ = 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 true; + if (isInitialized == 0) return false; 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_); @@ -21845,11 +19908,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)) { @@ -21886,98 +19947,78 @@ 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.Coverage 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.Coverage 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.Coverage 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.Coverage 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.Coverage 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.Coverage 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.Coverage 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.Coverage 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.Coverage 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.Coverage 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.Coverage 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 Coverage} * @@ -21987,19 +20028,19 @@ public final class BatchReport { * */ public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:Coverage) - org.sonar.batch.protocol.output.BatchReport.CoverageOrBuilder { + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:Coverage) + org.sonar.batch.protocol.output.BatchReport.CoverageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + getDescriptor() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Coverage_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { + internalGetFieldAccessorTable() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Coverage_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.batch.protocol.output.BatchReport.Coverage.class, org.sonar.batch.protocol.output.BatchReport.Coverage.Builder.class); + .ensureFieldAccessorsInitialized( + org.sonar.batch.protocol.output.BatchReport.Coverage.class, org.sonar.batch.protocol.output.BatchReport.Coverage.Builder.class); } // Construct using org.sonar.batch.protocol.output.BatchReport.Coverage.newBuilder() @@ -22008,16 +20049,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(); } @@ -22046,7 +20085,7 @@ public final class BatchReport { } public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { + getDescriptorForType() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Coverage_descriptor; } @@ -22101,7 +20140,7 @@ public final class BatchReport { public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.sonar.batch.protocol.output.BatchReport.Coverage) { - return mergeFrom((org.sonar.batch.protocol.output.BatchReport.Coverage) other); + return mergeFrom((org.sonar.batch.protocol.output.BatchReport.Coverage)other); } else { super.mergeFrom(other); return this; @@ -22109,8 +20148,7 @@ public final class BatchReport { } public Builder mergeFrom(org.sonar.batch.protocol.output.BatchReport.Coverage other) { - if (other == org.sonar.batch.protocol.output.BatchReport.Coverage.getDefaultInstance()) - return this; + if (other == org.sonar.batch.protocol.output.BatchReport.Coverage.getDefaultInstance()) return this; if (other.hasLine()) { setLine(other.getLine()); } @@ -22141,9 +20179,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.Coverage parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); @@ -22157,25 +20195,21 @@ public final class BatchReport { } return this; } - private int bitField0_; - private int line_; - + 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; */ @@ -22185,7 +20219,6 @@ public final class BatchReport { onChanged(); return this; } - /** * optional int32 line = 1; */ @@ -22196,8 +20229,7 @@ public final class BatchReport { return this; } - private int conditions_; - + private int conditions_ ; /** * optional int32 conditions = 2; * @@ -22208,7 +20240,6 @@ public final class BatchReport { public boolean hasConditions() { return ((bitField0_ & 0x00000002) == 0x00000002); } - /** * optional int32 conditions = 2; * @@ -22219,7 +20250,6 @@ public final class BatchReport { public int getConditions() { return conditions_; } - /** * optional int32 conditions = 2; * @@ -22233,7 +20263,6 @@ public final class BatchReport { onChanged(); return this; } - /** * optional int32 conditions = 2; * @@ -22248,8 +20277,7 @@ public final class BatchReport { return this; } - private boolean utHits_; - + private boolean utHits_ ; /** * optional bool ut_hits = 3; * @@ -22260,7 +20288,6 @@ public final class BatchReport { public boolean hasUtHits() { return ((bitField0_ & 0x00000004) == 0x00000004); } - /** * optional bool ut_hits = 3; * @@ -22271,7 +20298,6 @@ public final class BatchReport { public boolean getUtHits() { return utHits_; } - /** * optional bool ut_hits = 3; * @@ -22285,7 +20311,6 @@ public final class BatchReport { onChanged(); return this; } - /** * optional bool ut_hits = 3; * @@ -22300,8 +20325,7 @@ public final class BatchReport { return this; } - private boolean itHits_; - + private boolean itHits_ ; /** * optional bool it_hits = 4; * @@ -22312,7 +20336,6 @@ public final class BatchReport { public boolean hasItHits() { return ((bitField0_ & 0x00000008) == 0x00000008); } - /** * optional bool it_hits = 4; * @@ -22323,7 +20346,6 @@ public final class BatchReport { public boolean getItHits() { return itHits_; } - /** * optional bool it_hits = 4; * @@ -22337,7 +20359,6 @@ public final class BatchReport { onChanged(); return this; } - /** * optional bool it_hits = 4; * @@ -22352,8 +20373,7 @@ public final class BatchReport { return this; } - private int utCoveredConditions_; - + private int utCoveredConditions_ ; /** * optional int32 ut_covered_conditions = 5; * @@ -22364,7 +20384,6 @@ public final class BatchReport { public boolean hasUtCoveredConditions() { return ((bitField0_ & 0x00000010) == 0x00000010); } - /** * optional int32 ut_covered_conditions = 5; * @@ -22375,7 +20394,6 @@ public final class BatchReport { public int getUtCoveredConditions() { return utCoveredConditions_; } - /** * optional int32 ut_covered_conditions = 5; * @@ -22389,7 +20407,6 @@ public final class BatchReport { onChanged(); return this; } - /** * optional int32 ut_covered_conditions = 5; * @@ -22404,8 +20421,7 @@ public final class BatchReport { return this; } - private int itCoveredConditions_; - + private int itCoveredConditions_ ; /** * optional int32 it_covered_conditions = 6; * @@ -22416,7 +20432,6 @@ public final class BatchReport { public boolean hasItCoveredConditions() { return ((bitField0_ & 0x00000020) == 0x00000020); } - /** * optional int32 it_covered_conditions = 6; * @@ -22427,7 +20442,6 @@ public final class BatchReport { public int getItCoveredConditions() { return itCoveredConditions_; } - /** * optional int32 it_covered_conditions = 6; * @@ -22441,7 +20455,6 @@ public final class BatchReport { onChanged(); return this; } - /** * optional int32 it_covered_conditions = 6; * @@ -22456,8 +20469,7 @@ public final class BatchReport { return this; } - private int overallCoveredConditions_; - + private int overallCoveredConditions_ ; /** * optional int32 overall_covered_conditions = 7; * @@ -22468,7 +20480,6 @@ public final class BatchReport { public boolean hasOverallCoveredConditions() { return ((bitField0_ & 0x00000040) == 0x00000040); } - /** * optional int32 overall_covered_conditions = 7; * @@ -22479,7 +20490,6 @@ public final class BatchReport { public int getOverallCoveredConditions() { return overallCoveredConditions_; } - /** * optional int32 overall_covered_conditions = 7; * @@ -22493,7 +20503,6 @@ public final class BatchReport { onChanged(); return this; } - /** * optional int32 overall_covered_conditions = 7; * @@ -22520,19 +20529,17 @@ public final class BatchReport { } public interface SyntaxHighlightingOrBuilder extends - // @@protoc_insertion_point(interface_extends:SyntaxHighlighting) - com.google.protobuf.MessageOrBuilder { + // @@protoc_insertion_point(interface_extends:SyntaxHighlighting) + com.google.protobuf.MessageOrBuilder { /** * optional .Range range = 1; */ boolean hasRange(); - /** * optional .Range range = 1; */ org.sonar.batch.protocol.output.BatchReport.Range getRange(); - /** * optional .Range range = 1; */ @@ -22542,7 +20549,6 @@ public final class BatchReport { * optional .HighlightingType type = 2; */ boolean hasType(); - /** * optional .HighlightingType type = 2; */ @@ -22557,21 +20563,17 @@ public final class BatchReport { * */ public static final class SyntaxHighlighting extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:SyntaxHighlighting) - SyntaxHighlightingOrBuilder { + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:SyntaxHighlighting) + SyntaxHighlightingOrBuilder { // Use SyntaxHighlighting.newBuilder() to construct. private SyntaxHighlighting(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } - - private SyntaxHighlighting(boolean noInit) { - this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } + private SyntaxHighlighting(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final SyntaxHighlighting defaultInstance; - public static SyntaxHighlighting getDefaultInstance() { return defaultInstance; } @@ -22581,21 +20583,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 SyntaxHighlighting( - 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) { @@ -22606,7 +20606,7 @@ public final class BatchReport { break; default: { if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { + extensionRegistry, tag)) { done = true; } break; @@ -22641,34 +20641,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_SyntaxHighlighting_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { + internalGetFieldAccessorTable() { return org.sonar.batch.protocol.output.BatchReport.internal_static_SyntaxHighlighting_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.batch.protocol.output.BatchReport.SyntaxHighlighting.class, org.sonar.batch.protocol.output.BatchReport.SyntaxHighlighting.Builder.class); + .ensureFieldAccessorsInitialized( + org.sonar.batch.protocol.output.BatchReport.SyntaxHighlighting.class, org.sonar.batch.protocol.output.BatchReport.SyntaxHighlighting.Builder.class); } public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public SyntaxHighlighting parsePartialFrom( + new com.google.protobuf.AbstractParser() { + public SyntaxHighlighting parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new SyntaxHighlighting(input, extensionRegistry); - } - }; + return new SyntaxHighlighting(input, extensionRegistry); + } + }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { @@ -22678,21 +20677,18 @@ public final class BatchReport { private int bitField0_; public static final int RANGE_FIELD_NUMBER = 1; private org.sonar.batch.protocol.output.BatchReport.Range range_; - /** * optional .Range range = 1; */ public boolean hasRange() { return ((bitField0_ & 0x00000001) == 0x00000001); } - /** * optional .Range range = 1; */ public org.sonar.batch.protocol.output.BatchReport.Range getRange() { return range_; } - /** * optional .Range range = 1; */ @@ -22702,14 +20698,12 @@ public final class BatchReport { public static final int TYPE_FIELD_NUMBER = 2; private org.sonar.batch.protocol.Constants.HighlightingType type_; - /** * optional .HighlightingType type = 2; */ public boolean hasType() { return ((bitField0_ & 0x00000002) == 0x00000002); } - /** * optional .HighlightingType type = 2; */ @@ -22721,22 +20715,18 @@ public final class BatchReport { range_ = org.sonar.batch.protocol.output.BatchReport.Range.getDefaultInstance(); type_ = org.sonar.batch.protocol.Constants.HighlightingType.ANNOTATION; } - 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 true; + if (isInitialized == 0) return false; 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.writeMessage(1, range_); @@ -22748,11 +20738,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)) { @@ -22769,98 +20757,78 @@ 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.SyntaxHighlighting 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.SyntaxHighlighting 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.SyntaxHighlighting 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.SyntaxHighlighting 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.SyntaxHighlighting 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.SyntaxHighlighting 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.SyntaxHighlighting 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.SyntaxHighlighting 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.SyntaxHighlighting 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.SyntaxHighlighting 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.SyntaxHighlighting 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 SyntaxHighlighting} * @@ -22870,19 +20838,19 @@ public final class BatchReport { * */ public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:SyntaxHighlighting) - org.sonar.batch.protocol.output.BatchReport.SyntaxHighlightingOrBuilder { + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:SyntaxHighlighting) + org.sonar.batch.protocol.output.BatchReport.SyntaxHighlightingOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + getDescriptor() { return org.sonar.batch.protocol.output.BatchReport.internal_static_SyntaxHighlighting_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { + internalGetFieldAccessorTable() { return org.sonar.batch.protocol.output.BatchReport.internal_static_SyntaxHighlighting_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.batch.protocol.output.BatchReport.SyntaxHighlighting.class, org.sonar.batch.protocol.output.BatchReport.SyntaxHighlighting.Builder.class); + .ensureFieldAccessorsInitialized( + org.sonar.batch.protocol.output.BatchReport.SyntaxHighlighting.class, org.sonar.batch.protocol.output.BatchReport.SyntaxHighlighting.Builder.class); } // Construct using org.sonar.batch.protocol.output.BatchReport.SyntaxHighlighting.newBuilder() @@ -22891,17 +20859,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) { getRangeFieldBuilder(); } } - private static Builder create() { return new Builder(); } @@ -22924,7 +20890,7 @@ public final class BatchReport { } public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { + getDescriptorForType() { return org.sonar.batch.protocol.output.BatchReport.internal_static_SyntaxHighlighting_descriptor; } @@ -22963,7 +20929,7 @@ public final class BatchReport { public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.sonar.batch.protocol.output.BatchReport.SyntaxHighlighting) { - return mergeFrom((org.sonar.batch.protocol.output.BatchReport.SyntaxHighlighting) other); + return mergeFrom((org.sonar.batch.protocol.output.BatchReport.SyntaxHighlighting)other); } else { super.mergeFrom(other); return this; @@ -22971,8 +20937,7 @@ public final class BatchReport { } public Builder mergeFrom(org.sonar.batch.protocol.output.BatchReport.SyntaxHighlighting other) { - if (other == org.sonar.batch.protocol.output.BatchReport.SyntaxHighlighting.getDefaultInstance()) - return this; + if (other == org.sonar.batch.protocol.output.BatchReport.SyntaxHighlighting.getDefaultInstance()) return this; if (other.hasRange()) { mergeRange(other.getRange()); } @@ -22988,9 +20953,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.SyntaxHighlighting parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); @@ -23004,19 +20969,17 @@ public final class BatchReport { } return this; } - private int bitField0_; private org.sonar.batch.protocol.output.BatchReport.Range range_ = org.sonar.batch.protocol.output.BatchReport.Range.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder rangeBuilder_; - + private com.google.protobuf.SingleFieldBuilder< + org.sonar.batch.protocol.output.BatchReport.Range, org.sonar.batch.protocol.output.BatchReport.Range.Builder, org.sonar.batch.protocol.output.BatchReport.RangeOrBuilder> rangeBuilder_; /** * optional .Range range = 1; */ public boolean hasRange() { return ((bitField0_ & 0x00000001) == 0x00000001); } - /** * optional .Range range = 1; */ @@ -23027,7 +20990,6 @@ public final class BatchReport { return rangeBuilder_.getMessage(); } } - /** * optional .Range range = 1; */ @@ -23044,12 +21006,11 @@ public final class BatchReport { bitField0_ |= 0x00000001; return this; } - /** * optional .Range range = 1; */ public Builder setRange( - org.sonar.batch.protocol.output.BatchReport.Range.Builder builderForValue) { + org.sonar.batch.protocol.output.BatchReport.Range.Builder builderForValue) { if (rangeBuilder_ == null) { range_ = builderForValue.build(); onChanged(); @@ -23059,14 +21020,13 @@ public final class BatchReport { bitField0_ |= 0x00000001; return this; } - /** * optional .Range range = 1; */ public Builder mergeRange(org.sonar.batch.protocol.output.BatchReport.Range value) { if (rangeBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && - range_ != org.sonar.batch.protocol.output.BatchReport.Range.getDefaultInstance()) { + range_ != org.sonar.batch.protocol.output.BatchReport.Range.getDefaultInstance()) { range_ = org.sonar.batch.protocol.output.BatchReport.Range.newBuilder(range_).mergeFrom(value).buildPartial(); } else { @@ -23079,7 +21039,6 @@ public final class BatchReport { bitField0_ |= 0x00000001; return this; } - /** * optional .Range range = 1; */ @@ -23093,7 +21052,6 @@ public final class BatchReport { bitField0_ = (bitField0_ & ~0x00000001); return this; } - /** * optional .Range range = 1; */ @@ -23102,7 +21060,6 @@ public final class BatchReport { onChanged(); return getRangeFieldBuilder().getBuilder(); } - /** * optional .Range range = 1; */ @@ -23113,40 +21070,36 @@ public final class BatchReport { return range_; } } - /** * optional .Range range = 1; */ private com.google.protobuf.SingleFieldBuilder< - org.sonar.batch.protocol.output.BatchReport.Range, org.sonar.batch.protocol.output.BatchReport.Range.Builder, org.sonar.batch.protocol.output.BatchReport.RangeOrBuilder> - getRangeFieldBuilder() { + org.sonar.batch.protocol.output.BatchReport.Range, org.sonar.batch.protocol.output.BatchReport.Range.Builder, org.sonar.batch.protocol.output.BatchReport.RangeOrBuilder> + getRangeFieldBuilder() { if (rangeBuilder_ == null) { rangeBuilder_ = new com.google.protobuf.SingleFieldBuilder< - org.sonar.batch.protocol.output.BatchReport.Range, org.sonar.batch.protocol.output.BatchReport.Range.Builder, org.sonar.batch.protocol.output.BatchReport.RangeOrBuilder>( - getRange(), - getParentForChildren(), - isClean()); + org.sonar.batch.protocol.output.BatchReport.Range, org.sonar.batch.protocol.output.BatchReport.Range.Builder, org.sonar.batch.protocol.output.BatchReport.RangeOrBuilder>( + getRange(), + getParentForChildren(), + isClean()); range_ = null; } return rangeBuilder_; } private org.sonar.batch.protocol.Constants.HighlightingType type_ = org.sonar.batch.protocol.Constants.HighlightingType.ANNOTATION; - /** * optional .HighlightingType type = 2; */ public boolean hasType() { return ((bitField0_ & 0x00000002) == 0x00000002); } - /** * optional .HighlightingType type = 2; */ public org.sonar.batch.protocol.Constants.HighlightingType getType() { return type_; } - /** * optional .HighlightingType type = 2; */ @@ -23159,7 +21112,6 @@ public final class BatchReport { onChanged(); return this; } - /** * optional .HighlightingType type = 2; */ @@ -23182,30 +21134,27 @@ public final class BatchReport { } public interface TestOrBuilder extends - // @@protoc_insertion_point(interface_extends:Test) - com.google.protobuf.MessageOrBuilder { + // @@protoc_insertion_point(interface_extends:Test) + com.google.protobuf.MessageOrBuilder { /** * optional string name = 1; */ boolean hasName(); - /** * optional string name = 1; */ java.lang.String getName(); - /** * optional string name = 1; */ com.google.protobuf.ByteString - getNameBytes(); + getNameBytes(); /** * optional .TestStatus status = 2; */ boolean hasStatus(); - /** * optional .TestStatus status = 2; */ @@ -23215,7 +21164,6 @@ public final class BatchReport { * optional int64 duration_in_ms = 3; */ boolean hasDurationInMs(); - /** * optional int64 duration_in_ms = 3; */ @@ -23225,53 +21173,45 @@ public final class BatchReport { * optional string stacktrace = 4; */ boolean hasStacktrace(); - /** * optional string stacktrace = 4; */ java.lang.String getStacktrace(); - /** * optional string stacktrace = 4; */ com.google.protobuf.ByteString - getStacktraceBytes(); + getStacktraceBytes(); /** * optional string msg = 5; */ boolean hasMsg(); - /** * optional string msg = 5; */ java.lang.String getMsg(); - /** * optional string msg = 5; */ com.google.protobuf.ByteString - getMsgBytes(); + getMsgBytes(); } /** * Protobuf type {@code Test} */ public static final class Test extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:Test) - TestOrBuilder { + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:Test) + TestOrBuilder { // Use Test.newBuilder() to construct. private Test(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } - - private Test(boolean noInit) { - this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } + private Test(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final Test defaultInstance; - public static Test getDefaultInstance() { return defaultInstance; } @@ -23281,21 +21221,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 Test( - 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) { @@ -23306,7 +21244,7 @@ public final class BatchReport { break; default: { if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { + extensionRegistry, tag)) { done = true; } break; @@ -23351,34 +21289,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_Test_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { + internalGetFieldAccessorTable() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Test_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.batch.protocol.output.BatchReport.Test.class, org.sonar.batch.protocol.output.BatchReport.Test.Builder.class); + .ensureFieldAccessorsInitialized( + org.sonar.batch.protocol.output.BatchReport.Test.class, org.sonar.batch.protocol.output.BatchReport.Test.Builder.class); } public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Test parsePartialFrom( + new com.google.protobuf.AbstractParser() { + public Test parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Test(input, extensionRegistry); - } - }; + return new Test(input, extensionRegistry); + } + }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { @@ -23388,14 +21325,12 @@ public final class BatchReport { private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; private java.lang.Object name_; - /** * optional string name = 1; */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } - /** * optional string name = 1; */ @@ -23404,8 +21339,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; @@ -23413,17 +21348,16 @@ public final class BatchReport { return s; } } - /** * optional string name = 1; */ 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 { @@ -23433,14 +21367,12 @@ public final class BatchReport { public static final int STATUS_FIELD_NUMBER = 2; private org.sonar.batch.protocol.Constants.TestStatus status_; - /** * optional .TestStatus status = 2; */ public boolean hasStatus() { return ((bitField0_ & 0x00000002) == 0x00000002); } - /** * optional .TestStatus status = 2; */ @@ -23450,14 +21382,12 @@ public final class BatchReport { public static final int DURATION_IN_MS_FIELD_NUMBER = 3; private long durationInMs_; - /** * optional int64 duration_in_ms = 3; */ public boolean hasDurationInMs() { return ((bitField0_ & 0x00000004) == 0x00000004); } - /** * optional int64 duration_in_ms = 3; */ @@ -23467,14 +21397,12 @@ public final class BatchReport { public static final int STACKTRACE_FIELD_NUMBER = 4; private java.lang.Object stacktrace_; - /** * optional string stacktrace = 4; */ public boolean hasStacktrace() { return ((bitField0_ & 0x00000008) == 0x00000008); } - /** * optional string stacktrace = 4; */ @@ -23483,8 +21411,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()) { stacktrace_ = s; @@ -23492,17 +21420,16 @@ public final class BatchReport { return s; } } - /** * optional string stacktrace = 4; */ public com.google.protobuf.ByteString - getStacktraceBytes() { + getStacktraceBytes() { java.lang.Object ref = stacktrace_; 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); stacktrace_ = b; return b; } else { @@ -23512,14 +21439,12 @@ public final class BatchReport { public static final int MSG_FIELD_NUMBER = 5; private java.lang.Object msg_; - /** * optional string msg = 5; */ public boolean hasMsg() { return ((bitField0_ & 0x00000010) == 0x00000010); } - /** * optional string msg = 5; */ @@ -23528,8 +21453,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; @@ -23537,17 +21462,16 @@ public final class BatchReport { return s; } } - /** * optional string msg = 5; */ 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 { @@ -23562,22 +21486,18 @@ public final class BatchReport { stacktrace_ = ""; msg_ = ""; } - 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 true; + if (isInitialized == 0) return false; 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, getNameBytes()); @@ -23598,11 +21518,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)) { @@ -23631,115 +21549,95 @@ 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.Test 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.Test 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.Test 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.Test 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.Test 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.Test 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.Test 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.Test 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.Test 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.Test 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.Test 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 Test} */ public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:Test) - org.sonar.batch.protocol.output.BatchReport.TestOrBuilder { + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:Test) + org.sonar.batch.protocol.output.BatchReport.TestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + getDescriptor() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Test_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { + internalGetFieldAccessorTable() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Test_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.batch.protocol.output.BatchReport.Test.class, org.sonar.batch.protocol.output.BatchReport.Test.Builder.class); + .ensureFieldAccessorsInitialized( + org.sonar.batch.protocol.output.BatchReport.Test.class, org.sonar.batch.protocol.output.BatchReport.Test.Builder.class); } // Construct using org.sonar.batch.protocol.output.BatchReport.Test.newBuilder() @@ -23748,16 +21646,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(); } @@ -23782,7 +21678,7 @@ public final class BatchReport { } public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { + getDescriptorForType() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Test_descriptor; } @@ -23829,7 +21725,7 @@ public final class BatchReport { public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.sonar.batch.protocol.output.BatchReport.Test) { - return mergeFrom((org.sonar.batch.protocol.output.BatchReport.Test) other); + return mergeFrom((org.sonar.batch.protocol.output.BatchReport.Test)other); } else { super.mergeFrom(other); return this; @@ -23837,8 +21733,7 @@ public final class BatchReport { } public Builder mergeFrom(org.sonar.batch.protocol.output.BatchReport.Test other) { - if (other == org.sonar.batch.protocol.output.BatchReport.Test.getDefaultInstance()) - return this; + if (other == org.sonar.batch.protocol.output.BatchReport.Test.getDefaultInstance()) return this; if (other.hasName()) { bitField0_ |= 0x00000001; name_ = other.name_; @@ -23869,9 +21764,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.Test parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); @@ -23885,18 +21780,15 @@ public final class BatchReport { } return this; } - private int bitField0_; private java.lang.Object name_ = ""; - /** * optional string name = 1; */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } - /** * optional string name = 1; */ @@ -23904,7 +21796,7 @@ public final class BatchReport { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { name_ = s; @@ -23914,38 +21806,35 @@ public final class BatchReport { return (java.lang.String) ref; } } - /** * optional string name = 1; */ 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 = 1; */ public Builder setName( - java.lang.String value) { + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; name_ = value; onChanged(); return this; } - /** * optional string name = 1; */ @@ -23955,37 +21844,33 @@ public final class BatchReport { onChanged(); return this; } - /** * optional string name = 1; */ public Builder setNameBytes( - com.google.protobuf.ByteString value) { + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; name_ = value; onChanged(); return this; } private org.sonar.batch.protocol.Constants.TestStatus status_ = org.sonar.batch.protocol.Constants.TestStatus.OK; - /** * optional .TestStatus status = 2; */ public boolean hasStatus() { return ((bitField0_ & 0x00000002) == 0x00000002); } - /** * optional .TestStatus status = 2; */ public org.sonar.batch.protocol.Constants.TestStatus getStatus() { return status_; } - /** * optional .TestStatus status = 2; */ @@ -23998,7 +21883,6 @@ public final class BatchReport { onChanged(); return this; } - /** * optional .TestStatus status = 2; */ @@ -24009,22 +21893,19 @@ public final class BatchReport { return this; } - private long durationInMs_; - + private long durationInMs_ ; /** * optional int64 duration_in_ms = 3; */ public boolean hasDurationInMs() { return ((bitField0_ & 0x00000004) == 0x00000004); } - /** * optional int64 duration_in_ms = 3; */ public long getDurationInMs() { return durationInMs_; } - /** * optional int64 duration_in_ms = 3; */ @@ -24034,7 +21915,6 @@ public final class BatchReport { onChanged(); return this; } - /** * optional int64 duration_in_ms = 3; */ @@ -24046,14 +21926,12 @@ public final class BatchReport { } private java.lang.Object stacktrace_ = ""; - /** * optional string stacktrace = 4; */ public boolean hasStacktrace() { return ((bitField0_ & 0x00000008) == 0x00000008); } - /** * optional string stacktrace = 4; */ @@ -24061,7 +21939,7 @@ public final class BatchReport { java.lang.Object ref = stacktrace_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { stacktrace_ = s; @@ -24071,38 +21949,35 @@ public final class BatchReport { return (java.lang.String) ref; } } - /** * optional string stacktrace = 4; */ public com.google.protobuf.ByteString - getStacktraceBytes() { + getStacktraceBytes() { java.lang.Object ref = stacktrace_; 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); stacktrace_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - /** * optional string stacktrace = 4; */ public Builder setStacktrace( - java.lang.String value) { + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; stacktrace_ = value; onChanged(); return this; } - /** * optional string stacktrace = 4; */ @@ -24112,30 +21987,27 @@ public final class BatchReport { onChanged(); return this; } - /** * optional string stacktrace = 4; */ public Builder setStacktraceBytes( - com.google.protobuf.ByteString value) { + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; stacktrace_ = value; onChanged(); return this; } private java.lang.Object msg_ = ""; - /** * optional string msg = 5; */ public boolean hasMsg() { return ((bitField0_ & 0x00000010) == 0x00000010); } - /** * optional string msg = 5; */ @@ -24143,7 +22015,7 @@ public final class BatchReport { java.lang.Object ref = msg_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { msg_ = s; @@ -24153,38 +22025,35 @@ public final class BatchReport { return (java.lang.String) ref; } } - /** * optional string msg = 5; */ 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 = 5; */ public Builder setMsg( - java.lang.String value) { + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; msg_ = value; onChanged(); return this; } - /** * optional string msg = 5; */ @@ -24194,16 +22063,15 @@ public final class BatchReport { onChanged(); return this; } - /** * optional string msg = 5; */ public Builder setMsgBytes( - com.google.protobuf.ByteString value) { + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; msg_ = value; onChanged(); return this; @@ -24221,72 +22089,62 @@ public final class BatchReport { } public interface CoverageDetailOrBuilder extends - // @@protoc_insertion_point(interface_extends:CoverageDetail) - com.google.protobuf.MessageOrBuilder { + // @@protoc_insertion_point(interface_extends:CoverageDetail) + com.google.protobuf.MessageOrBuilder { /** * optional string test_name = 1; */ boolean hasTestName(); - /** * optional string test_name = 1; */ java.lang.String getTestName(); - /** * optional string test_name = 1; */ com.google.protobuf.ByteString - getTestNameBytes(); + getTestNameBytes(); /** * repeated .CoverageDetail.CoveredFile covered_file = 2; */ - java.util.List - getCoveredFileList(); - + java.util.List + getCoveredFileList(); /** * repeated .CoverageDetail.CoveredFile covered_file = 2; */ org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFile getCoveredFile(int index); - /** * repeated .CoverageDetail.CoveredFile covered_file = 2; */ int getCoveredFileCount(); - /** * repeated .CoverageDetail.CoveredFile covered_file = 2; */ - java.util.List - getCoveredFileOrBuilderList(); - + java.util.List + getCoveredFileOrBuilderList(); /** * repeated .CoverageDetail.CoveredFile covered_file = 2; */ org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFileOrBuilder getCoveredFileOrBuilder( - int index); + int index); } /** * Protobuf type {@code CoverageDetail} */ public static final class CoverageDetail extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:CoverageDetail) - CoverageDetailOrBuilder { + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:CoverageDetail) + CoverageDetailOrBuilder { // Use CoverageDetail.newBuilder() to construct. private CoverageDetail(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } - - private CoverageDetail(boolean noInit) { - this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } + private CoverageDetail(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final CoverageDetail defaultInstance; - public static CoverageDetail getDefaultInstance() { return defaultInstance; } @@ -24296,21 +22154,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 CoverageDetail( - 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) { @@ -24321,7 +22177,7 @@ public final class BatchReport { break; default: { if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { + extensionRegistry, tag)) { done = true; } break; @@ -24346,7 +22202,7 @@ 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)) { coveredFile_ = java.util.Collections.unmodifiableList(coveredFile_); @@ -24355,28 +22211,27 @@ public final class BatchReport { makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + getDescriptor() { return org.sonar.batch.protocol.output.BatchReport.internal_static_CoverageDetail_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { + internalGetFieldAccessorTable() { return org.sonar.batch.protocol.output.BatchReport.internal_static_CoverageDetail_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.batch.protocol.output.BatchReport.CoverageDetail.class, org.sonar.batch.protocol.output.BatchReport.CoverageDetail.Builder.class); + .ensureFieldAccessorsInitialized( + org.sonar.batch.protocol.output.BatchReport.CoverageDetail.class, org.sonar.batch.protocol.output.BatchReport.CoverageDetail.Builder.class); } public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public CoverageDetail parsePartialFrom( + new com.google.protobuf.AbstractParser() { + public CoverageDetail parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new CoverageDetail(input, extensionRegistry); - } - }; + return new CoverageDetail(input, extensionRegistry); + } + }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { @@ -24384,14 +22239,13 @@ public final class BatchReport { } public interface CoveredFileOrBuilder extends - // @@protoc_insertion_point(interface_extends:CoverageDetail.CoveredFile) - com.google.protobuf.MessageOrBuilder { + // @@protoc_insertion_point(interface_extends:CoverageDetail.CoveredFile) + com.google.protobuf.MessageOrBuilder { /** * optional int32 file_ref = 1; */ boolean hasFileRef(); - /** * optional int32 file_ref = 1; */ @@ -24401,12 +22255,10 @@ public final class BatchReport { * repeated int32 covered_line = 2 [packed = true]; */ java.util.List getCoveredLineList(); - /** * repeated int32 covered_line = 2 [packed = true]; */ int getCoveredLineCount(); - /** * repeated int32 covered_line = 2 [packed = true]; */ @@ -24416,21 +22268,17 @@ public final class BatchReport { * Protobuf type {@code CoverageDetail.CoveredFile} */ public static final class CoveredFile extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:CoverageDetail.CoveredFile) - CoveredFileOrBuilder { + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:CoverageDetail.CoveredFile) + CoveredFileOrBuilder { // Use CoveredFile.newBuilder() to construct. private CoveredFile(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } - - private CoveredFile(boolean noInit) { - this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } + private CoveredFile(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final CoveredFile defaultInstance; - public static CoveredFile getDefaultInstance() { return defaultInstance; } @@ -24440,21 +22288,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 CoveredFile( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + private CoveredFile( + 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) { @@ -24465,7 +22311,7 @@ public final class BatchReport { break; default: { if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { + extensionRegistry, tag)) { done = true; } break; @@ -24502,7 +22348,7 @@ 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)) { coveredLine_ = java.util.Collections.unmodifiableList(coveredLine_); @@ -24511,28 +22357,27 @@ public final class BatchReport { makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + getDescriptor() { return org.sonar.batch.protocol.output.BatchReport.internal_static_CoverageDetail_CoveredFile_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { + internalGetFieldAccessorTable() { return org.sonar.batch.protocol.output.BatchReport.internal_static_CoverageDetail_CoveredFile_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFile.class, org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFile.Builder.class); + .ensureFieldAccessorsInitialized( + org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFile.class, org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFile.Builder.class); } public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public CoveredFile parsePartialFrom( + new com.google.protobuf.AbstractParser() { + public CoveredFile parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new CoveredFile(input, extensionRegistry); - } - }; + return new CoveredFile(input, extensionRegistry); + } + }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { @@ -24542,14 +22387,12 @@ public final class BatchReport { private int bitField0_; public static final int FILE_REF_FIELD_NUMBER = 1; private int fileRef_; - /** * optional int32 file_ref = 1; */ public boolean hasFileRef() { return ((bitField0_ & 0x00000001) == 0x00000001); } - /** * optional int32 file_ref = 1; */ @@ -24559,51 +22402,43 @@ public final class BatchReport { public static final int COVERED_LINE_FIELD_NUMBER = 2; private java.util.List coveredLine_; - /** * repeated int32 covered_line = 2 [packed = true]; */ public java.util.List - getCoveredLineList() { + getCoveredLineList() { return coveredLine_; } - /** * repeated int32 covered_line = 2 [packed = true]; */ public int getCoveredLineCount() { return coveredLine_.size(); } - /** * repeated int32 covered_line = 2 [packed = true]; */ public int getCoveredLine(int index) { return coveredLine_.get(index); } - private int coveredLineMemoizedSerializedSize = -1; private void initFields() { fileRef_ = 0; coveredLine_ = 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 true; + if (isInitialized == 0) return false; 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, fileRef_); @@ -24619,11 +22454,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)) { @@ -24640,7 +22473,7 @@ public final class BatchReport { if (!getCoveredLineList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); + .computeInt32SizeNoTag(dataSize); } coveredLineMemoizedSerializedSize = dataSize; } @@ -24650,115 +22483,95 @@ 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.CoverageDetail.CoveredFile 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.CoverageDetail.CoveredFile 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.CoverageDetail.CoveredFile 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.CoverageDetail.CoveredFile 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.CoverageDetail.CoveredFile 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.CoverageDetail.CoveredFile 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.CoverageDetail.CoveredFile 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.CoverageDetail.CoveredFile 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.CoverageDetail.CoveredFile 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.CoverageDetail.CoveredFile 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.CoverageDetail.CoveredFile 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 CoverageDetail.CoveredFile} */ public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:CoverageDetail.CoveredFile) - org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFileOrBuilder { + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:CoverageDetail.CoveredFile) + org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFileOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + getDescriptor() { return org.sonar.batch.protocol.output.BatchReport.internal_static_CoverageDetail_CoveredFile_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { + internalGetFieldAccessorTable() { return org.sonar.batch.protocol.output.BatchReport.internal_static_CoverageDetail_CoveredFile_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFile.class, org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFile.Builder.class); + .ensureFieldAccessorsInitialized( + org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFile.class, org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFile.Builder.class); } // Construct using org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFile.newBuilder() @@ -24767,16 +22580,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(); } @@ -24795,7 +22606,7 @@ public final class BatchReport { } public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { + getDescriptorForType() { return org.sonar.batch.protocol.output.BatchReport.internal_static_CoverageDetail_CoveredFile_descriptor; } @@ -24831,7 +22642,7 @@ public final class BatchReport { public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFile) { - return mergeFrom((org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFile) other); + return mergeFrom((org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFile)other); } else { super.mergeFrom(other); return this; @@ -24839,8 +22650,7 @@ public final class BatchReport { } public Builder mergeFrom(org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFile other) { - if (other == org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFile.getDefaultInstance()) - return this; + if (other == org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFile.getDefaultInstance()) return this; if (other.hasFileRef()) { setFileRef(other.getFileRef()); } @@ -24863,9 +22673,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.CoverageDetail.CoveredFile parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); @@ -24879,25 +22689,21 @@ public final class BatchReport { } return this; } - private int bitField0_; - private int fileRef_; - + private int fileRef_ ; /** * optional int32 file_ref = 1; */ public boolean hasFileRef() { return ((bitField0_ & 0x00000001) == 0x00000001); } - /** * optional int32 file_ref = 1; */ public int getFileRef() { return fileRef_; } - /** * optional int32 file_ref = 1; */ @@ -24907,7 +22713,6 @@ public final class BatchReport { onChanged(); return this; } - /** * optional int32 file_ref = 1; */ @@ -24919,47 +22724,41 @@ public final class BatchReport { } private java.util.List coveredLine_ = java.util.Collections.emptyList(); - private void ensureCoveredLineIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { coveredLine_ = new java.util.ArrayList(coveredLine_); bitField0_ |= 0x00000002; - } + } } - /** * repeated int32 covered_line = 2 [packed = true]; */ public java.util.List - getCoveredLineList() { + getCoveredLineList() { return java.util.Collections.unmodifiableList(coveredLine_); } - /** * repeated int32 covered_line = 2 [packed = true]; */ public int getCoveredLineCount() { return coveredLine_.size(); } - /** * repeated int32 covered_line = 2 [packed = true]; */ public int getCoveredLine(int index) { return coveredLine_.get(index); } - /** * repeated int32 covered_line = 2 [packed = true]; */ public Builder setCoveredLine( - int index, int value) { + int index, int value) { ensureCoveredLineIsMutable(); coveredLine_.set(index, value); onChanged(); return this; } - /** * repeated int32 covered_line = 2 [packed = true]; */ @@ -24969,19 +22768,17 @@ public final class BatchReport { onChanged(); return this; } - /** * repeated int32 covered_line = 2 [packed = true]; */ public Builder addAllCoveredLine( - java.lang.Iterable values) { + java.lang.Iterable values) { ensureCoveredLineIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, coveredLine_); + values, coveredLine_); onChanged(); return this; } - /** * repeated int32 covered_line = 2 [packed = true]; */ @@ -25006,14 +22803,12 @@ public final class BatchReport { private int bitField0_; public static final int TEST_NAME_FIELD_NUMBER = 1; private java.lang.Object testName_; - /** * optional string test_name = 1; */ public boolean hasTestName() { return ((bitField0_ & 0x00000001) == 0x00000001); } - /** * optional string test_name = 1; */ @@ -25022,8 +22817,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()) { testName_ = s; @@ -25031,17 +22826,16 @@ public final class BatchReport { return s; } } - /** * optional string test_name = 1; */ public com.google.protobuf.ByteString - getTestNameBytes() { + getTestNameBytes() { java.lang.Object ref = testName_; 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); testName_ = b; return b; } else { @@ -25051,41 +22845,36 @@ public final class BatchReport { public static final int COVERED_FILE_FIELD_NUMBER = 2; private java.util.List coveredFile_; - /** * repeated .CoverageDetail.CoveredFile covered_file = 2; */ public java.util.List getCoveredFileList() { return coveredFile_; } - /** * repeated .CoverageDetail.CoveredFile covered_file = 2; */ - public java.util.List - getCoveredFileOrBuilderList() { + public java.util.List + getCoveredFileOrBuilderList() { return coveredFile_; } - /** * repeated .CoverageDetail.CoveredFile covered_file = 2; */ public int getCoveredFileCount() { return coveredFile_.size(); } - /** * repeated .CoverageDetail.CoveredFile covered_file = 2; */ public org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFile getCoveredFile(int index) { return coveredFile_.get(index); } - /** * repeated .CoverageDetail.CoveredFile covered_file = 2; */ public org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFileOrBuilder getCoveredFileOrBuilder( - int index) { + int index) { return coveredFile_.get(index); } @@ -25093,22 +22882,18 @@ public final class BatchReport { testName_ = ""; coveredFile_ = 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 true; + if (isInitialized == 0) return false; 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, getTestNameBytes()); @@ -25120,11 +22905,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)) { @@ -25141,115 +22924,95 @@ 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.CoverageDetail 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.CoverageDetail 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.CoverageDetail 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.CoverageDetail 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.CoverageDetail 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.CoverageDetail 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.CoverageDetail 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.CoverageDetail 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.CoverageDetail 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.CoverageDetail 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.CoverageDetail 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 CoverageDetail} */ public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:CoverageDetail) - org.sonar.batch.protocol.output.BatchReport.CoverageDetailOrBuilder { + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:CoverageDetail) + org.sonar.batch.protocol.output.BatchReport.CoverageDetailOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + getDescriptor() { return org.sonar.batch.protocol.output.BatchReport.internal_static_CoverageDetail_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { + internalGetFieldAccessorTable() { return org.sonar.batch.protocol.output.BatchReport.internal_static_CoverageDetail_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.batch.protocol.output.BatchReport.CoverageDetail.class, org.sonar.batch.protocol.output.BatchReport.CoverageDetail.Builder.class); + .ensureFieldAccessorsInitialized( + org.sonar.batch.protocol.output.BatchReport.CoverageDetail.class, org.sonar.batch.protocol.output.BatchReport.CoverageDetail.Builder.class); } // Construct using org.sonar.batch.protocol.output.BatchReport.CoverageDetail.newBuilder() @@ -25258,17 +23021,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) { getCoveredFileFieldBuilder(); } } - private static Builder create() { return new Builder(); } @@ -25291,7 +23052,7 @@ public final class BatchReport { } public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { + getDescriptorForType() { return org.sonar.batch.protocol.output.BatchReport.internal_static_CoverageDetail_descriptor; } @@ -25331,7 +23092,7 @@ public final class BatchReport { public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.sonar.batch.protocol.output.BatchReport.CoverageDetail) { - return mergeFrom((org.sonar.batch.protocol.output.BatchReport.CoverageDetail) other); + return mergeFrom((org.sonar.batch.protocol.output.BatchReport.CoverageDetail)other); } else { super.mergeFrom(other); return this; @@ -25339,8 +23100,7 @@ public final class BatchReport { } public Builder mergeFrom(org.sonar.batch.protocol.output.BatchReport.CoverageDetail other) { - if (other == org.sonar.batch.protocol.output.BatchReport.CoverageDetail.getDefaultInstance()) - return this; + if (other == org.sonar.batch.protocol.output.BatchReport.CoverageDetail.getDefaultInstance()) return this; if (other.hasTestName()) { bitField0_ |= 0x00000001; testName_ = other.testName_; @@ -25364,9 +23124,9 @@ public final class BatchReport { coveredFileBuilder_ = null; coveredFile_ = other.coveredFile_; bitField0_ = (bitField0_ & ~0x00000002); - coveredFileBuilder_ = + coveredFileBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getCoveredFileFieldBuilder() : null; + getCoveredFileFieldBuilder() : null; } else { coveredFileBuilder_.addAllMessages(other.coveredFile_); } @@ -25381,9 +23141,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.CoverageDetail parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); @@ -25397,18 +23157,15 @@ public final class BatchReport { } return this; } - private int bitField0_; private java.lang.Object testName_ = ""; - /** * optional string test_name = 1; */ public boolean hasTestName() { return ((bitField0_ & 0x00000001) == 0x00000001); } - /** * optional string test_name = 1; */ @@ -25416,7 +23173,7 @@ public final class BatchReport { java.lang.Object ref = testName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { testName_ = s; @@ -25426,38 +23183,35 @@ public final class BatchReport { return (java.lang.String) ref; } } - /** * optional string test_name = 1; */ public com.google.protobuf.ByteString - getTestNameBytes() { + getTestNameBytes() { java.lang.Object ref = testName_; 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); testName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - /** * optional string test_name = 1; */ public Builder setTestName( - java.lang.String value) { + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; testName_ = value; onChanged(); return this; } - /** * optional string test_name = 1; */ @@ -25467,16 +23221,15 @@ public final class BatchReport { onChanged(); return this; } - /** * optional string test_name = 1; */ public Builder setTestNameBytes( - com.google.protobuf.ByteString value) { + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; testName_ = value; onChanged(); return this; @@ -25484,15 +23237,15 @@ public final class BatchReport { private java.util.List coveredFile_ = java.util.Collections.emptyList(); - private void ensureCoveredFileIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { coveredFile_ = new java.util.ArrayList(coveredFile_); bitField0_ |= 0x00000002; - } + } } - private com.google.protobuf.RepeatedFieldBuilder coveredFileBuilder_; + private com.google.protobuf.RepeatedFieldBuilder< + org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFile, org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFile.Builder, org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFileOrBuilder> coveredFileBuilder_; /** * repeated .CoverageDetail.CoveredFile covered_file = 2; @@ -25504,7 +23257,6 @@ public final class BatchReport { return coveredFileBuilder_.getMessageList(); } } - /** * repeated .CoverageDetail.CoveredFile covered_file = 2; */ @@ -25515,7 +23267,6 @@ public final class BatchReport { return coveredFileBuilder_.getCount(); } } - /** * repeated .CoverageDetail.CoveredFile covered_file = 2; */ @@ -25526,12 +23277,11 @@ public final class BatchReport { return coveredFileBuilder_.getMessage(index); } } - /** * repeated .CoverageDetail.CoveredFile covered_file = 2; */ public Builder setCoveredFile( - int index, org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFile value) { + int index, org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFile value) { if (coveredFileBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -25544,12 +23294,11 @@ public final class BatchReport { } return this; } - /** * repeated .CoverageDetail.CoveredFile covered_file = 2; */ public Builder setCoveredFile( - int index, org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFile.Builder builderForValue) { + int index, org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFile.Builder builderForValue) { if (coveredFileBuilder_ == null) { ensureCoveredFileIsMutable(); coveredFile_.set(index, builderForValue.build()); @@ -25559,7 +23308,6 @@ public final class BatchReport { } return this; } - /** * repeated .CoverageDetail.CoveredFile covered_file = 2; */ @@ -25576,12 +23324,11 @@ public final class BatchReport { } return this; } - /** * repeated .CoverageDetail.CoveredFile covered_file = 2; */ public Builder addCoveredFile( - int index, org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFile value) { + int index, org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFile value) { if (coveredFileBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -25594,12 +23341,11 @@ public final class BatchReport { } return this; } - /** * repeated .CoverageDetail.CoveredFile covered_file = 2; */ public Builder addCoveredFile( - org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFile.Builder builderForValue) { + org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFile.Builder builderForValue) { if (coveredFileBuilder_ == null) { ensureCoveredFileIsMutable(); coveredFile_.add(builderForValue.build()); @@ -25609,12 +23355,11 @@ public final class BatchReport { } return this; } - /** * repeated .CoverageDetail.CoveredFile covered_file = 2; */ public Builder addCoveredFile( - int index, org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFile.Builder builderForValue) { + int index, org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFile.Builder builderForValue) { if (coveredFileBuilder_ == null) { ensureCoveredFileIsMutable(); coveredFile_.add(index, builderForValue.build()); @@ -25624,23 +23369,21 @@ public final class BatchReport { } return this; } - /** * repeated .CoverageDetail.CoveredFile covered_file = 2; */ public Builder addAllCoveredFile( - java.lang.Iterable values) { + java.lang.Iterable values) { if (coveredFileBuilder_ == null) { ensureCoveredFileIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, coveredFile_); + values, coveredFile_); onChanged(); } else { coveredFileBuilder_.addAllMessages(values); } return this; } - /** * repeated .CoverageDetail.CoveredFile covered_file = 2; */ @@ -25654,7 +23397,6 @@ public final class BatchReport { } return this; } - /** * repeated .CoverageDetail.CoveredFile covered_file = 2; */ @@ -25668,74 +23410,66 @@ public final class BatchReport { } return this; } - /** * repeated .CoverageDetail.CoveredFile covered_file = 2; */ public org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFile.Builder getCoveredFileBuilder( - int index) { + int index) { return getCoveredFileFieldBuilder().getBuilder(index); } - /** * repeated .CoverageDetail.CoveredFile covered_file = 2; */ public org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFileOrBuilder getCoveredFileOrBuilder( - int index) { + int index) { if (coveredFileBuilder_ == null) { - return coveredFile_.get(index); - } else { + return coveredFile_.get(index); } else { return coveredFileBuilder_.getMessageOrBuilder(index); } } - /** * repeated .CoverageDetail.CoveredFile covered_file = 2; */ - public java.util.List - getCoveredFileOrBuilderList() { + public java.util.List + getCoveredFileOrBuilderList() { if (coveredFileBuilder_ != null) { return coveredFileBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(coveredFile_); } } - /** * repeated .CoverageDetail.CoveredFile covered_file = 2; */ public org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFile.Builder addCoveredFileBuilder() { return getCoveredFileFieldBuilder().addBuilder( - org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFile.getDefaultInstance()); + org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFile.getDefaultInstance()); } - /** * repeated .CoverageDetail.CoveredFile covered_file = 2; */ public org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFile.Builder addCoveredFileBuilder( - int index) { + int index) { return getCoveredFileFieldBuilder().addBuilder( - index, org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFile.getDefaultInstance()); + index, org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFile.getDefaultInstance()); } - /** * repeated .CoverageDetail.CoveredFile covered_file = 2; */ - public java.util.List - getCoveredFileBuilderList() { + public java.util.List + getCoveredFileBuilderList() { return getCoveredFileFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilder< - org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFile, org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFile.Builder, org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFileOrBuilder> - getCoveredFileFieldBuilder() { + org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFile, org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFile.Builder, org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFileOrBuilder> + getCoveredFileFieldBuilder() { if (coveredFileBuilder_ == null) { coveredFileBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFile, org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFile.Builder, org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFileOrBuilder>( - coveredFile_, - ((bitField0_ & 0x00000002) == 0x00000002), - getParentForChildren(), - isClean()); + org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFile, org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFile.Builder, org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFileOrBuilder>( + coveredFile_, + ((bitField0_ & 0x00000002) == 0x00000002), + getParentForChildren(), + isClean()); coveredFile_ = null; } return coveredFileBuilder_; @@ -25752,277 +23486,335 @@ public final class BatchReport { // @@protoc_insertion_point(class_scope:CoverageDetail) } - 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_Event_descriptor; - private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Event_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_Measure_descriptor; - private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Measure_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor internal_static_Measures_descriptor; - private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Measures_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 final com.google.protobuf.Descriptors.Descriptor internal_static_Changesets_descriptor; - private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Changesets_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor internal_static_Changesets_Changeset_descriptor; - private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Changesets_Changeset_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor internal_static_Duplicate_descriptor; - private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Duplicate_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor internal_static_Duplication_descriptor; - private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Duplication_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor internal_static_Duplications_descriptor; - private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Duplications_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor internal_static_Range_descriptor; - private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Range_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor internal_static_Symbols_descriptor; - private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Symbols_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor internal_static_Symbols_Symbol_descriptor; - private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Symbols_Symbol_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor internal_static_Coverage_descriptor; - private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Coverage_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor internal_static_SyntaxHighlighting_descriptor; - private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_SyntaxHighlighting_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor internal_static_Test_descriptor; - private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Test_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor internal_static_CoverageDetail_descriptor; - private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_CoverageDetail_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor internal_static_CoverageDetail_CoveredFile_descriptor; - private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_CoverageDetail_CoveredFile_fieldAccessorTable; + 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_Event_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_Event_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_Measure_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_Measure_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Measures_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_Measures_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 final com.google.protobuf.Descriptors.Descriptor + internal_static_Changesets_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_Changesets_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Changesets_Changeset_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_Changesets_Changeset_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Duplicate_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_Duplicate_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Duplication_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_Duplication_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Duplications_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_Duplications_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Range_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_Range_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Symbols_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_Symbols_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Symbols_Symbol_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_Symbols_Symbol_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Coverage_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_Coverage_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_SyntaxHighlighting_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_SyntaxHighlighting_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Test_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_Test_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_CoverageDetail_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_CoverageDetail_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_CoverageDetail_CoveredFile_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_CoverageDetail_CoveredFile_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\"\231\001" + - "\n\010Metadata\022\025\n\ranalysis_date\030\001 \001(\003\022\023\n\013pro" + - "ject_key\030\002 \001(\t\022\016\n\006branch\030\006 \001(\t\022\032\n\022root_c" + - "omponent_ref\030\003 \001(\005\022\023\n\013snapshot_id\030\004 \001(\003\022" + - " \n\030deleted_components_count\030\005 \001(\005\"?\n\rCom" + - "ponentLink\022 \n\004type\030\001 \001(\0162\022.ComponentLink" + - "Type\022\014\n\004href\030\002 \001(\t\"w\n\005Event\022\025\n\rcomponent" + - "_ref\030\001 \001(\005\022\014\n\004name\030\002 \001(\t\022\023\n\013description\030" + - "\003 \001(\t\022 \n\010category\030\004 \001(\0162\016.EventCategory\022" + - "\022\n\nevent_data\030\005 \001(\t\"\262\002\n\tComponent\022\013\n\003ref", + "\n\010Metadata\022\025\n\ranalysis_date\030\001 \001(\003\022\023\n\013pro" + + "ject_key\030\002 \001(\t\022\016\n\006branch\030\006 \001(\t\022\032\n\022root_c" + + "omponent_ref\030\003 \001(\005\022\023\n\013snapshot_id\030\004 \001(\003\022" + + " \n\030deleted_components_count\030\005 \001(\005\"?\n\rCom" + + "ponentLink\022 \n\004type\030\001 \001(\0162\022.ComponentLink" + + "Type\022\014\n\004href\030\002 \001(\t\"w\n\005Event\022\025\n\rcomponent" + + "_ref\030\001 \001(\005\022\014\n\004name\030\002 \001(\t\022\023\n\013description\030" + + "\003 \001(\t\022 \n\010category\030\004 \001(\0162\016.EventCategory\022" + + "\022\n\nevent_data\030\005 \001(\t\"\230\002\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\004ty" + - "pe\030\004 \001(\0162\016.ComponentType\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\017\n\007vers" + - "ion\030\014 \001(\t\022\013\n\003key\030\016 \001(\t\022\r\n\005lines\030\017 \001(\005\022\023\n" + - "\013description\030\020 \001(\t\022\n\n\002id\030\r \001(\003\022\023\n\013snapsh" + - "ot_id\030\010 \001(\003\022\014\n\004uuid\030\t \001(\t\022\025\n\005event\030\013 \003(\013" + - "2\006.Event\"\316\003\n\007Measure\022%\n\nvalue_type\030\001 \001(\016" + - "2\021.MeasureValueType\022\025\n\rboolean_value\030\002 \001" + - "(\010\022\021\n\tint_value\030\003 \001(\005\022\022\n\nlong_value\030\004 \001(", - "\003\022\024\n\014double_value\030\005 \001(\001\022\024\n\014string_value\030" + - "\006 \001(\t\022\022\n\nmetric_key\030\007 \001(\t\022\023\n\013description" + - "\030\t \001(\t\022\020\n\010rule_key\030\n \001(\t\022\033\n\010severity\030\013 \001" + - "(\0162\t.Severity\022\024\n\014alert_status\030\014 \001(\t\022\022\n\na" + - "lert_text\030\r \001(\t\022\031\n\021variation_value_1\030\016 \001" + - "(\001\022\031\n\021variation_value_2\030\017 \001(\001\022\031\n\021variati" + - "on_value_3\030\020 \001(\001\022\031\n\021variation_value_4\030\021 " + - "\001(\001\022\031\n\021variation_value_5\030\022 \001(\001\022\026\n\016charac" + - "teric_id\030\023 \001(\005\022\021\n\tperson_id\030\024 \001(\005\"<\n\010Mea" + - "sures\022\025\n\rcomponent_ref\030\001 \001(\005\022\031\n\007measure\030", - "\002 \003(\0132\010.Measure\"\231\004\n\005Issue\022\027\n\017rule_reposi" + - "tory\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.Seve" + - "rity\022\013\n\003tag\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_i" + - "n_minutes\030\n \001(\003\022\022\n\nresolution\030\013 \001(\t\022\016\n\006s" + - "tatus\030\014 \001(\t\022\020\n\010checksum\030\r \001(\t\022\027\n\017manual_" + - "severity\030\016 \001(\010\022\020\n\010reporter\030\017 \001(\t\022\020\n\010assi" + - "gnee\030\020 \001(\t\022\027\n\017action_plan_key\030\021 \001(\t\022\022\n\na" + - "ttributes\030\022 \001(\t\022\024\n\014author_login\030\023 \001(\t\022\025\n", - "\rcreation_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\"N\n\006I" + - "ssues\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(\t\"\254\001\n\n" + - "Changesets\022\025\n\rcomponent_ref\030\001 \001(\005\022(\n\tcha" + - "ngeset\030\002 \003(\0132\025.Changesets.Changeset\022 \n\024c" + - "hangesetIndexByLine\030\003 \003(\005B\002\020\001\032;\n\tChanges" + - "et\022\020\n\010revision\030\001 \001(\t\022\016\n\006author\030\002 \001(\t\022\014\n\004", - "date\030\003 \001(\003\"R\n\tDuplicate\022\026\n\016other_file_re" + - "f\030\001 \001(\005\022\025\n\005range\030\002 \001(\0132\006.Range\022\026\n\016other_" + - "file_key\030\003 \001(\t\"M\n\013Duplication\022\037\n\017origin_" + - "position\030\001 \001(\0132\006.Range\022\035\n\tduplicate\030\002 \003(" + - "\0132\n.Duplicate\"H\n\014Duplications\022\025\n\rcompone" + - "nt_ref\030\001 \001(\005\022!\n\013duplication\030\002 \003(\0132\014.Dupl" + - "ication\"W\n\005Range\022\022\n\nstart_line\030\001 \001(\005\022\020\n\010" + - "end_line\030\002 \001(\005\022\024\n\014start_offset\030\003 \001(\005\022\022\n\n" + - "end_offset\030\004 \001(\005\"~\n\007Symbols\022\020\n\010file_ref\030" + - "\001 \001(\005\022\037\n\006symbol\030\002 \003(\0132\017.Symbols.Symbol\032@", - "\n\006Symbol\022\033\n\013declaration\030\001 \001(\0132\006.Range\022\031\n" + - "\treference\030\002 \003(\0132\006.Range\"\260\001\n\010Coverage\022\014\n" + - "\004line\030\001 \001(\005\022\022\n\nconditions\030\002 \001(\005\022\017\n\007ut_hi" + - "ts\030\003 \001(\010\022\017\n\007it_hits\030\004 \001(\010\022\035\n\025ut_covered_" + - "conditions\030\005 \001(\005\022\035\n\025it_covered_condition" + - "s\030\006 \001(\005\022\"\n\032overall_covered_conditions\030\007 " + - "\001(\005\"L\n\022SyntaxHighlighting\022\025\n\005range\030\001 \001(\013" + - "2\006.Range\022\037\n\004type\030\002 \001(\0162\021.HighlightingTyp" + - "e\"j\n\004Test\022\014\n\004name\030\001 \001(\t\022\033\n\006status\030\002 \001(\0162" + - "\013.TestStatus\022\026\n\016duration_in_ms\030\003 \001(\003\022\022\n\n", - "stacktrace\030\004 \001(\t\022\013\n\003msg\030\005 \001(\t\"\221\001\n\016Covera" + - "geDetail\022\021\n\ttest_name\030\001 \001(\t\0221\n\014covered_f" + - "ile\030\002 \003(\0132\033.CoverageDetail.CoveredFile\0329" + - "\n\013CoveredFile\022\020\n\010file_ref\030\001 \001(\005\022\030\n\014cover" + - "ed_line\030\002 \003(\005B\002\020\001B#\n\037org.sonar.batch.pro" + - "tocol.outputH\001" + "pe\030\004 \001(\0162\016.ComponentType\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\010 \003(\0132\016.ComponentLink\022\017\n\007vers" + + "ion\030\t \001(\t\022\013\n\003key\030\n \001(\t\022\r\n\005lines\030\013 \001(\005\022\023\n" + + "\013description\030\014 \001(\t\022\023\n\013snapshot_id\030\r \001(\003\022" + + "\025\n\005event\030\016 \003(\0132\006.Event\"\316\003\n\007Measure\022%\n\nva" + + "lue_type\030\001 \001(\0162\021.MeasureValueType\022\025\n\rboo" + + "lean_value\030\002 \001(\010\022\021\n\tint_value\030\003 \001(\005\022\022\n\nl" + + "ong_value\030\004 \001(\003\022\024\n\014double_value\030\005 \001(\001\022\024\n", + "\014string_value\030\006 \001(\t\022\022\n\nmetric_key\030\007 \001(\t\022" + + "\023\n\013description\030\t \001(\t\022\020\n\010rule_key\030\n \001(\t\022\033" + + "\n\010severity\030\013 \001(\0162\t.Severity\022\024\n\014alert_sta" + + "tus\030\014 \001(\t\022\022\n\nalert_text\030\r \001(\t\022\031\n\021variati" + + "on_value_1\030\016 \001(\001\022\031\n\021variation_value_2\030\017 " + + "\001(\001\022\031\n\021variation_value_3\030\020 \001(\001\022\031\n\021variat" + + "ion_value_4\030\021 \001(\001\022\031\n\021variation_value_5\030\022" + + " \001(\001\022\026\n\016characteric_id\030\023 \001(\005\022\021\n\tperson_i" + + "d\030\024 \001(\005\"<\n\010Measures\022\025\n\rcomponent_ref\030\001 \001" + + "(\005\022\031\n\007measure\030\002 \003(\0132\010.Measure\"\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\010severit" + + "y\030\005 \001(\0162\t.Severity\022\013\n\003tag\030\006 \003(\t\022\025\n\reffor" + + "t_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\nresolut" + + "ion\030\013 \001(\t\022\016\n\006status\030\014 \001(\t\022\020\n\010checksum\030\r " + + "\001(\t\022\027\n\017manual_severity\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\nattributes\030\022 \001(\t\022\024\n\014author_" + + "login\030\023 \001(\t\022\025\n\rcreation_date\030\024 \001(\003\022\022\n\ncl", + "ose_date\030\025 \001(\003\022\023\n\013update_date\030\026 \001(\003\022\023\n\013s" + + "elected_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_notificat" + + "ion\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_u" + + "uid\030\003 \001(\t\"\254\001\n\nChangesets\022\025\n\rcomponent_re" + + "f\030\001 \001(\005\022(\n\tchangeset\030\002 \003(\0132\025.Changesets." + + "Changeset\022 \n\024changesetIndexByLine\030\003 \003(\005B" + + "\002\020\001\032;\n\tChangeset\022\020\n\010revision\030\001 \001(\t\022\016\n\006au" + + "thor\030\002 \001(\t\022\014\n\004date\030\003 \001(\003\"R\n\tDuplicate\022\026\n", + "\016other_file_ref\030\001 \001(\005\022\025\n\005range\030\002 \001(\0132\006.R" + + "ange\022\026\n\016other_file_key\030\003 \001(\t\"M\n\013Duplicat" + + "ion\022\037\n\017origin_position\030\001 \001(\0132\006.Range\022\035\n\t" + + "duplicate\030\002 \003(\0132\n.Duplicate\"H\n\014Duplicati" + + "ons\022\025\n\rcomponent_ref\030\001 \001(\005\022!\n\013duplicatio" + + "n\030\002 \003(\0132\014.Duplication\"W\n\005Range\022\022\n\nstart_" + + "line\030\001 \001(\005\022\020\n\010end_line\030\002 \001(\005\022\024\n\014start_of" + + "fset\030\003 \001(\005\022\022\n\nend_offset\030\004 \001(\005\"~\n\007Symbol" + + "s\022\020\n\010file_ref\030\001 \001(\005\022\037\n\006symbol\030\002 \003(\0132\017.Sy" + + "mbols.Symbol\032@\n\006Symbol\022\033\n\013declaration\030\001 ", + "\001(\0132\006.Range\022\031\n\treference\030\002 \003(\0132\006.Range\"\260" + + "\001\n\010Coverage\022\014\n\004line\030\001 \001(\005\022\022\n\nconditions\030" + + "\002 \001(\005\022\017\n\007ut_hits\030\003 \001(\010\022\017\n\007it_hits\030\004 \001(\010\022" + + "\035\n\025ut_covered_conditions\030\005 \001(\005\022\035\n\025it_cov" + + "ered_conditions\030\006 \001(\005\022\"\n\032overall_covered" + + "_conditions\030\007 \001(\005\"L\n\022SyntaxHighlighting\022" + + "\025\n\005range\030\001 \001(\0132\006.Range\022\037\n\004type\030\002 \001(\0162\021.H" + + "ighlightingType\"j\n\004Test\022\014\n\004name\030\001 \001(\t\022\033\n" + + "\006status\030\002 \001(\0162\013.TestStatus\022\026\n\016duration_i" + + "n_ms\030\003 \001(\003\022\022\n\nstacktrace\030\004 \001(\t\022\013\n\003msg\030\005 ", + "\001(\t\"\221\001\n\016CoverageDetail\022\021\n\ttest_name\030\001 \001(" + + "\t\0221\n\014covered_file\030\002 \003(\0132\033.CoverageDetail" + + ".CoveredFile\0329\n\013CoveredFile\022\020\n\010file_ref\030" + + "\001 \001(\005\022\030\n\014covered_line\030\002 \003(\005B\002\020\001B#\n\037org.s" + + "onar.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) { - descriptor = root; - return null; - } - }; + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + 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", "Branch", "RootComponentRef", "SnapshotId", "DeletedComponentsCount",}); + new java.lang.String[] { "AnalysisDate", "ProjectKey", "Branch", "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",}); + new java.lang.String[] { "Type", "Href", }); internal_static_Event_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_Event_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_Event_descriptor, - new java.lang.String[] {"ComponentRef", "Name", "Description", "Category", "EventData",}); + new java.lang.String[] { "ComponentRef", "Name", "Description", "Category", "EventData", }); internal_static_Component_descriptor = getDescriptor().getMessageTypes().get(3); 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", "Version", "Key", "Lines", "Description", "Id", "SnapshotId", "Uuid", - "Event",}); + new java.lang.String[] { "Ref", "Path", "Name", "Type", "IsTest", "Language", "ChildRef", "Link", "Version", "Key", "Lines", "Description", "SnapshotId", "Event", }); internal_static_Measure_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_Measure_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_Measure_descriptor, - new java.lang.String[] {"ValueType", "BooleanValue", "IntValue", "LongValue", "DoubleValue", "StringValue", "MetricKey", "Description", "RuleKey", "Severity", - "AlertStatus", "AlertText", "VariationValue1", "VariationValue2", "VariationValue3", "VariationValue4", "VariationValue5", "CharactericId", "PersonId",}); + new java.lang.String[] { "ValueType", "BooleanValue", "IntValue", "LongValue", "DoubleValue", "StringValue", "MetricKey", "Description", "RuleKey", "Severity", "AlertStatus", "AlertText", "VariationValue1", "VariationValue2", "VariationValue3", "VariationValue4", "VariationValue5", "CharactericId", "PersonId", }); internal_static_Measures_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_Measures_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_Measures_descriptor, - new java.lang.String[] {"ComponentRef", "Measure",}); + new java.lang.String[] { "ComponentRef", "Measure", }); internal_static_Issue_descriptor = getDescriptor().getMessageTypes().get(6); 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",}); + 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(7); internal_static_Issues_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_Issues_descriptor, - new java.lang.String[] {"ComponentRef", "Issue", "ComponentUuid",}); + new java.lang.String[] { "ComponentRef", "Issue", "ComponentUuid", }); internal_static_Changesets_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_Changesets_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_Changesets_descriptor, - new java.lang.String[] {"ComponentRef", "Changeset", "ChangesetIndexByLine",}); + new java.lang.String[] { "ComponentRef", "Changeset", "ChangesetIndexByLine", }); internal_static_Changesets_Changeset_descriptor = internal_static_Changesets_descriptor.getNestedTypes().get(0); internal_static_Changesets_Changeset_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_Changesets_Changeset_descriptor, - new java.lang.String[] {"Revision", "Author", "Date",}); + new java.lang.String[] { "Revision", "Author", "Date", }); internal_static_Duplicate_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_Duplicate_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_Duplicate_descriptor, - new java.lang.String[] {"OtherFileRef", "Range", "OtherFileKey",}); + new java.lang.String[] { "OtherFileRef", "Range", "OtherFileKey", }); internal_static_Duplication_descriptor = getDescriptor().getMessageTypes().get(10); internal_static_Duplication_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_Duplication_descriptor, - new java.lang.String[] {"OriginPosition", "Duplicate",}); + new java.lang.String[] { "OriginPosition", "Duplicate", }); internal_static_Duplications_descriptor = getDescriptor().getMessageTypes().get(11); internal_static_Duplications_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_Duplications_descriptor, - new java.lang.String[] {"ComponentRef", "Duplication",}); + new java.lang.String[] { "ComponentRef", "Duplication", }); internal_static_Range_descriptor = getDescriptor().getMessageTypes().get(12); internal_static_Range_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_Range_descriptor, - new java.lang.String[] {"StartLine", "EndLine", "StartOffset", "EndOffset",}); + new java.lang.String[] { "StartLine", "EndLine", "StartOffset", "EndOffset", }); internal_static_Symbols_descriptor = getDescriptor().getMessageTypes().get(13); internal_static_Symbols_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_Symbols_descriptor, - new java.lang.String[] {"FileRef", "Symbol",}); + new java.lang.String[] { "FileRef", "Symbol", }); internal_static_Symbols_Symbol_descriptor = internal_static_Symbols_descriptor.getNestedTypes().get(0); internal_static_Symbols_Symbol_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_Symbols_Symbol_descriptor, - new java.lang.String[] {"Declaration", "Reference",}); + new java.lang.String[] { "Declaration", "Reference", }); internal_static_Coverage_descriptor = getDescriptor().getMessageTypes().get(14); internal_static_Coverage_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_Coverage_descriptor, - new java.lang.String[] {"Line", "Conditions", "UtHits", "ItHits", "UtCoveredConditions", "ItCoveredConditions", "OverallCoveredConditions",}); + new java.lang.String[] { "Line", "Conditions", "UtHits", "ItHits", "UtCoveredConditions", "ItCoveredConditions", "OverallCoveredConditions", }); internal_static_SyntaxHighlighting_descriptor = getDescriptor().getMessageTypes().get(15); internal_static_SyntaxHighlighting_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_SyntaxHighlighting_descriptor, - new java.lang.String[] {"Range", "Type",}); + new java.lang.String[] { "Range", "Type", }); internal_static_Test_descriptor = getDescriptor().getMessageTypes().get(16); internal_static_Test_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_Test_descriptor, - new java.lang.String[] {"Name", "Status", "DurationInMs", "Stacktrace", "Msg",}); + new java.lang.String[] { "Name", "Status", "DurationInMs", "Stacktrace", "Msg", }); internal_static_CoverageDetail_descriptor = getDescriptor().getMessageTypes().get(17); internal_static_CoverageDetail_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_CoverageDetail_descriptor, - new java.lang.String[] {"TestName", "CoveredFile",}); + new java.lang.String[] { "TestName", "CoveredFile", }); internal_static_CoverageDetail_CoveredFile_descriptor = internal_static_CoverageDetail_descriptor.getNestedTypes().get(0); internal_static_CoverageDetail_CoveredFile_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_CoverageDetail_CoveredFile_descriptor, - new java.lang.String[] {"FileRef", "CoveredLine",}); + new java.lang.String[] { "FileRef", "CoveredLine", }); org.sonar.batch.protocol.Constants.getDescriptor(); } diff --git a/sonar-batch-protocol/src/main/protobuf/batch_report.proto b/sonar-batch-protocol/src/main/protobuf/batch_report.proto index bd07b9ac450..fa7801297ef 100644 --- a/sonar-batch-protocol/src/main/protobuf/batch_report.proto +++ b/sonar-batch-protocol/src/main/protobuf/batch_report.proto @@ -72,21 +72,19 @@ message Component { optional bool is_test = 5; optional string language = 6; repeated int32 child_ref = 7 [packed = true]; - repeated ComponentLink link = 10; + repeated ComponentLink link = 8; // Only available on PROJECT and MODULE types - optional string version = 12; + optional string version = 9; // Only available on PROJECT and MODULE types - optional string key = 14; + optional string key = 10; // Only available on FILE type - optional int32 lines = 15; + optional int32 lines = 11; // Only available on PROJECT and MODULE types - optional string description = 16; + optional string description = 12; // temporary fields during development of computation stack - optional int64 id = 13; - optional int64 snapshot_id = 8; - optional string uuid = 9; - repeated Event event = 11; + optional int64 snapshot_id = 13; + repeated Event event = 14; } message Measure { 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 aea1e7d6f67..46d8749259c 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,7 +78,6 @@ public class BatchReportWriterTest { .setRef(1) .setLanguage("java") .setPath("src/Foo.java") - .setUuid("UUID_A") .setType(Constants.ComponentType.FILE) .setIsTest(false) .addChildRef(5) @@ -93,7 +92,6 @@ public class BatchReportWriterTest { assertThat(read.getChildRefList()).containsOnly(5, 42); assertThat(read.hasName()).isFalse(); assertThat(read.getIsTest()).isFalse(); - assertThat(read.getUuid()).isEqualTo("UUID_A"); } @Test 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 2398ec25434..8e4dc077f48 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 @@ -31,10 +31,11 @@ import org.sonar.batch.index.BatchComponent; import org.sonar.batch.index.BatchComponentCache; import org.sonar.batch.protocol.Constants; import org.sonar.batch.protocol.Constants.ComponentLinkType; -import org.sonar.batch.protocol.output.*; +import org.sonar.batch.protocol.output.BatchReport; import org.sonar.batch.protocol.output.BatchReport.Component.Builder; import org.sonar.batch.protocol.output.BatchReport.ComponentLink; import org.sonar.batch.protocol.output.BatchReport.Event; +import org.sonar.batch.protocol.output.BatchReportWriter; import javax.annotation.CheckForNull; @@ -74,10 +75,6 @@ public class ComponentsPublisher implements ReportPublisherStep { // protocol buffers does not accept null values - String uuid = r.getUuid(); - if (uuid != null) { - builder.setUuid(uuid); - } Integer sid = batchResource.snapshotId(); if (sid != null) { builder.setSnapshotId(sid); diff --git a/sonar-core/src/main/java/org/sonar/core/component/ComponentDto.java b/sonar-core/src/main/java/org/sonar/core/component/ComponentDto.java index 93a2feb82ee..1e64ff9e9ed 100644 --- a/sonar-core/src/main/java/org/sonar/core/component/ComponentDto.java +++ b/sonar-core/src/main/java/org/sonar/core/component/ComponentDto.java @@ -135,12 +135,11 @@ public class ComponentDto implements Component { /** * Return the path from the project to the last modules */ - @CheckForNull public String moduleUuidPath() { return moduleUuidPath; } - public ComponentDto setModuleUuidPath(@Nullable String moduleUuidPath) { + public ComponentDto setModuleUuidPath(String moduleUuidPath) { this.moduleUuidPath = moduleUuidPath; return this; } diff --git a/sonar-core/src/main/java/org/sonar/core/component/db/ComponentMapper.java b/sonar-core/src/main/java/org/sonar/core/component/db/ComponentMapper.java index be3f2b12412..424b8a269bf 100644 --- a/sonar-core/src/main/java/org/sonar/core/component/db/ComponentMapper.java +++ b/sonar-core/src/main/java/org/sonar/core/component/db/ComponentMapper.java @@ -96,7 +96,7 @@ public interface ComponentMapper { /** * Return all components of a project */ - List selectComponentsFromProjectUuid(@Param("projectUuid") String projectUuid); + List selectComponentsFromProjectKey(@Param("projectKey") String projectKey); /** * Return technical projects from a view or a sub-view diff --git a/sonar-core/src/main/resources/org/sonar/core/component/db/ComponentMapper.xml b/sonar-core/src/main/resources/org/sonar/core/component/db/ComponentMapper.xml index f7690f358a0..ad195fe0815 100644 --- a/sonar-core/src/main/resources/org/sonar/core/component/db/ComponentMapper.xml +++ b/sonar-core/src/main/resources/org/sonar/core/component/db/ComponentMapper.xml @@ -213,11 +213,11 @@ - SELECT FROM projects p + INNER JOIN projects root ON root.uuid=p.project_uuid AND root.kee=#{projectKey} - AND p.project_uuid=#{projectUuid} AND p.enabled=${_true} @@ -285,7 +285,7 @@ #{createdAt,jdbcType=TIMESTAMP}, #{authorizationUpdatedAt,jdbcType=BIGINT}) - + UPDATE projects SET kee=#{kee,jdbcType=VARCHAR}, deprecated_kee=#{deprecatedKey,jdbcType=VARCHAR}, diff --git a/sonar-core/src/test/java/org/sonar/core/persistence/DbTester.java b/sonar-core/src/test/java/org/sonar/core/persistence/DbTester.java index a2dae090bdc..bf5d14b0200 100644 --- a/sonar-core/src/test/java/org/sonar/core/persistence/DbTester.java +++ b/sonar-core/src/test/java/org/sonar/core/persistence/DbTester.java @@ -62,7 +62,12 @@ import java.math.BigDecimal; import java.net.HttpURLConnection; import java.net.URI; import java.net.URISyntaxException; -import java.sql.*; +import java.sql.Clob; +import java.sql.Connection; +import java.sql.PreparedStatement; +import java.sql.ResultSet; +import java.sql.ResultSetMetaData; +import java.sql.SQLException; import java.util.List; import java.util.Map; import java.util.Properties; @@ -198,7 +203,7 @@ public class DbTester extends ExternalResource { throw new IllegalStateException("No results for " + sql); } catch (Exception e) { - throw new IllegalStateException("Fail to execute sql: " + sql); + throw new IllegalStateException("Fail to execute sql: " + sql, e); } } @@ -209,7 +214,7 @@ public class DbTester extends ExternalResource { ResultSet rs = stmt.executeQuery()) { return getHashMap(rs); } catch (Exception e) { - throw new IllegalStateException("Fail to execute sql: " + selectSql); + throw new IllegalStateException("Fail to execute sql: " + selectSql, e); } } @@ -237,7 +242,12 @@ public class DbTester extends ExternalResource { doClobFree(clob); } else if (value instanceof BigDecimal) { // In Oracle, INTEGER types are mapped as BigDecimal - value = ((BigDecimal) value).longValue(); + BigDecimal bgValue = ((BigDecimal)value); + if (bgValue.scale() == 0) { + value = bgValue.longValue(); + } else { + value = bgValue.doubleValue(); + } } else if (value instanceof Integer) { // To be consistent, all INTEGER types are mapped as Long value = ((Integer) value).longValue();