From: Julien Lancelot Date: Wed, 20 May 2015 09:02:55 +0000 (+0200) Subject: SONAR-6553 Remove Java design WS and File dependencies persistence in Compute Engine X-Git-Tag: 5.2-RC1~1896 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=bb1e4774ac1cac50ba758c82ed6715b1abfe01a8;p=sonarqube.git SONAR-6553 Remove Java design WS and File dependencies persistence in Compute Engine --- 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 b391f9fd64c..f70df2eeb15 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 @@ -49,7 +49,6 @@ public class ComputationSteps { PersistDuplicationsStep.class, PersistFileSourcesStep.class, PersistTestsStep.class, - PersistFileDependenciesStep.class, // Switch snapshot and purge SwitchSnapshotStep.class, diff --git a/server/sonar-server/src/main/java/org/sonar/server/computation/step/PersistFileDependenciesStep.java b/server/sonar-server/src/main/java/org/sonar/server/computation/step/PersistFileDependenciesStep.java deleted file mode 100644 index 7d81e2a472f..00000000000 --- a/server/sonar-server/src/main/java/org/sonar/server/computation/step/PersistFileDependenciesStep.java +++ /dev/null @@ -1,143 +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.api.resources.Qualifiers; -import org.sonar.api.utils.System2; -import org.sonar.batch.protocol.Constants; -import org.sonar.batch.protocol.output.BatchReport; -import org.sonar.batch.protocol.output.BatchReportReader; -import org.sonar.core.design.FileDependencyDto; -import org.sonar.core.persistence.DbSession; -import org.sonar.core.persistence.MyBatis; -import org.sonar.server.computation.ComputationContext; -import org.sonar.server.computation.source.ReportIterator; -import org.sonar.server.db.DbClient; - -import java.io.File; -import java.util.HashMap; -import java.util.Map; - -public class PersistFileDependenciesStep implements ComputationStep { - - private final DbClient dbClient; - private final System2 system2; - - public PersistFileDependenciesStep(DbClient dbClient, System2 system2) { - this.dbClient = dbClient; - this.system2 = system2; - } - - @Override - public String[] supportedProjectQualifiers() { - return new String[] {Qualifiers.PROJECT}; - } - - @Override - public void execute(ComputationContext context) { - DbSession session = dbClient.openSession(true); - try { - FileDependenciesContext fileDependenciesContext = new FileDependenciesContext(context, session); - int rootComponentRef = context.getReportMetadata().getRootComponentRef(); - recursivelyProcessComponent(fileDependenciesContext, rootComponentRef, rootComponentRef); - session.commit(); - } finally { - MyBatis.closeQuietly(session); - } - } - - private void recursivelyProcessComponent(FileDependenciesContext fileDependenciesContext, int componentRef, int parentModuleRef) { - BatchReportReader reportReader = fileDependenciesContext.context.getReportReader(); - BatchReport.Component component = reportReader.readComponent(componentRef); - if (component.getType().equals(Constants.ComponentType.FILE)) { - processFileDependenciesReport(fileDependenciesContext, component); - } - - for (Integer childRef : component.getChildRefList()) { - recursivelyProcessComponent(fileDependenciesContext, childRef, componentRef); - } - } - - private void processFileDependenciesReport(FileDependenciesContext fileDependenciesContext, BatchReport.Component component){ - File fileDependencyReport = fileDependenciesContext.context.getReportReader().readFileDependencies(component.getRef()); - if (fileDependencyReport != null) { - ReportIterator fileDependenciesIterator = new ReportIterator<>(fileDependencyReport, BatchReport.FileDependency.PARSER); - try { - while (fileDependenciesIterator.hasNext()) { - BatchReport.FileDependency fileDependency = fileDependenciesIterator.next(); - persistFileDependency(fileDependenciesContext, fileDependency, component.getRef()); - } - } finally { - fileDependenciesIterator.close(); - } - } - } - - private void persistFileDependency(FileDependenciesContext fileDependenciesContext, BatchReport.FileDependency fileDependency, int fromRef){ - int toFileRef = fileDependency.getToFileRef(); - String fromComponentUuid = fileDependenciesContext.uuidsByRef.getUuidFromRef(fromRef); - String toComponentUuid = fileDependenciesContext.uuidsByRef.getUuidFromRef(toFileRef); - dbClient.fileDependencyDao().insert(fileDependenciesContext.session, new FileDependencyDto() - .setFromComponentUuid(fileDependenciesContext.uuidsByRef.getUuidFromRef(fromRef)) - .setToComponentUuid(fileDependenciesContext.uuidsByRef.getUuidFromRef(toFileRef)) - .setFromParentUuid(fileDependenciesContext.parentUuidsByComponentUuid.get(fromComponentUuid)) - .setToParentUuid(fileDependenciesContext.parentUuidsByComponentUuid.get(toComponentUuid)) - .setRootProjectSnapshotId(fileDependenciesContext.rootSnapshotId) - .setWeight(fileDependency.getWeight()) - .setCreatedAt(system2.now()) - ); - } - - private static class FileDependenciesContext { - private final Long rootSnapshotId; - private final ComponentUuidsCache uuidsByRef; - private final ComputationContext context; - private final Map parentUuidsByComponentUuid = new HashMap<>(); - private final DbSession session; - - public FileDependenciesContext(ComputationContext context, DbSession session) { - this.context = context; - this.rootSnapshotId = context.getReportMetadata().getSnapshotId(); - this.session = session; - this.uuidsByRef = new ComponentUuidsCache(context.getReportReader()); - int rootComponentRef = context.getReportMetadata().getRootComponentRef(); - recursivelyProcessParentByComponentCache(rootComponentRef, rootComponentRef); - } - - private void recursivelyProcessParentByComponentCache(int componentRef, int parentModuleRef){ - BatchReportReader reportReader = context.getReportReader(); - BatchReport.Component component = reportReader.readComponent(componentRef); - BatchReport.Component parent = reportReader.readComponent(parentModuleRef); - if (component.getType().equals(Constants.ComponentType.FILE)) { - parentUuidsByComponentUuid.put(component.getUuid(), parent.getUuid()); - } - - for (Integer childRef : component.getChildRefList()) { - recursivelyProcessParentByComponentCache(childRef, componentRef); - } - } - } - - @Override - public String getDescription() { - return "Persist file dependencies"; - } -} diff --git a/server/sonar-server/src/main/java/org/sonar/server/db/DbClient.java b/server/sonar-server/src/main/java/org/sonar/server/db/DbClient.java index c1c69559104..88178d94036 100644 --- a/server/sonar-server/src/main/java/org/sonar/server/db/DbClient.java +++ b/server/sonar-server/src/main/java/org/sonar/server/db/DbClient.java @@ -45,7 +45,6 @@ import org.sonar.server.computation.db.AnalysisReportDao; import org.sonar.server.dashboard.db.DashboardDao; import org.sonar.server.dashboard.db.WidgetDao; import org.sonar.server.dashboard.db.WidgetPropertyDao; -import org.sonar.server.design.db.FileDependencyDao; import org.sonar.server.event.db.EventDao; import org.sonar.server.issue.db.IssueDao; import org.sonar.server.measure.persistence.MeasureDao; @@ -102,7 +101,6 @@ public class DbClient { private final ComponentIndexDao componentIndexDao; private final ComponentLinkDao componentLinkDao; private final EventDao eventDao; - private final FileDependencyDao fileDependencyDao; private final PurgeDao purgeDao; public DbClient(Database db, MyBatis myBatis, DaoComponent... daoComponents) { @@ -143,7 +141,6 @@ public class DbClient { componentIndexDao = getDao(map, ComponentIndexDao.class); componentLinkDao = getDao(map, ComponentLinkDao.class); eventDao = getDao(map, EventDao.class); - fileDependencyDao = getDao(map, FileDependencyDao.class); purgeDao = getDao(map, PurgeDao.class); } @@ -275,10 +272,6 @@ public class DbClient { return eventDao; } - public FileDependencyDao fileDependencyDao() { - return fileDependencyDao; - } - public PurgeDao purgeDao() { return purgeDao; } diff --git a/server/sonar-server/src/main/java/org/sonar/server/design/db/FileDependencyDao.java b/server/sonar-server/src/main/java/org/sonar/server/design/db/FileDependencyDao.java deleted file mode 100644 index 3f97c33aae5..00000000000 --- a/server/sonar-server/src/main/java/org/sonar/server/design/db/FileDependencyDao.java +++ /dev/null @@ -1,46 +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.design.db; - -import org.sonar.api.ServerSide; -import org.sonar.core.design.FileDependencyDto; -import org.sonar.core.design.FileDependencyMapper; -import org.sonar.core.persistence.DaoComponent; -import org.sonar.core.persistence.DbSession; - -import java.util.List; - -@ServerSide -public class FileDependencyDao implements DaoComponent { - - public List selectFromParents(DbSession session, String fromParentUuid, String toParentUuid, Long projectId) { - return session.getMapper(FileDependencyMapper.class).selectFromParents(fromParentUuid, toParentUuid, projectId); - } - - public List selectAll(DbSession session) { - return session.getMapper(FileDependencyMapper.class).selectAll(); - } - - public void insert(DbSession session, FileDependencyDto dto) { - session.getMapper(FileDependencyMapper.class).insert(dto); - } - -} diff --git a/server/sonar-server/src/main/java/org/sonar/server/design/db/package-info.java b/server/sonar-server/src/main/java/org/sonar/server/design/db/package-info.java deleted file mode 100644 index 4cd7fad5bb4..00000000000 --- a/server/sonar-server/src/main/java/org/sonar/server/design/db/package-info.java +++ /dev/null @@ -1,24 +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. - */ - -@ParametersAreNonnullByDefault -package org.sonar.server.design.db; - -import javax.annotation.ParametersAreNonnullByDefault; diff --git a/server/sonar-server/src/main/java/org/sonar/server/design/package-info.java b/server/sonar-server/src/main/java/org/sonar/server/design/package-info.java deleted file mode 100644 index f0cbe012a17..00000000000 --- a/server/sonar-server/src/main/java/org/sonar/server/design/package-info.java +++ /dev/null @@ -1,24 +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. - */ - -@ParametersAreNonnullByDefault -package org.sonar.server.design; - -import javax.annotation.ParametersAreNonnullByDefault; diff --git a/server/sonar-server/src/main/java/org/sonar/server/design/ws/DependenciesWs.java b/server/sonar-server/src/main/java/org/sonar/server/design/ws/DependenciesWs.java deleted file mode 100644 index e8425e41947..00000000000 --- a/server/sonar-server/src/main/java/org/sonar/server/design/ws/DependenciesWs.java +++ /dev/null @@ -1,43 +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.design.ws; - -import org.sonar.api.server.ws.WebService; - -public class DependenciesWs implements WebService { - - private final ShowAction showAction; - - public DependenciesWs(ShowAction showAction) { - this.showAction = showAction; - } - - @Override - public void define(Context context) { - NewController controller = context.createController("api/dependencies") - .setSince("5.2"); - - showAction.define(controller); - - controller.done(); - } - -} diff --git a/server/sonar-server/src/main/java/org/sonar/server/design/ws/ShowAction.java b/server/sonar-server/src/main/java/org/sonar/server/design/ws/ShowAction.java deleted file mode 100644 index 0378183eaf2..00000000000 --- a/server/sonar-server/src/main/java/org/sonar/server/design/ws/ShowAction.java +++ /dev/null @@ -1,130 +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.design.ws; - -import com.google.common.io.Resources; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Set; -import org.sonar.api.server.ws.Request; -import org.sonar.api.server.ws.Response; -import org.sonar.api.server.ws.WebService; -import org.sonar.api.utils.text.JsonWriter; -import org.sonar.api.web.UserRole; -import org.sonar.core.component.ComponentDto; -import org.sonar.core.design.FileDependencyDto; -import org.sonar.core.persistence.DbSession; -import org.sonar.server.db.DbClient; -import org.sonar.server.user.UserSession; -import org.sonar.server.ws.WsAction; - -public class ShowAction implements WsAction { - - private static final String PARAM_FROM_PARENT_UUID = "fromParentUuid"; - private static final String PARAM_TO_PARENT_UUID = "toParentUuid"; - - private final DbClient dbClient; - private final UserSession userSession; - - public ShowAction(DbClient dbClient, UserSession userSession) { - this.dbClient = dbClient; - this.userSession = userSession; - } - - @Override - public void define(WebService.NewController controller) { - WebService.NewAction action = controller.createAction("show") - .setDescription("Show file dependencies between two directories") - .setSince("5.2") - .setInternal(true) - .setHandler(this) - .setResponseExample(Resources.getResource(getClass(), "example-show.json")); - - action.createParam(PARAM_FROM_PARENT_UUID) - .setDescription("First directory uuid") - .setRequired(true) - .setExampleValue("2312cd03-b514-4acc-94f4-5c5e8e0062b2"); - - action.createParam(PARAM_TO_PARENT_UUID) - .setDescription("Second directory uuid") - .setRequired(true) - .setExampleValue("d38641a2-3166-451d-a2db-ab3b82e2d3ca"); - } - - @Override - public void handle(Request request, Response response) throws Exception { - String fromParentUuid = request.mandatoryParam(PARAM_FROM_PARENT_UUID); - String toParentUuid = request.mandatoryParam(PARAM_TO_PARENT_UUID); - - DbSession session = dbClient.openSession(false); - try { - ComponentDto fromParent = dbClient.componentDao().selectByUuid(session, fromParentUuid); - ComponentDto project = dbClient.componentDao().selectByUuid(session, fromParent.projectUuid()); - userSession.checkProjectUuidPermission(UserRole.USER, project.uuid()); - - List fileDependencies = dbClient.fileDependencyDao().selectFromParents(session, fromParentUuid, toParentUuid, project.getId()); - writeResponse(response, fileDependencies, componentsByUuid(session, fileDependencies)); - } finally { - session.close(); - } - } - - private void writeResponse(Response response, List fileDependencies, Map componentsByUuid) { - JsonWriter json = response.newJsonWriter().beginObject(); - json.name("dependencies").beginArray(); - for (FileDependencyDto fileDependencyDto : fileDependencies) { - ComponentDto fromComponent = getComponent(fileDependencyDto.getFromComponentUuid(), componentsByUuid); - ComponentDto toComponent = getComponent(fileDependencyDto.getToComponentUuid(), componentsByUuid); - json.beginObject() - .prop("fromUuid", fromComponent.uuid()) - .prop("fromName", fromComponent.longName()) - .prop("toUuid", toComponent.uuid()) - .prop("toName", toComponent.longName()) - .prop("weight", fileDependencyDto.getWeight()) - .endObject(); - } - json.endArray().endObject().close(); - } - - private Map componentsByUuid(DbSession session, List fileDependencies) { - Set uuids = new HashSet<>(); - for (FileDependencyDto fileDependency : fileDependencies) { - uuids.add(fileDependency.getFromComponentUuid()); - uuids.add(fileDependency.getToComponentUuid()); - } - Map componentsByUuid = new HashMap<>(); - for (ComponentDto componentDto : dbClient.componentDao().selectByUuids(session, uuids)) { - componentsByUuid.put(componentDto.uuid(), componentDto); - } - return componentsByUuid; - } - - private static ComponentDto getComponent(String uuid, Map componentsByUuid) { - ComponentDto component = componentsByUuid.get(uuid); - if (component == null) { - throw new IllegalStateException(String.format("Component with uuid '%s' does not exists", uuid)); - } - return component; - } - -} diff --git a/server/sonar-server/src/main/java/org/sonar/server/design/ws/package-info.java b/server/sonar-server/src/main/java/org/sonar/server/design/ws/package-info.java deleted file mode 100644 index f871e44d0f1..00000000000 --- a/server/sonar-server/src/main/java/org/sonar/server/design/ws/package-info.java +++ /dev/null @@ -1,24 +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. - */ - -@ParametersAreNonnullByDefault -package org.sonar.server.design.ws; - -import javax.annotation.ParametersAreNonnullByDefault; diff --git a/server/sonar-server/src/main/java/org/sonar/server/platform/platformlevel/PlatformLevel1.java b/server/sonar-server/src/main/java/org/sonar/server/platform/platformlevel/PlatformLevel1.java index 276f0e0955c..0be187f699d 100644 --- a/server/sonar-server/src/main/java/org/sonar/server/platform/platformlevel/PlatformLevel1.java +++ b/server/sonar-server/src/main/java/org/sonar/server/platform/platformlevel/PlatformLevel1.java @@ -19,10 +19,6 @@ */ package org.sonar.server.platform.platformlevel; -import java.util.Properties; - -import javax.annotation.Nullable; - import org.sonar.api.utils.System2; import org.sonar.api.utils.internal.TempFolderCleaner; import org.sonar.core.config.CorePropertyDefinitions; @@ -48,7 +44,6 @@ import org.sonar.server.db.DatabaseChecker; import org.sonar.server.db.DbClient; import org.sonar.server.db.EmbeddedDatabaseFactory; import org.sonar.server.db.migrations.MigrationSteps; -import org.sonar.server.design.db.FileDependencyDao; import org.sonar.server.es.EsClient; import org.sonar.server.event.db.EventDao; import org.sonar.server.issue.db.IssueDao; @@ -77,6 +72,10 @@ import org.sonar.server.user.db.GroupDao; import org.sonar.server.user.db.UserDao; import org.sonar.server.user.db.UserGroupDao; +import javax.annotation.Nullable; + +import java.util.Properties; + public class PlatformLevel1 extends PlatformLevel { private final Platform platform; private final Properties properties; @@ -163,8 +162,7 @@ public class PlatformLevel1 extends PlatformLevel { EventDao.class, ActivityDao.class, AnalysisReportDao.class, - FileSourceDao.class, - FileDependencyDao.class); + FileSourceDao.class); addAll(CorePropertyDefinitions.all()); addAll(MigrationSteps.CLASSES); addAll(DaoUtils.getDaoClasses()); diff --git a/server/sonar-server/src/main/java/org/sonar/server/platform/platformlevel/PlatformLevel4.java b/server/sonar-server/src/main/java/org/sonar/server/platform/platformlevel/PlatformLevel4.java index 0f08118e17b..10b13a032f7 100644 --- a/server/sonar-server/src/main/java/org/sonar/server/platform/platformlevel/PlatformLevel4.java +++ b/server/sonar-server/src/main/java/org/sonar/server/platform/platformlevel/PlatformLevel4.java @@ -19,8 +19,6 @@ */ package org.sonar.server.platform.platformlevel; -import java.util.List; - import org.sonar.api.config.EmailSettings; import org.sonar.api.issue.action.Actions; import org.sonar.api.profiles.AnnotationProfileParser; @@ -92,7 +90,6 @@ import org.sonar.server.debt.DebtModelPluginRepository; import org.sonar.server.debt.DebtModelService; import org.sonar.server.debt.DebtModelXMLExporter; import org.sonar.server.debt.DebtRulesXMLImporter; -import org.sonar.server.design.ws.DependenciesWs; import org.sonar.server.duplication.ws.DuplicationsJsonWriter; import org.sonar.server.duplication.ws.DuplicationsParser; import org.sonar.server.duplication.ws.DuplicationsWs; @@ -295,6 +292,8 @@ import org.sonar.server.view.index.ViewIndexer; import org.sonar.server.ws.ListingWs; import org.sonar.server.ws.WebServiceEngine; +import java.util.List; + public class PlatformLevel4 extends PlatformLevel { private final List level4AddedComponents; @@ -646,10 +645,6 @@ public class PlatformLevel4 extends PlatformLevel { StringTypeValidation.class, StringListTypeValidation.class, - // Design - DependenciesWs.class, - org.sonar.server.design.ws.ShowAction.class, - // System RestartAction.class, InfoAction.class, diff --git a/server/sonar-server/src/main/resources/org/sonar/server/design/ws/example-show.json b/server/sonar-server/src/main/resources/org/sonar/server/design/ws/example-show.json deleted file mode 100644 index 979046c40a7..00000000000 --- a/server/sonar-server/src/main/resources/org/sonar/server/design/ws/example-show.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "dependencies":[ - { - "fromUuid": "ae8ef766-269e-481e-b89e-0a3cf52f0feb", - "fromName": "src/main/java/org/sonar/core/issue/db/ActionPlanDao.java", - "toUuid": "5e96f736-1b2d-46d9-a071-b9a44e123438", - "toName": "src/main/java/org/sonar/core/persistence/DaoComponent.java", - "weight": 1 - } - ] -} 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 020036506d1..fb4cac219d0 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 @@ -49,14 +49,13 @@ public class ComputationStepsTest { mock(PersistDuplicationsStep.class), mock(PersistNumberOfDaysSinceLastCommitStep.class), mock(PersistFileSourcesStep.class), - mock(PersistFileDependenciesStep.class), mock(PersistTestsStep.class), mock(IndexTestsStep.class) ); - assertThat(registry.orderedSteps()).hasSize(20); + assertThat(registry.orderedSteps()).hasSize(19); assertThat(registry.orderedSteps().get(0)).isInstanceOf(ParseReportStep.class); - assertThat(registry.orderedSteps().get(19)).isInstanceOf(SendIssueNotificationsStep.class); + assertThat(registry.orderedSteps().get(18)).isInstanceOf(SendIssueNotificationsStep.class); } @Test diff --git a/server/sonar-server/src/test/java/org/sonar/server/computation/step/PersistFileDependenciesStepTest.java b/server/sonar-server/src/test/java/org/sonar/server/computation/step/PersistFileDependenciesStepTest.java deleted file mode 100644 index 30c13c7f8e7..00000000000 --- a/server/sonar-server/src/test/java/org/sonar/server/computation/step/PersistFileDependenciesStepTest.java +++ /dev/null @@ -1,189 +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.After; -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.resources.Qualifiers; -import org.sonar.api.utils.System2; -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.design.FileDependencyDto; -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.db.DbClient; -import org.sonar.server.design.db.FileDependencyDao; - -import java.io.File; -import java.util.Collections; -import java.util.List; - -import static org.assertj.core.api.Assertions.assertThat; -import static org.mockito.Mockito.mock; -import static org.mockito.Mockito.when; - -public class PersistFileDependenciesStepTest extends BaseStepTest { - - static final String PROJECT_UUID = "PROJECT"; - static final long PROJECT_SNAPSHOT_ID = 10L; - static final long now = 123456789L; - - @Rule - public TemporaryFolder temp = new TemporaryFolder(); - - @ClassRule - public static DbTester dbTester = new DbTester(); - - DbClient dbClient; - - System2 system2 = mock(System2.class); - - DbSession session; - - BatchReportWriter writer; - - ComputationContext context; - - PersistFileDependenciesStep sut; - - @Before - public void setup() throws Exception { - dbTester.truncateTables(); - session = dbTester.myBatis().openSession(false); - dbClient = new DbClient(dbTester.database(), dbTester.myBatis(), new FileDependencyDao()); - - system2 = mock(System2.class); - when(system2.now()).thenReturn(now); - - File reportDir = temp.newFolder(); - writer = new BatchReportWriter(reportDir); - writer.writeMetadata(BatchReport.Metadata.newBuilder() - .setRootComponentRef(1) - .setSnapshotId(PROJECT_SNAPSHOT_ID) - .build()); - context = new ComputationContext(new BatchReportReader(reportDir), ComponentTesting.newProjectDto(PROJECT_UUID)); - - sut = new PersistFileDependenciesStep(dbClient, system2); - } - - @After - public void tearDown() { - session.close(); - } - - @Override - protected ComputationStep step() { - return new PersistFileDependenciesStep(dbClient, system2); - } - - @Test - public void supported_project_qualifiers() { - assertThat(step().supportedProjectQualifiers()).containsOnly(Qualifiers.PROJECT); - } - - @Test - public void persist_file_dependencies() { - writer.writeComponent(BatchReport.Component.newBuilder() - .setRef(1) - .setType(Constants.ComponentType.PROJECT) - .setUuid(PROJECT_UUID) - .addChildRef(2) - .addChildRef(4) - .build()); - writer.writeComponent(BatchReport.Component.newBuilder() - .setRef(2) - .setType(Constants.ComponentType.DIRECTORY) - .setUuid("DIRECTORY_A") - .addChildRef(3) - .build()); - writer.writeComponent(BatchReport.Component.newBuilder() - .setRef(3) - .setType(Constants.ComponentType.FILE) - .setUuid("FILE_A") - .build()); - writer.writeComponent(BatchReport.Component.newBuilder() - .setRef(4) - .setType(Constants.ComponentType.DIRECTORY) - .setUuid("DIRECTORY_B") - .addChildRef(5) - .build()); - writer.writeComponent(BatchReport.Component.newBuilder() - .setRef(5) - .setType(Constants.ComponentType.FILE) - .setUuid("FILE_B") - .build()); - - writer.writeFileDependencies(3, Collections.singletonList( - BatchReport.FileDependency.newBuilder() - .setToFileRef(5) - .setWeight(1) - .build() - )); - - sut.execute(context); - - List dtos = dbClient.fileDependencyDao().selectAll(session); - assertThat(dtos).hasSize(1); - - FileDependencyDto dto = dtos.get(0); - assertThat(dto.getId()).isNotNull(); - assertThat(dto.getFromComponentUuid()).isEqualTo("FILE_A"); - assertThat(dto.getFromParentUuid()).isEqualTo("DIRECTORY_A"); - assertThat(dto.getToComponentUuid()).isEqualTo("FILE_B"); - assertThat(dto.getToParentUuid()).isEqualTo("DIRECTORY_B"); - assertThat(dto.getRootProjectSnapshotId()).isEqualTo(PROJECT_SNAPSHOT_ID); - assertThat(dto.getWeight()).isEqualTo(1); - assertThat(dto.getCreatedAt()).isEqualTo(now); - } - - @Test - public void nothing_to_persist() { - 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.DIRECTORY) - .setUuid("DIRECTORY_A") - .addChildRef(3) - .build()); - writer.writeComponent(BatchReport.Component.newBuilder() - .setRef(3) - .setType(Constants.ComponentType.FILE) - .setUuid("FILE_A") - .build()); - - sut.execute(context); - - assertThat(dbClient.fileDependencyDao().selectAll(session)).isEmpty(); - } -} diff --git a/server/sonar-server/src/test/java/org/sonar/server/design/db/FileDependencyDaoTest.java b/server/sonar-server/src/test/java/org/sonar/server/design/db/FileDependencyDaoTest.java deleted file mode 100644 index da650e69627..00000000000 --- a/server/sonar-server/src/test/java/org/sonar/server/design/db/FileDependencyDaoTest.java +++ /dev/null @@ -1,100 +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.design.db; - -import org.junit.After; -import org.junit.Before; -import org.junit.ClassRule; -import org.junit.Test; -import org.junit.experimental.categories.Category; -import org.sonar.core.design.FileDependencyDto; -import org.sonar.core.persistence.DbSession; -import org.sonar.core.persistence.DbTester; -import org.sonar.test.DbTests; - -import java.util.List; - -import static org.assertj.core.api.Assertions.assertThat; - -@Category(DbTests.class) -public class FileDependencyDaoTest { - - @ClassRule - public static DbTester dbTester = new DbTester(); - - DbSession session; - - FileDependencyDao dao; - - @Before - public void setup() { - dbTester.truncateTables(); - session = dbTester.myBatis().openSession(false); - dao = new FileDependencyDao(); - } - - @After - public void tearDown() { - session.close(); - } - - @Test - public void select_from_parents() { - dbTester.prepareDbUnit(getClass(), "shared.xml"); - - List dtos = dao.selectFromParents(session, "MNOP", "QRST", 1L); - assertThat(dtos).hasSize(1); - - assertThat(dtos.get(0).getId()).isEqualTo(1); - assertThat(dtos.get(0).getFromComponentUuid()).isEqualTo("EFGH"); - assertThat(dtos.get(0).getToComponentUuid()).isEqualTo("IJKL"); - assertThat(dtos.get(0).getFromParentUuid()).isEqualTo("MNOP"); - assertThat(dtos.get(0).getToParentUuid()).isEqualTo("QRST"); - assertThat(dtos.get(0).getWeight()).isEqualTo(2); - assertThat(dtos.get(0).getRootProjectSnapshotId()).isEqualTo(10L); - assertThat(dtos.get(0).getCreatedAt()).isEqualTo(1000L); - - assertThat(dao.selectFromParents(session, "MNOP", "QRST", 123L)).isEmpty(); - } - - @Test - public void select_all() { - dbTester.prepareDbUnit(getClass(), "shared.xml"); - - assertThat(dao.selectAll(session)).hasSize(3); - } - - @Test - public void insert() { - dao.insert(session, new FileDependencyDto() - .setFromComponentUuid("ABCD") - .setToComponentUuid("EFGH") - .setFromParentUuid("IJKL") - .setToParentUuid("MNOP") - .setRootProjectSnapshotId(10L) - .setWeight(2) - .setCreatedAt(1000L) - ); - session.commit(); - - dbTester.assertDbUnit(getClass(), "insert.xml", new String[]{"id"}, "dependencies"); - } -} diff --git a/server/sonar-server/src/test/java/org/sonar/server/design/ws/DependenciesWsTest.java b/server/sonar-server/src/test/java/org/sonar/server/design/ws/DependenciesWsTest.java deleted file mode 100644 index f14e9cc6c32..00000000000 --- a/server/sonar-server/src/test/java/org/sonar/server/design/ws/DependenciesWsTest.java +++ /dev/null @@ -1,61 +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.design.ws; - -import org.junit.Before; -import org.junit.Test; -import org.sonar.api.server.ws.WebService; -import org.sonar.server.db.DbClient; -import org.sonar.server.tester.AnonymousMockUserSession; -import org.sonar.server.ws.WsTester; - -import static org.assertj.core.api.Assertions.assertThat; -import static org.mockito.Mockito.mock; - -public class DependenciesWsTest { - - WebService.Controller controller; - - @Before - public void setUp() { - WsTester tester = new WsTester(new DependenciesWs(new ShowAction(mock(DbClient.class), new AnonymousMockUserSession()))); - controller = tester.controller("api/dependencies"); - } - - @Test - public void define_controller() { - assertThat(controller).isNotNull(); - assertThat(controller.description()).isNull(); - assertThat(controller.since()).isEqualTo("5.2"); - assertThat(controller.actions()).hasSize(1); - } - - @Test - public void define_search_action() { - WebService.Action action = controller.action("show"); - assertThat(action).isNotNull(); - assertThat(action.isPost()).isFalse(); - assertThat(action.responseExampleAsString()).isNotEmpty(); - assertThat(action.isInternal()).isTrue(); - assertThat(action.params()).hasSize(2); - } - -} diff --git a/server/sonar-server/src/test/java/org/sonar/server/design/ws/ShowActionTest.java b/server/sonar-server/src/test/java/org/sonar/server/design/ws/ShowActionTest.java deleted file mode 100644 index ecc362f865e..00000000000 --- a/server/sonar-server/src/test/java/org/sonar/server/design/ws/ShowActionTest.java +++ /dev/null @@ -1,248 +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.design.ws; - -import org.junit.After; -import org.junit.Before; -import org.junit.ClassRule; -import org.junit.Rule; -import org.junit.Test; -import org.sonar.api.server.ws.WebService; -import org.sonar.api.utils.System2; -import org.sonar.api.web.UserRole; -import org.sonar.core.component.ComponentDto; -import org.sonar.core.component.SnapshotDto; -import org.sonar.core.design.FileDependencyDto; -import org.sonar.core.persistence.DbSession; -import org.sonar.core.persistence.DbTester; -import org.sonar.server.component.ComponentTesting; -import org.sonar.server.component.SnapshotTesting; -import org.sonar.server.component.db.ComponentDao; -import org.sonar.server.component.db.SnapshotDao; -import org.sonar.server.db.DbClient; -import org.sonar.server.design.db.FileDependencyDao; -import org.sonar.server.exceptions.ForbiddenException; -import org.sonar.server.exceptions.NotFoundException; -import org.sonar.server.tester.UserSessionRule; -import org.sonar.server.ws.WsTester; - -import static org.assertj.core.api.Assertions.assertThat; -import static org.assertj.core.api.Assertions.failBecauseExceptionWasNotThrown; - -public class ShowActionTest { - - private static final String PROJECT_UUID = "PROJECT"; - private static final String DIR1_UUID = "DIR1"; - private static final String FILE1_UUID = "FILE1"; - private static final String DIR2_UUID = "DIR2"; - private static final String FILE2_UUID = "FILE2"; - private static final String UNKNOWN_UUID = "UNKNOWN"; - - Long projectSnapshotId; - - @ClassRule - public static DbTester dbTester = new DbTester(); - @Rule - public UserSessionRule userSessionRule = UserSessionRule.standalone(); - - DbClient dbClient; - - DbSession session; - - WebService.Controller controller; - - WsTester tester; - - @Before - public void setUp() { - dbTester.truncateTables(); - dbClient = new DbClient(dbTester.database(), dbTester.myBatis(), new ComponentDao(), new SnapshotDao(System2.INSTANCE), new FileDependencyDao()); - session = dbClient.openSession(false); - tester = new WsTester(new DependenciesWs(new ShowAction(dbClient, userSessionRule))); - controller = tester.controller("api/dependencies"); - - initComponents(); - } - - @After - public void after() { - session.close(); - } - - @Test - public void return_file_dependencies() throws Exception { - dbClient.fileDependencyDao().insert(session, new FileDependencyDto() - .setFromComponentUuid(FILE1_UUID) - .setToComponentUuid(FILE2_UUID) - .setFromParentUuid(DIR1_UUID) - .setToParentUuid(DIR2_UUID) - .setRootProjectSnapshotId(projectSnapshotId) - .setWeight(2) - .setCreatedAt(1000L)); - session.commit(); - - userSessionRule.addProjectUuidPermissions(UserRole.USER, PROJECT_UUID); - - tester.newGetRequest("api/dependencies", "show") - .setParam("fromParentUuid", DIR1_UUID) - .setParam("toParentUuid", DIR2_UUID) - .execute() - .assertJson(getClass(), "return_file_dependencies.json"); - } - - @Test - public void return_nothing() throws Exception { - userSessionRule.addProjectUuidPermissions(UserRole.USER, PROJECT_UUID); - - tester.newGetRequest("api/dependencies", "show") - .setParam("fromParentUuid", DIR1_UUID) - .setParam("toParentUuid", DIR2_UUID) - .execute() - .assertJson(getClass(), "return_nothing.json"); - } - - @Test(expected = ForbiddenException.class) - public void fail_if_no_user_permission_on_project() throws Exception { - userSessionRule.addProjectUuidPermissions(UserRole.CODEVIEWER, PROJECT_UUID); - - tester.newGetRequest("api/dependencies", "show") - .setParam("fromParentUuid", DIR1_UUID) - .setParam("toParentUuid", DIR2_UUID) - .execute() - .assertJson(getClass(), "return_nothing.json"); - } - - @Test - public void fail_if_from_parent_uuid_does_not_exists() throws Exception { - dbClient.fileDependencyDao().insert(session, new FileDependencyDto() - .setFromComponentUuid(FILE1_UUID) - .setToComponentUuid(FILE2_UUID) - .setFromParentUuid(DIR1_UUID) - .setToParentUuid(DIR2_UUID) - .setRootProjectSnapshotId(projectSnapshotId) - .setWeight(2) - .setCreatedAt(1000L)); - session.commit(); - - userSessionRule.addProjectUuidPermissions(UserRole.USER, PROJECT_UUID); - - try { - tester.newGetRequest("api/dependencies", "show") - .setParam("fromParentUuid", UNKNOWN_UUID) - .setParam("toParentUuid", DIR2_UUID) - .execute() - .assertJson(getClass(), "return_file_dependencies.json"); - failBecauseExceptionWasNotThrown(NotFoundException.class); - } catch (NotFoundException e) { - assertThat(e).hasMessage("Component with uuid 'UNKNOWN' not found"); - } - } - - @Test - public void return_nothing_if_to_parent_uuid_does_not_exists() throws Exception { - dbClient.fileDependencyDao().insert(session, new FileDependencyDto() - .setFromComponentUuid(FILE1_UUID) - .setToComponentUuid(FILE2_UUID) - .setFromParentUuid(DIR1_UUID) - .setToParentUuid(DIR2_UUID) - .setRootProjectSnapshotId(projectSnapshotId) - .setWeight(2) - .setCreatedAt(1000L)); - session.commit(); - - userSessionRule.addProjectUuidPermissions(UserRole.USER, PROJECT_UUID); - - tester.newGetRequest("api/dependencies", "show") - .setParam("fromParentUuid", DIR1_UUID) - .setParam("toParentUuid", UNKNOWN_UUID) - .execute() - .assertJson(getClass(), "return_nothing.json"); - } - - @Test - public void fail_if_from_component_uuid_does_not_exists() throws Exception { - dbClient.fileDependencyDao().insert(session, new FileDependencyDto() - .setFromComponentUuid(UNKNOWN_UUID) - .setToComponentUuid(FILE2_UUID) - .setFromParentUuid(DIR1_UUID) - .setToParentUuid(DIR2_UUID) - .setRootProjectSnapshotId(projectSnapshotId) - .setWeight(2) - .setCreatedAt(1000L)); - session.commit(); - - userSessionRule.addProjectUuidPermissions(UserRole.USER, PROJECT_UUID); - - try { - tester.newGetRequest("api/dependencies", "show") - .setParam("fromParentUuid", DIR1_UUID) - .setParam("toParentUuid", DIR2_UUID) - .execute() - .assertJson(getClass(), "return_file_dependencies.json"); - failBecauseExceptionWasNotThrown(IllegalStateException.class); - } catch (IllegalStateException e) { - assertThat(e).hasMessage("Component with uuid 'UNKNOWN' does not exists"); - } - } - - @Test - public void fail_if_to_component_uuid_does_not_exists() throws Exception { - dbClient.fileDependencyDao().insert(session, new FileDependencyDto() - .setFromComponentUuid(FILE1_UUID) - .setToComponentUuid(UNKNOWN_UUID) - .setFromParentUuid(DIR1_UUID) - .setToParentUuid(DIR2_UUID) - .setRootProjectSnapshotId(projectSnapshotId) - .setWeight(2) - .setCreatedAt(1000L)); - session.commit(); - - userSessionRule.addProjectUuidPermissions(UserRole.USER, PROJECT_UUID); - - try { - tester.newGetRequest("api/dependencies", "show") - .setParam("fromParentUuid",DIR1_UUID) - .setParam("toParentUuid", DIR2_UUID) - .execute() - .assertJson(getClass(), "return_file_dependencies.json"); - failBecauseExceptionWasNotThrown(IllegalStateException.class); - } catch (IllegalStateException e) { - assertThat(e).hasMessage("Component with uuid 'UNKNOWN' does not exists"); - } - } - - private void initComponents(){ - ComponentDto project = ComponentTesting.newProjectDto(PROJECT_UUID); - ComponentDto directory1 = ComponentTesting.newDirectory(project, "/src/main/java/dir1").setUuid(DIR1_UUID); - ComponentDto file1 = ComponentTesting.newFileDto(directory1, FILE1_UUID).setLongName("src/main/java/dir1/File1.java"); - ComponentDto directory2 = ComponentTesting.newDirectory(project, "/src/main/java/dir2").setUuid(DIR2_UUID); - ComponentDto file2 = ComponentTesting.newFileDto(directory1, FILE2_UUID).setLongName("src/main/java/dir2/File2.java"); - dbClient.componentDao().insert(session, project, directory1, directory2, file1, file2); - - SnapshotDto projectSnapshot = SnapshotTesting.createForProject(project); - dbClient.snapshotDao().insert(session, projectSnapshot); - - session.commit(); - - projectSnapshotId = projectSnapshot.getId(); - } - -} diff --git a/server/sonar-server/src/test/resources/org/sonar/server/design/db/FileDependencyDaoTest/insert.xml b/server/sonar-server/src/test/resources/org/sonar/server/design/db/FileDependencyDaoTest/insert.xml deleted file mode 100644 index 84dc73680c5..00000000000 --- a/server/sonar-server/src/test/resources/org/sonar/server/design/db/FileDependencyDaoTest/insert.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - diff --git a/server/sonar-server/src/test/resources/org/sonar/server/design/db/FileDependencyDaoTest/shared.xml b/server/sonar-server/src/test/resources/org/sonar/server/design/db/FileDependencyDaoTest/shared.xml deleted file mode 100644 index d45b5721cc9..00000000000 --- a/server/sonar-server/src/test/resources/org/sonar/server/design/db/FileDependencyDaoTest/shared.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/server/sonar-server/src/test/resources/org/sonar/server/design/ws/ShowActionTest/return_file_dependencies.json b/server/sonar-server/src/test/resources/org/sonar/server/design/ws/ShowActionTest/return_file_dependencies.json deleted file mode 100644 index 122c0e62901..00000000000 --- a/server/sonar-server/src/test/resources/org/sonar/server/design/ws/ShowActionTest/return_file_dependencies.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "dependencies":[ - { - "fromUuid": "FILE1", - "fromName": "src/main/java/dir1/File1.java", - "toUuid": "FILE2", - "toName": "src/main/java/dir2/File2.java", - "weight": 2 - } - ] -} diff --git a/server/sonar-server/src/test/resources/org/sonar/server/design/ws/ShowActionTest/return_nothing.json b/server/sonar-server/src/test/resources/org/sonar/server/design/ws/ShowActionTest/return_nothing.json deleted file mode 100644 index 45f00a3dece..00000000000 --- a/server/sonar-server/src/test/resources/org/sonar/server/design/ws/ShowActionTest/return_nothing.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "dependencies":[] -} 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 ee07aa76ba6..2baa63e0aa6 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,18 +4,22 @@ 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; */ @@ -25,34 +29,39 @@ 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; */ @@ -66,6 +75,7 @@ public final class BatchReport { * */ boolean hasSnapshotId(); + /** * optional int64 snapshot_id = 4; * @@ -79,6 +89,7 @@ public final class BatchReport { * optional int32 deleted_components_count = 5; */ boolean hasDeletedComponentsCount(); + /** * optional int32 deleted_components_count = 5; */ @@ -88,17 +99,21 @@ 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; } @@ -108,19 +123,21 @@ 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) { @@ -131,7 +148,7 @@ public final class BatchReport { break; default: { if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { + extensionRegistry, tag)) { done = true; } break; @@ -174,33 +191,34 @@ 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() { @@ -210,12 +228,14 @@ 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; */ @@ -225,12 +245,14 @@ 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; */ @@ -239,8 +261,8 @@ public final class BatchReport { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { projectKey_ = s; @@ -248,16 +270,17 @@ 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 { @@ -267,12 +290,14 @@ 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; */ @@ -281,8 +306,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; @@ -290,16 +315,17 @@ 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 { @@ -309,12 +335,14 @@ 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; */ @@ -324,6 +352,7 @@ public final class BatchReport { public static final int SNAPSHOT_ID_FIELD_NUMBER = 4; private long snapshotId_; + /** * optional int64 snapshot_id = 4; * @@ -334,6 +363,7 @@ public final class BatchReport { public boolean hasSnapshotId() { return ((bitField0_ & 0x00000010) == 0x00000010); } + /** * optional int64 snapshot_id = 4; * @@ -347,12 +377,14 @@ 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; */ @@ -368,18 +400,22 @@ 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_); @@ -403,9 +439,11 @@ 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)) { @@ -438,95 +476,115 @@ 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() @@ -535,14 +593,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) { } } + private static Builder create() { return new Builder(); } @@ -569,7 +629,7 @@ public final class BatchReport { } public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { + getDescriptorForType() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Metadata_descriptor; } @@ -620,7 +680,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; @@ -628,7 +688,8 @@ 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()); } @@ -660,9 +721,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); @@ -676,21 +737,25 @@ 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; */ @@ -700,6 +765,7 @@ public final class BatchReport { onChanged(); return this; } + /** * optional int64 analysis_date = 1; */ @@ -711,12 +777,14 @@ 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; */ @@ -724,7 +792,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; @@ -734,35 +802,38 @@ 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; */ @@ -772,27 +843,30 @@ 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; */ @@ -800,7 +874,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; @@ -810,35 +884,38 @@ 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; */ @@ -848,33 +925,37 @@ 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; */ @@ -884,6 +965,7 @@ public final class BatchReport { onChanged(); return this; } + /** * optional int32 root_component_ref = 3; */ @@ -894,7 +976,8 @@ public final class BatchReport { return this; } - private long snapshotId_ ; + private long snapshotId_; + /** * optional int64 snapshot_id = 4; * @@ -905,6 +988,7 @@ public final class BatchReport { public boolean hasSnapshotId() { return ((bitField0_ & 0x00000010) == 0x00000010); } + /** * optional int64 snapshot_id = 4; * @@ -915,6 +999,7 @@ public final class BatchReport { public long getSnapshotId() { return snapshotId_; } + /** * optional int64 snapshot_id = 4; * @@ -928,6 +1013,7 @@ public final class BatchReport { onChanged(); return this; } + /** * optional int64 snapshot_id = 4; * @@ -942,19 +1028,22 @@ 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; */ @@ -964,6 +1053,7 @@ public final class BatchReport { onChanged(); return this; } + /** * optional int32 deleted_components_count = 5; */ @@ -986,13 +1076,14 @@ 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; */ @@ -1002,31 +1093,37 @@ 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; } @@ -1036,19 +1133,21 @@ 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) { @@ -1059,7 +1158,7 @@ public final class BatchReport { break; default: { if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { + extensionRegistry, tag)) { done = true; } break; @@ -1087,33 +1186,34 @@ 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() { @@ -1123,12 +1223,14 @@ 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; */ @@ -1138,12 +1240,14 @@ 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; */ @@ -1152,8 +1256,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; @@ -1161,16 +1265,17 @@ 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 { @@ -1182,18 +1287,22 @@ 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()); @@ -1205,9 +1314,11 @@ 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)) { @@ -1224,95 +1335,115 @@ 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); } - @java.lang.Override + 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() @@ -1321,14 +1452,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) { } } + private static Builder create() { return new Builder(); } @@ -1347,7 +1480,7 @@ public final class BatchReport { } public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { + getDescriptorForType() { return org.sonar.batch.protocol.output.BatchReport.internal_static_ComponentLink_descriptor; } @@ -1382,7 +1515,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; @@ -1390,7 +1523,8 @@ 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()); } @@ -1408,9 +1542,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); @@ -1424,21 +1558,25 @@ 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; */ @@ -1451,6 +1589,7 @@ public final class BatchReport { onChanged(); return this; } + /** * optional .ComponentLinkType type = 1; */ @@ -1462,12 +1601,14 @@ public final class BatchReport { } private java.lang.Object href_ = ""; + /** * optional string href = 2; */ public boolean hasHref() { return ((bitField0_ & 0x00000002) == 0x00000002); } + /** * optional string href = 2; */ @@ -1475,7 +1616,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; @@ -1485,35 +1626,38 @@ 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; */ @@ -1523,15 +1667,16 @@ 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; @@ -1549,13 +1694,14 @@ 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; */ @@ -1565,34 +1711,39 @@ 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; */ @@ -1602,15 +1753,17 @@ 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} @@ -1620,17 +1773,21 @@ 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; } @@ -1640,19 +1797,21 @@ 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) { @@ -1663,7 +1822,7 @@ public final class BatchReport { break; default: { if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { + extensionRegistry, tag)) { done = true; } break; @@ -1708,33 +1867,34 @@ 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() { @@ -1744,12 +1904,14 @@ 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; */ @@ -1759,12 +1921,14 @@ 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; */ @@ -1773,8 +1937,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; @@ -1782,16 +1946,17 @@ 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 { @@ -1801,12 +1966,14 @@ 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; */ @@ -1815,8 +1982,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; @@ -1824,16 +1991,17 @@ 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 { @@ -1843,12 +2011,14 @@ 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; */ @@ -1858,12 +2028,14 @@ 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; */ @@ -1872,8 +2044,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; @@ -1881,16 +2053,17 @@ 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 { @@ -1905,18 +2078,22 @@ 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_); @@ -1937,9 +2114,11 @@ 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)) { @@ -1968,78 +2147,98 @@ 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} * @@ -2048,19 +2247,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() @@ -2069,14 +2268,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) { } } + private static Builder create() { return new Builder(); } @@ -2101,7 +2302,7 @@ public final class BatchReport { } public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { + getDescriptorForType() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Event_descriptor; } @@ -2148,7 +2349,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; @@ -2156,7 +2357,8 @@ 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()); } @@ -2187,9 +2389,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); @@ -2203,21 +2405,25 @@ 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; */ @@ -2227,6 +2433,7 @@ public final class BatchReport { onChanged(); return this; } + /** * optional int32 component_ref = 1; */ @@ -2238,12 +2445,14 @@ public final class BatchReport { } private java.lang.Object name_ = ""; + /** * optional string name = 2; */ public boolean hasName() { return ((bitField0_ & 0x00000002) == 0x00000002); } + /** * optional string name = 2; */ @@ -2251,7 +2460,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; @@ -2261,35 +2470,38 @@ 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; */ @@ -2299,27 +2511,30 @@ 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; */ @@ -2327,7 +2542,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; @@ -2337,35 +2552,38 @@ 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; */ @@ -2375,33 +2593,37 @@ 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; */ @@ -2414,6 +2636,7 @@ public final class BatchReport { onChanged(); return this; } + /** * optional .EventCategory category = 4; */ @@ -2425,12 +2648,14 @@ 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; */ @@ -2438,7 +2663,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; @@ -2448,35 +2673,38 @@ 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; */ @@ -2486,15 +2714,16 @@ 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; @@ -2512,13 +2741,14 @@ 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; */ @@ -2528,34 +2758,39 @@ 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; */ @@ -2565,6 +2800,7 @@ public final class BatchReport { * optional bool is_test = 5; */ boolean hasIsTest(); + /** * optional bool is_test = 5; */ @@ -2574,24 +2810,28 @@ 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]; */ @@ -2600,26 +2840,30 @@ public final class BatchReport { /** * repeated .ComponentLink link = 10; */ - java.util.List - getLinkList(); + java.util.List + getLinkList(); + /** * repeated .ComponentLink link = 10; */ org.sonar.batch.protocol.output.BatchReport.ComponentLink getLink(int index); + /** * repeated .ComponentLink link = 10; */ int getLinkCount(); + /** * repeated .ComponentLink link = 10; */ - java.util.List - getLinkOrBuilderList(); + java.util.List + getLinkOrBuilderList(); + /** * repeated .ComponentLink link = 10; */ org.sonar.batch.protocol.output.BatchReport.ComponentLinkOrBuilder getLinkOrBuilder( - int index); + int index); /** * optional string version = 12; @@ -2629,6 +2873,7 @@ public final class BatchReport { * */ boolean hasVersion(); + /** * optional string version = 12; * @@ -2637,6 +2882,7 @@ public final class BatchReport { * */ java.lang.String getVersion(); + /** * optional string version = 12; * @@ -2645,7 +2891,7 @@ public final class BatchReport { * */ com.google.protobuf.ByteString - getVersionBytes(); + getVersionBytes(); /** * optional string key = 14; @@ -2655,6 +2901,7 @@ public final class BatchReport { * */ boolean hasKey(); + /** * optional string key = 14; * @@ -2663,6 +2910,7 @@ public final class BatchReport { * */ java.lang.String getKey(); + /** * optional string key = 14; * @@ -2671,7 +2919,7 @@ public final class BatchReport { * */ com.google.protobuf.ByteString - getKeyBytes(); + getKeyBytes(); /** * optional int32 lines = 15; @@ -2681,6 +2929,7 @@ public final class BatchReport { * */ boolean hasLines(); + /** * optional int32 lines = 15; * @@ -2698,6 +2947,7 @@ public final class BatchReport { * */ boolean hasDescription(); + /** * optional string description = 16; * @@ -2706,6 +2956,7 @@ public final class BatchReport { * */ java.lang.String getDescription(); + /** * optional string description = 16; * @@ -2714,7 +2965,7 @@ public final class BatchReport { * */ com.google.protobuf.ByteString - getDescriptionBytes(); + getDescriptionBytes(); /** * optional int64 id = 13; @@ -2724,6 +2975,7 @@ public final class BatchReport { * */ boolean hasId(); + /** * optional int64 id = 13; * @@ -2737,6 +2989,7 @@ public final class BatchReport { * optional int64 snapshot_id = 8; */ boolean hasSnapshotId(); + /** * optional int64 snapshot_id = 8; */ @@ -2746,55 +2999,65 @@ 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(); /** * repeated .Event event = 11; */ - java.util.List - getEventList(); + java.util.List + getEventList(); + /** * repeated .Event event = 11; */ org.sonar.batch.protocol.output.BatchReport.Event getEvent(int index); + /** * repeated .Event event = 11; */ int getEventCount(); + /** * repeated .Event event = 11; */ - java.util.List - getEventOrBuilderList(); + java.util.List + getEventOrBuilderList(); + /** * repeated .Event event = 11; */ 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; } @@ -2804,19 +3067,21 @@ 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) { @@ -2827,7 +3092,7 @@ public final class BatchReport { break; default: { if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { + extensionRegistry, tag)) { done = true; } break; @@ -2953,7 +3218,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_ & 0x00000040) == 0x00000040)) { childRef_ = java.util.Collections.unmodifiableList(childRef_); @@ -2968,27 +3233,28 @@ public final class BatchReport { 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() { @@ -2998,12 +3264,14 @@ 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; */ @@ -3013,12 +3281,14 @@ 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; */ @@ -3027,8 +3297,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; @@ -3036,16 +3306,17 @@ 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 { @@ -3055,12 +3326,14 @@ 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; */ @@ -3069,8 +3342,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; @@ -3078,16 +3351,17 @@ 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 { @@ -3097,12 +3371,14 @@ 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; */ @@ -3112,12 +3388,14 @@ 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; */ @@ -3127,12 +3405,14 @@ 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; */ @@ -3141,8 +3421,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; @@ -3150,16 +3430,17 @@ 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 { @@ -3169,64 +3450,74 @@ 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; private java.util.List link_; + /** * repeated .ComponentLink link = 10; */ public java.util.List getLinkList() { return link_; } + /** * repeated .ComponentLink link = 10; */ - public java.util.List - getLinkOrBuilderList() { + public java.util.List + getLinkOrBuilderList() { return link_; } + /** * repeated .ComponentLink link = 10; */ public int getLinkCount() { return link_.size(); } + /** * repeated .ComponentLink link = 10; */ public org.sonar.batch.protocol.output.BatchReport.ComponentLink getLink(int index) { return link_.get(index); } + /** * repeated .ComponentLink link = 10; */ 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; private java.lang.Object version_; + /** * optional string version = 12; * @@ -3237,6 +3528,7 @@ public final class BatchReport { public boolean hasVersion() { return ((bitField0_ & 0x00000040) == 0x00000040); } + /** * optional string version = 12; * @@ -3249,8 +3541,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; @@ -3258,6 +3550,7 @@ public final class BatchReport { return s; } } + /** * optional string version = 12; * @@ -3266,12 +3559,12 @@ public final class BatchReport { * */ 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 { @@ -3281,6 +3574,7 @@ public final class BatchReport { public static final int KEY_FIELD_NUMBER = 14; private java.lang.Object key_; + /** * optional string key = 14; * @@ -3291,6 +3585,7 @@ public final class BatchReport { public boolean hasKey() { return ((bitField0_ & 0x00000080) == 0x00000080); } + /** * optional string key = 14; * @@ -3303,8 +3598,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; @@ -3312,6 +3607,7 @@ public final class BatchReport { return s; } } + /** * optional string key = 14; * @@ -3320,12 +3616,12 @@ public final class BatchReport { * */ 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 { @@ -3335,6 +3631,7 @@ public final class BatchReport { public static final int LINES_FIELD_NUMBER = 15; private int lines_; + /** * optional int32 lines = 15; * @@ -3345,6 +3642,7 @@ public final class BatchReport { public boolean hasLines() { return ((bitField0_ & 0x00000100) == 0x00000100); } + /** * optional int32 lines = 15; * @@ -3358,6 +3656,7 @@ public final class BatchReport { public static final int DESCRIPTION_FIELD_NUMBER = 16; private java.lang.Object description_; + /** * optional string description = 16; * @@ -3368,6 +3667,7 @@ public final class BatchReport { public boolean hasDescription() { return ((bitField0_ & 0x00000200) == 0x00000200); } + /** * optional string description = 16; * @@ -3380,8 +3680,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; @@ -3389,6 +3689,7 @@ public final class BatchReport { return s; } } + /** * optional string description = 16; * @@ -3397,12 +3698,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 { @@ -3412,6 +3713,7 @@ public final class BatchReport { public static final int ID_FIELD_NUMBER = 13; private long id_; + /** * optional int64 id = 13; * @@ -3422,6 +3724,7 @@ public final class BatchReport { public boolean hasId() { return ((bitField0_ & 0x00000400) == 0x00000400); } + /** * optional int64 id = 13; * @@ -3435,12 +3738,14 @@ public final class BatchReport { 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; */ @@ -3450,12 +3755,14 @@ 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_ & 0x00001000) == 0x00001000); } + /** * optional string uuid = 9; */ @@ -3464,8 +3771,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; @@ -3473,16 +3780,17 @@ 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 { @@ -3492,36 +3800,41 @@ public final class BatchReport { public static final int EVENT_FIELD_NUMBER = 11; private java.util.List event_; + /** * repeated .Event event = 11; */ public java.util.List getEventList() { return event_; } + /** * repeated .Event event = 11; */ - public java.util.List - getEventOrBuilderList() { + public java.util.List + getEventOrBuilderList() { return event_; } + /** * repeated .Event event = 11; */ public int getEventCount() { return event_.size(); } + /** * repeated .Event event = 11; */ public org.sonar.batch.protocol.output.BatchReport.Event getEvent(int index) { return event_.get(index); } + /** * repeated .Event event = 11; */ public org.sonar.batch.protocol.output.BatchReport.EventOrBuilder getEventOrBuilder( - int index) { + int index) { return event_.get(index); } @@ -3543,18 +3856,22 @@ public final class BatchReport { 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_); @@ -3612,9 +3929,11 @@ 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)) { @@ -3651,7 +3970,7 @@ public final class BatchReport { if (!getChildRefList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); + .computeInt32SizeNoTag(dataSize); } childRefMemoizedSerializedSize = dataSize; } @@ -3697,95 +4016,115 @@ 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() @@ -3794,16 +4133,18 @@ 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(); } @@ -3858,7 +4199,7 @@ public final class BatchReport { } public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { + getDescriptorForType() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Component_descriptor; } @@ -3960,7 +4301,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; @@ -3968,7 +4309,8 @@ 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()); } @@ -4021,9 +4363,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_); } @@ -4076,9 +4418,9 @@ public final class BatchReport { eventBuilder_ = null; event_ = other.event_; bitField0_ = (bitField0_ & ~0x00008000); - eventBuilder_ = + eventBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getEventFieldBuilder() : null; + getEventFieldBuilder() : null; } else { eventBuilder_.addAllMessages(other.event_); } @@ -4093,9 +4435,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); @@ -4109,21 +4451,25 @@ 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; */ @@ -4133,6 +4479,7 @@ public final class BatchReport { onChanged(); return this; } + /** * optional int32 ref = 1; */ @@ -4144,12 +4491,14 @@ public final class BatchReport { } private java.lang.Object path_ = ""; + /** * optional string path = 2; */ public boolean hasPath() { return ((bitField0_ & 0x00000002) == 0x00000002); } + /** * optional string path = 2; */ @@ -4157,7 +4506,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; @@ -4167,35 +4516,38 @@ 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; */ @@ -4205,27 +4557,30 @@ 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; */ @@ -4233,7 +4588,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; @@ -4243,35 +4598,38 @@ 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; */ @@ -4281,33 +4639,37 @@ 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; */ @@ -4320,6 +4682,7 @@ public final class BatchReport { onChanged(); return this; } + /** * optional .ComponentType type = 4; */ @@ -4330,19 +4693,22 @@ 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; */ @@ -4352,6 +4718,7 @@ public final class BatchReport { onChanged(); return this; } + /** * optional bool is_test = 5; */ @@ -4363,12 +4730,14 @@ public final class BatchReport { } private java.lang.Object language_ = ""; + /** * optional string language = 6; */ public boolean hasLanguage() { return ((bitField0_ & 0x00000020) == 0x00000020); } + /** * optional string language = 6; */ @@ -4376,7 +4745,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; @@ -4386,35 +4755,38 @@ 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; */ @@ -4424,56 +4796,63 @@ 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]; */ @@ -4483,17 +4862,19 @@ 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]; */ @@ -4506,15 +4887,15 @@ 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< - org.sonar.batch.protocol.output.BatchReport.ComponentLink, org.sonar.batch.protocol.output.BatchReport.ComponentLink.Builder, org.sonar.batch.protocol.output.BatchReport.ComponentLinkOrBuilder> linkBuilder_; + private com.google.protobuf.RepeatedFieldBuilder linkBuilder_; /** * repeated .ComponentLink link = 10; @@ -4526,6 +4907,7 @@ public final class BatchReport { return linkBuilder_.getMessageList(); } } + /** * repeated .ComponentLink link = 10; */ @@ -4536,6 +4918,7 @@ public final class BatchReport { return linkBuilder_.getCount(); } } + /** * repeated .ComponentLink link = 10; */ @@ -4546,11 +4929,12 @@ public final class BatchReport { return linkBuilder_.getMessage(index); } } + /** * repeated .ComponentLink link = 10; */ 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(); @@ -4563,11 +4947,12 @@ public final class BatchReport { } return this; } + /** * repeated .ComponentLink link = 10; */ 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()); @@ -4577,6 +4962,7 @@ public final class BatchReport { } return this; } + /** * repeated .ComponentLink link = 10; */ @@ -4593,11 +4979,12 @@ public final class BatchReport { } return this; } + /** * repeated .ComponentLink link = 10; */ 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(); @@ -4610,11 +4997,12 @@ public final class BatchReport { } return this; } + /** * repeated .ComponentLink link = 10; */ 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()); @@ -4624,11 +5012,12 @@ public final class BatchReport { } return this; } + /** * repeated .ComponentLink link = 10; */ 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()); @@ -4638,21 +5027,23 @@ public final class BatchReport { } return this; } + /** * repeated .ComponentLink link = 10; */ 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; */ @@ -4666,6 +5057,7 @@ public final class BatchReport { } return this; } + /** * repeated .ComponentLink link = 10; */ @@ -4679,72 +5071,81 @@ public final class BatchReport { } return this; } + /** * repeated .ComponentLink link = 10; */ public org.sonar.batch.protocol.output.BatchReport.ComponentLink.Builder getLinkBuilder( - int index) { + int index) { return getLinkFieldBuilder().getBuilder(index); } + /** * repeated .ComponentLink link = 10; */ 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; */ - 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; */ 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; */ 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; */ - 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; * @@ -4755,6 +5156,7 @@ public final class BatchReport { public boolean hasVersion() { return ((bitField0_ & 0x00000100) == 0x00000100); } + /** * optional string version = 12; * @@ -4766,7 +5168,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; @@ -4776,6 +5178,7 @@ public final class BatchReport { return (java.lang.String) ref; } } + /** * optional string version = 12; * @@ -4784,18 +5187,19 @@ public final class BatchReport { * */ 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; * @@ -4804,15 +5208,16 @@ public final class BatchReport { * */ 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; * @@ -4826,6 +5231,7 @@ public final class BatchReport { onChanged(); return this; } + /** * optional string version = 12; * @@ -4834,17 +5240,18 @@ public final class BatchReport { * */ 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; * @@ -4855,6 +5262,7 @@ public final class BatchReport { public boolean hasKey() { return ((bitField0_ & 0x00000200) == 0x00000200); } + /** * optional string key = 14; * @@ -4866,7 +5274,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; @@ -4876,6 +5284,7 @@ public final class BatchReport { return (java.lang.String) ref; } } + /** * optional string key = 14; * @@ -4884,18 +5293,19 @@ public final class BatchReport { * */ 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; * @@ -4904,15 +5314,16 @@ public final class BatchReport { * */ 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; * @@ -4926,6 +5337,7 @@ public final class BatchReport { onChanged(); return this; } + /** * optional string key = 14; * @@ -4934,17 +5346,18 @@ public final class BatchReport { * */ 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; * @@ -4955,6 +5368,7 @@ public final class BatchReport { public boolean hasLines() { return ((bitField0_ & 0x00000400) == 0x00000400); } + /** * optional int32 lines = 15; * @@ -4965,6 +5379,7 @@ public final class BatchReport { public int getLines() { return lines_; } + /** * optional int32 lines = 15; * @@ -4978,6 +5393,7 @@ public final class BatchReport { onChanged(); return this; } + /** * optional int32 lines = 15; * @@ -4993,6 +5409,7 @@ public final class BatchReport { } private java.lang.Object description_ = ""; + /** * optional string description = 16; * @@ -5003,6 +5420,7 @@ public final class BatchReport { public boolean hasDescription() { return ((bitField0_ & 0x00000800) == 0x00000800); } + /** * optional string description = 16; * @@ -5014,7 +5432,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; @@ -5024,6 +5442,7 @@ public final class BatchReport { return (java.lang.String) ref; } } + /** * optional string description = 16; * @@ -5032,18 +5451,19 @@ 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 = 16; * @@ -5052,15 +5472,16 @@ public final class BatchReport { * */ 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; * @@ -5074,6 +5495,7 @@ public final class BatchReport { onChanged(); return this; } + /** * optional string description = 16; * @@ -5082,17 +5504,18 @@ public final class BatchReport { * */ 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 id_; + /** * optional int64 id = 13; * @@ -5103,6 +5526,7 @@ public final class BatchReport { public boolean hasId() { return ((bitField0_ & 0x00001000) == 0x00001000); } + /** * optional int64 id = 13; * @@ -5113,6 +5537,7 @@ public final class BatchReport { public long getId() { return id_; } + /** * optional int64 id = 13; * @@ -5126,6 +5551,7 @@ public final class BatchReport { onChanged(); return this; } + /** * optional int64 id = 13; * @@ -5140,19 +5566,22 @@ public final class BatchReport { return this; } - private long snapshotId_ ; + 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; */ @@ -5162,6 +5591,7 @@ public final class BatchReport { onChanged(); return this; } + /** * optional int64 snapshot_id = 8; */ @@ -5173,12 +5603,14 @@ public final class BatchReport { } private java.lang.Object uuid_ = ""; + /** * optional string uuid = 9; */ public boolean hasUuid() { return ((bitField0_ & 0x00004000) == 0x00004000); } + /** * optional string uuid = 9; */ @@ -5186,7 +5618,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; @@ -5196,35 +5628,38 @@ 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_ |= 0x00004000; + throw new NullPointerException(); + } + bitField0_ |= 0x00004000; uuid_ = value; onChanged(); return this; } + /** * optional string uuid = 9; */ @@ -5234,15 +5669,16 @@ 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_ |= 0x00004000; + throw new NullPointerException(); + } + bitField0_ |= 0x00004000; uuid_ = value; onChanged(); return this; @@ -5250,15 +5686,15 @@ public final class BatchReport { private java.util.List event_ = java.util.Collections.emptyList(); + private void ensureEventIsMutable() { if (!((bitField0_ & 0x00008000) == 0x00008000)) { event_ = new java.util.ArrayList(event_); bitField0_ |= 0x00008000; - } + } } - 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_; + private com.google.protobuf.RepeatedFieldBuilder eventBuilder_; /** * repeated .Event event = 11; @@ -5270,6 +5706,7 @@ public final class BatchReport { return eventBuilder_.getMessageList(); } } + /** * repeated .Event event = 11; */ @@ -5280,6 +5717,7 @@ public final class BatchReport { return eventBuilder_.getCount(); } } + /** * repeated .Event event = 11; */ @@ -5290,11 +5728,12 @@ public final class BatchReport { return eventBuilder_.getMessage(index); } } + /** * repeated .Event event = 11; */ 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(); @@ -5307,11 +5746,12 @@ public final class BatchReport { } return this; } + /** * repeated .Event event = 11; */ 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()); @@ -5321,6 +5761,7 @@ public final class BatchReport { } return this; } + /** * repeated .Event event = 11; */ @@ -5337,11 +5778,12 @@ public final class BatchReport { } return this; } + /** * repeated .Event event = 11; */ 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(); @@ -5354,11 +5796,12 @@ public final class BatchReport { } return this; } + /** * repeated .Event event = 11; */ 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()); @@ -5368,11 +5811,12 @@ public final class BatchReport { } return this; } + /** * repeated .Event event = 11; */ 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()); @@ -5382,21 +5826,23 @@ public final class BatchReport { } return this; } + /** * repeated .Event event = 11; */ 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; */ @@ -5410,6 +5856,7 @@ public final class BatchReport { } return this; } + /** * repeated .Event event = 11; */ @@ -5423,66 +5870,74 @@ public final class BatchReport { } return this; } + /** * repeated .Event event = 11; */ public org.sonar.batch.protocol.output.BatchReport.Event.Builder getEventBuilder( - int index) { + int index) { return getEventFieldBuilder().getBuilder(index); } + /** * repeated .Event event = 11; */ 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; */ - 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; */ 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; */ 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; */ - 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_ & 0x00008000) == 0x00008000), + getParentForChildren(), + isClean()); event_ = null; } return eventBuilder_; @@ -5500,13 +5955,14 @@ 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; */ @@ -5520,6 +5976,7 @@ public final class BatchReport { * */ boolean hasBooleanValue(); + /** * optional bool boolean_value = 2; * @@ -5533,6 +5990,7 @@ public final class BatchReport { * optional int32 int_value = 3; */ boolean hasIntValue(); + /** * optional int32 int_value = 3; */ @@ -5542,6 +6000,7 @@ public final class BatchReport { * optional int64 long_value = 4; */ boolean hasLongValue(); + /** * optional int64 long_value = 4; */ @@ -5551,6 +6010,7 @@ public final class BatchReport { * optional double double_value = 5; */ boolean hasDoubleValue(); + /** * optional double double_value = 5; */ @@ -5560,29 +6020,33 @@ 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; @@ -5592,6 +6056,7 @@ public final class BatchReport { * */ boolean hasDescription(); + /** * optional string description = 9; * @@ -5600,6 +6065,7 @@ public final class BatchReport { * */ java.lang.String getDescription(); + /** * optional string description = 9; * @@ -5608,26 +6074,29 @@ 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; */ @@ -5637,34 +6106,39 @@ 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; */ @@ -5674,6 +6148,7 @@ public final class BatchReport { * optional double variation_value_2 = 15; */ boolean hasVariationValue2(); + /** * optional double variation_value_2 = 15; */ @@ -5683,6 +6158,7 @@ public final class BatchReport { * optional double variation_value_3 = 16; */ boolean hasVariationValue3(); + /** * optional double variation_value_3 = 16; */ @@ -5692,6 +6168,7 @@ public final class BatchReport { * optional double variation_value_4 = 17; */ boolean hasVariationValue4(); + /** * optional double variation_value_4 = 17; */ @@ -5701,6 +6178,7 @@ public final class BatchReport { * optional double variation_value_5 = 18; */ boolean hasVariationValue5(); + /** * optional double variation_value_5 = 18; */ @@ -5710,6 +6188,7 @@ public final class BatchReport { * optional int32 characteric_id = 19; */ boolean hasCharactericId(); + /** * optional int32 characteric_id = 19; */ @@ -5719,6 +6198,7 @@ public final class BatchReport { * optional int32 person_id = 20; */ boolean hasPersonId(); + /** * optional int32 person_id = 20; */ @@ -5728,17 +6208,21 @@ 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; } @@ -5748,19 +6232,21 @@ 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) { @@ -5771,7 +6257,7 @@ public final class BatchReport { break; default: { if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { + extensionRegistry, tag)) { done = true; } break; @@ -5895,33 +6381,34 @@ 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() { @@ -5931,12 +6418,14 @@ 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; */ @@ -5946,6 +6435,7 @@ public final class BatchReport { public static final int BOOLEAN_VALUE_FIELD_NUMBER = 2; private boolean booleanValue_; + /** * optional bool boolean_value = 2; * @@ -5956,6 +6446,7 @@ public final class BatchReport { public boolean hasBooleanValue() { return ((bitField0_ & 0x00000002) == 0x00000002); } + /** * optional bool boolean_value = 2; * @@ -5969,12 +6460,14 @@ 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; */ @@ -5984,12 +6477,14 @@ 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; */ @@ -5999,12 +6494,14 @@ 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; */ @@ -6014,12 +6511,14 @@ 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; */ @@ -6028,8 +6527,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; @@ -6037,16 +6536,17 @@ 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 { @@ -6056,12 +6556,14 @@ 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; */ @@ -6070,8 +6572,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; @@ -6079,16 +6581,17 @@ 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 { @@ -6098,6 +6601,7 @@ public final class BatchReport { public static final int DESCRIPTION_FIELD_NUMBER = 9; private java.lang.Object description_; + /** * optional string description = 9; * @@ -6108,6 +6612,7 @@ public final class BatchReport { public boolean hasDescription() { return ((bitField0_ & 0x00000080) == 0x00000080); } + /** * optional string description = 9; * @@ -6120,8 +6625,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; @@ -6129,6 +6634,7 @@ public final class BatchReport { return s; } } + /** * optional string description = 9; * @@ -6137,12 +6643,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 { @@ -6152,12 +6658,14 @@ 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; */ @@ -6166,8 +6674,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; @@ -6175,16 +6683,17 @@ 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 { @@ -6194,12 +6703,14 @@ 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; */ @@ -6209,12 +6720,14 @@ 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; */ @@ -6223,8 +6736,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; @@ -6232,16 +6745,17 @@ 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 { @@ -6251,12 +6765,14 @@ 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; */ @@ -6265,8 +6781,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; @@ -6274,16 +6790,17 @@ 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 { @@ -6293,12 +6810,14 @@ 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; */ @@ -6308,12 +6827,14 @@ 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; */ @@ -6323,12 +6844,14 @@ 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; */ @@ -6338,12 +6861,14 @@ 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; */ @@ -6353,12 +6878,14 @@ 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; */ @@ -6368,12 +6895,14 @@ 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; */ @@ -6383,12 +6912,14 @@ 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; */ @@ -6417,18 +6948,22 @@ 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()); @@ -6491,9 +7026,11 @@ 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)) { @@ -6578,95 +7115,115 @@ 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() @@ -6675,14 +7232,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) { } } + private static Builder create() { return new Builder(); } @@ -6735,7 +7294,7 @@ public final class BatchReport { } public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { + getDescriptorForType() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Measure_descriptor; } @@ -6838,7 +7397,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; @@ -6846,7 +7405,8 @@ 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()); } @@ -6925,9 +7485,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); @@ -6941,21 +7501,25 @@ 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; */ @@ -6968,6 +7532,7 @@ public final class BatchReport { onChanged(); return this; } + /** * optional .MeasureValueType value_type = 1; */ @@ -6978,7 +7543,8 @@ public final class BatchReport { return this; } - private boolean booleanValue_ ; + private boolean booleanValue_; + /** * optional bool boolean_value = 2; * @@ -6989,6 +7555,7 @@ public final class BatchReport { public boolean hasBooleanValue() { return ((bitField0_ & 0x00000002) == 0x00000002); } + /** * optional bool boolean_value = 2; * @@ -6999,6 +7566,7 @@ public final class BatchReport { public boolean getBooleanValue() { return booleanValue_; } + /** * optional bool boolean_value = 2; * @@ -7012,6 +7580,7 @@ public final class BatchReport { onChanged(); return this; } + /** * optional bool boolean_value = 2; * @@ -7026,19 +7595,22 @@ 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; */ @@ -7048,6 +7620,7 @@ public final class BatchReport { onChanged(); return this; } + /** * optional int32 int_value = 3; */ @@ -7058,19 +7631,22 @@ 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; */ @@ -7080,6 +7656,7 @@ public final class BatchReport { onChanged(); return this; } + /** * optional int64 long_value = 4; */ @@ -7090,19 +7667,22 @@ 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; */ @@ -7112,6 +7692,7 @@ public final class BatchReport { onChanged(); return this; } + /** * optional double double_value = 5; */ @@ -7123,12 +7704,14 @@ 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; */ @@ -7136,7 +7719,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; @@ -7146,35 +7729,38 @@ 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; */ @@ -7184,27 +7770,30 @@ 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; */ @@ -7212,7 +7801,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; @@ -7222,35 +7811,38 @@ 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; */ @@ -7260,21 +7852,23 @@ 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; * @@ -7285,6 +7879,7 @@ public final class BatchReport { public boolean hasDescription() { return ((bitField0_ & 0x00000080) == 0x00000080); } + /** * optional string description = 9; * @@ -7296,7 +7891,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; @@ -7306,6 +7901,7 @@ public final class BatchReport { return (java.lang.String) ref; } } + /** * optional string description = 9; * @@ -7314,18 +7910,19 @@ 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; * @@ -7334,15 +7931,16 @@ 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; * @@ -7356,6 +7954,7 @@ public final class BatchReport { onChanged(); return this; } + /** * optional string description = 9; * @@ -7364,23 +7963,25 @@ 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; */ @@ -7388,7 +7989,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; @@ -7398,35 +7999,38 @@ 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; */ @@ -7436,33 +8040,37 @@ 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; */ @@ -7475,6 +8083,7 @@ public final class BatchReport { onChanged(); return this; } + /** * optional .Severity severity = 11; */ @@ -7486,12 +8095,14 @@ 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; */ @@ -7499,7 +8110,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; @@ -7509,35 +8120,38 @@ 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; */ @@ -7547,27 +8161,30 @@ 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; */ @@ -7575,7 +8192,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; @@ -7585,35 +8202,38 @@ 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; */ @@ -7623,33 +8243,37 @@ 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; */ @@ -7659,6 +8283,7 @@ public final class BatchReport { onChanged(); return this; } + /** * optional double variation_value_1 = 14; */ @@ -7669,19 +8294,22 @@ 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; */ @@ -7691,6 +8319,7 @@ public final class BatchReport { onChanged(); return this; } + /** * optional double variation_value_2 = 15; */ @@ -7701,19 +8330,22 @@ 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; */ @@ -7723,6 +8355,7 @@ public final class BatchReport { onChanged(); return this; } + /** * optional double variation_value_3 = 16; */ @@ -7733,19 +8366,22 @@ 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; */ @@ -7755,6 +8391,7 @@ public final class BatchReport { onChanged(); return this; } + /** * optional double variation_value_4 = 17; */ @@ -7765,19 +8402,22 @@ 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; */ @@ -7787,6 +8427,7 @@ public final class BatchReport { onChanged(); return this; } + /** * optional double variation_value_5 = 18; */ @@ -7797,19 +8438,22 @@ 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; */ @@ -7819,6 +8463,7 @@ public final class BatchReport { onChanged(); return this; } + /** * optional int32 characteric_id = 19; */ @@ -7829,19 +8474,22 @@ 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; */ @@ -7851,6 +8499,7 @@ public final class BatchReport { onChanged(); return this; } + /** * optional int32 person_id = 20; */ @@ -7873,13 +8522,14 @@ 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; */ @@ -7888,42 +8538,50 @@ 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; } @@ -7933,19 +8591,21 @@ 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) { @@ -7956,7 +8616,7 @@ public final class BatchReport { break; default: { if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { + extensionRegistry, tag)) { done = true; } break; @@ -7980,7 +8640,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_); @@ -7989,27 +8649,28 @@ 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() { @@ -8019,12 +8680,14 @@ 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; */ @@ -8034,36 +8697,41 @@ 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); } @@ -8071,18 +8739,22 @@ 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_); @@ -8094,9 +8766,11 @@ 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)) { @@ -8113,95 +8787,115 @@ 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() @@ -8210,15 +8904,17 @@ 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(); } @@ -8241,7 +8937,7 @@ public final class BatchReport { } public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { + getDescriptorForType() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Measures_descriptor; } @@ -8281,7 +8977,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; @@ -8289,7 +8985,8 @@ 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()); } @@ -8311,9 +9008,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_); } @@ -8328,9 +9025,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); @@ -8344,21 +9041,25 @@ 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; */ @@ -8368,6 +9069,7 @@ public final class BatchReport { onChanged(); return this; } + /** * optional int32 component_ref = 1; */ @@ -8380,15 +9082,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< - org.sonar.batch.protocol.output.BatchReport.Measure, org.sonar.batch.protocol.output.BatchReport.Measure.Builder, org.sonar.batch.protocol.output.BatchReport.MeasureOrBuilder> measureBuilder_; + private com.google.protobuf.RepeatedFieldBuilder measureBuilder_; /** * repeated .Measure measure = 2; @@ -8400,6 +9102,7 @@ public final class BatchReport { return measureBuilder_.getMessageList(); } } + /** * repeated .Measure measure = 2; */ @@ -8410,6 +9113,7 @@ public final class BatchReport { return measureBuilder_.getCount(); } } + /** * repeated .Measure measure = 2; */ @@ -8420,11 +9124,12 @@ 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(); @@ -8437,11 +9142,12 @@ 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()); @@ -8451,6 +9157,7 @@ public final class BatchReport { } return this; } + /** * repeated .Measure measure = 2; */ @@ -8467,11 +9174,12 @@ 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(); @@ -8484,11 +9192,12 @@ 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()); @@ -8498,11 +9207,12 @@ 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()); @@ -8512,21 +9222,23 @@ 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; */ @@ -8540,6 +9252,7 @@ public final class BatchReport { } return this; } + /** * repeated .Measure measure = 2; */ @@ -8553,66 +9266,74 @@ 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_; @@ -8630,41 +9351,46 @@ 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; */ @@ -8674,20 +9400,23 @@ 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; */ @@ -8697,20 +9426,23 @@ 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; @@ -8720,6 +9452,7 @@ public final class BatchReport { * */ boolean hasEffortToFix(); + /** * optional double effort_to_fix = 7; * @@ -8733,6 +9466,7 @@ public final class BatchReport { * optional bool is_new = 8; */ boolean hasIsNew(); + /** * optional bool is_new = 8; */ @@ -8742,20 +9476,23 @@ 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; */ @@ -8765,48 +9502,55 @@ 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; */ @@ -8816,76 +9560,87 @@ 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; */ @@ -8895,6 +9650,7 @@ public final class BatchReport { * optional int64 close_date = 21; */ boolean hasCloseDate(); + /** * optional int64 close_date = 21; */ @@ -8904,6 +9660,7 @@ public final class BatchReport { * optional int64 update_date = 22; */ boolean hasUpdateDate(); + /** * optional int64 update_date = 22; */ @@ -8913,6 +9670,7 @@ public final class BatchReport { * optional int64 selected_at = 23; */ boolean hasSelectedAt(); + /** * optional int64 selected_at = 23; */ @@ -8922,20 +9680,23 @@ 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; */ @@ -8945,6 +9706,7 @@ public final class BatchReport { * optional bool must_send_notification = 26; */ boolean hasMustSendNotification(); + /** * optional bool must_send_notification = 26; */ @@ -8954,17 +9716,21 @@ 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; } @@ -8974,19 +9740,21 @@ 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) { @@ -8997,7 +9765,7 @@ public final class BatchReport { break; default: { if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { + extensionRegistry, tag)) { done = true; } break; @@ -9161,7 +9929,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(); @@ -9170,27 +9938,28 @@ 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() { @@ -9200,12 +9969,14 @@ 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; */ @@ -9214,8 +9985,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; @@ -9223,16 +9994,17 @@ 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 { @@ -9242,12 +10014,14 @@ 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; */ @@ -9256,8 +10030,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; @@ -9265,16 +10039,17 @@ 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 { @@ -9284,12 +10059,14 @@ 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; */ @@ -9299,12 +10076,14 @@ 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; */ @@ -9313,8 +10092,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; @@ -9322,16 +10101,17 @@ 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 { @@ -9341,12 +10121,14 @@ 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; */ @@ -9356,35 +10138,40 @@ 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; * @@ -9395,6 +10182,7 @@ public final class BatchReport { public boolean hasEffortToFix() { return ((bitField0_ & 0x00000020) == 0x00000020); } + /** * optional double effort_to_fix = 7; * @@ -9408,12 +10196,14 @@ 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; */ @@ -9423,12 +10213,14 @@ 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; */ @@ -9437,8 +10229,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; @@ -9446,16 +10238,17 @@ 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 { @@ -9465,12 +10258,14 @@ 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; */ @@ -9480,12 +10275,14 @@ 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; */ @@ -9494,8 +10291,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; @@ -9503,16 +10300,17 @@ 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 { @@ -9522,12 +10320,14 @@ 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; */ @@ -9536,8 +10336,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; @@ -9545,16 +10345,17 @@ 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 { @@ -9564,12 +10365,14 @@ 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; */ @@ -9578,8 +10381,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; @@ -9587,16 +10390,17 @@ 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 { @@ -9606,12 +10410,14 @@ 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; */ @@ -9621,12 +10427,14 @@ 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; */ @@ -9635,8 +10443,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; @@ -9644,16 +10452,17 @@ 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 { @@ -9663,12 +10472,14 @@ 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; */ @@ -9677,8 +10488,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; @@ -9686,16 +10497,17 @@ 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 { @@ -9705,12 +10517,14 @@ 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; */ @@ -9719,8 +10533,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; @@ -9728,16 +10542,17 @@ 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 { @@ -9747,12 +10562,14 @@ 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; */ @@ -9761,8 +10578,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; @@ -9770,16 +10587,17 @@ 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 { @@ -9789,12 +10607,14 @@ 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; */ @@ -9803,8 +10623,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; @@ -9812,16 +10632,17 @@ 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 { @@ -9831,12 +10652,14 @@ 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; */ @@ -9846,12 +10669,14 @@ 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; */ @@ -9861,12 +10686,14 @@ 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; */ @@ -9876,12 +10703,14 @@ 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; */ @@ -9891,12 +10720,14 @@ 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; */ @@ -9905,8 +10736,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; @@ -9914,16 +10745,17 @@ 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 { @@ -9933,12 +10765,14 @@ 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; */ @@ -9948,12 +10782,14 @@ 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; */ @@ -9989,18 +10825,22 @@ 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()); @@ -10084,9 +10924,11 @@ 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)) { @@ -10204,95 +11046,115 @@ 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() @@ -10301,14 +11163,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) { } } + private static Builder create() { return new Builder(); } @@ -10375,7 +11239,7 @@ public final class BatchReport { } public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { + getDescriptorForType() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Issue_descriptor; } @@ -10507,7 +11371,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; @@ -10515,7 +11379,8 @@ 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_; @@ -10636,9 +11501,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); @@ -10652,15 +11517,18 @@ 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; */ @@ -10668,7 +11536,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; @@ -10678,35 +11546,38 @@ 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; */ @@ -10716,27 +11587,30 @@ 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; */ @@ -10744,7 +11618,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; @@ -10754,35 +11628,38 @@ 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; */ @@ -10792,33 +11669,37 @@ 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; */ @@ -10828,6 +11709,7 @@ public final class BatchReport { onChanged(); return this; } + /** * optional int32 line = 3; */ @@ -10839,12 +11721,14 @@ public final class BatchReport { } private java.lang.Object msg_ = ""; + /** * optional string msg = 4; */ public boolean hasMsg() { return ((bitField0_ & 0x00000008) == 0x00000008); } + /** * optional string msg = 4; */ @@ -10852,7 +11736,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; @@ -10862,35 +11746,38 @@ 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; */ @@ -10900,33 +11787,37 @@ 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; */ @@ -10939,6 +11830,7 @@ public final class BatchReport { onChanged(); return this; } + /** * optional .Severity severity = 5; */ @@ -10950,75 +11842,84 @@ 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; */ @@ -11028,21 +11929,23 @@ 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; * @@ -11053,6 +11956,7 @@ public final class BatchReport { public boolean hasEffortToFix() { return ((bitField0_ & 0x00000040) == 0x00000040); } + /** * optional double effort_to_fix = 7; * @@ -11063,6 +11967,7 @@ public final class BatchReport { public double getEffortToFix() { return effortToFix_; } + /** * optional double effort_to_fix = 7; * @@ -11076,6 +11981,7 @@ public final class BatchReport { onChanged(); return this; } + /** * optional double effort_to_fix = 7; * @@ -11090,19 +11996,22 @@ 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; */ @@ -11112,6 +12021,7 @@ public final class BatchReport { onChanged(); return this; } + /** * optional bool is_new = 8; */ @@ -11123,12 +12033,14 @@ public final class BatchReport { } private java.lang.Object uuid_ = ""; + /** * optional string uuid = 9; */ public boolean hasUuid() { return ((bitField0_ & 0x00000100) == 0x00000100); } + /** * optional string uuid = 9; */ @@ -11136,7 +12048,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; @@ -11146,35 +12058,38 @@ 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; */ @@ -11184,33 +12099,37 @@ 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; */ @@ -11220,6 +12139,7 @@ public final class BatchReport { onChanged(); return this; } + /** * optional int64 debt_in_minutes = 10; */ @@ -11231,12 +12151,14 @@ public final class BatchReport { } private java.lang.Object resolution_ = ""; + /** * optional string resolution = 11; */ public boolean hasResolution() { return ((bitField0_ & 0x00000400) == 0x00000400); } + /** * optional string resolution = 11; */ @@ -11244,7 +12166,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; @@ -11254,35 +12176,38 @@ 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; */ @@ -11292,27 +12217,30 @@ 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; */ @@ -11320,7 +12248,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; @@ -11330,35 +12258,38 @@ 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; */ @@ -11368,27 +12299,30 @@ 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; */ @@ -11396,7 +12330,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; @@ -11406,35 +12340,38 @@ 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; */ @@ -11444,33 +12381,37 @@ 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; */ @@ -11480,6 +12421,7 @@ public final class BatchReport { onChanged(); return this; } + /** * optional bool manual_severity = 14; */ @@ -11491,12 +12433,14 @@ public final class BatchReport { } private java.lang.Object reporter_ = ""; + /** * optional string reporter = 15; */ public boolean hasReporter() { return ((bitField0_ & 0x00004000) == 0x00004000); } + /** * optional string reporter = 15; */ @@ -11504,7 +12448,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; @@ -11514,35 +12458,38 @@ 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; */ @@ -11552,27 +12499,30 @@ 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; */ @@ -11580,7 +12530,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; @@ -11590,35 +12540,38 @@ 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; */ @@ -11628,27 +12581,30 @@ 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; */ @@ -11656,7 +12612,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; @@ -11666,35 +12622,38 @@ 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; */ @@ -11704,27 +12663,30 @@ 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; */ @@ -11732,7 +12694,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; @@ -11742,35 +12704,38 @@ 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; */ @@ -11780,27 +12745,30 @@ 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; */ @@ -11808,7 +12776,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; @@ -11818,35 +12786,38 @@ 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; */ @@ -11856,33 +12827,37 @@ 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; */ @@ -11892,6 +12867,7 @@ public final class BatchReport { onChanged(); return this; } + /** * optional int64 creation_date = 20; */ @@ -11902,19 +12878,22 @@ 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; */ @@ -11924,6 +12903,7 @@ public final class BatchReport { onChanged(); return this; } + /** * optional int64 close_date = 21; */ @@ -11934,19 +12914,22 @@ 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; */ @@ -11956,6 +12939,7 @@ public final class BatchReport { onChanged(); return this; } + /** * optional int64 update_date = 22; */ @@ -11966,19 +12950,22 @@ 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; */ @@ -11988,6 +12975,7 @@ public final class BatchReport { onChanged(); return this; } + /** * optional int64 selected_at = 23; */ @@ -11999,12 +12987,14 @@ 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; */ @@ -12012,7 +13002,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; @@ -12022,35 +13012,38 @@ 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; */ @@ -12060,33 +13053,37 @@ 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; */ @@ -12096,6 +13093,7 @@ public final class BatchReport { onChanged(); return this; } + /** * optional bool is_changed = 25; */ @@ -12106,19 +13104,22 @@ 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; */ @@ -12128,6 +13129,7 @@ public final class BatchReport { onChanged(); return this; } + /** * optional bool must_send_notification = 26; */ @@ -12150,13 +13152,14 @@ 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; */ @@ -12165,26 +13168,30 @@ 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; @@ -12194,6 +13201,7 @@ public final class BatchReport { * */ boolean hasComponentUuid(); + /** * optional string component_uuid = 3; * @@ -12202,6 +13210,7 @@ public final class BatchReport { * */ java.lang.String getComponentUuid(); + /** * optional string component_uuid = 3; * @@ -12210,23 +13219,27 @@ 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; } @@ -12236,19 +13249,21 @@ 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) { @@ -12259,7 +13274,7 @@ public final class BatchReport { break; default: { if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { + extensionRegistry, tag)) { done = true; } break; @@ -12289,7 +13304,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_); @@ -12298,27 +13313,28 @@ 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() { @@ -12328,12 +13344,14 @@ 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; */ @@ -12343,41 +13361,47 @@ 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; * @@ -12388,6 +13412,7 @@ public final class BatchReport { public boolean hasComponentUuid() { return ((bitField0_ & 0x00000002) == 0x00000002); } + /** * optional string component_uuid = 3; * @@ -12400,8 +13425,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; @@ -12409,6 +13434,7 @@ public final class BatchReport { return s; } } + /** * optional string component_uuid = 3; * @@ -12417,12 +13443,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 { @@ -12435,18 +13461,22 @@ 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_); @@ -12461,9 +13491,11 @@ 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)) { @@ -12484,95 +13516,115 @@ 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() @@ -12581,15 +13633,17 @@ 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(); } @@ -12614,7 +13668,7 @@ public final class BatchReport { } public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { + getDescriptorForType() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Issues_descriptor; } @@ -12658,7 +13712,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; @@ -12666,7 +13720,8 @@ 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()); } @@ -12688,9 +13743,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_); } @@ -12710,9 +13765,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); @@ -12726,21 +13781,25 @@ 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; */ @@ -12750,6 +13809,7 @@ public final class BatchReport { onChanged(); return this; } + /** * optional int32 component_ref = 1; */ @@ -12762,15 +13822,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< - org.sonar.batch.protocol.output.BatchReport.Issue, org.sonar.batch.protocol.output.BatchReport.Issue.Builder, org.sonar.batch.protocol.output.BatchReport.IssueOrBuilder> issueBuilder_; + private com.google.protobuf.RepeatedFieldBuilder issueBuilder_; /** * repeated .Issue issue = 2; @@ -12782,6 +13842,7 @@ public final class BatchReport { return issueBuilder_.getMessageList(); } } + /** * repeated .Issue issue = 2; */ @@ -12792,6 +13853,7 @@ public final class BatchReport { return issueBuilder_.getCount(); } } + /** * repeated .Issue issue = 2; */ @@ -12802,11 +13864,12 @@ 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(); @@ -12819,11 +13882,12 @@ 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()); @@ -12833,6 +13897,7 @@ public final class BatchReport { } return this; } + /** * repeated .Issue issue = 2; */ @@ -12849,11 +13914,12 @@ 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(); @@ -12866,11 +13932,12 @@ 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()); @@ -12880,11 +13947,12 @@ 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()); @@ -12894,21 +13962,23 @@ 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; */ @@ -12922,6 +13992,7 @@ public final class BatchReport { } return this; } + /** * repeated .Issue issue = 2; */ @@ -12935,72 +14006,81 @@ 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; * @@ -13011,6 +14091,7 @@ public final class BatchReport { public boolean hasComponentUuid() { return ((bitField0_ & 0x00000004) == 0x00000004); } + /** * optional string component_uuid = 3; * @@ -13022,7 +14103,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; @@ -13032,6 +14113,7 @@ public final class BatchReport { return (java.lang.String) ref; } } + /** * optional string component_uuid = 3; * @@ -13040,18 +14122,19 @@ 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; * @@ -13060,15 +14143,16 @@ 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; * @@ -13082,6 +14166,7 @@ public final class BatchReport { onChanged(); return this; } + /** * optional string component_uuid = 3; * @@ -13090,11 +14175,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; @@ -13112,13 +14197,14 @@ 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; */ @@ -13127,26 +14213,30 @@ 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]; @@ -13156,6 +14246,7 @@ public final class BatchReport { * */ java.util.List getChangesetIndexByLineList(); + /** * repeated int32 changesetIndexByLine = 3 [packed = true]; * @@ -13164,6 +14255,7 @@ public final class BatchReport { * */ int getChangesetIndexByLineCount(); + /** * repeated int32 changesetIndexByLine = 3 [packed = true]; * @@ -13177,17 +14269,21 @@ 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; } @@ -13197,19 +14293,21 @@ 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) { @@ -13220,7 +14318,7 @@ public final class BatchReport { break; default: { if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { + extensionRegistry, tag)) { done = true; } break; @@ -13265,7 +14363,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_); @@ -13277,27 +14375,28 @@ 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() { @@ -13305,41 +14404,46 @@ 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; */ @@ -13349,17 +14453,21 @@ 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; } @@ -13369,19 +14477,21 @@ 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) { @@ -13392,7 +14502,7 @@ public final class BatchReport { break; default: { if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { + extensionRegistry, tag)) { done = true; } break; @@ -13420,33 +14530,34 @@ 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() { @@ -13456,12 +14567,14 @@ 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; */ @@ -13470,8 +14583,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; @@ -13479,16 +14592,17 @@ 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 { @@ -13498,12 +14612,14 @@ 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; */ @@ -13512,8 +14628,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; @@ -13521,16 +14637,17 @@ 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 { @@ -13540,12 +14657,14 @@ 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; */ @@ -13558,18 +14677,22 @@ 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()); @@ -13584,9 +14707,11 @@ 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)) { @@ -13607,95 +14732,115 @@ 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 { - return PARSER.parseFrom(input, extensionRegistry); - } + 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() @@ -13704,14 +14849,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) { } } + private static Builder create() { return new Builder(); } @@ -13732,7 +14879,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; } @@ -13771,7 +14918,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; @@ -13779,7 +14926,8 @@ 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_; @@ -13802,9 +14950,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); @@ -13818,15 +14966,18 @@ 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; */ @@ -13834,7 +14985,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; @@ -13844,35 +14995,38 @@ 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; */ @@ -13882,27 +15036,30 @@ 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; */ @@ -13910,7 +15067,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; @@ -13920,35 +15077,38 @@ 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; */ @@ -13958,33 +15118,37 @@ 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; */ @@ -13994,6 +15158,7 @@ public final class BatchReport { onChanged(); return this; } + /** * optional int64 date = 3; */ @@ -14018,12 +15183,14 @@ 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; */ @@ -14033,41 +15200,47 @@ 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]; * @@ -14076,9 +15249,10 @@ public final class BatchReport { * */ public java.util.List - getChangesetIndexByLineList() { + getChangesetIndexByLineList() { return changesetIndexByLine_; } + /** * repeated int32 changesetIndexByLine = 3 [packed = true]; * @@ -14089,6 +15263,7 @@ public final class BatchReport { public int getChangesetIndexByLineCount() { return changesetIndexByLine_.size(); } + /** * repeated int32 changesetIndexByLine = 3 [packed = true]; * @@ -14099,6 +15274,7 @@ public final class BatchReport { public int getChangesetIndexByLine(int index) { return changesetIndexByLine_.get(index); } + private int changesetIndexByLineMemoizedSerializedSize = -1; private void initFields() { @@ -14106,18 +15282,22 @@ 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_); @@ -14136,9 +15316,11 @@ 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)) { @@ -14159,7 +15341,7 @@ public final class BatchReport { if (!getChangesetIndexByLineList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); + .computeInt32SizeNoTag(dataSize); } changesetIndexByLineMemoizedSerializedSize = dataSize; } @@ -14169,95 +15351,115 @@ 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() @@ -14266,15 +15468,17 @@ 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(); } @@ -14299,7 +15503,7 @@ public final class BatchReport { } public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { + getDescriptorForType() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Changesets_descriptor; } @@ -14344,7 +15548,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; @@ -14352,7 +15556,8 @@ 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()); } @@ -14374,9 +15579,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_); } @@ -14401,9 +15606,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); @@ -14417,21 +15622,25 @@ 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; */ @@ -14441,6 +15650,7 @@ public final class BatchReport { onChanged(); return this; } + /** * optional int32 component_ref = 1; */ @@ -14453,15 +15663,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< - 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_; + private com.google.protobuf.RepeatedFieldBuilder changesetBuilder_; /** * repeated .Changesets.Changeset changeset = 2; @@ -14473,6 +15683,7 @@ public final class BatchReport { return changesetBuilder_.getMessageList(); } } + /** * repeated .Changesets.Changeset changeset = 2; */ @@ -14483,6 +15694,7 @@ public final class BatchReport { return changesetBuilder_.getCount(); } } + /** * repeated .Changesets.Changeset changeset = 2; */ @@ -14493,11 +15705,12 @@ 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(); @@ -14510,11 +15723,12 @@ 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()); @@ -14524,6 +15738,7 @@ public final class BatchReport { } return this; } + /** * repeated .Changesets.Changeset changeset = 2; */ @@ -14540,11 +15755,12 @@ 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(); @@ -14557,11 +15773,12 @@ 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()); @@ -14571,11 +15788,12 @@ 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()); @@ -14585,21 +15803,23 @@ 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; */ @@ -14613,6 +15833,7 @@ public final class BatchReport { } return this; } + /** * repeated .Changesets.Changeset changeset = 2; */ @@ -14626,78 +15847,88 @@ 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]; * @@ -14706,9 +15937,10 @@ public final class BatchReport { * */ public java.util.List - getChangesetIndexByLineList() { + getChangesetIndexByLineList() { return java.util.Collections.unmodifiableList(changesetIndexByLine_); } + /** * repeated int32 changesetIndexByLine = 3 [packed = true]; * @@ -14719,6 +15951,7 @@ public final class BatchReport { public int getChangesetIndexByLineCount() { return changesetIndexByLine_.size(); } + /** * repeated int32 changesetIndexByLine = 3 [packed = true]; * @@ -14729,6 +15962,7 @@ public final class BatchReport { public int getChangesetIndexByLine(int index) { return changesetIndexByLine_.get(index); } + /** * repeated int32 changesetIndexByLine = 3 [packed = true]; * @@ -14737,12 +15971,13 @@ 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]; * @@ -14756,6 +15991,7 @@ public final class BatchReport { onChanged(); return this; } + /** * repeated int32 changesetIndexByLine = 3 [packed = true]; * @@ -14764,13 +16000,14 @@ 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]; * @@ -14797,8 +16034,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; @@ -14808,6 +16045,7 @@ public final class BatchReport { * */ boolean hasOtherFileRef(); + /** * optional int32 other_file_ref = 1; * @@ -14821,10 +16059,12 @@ 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; */ @@ -14838,6 +16078,7 @@ public final class BatchReport { * */ boolean hasOtherFileKey(); + /** * optional string other_file_key = 3; * @@ -14846,6 +16087,7 @@ public final class BatchReport { * */ java.lang.String getOtherFileKey(); + /** * optional string other_file_key = 3; * @@ -14854,23 +16096,27 @@ 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; } @@ -14880,19 +16126,21 @@ 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) { @@ -14903,7 +16151,7 @@ public final class BatchReport { break; default: { if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { + extensionRegistry, tag)) { done = true; } break; @@ -14938,33 +16186,34 @@ 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() { @@ -14974,6 +16223,7 @@ 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; * @@ -14984,6 +16234,7 @@ public final class BatchReport { public boolean hasOtherFileRef() { return ((bitField0_ & 0x00000001) == 0x00000001); } + /** * optional int32 other_file_ref = 1; * @@ -14997,18 +16248,21 @@ 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; */ @@ -15018,6 +16272,7 @@ 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; * @@ -15028,6 +16283,7 @@ public final class BatchReport { public boolean hasOtherFileKey() { return ((bitField0_ & 0x00000004) == 0x00000004); } + /** * optional string other_file_key = 3; * @@ -15040,8 +16296,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; @@ -15049,6 +16305,7 @@ public final class BatchReport { return s; } } + /** * optional string other_file_key = 3; * @@ -15057,12 +16314,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 { @@ -15075,18 +16332,22 @@ 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_); @@ -15101,9 +16362,11 @@ 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)) { @@ -15124,95 +16387,115 @@ 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() @@ -15221,15 +16504,17 @@ 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(); } @@ -15254,7 +16539,7 @@ public final class BatchReport { } public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { + getDescriptorForType() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Duplicate_descriptor; } @@ -15297,7 +16582,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; @@ -15305,7 +16590,8 @@ 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()); } @@ -15326,9 +16612,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); @@ -15342,9 +16628,11 @@ public final class BatchReport { } return this; } + private int bitField0_; - private int otherFileRef_ ; + private int otherFileRef_; + /** * optional int32 other_file_ref = 1; * @@ -15355,6 +16643,7 @@ public final class BatchReport { public boolean hasOtherFileRef() { return ((bitField0_ & 0x00000001) == 0x00000001); } + /** * optional int32 other_file_ref = 1; * @@ -15365,6 +16654,7 @@ public final class BatchReport { public int getOtherFileRef() { return otherFileRef_; } + /** * optional int32 other_file_ref = 1; * @@ -15378,6 +16668,7 @@ public final class BatchReport { onChanged(); return this; } + /** * optional int32 other_file_ref = 1; * @@ -15393,14 +16684,15 @@ 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< - org.sonar.batch.protocol.output.BatchReport.Range, org.sonar.batch.protocol.output.BatchReport.Range.Builder, org.sonar.batch.protocol.output.BatchReport.RangeOrBuilder> rangeBuilder_; + private com.google.protobuf.SingleFieldBuilder rangeBuilder_; + /** * optional .Range range = 2; */ public boolean hasRange() { return ((bitField0_ & 0x00000002) == 0x00000002); } + /** * optional .Range range = 2; */ @@ -15411,6 +16703,7 @@ public final class BatchReport { return rangeBuilder_.getMessage(); } } + /** * optional .Range range = 2; */ @@ -15427,11 +16720,12 @@ 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(); @@ -15441,13 +16735,14 @@ 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 { @@ -15460,6 +16755,7 @@ public final class BatchReport { bitField0_ |= 0x00000002; return this; } + /** * optional .Range range = 2; */ @@ -15473,6 +16769,7 @@ public final class BatchReport { bitField0_ = (bitField0_ & ~0x00000002); return this; } + /** * optional .Range range = 2; */ @@ -15481,6 +16778,7 @@ public final class BatchReport { onChanged(); return getRangeFieldBuilder().getBuilder(); } + /** * optional .Range range = 2; */ @@ -15491,24 +16789,26 @@ 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; * @@ -15519,6 +16819,7 @@ public final class BatchReport { public boolean hasOtherFileKey() { return ((bitField0_ & 0x00000004) == 0x00000004); } + /** * optional string other_file_key = 3; * @@ -15530,7 +16831,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; @@ -15540,6 +16841,7 @@ public final class BatchReport { return (java.lang.String) ref; } } + /** * optional string other_file_key = 3; * @@ -15548,18 +16850,19 @@ 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; * @@ -15568,15 +16871,16 @@ 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; * @@ -15590,6 +16894,7 @@ public final class BatchReport { onChanged(); return this; } + /** * optional string other_file_key = 3; * @@ -15598,11 +16903,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; @@ -15620,8 +16925,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; @@ -15631,6 +16936,7 @@ public final class BatchReport { * */ boolean hasOriginPosition(); + /** * optional .Range origin_position = 1; * @@ -15639,6 +16945,7 @@ public final class BatchReport { * */ org.sonar.batch.protocol.output.BatchReport.Range getOriginPosition(); + /** * optional .Range origin_position = 1; * @@ -15651,42 +16958,50 @@ 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; } @@ -15696,19 +17011,21 @@ 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) { @@ -15719,7 +17036,7 @@ public final class BatchReport { break; default: { if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { + extensionRegistry, tag)) { done = true; } break; @@ -15751,7 +17068,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_); @@ -15760,27 +17077,28 @@ 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() { @@ -15790,6 +17108,7 @@ 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; * @@ -15800,6 +17119,7 @@ public final class BatchReport { public boolean hasOriginPosition() { return ((bitField0_ & 0x00000001) == 0x00000001); } + /** * optional .Range origin_position = 1; * @@ -15810,6 +17130,7 @@ public final class BatchReport { public org.sonar.batch.protocol.output.BatchReport.Range getOriginPosition() { return originPosition_; } + /** * optional .Range origin_position = 1; * @@ -15823,36 +17144,41 @@ 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); } @@ -15860,18 +17186,22 @@ 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_); @@ -15883,9 +17213,11 @@ 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)) { @@ -15902,95 +17234,115 @@ 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() @@ -15999,16 +17351,18 @@ 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(); } @@ -16035,7 +17389,7 @@ public final class BatchReport { } public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { + getDescriptorForType() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Duplication_descriptor; } @@ -16079,7 +17433,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; @@ -16087,7 +17441,8 @@ 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()); } @@ -16109,9 +17464,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_); } @@ -16126,9 +17481,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); @@ -16142,11 +17497,12 @@ 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< - org.sonar.batch.protocol.output.BatchReport.Range, org.sonar.batch.protocol.output.BatchReport.Range.Builder, org.sonar.batch.protocol.output.BatchReport.RangeOrBuilder> originPositionBuilder_; + private com.google.protobuf.SingleFieldBuilder originPositionBuilder_; + /** * optional .Range origin_position = 1; * @@ -16157,6 +17513,7 @@ public final class BatchReport { public boolean hasOriginPosition() { return ((bitField0_ & 0x00000001) == 0x00000001); } + /** * optional .Range origin_position = 1; * @@ -16171,6 +17528,7 @@ public final class BatchReport { return originPositionBuilder_.getMessage(); } } + /** * optional .Range origin_position = 1; * @@ -16191,6 +17549,7 @@ public final class BatchReport { bitField0_ |= 0x00000001; return this; } + /** * optional .Range origin_position = 1; * @@ -16199,7 +17558,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(); @@ -16209,6 +17568,7 @@ public final class BatchReport { bitField0_ |= 0x00000001; return this; } + /** * optional .Range origin_position = 1; * @@ -16219,7 +17579,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 { @@ -16232,6 +17592,7 @@ public final class BatchReport { bitField0_ |= 0x00000001; return this; } + /** * optional .Range origin_position = 1; * @@ -16249,6 +17610,7 @@ public final class BatchReport { bitField0_ = (bitField0_ & ~0x00000001); return this; } + /** * optional .Range origin_position = 1; * @@ -16261,6 +17623,7 @@ public final class BatchReport { onChanged(); return getOriginPositionFieldBuilder().getBuilder(); } + /** * optional .Range origin_position = 1; * @@ -16275,6 +17638,7 @@ public final class BatchReport { return originPosition_; } } + /** * optional .Range origin_position = 1; * @@ -16283,14 +17647,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_; @@ -16298,15 +17662,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< - org.sonar.batch.protocol.output.BatchReport.Duplicate, org.sonar.batch.protocol.output.BatchReport.Duplicate.Builder, org.sonar.batch.protocol.output.BatchReport.DuplicateOrBuilder> duplicateBuilder_; + private com.google.protobuf.RepeatedFieldBuilder duplicateBuilder_; /** * repeated .Duplicate duplicate = 2; @@ -16318,6 +17682,7 @@ public final class BatchReport { return duplicateBuilder_.getMessageList(); } } + /** * repeated .Duplicate duplicate = 2; */ @@ -16328,6 +17693,7 @@ public final class BatchReport { return duplicateBuilder_.getCount(); } } + /** * repeated .Duplicate duplicate = 2; */ @@ -16338,11 +17704,12 @@ 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(); @@ -16355,11 +17722,12 @@ 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()); @@ -16369,6 +17737,7 @@ public final class BatchReport { } return this; } + /** * repeated .Duplicate duplicate = 2; */ @@ -16385,11 +17754,12 @@ 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(); @@ -16402,11 +17772,12 @@ 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()); @@ -16416,11 +17787,12 @@ 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()); @@ -16430,21 +17802,23 @@ 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; */ @@ -16458,6 +17832,7 @@ public final class BatchReport { } return this; } + /** * repeated .Duplicate duplicate = 2; */ @@ -16471,66 +17846,74 @@ 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_; @@ -16548,13 +17931,14 @@ 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; */ @@ -16563,42 +17947,50 @@ 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; } @@ -16608,19 +18000,21 @@ 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) { @@ -16631,7 +18025,7 @@ public final class BatchReport { break; default: { if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { + extensionRegistry, tag)) { done = true; } break; @@ -16655,7 +18049,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_); @@ -16664,27 +18058,28 @@ 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() { @@ -16694,12 +18089,14 @@ 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; */ @@ -16709,36 +18106,41 @@ 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); } @@ -16746,18 +18148,22 @@ 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_); @@ -16769,9 +18175,11 @@ 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)) { @@ -16788,95 +18196,115 @@ 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() @@ -16885,15 +18313,17 @@ 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(); } @@ -16916,7 +18346,7 @@ public final class BatchReport { } public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { + getDescriptorForType() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Duplications_descriptor; } @@ -16956,7 +18386,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; @@ -16964,7 +18394,8 @@ 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()); } @@ -16986,9 +18417,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_); } @@ -17003,9 +18434,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); @@ -17019,21 +18450,25 @@ 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; */ @@ -17043,6 +18478,7 @@ public final class BatchReport { onChanged(); return this; } + /** * optional int32 component_ref = 1; */ @@ -17055,15 +18491,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< - org.sonar.batch.protocol.output.BatchReport.Duplication, org.sonar.batch.protocol.output.BatchReport.Duplication.Builder, org.sonar.batch.protocol.output.BatchReport.DuplicationOrBuilder> duplicationBuilder_; + private com.google.protobuf.RepeatedFieldBuilder duplicationBuilder_; /** * repeated .Duplication duplication = 2; @@ -17075,6 +18511,7 @@ public final class BatchReport { return duplicationBuilder_.getMessageList(); } } + /** * repeated .Duplication duplication = 2; */ @@ -17085,6 +18522,7 @@ public final class BatchReport { return duplicationBuilder_.getCount(); } } + /** * repeated .Duplication duplication = 2; */ @@ -17095,11 +18533,12 @@ 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(); @@ -17112,11 +18551,12 @@ 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()); @@ -17126,6 +18566,7 @@ public final class BatchReport { } return this; } + /** * repeated .Duplication duplication = 2; */ @@ -17142,11 +18583,12 @@ 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(); @@ -17159,11 +18601,12 @@ 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()); @@ -17173,11 +18616,12 @@ 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()); @@ -17187,21 +18631,23 @@ 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; */ @@ -17215,6 +18661,7 @@ public final class BatchReport { } return this; } + /** * repeated .Duplication duplication = 2; */ @@ -17228,66 +18675,74 @@ 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_; @@ -17305,8 +18760,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; @@ -17316,6 +18771,7 @@ public final class BatchReport { * */ boolean hasStartLine(); + /** * optional int32 start_line = 1; * @@ -17333,6 +18789,7 @@ public final class BatchReport { * */ boolean hasEndLine(); + /** * optional int32 end_line = 2; * @@ -17350,6 +18807,7 @@ public final class BatchReport { * */ boolean hasStartOffset(); + /** * optional int32 start_offset = 3; * @@ -17367,6 +18825,7 @@ public final class BatchReport { * */ boolean hasEndOffset(); + /** * optional int32 end_offset = 4; * @@ -17384,17 +18843,21 @@ 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; } @@ -17404,19 +18867,21 @@ 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) { @@ -17427,7 +18892,7 @@ public final class BatchReport { break; default: { if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { + extensionRegistry, tag)) { done = true; } break; @@ -17458,33 +18923,34 @@ 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() { @@ -17494,6 +18960,7 @@ public final class BatchReport { private int bitField0_; public static final int START_LINE_FIELD_NUMBER = 1; private int startLine_; + /** * optional int32 start_line = 1; * @@ -17504,6 +18971,7 @@ public final class BatchReport { public boolean hasStartLine() { return ((bitField0_ & 0x00000001) == 0x00000001); } + /** * optional int32 start_line = 1; * @@ -17517,6 +18985,7 @@ public final class BatchReport { public static final int END_LINE_FIELD_NUMBER = 2; private int endLine_; + /** * optional int32 end_line = 2; * @@ -17527,6 +18996,7 @@ public final class BatchReport { public boolean hasEndLine() { return ((bitField0_ & 0x00000002) == 0x00000002); } + /** * optional int32 end_line = 2; * @@ -17540,6 +19010,7 @@ public final class BatchReport { public static final int START_OFFSET_FIELD_NUMBER = 3; private int startOffset_; + /** * optional int32 start_offset = 3; * @@ -17550,6 +19021,7 @@ public final class BatchReport { public boolean hasStartOffset() { return ((bitField0_ & 0x00000004) == 0x00000004); } + /** * optional int32 start_offset = 3; * @@ -17563,6 +19035,7 @@ public final class BatchReport { public static final int END_OFFSET_FIELD_NUMBER = 4; private int endOffset_; + /** * optional int32 end_offset = 4; * @@ -17573,6 +19046,7 @@ public final class BatchReport { public boolean hasEndOffset() { return ((bitField0_ & 0x00000008) == 0x00000008); } + /** * optional int32 end_offset = 4; * @@ -17590,18 +19064,22 @@ 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_); @@ -17619,9 +19097,11 @@ 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)) { @@ -17646,78 +19126,98 @@ 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} * @@ -17726,19 +19226,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() @@ -17747,14 +19247,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) { } } + private static Builder create() { return new Builder(); } @@ -17777,7 +19279,7 @@ public final class BatchReport { } public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { + getDescriptorForType() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Range_descriptor; } @@ -17820,7 +19322,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; @@ -17828,7 +19330,8 @@ 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()); } @@ -17850,9 +19353,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); @@ -17866,9 +19369,11 @@ public final class BatchReport { } return this; } + private int bitField0_; - private int startLine_ ; + private int startLine_; + /** * optional int32 start_line = 1; * @@ -17879,6 +19384,7 @@ public final class BatchReport { public boolean hasStartLine() { return ((bitField0_ & 0x00000001) == 0x00000001); } + /** * optional int32 start_line = 1; * @@ -17889,6 +19395,7 @@ public final class BatchReport { public int getStartLine() { return startLine_; } + /** * optional int32 start_line = 1; * @@ -17902,6 +19409,7 @@ public final class BatchReport { onChanged(); return this; } + /** * optional int32 start_line = 1; * @@ -17916,7 +19424,8 @@ public final class BatchReport { return this; } - private int endLine_ ; + private int endLine_; + /** * optional int32 end_line = 2; * @@ -17927,6 +19436,7 @@ public final class BatchReport { public boolean hasEndLine() { return ((bitField0_ & 0x00000002) == 0x00000002); } + /** * optional int32 end_line = 2; * @@ -17937,6 +19447,7 @@ public final class BatchReport { public int getEndLine() { return endLine_; } + /** * optional int32 end_line = 2; * @@ -17950,6 +19461,7 @@ public final class BatchReport { onChanged(); return this; } + /** * optional int32 end_line = 2; * @@ -17964,7 +19476,8 @@ public final class BatchReport { return this; } - private int startOffset_ ; + private int startOffset_; + /** * optional int32 start_offset = 3; * @@ -17975,6 +19488,7 @@ public final class BatchReport { public boolean hasStartOffset() { return ((bitField0_ & 0x00000004) == 0x00000004); } + /** * optional int32 start_offset = 3; * @@ -17985,6 +19499,7 @@ public final class BatchReport { public int getStartOffset() { return startOffset_; } + /** * optional int32 start_offset = 3; * @@ -17998,6 +19513,7 @@ public final class BatchReport { onChanged(); return this; } + /** * optional int32 start_offset = 3; * @@ -18012,7 +19528,8 @@ public final class BatchReport { return this; } - private int endOffset_ ; + private int endOffset_; + /** * optional int32 end_offset = 4; * @@ -18023,6 +19540,7 @@ public final class BatchReport { public boolean hasEndOffset() { return ((bitField0_ & 0x00000008) == 0x00000008); } + /** * optional int32 end_offset = 4; * @@ -18033,6 +19551,7 @@ public final class BatchReport { public int getEndOffset() { return endOffset_; } + /** * optional int32 end_offset = 4; * @@ -18046,6 +19565,7 @@ public final class BatchReport { onChanged(); return this; } + /** * optional int32 end_offset = 4; * @@ -18072,13 +19592,14 @@ 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; */ @@ -18087,42 +19608,50 @@ 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; } @@ -18132,19 +19661,21 @@ 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) { @@ -18155,7 +19686,7 @@ public final class BatchReport { break; default: { if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { + extensionRegistry, tag)) { done = true; } break; @@ -18179,7 +19710,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_); @@ -18188,27 +19719,28 @@ 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() { @@ -18216,17 +19748,19 @@ 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; */ @@ -18235,42 +19769,50 @@ 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; } @@ -18280,19 +19822,21 @@ 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) { @@ -18303,7 +19847,7 @@ public final class BatchReport { break; default: { if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { + extensionRegistry, tag)) { done = true; } break; @@ -18335,7 +19879,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_); @@ -18344,27 +19888,28 @@ 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() { @@ -18374,18 +19919,21 @@ 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; */ @@ -18395,36 +19943,41 @@ 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); } @@ -18432,18 +19985,22 @@ 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_); @@ -18455,9 +20012,11 @@ 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)) { @@ -18474,95 +20033,115 @@ 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() @@ -18571,16 +20150,18 @@ 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(); } @@ -18607,7 +20188,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; } @@ -18651,7 +20232,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; @@ -18659,7 +20240,8 @@ 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()); } @@ -18681,9 +20263,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_); } @@ -18698,9 +20280,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); @@ -18714,17 +20296,19 @@ 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< - org.sonar.batch.protocol.output.BatchReport.Range, org.sonar.batch.protocol.output.BatchReport.Range.Builder, org.sonar.batch.protocol.output.BatchReport.RangeOrBuilder> declarationBuilder_; + private com.google.protobuf.SingleFieldBuilder declarationBuilder_; + /** * optional .Range declaration = 1; */ public boolean hasDeclaration() { return ((bitField0_ & 0x00000001) == 0x00000001); } + /** * optional .Range declaration = 1; */ @@ -18735,6 +20319,7 @@ public final class BatchReport { return declarationBuilder_.getMessage(); } } + /** * optional .Range declaration = 1; */ @@ -18751,11 +20336,12 @@ 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(); @@ -18765,13 +20351,14 @@ 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 { @@ -18784,6 +20371,7 @@ public final class BatchReport { bitField0_ |= 0x00000001; return this; } + /** * optional .Range declaration = 1; */ @@ -18797,6 +20385,7 @@ public final class BatchReport { bitField0_ = (bitField0_ & ~0x00000001); return this; } + /** * optional .Range declaration = 1; */ @@ -18805,6 +20394,7 @@ public final class BatchReport { onChanged(); return getDeclarationFieldBuilder().getBuilder(); } + /** * optional .Range declaration = 1; */ @@ -18815,18 +20405,19 @@ 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_; @@ -18834,15 +20425,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< - org.sonar.batch.protocol.output.BatchReport.Range, org.sonar.batch.protocol.output.BatchReport.Range.Builder, org.sonar.batch.protocol.output.BatchReport.RangeOrBuilder> referenceBuilder_; + private com.google.protobuf.RepeatedFieldBuilder referenceBuilder_; /** * repeated .Range reference = 2; @@ -18854,6 +20445,7 @@ public final class BatchReport { return referenceBuilder_.getMessageList(); } } + /** * repeated .Range reference = 2; */ @@ -18864,6 +20456,7 @@ public final class BatchReport { return referenceBuilder_.getCount(); } } + /** * repeated .Range reference = 2; */ @@ -18874,11 +20467,12 @@ 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(); @@ -18891,11 +20485,12 @@ 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()); @@ -18905,6 +20500,7 @@ public final class BatchReport { } return this; } + /** * repeated .Range reference = 2; */ @@ -18921,11 +20517,12 @@ 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(); @@ -18938,11 +20535,12 @@ 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()); @@ -18952,11 +20550,12 @@ 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()); @@ -18966,21 +20565,23 @@ 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; */ @@ -18994,6 +20595,7 @@ public final class BatchReport { } return this; } + /** * repeated .Range reference = 2; */ @@ -19007,66 +20609,74 @@ 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_; @@ -19086,12 +20696,14 @@ 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; */ @@ -19101,36 +20713,41 @@ 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); } @@ -19138,18 +20755,22 @@ 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_); @@ -19161,9 +20782,11 @@ 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)) { @@ -19180,95 +20803,115 @@ 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() @@ -19277,15 +20920,17 @@ 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(); } @@ -19308,7 +20953,7 @@ public final class BatchReport { } public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { + getDescriptorForType() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Symbols_descriptor; } @@ -19348,7 +20993,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; @@ -19356,7 +21001,8 @@ 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()); } @@ -19378,9 +21024,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_); } @@ -19395,9 +21041,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); @@ -19411,21 +21057,25 @@ 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; */ @@ -19435,6 +21085,7 @@ public final class BatchReport { onChanged(); return this; } + /** * optional int32 file_ref = 1; */ @@ -19447,15 +21098,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< - 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_; + private com.google.protobuf.RepeatedFieldBuilder symbolBuilder_; /** * repeated .Symbols.Symbol symbol = 2; @@ -19467,6 +21118,7 @@ public final class BatchReport { return symbolBuilder_.getMessageList(); } } + /** * repeated .Symbols.Symbol symbol = 2; */ @@ -19477,6 +21129,7 @@ public final class BatchReport { return symbolBuilder_.getCount(); } } + /** * repeated .Symbols.Symbol symbol = 2; */ @@ -19487,11 +21140,12 @@ 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(); @@ -19504,11 +21158,12 @@ 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()); @@ -19518,6 +21173,7 @@ public final class BatchReport { } return this; } + /** * repeated .Symbols.Symbol symbol = 2; */ @@ -19534,11 +21190,12 @@ 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(); @@ -19551,11 +21208,12 @@ 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()); @@ -19565,11 +21223,12 @@ 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()); @@ -19579,21 +21238,23 @@ 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; */ @@ -19607,6 +21268,7 @@ public final class BatchReport { } return this; } + /** * repeated .Symbols.Symbol symbol = 2; */ @@ -19620,66 +21282,74 @@ 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_; @@ -19697,13 +21367,14 @@ 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; */ @@ -19717,6 +21388,7 @@ public final class BatchReport { * */ boolean hasConditions(); + /** * optional int32 conditions = 2; * @@ -19734,6 +21406,7 @@ public final class BatchReport { * */ boolean hasUtHits(); + /** * optional bool ut_hits = 3; * @@ -19751,6 +21424,7 @@ public final class BatchReport { * */ boolean hasItHits(); + /** * optional bool it_hits = 4; * @@ -19768,6 +21442,7 @@ public final class BatchReport { * */ boolean hasUtCoveredConditions(); + /** * optional int32 ut_covered_conditions = 5; * @@ -19785,6 +21460,7 @@ public final class BatchReport { * */ boolean hasItCoveredConditions(); + /** * optional int32 it_covered_conditions = 6; * @@ -19802,6 +21478,7 @@ public final class BatchReport { * */ boolean hasOverallCoveredConditions(); + /** * optional int32 overall_covered_conditions = 7; * @@ -19820,17 +21497,21 @@ 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; } @@ -19840,19 +21521,21 @@ 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) { @@ -19863,7 +21546,7 @@ public final class BatchReport { break; default: { if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { + extensionRegistry, tag)) { done = true; } break; @@ -19909,33 +21592,34 @@ 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() { @@ -19945,12 +21629,14 @@ 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; */ @@ -19960,6 +21646,7 @@ public final class BatchReport { public static final int CONDITIONS_FIELD_NUMBER = 2; private int conditions_; + /** * optional int32 conditions = 2; * @@ -19970,6 +21657,7 @@ public final class BatchReport { public boolean hasConditions() { return ((bitField0_ & 0x00000002) == 0x00000002); } + /** * optional int32 conditions = 2; * @@ -19983,6 +21671,7 @@ public final class BatchReport { public static final int UT_HITS_FIELD_NUMBER = 3; private boolean utHits_; + /** * optional bool ut_hits = 3; * @@ -19993,6 +21682,7 @@ public final class BatchReport { public boolean hasUtHits() { return ((bitField0_ & 0x00000004) == 0x00000004); } + /** * optional bool ut_hits = 3; * @@ -20006,6 +21696,7 @@ public final class BatchReport { public static final int IT_HITS_FIELD_NUMBER = 4; private boolean itHits_; + /** * optional bool it_hits = 4; * @@ -20016,6 +21707,7 @@ public final class BatchReport { public boolean hasItHits() { return ((bitField0_ & 0x00000008) == 0x00000008); } + /** * optional bool it_hits = 4; * @@ -20029,6 +21721,7 @@ public final class BatchReport { public static final int UT_COVERED_CONDITIONS_FIELD_NUMBER = 5; private int utCoveredConditions_; + /** * optional int32 ut_covered_conditions = 5; * @@ -20039,6 +21732,7 @@ public final class BatchReport { public boolean hasUtCoveredConditions() { return ((bitField0_ & 0x00000010) == 0x00000010); } + /** * optional int32 ut_covered_conditions = 5; * @@ -20052,6 +21746,7 @@ public final class BatchReport { public static final int IT_COVERED_CONDITIONS_FIELD_NUMBER = 6; private int itCoveredConditions_; + /** * optional int32 it_covered_conditions = 6; * @@ -20062,6 +21757,7 @@ public final class BatchReport { public boolean hasItCoveredConditions() { return ((bitField0_ & 0x00000020) == 0x00000020); } + /** * optional int32 it_covered_conditions = 6; * @@ -20075,6 +21771,7 @@ public final class BatchReport { public static final int OVERALL_COVERED_CONDITIONS_FIELD_NUMBER = 7; private int overallCoveredConditions_; + /** * optional int32 overall_covered_conditions = 7; * @@ -20085,6 +21782,7 @@ public final class BatchReport { public boolean hasOverallCoveredConditions() { return ((bitField0_ & 0x00000040) == 0x00000040); } + /** * optional int32 overall_covered_conditions = 7; * @@ -20105,18 +21803,22 @@ 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_); @@ -20143,9 +21845,11 @@ 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)) { @@ -20182,78 +21886,98 @@ 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} * @@ -20263,19 +21987,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() @@ -20284,14 +22008,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) { } } + private static Builder create() { return new Builder(); } @@ -20320,7 +22046,7 @@ public final class BatchReport { } public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { + getDescriptorForType() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Coverage_descriptor; } @@ -20375,7 +22101,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; @@ -20383,7 +22109,8 @@ 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()); } @@ -20414,9 +22141,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); @@ -20430,21 +22157,25 @@ 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; */ @@ -20454,6 +22185,7 @@ public final class BatchReport { onChanged(); return this; } + /** * optional int32 line = 1; */ @@ -20464,7 +22196,8 @@ public final class BatchReport { return this; } - private int conditions_ ; + private int conditions_; + /** * optional int32 conditions = 2; * @@ -20475,6 +22208,7 @@ public final class BatchReport { public boolean hasConditions() { return ((bitField0_ & 0x00000002) == 0x00000002); } + /** * optional int32 conditions = 2; * @@ -20485,6 +22219,7 @@ public final class BatchReport { public int getConditions() { return conditions_; } + /** * optional int32 conditions = 2; * @@ -20498,6 +22233,7 @@ public final class BatchReport { onChanged(); return this; } + /** * optional int32 conditions = 2; * @@ -20512,7 +22248,8 @@ public final class BatchReport { return this; } - private boolean utHits_ ; + private boolean utHits_; + /** * optional bool ut_hits = 3; * @@ -20523,6 +22260,7 @@ public final class BatchReport { public boolean hasUtHits() { return ((bitField0_ & 0x00000004) == 0x00000004); } + /** * optional bool ut_hits = 3; * @@ -20533,6 +22271,7 @@ public final class BatchReport { public boolean getUtHits() { return utHits_; } + /** * optional bool ut_hits = 3; * @@ -20546,6 +22285,7 @@ public final class BatchReport { onChanged(); return this; } + /** * optional bool ut_hits = 3; * @@ -20560,7 +22300,8 @@ public final class BatchReport { return this; } - private boolean itHits_ ; + private boolean itHits_; + /** * optional bool it_hits = 4; * @@ -20571,6 +22312,7 @@ public final class BatchReport { public boolean hasItHits() { return ((bitField0_ & 0x00000008) == 0x00000008); } + /** * optional bool it_hits = 4; * @@ -20581,6 +22323,7 @@ public final class BatchReport { public boolean getItHits() { return itHits_; } + /** * optional bool it_hits = 4; * @@ -20594,6 +22337,7 @@ public final class BatchReport { onChanged(); return this; } + /** * optional bool it_hits = 4; * @@ -20608,7 +22352,8 @@ public final class BatchReport { return this; } - private int utCoveredConditions_ ; + private int utCoveredConditions_; + /** * optional int32 ut_covered_conditions = 5; * @@ -20619,6 +22364,7 @@ public final class BatchReport { public boolean hasUtCoveredConditions() { return ((bitField0_ & 0x00000010) == 0x00000010); } + /** * optional int32 ut_covered_conditions = 5; * @@ -20629,6 +22375,7 @@ public final class BatchReport { public int getUtCoveredConditions() { return utCoveredConditions_; } + /** * optional int32 ut_covered_conditions = 5; * @@ -20642,6 +22389,7 @@ public final class BatchReport { onChanged(); return this; } + /** * optional int32 ut_covered_conditions = 5; * @@ -20656,7 +22404,8 @@ public final class BatchReport { return this; } - private int itCoveredConditions_ ; + private int itCoveredConditions_; + /** * optional int32 it_covered_conditions = 6; * @@ -20667,6 +22416,7 @@ public final class BatchReport { public boolean hasItCoveredConditions() { return ((bitField0_ & 0x00000020) == 0x00000020); } + /** * optional int32 it_covered_conditions = 6; * @@ -20677,6 +22427,7 @@ public final class BatchReport { public int getItCoveredConditions() { return itCoveredConditions_; } + /** * optional int32 it_covered_conditions = 6; * @@ -20690,6 +22441,7 @@ public final class BatchReport { onChanged(); return this; } + /** * optional int32 it_covered_conditions = 6; * @@ -20704,7 +22456,8 @@ public final class BatchReport { return this; } - private int overallCoveredConditions_ ; + private int overallCoveredConditions_; + /** * optional int32 overall_covered_conditions = 7; * @@ -20715,6 +22468,7 @@ public final class BatchReport { public boolean hasOverallCoveredConditions() { return ((bitField0_ & 0x00000040) == 0x00000040); } + /** * optional int32 overall_covered_conditions = 7; * @@ -20725,6 +22479,7 @@ public final class BatchReport { public int getOverallCoveredConditions() { return overallCoveredConditions_; } + /** * optional int32 overall_covered_conditions = 7; * @@ -20738,6 +22493,7 @@ public final class BatchReport { onChanged(); return this; } + /** * optional int32 overall_covered_conditions = 7; * @@ -20764,17 +22520,19 @@ 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; */ @@ -20784,6 +22542,7 @@ public final class BatchReport { * optional .HighlightingType type = 2; */ boolean hasType(); + /** * optional .HighlightingType type = 2; */ @@ -20798,17 +22557,21 @@ 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; } @@ -20818,19 +22581,21 @@ 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) { @@ -20841,7 +22606,7 @@ public final class BatchReport { break; default: { if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { + extensionRegistry, tag)) { done = true; } break; @@ -20876,33 +22641,34 @@ 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() { @@ -20912,18 +22678,21 @@ 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; */ @@ -20933,12 +22702,14 @@ 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; */ @@ -20950,18 +22721,22 @@ 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_); @@ -20973,9 +22748,11 @@ 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)) { @@ -20992,78 +22769,98 @@ 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} * @@ -21073,19 +22870,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() @@ -21094,15 +22891,17 @@ 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(); } @@ -21125,7 +22924,7 @@ public final class BatchReport { } public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { + getDescriptorForType() { return org.sonar.batch.protocol.output.BatchReport.internal_static_SyntaxHighlighting_descriptor; } @@ -21164,7 +22963,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; @@ -21172,7 +22971,8 @@ 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()); } @@ -21188,9 +22988,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); @@ -21204,17 +23004,19 @@ 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< - org.sonar.batch.protocol.output.BatchReport.Range, org.sonar.batch.protocol.output.BatchReport.Range.Builder, org.sonar.batch.protocol.output.BatchReport.RangeOrBuilder> rangeBuilder_; + private com.google.protobuf.SingleFieldBuilder rangeBuilder_; + /** * optional .Range range = 1; */ public boolean hasRange() { return ((bitField0_ & 0x00000001) == 0x00000001); } + /** * optional .Range range = 1; */ @@ -21225,6 +23027,7 @@ public final class BatchReport { return rangeBuilder_.getMessage(); } } + /** * optional .Range range = 1; */ @@ -21241,11 +23044,12 @@ 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(); @@ -21255,13 +23059,14 @@ 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 { @@ -21274,6 +23079,7 @@ public final class BatchReport { bitField0_ |= 0x00000001; return this; } + /** * optional .Range range = 1; */ @@ -21287,6 +23093,7 @@ public final class BatchReport { bitField0_ = (bitField0_ & ~0x00000001); return this; } + /** * optional .Range range = 1; */ @@ -21295,6 +23102,7 @@ public final class BatchReport { onChanged(); return getRangeFieldBuilder().getBuilder(); } + /** * optional .Range range = 1; */ @@ -21305,36 +23113,40 @@ 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; */ @@ -21347,6 +23159,7 @@ public final class BatchReport { onChanged(); return this; } + /** * optional .HighlightingType type = 2; */ @@ -21369,27 +23182,30 @@ 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; */ @@ -21399,6 +23215,7 @@ public final class BatchReport { * optional int64 duration_in_ms = 3; */ boolean hasDurationInMs(); + /** * optional int64 duration_in_ms = 3; */ @@ -21408,45 +23225,53 @@ 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; } @@ -21456,19 +23281,21 @@ 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) { @@ -21479,7 +23306,7 @@ public final class BatchReport { break; default: { if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { + extensionRegistry, tag)) { done = true; } break; @@ -21524,33 +23351,34 @@ 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() { @@ -21560,12 +23388,14 @@ 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; */ @@ -21574,8 +23404,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; @@ -21583,16 +23413,17 @@ 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 { @@ -21602,12 +23433,14 @@ 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; */ @@ -21617,12 +23450,14 @@ 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; */ @@ -21632,12 +23467,14 @@ 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; */ @@ -21646,8 +23483,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; @@ -21655,16 +23492,17 @@ 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 { @@ -21674,12 +23512,14 @@ 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; */ @@ -21688,8 +23528,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; @@ -21697,16 +23537,17 @@ 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 { @@ -21721,18 +23562,22 @@ 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()); @@ -21753,9 +23598,11 @@ 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)) { @@ -21784,95 +23631,115 @@ 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() @@ -21881,14 +23748,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) { } } + private static Builder create() { return new Builder(); } @@ -21913,7 +23782,7 @@ public final class BatchReport { } public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { + getDescriptorForType() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Test_descriptor; } @@ -21960,7 +23829,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; @@ -21968,7 +23837,8 @@ 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_; @@ -21999,9 +23869,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); @@ -22015,15 +23885,18 @@ 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; */ @@ -22031,7 +23904,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; @@ -22041,35 +23914,38 @@ 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; */ @@ -22079,33 +23955,37 @@ 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; */ @@ -22118,6 +23998,7 @@ public final class BatchReport { onChanged(); return this; } + /** * optional .TestStatus status = 2; */ @@ -22128,19 +24009,22 @@ 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; */ @@ -22150,6 +24034,7 @@ public final class BatchReport { onChanged(); return this; } + /** * optional int64 duration_in_ms = 3; */ @@ -22161,12 +24046,14 @@ public final class BatchReport { } private java.lang.Object stacktrace_ = ""; + /** * optional string stacktrace = 4; */ public boolean hasStacktrace() { return ((bitField0_ & 0x00000008) == 0x00000008); } + /** * optional string stacktrace = 4; */ @@ -22174,7 +24061,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; @@ -22184,35 +24071,38 @@ 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; */ @@ -22222,27 +24112,30 @@ 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; */ @@ -22250,7 +24143,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; @@ -22260,35 +24153,38 @@ 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; */ @@ -22298,15 +24194,16 @@ 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; @@ -22324,62 +24221,72 @@ 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; } @@ -22389,19 +24296,21 @@ 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) { @@ -22412,7 +24321,7 @@ public final class BatchReport { break; default: { if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { + extensionRegistry, tag)) { done = true; } break; @@ -22437,7 +24346,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_); @@ -22446,27 +24355,28 @@ 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() { @@ -22474,13 +24384,14 @@ 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; */ @@ -22490,10 +24401,12 @@ 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]; */ @@ -22503,17 +24416,21 @@ 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; } @@ -22523,19 +24440,21 @@ 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 { + 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) { @@ -22546,7 +24465,7 @@ public final class BatchReport { break; default: { if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { + extensionRegistry, tag)) { done = true; } break; @@ -22583,7 +24502,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_); @@ -22592,27 +24511,28 @@ 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() { @@ -22622,12 +24542,14 @@ 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; */ @@ -22637,43 +24559,51 @@ 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_); @@ -22689,9 +24619,11 @@ 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)) { @@ -22708,7 +24640,7 @@ public final class BatchReport { if (!getCoveredLineList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); + .computeInt32SizeNoTag(dataSize); } coveredLineMemoizedSerializedSize = dataSize; } @@ -22718,95 +24650,115 @@ 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() @@ -22815,14 +24767,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) { } } + private static Builder create() { return new Builder(); } @@ -22841,7 +24795,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; } @@ -22877,7 +24831,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; @@ -22885,7 +24839,8 @@ 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()); } @@ -22908,9 +24863,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); @@ -22924,21 +24879,25 @@ 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; */ @@ -22948,6 +24907,7 @@ public final class BatchReport { onChanged(); return this; } + /** * optional int32 file_ref = 1; */ @@ -22959,41 +24919,47 @@ 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]; */ @@ -23003,17 +24969,19 @@ 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]; */ @@ -23038,12 +25006,14 @@ 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; */ @@ -23052,8 +25022,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; @@ -23061,16 +25031,17 @@ 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 { @@ -23080,36 +25051,41 @@ 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); } @@ -23117,18 +25093,22 @@ 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()); @@ -23140,9 +25120,11 @@ 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)) { @@ -23159,95 +25141,115 @@ 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() @@ -23256,15 +25258,17 @@ 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(); } @@ -23287,7 +25291,7 @@ public final class BatchReport { } public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { + getDescriptorForType() { return org.sonar.batch.protocol.output.BatchReport.internal_static_CoverageDetail_descriptor; } @@ -23327,7 +25331,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; @@ -23335,7 +25339,8 @@ 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_; @@ -23359,9 +25364,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_); } @@ -23376,9 +25381,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); @@ -23392,15 +25397,18 @@ 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; */ @@ -23408,7 +25416,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; @@ -23418,35 +25426,38 @@ 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; */ @@ -23456,15 +25467,16 @@ 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; @@ -23472,15 +25484,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< - 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_; + private com.google.protobuf.RepeatedFieldBuilder coveredFileBuilder_; /** * repeated .CoverageDetail.CoveredFile covered_file = 2; @@ -23492,6 +25504,7 @@ public final class BatchReport { return coveredFileBuilder_.getMessageList(); } } + /** * repeated .CoverageDetail.CoveredFile covered_file = 2; */ @@ -23502,6 +25515,7 @@ public final class BatchReport { return coveredFileBuilder_.getCount(); } } + /** * repeated .CoverageDetail.CoveredFile covered_file = 2; */ @@ -23512,11 +25526,12 @@ 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(); @@ -23529,11 +25544,12 @@ 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()); @@ -23543,6 +25559,7 @@ public final class BatchReport { } return this; } + /** * repeated .CoverageDetail.CoveredFile covered_file = 2; */ @@ -23559,11 +25576,12 @@ 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(); @@ -23576,11 +25594,12 @@ 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()); @@ -23590,11 +25609,12 @@ 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()); @@ -23604,21 +25624,23 @@ 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; */ @@ -23632,6 +25654,7 @@ public final class BatchReport { } return this; } + /** * repeated .CoverageDetail.CoveredFile covered_file = 2; */ @@ -23645,2752 +25668,361 @@ 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) { - return getCoveredFileFieldBuilder().addBuilder( - index, org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFile.getDefaultInstance()); - } - /** - * repeated .CoverageDetail.CoveredFile covered_file = 2; - */ - 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() { - 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()); - coveredFile_ = null; - } - return coveredFileBuilder_; - } - - // @@protoc_insertion_point(builder_scope:CoverageDetail) - } - - static { - defaultInstance = new CoverageDetail(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:CoverageDetail) - } - - public interface FileDependencyOrBuilder extends - // @@protoc_insertion_point(interface_extends:FileDependency) - com.google.protobuf.MessageOrBuilder { - - /** - * optional int32 to_file_ref = 1; - */ - boolean hasToFileRef(); - /** - * optional int32 to_file_ref = 1; - */ - int getToFileRef(); - - /** - * optional int32 weight = 2; - */ - boolean hasWeight(); - /** - * optional int32 weight = 2; - */ - int getWeight(); - } - /** - * Protobuf type {@code FileDependency} - */ - public static final class FileDependency extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:FileDependency) - FileDependencyOrBuilder { - // Use FileDependency.newBuilder() to construct. - private FileDependency(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private FileDependency(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final FileDependency defaultInstance; - public static FileDependency getDefaultInstance() { - return defaultInstance; - } - - public FileDependency getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private FileDependency( - 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(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - bitField0_ |= 0x00000001; - toFileRef_ = input.readInt32(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - weight_ = input.readInt32(); - 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); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonar.batch.protocol.output.BatchReport.internal_static_FileDependency_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonar.batch.protocol.output.BatchReport.internal_static_FileDependency_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.batch.protocol.output.BatchReport.FileDependency.class, org.sonar.batch.protocol.output.BatchReport.FileDependency.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public FileDependency parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FileDependency(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - private int bitField0_; - public static final int TO_FILE_REF_FIELD_NUMBER = 1; - private int toFileRef_; - /** - * optional int32 to_file_ref = 1; - */ - public boolean hasToFileRef() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional int32 to_file_ref = 1; - */ - public int getToFileRef() { - return toFileRef_; - } - - public static final int WEIGHT_FIELD_NUMBER = 2; - private int weight_; - /** - * optional int32 weight = 2; - */ - public boolean hasWeight() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional int32 weight = 2; - */ - public int getWeight() { - return weight_; - } - - private void initFields() { - toFileRef_ = 0; - weight_ = 0; - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - 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 { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeInt32(1, toFileRef_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeInt32(2, weight_); - } - getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, toFileRef_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, weight_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - protected java.lang.Object writeReplace() - throws java.io.ObjectStreamException { - return super.writeReplace(); - } - - public static org.sonar.batch.protocol.output.BatchReport.FileDependency parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonar.batch.protocol.output.BatchReport.FileDependency parseFrom( - 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.FileDependency parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonar.batch.protocol.output.BatchReport.FileDependency parseFrom( - 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.FileDependency parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonar.batch.protocol.output.BatchReport.FileDependency parseFrom( - 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.FileDependency parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonar.batch.protocol.output.BatchReport.FileDependency parseDelimitedFrom( - 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.FileDependency parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonar.batch.protocol.output.BatchReport.FileDependency parseFrom( - 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(org.sonar.batch.protocol.output.BatchReport.FileDependency prototype) { - return newBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { return newBuilder(this); } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code FileDependency} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:FileDependency) - org.sonar.batch.protocol.output.BatchReport.FileDependencyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonar.batch.protocol.output.BatchReport.internal_static_FileDependency_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonar.batch.protocol.output.BatchReport.internal_static_FileDependency_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.batch.protocol.output.BatchReport.FileDependency.class, org.sonar.batch.protocol.output.BatchReport.FileDependency.Builder.class); - } - - // Construct using org.sonar.batch.protocol.output.BatchReport.FileDependency.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - 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(); - } - - public Builder clear() { - super.clear(); - toFileRef_ = 0; - bitField0_ = (bitField0_ & ~0x00000001); - weight_ = 0; - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonar.batch.protocol.output.BatchReport.internal_static_FileDependency_descriptor; - } - - public org.sonar.batch.protocol.output.BatchReport.FileDependency getDefaultInstanceForType() { - return org.sonar.batch.protocol.output.BatchReport.FileDependency.getDefaultInstance(); - } - - public org.sonar.batch.protocol.output.BatchReport.FileDependency build() { - org.sonar.batch.protocol.output.BatchReport.FileDependency result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonar.batch.protocol.output.BatchReport.FileDependency buildPartial() { - org.sonar.batch.protocol.output.BatchReport.FileDependency result = new org.sonar.batch.protocol.output.BatchReport.FileDependency(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.toFileRef_ = toFileRef_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.weight_ = weight_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonar.batch.protocol.output.BatchReport.FileDependency) { - return mergeFrom((org.sonar.batch.protocol.output.BatchReport.FileDependency)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonar.batch.protocol.output.BatchReport.FileDependency other) { - if (other == org.sonar.batch.protocol.output.BatchReport.FileDependency.getDefaultInstance()) return this; - if (other.hasToFileRef()) { - setToFileRef(other.getToFileRef()); - } - if (other.hasWeight()) { - setWeight(other.getWeight()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonar.batch.protocol.output.BatchReport.FileDependency parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonar.batch.protocol.output.BatchReport.FileDependency) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int toFileRef_ ; - /** - * optional int32 to_file_ref = 1; - */ - public boolean hasToFileRef() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional int32 to_file_ref = 1; - */ - public int getToFileRef() { - return toFileRef_; - } - /** - * optional int32 to_file_ref = 1; - */ - public Builder setToFileRef(int value) { - bitField0_ |= 0x00000001; - toFileRef_ = value; - onChanged(); - return this; - } - /** - * optional int32 to_file_ref = 1; - */ - public Builder clearToFileRef() { - bitField0_ = (bitField0_ & ~0x00000001); - toFileRef_ = 0; - onChanged(); - return this; - } - - private int weight_ ; - /** - * optional int32 weight = 2; - */ - public boolean hasWeight() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional int32 weight = 2; - */ - public int getWeight() { - return weight_; - } - /** - * optional int32 weight = 2; - */ - public Builder setWeight(int value) { - bitField0_ |= 0x00000002; - weight_ = value; - onChanged(); - return this; - } - /** - * optional int32 weight = 2; - */ - public Builder clearWeight() { - bitField0_ = (bitField0_ & ~0x00000002); - weight_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:FileDependency) - } - - static { - defaultInstance = new FileDependency(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:FileDependency) - } - - public interface ModuleDependenciesOrBuilder extends - // @@protoc_insertion_point(interface_extends:ModuleDependencies) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .ModuleDependencies.ModuleDependency dep = 1; - */ - java.util.List - getDepList(); - /** - * repeated .ModuleDependencies.ModuleDependency dep = 1; - */ - org.sonar.batch.protocol.output.BatchReport.ModuleDependencies.ModuleDependency getDep(int index); - /** - * repeated .ModuleDependencies.ModuleDependency dep = 1; - */ - int getDepCount(); - /** - * repeated .ModuleDependencies.ModuleDependency dep = 1; - */ - java.util.List - getDepOrBuilderList(); - /** - * repeated .ModuleDependencies.ModuleDependency dep = 1; - */ - org.sonar.batch.protocol.output.BatchReport.ModuleDependencies.ModuleDependencyOrBuilder getDepOrBuilder( - int index); - } - /** - * Protobuf type {@code ModuleDependencies} - */ - public static final class ModuleDependencies extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:ModuleDependencies) - ModuleDependenciesOrBuilder { - // Use ModuleDependencies.newBuilder() to construct. - private ModuleDependencies(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private ModuleDependencies(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final ModuleDependencies defaultInstance; - public static ModuleDependencies getDefaultInstance() { - return defaultInstance; - } - - public ModuleDependencies getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ModuleDependencies( - 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(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - dep_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - dep_.add(input.readMessage(org.sonar.batch.protocol.output.BatchReport.ModuleDependencies.ModuleDependency.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); - } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - dep_ = java.util.Collections.unmodifiableList(dep_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonar.batch.protocol.output.BatchReport.internal_static_ModuleDependencies_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonar.batch.protocol.output.BatchReport.internal_static_ModuleDependencies_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.batch.protocol.output.BatchReport.ModuleDependencies.class, org.sonar.batch.protocol.output.BatchReport.ModuleDependencies.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public ModuleDependencies parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ModuleDependencies(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public interface ModuleDependencyOrBuilder extends - // @@protoc_insertion_point(interface_extends:ModuleDependencies.ModuleDependency) - com.google.protobuf.MessageOrBuilder { - - /** - * optional string key = 1; - */ - boolean hasKey(); - /** - * optional string key = 1; - */ - java.lang.String getKey(); - /** - * optional string key = 1; - */ - com.google.protobuf.ByteString - getKeyBytes(); - - /** - * optional string version = 2; - */ - boolean hasVersion(); - /** - * optional string version = 2; - */ - java.lang.String getVersion(); - /** - * optional string version = 2; - */ - com.google.protobuf.ByteString - getVersionBytes(); - - /** - * optional string scope = 3; - */ - boolean hasScope(); - /** - * optional string scope = 3; - */ - java.lang.String getScope(); - /** - * optional string scope = 3; - */ - com.google.protobuf.ByteString - getScopeBytes(); - - /** - * repeated .ModuleDependencies.ModuleDependency child = 4; - */ - java.util.List - getChildList(); - /** - * repeated .ModuleDependencies.ModuleDependency child = 4; - */ - org.sonar.batch.protocol.output.BatchReport.ModuleDependencies.ModuleDependency getChild(int index); - /** - * repeated .ModuleDependencies.ModuleDependency child = 4; - */ - int getChildCount(); - /** - * repeated .ModuleDependencies.ModuleDependency child = 4; - */ - java.util.List - getChildOrBuilderList(); - /** - * repeated .ModuleDependencies.ModuleDependency child = 4; - */ - org.sonar.batch.protocol.output.BatchReport.ModuleDependencies.ModuleDependencyOrBuilder getChildOrBuilder( - int index); - } - /** - * Protobuf type {@code ModuleDependencies.ModuleDependency} - */ - public static final class ModuleDependency extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:ModuleDependencies.ModuleDependency) - ModuleDependencyOrBuilder { - // Use ModuleDependency.newBuilder() to construct. - private ModuleDependency(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private ModuleDependency(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final ModuleDependency defaultInstance; - public static ModuleDependency getDefaultInstance() { - return defaultInstance; - } - - public ModuleDependency getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ModuleDependency( - 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(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000001; - key_ = bs; - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - version_ = bs; - break; - } - case 26: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000004; - scope_ = bs; - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { - child_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000008; - } - child_.add(input.readMessage(org.sonar.batch.protocol.output.BatchReport.ModuleDependencies.ModuleDependency.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); - } finally { - if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { - child_ = java.util.Collections.unmodifiableList(child_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonar.batch.protocol.output.BatchReport.internal_static_ModuleDependencies_ModuleDependency_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonar.batch.protocol.output.BatchReport.internal_static_ModuleDependencies_ModuleDependency_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.batch.protocol.output.BatchReport.ModuleDependencies.ModuleDependency.class, org.sonar.batch.protocol.output.BatchReport.ModuleDependencies.ModuleDependency.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public ModuleDependency parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ModuleDependency(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - private int bitField0_; - public static final int KEY_FIELD_NUMBER = 1; - private java.lang.Object key_; - /** - * optional string key = 1; - */ - public boolean hasKey() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string key = 1; - */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - 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()) { - key_ = s; - } - return s; - } - } - /** - * optional string key = 1; - */ - public com.google.protobuf.ByteString - 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); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VERSION_FIELD_NUMBER = 2; - private java.lang.Object version_; - /** - * optional string version = 2; - */ - public boolean hasVersion() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string version = 2; - */ - public java.lang.String getVersion() { - java.lang.Object ref = version_; - 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()) { - version_ = s; - } - return s; - } - } - /** - * optional string version = 2; - */ - public com.google.protobuf.ByteString - 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); - version_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SCOPE_FIELD_NUMBER = 3; - private java.lang.Object scope_; - /** - * optional string scope = 3; - */ - public boolean hasScope() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional string scope = 3; - */ - public java.lang.String getScope() { - java.lang.Object ref = scope_; - 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()) { - scope_ = s; - } - return s; - } - } - /** - * optional string scope = 3; - */ - public com.google.protobuf.ByteString - getScopeBytes() { - java.lang.Object ref = scope_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - scope_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CHILD_FIELD_NUMBER = 4; - private java.util.List child_; - /** - * repeated .ModuleDependencies.ModuleDependency child = 4; - */ - public java.util.List getChildList() { - return child_; - } - /** - * repeated .ModuleDependencies.ModuleDependency child = 4; - */ - public java.util.List - getChildOrBuilderList() { - return child_; - } - /** - * repeated .ModuleDependencies.ModuleDependency child = 4; - */ - public int getChildCount() { - return child_.size(); - } - /** - * repeated .ModuleDependencies.ModuleDependency child = 4; - */ - public org.sonar.batch.protocol.output.BatchReport.ModuleDependencies.ModuleDependency getChild(int index) { - return child_.get(index); - } - /** - * repeated .ModuleDependencies.ModuleDependency child = 4; - */ - public org.sonar.batch.protocol.output.BatchReport.ModuleDependencies.ModuleDependencyOrBuilder getChildOrBuilder( - int index) { - return child_.get(index); - } - - private void initFields() { - key_ = ""; - version_ = ""; - scope_ = ""; - child_ = 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; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getKeyBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getVersionBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, getScopeBytes()); - } - for (int i = 0; i < child_.size(); i++) { - output.writeMessage(4, child_.get(i)); - } - getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getKeyBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getVersionBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getScopeBytes()); - } - for (int i = 0; i < child_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, child_.get(i)); - } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - protected java.lang.Object writeReplace() - throws java.io.ObjectStreamException { - return super.writeReplace(); - } - - public static org.sonar.batch.protocol.output.BatchReport.ModuleDependencies.ModuleDependency parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonar.batch.protocol.output.BatchReport.ModuleDependencies.ModuleDependency parseFrom( - 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.ModuleDependencies.ModuleDependency parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonar.batch.protocol.output.BatchReport.ModuleDependencies.ModuleDependency parseFrom( - 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.ModuleDependencies.ModuleDependency parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonar.batch.protocol.output.BatchReport.ModuleDependencies.ModuleDependency parseFrom( - 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.ModuleDependencies.ModuleDependency parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonar.batch.protocol.output.BatchReport.ModuleDependencies.ModuleDependency parseDelimitedFrom( - 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.ModuleDependencies.ModuleDependency parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonar.batch.protocol.output.BatchReport.ModuleDependencies.ModuleDependency parseFrom( - 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(org.sonar.batch.protocol.output.BatchReport.ModuleDependencies.ModuleDependency prototype) { - return newBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { return newBuilder(this); } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code ModuleDependencies.ModuleDependency} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:ModuleDependencies.ModuleDependency) - org.sonar.batch.protocol.output.BatchReport.ModuleDependencies.ModuleDependencyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonar.batch.protocol.output.BatchReport.internal_static_ModuleDependencies_ModuleDependency_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonar.batch.protocol.output.BatchReport.internal_static_ModuleDependencies_ModuleDependency_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.batch.protocol.output.BatchReport.ModuleDependencies.ModuleDependency.class, org.sonar.batch.protocol.output.BatchReport.ModuleDependencies.ModuleDependency.Builder.class); - } - - // Construct using org.sonar.batch.protocol.output.BatchReport.ModuleDependencies.ModuleDependency.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getChildFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } - - public Builder clear() { - super.clear(); - key_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - version_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - scope_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); - if (childBuilder_ == null) { - child_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - } else { - childBuilder_.clear(); - } - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonar.batch.protocol.output.BatchReport.internal_static_ModuleDependencies_ModuleDependency_descriptor; - } - - public org.sonar.batch.protocol.output.BatchReport.ModuleDependencies.ModuleDependency getDefaultInstanceForType() { - return org.sonar.batch.protocol.output.BatchReport.ModuleDependencies.ModuleDependency.getDefaultInstance(); - } - - public org.sonar.batch.protocol.output.BatchReport.ModuleDependencies.ModuleDependency build() { - org.sonar.batch.protocol.output.BatchReport.ModuleDependencies.ModuleDependency result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonar.batch.protocol.output.BatchReport.ModuleDependencies.ModuleDependency buildPartial() { - org.sonar.batch.protocol.output.BatchReport.ModuleDependencies.ModuleDependency result = new org.sonar.batch.protocol.output.BatchReport.ModuleDependencies.ModuleDependency(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.key_ = key_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.version_ = version_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.scope_ = scope_; - if (childBuilder_ == null) { - if (((bitField0_ & 0x00000008) == 0x00000008)) { - child_ = java.util.Collections.unmodifiableList(child_); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.child_ = child_; - } else { - result.child_ = childBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonar.batch.protocol.output.BatchReport.ModuleDependencies.ModuleDependency) { - return mergeFrom((org.sonar.batch.protocol.output.BatchReport.ModuleDependencies.ModuleDependency)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonar.batch.protocol.output.BatchReport.ModuleDependencies.ModuleDependency other) { - if (other == org.sonar.batch.protocol.output.BatchReport.ModuleDependencies.ModuleDependency.getDefaultInstance()) return this; - if (other.hasKey()) { - bitField0_ |= 0x00000001; - key_ = other.key_; - onChanged(); - } - if (other.hasVersion()) { - bitField0_ |= 0x00000002; - version_ = other.version_; - onChanged(); - } - if (other.hasScope()) { - bitField0_ |= 0x00000004; - scope_ = other.scope_; - onChanged(); - } - if (childBuilder_ == null) { - if (!other.child_.isEmpty()) { - if (child_.isEmpty()) { - child_ = other.child_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureChildIsMutable(); - child_.addAll(other.child_); - } - onChanged(); - } - } else { - if (!other.child_.isEmpty()) { - if (childBuilder_.isEmpty()) { - childBuilder_.dispose(); - childBuilder_ = null; - child_ = other.child_; - bitField0_ = (bitField0_ & ~0x00000008); - childBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getChildFieldBuilder() : null; - } else { - childBuilder_.addAllMessages(other.child_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonar.batch.protocol.output.BatchReport.ModuleDependencies.ModuleDependency parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonar.batch.protocol.output.BatchReport.ModuleDependencies.ModuleDependency) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object key_ = ""; - /** - * optional string key = 1; - */ - public boolean hasKey() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string key = 1; - */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - key_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string key = 1; - */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string key = 1; - */ - public Builder setKey( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - key_ = value; - onChanged(); - return this; - } - /** - * optional string key = 1; - */ - public Builder clearKey() { - bitField0_ = (bitField0_ & ~0x00000001); - key_ = getDefaultInstance().getKey(); - onChanged(); - return this; - } - /** - * optional string key = 1; - */ - public Builder setKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - key_ = value; - onChanged(); - return this; - } - - private java.lang.Object version_ = ""; - /** - * optional string version = 2; - */ - public boolean hasVersion() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string version = 2; - */ - public java.lang.String getVersion() { - java.lang.Object ref = version_; - 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()) { - version_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string version = 2; - */ - public com.google.protobuf.ByteString - getVersionBytes() { - java.lang.Object ref = version_; - if (ref instanceof String) { - 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 = 2; - */ - public Builder setVersion( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - version_ = value; - onChanged(); - return this; - } - /** - * optional string version = 2; - */ - public Builder clearVersion() { - bitField0_ = (bitField0_ & ~0x00000002); - version_ = getDefaultInstance().getVersion(); - onChanged(); - return this; - } - /** - * optional string version = 2; - */ - public Builder setVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - version_ = value; - onChanged(); - return this; - } - - private java.lang.Object scope_ = ""; - /** - * optional string scope = 3; - */ - public boolean hasScope() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional string scope = 3; - */ - public java.lang.String getScope() { - java.lang.Object ref = scope_; - 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()) { - scope_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string scope = 3; - */ - public com.google.protobuf.ByteString - getScopeBytes() { - java.lang.Object ref = scope_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - scope_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string scope = 3; - */ - public Builder setScope( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - scope_ = value; - onChanged(); - return this; - } - /** - * optional string scope = 3; - */ - public Builder clearScope() { - bitField0_ = (bitField0_ & ~0x00000004); - scope_ = getDefaultInstance().getScope(); - onChanged(); - return this; - } - /** - * optional string scope = 3; - */ - public Builder setScopeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - scope_ = value; - onChanged(); - return this; - } - - private java.util.List child_ = - java.util.Collections.emptyList(); - private void ensureChildIsMutable() { - if (!((bitField0_ & 0x00000008) == 0x00000008)) { - child_ = new java.util.ArrayList(child_); - bitField0_ |= 0x00000008; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - org.sonar.batch.protocol.output.BatchReport.ModuleDependencies.ModuleDependency, org.sonar.batch.protocol.output.BatchReport.ModuleDependencies.ModuleDependency.Builder, org.sonar.batch.protocol.output.BatchReport.ModuleDependencies.ModuleDependencyOrBuilder> childBuilder_; - - /** - * repeated .ModuleDependencies.ModuleDependency child = 4; - */ - public java.util.List getChildList() { - if (childBuilder_ == null) { - return java.util.Collections.unmodifiableList(child_); - } else { - return childBuilder_.getMessageList(); - } - } - /** - * repeated .ModuleDependencies.ModuleDependency child = 4; - */ - public int getChildCount() { - if (childBuilder_ == null) { - return child_.size(); - } else { - return childBuilder_.getCount(); - } - } - /** - * repeated .ModuleDependencies.ModuleDependency child = 4; - */ - public org.sonar.batch.protocol.output.BatchReport.ModuleDependencies.ModuleDependency getChild(int index) { - if (childBuilder_ == null) { - return child_.get(index); - } else { - return childBuilder_.getMessage(index); - } - } - /** - * repeated .ModuleDependencies.ModuleDependency child = 4; - */ - public Builder setChild( - int index, org.sonar.batch.protocol.output.BatchReport.ModuleDependencies.ModuleDependency value) { - if (childBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureChildIsMutable(); - child_.set(index, value); - onChanged(); - } else { - childBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .ModuleDependencies.ModuleDependency child = 4; - */ - public Builder setChild( - int index, org.sonar.batch.protocol.output.BatchReport.ModuleDependencies.ModuleDependency.Builder builderForValue) { - if (childBuilder_ == null) { - ensureChildIsMutable(); - child_.set(index, builderForValue.build()); - onChanged(); - } else { - childBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .ModuleDependencies.ModuleDependency child = 4; - */ - public Builder addChild(org.sonar.batch.protocol.output.BatchReport.ModuleDependencies.ModuleDependency value) { - if (childBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureChildIsMutable(); - child_.add(value); - onChanged(); - } else { - childBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .ModuleDependencies.ModuleDependency child = 4; - */ - public Builder addChild( - int index, org.sonar.batch.protocol.output.BatchReport.ModuleDependencies.ModuleDependency value) { - if (childBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureChildIsMutable(); - child_.add(index, value); - onChanged(); - } else { - childBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .ModuleDependencies.ModuleDependency child = 4; - */ - public Builder addChild( - org.sonar.batch.protocol.output.BatchReport.ModuleDependencies.ModuleDependency.Builder builderForValue) { - if (childBuilder_ == null) { - ensureChildIsMutable(); - child_.add(builderForValue.build()); - onChanged(); - } else { - childBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .ModuleDependencies.ModuleDependency child = 4; - */ - public Builder addChild( - int index, org.sonar.batch.protocol.output.BatchReport.ModuleDependencies.ModuleDependency.Builder builderForValue) { - if (childBuilder_ == null) { - ensureChildIsMutable(); - child_.add(index, builderForValue.build()); - onChanged(); - } else { - childBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .ModuleDependencies.ModuleDependency child = 4; - */ - public Builder addAllChild( - java.lang.Iterable values) { - if (childBuilder_ == null) { - ensureChildIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, child_); - onChanged(); - } else { - childBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .ModuleDependencies.ModuleDependency child = 4; - */ - public Builder clearChild() { - if (childBuilder_ == null) { - child_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - } else { - childBuilder_.clear(); - } - return this; - } - /** - * repeated .ModuleDependencies.ModuleDependency child = 4; - */ - public Builder removeChild(int index) { - if (childBuilder_ == null) { - ensureChildIsMutable(); - child_.remove(index); - onChanged(); - } else { - childBuilder_.remove(index); - } - return this; - } - /** - * repeated .ModuleDependencies.ModuleDependency child = 4; - */ - public org.sonar.batch.protocol.output.BatchReport.ModuleDependencies.ModuleDependency.Builder getChildBuilder( - int index) { - return getChildFieldBuilder().getBuilder(index); - } - /** - * repeated .ModuleDependencies.ModuleDependency child = 4; - */ - public org.sonar.batch.protocol.output.BatchReport.ModuleDependencies.ModuleDependencyOrBuilder getChildOrBuilder( - int index) { - if (childBuilder_ == null) { - return child_.get(index); } else { - return childBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .ModuleDependencies.ModuleDependency child = 4; - */ - public java.util.List - getChildOrBuilderList() { - if (childBuilder_ != null) { - return childBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(child_); - } - } - /** - * repeated .ModuleDependencies.ModuleDependency child = 4; - */ - public org.sonar.batch.protocol.output.BatchReport.ModuleDependencies.ModuleDependency.Builder addChildBuilder() { - return getChildFieldBuilder().addBuilder( - org.sonar.batch.protocol.output.BatchReport.ModuleDependencies.ModuleDependency.getDefaultInstance()); - } - /** - * repeated .ModuleDependencies.ModuleDependency child = 4; - */ - public org.sonar.batch.protocol.output.BatchReport.ModuleDependencies.ModuleDependency.Builder addChildBuilder( - int index) { - return getChildFieldBuilder().addBuilder( - index, org.sonar.batch.protocol.output.BatchReport.ModuleDependencies.ModuleDependency.getDefaultInstance()); - } - /** - * repeated .ModuleDependencies.ModuleDependency child = 4; - */ - public java.util.List - getChildBuilderList() { - return getChildFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - org.sonar.batch.protocol.output.BatchReport.ModuleDependencies.ModuleDependency, org.sonar.batch.protocol.output.BatchReport.ModuleDependencies.ModuleDependency.Builder, org.sonar.batch.protocol.output.BatchReport.ModuleDependencies.ModuleDependencyOrBuilder> - getChildFieldBuilder() { - if (childBuilder_ == null) { - childBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - org.sonar.batch.protocol.output.BatchReport.ModuleDependencies.ModuleDependency, org.sonar.batch.protocol.output.BatchReport.ModuleDependencies.ModuleDependency.Builder, org.sonar.batch.protocol.output.BatchReport.ModuleDependencies.ModuleDependencyOrBuilder>( - child_, - ((bitField0_ & 0x00000008) == 0x00000008), - getParentForChildren(), - isClean()); - child_ = null; - } - return childBuilder_; - } - - // @@protoc_insertion_point(builder_scope:ModuleDependencies.ModuleDependency) - } - - static { - defaultInstance = new ModuleDependency(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:ModuleDependencies.ModuleDependency) - } - - public static final int DEP_FIELD_NUMBER = 1; - private java.util.List dep_; - /** - * repeated .ModuleDependencies.ModuleDependency dep = 1; - */ - public java.util.List getDepList() { - return dep_; - } - /** - * repeated .ModuleDependencies.ModuleDependency dep = 1; - */ - public java.util.List - getDepOrBuilderList() { - return dep_; - } - /** - * repeated .ModuleDependencies.ModuleDependency dep = 1; - */ - public int getDepCount() { - return dep_.size(); - } - /** - * repeated .ModuleDependencies.ModuleDependency dep = 1; - */ - public org.sonar.batch.protocol.output.BatchReport.ModuleDependencies.ModuleDependency getDep(int index) { - return dep_.get(index); - } - /** - * repeated .ModuleDependencies.ModuleDependency dep = 1; - */ - public org.sonar.batch.protocol.output.BatchReport.ModuleDependencies.ModuleDependencyOrBuilder getDepOrBuilder( - int index) { - return dep_.get(index); - } - - private void initFields() { - dep_ = 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; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - for (int i = 0; i < dep_.size(); i++) { - output.writeMessage(1, dep_.get(i)); - } - getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < dep_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, dep_.get(i)); - } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - protected java.lang.Object writeReplace() - throws java.io.ObjectStreamException { - return super.writeReplace(); - } - - public static org.sonar.batch.protocol.output.BatchReport.ModuleDependencies parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonar.batch.protocol.output.BatchReport.ModuleDependencies parseFrom( - 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.ModuleDependencies parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonar.batch.protocol.output.BatchReport.ModuleDependencies parseFrom( - 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.ModuleDependencies parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonar.batch.protocol.output.BatchReport.ModuleDependencies parseFrom( - 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.ModuleDependencies parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonar.batch.protocol.output.BatchReport.ModuleDependencies parseDelimitedFrom( - 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.ModuleDependencies parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonar.batch.protocol.output.BatchReport.ModuleDependencies parseFrom( - 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(org.sonar.batch.protocol.output.BatchReport.ModuleDependencies prototype) { - return newBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { return newBuilder(this); } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code ModuleDependencies} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:ModuleDependencies) - org.sonar.batch.protocol.output.BatchReport.ModuleDependenciesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonar.batch.protocol.output.BatchReport.internal_static_ModuleDependencies_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonar.batch.protocol.output.BatchReport.internal_static_ModuleDependencies_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.batch.protocol.output.BatchReport.ModuleDependencies.class, org.sonar.batch.protocol.output.BatchReport.ModuleDependencies.Builder.class); - } - - // Construct using org.sonar.batch.protocol.output.BatchReport.ModuleDependencies.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getDepFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } - - public Builder clear() { - super.clear(); - if (depBuilder_ == null) { - dep_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - depBuilder_.clear(); - } - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonar.batch.protocol.output.BatchReport.internal_static_ModuleDependencies_descriptor; - } - - public org.sonar.batch.protocol.output.BatchReport.ModuleDependencies getDefaultInstanceForType() { - return org.sonar.batch.protocol.output.BatchReport.ModuleDependencies.getDefaultInstance(); - } - - public org.sonar.batch.protocol.output.BatchReport.ModuleDependencies build() { - org.sonar.batch.protocol.output.BatchReport.ModuleDependencies result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonar.batch.protocol.output.BatchReport.ModuleDependencies buildPartial() { - org.sonar.batch.protocol.output.BatchReport.ModuleDependencies result = new org.sonar.batch.protocol.output.BatchReport.ModuleDependencies(this); - int from_bitField0_ = bitField0_; - if (depBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - dep_ = java.util.Collections.unmodifiableList(dep_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.dep_ = dep_; - } else { - result.dep_ = depBuilder_.build(); - } - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonar.batch.protocol.output.BatchReport.ModuleDependencies) { - return mergeFrom((org.sonar.batch.protocol.output.BatchReport.ModuleDependencies)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonar.batch.protocol.output.BatchReport.ModuleDependencies other) { - if (other == org.sonar.batch.protocol.output.BatchReport.ModuleDependencies.getDefaultInstance()) return this; - if (depBuilder_ == null) { - if (!other.dep_.isEmpty()) { - if (dep_.isEmpty()) { - dep_ = other.dep_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureDepIsMutable(); - dep_.addAll(other.dep_); - } - onChanged(); - } - } else { - if (!other.dep_.isEmpty()) { - if (depBuilder_.isEmpty()) { - depBuilder_.dispose(); - depBuilder_ = null; - dep_ = other.dep_; - bitField0_ = (bitField0_ & ~0x00000001); - depBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getDepFieldBuilder() : null; - } else { - depBuilder_.addAllMessages(other.dep_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonar.batch.protocol.output.BatchReport.ModuleDependencies parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonar.batch.protocol.output.BatchReport.ModuleDependencies) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List dep_ = - java.util.Collections.emptyList(); - private void ensureDepIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - dep_ = new java.util.ArrayList(dep_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - org.sonar.batch.protocol.output.BatchReport.ModuleDependencies.ModuleDependency, org.sonar.batch.protocol.output.BatchReport.ModuleDependencies.ModuleDependency.Builder, org.sonar.batch.protocol.output.BatchReport.ModuleDependencies.ModuleDependencyOrBuilder> depBuilder_; /** - * repeated .ModuleDependencies.ModuleDependency dep = 1; - */ - public java.util.List getDepList() { - if (depBuilder_ == null) { - return java.util.Collections.unmodifiableList(dep_); - } else { - return depBuilder_.getMessageList(); - } - } - /** - * repeated .ModuleDependencies.ModuleDependency dep = 1; - */ - public int getDepCount() { - if (depBuilder_ == null) { - return dep_.size(); - } else { - return depBuilder_.getCount(); - } - } - /** - * repeated .ModuleDependencies.ModuleDependency dep = 1; - */ - public org.sonar.batch.protocol.output.BatchReport.ModuleDependencies.ModuleDependency getDep(int index) { - if (depBuilder_ == null) { - return dep_.get(index); - } else { - return depBuilder_.getMessage(index); - } - } - /** - * repeated .ModuleDependencies.ModuleDependency dep = 1; - */ - public Builder setDep( - int index, org.sonar.batch.protocol.output.BatchReport.ModuleDependencies.ModuleDependency value) { - if (depBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDepIsMutable(); - dep_.set(index, value); - onChanged(); - } else { - depBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .ModuleDependencies.ModuleDependency dep = 1; - */ - public Builder setDep( - int index, org.sonar.batch.protocol.output.BatchReport.ModuleDependencies.ModuleDependency.Builder builderForValue) { - if (depBuilder_ == null) { - ensureDepIsMutable(); - dep_.set(index, builderForValue.build()); - onChanged(); - } else { - depBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .ModuleDependencies.ModuleDependency dep = 1; - */ - public Builder addDep(org.sonar.batch.protocol.output.BatchReport.ModuleDependencies.ModuleDependency value) { - if (depBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDepIsMutable(); - dep_.add(value); - onChanged(); - } else { - depBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .ModuleDependencies.ModuleDependency dep = 1; - */ - public Builder addDep( - int index, org.sonar.batch.protocol.output.BatchReport.ModuleDependencies.ModuleDependency value) { - if (depBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDepIsMutable(); - dep_.add(index, value); - onChanged(); - } else { - depBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .ModuleDependencies.ModuleDependency dep = 1; - */ - public Builder addDep( - org.sonar.batch.protocol.output.BatchReport.ModuleDependencies.ModuleDependency.Builder builderForValue) { - if (depBuilder_ == null) { - ensureDepIsMutable(); - dep_.add(builderForValue.build()); - onChanged(); - } else { - depBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .ModuleDependencies.ModuleDependency dep = 1; - */ - public Builder addDep( - int index, org.sonar.batch.protocol.output.BatchReport.ModuleDependencies.ModuleDependency.Builder builderForValue) { - if (depBuilder_ == null) { - ensureDepIsMutable(); - dep_.add(index, builderForValue.build()); - onChanged(); - } else { - depBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .ModuleDependencies.ModuleDependency dep = 1; - */ - public Builder addAllDep( - java.lang.Iterable values) { - if (depBuilder_ == null) { - ensureDepIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, dep_); - onChanged(); - } else { - depBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .ModuleDependencies.ModuleDependency dep = 1; - */ - public Builder clearDep() { - if (depBuilder_ == null) { - dep_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - depBuilder_.clear(); - } - return this; - } - /** - * repeated .ModuleDependencies.ModuleDependency dep = 1; - */ - public Builder removeDep(int index) { - if (depBuilder_ == null) { - ensureDepIsMutable(); - dep_.remove(index); - onChanged(); - } else { - depBuilder_.remove(index); - } - return this; - } - /** - * repeated .ModuleDependencies.ModuleDependency dep = 1; - */ - public org.sonar.batch.protocol.output.BatchReport.ModuleDependencies.ModuleDependency.Builder getDepBuilder( - int index) { - return getDepFieldBuilder().getBuilder(index); - } - /** - * repeated .ModuleDependencies.ModuleDependency dep = 1; - */ - public org.sonar.batch.protocol.output.BatchReport.ModuleDependencies.ModuleDependencyOrBuilder getDepOrBuilder( - int index) { - if (depBuilder_ == null) { - return dep_.get(index); } else { - return depBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .ModuleDependencies.ModuleDependency dep = 1; - */ - public java.util.List - getDepOrBuilderList() { - if (depBuilder_ != null) { - return depBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(dep_); - } - } - /** - * repeated .ModuleDependencies.ModuleDependency dep = 1; - */ - public org.sonar.batch.protocol.output.BatchReport.ModuleDependencies.ModuleDependency.Builder addDepBuilder() { - return getDepFieldBuilder().addBuilder( - org.sonar.batch.protocol.output.BatchReport.ModuleDependencies.ModuleDependency.getDefaultInstance()); - } - /** - * repeated .ModuleDependencies.ModuleDependency dep = 1; + * repeated .CoverageDetail.CoveredFile covered_file = 2; */ - public org.sonar.batch.protocol.output.BatchReport.ModuleDependencies.ModuleDependency.Builder addDepBuilder( - int index) { - return getDepFieldBuilder().addBuilder( - index, org.sonar.batch.protocol.output.BatchReport.ModuleDependencies.ModuleDependency.getDefaultInstance()); + public org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFile.Builder addCoveredFileBuilder( + int index) { + return getCoveredFileFieldBuilder().addBuilder( + index, org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFile.getDefaultInstance()); } + /** - * repeated .ModuleDependencies.ModuleDependency dep = 1; + * repeated .CoverageDetail.CoveredFile covered_file = 2; */ - public java.util.List - getDepBuilderList() { - return getDepFieldBuilder().getBuilderList(); + public java.util.List + getCoveredFileBuilderList() { + return getCoveredFileFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilder< - org.sonar.batch.protocol.output.BatchReport.ModuleDependencies.ModuleDependency, org.sonar.batch.protocol.output.BatchReport.ModuleDependencies.ModuleDependency.Builder, org.sonar.batch.protocol.output.BatchReport.ModuleDependencies.ModuleDependencyOrBuilder> - getDepFieldBuilder() { - if (depBuilder_ == null) { - depBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - org.sonar.batch.protocol.output.BatchReport.ModuleDependencies.ModuleDependency, org.sonar.batch.protocol.output.BatchReport.ModuleDependencies.ModuleDependency.Builder, org.sonar.batch.protocol.output.BatchReport.ModuleDependencies.ModuleDependencyOrBuilder>( - dep_, - ((bitField0_ & 0x00000001) == 0x00000001), - getParentForChildren(), - isClean()); - dep_ = null; + 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()); + coveredFile_ = null; } - return depBuilder_; + return coveredFileBuilder_; } - // @@protoc_insertion_point(builder_scope:ModuleDependencies) + // @@protoc_insertion_point(builder_scope:CoverageDetail) } static { - defaultInstance = new ModuleDependencies(true); + defaultInstance = new CoverageDetail(true); defaultInstance.initFields(); } - // @@protoc_insertion_point(class_scope:ModuleDependencies) + // @@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_FileDependency_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_FileDependency_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ModuleDependencies_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_ModuleDependencies_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ModuleDependencies_ModuleDependency_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_ModuleDependencies_ModuleDependency_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\"\262\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(", + "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", + "\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", + "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", + "\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@", + "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", + "\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\001\"5\n\016FileDependency\022\023\n\013t" + - "o_file_ref\030\001 \001(\005\022\016\n\006weight\030\002 \001(\005\"\275\001\n\022Mod" + - "uleDependencies\0221\n\003dep\030\001 \003(\0132$.ModuleDep" + - "endencies.ModuleDependency\032t\n\020ModuleDepe" + - "ndency\022\013\n\003key\030\001 \001(\t\022\017\n\007version\030\002 \001(\t\022\r\n\005" + - "scope\030\003 \001(\t\0223\n\005child\030\004 \003(\0132$.ModuleDepen", - "dencies.ModuleDependencyB#\n\037org.sonar.ba" + - "tch.protocol.outputH\001" + "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" }; 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", "Id", "SnapshotId", "Uuid", + "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", }); - internal_static_FileDependency_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_FileDependency_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_FileDependency_descriptor, - new java.lang.String[] { "ToFileRef", "Weight", }); - internal_static_ModuleDependencies_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_ModuleDependencies_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_ModuleDependencies_descriptor, - new java.lang.String[] { "Dep", }); - internal_static_ModuleDependencies_ModuleDependency_descriptor = - internal_static_ModuleDependencies_descriptor.getNestedTypes().get(0); - internal_static_ModuleDependencies_ModuleDependency_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_ModuleDependencies_ModuleDependency_descriptor, - new java.lang.String[] { "Key", "Version", "Scope", "Child", }); + new java.lang.String[] {"FileRef", "CoveredLine",}); org.sonar.batch.protocol.Constants.getDescriptor(); } diff --git a/sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/output/BatchReportReader.java b/sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/output/BatchReportReader.java index 4b56dcc43eb..c41ce080065 100644 --- a/sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/output/BatchReportReader.java +++ b/sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/output/BatchReportReader.java @@ -161,25 +161,6 @@ public class BatchReportReader { return null; } - @CheckForNull - public File readFileDependencies(int fileRef) { - File file = fileStructure.fileFor(FileStructure.Domain.FILE_DEPENDENCIES, fileRef); - if (doesFileExists(file)) { - return file; - } - return null; - } - - public List readModuleDependencies(int componentRef) { - File file = fileStructure.fileFor(FileStructure.Domain.MODULE_DEPENDENCIES, componentRef); - if (doesFileExists(file)) { - // all the module dependencies are loaded in memory - BatchReport.ModuleDependencies dependencies = ProtobufUtil.readFile(file, BatchReport.ModuleDependencies.PARSER); - return dependencies.getDepList(); - } - return Collections.emptyList(); - } - private boolean doesFileExists(File file) { return file.exists() && file.isFile(); } diff --git a/sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/output/BatchReportWriter.java b/sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/output/BatchReportWriter.java index 9bfa1e5cad0..9a58c825c0b 100644 --- a/sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/output/BatchReportWriter.java +++ b/sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/output/BatchReportWriter.java @@ -125,23 +125,6 @@ public class BatchReportWriter { ProtobufUtil.writeMessagesToFile(tests, file); } - public void writeFileDependencies(int componentRef, Iterable fileDependencies) { - File file = fileStructure.fileFor(FileStructure.Domain.FILE_DEPENDENCIES, componentRef); - ProtobufUtil.writeMessagesToFile(fileDependencies, file); - } - - public void appendFileDependency(int componentRef, BatchReport.FileDependency fileDependency) { - File file = fileStructure.fileFor(FileStructure.Domain.FILE_DEPENDENCIES, componentRef); - ProtobufUtil.appendToFile(fileDependency, file); - } - - public void writeModuleDependencies(int componentRef, Iterable dependencies) { - BatchReport.ModuleDependencies.Builder builder = BatchReport.ModuleDependencies.newBuilder(); - builder.addAllDep(dependencies); - File file = fileStructure.fileFor(FileStructure.Domain.MODULE_DEPENDENCIES, componentRef); - ProtobufUtil.writeToFile(builder.build(), file); - } - public File getSourceFile(int componentRef) { return fileStructure.fileFor(FileStructure.Domain.SOURCE, componentRef); } diff --git a/sonar-batch-protocol/src/main/protobuf/batch_report.proto b/sonar-batch-protocol/src/main/protobuf/batch_report.proto index 3cf17fc3031..bd07b9ac450 100644 --- a/sonar-batch-protocol/src/main/protobuf/batch_report.proto +++ b/sonar-batch-protocol/src/main/protobuf/batch_report.proto @@ -256,19 +256,3 @@ message CoverageDetail { repeated int32 covered_line = 2 [packed = true]; } } - -message FileDependency { - optional int32 to_file_ref = 1; - optional int32 weight = 2; -} - -message ModuleDependencies { - repeated ModuleDependency dep = 1; - message ModuleDependency { - optional string key = 1; - optional string version = 2; - optional string scope = 3; - repeated ModuleDependency child = 4; - } -} - diff --git a/sonar-batch-protocol/src/test/java/org/sonar/batch/protocol/output/BatchReportReaderTest.java b/sonar-batch-protocol/src/test/java/org/sonar/batch/protocol/output/BatchReportReaderTest.java index e01cc0d606c..2738f542088 100644 --- a/sonar-batch-protocol/src/test/java/org/sonar/batch/protocol/output/BatchReportReaderTest.java +++ b/sonar-batch-protocol/src/test/java/org/sonar/batch/protocol/output/BatchReportReaderTest.java @@ -370,53 +370,4 @@ public class BatchReportReaderTest { assertThat(sut.readCoverageDetails(UNKNOWN_COMPONENT_REF)).isNull(); } - @Test - public void read_file_dependencies() throws Exception { - BatchReportWriter writer = new BatchReportWriter(dir); - writer.writeFileDependencies(1, Arrays.asList( - BatchReport.FileDependency.newBuilder() - .setToFileRef(5) - .setWeight(20) - .build() - )); - - try (InputStream inputStream = FileUtils.openInputStream(sut.readFileDependencies(1))) { - BatchReport.FileDependency fileDependency = BatchReport.FileDependency.PARSER.parseDelimitedFrom(inputStream); - assertThat(fileDependency.getToFileRef()).isEqualTo(5); - assertThat(fileDependency.getWeight()).isEqualTo(20); - } - } - - @Test - public void null_if_no_file_dependencies_found() { - assertThat(sut.readFileDependencies(UNKNOWN_COMPONENT_REF)).isNull(); - } - - @Test - public void read_module_dependencies() { - BatchReportWriter writer = new BatchReportWriter(dir); - writer.writeModuleDependencies(1, Arrays.asList(BatchReport.ModuleDependencies.ModuleDependency.newBuilder() - .setKey("PROJECT_1") - .setScope("PRJ") - .setVersion("1.1") - .addChild(BatchReport.ModuleDependencies.ModuleDependency.newBuilder() - .setKey("PROJECT_2") - .setScope("PRJ") - .setVersion("2.2") - .build()) - .build())); - - assertThat(sut.readModuleDependencies(1)).hasSize(1); - BatchReport.ModuleDependencies.ModuleDependency dependency = sut.readModuleDependencies(1).get(0); - assertThat(dependency.getKey()).isEqualTo("PROJECT_1"); - assertThat(dependency.getScope()).isEqualTo("PRJ"); - assertThat(dependency.getVersion()).isEqualTo("1.1"); - assertThat(dependency.getChildList()).hasSize(1); - } - - @Test - public void empty_list_if_no_module_dependencies_found() { - assertThat(sut.readModuleDependencies(UNKNOWN_COMPONENT_REF)).isEmpty(); - } - } 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 b1d0b677efb..aea1e7d6f67 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 @@ -269,7 +269,7 @@ public class BatchReportWriterTest { .build()) .setType(Constants.HighlightingType.ANNOTATION) .build() - )); + )); assertThat(sut.hasComponentData(FileStructure.Domain.SYNTAX_HIGHLIGHTINGS, 1)).isTrue(); } @@ -289,7 +289,7 @@ public class BatchReportWriterTest { .setItCoveredConditions(1) .setOverallCoveredConditions(1) .build() - )); + )); assertThat(sut.hasComponentData(FileStructure.Domain.COVERAGES, 1)).isTrue(); } @@ -300,7 +300,7 @@ public class BatchReportWriterTest { sut.writeTests(1, Arrays.asList( BatchReport.Test.getDefaultInstance() - )); + )); assertThat(sut.hasComponentData(FileStructure.Domain.TESTS, 1)).isTrue(); @@ -312,26 +312,8 @@ public class BatchReportWriterTest { sut.writeCoverageDetails(1, Arrays.asList( BatchReport.CoverageDetail.getDefaultInstance() - )); + )); assertThat(sut.hasComponentData(FileStructure.Domain.COVERAGE_DETAILS, 1)).isTrue(); } - - @Test - public void write_file_dependencies() { - assertThat(sut.hasComponentData(FileStructure.Domain.FILE_DEPENDENCIES, 1)).isFalse(); - - sut.writeFileDependencies(1, Arrays.asList(BatchReport.FileDependency.getDefaultInstance())); - - assertThat(sut.hasComponentData(FileStructure.Domain.FILE_DEPENDENCIES, 1)).isTrue(); - } - - @Test - public void write_module_dependencies() { - assertThat(sut.hasComponentData(FileStructure.Domain.MODULE_DEPENDENCIES, 1)).isFalse(); - - sut.writeModuleDependencies(1, Arrays.asList(BatchReport.ModuleDependencies.ModuleDependency.getDefaultInstance())); - - assertThat(sut.hasComponentData(FileStructure.Domain.MODULE_DEPENDENCIES, 1)).isTrue(); - } }