From 31b625fdf1a0ef6682940e8caf20cb047126e4f1 Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Mon, 3 Aug 2015 23:52:35 +0200 Subject: [PATCH] Improve response of POST api/issues/assign Return the same format as for api/issues/search, except that: - field "issues" is replaced by "issue" - of course there are no facets nor paging - field "languages" is not present (that should be dropped from api/issues/search too) --- .../sonar/server/issue/ws/AssignAction.java | 3 +- .../issue/ws/OperationResponseWriter.java | 2 +- .../sonar/server/issue/ws/Search2Action.java | 4 +- .../server/issue/ws/SearchResponseFormat.java | 93 +- .../server/ws/WsResponseCommonFormat.java | 18 +- .../ws/SearchActionComponentsMediumTest.java | 106 +- .../issue/ws/SearchActionMediumTest.java | 78 +- .../display_file_facet.json | 4 +- .../display_module_facet.json | 4 +- .../display_non_sticky_project_facet.json | 8 +- .../display_sticky_project_facet.json | 4 +- .../issues_on_different_projects.json | 16 +- .../search_by_authors.json | 4 +- .../search_by_developer.json | 8 +- .../search_by_directory_uuid.json | 4 +- .../search_by_file_key.json | 4 +- .../search_by_file_uuid.json | 4 +- .../search_by_project_uuid.json | 4 +- .../search_by_test_key.json | 4 +- .../search_by_view_uuid.json | 4 +- .../assigned_to_me_facet_sticky.json | 2 +- .../display_facets.json | 2 +- .../display_facets_debt.json | 4 +- .../display_zero_facets.json | 4 +- .../filter_by_assigned_to_me.json | 4 +- .../ws/SearchActionMediumTest/hide_rules.json | 4 +- .../issue_on_removed_file.json | 8 +- .../issue_with_action_plan.json | 2 +- ...s_all_fields_except_additional_fields.json | 2 +- .../sort_by_updated_at.json | 12 +- .../gen-java/org/sonarqube/ws/Common.java | 362 +- .../gen-java/org/sonarqube/ws/Issues.java | 4708 +++++++++++------ sonar-ws/src/main/protobuf/ws-common.proto | 7 +- sonar-ws/src/main/protobuf/ws-issues.proto | 86 +- 34 files changed, 3478 insertions(+), 2105 deletions(-) diff --git a/server/sonar-server/src/main/java/org/sonar/server/issue/ws/AssignAction.java b/server/sonar-server/src/main/java/org/sonar/server/issue/ws/AssignAction.java index cdcf0243d35..9be3f1f3edf 100644 --- a/server/sonar-server/src/main/java/org/sonar/server/issue/ws/AssignAction.java +++ b/server/sonar-server/src/main/java/org/sonar/server/issue/ws/AssignAction.java @@ -54,7 +54,7 @@ public class AssignAction implements IssuesWsAction { .setRequired(true) .setExampleValue("5bccd6e8-f525-43a2-8d76-fcb13dde79ef"); action.createParam("assignee") - // TODO document absent value for unassign, or _me for assigning to me + // TODO document absent value for unassign, and "_me" for assigning to me .setDescription("Login of the assignee") .setExampleValue("admin"); action.createParam("me") @@ -64,7 +64,6 @@ public class AssignAction implements IssuesWsAction { @Override public void handle(Request request, Response response) throws Exception { - String assignee = request.param("assignee"); if ("_me".equals(assignee) || BooleanUtils.isTrue(request.paramAsBoolean("me"))) { // Permission is currently checked by IssueService. We still diff --git a/server/sonar-server/src/main/java/org/sonar/server/issue/ws/OperationResponseWriter.java b/server/sonar-server/src/main/java/org/sonar/server/issue/ws/OperationResponseWriter.java index 13d3bbe0a77..562119b7bd1 100644 --- a/server/sonar-server/src/main/java/org/sonar/server/issue/ws/OperationResponseWriter.java +++ b/server/sonar-server/src/main/java/org/sonar/server/issue/ws/OperationResponseWriter.java @@ -42,7 +42,7 @@ public class OperationResponseWriter { ALL_ADDITIONAL_FIELDS, singletonList(issueKey)); SearchResponseData data = loader.load(collector, null); - Issues.Search responseBody = this.format.format(ALL_ADDITIONAL_FIELDS, data, null, null); + Issues.Operation responseBody = this.format.formatOperation(data); WsUtils.writeProtobuf(responseBody, request, response); } diff --git a/server/sonar-server/src/main/java/org/sonar/server/issue/ws/Search2Action.java b/server/sonar-server/src/main/java/org/sonar/server/issue/ws/Search2Action.java index 7b49c1c3ad2..48c81ea8d5c 100644 --- a/server/sonar-server/src/main/java/org/sonar/server/issue/ws/Search2Action.java +++ b/server/sonar-server/src/main/java/org/sonar/server/issue/ws/Search2Action.java @@ -58,7 +58,7 @@ public class Search2Action implements IssuesWsAction { private static final String INTERNAL_PARAMETER_DISCLAIMER = "This parameter is mostly used by the Issues page, please prefer usage of the componentKeys parameter. "; public static final String ADDITIONAL_FIELDS = "additionalFields"; - public static final String SEARCH_ACTION = "search2"; + public static final String SEARCH_ACTION = "search"; private final UserSession userSession; private final IssueService service; @@ -256,7 +256,7 @@ public class Search2Action implements IssuesWsAction { // FIXME allow long in Paging Paging paging = Paging.create(options.getLimit(), options.getPage(), (int) result.getTotal()); - Issues.Search responseBody = searchResponseFormat.format(additionalFields, data, paging, facets); + Issues.Search responseBody = searchResponseFormat.formatSearch(additionalFields, data, paging, facets); WsUtils.writeProtobuf(responseBody, request, response); } diff --git a/server/sonar-server/src/main/java/org/sonar/server/issue/ws/SearchResponseFormat.java b/server/sonar-server/src/main/java/org/sonar/server/issue/ws/SearchResponseFormat.java index 29c1a79b398..c79e7e152cb 100644 --- a/server/sonar-server/src/main/java/org/sonar/server/issue/ws/SearchResponseFormat.java +++ b/server/sonar-server/src/main/java/org/sonar/server/issue/ws/SearchResponseFormat.java @@ -19,6 +19,7 @@ */ package org.sonar.server.issue.ws; +import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import java.util.Date; @@ -60,34 +61,51 @@ public class SearchResponseFormat { this.languages = languages; } - public Issues.Search format(Set fields, SearchResponseData data, - @Nullable Paging paging, @Nullable Facets facets) { + public Issues.Search formatSearch(Set fields, SearchResponseData data, + Paging paging, @Nullable Facets facets) { Issues.Search.Builder response = Issues.Search.newBuilder(); - if (paging != null) { - formatPaging(paging, response); - } + formatPaging(paging, response); formatDebtTotal(data, response); - formatIssues(fields, data, response); - formatComponents(data, response); + response.addAllIssues(formatIssues(fields, data)); + response.addAllComponents(formatComponents(data)); if (facets != null) { formatFacets(facets, response); } if (fields.contains(SearchAdditionalField.RULES)) { - formatRules(data, response); + response.setRulesPresentIfEmpty(true); + response.addAllRules(formatRules(data)); } if (fields.contains(SearchAdditionalField.USERS)) { - formatUsers(data, response); + response.setUsersPresentIfEmpty(true); + response.addAllUsers(formatUsers(data)); } if (fields.contains(SearchAdditionalField.ACTION_PLANS)) { - formatActionPlans(data, response); + response.setActionPlansPresentIfEmpty(true); + response.addAllActionPlans(formatActionPlans(data)); } if (fields.contains(SearchAdditionalField.LANGUAGES)) { - formatLanguages(response); + response.setLanguagesPresentIfEmpty(true); + response.addAllLanguages(formatLanguages()); } return response.build(); } + public Issues.Operation formatOperation(SearchResponseData data) { + Issues.Operation.Builder response = Issues.Operation.newBuilder(); + + if (data.getIssues().size() == 1) { + Issues.Issue.Builder issueBuilder = Issues.Issue.newBuilder(); + formatIssue(issueBuilder, data.getIssues().get(0), data); + response.setIssue(issueBuilder.build()); + } + response.addAllComponents(formatComponents(data)); + response.addAllRules(formatRules(data)); + response.addAllUsers(formatUsers(data)); + response.addAllActionPlans(formatActionPlans(data)); + return response.build(); + } + private void formatDebtTotal(SearchResponseData data, Issues.Search.Builder response) { Long debt = data.getDebtTotal(); if (debt != null) { @@ -102,7 +120,8 @@ public class SearchResponseFormat { response.setPaging(commonFormat.formatPaging(paging)); } - private void formatIssues(Set fields, SearchResponseData data, Issues.Search.Builder response) { + private List formatIssues(Set fields, SearchResponseData data) { + List result = new ArrayList<>(); Issues.Issue.Builder issueBuilder = Issues.Issue.newBuilder(); for (IssueDto dto : data.getIssues()) { issueBuilder.clear(); @@ -117,20 +136,25 @@ public class SearchResponseFormat { formatIssueComments(data, issueBuilder, dto); } // TODO attributes - response.addIssues(issueBuilder.build()); + result.add(issueBuilder.build()); } + return result; } private void formatIssue(Issues.Issue.Builder issueBuilder, IssueDto dto, SearchResponseData data) { issueBuilder.setKey(dto.getKey()); ComponentDto component = data.getComponentByUuid(dto.getComponentUuid()); - issueBuilder.setComponent(dto.getComponentUuid()); - // Only used for the compatibility with the Issues Java WS Client <= 4.4 used by Eclipse + issueBuilder.setComponent(dto.getComponentKey()); + // Only used for the compatibility with the Java WS Client <= 4.4 used by Eclipse issueBuilder.setComponentId(component.getId()); ComponentDto project = data.getComponentByUuid(dto.getProjectUuid()); if (project != null) { - issueBuilder.setProject(project.uuid()); + issueBuilder.setProject(project.getKey()); + } + ComponentDto subProject = data.getComponentByUuid(dto.getModuleUuid()); + if (subProject != null) { + issueBuilder.setSubProject(subProject.getKey()); } issueBuilder.setRule(dto.getRuleKey().toString()); issueBuilder.setSeverity(Common.Severity.valueOf(dto.getSeverity())); @@ -205,38 +229,41 @@ public class SearchResponseFormat { } } - private void formatRules(SearchResponseData data, Issues.Search.Builder response) { - response.setRulesPresentIfEmpty(true); + private List formatRules(SearchResponseData data) { + List result = new ArrayList<>(); List rules = data.getRules(); if (rules != null) { for (RuleDto rule : rules) { - response.addRules(commonFormat.formatRule(rule)); + result.add(commonFormat.formatRule(rule).build()); } } + return result; } - private void formatComponents(SearchResponseData data, Issues.Search.Builder response) { - response.setComponentsPresentIfEmpty(true); + private List formatComponents(SearchResponseData data) { + List result = new ArrayList<>(); Collection components = data.getComponents(); if (components != null) { for (ComponentDto dto : components) { - response.addComponents(commonFormat.formatComponent(dto)); + result.add(commonFormat.formatComponent(dto).build()); } } + return result; } - private void formatUsers(SearchResponseData data, Issues.Search.Builder response) { - response.setUsersPresentIfEmpty(true); + private List formatUsers(SearchResponseData data) { + List result = new ArrayList<>(); List users = data.getUsers(); if (users != null) { for (UserDto user : users) { - response.addUsers(commonFormat.formatUser(user)); + result.add(commonFormat.formatUser(user).build()); } } + return result; } - private void formatActionPlans(SearchResponseData data, Issues.Search.Builder response) { - response.setActionPlansPresentIfEmpty(true); + private List formatActionPlans(SearchResponseData data) { + List result = new ArrayList<>(); List actionPlans = data.getActionPlans(); if (actionPlans != null) { Issues.ActionPlan.Builder planBuilder = Issues.ActionPlan.newBuilder(); @@ -246,26 +273,28 @@ public class SearchResponseFormat { .setKey(actionPlan.getKey()) .setName(nullToEmpty(actionPlan.getName())) .setStatus(nullToEmpty(actionPlan.getStatus())) - .setProject(nullToEmpty(actionPlan.getProjectUuid())); + .setProject(nullToEmpty(actionPlan.getProjectKey())); Date deadLine = actionPlan.getDeadLine(); if (deadLine != null) { planBuilder.setDeadLine(DateUtils.formatDateTime(deadLine)); } - response.addActionPlans(planBuilder.build()); + result.add(planBuilder.build()); } } + return result; } - private void formatLanguages(Issues.Search.Builder response) { - response.setLanguagesPresentIfEmpty(true); + private List formatLanguages() { + List result = new ArrayList<>(); Issues.Language.Builder builder = Issues.Language.newBuilder(); for (Language lang : languages.all()) { builder .clear() .setKey(lang.getKey()) .setName(lang.getName()); - response.addLanguages(builder.build()); + result.add(builder.build()); } + return result; } private void formatFacets(Facets facets, Issues.Search.Builder response) { diff --git a/server/sonar-server/src/main/java/org/sonar/server/ws/WsResponseCommonFormat.java b/server/sonar-server/src/main/java/org/sonar/server/ws/WsResponseCommonFormat.java index 04fc387b615..519a81d20cd 100644 --- a/server/sonar-server/src/main/java/org/sonar/server/ws/WsResponseCommonFormat.java +++ b/server/sonar-server/src/main/java/org/sonar/server/ws/WsResponseCommonFormat.java @@ -26,11 +26,9 @@ import org.sonar.api.utils.Paging; import org.sonar.db.component.ComponentDto; import org.sonar.db.rule.RuleDto; import org.sonar.db.user.UserDto; -import org.sonar.markdown.Markdown; import org.sonarqube.ws.Common; import static com.google.common.base.Strings.nullToEmpty; -import static java.lang.String.format; public class WsResponseCommonFormat { @@ -51,7 +49,7 @@ public class WsResponseCommonFormat { public Common.Rule.Builder formatRule(RuleDto rule) { Common.Rule.Builder builder = Common.Rule.newBuilder() .setKey(rule.getKey().toString()) - .setDesc(nullToEmpty(rule.getDescription())) + .setName(nullToEmpty(rule.getName())) .setStatus(Common.RuleStatus.valueOf(rule.getStatus().name())); builder.setLang(nullToEmpty(rule.getLanguage())); @@ -59,20 +57,6 @@ public class WsResponseCommonFormat { if (lang != null) { builder.setLangName(lang.getName()); } - - String desc = rule.getDescription(); - if (desc != null) { - switch (rule.getDescriptionFormat()) { - case HTML: - builder.setDesc(desc); - break; - case MARKDOWN: - builder.setDesc(Markdown.convertToHtml(desc)); - break; - default: - throw new IllegalArgumentException(format("Unknown description format '%s' on rule '%s'", rule.getDescriptionFormat(), rule.getKey())); - } - } return builder; } diff --git a/server/sonar-server/src/test/java/org/sonar/server/issue/ws/SearchActionComponentsMediumTest.java b/server/sonar-server/src/test/java/org/sonar/server/issue/ws/SearchActionComponentsMediumTest.java index c14fe737f41..e1238e03686 100644 --- a/server/sonar-server/src/test/java/org/sonar/server/issue/ws/SearchActionComponentsMediumTest.java +++ b/server/sonar-server/src/test/java/org/sonar/server/issue/ws/SearchActionComponentsMediumTest.java @@ -83,9 +83,9 @@ public class SearchActionComponentsMediumTest { @Test public void issues_on_different_projects() throws Exception { RuleDto rule = newRule(); - ComponentDto project = insertComponent(ComponentTesting.newProjectDto("P1").setKey("MyProject")); + ComponentDto project = insertComponent(ComponentTesting.newProjectDto("P1").setKey("PK1")); setDefaultProjectPermission(project); - ComponentDto file = insertComponent(ComponentTesting.newFileDto(project, "F1").setKey("MyComponent")); + ComponentDto file = insertComponent(ComponentTesting.newFileDto(project, "F1").setKey("FK1")); IssueDto issue = IssueTesting.newDto(rule, file, project) .setKee("82fd47d4-b650-4037-80bc-7b112bd4eac2") .setStatus("OPEN").setResolution("OPEN") @@ -94,9 +94,9 @@ public class SearchActionComponentsMediumTest { .setIssueUpdateDate(DateUtils.parseDateTime("2017-12-04T00:00:00+0100")); db.issueDao().insert(session, issue); - ComponentDto project2 = insertComponent(ComponentTesting.newProjectDto("P2").setKey("MyProject2")); + ComponentDto project2 = insertComponent(ComponentTesting.newProjectDto("P2").setKey("PK2")); setDefaultProjectPermission(project2); - ComponentDto file2 = insertComponent(ComponentTesting.newFileDto(project2, "F2").setKey("MyComponent2")); + ComponentDto file2 = insertComponent(ComponentTesting.newFileDto(project2, "F2").setKey("FK2")); IssueDto issue2 = IssueTesting.newDto(rule, file2, project2) .setKee("92fd47d4-b650-4037-80bc-7b112bd4eac2") .setStatus("OPEN").setResolution("OPEN") @@ -113,9 +113,9 @@ public class SearchActionComponentsMediumTest { @Test public void search_by_project_uuid() throws Exception { - ComponentDto project = insertComponent(ComponentTesting.newProjectDto("P1").setKey("MyProject")); + ComponentDto project = insertComponent(ComponentTesting.newProjectDto("P1").setKey("PK1")); setDefaultProjectPermission(project); - ComponentDto file = insertComponent(ComponentTesting.newFileDto(project, "F1").setKey("MyComponent")); + ComponentDto file = insertComponent(ComponentTesting.newFileDto(project, "F1").setKey("FK1")); IssueDto issue = IssueTesting.newDto(newRule(), file, project).setKee("82fd47d4-b650-4037-80bc-7b112bd4eac2"); db.issueDao().insert(session, issue); session.commit(); @@ -144,15 +144,15 @@ public class SearchActionComponentsMediumTest { @Test public void project_facet_is_sticky() throws Exception { - ComponentDto project1 = insertComponent(ComponentTesting.newProjectDto("P1").setKey("MyProject1")); - ComponentDto project2 = insertComponent(ComponentTesting.newProjectDto("P2").setKey("MyProject2")); - ComponentDto project3 = insertComponent(ComponentTesting.newProjectDto("P3").setKey("MyProject3")); + ComponentDto project1 = insertComponent(ComponentTesting.newProjectDto("P1").setKey("PK1")); + ComponentDto project2 = insertComponent(ComponentTesting.newProjectDto("P2").setKey("PK2")); + ComponentDto project3 = insertComponent(ComponentTesting.newProjectDto("P3").setKey("PK3")); setDefaultProjectPermission(project1); setDefaultProjectPermission(project2); setDefaultProjectPermission(project3); - ComponentDto file1 = insertComponent(ComponentTesting.newFileDto(project1, "F1").setKey("MyComponent1")); - ComponentDto file2 = insertComponent(ComponentTesting.newFileDto(project2, "F2").setKey("MyComponent2")); - ComponentDto file3 = insertComponent(ComponentTesting.newFileDto(project3, "F3").setKey("MyComponent3")); + ComponentDto file1 = insertComponent(ComponentTesting.newFileDto(project1, "F1").setKey("FK1")); + ComponentDto file2 = insertComponent(ComponentTesting.newFileDto(project2, "F2").setKey("FK2")); + ComponentDto file3 = insertComponent(ComponentTesting.newFileDto(project3, "F3").setKey("FK3")); RuleDto rule = newRule(); IssueDto issue1 = IssueTesting.newDto(rule, file1, project1).setKee("82fd47d4-b650-4037-80bc-7b112bd4eac2"); IssueDto issue2 = IssueTesting.newDto(rule, file2, project2).setKee("2bd4eac2-b650-4037-80bc-7b1182fd47d4"); @@ -170,9 +170,9 @@ public class SearchActionComponentsMediumTest { @Test public void search_by_file_uuid() throws Exception { - ComponentDto project = insertComponent(ComponentTesting.newProjectDto("P1").setKey("MyProject")); + ComponentDto project = insertComponent(ComponentTesting.newProjectDto("P1").setKey("PK1")); setDefaultProjectPermission(project); - ComponentDto file = insertComponent(ComponentTesting.newFileDto(project, "F1").setKey("MyComponent")); + ComponentDto file = insertComponent(ComponentTesting.newFileDto(project, "F1").setKey("FK1")); IssueDto issue = IssueTesting.newDto(newRule(), file, project).setKee("82fd47d4-b650-4037-80bc-7b112bd4eac2"); db.issueDao().insert(session, issue); session.commit(); @@ -201,10 +201,10 @@ public class SearchActionComponentsMediumTest { @Test public void search_by_file_key() throws Exception { - ComponentDto project = insertComponent(ComponentTesting.newProjectDto("P1").setKey("MyProject")); + ComponentDto project = insertComponent(ComponentTesting.newProjectDto("P1").setKey("PK1")); setDefaultProjectPermission(project); - ComponentDto file = insertComponent(ComponentTesting.newFileDto(project, "F1").setKey("MyComponent")); - ComponentDto unitTest = insertComponent(ComponentTesting.newFileDto(project, "F2").setQualifier(Qualifiers.UNIT_TEST_FILE).setKey("MyComponentTest")); + ComponentDto file = insertComponent(ComponentTesting.newFileDto(project, "F1").setKey("FK1")); + ComponentDto unitTest = insertComponent(ComponentTesting.newFileDto(project, "F2").setQualifier(Qualifiers.UNIT_TEST_FILE).setKey("FK2")); RuleDto rule = newRule(); IssueDto issueOnFile = IssueTesting.newDto(rule, file, project).setKee("82fd47d4-b650-4037-80bc-7b112bd4eac2"); IssueDto issueOnTest = IssueTesting.newDto(rule, unitTest, project).setKee("2bd4eac2-b650-4037-80bc-7b1182fd47d4"); @@ -226,11 +226,11 @@ public class SearchActionComponentsMediumTest { @Test public void display_file_facet() throws Exception { - ComponentDto project = insertComponent(ComponentTesting.newProjectDto("P1").setKey("MyProject")); + ComponentDto project = insertComponent(ComponentTesting.newProjectDto("P1").setKey("PK1")); setDefaultProjectPermission(project); - ComponentDto file1 = insertComponent(ComponentTesting.newFileDto(project, "F1").setKey("MyComponent1")); - ComponentDto file2 = insertComponent(ComponentTesting.newFileDto(project, "F2").setKey("MyComponent2")); - ComponentDto file3 = insertComponent(ComponentTesting.newFileDto(project, "F3").setKey("MyComponent3")); + ComponentDto file1 = insertComponent(ComponentTesting.newFileDto(project, "F1").setKey("FK1")); + ComponentDto file2 = insertComponent(ComponentTesting.newFileDto(project, "F2").setKey("FK2")); + ComponentDto file3 = insertComponent(ComponentTesting.newFileDto(project, "F3").setKey("FK3")); RuleDto newRule = newRule(); IssueDto issue1 = IssueTesting.newDto(newRule, file1, project).setKee("82fd47d4-b650-4037-80bc-7b112bd4eac2"); IssueDto issue2 = IssueTesting.newDto(newRule, file2, project).setKee("2bd4eac2-b650-4037-80bc-7b1182fd47d4"); @@ -248,10 +248,10 @@ public class SearchActionComponentsMediumTest { @Test public void search_by_directory_path() throws Exception { - ComponentDto project = insertComponent(ComponentTesting.newProjectDto("P1").setKey("MyProject")); + ComponentDto project = insertComponent(ComponentTesting.newProjectDto("P1").setKey("PK1")); setDefaultProjectPermission(project); ComponentDto directory = insertComponent(ComponentTesting.newDirectory(project, "D1", "src/main/java/dir")); - ComponentDto file = insertComponent(ComponentTesting.newFileDto(project, "F1").setKey("MyComponent").setPath(directory.path() + "/MyComponent.java")); + ComponentDto file = insertComponent(ComponentTesting.newFileDto(project, "F1").setKey("FK1").setPath(directory.path() + "/MyComponent.java")); IssueDto issue = IssueTesting.newDto(newRule(), file, project).setKee("82fd47d4-b650-4037-80bc-7b112bd4eac2"); db.issueDao().insert(session, issue); session.commit(); @@ -280,14 +280,14 @@ public class SearchActionComponentsMediumTest { @Test public void search_by_directory_path_in_different_modules() throws Exception { - ComponentDto project = insertComponent(ComponentTesting.newProjectDto("P1").setKey("MyProject")); + ComponentDto project = insertComponent(ComponentTesting.newProjectDto("P1").setKey("PK1")); setDefaultProjectPermission(project); - ComponentDto module1 = insertComponent(ComponentTesting.newModuleDto("M1", project).setKey("module1")); - ComponentDto module2 = insertComponent(ComponentTesting.newModuleDto("M2", project).setKey("module2")); + ComponentDto module1 = insertComponent(ComponentTesting.newModuleDto("M1", project).setKey("MK1")); + ComponentDto module2 = insertComponent(ComponentTesting.newModuleDto("M2", project).setKey("MK2")); ComponentDto directory1 = insertComponent(ComponentTesting.newDirectory(module1, "D1", "src/main/java/dir")); ComponentDto directory2 = insertComponent(ComponentTesting.newDirectory(module2, "D2", "src/main/java/dir")); - ComponentDto file1 = insertComponent(ComponentTesting.newFileDto(module1, "F1").setKey("module1:MyComponent").setPath(directory1.path() + "/MyComponent.java")); - insertComponent(ComponentTesting.newFileDto(module2, "F2").setKey("module2:MyComponent").setPath(directory2.path() + "/MyComponent.java")); + ComponentDto file1 = insertComponent(ComponentTesting.newFileDto(module1, "F1").setKey("FK1").setPath(directory1.path() + "/MyComponent.java")); + insertComponent(ComponentTesting.newFileDto(module2, "F2").setKey("FK2").setPath(directory2.path() + "/MyComponent.java")); RuleDto rule = newRule(); IssueDto issue1 = IssueTesting.newDto(rule, file1, project).setKee("82fd47d4-b650-4037-80bc-7b112bd4eac2"); db.issueDao().insert(session, issue1); @@ -330,14 +330,14 @@ public class SearchActionComponentsMediumTest { @Test public void display_module_facet() throws Exception { - ComponentDto project = insertComponent(ComponentTesting.newProjectDto("P1").setKey("MyProject")); + ComponentDto project = insertComponent(ComponentTesting.newProjectDto("P1").setKey("PK1")); setDefaultProjectPermission(project); - ComponentDto module = insertComponent(ComponentTesting.newModuleDto("M1", project).setKey("MyModule")); - ComponentDto subModule1 = insertComponent(ComponentTesting.newModuleDto("SUBM1", module).setKey("MySubModule1")); - ComponentDto subModule2 = insertComponent(ComponentTesting.newModuleDto("SUBM2", module).setKey("MySubModule2")); - ComponentDto subModule3 = insertComponent(ComponentTesting.newModuleDto("SUBM3", module).setKey("MySubModule3")); - ComponentDto file1 = insertComponent(ComponentTesting.newFileDto(subModule1, "F1").setKey("MyComponent1")); - ComponentDto file2 = insertComponent(ComponentTesting.newFileDto(subModule2, "F2").setKey("MyComponent2")); + ComponentDto module = insertComponent(ComponentTesting.newModuleDto("M1", project).setKey("MK1")); + ComponentDto subModule1 = insertComponent(ComponentTesting.newModuleDto("SUBM1", module).setKey("SUBMK1")); + ComponentDto subModule2 = insertComponent(ComponentTesting.newModuleDto("SUBM2", module).setKey("SUBMK2")); + ComponentDto subModule3 = insertComponent(ComponentTesting.newModuleDto("SUBM3", module).setKey("SUBMK3")); + ComponentDto file1 = insertComponent(ComponentTesting.newFileDto(subModule1, "F1").setKey("FK1")); + ComponentDto file2 = insertComponent(ComponentTesting.newFileDto(subModule2, "F2").setKey("FK2")); RuleDto newRule = newRule(); IssueDto issue1 = IssueTesting.newDto(newRule, file1, project).setKee("82fd47d4-b650-4037-80bc-7b112bd4eac2"); IssueDto issue2 = IssueTesting.newDto(newRule, file2, project).setKee("2bd4eac2-b650-4037-80bc-7b1182fd47d4"); @@ -355,10 +355,10 @@ public class SearchActionComponentsMediumTest { @Test public void display_directory_facet() throws Exception { - ComponentDto project = insertComponent(ComponentTesting.newProjectDto("P1").setKey("MyProject")); + ComponentDto project = insertComponent(ComponentTesting.newProjectDto("P1").setKey("PK1")); setDefaultProjectPermission(project); ComponentDto directory = insertComponent(ComponentTesting.newDirectory(project, "D1", "src/main/java/dir")); - ComponentDto file = insertComponent(ComponentTesting.newFileDto(project, "F1").setKey("MyComponent").setPath(directory.path() + "/MyComponent.java")); + ComponentDto file = insertComponent(ComponentTesting.newFileDto(project, "F1").setKey("FK1").setPath(directory.path() + "/MyComponent.java")); IssueDto issue = IssueTesting.newDto(newRule(), file, project).setKee("82fd47d4-b650-4037-80bc-7b112bd4eac2"); db.issueDao().insert(session, issue); session.commit(); @@ -374,9 +374,9 @@ public class SearchActionComponentsMediumTest { @Test public void search_by_view_uuid() throws Exception { - ComponentDto project = insertComponent(ComponentTesting.newProjectDto("P1").setKey("MyProject")); + ComponentDto project = insertComponent(ComponentTesting.newProjectDto("P1").setKey("PK1")); setDefaultProjectPermission(project); - ComponentDto file = insertComponent(ComponentTesting.newFileDto(project, "F1").setKey("MyComponent")); + ComponentDto file = insertComponent(ComponentTesting.newFileDto(project, "F1").setKey("FK1")); insertIssue(IssueTesting.newDto(newRule(), file, project).setKee("82fd47d4-b650-4037-80bc-7b112bd4eac2")); ComponentDto view = insertComponent(ComponentTesting.newProjectDto("V1").setQualifier(Qualifiers.VIEW).setKey("MyView")); @@ -393,9 +393,9 @@ public class SearchActionComponentsMediumTest { @Test public void search_by_view_uuid_return_only_authorized_view() throws Exception { - ComponentDto project = insertComponent(ComponentTesting.newProjectDto("P1").setKey("MyProject")); + ComponentDto project = insertComponent(ComponentTesting.newProjectDto("P1").setKey("PK1")); setDefaultProjectPermission(project); - ComponentDto file = insertComponent(ComponentTesting.newFileDto(project, "F1").setKey("MyComponent")); + ComponentDto file = insertComponent(ComponentTesting.newFileDto(project, "F1").setKey("FK1")); insertIssue(IssueTesting.newDto(newRule(), file, project).setKee("82fd47d4-b650-4037-80bc-7b112bd4eac2")); ComponentDto view = insertComponent(ComponentTesting.newProjectDto("V1").setQualifier(Qualifiers.VIEW).setKey("MyView")); @@ -413,9 +413,9 @@ public class SearchActionComponentsMediumTest { @Test public void search_by_sub_view_uuid() throws Exception { - ComponentDto project = insertComponent(ComponentTesting.newProjectDto("P1").setKey("MyProject")); + ComponentDto project = insertComponent(ComponentTesting.newProjectDto("P1").setKey("PK1")); setDefaultProjectPermission(project); - ComponentDto file = insertComponent(ComponentTesting.newFileDto(project, "F1").setKey("MyComponent")); + ComponentDto file = insertComponent(ComponentTesting.newFileDto(project, "F1").setKey("FK1")); insertIssue(IssueTesting.newDto(newRule(), file, project).setKee("82fd47d4-b650-4037-80bc-7b112bd4eac2")); ComponentDto view = insertComponent(ComponentTesting.newProjectDto("V1").setQualifier(Qualifiers.VIEW).setKey("MyView")); @@ -434,9 +434,9 @@ public class SearchActionComponentsMediumTest { @Test public void search_by_sub_view_uuid_return_only_authorized_view() throws Exception { - ComponentDto project = insertComponent(ComponentTesting.newProjectDto("P1").setKey("MyProject")); + ComponentDto project = insertComponent(ComponentTesting.newProjectDto("P1").setKey("PK1")); setDefaultProjectPermission(project); - ComponentDto file = insertComponent(ComponentTesting.newFileDto(project, "F1").setKey("MyComponent")); + ComponentDto file = insertComponent(ComponentTesting.newFileDto(project, "F1").setKey("FK1")); insertIssue(IssueTesting.newDto(newRule(), file, project).setKee("82fd47d4-b650-4037-80bc-7b112bd4eac2")); ComponentDto view = insertComponent(ComponentTesting.newProjectDto("V1").setQualifier(Qualifiers.VIEW).setKey("MyView")); @@ -456,9 +456,9 @@ public class SearchActionComponentsMediumTest { @Test public void search_by_author() throws Exception { - ComponentDto project = insertComponent(ComponentTesting.newProjectDto("P1").setKey("MyProject")); + ComponentDto project = insertComponent(ComponentTesting.newProjectDto("P1").setKey("PK1")); setDefaultProjectPermission(project); - ComponentDto file = insertComponent(ComponentTesting.newFileDto(project, "F1").setKey("MyComponent")); + ComponentDto file = insertComponent(ComponentTesting.newFileDto(project, "F1").setKey("FK1")); RuleDto newRule = newRule(); IssueDto issue1 = IssueTesting.newDto(newRule, file, project).setAuthorLogin("leia").setKee("2bd4eac2-b650-4037-80bc-7b112bd4eac2"); IssueDto issue2 = IssueTesting.newDto(newRule, file, project).setAuthorLogin("luke@skywalker.name").setKee("82fd47d4-b650-4037-80bc-7b1182fd47d4"); @@ -482,9 +482,9 @@ public class SearchActionComponentsMediumTest { @Test public void search_by_developer() throws Exception { - ComponentDto project = insertComponent(ComponentTesting.newProjectDto("P1").setKey("MyProject")); + ComponentDto project = insertComponent(ComponentTesting.newProjectDto("P1").setKey("PK1")); setDefaultProjectPermission(project); - ComponentDto file = insertComponent(ComponentTesting.newFileDto(project, "F1").setKey("MyComponent")); + ComponentDto file = insertComponent(ComponentTesting.newFileDto(project, "F1").setKey("FK1")); ComponentDto developer = insertComponent(ComponentTesting.newDeveloper("Anakin Skywalker")); db.authorDao().insertAuthor("vader", developer.getId()); db.authorDao().insertAuthor("anakin@skywalker.name", developer.getId()); @@ -504,13 +504,13 @@ public class SearchActionComponentsMediumTest { @Test public void search_by_developer_technical_project() throws Exception { - ComponentDto project = insertComponent(ComponentTesting.newProjectDto("P1").setKey("MyProject")); + ComponentDto project = insertComponent(ComponentTesting.newProjectDto("P1").setKey("PK1")); setDefaultProjectPermission(project); - ComponentDto file = insertComponent(ComponentTesting.newFileDto(project, "F1").setKey("MyComponent")); + ComponentDto file = insertComponent(ComponentTesting.newFileDto(project, "F1").setKey("FK1")); - ComponentDto otherProject = insertComponent(ComponentTesting.newProjectDto("P2").setKey("OtherProject")); + ComponentDto otherProject = insertComponent(ComponentTesting.newProjectDto("P2").setKey("PK2")); setDefaultProjectPermission(otherProject); - ComponentDto otherFile = insertComponent(ComponentTesting.newFileDto(otherProject, "F2").setKey("OtherComponent")); + ComponentDto otherFile = insertComponent(ComponentTesting.newFileDto(otherProject, "F2").setKey("FK2")); ComponentDto developer = insertComponent(ComponentTesting.newDeveloper("Anakin Skywalker")); ComponentDto technicalProject = insertComponent(ComponentTesting.newDevProjectCopy("COPY_P1", project, developer)); diff --git a/server/sonar-server/src/test/java/org/sonar/server/issue/ws/SearchActionMediumTest.java b/server/sonar-server/src/test/java/org/sonar/server/issue/ws/SearchActionMediumTest.java index 739e7cbdc46..168c21a6c0e 100644 --- a/server/sonar-server/src/test/java/org/sonar/server/issue/ws/SearchActionMediumTest.java +++ b/server/sonar-server/src/test/java/org/sonar/server/issue/ws/SearchActionMediumTest.java @@ -116,9 +116,9 @@ public class SearchActionMediumTest { db.userDao().insert(session, new UserDto().setLogin("simon").setName("Simon").setEmail("simon@email.com")); db.userDao().insert(session, new UserDto().setLogin("fabrice").setName("Fabrice").setEmail("fabrice@email.com")); - ComponentDto project = insertComponent(ComponentTesting.newProjectDto("PROJECT_ID").setKey("MyProject")); + ComponentDto project = insertComponent(ComponentTesting.newProjectDto("PROJECT_ID").setKey("PROJECT_KEY")); setDefaultProjectPermission(project); - ComponentDto file = insertComponent(ComponentTesting.newFileDto(project, "FILE_ID").setKey("MyComponent")); + ComponentDto file = insertComponent(ComponentTesting.newFileDto(project, "FILE_ID").setKey("FILE_KEY")); IssueDto issue = IssueTesting.newDto(newRule(), file, project) .setKee("82fd47d4-b650-4037-80bc-7b112bd4eac2") .setDebt(10L) @@ -146,9 +146,9 @@ public class SearchActionMediumTest { db.userDao().insert(session, new UserDto().setLogin("john").setName("John")); db.userDao().insert(session, new UserDto().setLogin("fabrice").setName("Fabrice").setEmail("fabrice@email.com")); - ComponentDto project = insertComponent(ComponentTesting.newProjectDto("PROJECT_ID").setKey("MyProject")); + ComponentDto project = insertComponent(ComponentTesting.newProjectDto("PROJECT_ID").setKey("PROJECT_KEY")); setDefaultProjectPermission(project); - ComponentDto file = insertComponent(ComponentTesting.newFileDto(project, "FILE_ID").setKey("MyComponent")); + ComponentDto file = insertComponent(ComponentTesting.newFileDto(project, "FILE_ID").setKey("FILE_KEY")); IssueDto issue = IssueTesting.newDto(newRule(), file, project) .setKee("82fd47d4-b650-4037-80bc-7b112bd4eac2"); db.issueDao().insert(session, issue); @@ -182,9 +182,9 @@ public class SearchActionMediumTest { db.userDao().insert(session, new UserDto().setLogin("john").setName("John").setEmail("john@email.com")); db.userDao().insert(session, new UserDto().setLogin("fabrice").setName("Fabrice").setEmail("fabrice@email.com")); - ComponentDto project = insertComponent(ComponentTesting.newProjectDto("PROJECT_ID").setKey("MyProject")); + ComponentDto project = insertComponent(ComponentTesting.newProjectDto("PROJECT_ID").setKey("PROJECT_KEY")); setDefaultProjectPermission(project); - ComponentDto file = insertComponent(ComponentTesting.newFileDto(project, "FILE_ID").setKey("MyComponent")); + ComponentDto file = insertComponent(ComponentTesting.newFileDto(project, "FILE_ID").setKey("FILE_KEY")); IssueDto issue = IssueTesting.newDto(newRule(), file, project) .setKee("82fd47d4-b650-4037-80bc-7b112bd4eac2"); db.issueDao().insert(session, issue); @@ -214,9 +214,9 @@ public class SearchActionMediumTest { @Test public void issue_with_action_plan() throws Exception { - ComponentDto project = insertComponent(ComponentTesting.newProjectDto("PROJECT_ID").setKey("MyProject")); + ComponentDto project = insertComponent(ComponentTesting.newProjectDto("PROJECT_ID").setKey("PROJECT_KEY")); setDefaultProjectPermission(project); - ComponentDto file = insertComponent(ComponentTesting.newFileDto(project, "FILE_ID").setKey("MyComponent")); + ComponentDto file = insertComponent(ComponentTesting.newFileDto(project, "FILE_ID").setKey("FILE_KEY")); tester.get(ActionPlanDao.class).save(new ActionPlanDto() .setKey("AP-ABCD") @@ -244,9 +244,9 @@ public class SearchActionMediumTest { @Ignore("temporarily disabled") @Test public void issue_with_attributes() throws Exception { - ComponentDto project = insertComponent(ComponentTesting.newProjectDto("PROJECT_ID").setKey("MyProject")); + ComponentDto project = insertComponent(ComponentTesting.newProjectDto("PROJECT_ID").setKey("PROJECT_KEY")); setDefaultProjectPermission(project); - ComponentDto file = insertComponent(ComponentTesting.newFileDto(project, "FILE_ID").setKey("MyComponent")); + ComponentDto file = insertComponent(ComponentTesting.newFileDto(project, "FILE_ID").setKey("FILE_KEY")); IssueDto issue = IssueTesting.newDto(newRule(), file, project) .setKee("82fd47d4-b650-4037-80bc-7b112bd4eac2") .setIssueAttributes(KeyValueFormat.format(ImmutableMap.of("jira-issue-key", "SONAR-1234"))); @@ -263,9 +263,9 @@ public class SearchActionMediumTest { public void load_additional_fields() throws Exception { db.userDao().insert(session, new UserDto().setLogin("simon").setName("Simon").setEmail("simon@email.com")); db.userDao().insert(session, new UserDto().setLogin("fabrice").setName("Fabrice").setEmail("fabrice@email.com")); - ComponentDto project = insertComponent(ComponentTesting.newProjectDto("PROJECT_ID").setKey("MyProject")); + ComponentDto project = insertComponent(ComponentTesting.newProjectDto("PROJECT_ID").setKey("PROJECT_KEY")); setDefaultProjectPermission(project); - ComponentDto file = insertComponent(ComponentTesting.newFileDto(project, "FILE_ID").setKey("MyComponent")); + ComponentDto file = insertComponent(ComponentTesting.newFileDto(project, "FILE_ID").setKey("FILE_KEY")); tester.get(ActionPlanDao.class).save(new ActionPlanDto() .setKey("AP-ABCD") @@ -293,11 +293,11 @@ public class SearchActionMediumTest { @Test public void issue_on_removed_file() throws Exception { RuleDto rule = newRule(); - ComponentDto project = insertComponent(ComponentTesting.newProjectDto("PROJECT_ID").setKey("MyProject")); + ComponentDto project = insertComponent(ComponentTesting.newProjectDto("PROJECT_ID").setKey("PROJECT_KEY")); setDefaultProjectPermission(project); ComponentDto removedFile = insertComponent(ComponentTesting.newFileDto(project).setUuid("REMOVED_FILE_ID") - .setEnabled(false) - .setKey("RemovedComponent")); + .setKey("REMOVED_FILE_KEY") + .setEnabled(false)); IssueDto issue = IssueTesting.newDto(rule, removedFile, project) .setKee("82fd47d4-b650-4037-80bc-7b112bd4eac2") @@ -317,9 +317,9 @@ public class SearchActionMediumTest { @Test public void issue_contains_component_id_for_eclipse() throws Exception { - ComponentDto project = insertComponent(ComponentTesting.newProjectDto("PROJECT_ID").setKey("MyProject")); + ComponentDto project = insertComponent(ComponentTesting.newProjectDto("PROJECT_ID").setKey("PROJECT_KEY")); setDefaultProjectPermission(project); - ComponentDto file = insertComponent(ComponentTesting.newFileDto(project, "FILE_ID").setKey("MyComponent")); + ComponentDto file = insertComponent(ComponentTesting.newFileDto(project, "FILE_ID").setKey("FILE_KEY")); IssueDto issue = IssueTesting.newDto(newRule(), file, project); db.issueDao().insert(session, issue); session.commit(); @@ -332,9 +332,9 @@ public class SearchActionMediumTest { @Test public void apply_paging_with_one_component() throws Exception { RuleDto rule = newRule(); - ComponentDto project = insertComponent(ComponentTesting.newProjectDto("PROJECT_ID").setKey("MyProject")); + ComponentDto project = insertComponent(ComponentTesting.newProjectDto("PROJECT_ID").setKey("PROJECT_KEY")); setDefaultProjectPermission(project); - ComponentDto file = insertComponent(ComponentTesting.newFileDto(project, "FILE_ID").setKey("MyComponent")); + ComponentDto file = insertComponent(ComponentTesting.newFileDto(project, "FILE_ID").setKey("FILE_KEY")); for (int i = 0; i < QueryContext.MAX_LIMIT + 1; i++) { IssueDto issue = IssueTesting.newDto(rule, file, project); tester.get(IssueDao.class).insert(session, issue); @@ -363,9 +363,9 @@ public class SearchActionMediumTest { @Test public void display_facets() throws Exception { - ComponentDto project = insertComponent(ComponentTesting.newProjectDto("PROJECT_ID").setKey("MyProject")); + ComponentDto project = insertComponent(ComponentTesting.newProjectDto("PROJECT_ID").setKey("PROJECT_KEY")); setDefaultProjectPermission(project); - ComponentDto file = insertComponent(ComponentTesting.newFileDto(project, "FILE_ID").setKey("MyComponent")); + ComponentDto file = insertComponent(ComponentTesting.newFileDto(project, "FILE_ID").setKey("FILE_KEY")); IssueDto issue = IssueTesting.newDto(newRule(), file, project) .setIssueCreationDate(DateUtils.parseDate("2014-09-04")) .setIssueUpdateDate(DateUtils.parseDate("2017-12-04")) @@ -387,9 +387,9 @@ public class SearchActionMediumTest { @Test public void display_facets_in_debt_mode() throws Exception { - ComponentDto project = insertComponent(ComponentTesting.newProjectDto("PROJECT_ID").setKey("MyProject")); + ComponentDto project = insertComponent(ComponentTesting.newProjectDto("PROJECT_ID").setKey("PROJECT_KEY")); setDefaultProjectPermission(project); - ComponentDto file = insertComponent(ComponentTesting.newFileDto(project, "FILE_ID").setKey("MyComponent")); + ComponentDto file = insertComponent(ComponentTesting.newFileDto(project, "FILE_ID").setKey("FILE_KEY")); IssueDto issue = IssueTesting.newDto(newRule(), file, project) .setIssueCreationDate(DateUtils.parseDate("2014-09-04")) .setIssueUpdateDate(DateUtils.parseDate("2017-12-04")) @@ -412,9 +412,9 @@ public class SearchActionMediumTest { @Test public void display_zero_valued_facets_for_selected_items() throws Exception { - ComponentDto project = insertComponent(ComponentTesting.newProjectDto("PROJECT_ID").setKey("MyProject")); + ComponentDto project = insertComponent(ComponentTesting.newProjectDto("PROJECT_ID").setKey("PROJECT_KEY")); setDefaultProjectPermission(project); - ComponentDto file = insertComponent(ComponentTesting.newFileDto(project, "FILE_ID").setKey("MyComponent")); + ComponentDto file = insertComponent(ComponentTesting.newFileDto(project, "FILE_ID").setKey("FILE_KEY")); IssueDto issue = IssueTesting.newDto(newRule(), file, project) .setIssueCreationDate(DateUtils.parseDate("2014-09-04")) .setIssueUpdateDate(DateUtils.parseDate("2017-12-04")) @@ -440,9 +440,9 @@ public class SearchActionMediumTest { public void filter_by_assigned_to_me() throws Exception { db.userDao().insert(session, new UserDto().setLogin("john").setName("John").setEmail("john@email.com")); - ComponentDto project = insertComponent(ComponentTesting.newProjectDto("PROJECT_ID").setKey("MyProject")); + ComponentDto project = insertComponent(ComponentTesting.newProjectDto("PROJECT_ID").setKey("PROJECT_KEY")); setDefaultProjectPermission(project); - ComponentDto file = insertComponent(ComponentTesting.newFileDto(project, "FILE_ID").setKey("MyComponent")); + ComponentDto file = insertComponent(ComponentTesting.newFileDto(project, "FILE_ID").setKey("FILE_KEY")); RuleDto rule = newRule(); IssueDto issue1 = IssueTesting.newDto(rule, file, project) .setIssueCreationDate(DateUtils.parseDate("2014-09-04")) @@ -484,9 +484,9 @@ public class SearchActionMediumTest { public void filter_by_assigned_to_me_unauthenticated() throws Exception { userSessionRule.login(); - ComponentDto project = insertComponent(ComponentTesting.newProjectDto("PROJECT_ID").setKey("MyProject")); + ComponentDto project = insertComponent(ComponentTesting.newProjectDto("PROJECT_ID").setKey("PROJECT_KEY")); setDefaultProjectPermission(project); - ComponentDto file = insertComponent(ComponentTesting.newFileDto(project, "FILE_ID").setKey("MyComponent")); + ComponentDto file = insertComponent(ComponentTesting.newFileDto(project, "FILE_ID").setKey("FILE_KEY")); RuleDto rule = newRule(); IssueDto issue1 = IssueTesting.newDto(rule, file, project) .setStatus("OPEN") @@ -514,9 +514,9 @@ public class SearchActionMediumTest { public void assigned_to_me_facet_is_sticky_relative_to_assignees() throws Exception { db.userDao().insert(session, new UserDto().setLogin("alice").setName("Alice").setEmail("alice@email.com")); - ComponentDto project = insertComponent(ComponentTesting.newProjectDto("PROJECT_ID").setKey("MyProject")); + ComponentDto project = insertComponent(ComponentTesting.newProjectDto("PROJECT_ID").setKey("PROJECT_KEY")); setDefaultProjectPermission(project); - ComponentDto file = insertComponent(ComponentTesting.newFileDto(project, "FILE_ID").setKey("MyFile")); + ComponentDto file = insertComponent(ComponentTesting.newFileDto(project, "FILE_ID").setKey("FILE_KEY")); RuleDto rule = newRule(); IssueDto issue1 = IssueTesting.newDto(rule, file, project) .setIssueCreationDate(DateUtils.parseDate("2014-09-04")) @@ -557,9 +557,9 @@ public class SearchActionMediumTest { @Test public void sort_by_updated_at() throws Exception { RuleDto rule = newRule(); - ComponentDto project = insertComponent(ComponentTesting.newProjectDto("PROJECT_ID").setKey("MyProject")); + ComponentDto project = insertComponent(ComponentTesting.newProjectDto("PROJECT_ID").setKey("PROJECT_KEY")); setDefaultProjectPermission(project); - ComponentDto file = insertComponent(ComponentTesting.newFileDto(project, "FILE_ID").setKey("MyComponent")); + ComponentDto file = insertComponent(ComponentTesting.newFileDto(project, "FILE_ID").setKey("FILE_KEY")); db.issueDao().insert(session, IssueTesting.newDto(rule, file, project) .setKee("82fd47d4-b650-4037-80bc-7b112bd4eac1") .setIssueUpdateDate(DateUtils.parseDateTime("2014-11-02T00:00:00+0100"))); @@ -582,9 +582,9 @@ public class SearchActionMediumTest { @Test public void paging() throws Exception { RuleDto rule = newRule(); - ComponentDto project = insertComponent(ComponentTesting.newProjectDto("PROJECT_ID").setKey("MyProject")); + ComponentDto project = insertComponent(ComponentTesting.newProjectDto("PROJECT_ID").setKey("PROJECT_KEY")); setDefaultProjectPermission(project); - ComponentDto file = insertComponent(ComponentTesting.newFileDto(project, "FILE_ID").setKey("MyComponent")); + ComponentDto file = insertComponent(ComponentTesting.newFileDto(project, "FILE_ID").setKey("FILE_KEY")); for (int i = 0; i < 12; i++) { IssueDto issue = IssueTesting.newDto(rule, file, project); tester.get(IssueDao.class).insert(session, issue); @@ -603,9 +603,9 @@ public class SearchActionMediumTest { @Test public void paging_with_page_size_to_minus_one() throws Exception { RuleDto rule = newRule(); - ComponentDto project = insertComponent(ComponentTesting.newProjectDto("PROJECT_ID").setKey("MyProject")); + ComponentDto project = insertComponent(ComponentTesting.newProjectDto("PROJECT_ID").setKey("PROJECT_KEY")); setDefaultProjectPermission(project); - ComponentDto file = insertComponent(ComponentTesting.newFileDto(project, "FILE_ID").setKey("MyComponent")); + ComponentDto file = insertComponent(ComponentTesting.newFileDto(project, "FILE_ID").setKey("FILE_KEY")); for (int i = 0; i < 12; i++) { IssueDto issue = IssueTesting.newDto(rule, file, project); tester.get(IssueDao.class).insert(session, issue); @@ -624,9 +624,9 @@ public class SearchActionMediumTest { @Test public void deprecated_paging() throws Exception { RuleDto rule = newRule(); - ComponentDto project = insertComponent(ComponentTesting.newProjectDto("PROJECT_ID").setKey("MyProject")); + ComponentDto project = insertComponent(ComponentTesting.newProjectDto("PROJECT_ID").setKey("PROJECT_KEY")); setDefaultProjectPermission(project); - ComponentDto file = insertComponent(ComponentTesting.newFileDto(project, "FILE_ID").setKey("MyComponent")); + ComponentDto file = insertComponent(ComponentTesting.newFileDto(project, "FILE_ID").setKey("FILE_KEY")); for (int i = 0; i < 12; i++) { IssueDto issue = IssueTesting.newDto(rule, file, project); tester.get(IssueDao.class).insert(session, issue); diff --git a/server/sonar-server/src/test/resources/org/sonar/server/issue/ws/SearchActionComponentsMediumTest/display_file_facet.json b/server/sonar-server/src/test/resources/org/sonar/server/issue/ws/SearchActionComponentsMediumTest/display_file_facet.json index 67be53937cf..2e6bf488d1b 100644 --- a/server/sonar-server/src/test/resources/org/sonar/server/issue/ws/SearchActionComponentsMediumTest/display_file_facet.json +++ b/server/sonar-server/src/test/resources/org/sonar/server/issue/ws/SearchActionComponentsMediumTest/display_file_facet.json @@ -4,8 +4,8 @@ "issues": [ { "key": "82fd47d4-b650-4037-80bc-7b112bd4eac2", - "component": "F1", - "project": "P1", + "component": "FK1", + "project": "PK1", "rule": "xoo:x1" } ], diff --git a/server/sonar-server/src/test/resources/org/sonar/server/issue/ws/SearchActionComponentsMediumTest/display_module_facet.json b/server/sonar-server/src/test/resources/org/sonar/server/issue/ws/SearchActionComponentsMediumTest/display_module_facet.json index cfaa3280998..39b1fb7a520 100644 --- a/server/sonar-server/src/test/resources/org/sonar/server/issue/ws/SearchActionComponentsMediumTest/display_module_facet.json +++ b/server/sonar-server/src/test/resources/org/sonar/server/issue/ws/SearchActionComponentsMediumTest/display_module_facet.json @@ -2,8 +2,8 @@ "issues": [ { "key": "82fd47d4-b650-4037-80bc-7b112bd4eac2", - "component": "F1", - "project": "P1", + "component": "FK1", + "project": "PK1", "rule": "xoo:x1" } ], diff --git a/server/sonar-server/src/test/resources/org/sonar/server/issue/ws/SearchActionComponentsMediumTest/display_non_sticky_project_facet.json b/server/sonar-server/src/test/resources/org/sonar/server/issue/ws/SearchActionComponentsMediumTest/display_non_sticky_project_facet.json index e9152aa560a..8c3d41a544f 100644 --- a/server/sonar-server/src/test/resources/org/sonar/server/issue/ws/SearchActionComponentsMediumTest/display_non_sticky_project_facet.json +++ b/server/sonar-server/src/test/resources/org/sonar/server/issue/ws/SearchActionComponentsMediumTest/display_non_sticky_project_facet.json @@ -4,14 +4,14 @@ "issues": [ { "key": "82fd47d4-b650-4037-80bc-7b112bd4eac2", - "component": "MyComponent1", - "project": "MyProject1", + "component": "FK1", + "project": "PK1", "rule": "xoo:x1" } ], "components": [ - { "key": "MyProject1" }, - { "key": "MyComponent1" } + { "key": "PK1" }, + { "key": "FK1" } ], "facets": [ { diff --git a/server/sonar-server/src/test/resources/org/sonar/server/issue/ws/SearchActionComponentsMediumTest/display_sticky_project_facet.json b/server/sonar-server/src/test/resources/org/sonar/server/issue/ws/SearchActionComponentsMediumTest/display_sticky_project_facet.json index cd421f8cdc8..fabc55097df 100644 --- a/server/sonar-server/src/test/resources/org/sonar/server/issue/ws/SearchActionComponentsMediumTest/display_sticky_project_facet.json +++ b/server/sonar-server/src/test/resources/org/sonar/server/issue/ws/SearchActionComponentsMediumTest/display_sticky_project_facet.json @@ -2,8 +2,8 @@ "issues": [ { "key": "82fd47d4-b650-4037-80bc-7b112bd4eac2", - "component": "F1", - "project": "P1", + "component": "FK1", + "project": "PK1", "rule": "xoo:x1" } ], diff --git a/server/sonar-server/src/test/resources/org/sonar/server/issue/ws/SearchActionComponentsMediumTest/issues_on_different_projects.json b/server/sonar-server/src/test/resources/org/sonar/server/issue/ws/SearchActionComponentsMediumTest/issues_on_different_projects.json index 4bebe01e405..d4c45c79e6e 100644 --- a/server/sonar-server/src/test/resources/org/sonar/server/issue/ws/SearchActionComponentsMediumTest/issues_on_different_projects.json +++ b/server/sonar-server/src/test/resources/org/sonar/server/issue/ws/SearchActionComponentsMediumTest/issues_on_different_projects.json @@ -2,8 +2,8 @@ "issues": [ { "key": "82fd47d4-b650-4037-80bc-7b112bd4eac2", - "component": "F1", - "project": "P1", + "component": "FK1", + "project": "PK1", "rule": "xoo:x1", "status": "OPEN", "resolution": "OPEN", @@ -12,8 +12,8 @@ }, { "key": "92fd47d4-b650-4037-80bc-7b112bd4eac2", - "component": "F2", - "project": "P2", + "component": "FK2", + "project": "PK2", "rule": "xoo:x1", "status": "OPEN", "resolution": "OPEN", @@ -24,22 +24,22 @@ "components": [ { "id": "F1", - "key": "MyComponent", + "key": "FK1", "enabled" : true }, { "id": "P1", - "key": "MyProject", + "key": "PK1", "enabled" : true }, { "id": "F2", - "key": "MyComponent2", + "key": "FK2", "enabled" : true }, { "id": "P2", - "key": "MyProject2", + "key": "PK2", "enabled" : true } ] diff --git a/server/sonar-server/src/test/resources/org/sonar/server/issue/ws/SearchActionComponentsMediumTest/search_by_authors.json b/server/sonar-server/src/test/resources/org/sonar/server/issue/ws/SearchActionComponentsMediumTest/search_by_authors.json index f571e170ee7..4dbdc16cdd1 100644 --- a/server/sonar-server/src/test/resources/org/sonar/server/issue/ws/SearchActionComponentsMediumTest/search_by_authors.json +++ b/server/sonar-server/src/test/resources/org/sonar/server/issue/ws/SearchActionComponentsMediumTest/search_by_authors.json @@ -4,8 +4,8 @@ "issues": [ { "key": "2bd4eac2-b650-4037-80bc-7b112bd4eac2", - "component": "F1", - "project": "P1", + "component": "FK1", + "project": "PK1", "rule": "xoo:x1", "author": "leia" } diff --git a/server/sonar-server/src/test/resources/org/sonar/server/issue/ws/SearchActionComponentsMediumTest/search_by_developer.json b/server/sonar-server/src/test/resources/org/sonar/server/issue/ws/SearchActionComponentsMediumTest/search_by_developer.json index b47c430630b..d1b2e41f772 100644 --- a/server/sonar-server/src/test/resources/org/sonar/server/issue/ws/SearchActionComponentsMediumTest/search_by_developer.json +++ b/server/sonar-server/src/test/resources/org/sonar/server/issue/ws/SearchActionComponentsMediumTest/search_by_developer.json @@ -2,15 +2,15 @@ "issues": [ { "key": "2bd4eac2-b650-4037-80bc-7b112bd4eac2", - "component": "F1", - "project": "P1", + "component": "FK1", + "project": "PK1", "rule": "xoo:x1", "author": "vader" }, { "key": "82fd47d4-b650-4037-80bc-7b1182fd47d4", - "component": "F1", - "project": "P1", + "component": "FK1", + "project": "PK1", "rule": "xoo:x1", "author": "anakin@skywalker.name" } diff --git a/server/sonar-server/src/test/resources/org/sonar/server/issue/ws/SearchActionComponentsMediumTest/search_by_directory_uuid.json b/server/sonar-server/src/test/resources/org/sonar/server/issue/ws/SearchActionComponentsMediumTest/search_by_directory_uuid.json index d7c4e98d8cc..a7d02467eb1 100644 --- a/server/sonar-server/src/test/resources/org/sonar/server/issue/ws/SearchActionComponentsMediumTest/search_by_directory_uuid.json +++ b/server/sonar-server/src/test/resources/org/sonar/server/issue/ws/SearchActionComponentsMediumTest/search_by_directory_uuid.json @@ -2,8 +2,8 @@ "issues": [ { "key": "82fd47d4-b650-4037-80bc-7b112bd4eac2", - "component": "F1", - "project": "P1", + "component": "FK1", + "project": "PK1", "rule": "xoo:x1" } ] diff --git a/server/sonar-server/src/test/resources/org/sonar/server/issue/ws/SearchActionComponentsMediumTest/search_by_file_key.json b/server/sonar-server/src/test/resources/org/sonar/server/issue/ws/SearchActionComponentsMediumTest/search_by_file_key.json index d7c4e98d8cc..a7d02467eb1 100644 --- a/server/sonar-server/src/test/resources/org/sonar/server/issue/ws/SearchActionComponentsMediumTest/search_by_file_key.json +++ b/server/sonar-server/src/test/resources/org/sonar/server/issue/ws/SearchActionComponentsMediumTest/search_by_file_key.json @@ -2,8 +2,8 @@ "issues": [ { "key": "82fd47d4-b650-4037-80bc-7b112bd4eac2", - "component": "F1", - "project": "P1", + "component": "FK1", + "project": "PK1", "rule": "xoo:x1" } ] diff --git a/server/sonar-server/src/test/resources/org/sonar/server/issue/ws/SearchActionComponentsMediumTest/search_by_file_uuid.json b/server/sonar-server/src/test/resources/org/sonar/server/issue/ws/SearchActionComponentsMediumTest/search_by_file_uuid.json index d7c4e98d8cc..a7d02467eb1 100644 --- a/server/sonar-server/src/test/resources/org/sonar/server/issue/ws/SearchActionComponentsMediumTest/search_by_file_uuid.json +++ b/server/sonar-server/src/test/resources/org/sonar/server/issue/ws/SearchActionComponentsMediumTest/search_by_file_uuid.json @@ -2,8 +2,8 @@ "issues": [ { "key": "82fd47d4-b650-4037-80bc-7b112bd4eac2", - "component": "F1", - "project": "P1", + "component": "FK1", + "project": "PK1", "rule": "xoo:x1" } ] diff --git a/server/sonar-server/src/test/resources/org/sonar/server/issue/ws/SearchActionComponentsMediumTest/search_by_project_uuid.json b/server/sonar-server/src/test/resources/org/sonar/server/issue/ws/SearchActionComponentsMediumTest/search_by_project_uuid.json index d7c4e98d8cc..a7d02467eb1 100644 --- a/server/sonar-server/src/test/resources/org/sonar/server/issue/ws/SearchActionComponentsMediumTest/search_by_project_uuid.json +++ b/server/sonar-server/src/test/resources/org/sonar/server/issue/ws/SearchActionComponentsMediumTest/search_by_project_uuid.json @@ -2,8 +2,8 @@ "issues": [ { "key": "82fd47d4-b650-4037-80bc-7b112bd4eac2", - "component": "F1", - "project": "P1", + "component": "FK1", + "project": "PK1", "rule": "xoo:x1" } ] diff --git a/server/sonar-server/src/test/resources/org/sonar/server/issue/ws/SearchActionComponentsMediumTest/search_by_test_key.json b/server/sonar-server/src/test/resources/org/sonar/server/issue/ws/SearchActionComponentsMediumTest/search_by_test_key.json index 56b3be12a0b..1807eeb16d0 100644 --- a/server/sonar-server/src/test/resources/org/sonar/server/issue/ws/SearchActionComponentsMediumTest/search_by_test_key.json +++ b/server/sonar-server/src/test/resources/org/sonar/server/issue/ws/SearchActionComponentsMediumTest/search_by_test_key.json @@ -2,8 +2,8 @@ "issues": [ { "key": "2bd4eac2-b650-4037-80bc-7b1182fd47d4", - "component": "F2", - "project": "P1", + "component": "FK2", + "project": "PK1", "rule": "xoo:x1" } ] diff --git a/server/sonar-server/src/test/resources/org/sonar/server/issue/ws/SearchActionComponentsMediumTest/search_by_view_uuid.json b/server/sonar-server/src/test/resources/org/sonar/server/issue/ws/SearchActionComponentsMediumTest/search_by_view_uuid.json index d7c4e98d8cc..a7d02467eb1 100644 --- a/server/sonar-server/src/test/resources/org/sonar/server/issue/ws/SearchActionComponentsMediumTest/search_by_view_uuid.json +++ b/server/sonar-server/src/test/resources/org/sonar/server/issue/ws/SearchActionComponentsMediumTest/search_by_view_uuid.json @@ -2,8 +2,8 @@ "issues": [ { "key": "82fd47d4-b650-4037-80bc-7b112bd4eac2", - "component": "F1", - "project": "P1", + "component": "FK1", + "project": "PK1", "rule": "xoo:x1" } ] diff --git a/server/sonar-server/src/test/resources/org/sonar/server/issue/ws/SearchActionMediumTest/assigned_to_me_facet_sticky.json b/server/sonar-server/src/test/resources/org/sonar/server/issue/ws/SearchActionMediumTest/assigned_to_me_facet_sticky.json index 48cdd00481b..00e9e9f0c82 100644 --- a/server/sonar-server/src/test/resources/org/sonar/server/issue/ws/SearchActionMediumTest/assigned_to_me_facet_sticky.json +++ b/server/sonar-server/src/test/resources/org/sonar/server/issue/ws/SearchActionMediumTest/assigned_to_me_facet_sticky.json @@ -2,7 +2,7 @@ "issues": [ { "key": "7b112bd4-b650-4037-80bc-82fd47d4eac2", - "component": "FILE_ID", + "component": "FILE_KEY", "rule": "xoo:x1", "status": "OPEN", "severity": "MAJOR", diff --git a/server/sonar-server/src/test/resources/org/sonar/server/issue/ws/SearchActionMediumTest/display_facets.json b/server/sonar-server/src/test/resources/org/sonar/server/issue/ws/SearchActionMediumTest/display_facets.json index 5fcdf33eca1..439e6889cc0 100644 --- a/server/sonar-server/src/test/resources/org/sonar/server/issue/ws/SearchActionMediumTest/display_facets.json +++ b/server/sonar-server/src/test/resources/org/sonar/server/issue/ws/SearchActionMediumTest/display_facets.json @@ -2,7 +2,7 @@ "issues": [ { "key": "82fd47d4-b650-4037-80bc-7b112bd4eac2", - "component": "FILE_ID", + "component": "FILE_KEY", "rule": "xoo:x1", "status": "OPEN", "severity": "MAJOR", diff --git a/server/sonar-server/src/test/resources/org/sonar/server/issue/ws/SearchActionMediumTest/display_facets_debt.json b/server/sonar-server/src/test/resources/org/sonar/server/issue/ws/SearchActionMediumTest/display_facets_debt.json index d521c725924..2ce68b0381d 100644 --- a/server/sonar-server/src/test/resources/org/sonar/server/issue/ws/SearchActionMediumTest/display_facets_debt.json +++ b/server/sonar-server/src/test/resources/org/sonar/server/issue/ws/SearchActionMediumTest/display_facets_debt.json @@ -3,8 +3,8 @@ "issues": [ { "key": "82fd47d4-b650-4037-80bc-7b112bd4eac2", - "component": "FILE_ID", - "project": "PROJECT_ID", + "component": "FILE_KEY", + "project": "PROJECT_KEY", "rule": "xoo:x1", "status": "OPEN", "severity": "MAJOR", diff --git a/server/sonar-server/src/test/resources/org/sonar/server/issue/ws/SearchActionMediumTest/display_zero_facets.json b/server/sonar-server/src/test/resources/org/sonar/server/issue/ws/SearchActionMediumTest/display_zero_facets.json index cdd12a3d9f0..bdc015b144d 100644 --- a/server/sonar-server/src/test/resources/org/sonar/server/issue/ws/SearchActionMediumTest/display_zero_facets.json +++ b/server/sonar-server/src/test/resources/org/sonar/server/issue/ws/SearchActionMediumTest/display_zero_facets.json @@ -2,8 +2,8 @@ "issues": [ { "key": "82fd47d4-b650-4037-80bc-7b112bd4eac2", - "component": "FILE_ID", - "project": "PROJECT_ID", + "component": "FILE_KEY", + "project": "PROJECT_KEY", "rule": "xoo:x1", "status": "OPEN", "severity": "MAJOR", diff --git a/server/sonar-server/src/test/resources/org/sonar/server/issue/ws/SearchActionMediumTest/filter_by_assigned_to_me.json b/server/sonar-server/src/test/resources/org/sonar/server/issue/ws/SearchActionMediumTest/filter_by_assigned_to_me.json index 6e01c4f53b9..f65f89b4974 100644 --- a/server/sonar-server/src/test/resources/org/sonar/server/issue/ws/SearchActionMediumTest/filter_by_assigned_to_me.json +++ b/server/sonar-server/src/test/resources/org/sonar/server/issue/ws/SearchActionMediumTest/filter_by_assigned_to_me.json @@ -2,8 +2,8 @@ "issues": [ { "key": "82fd47d4-b650-4037-80bc-7b112bd4eac2", - "component": "FILE_ID", - "project": "PROJECT_ID", + "component": "FILE_KEY", + "project": "PROJECT_KEY", "rule": "xoo:x1", "status": "OPEN", "severity": "MAJOR", diff --git a/server/sonar-server/src/test/resources/org/sonar/server/issue/ws/SearchActionMediumTest/hide_rules.json b/server/sonar-server/src/test/resources/org/sonar/server/issue/ws/SearchActionMediumTest/hide_rules.json index 18d24788450..2c319af0b5a 100644 --- a/server/sonar-server/src/test/resources/org/sonar/server/issue/ws/SearchActionMediumTest/hide_rules.json +++ b/server/sonar-server/src/test/resources/org/sonar/server/issue/ws/SearchActionMediumTest/hide_rules.json @@ -2,8 +2,8 @@ "issues": [ { "key": "82fd47d4-b650-4037-80bc-7b112bd4eac2", - "component": "FILE_ID", - "project": "PROJECT_ID", + "component": "FILE_KEY", + "project": "PROJECT_KEY", "rule": "xoo:x1", "status": "OPEN", "severity": "MAJOR", diff --git a/server/sonar-server/src/test/resources/org/sonar/server/issue/ws/SearchActionMediumTest/issue_on_removed_file.json b/server/sonar-server/src/test/resources/org/sonar/server/issue/ws/SearchActionMediumTest/issue_on_removed_file.json index 4fd658fe4c2..6ea290d3e60 100644 --- a/server/sonar-server/src/test/resources/org/sonar/server/issue/ws/SearchActionMediumTest/issue_on_removed_file.json +++ b/server/sonar-server/src/test/resources/org/sonar/server/issue/ws/SearchActionMediumTest/issue_on_removed_file.json @@ -2,8 +2,8 @@ "issues": [ { "key": "82fd47d4-b650-4037-80bc-7b112bd4eac2", - "component": "REMOVED_FILE_ID", - "project": "PROJECT_ID", + "component": "REMOVED_FILE_KEY", + "project": "PROJECT_KEY", "rule": "xoo:x1", "status": "OPEN", "resolution": "OPEN", @@ -14,12 +14,12 @@ "components": [ { "id": "REMOVED_FILE_ID", - "key": "RemovedComponent", + "key": "REMOVED_FILE_KEY", "enabled" : false }, { "id": "PROJECT_ID", - "key": "MyProject", + "key": "PROJECT_KEY", "enabled" : true } ] diff --git a/server/sonar-server/src/test/resources/org/sonar/server/issue/ws/SearchActionMediumTest/issue_with_action_plan.json b/server/sonar-server/src/test/resources/org/sonar/server/issue/ws/SearchActionMediumTest/issue_with_action_plan.json index bf74bc21d89..14f7b96c025 100644 --- a/server/sonar-server/src/test/resources/org/sonar/server/issue/ws/SearchActionMediumTest/issue_with_action_plan.json +++ b/server/sonar-server/src/test/resources/org/sonar/server/issue/ws/SearchActionMediumTest/issue_with_action_plan.json @@ -11,7 +11,7 @@ "name": "1.0", "status": "OPEN", "deadLine": "2014-01-24T19:10:03+0000", - "project": "PROJECT_ID" + "project": "PROJECT_KEY" } ] } diff --git a/server/sonar-server/src/test/resources/org/sonar/server/issue/ws/SearchActionMediumTest/response_contains_all_fields_except_additional_fields.json b/server/sonar-server/src/test/resources/org/sonar/server/issue/ws/SearchActionMediumTest/response_contains_all_fields_except_additional_fields.json index d806527edc4..e88f5789021 100644 --- a/server/sonar-server/src/test/resources/org/sonar/server/issue/ws/SearchActionMediumTest/response_contains_all_fields_except_additional_fields.json +++ b/server/sonar-server/src/test/resources/org/sonar/server/issue/ws/SearchActionMediumTest/response_contains_all_fields_except_additional_fields.json @@ -4,7 +4,7 @@ "key": "82fd47d4-b650-4037-80bc-7b112bd4eac2", "rule": "xoo:x1", "severity": "MAJOR", - "component": "FILE_ID", + "component": "FILE_KEY", "resolution": "FIXED", "status": "RESOLVED", "message": "the message", diff --git a/server/sonar-server/src/test/resources/org/sonar/server/issue/ws/SearchActionMediumTest/sort_by_updated_at.json b/server/sonar-server/src/test/resources/org/sonar/server/issue/ws/SearchActionMediumTest/sort_by_updated_at.json index 7f40edc0ad3..3e73eee5dbc 100644 --- a/server/sonar-server/src/test/resources/org/sonar/server/issue/ws/SearchActionMediumTest/sort_by_updated_at.json +++ b/server/sonar-server/src/test/resources/org/sonar/server/issue/ws/SearchActionMediumTest/sort_by_updated_at.json @@ -2,22 +2,22 @@ "issues": [ { "key": "82fd47d4-b650-4037-80bc-7b112bd4eac2", - "component": "FILE_ID", - "project": "PROJECT_ID", + "component": "FILE_KEY", + "project": "PROJECT_KEY", "rule": "xoo:x1", "updateDate": "2014-11-01T00:00:00+0100" }, { "key": "82fd47d4-b650-4037-80bc-7b112bd4eac1", - "component": "FILE_ID", - "project": "PROJECT_ID", + "component": "FILE_KEY", + "project": "PROJECT_KEY", "rule": "xoo:x1", "updateDate": "2014-11-02T00:00:00+0100" }, { "key": "82fd47d4-b650-4037-80bc-7b112bd4eac3", - "component": "FILE_ID", - "project": "PROJECT_ID", + "component": "FILE_KEY", + "project": "PROJECT_KEY", "rule": "xoo:x1", "updateDate": "2014-11-03T00:00:00+0100" } diff --git a/sonar-ws/src/main/gen-java/org/sonarqube/ws/Common.java b/sonar-ws/src/main/gen-java/org/sonarqube/ws/Common.java index 2a0bbf35bc1..faf01dd4c86 100644 --- a/sonar-ws/src/main/gen-java/org/sonarqube/ws/Common.java +++ b/sonar-ws/src/main/gen-java/org/sonarqube/ws/Common.java @@ -3986,62 +3986,24 @@ public final class Common { getLangBytes(); /** - * optional string desc = 4; - * - *
-     * TODO what's the format ?
-     * 
- */ - boolean hasDesc(); - /** - * optional string desc = 4; - * - *
-     * TODO what's the format ?
-     * 
- */ - java.lang.String getDesc(); - /** - * optional string desc = 4; - * - *
-     * TODO what's the format ?
-     * 
- */ - com.google.protobuf.ByteString - getDescBytes(); - - /** - * optional .sonarqube.ws.RuleStatus status = 5; + * optional .sonarqube.ws.RuleStatus status = 4; */ boolean hasStatus(); /** - * optional .sonarqube.ws.RuleStatus status = 5; + * optional .sonarqube.ws.RuleStatus status = 4; */ org.sonarqube.ws.Common.RuleStatus getStatus(); /** - * optional string langName = 6; - * - *
-     * TODO missing 'lang'
-     * 
+ * optional string langName = 5; */ boolean hasLangName(); /** - * optional string langName = 6; - * - *
-     * TODO missing 'lang'
-     * 
+ * optional string langName = 5; */ java.lang.String getLangName(); /** - * optional string langName = 6; - * - *
-     * TODO missing 'lang'
-     * 
+ * optional string langName = 5; */ com.google.protobuf.ByteString getLangNameBytes(); @@ -4116,26 +4078,20 @@ public final class Common { lang_ = bs; break; } - case 34: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000008; - desc_ = bs; - break; - } - case 40: { + case 32: { int rawValue = input.readEnum(); org.sonarqube.ws.Common.RuleStatus value = org.sonarqube.ws.Common.RuleStatus.valueOf(rawValue); if (value == null) { - unknownFields.mergeVarintField(5, rawValue); + unknownFields.mergeVarintField(4, rawValue); } else { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000008; status_ = value; } break; } - case 50: { + case 42: { com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000010; langName_ = bs; break; } @@ -4305,93 +4261,31 @@ public final class Common { } } - public static final int DESC_FIELD_NUMBER = 4; - private java.lang.Object desc_; - /** - * optional string desc = 4; - * - *
-     * TODO what's the format ?
-     * 
- */ - public boolean hasDesc() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional string desc = 4; - * - *
-     * TODO what's the format ?
-     * 
- */ - public java.lang.String getDesc() { - java.lang.Object ref = desc_; - 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()) { - desc_ = s; - } - return s; - } - } - /** - * optional string desc = 4; - * - *
-     * TODO what's the format ?
-     * 
- */ - public com.google.protobuf.ByteString - getDescBytes() { - java.lang.Object ref = desc_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - desc_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int STATUS_FIELD_NUMBER = 5; + public static final int STATUS_FIELD_NUMBER = 4; private org.sonarqube.ws.Common.RuleStatus status_; /** - * optional .sonarqube.ws.RuleStatus status = 5; + * optional .sonarqube.ws.RuleStatus status = 4; */ public boolean hasStatus() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000008) == 0x00000008); } /** - * optional .sonarqube.ws.RuleStatus status = 5; + * optional .sonarqube.ws.RuleStatus status = 4; */ public org.sonarqube.ws.Common.RuleStatus getStatus() { return status_; } - public static final int LANGNAME_FIELD_NUMBER = 6; + public static final int LANGNAME_FIELD_NUMBER = 5; private java.lang.Object langName_; /** - * optional string langName = 6; - * - *
-     * TODO missing 'lang'
-     * 
+ * optional string langName = 5; */ public boolean hasLangName() { - return ((bitField0_ & 0x00000020) == 0x00000020); + return ((bitField0_ & 0x00000010) == 0x00000010); } /** - * optional string langName = 6; - * - *
-     * TODO missing 'lang'
-     * 
+ * optional string langName = 5; */ public java.lang.String getLangName() { java.lang.Object ref = langName_; @@ -4408,11 +4302,7 @@ public final class Common { } } /** - * optional string langName = 6; - * - *
-     * TODO missing 'lang'
-     * 
+ * optional string langName = 5; */ public com.google.protobuf.ByteString getLangNameBytes() { @@ -4432,7 +4322,6 @@ public final class Common { key_ = ""; name_ = ""; lang_ = ""; - desc_ = ""; status_ = org.sonarqube.ws.Common.RuleStatus.BETA; langName_ = ""; } @@ -4459,13 +4348,10 @@ public final class Common { output.writeBytes(3, getLangBytes()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeBytes(4, getDescBytes()); + output.writeEnum(4, status_.getNumber()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeEnum(5, status_.getNumber()); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - output.writeBytes(6, getLangNameBytes()); + output.writeBytes(5, getLangNameBytes()); } getUnknownFields().writeTo(output); } @@ -4490,15 +4376,11 @@ public final class Common { } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, getDescBytes()); + .computeEnumSize(4, status_.getNumber()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(5, status_.getNumber()); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(6, getLangNameBytes()); + .computeBytesSize(5, getLangNameBytes()); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; @@ -4623,12 +4505,10 @@ public final class Common { bitField0_ = (bitField0_ & ~0x00000002); lang_ = ""; bitField0_ = (bitField0_ & ~0x00000004); - desc_ = ""; - bitField0_ = (bitField0_ & ~0x00000008); status_ = org.sonarqube.ws.Common.RuleStatus.BETA; - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000008); langName_ = ""; - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000010); return this; } @@ -4672,14 +4552,10 @@ public final class Common { if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } - result.desc_ = desc_; + result.status_ = status_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } - result.status_ = status_; - if (((from_bitField0_ & 0x00000020) == 0x00000020)) { - to_bitField0_ |= 0x00000020; - } result.langName_ = langName_; result.bitField0_ = to_bitField0_; onBuilt(); @@ -4712,16 +4588,11 @@ public final class Common { lang_ = other.lang_; onChanged(); } - if (other.hasDesc()) { - bitField0_ |= 0x00000008; - desc_ = other.desc_; - onChanged(); - } if (other.hasStatus()) { setStatus(other.getStatus()); } if (other.hasLangName()) { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000010; langName_ = other.langName_; onChanged(); } @@ -4980,136 +4851,36 @@ public final class Common { return this; } - private java.lang.Object desc_ = ""; - /** - * optional string desc = 4; - * - *
-       * TODO what's the format ?
-       * 
- */ - public boolean hasDesc() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional string desc = 4; - * - *
-       * TODO what's the format ?
-       * 
- */ - public java.lang.String getDesc() { - java.lang.Object ref = desc_; - 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()) { - desc_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string desc = 4; - * - *
-       * TODO what's the format ?
-       * 
- */ - public com.google.protobuf.ByteString - getDescBytes() { - java.lang.Object ref = desc_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - desc_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string desc = 4; - * - *
-       * TODO what's the format ?
-       * 
- */ - public Builder setDesc( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - desc_ = value; - onChanged(); - return this; - } - /** - * optional string desc = 4; - * - *
-       * TODO what's the format ?
-       * 
- */ - public Builder clearDesc() { - bitField0_ = (bitField0_ & ~0x00000008); - desc_ = getDefaultInstance().getDesc(); - onChanged(); - return this; - } - /** - * optional string desc = 4; - * - *
-       * TODO what's the format ?
-       * 
- */ - public Builder setDescBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - desc_ = value; - onChanged(); - return this; - } - private org.sonarqube.ws.Common.RuleStatus status_ = org.sonarqube.ws.Common.RuleStatus.BETA; /** - * optional .sonarqube.ws.RuleStatus status = 5; + * optional .sonarqube.ws.RuleStatus status = 4; */ public boolean hasStatus() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000008) == 0x00000008); } /** - * optional .sonarqube.ws.RuleStatus status = 5; + * optional .sonarqube.ws.RuleStatus status = 4; */ public org.sonarqube.ws.Common.RuleStatus getStatus() { return status_; } /** - * optional .sonarqube.ws.RuleStatus status = 5; + * optional .sonarqube.ws.RuleStatus status = 4; */ public Builder setStatus(org.sonarqube.ws.Common.RuleStatus value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000008; status_ = value; onChanged(); return this; } /** - * optional .sonarqube.ws.RuleStatus status = 5; + * optional .sonarqube.ws.RuleStatus status = 4; */ public Builder clearStatus() { - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000008); status_ = org.sonarqube.ws.Common.RuleStatus.BETA; onChanged(); return this; @@ -5117,21 +4888,13 @@ public final class Common { private java.lang.Object langName_ = ""; /** - * optional string langName = 6; - * - *
-       * TODO missing 'lang'
-       * 
+ * optional string langName = 5; */ public boolean hasLangName() { - return ((bitField0_ & 0x00000020) == 0x00000020); + return ((bitField0_ & 0x00000010) == 0x00000010); } /** - * optional string langName = 6; - * - *
-       * TODO missing 'lang'
-       * 
+ * optional string langName = 5; */ public java.lang.String getLangName() { java.lang.Object ref = langName_; @@ -5148,11 +4911,7 @@ public final class Common { } } /** - * optional string langName = 6; - * - *
-       * TODO missing 'lang'
-       * 
+ * optional string langName = 5; */ public com.google.protobuf.ByteString getLangNameBytes() { @@ -5168,48 +4927,36 @@ public final class Common { } } /** - * optional string langName = 6; - * - *
-       * TODO missing 'lang'
-       * 
+ * optional string langName = 5; */ public Builder setLangName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000010; langName_ = value; onChanged(); return this; } /** - * optional string langName = 6; - * - *
-       * TODO missing 'lang'
-       * 
+ * optional string langName = 5; */ public Builder clearLangName() { - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000010); langName_ = getDefaultInstance().getLangName(); onChanged(); return this; } /** - * optional string langName = 6; - * - *
-       * TODO missing 'lang'
-       * 
+ * optional string langName = 5; */ public Builder setLangNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000010; langName_ = value; onChanged(); return this; @@ -6142,16 +5889,15 @@ public final class Common { "\001 \001(\t\022\013\n\003key\030\002 \001(\t\022\017\n\007enabled\030\003 \001(\010\022\021\n\tq" + "ualifier\030\004 \001(\t\022\014\n\004name\030\005 \001(\t\022\020\n\010longName" + "\030\006 \001(\t\022\014\n\004path\030\007 \001(\t\022\017\n\007project\030\010 \001(\t\022\022\n" + - "\nsubProject\030\t \001(\t\"y\n\004Rule\022\013\n\003key\030\001 \001(\t\022\014", - "\n\004name\030\002 \001(\t\022\014\n\004lang\030\003 \001(\t\022\014\n\004desc\030\004 \001(\t" + - "\022(\n\006status\030\005 \001(\0162\030.sonarqube.ws.RuleStat" + - "us\022\020\n\010langName\030\006 \001(\t\"B\n\004User\022\r\n\005login\030\001 " + - "\001(\t\022\014\n\004name\030\002 \001(\t\022\r\n\005email\030\003 \001(\t\022\016\n\006acti" + - "ve\030\004 \001(\010*E\n\010Severity\022\010\n\004INFO\020\000\022\t\n\005MINOR\020" + - "\001\022\t\n\005MAJOR\020\002\022\014\n\010CRITICAL\020\003\022\013\n\007BLOCKER\020\004*" + - ">\n\nRuleStatus\022\010\n\004BETA\020\000\022\016\n\nDEPRECATED\020\001\022" + - "\t\n\005READY\020\002\022\013\n\007REMOVED\020\003B\034\n\020org.sonarqube" + - ".wsB\006CommonH\001" + "\nsubProject\030\t \001(\t\"k\n\004Rule\022\013\n\003key\030\001 \001(\t\022\014", + "\n\004name\030\002 \001(\t\022\014\n\004lang\030\003 \001(\t\022(\n\006status\030\004 \001" + + "(\0162\030.sonarqube.ws.RuleStatus\022\020\n\010langName" + + "\030\005 \001(\t\"B\n\004User\022\r\n\005login\030\001 \001(\t\022\014\n\004name\030\002 " + + "\001(\t\022\r\n\005email\030\003 \001(\t\022\016\n\006active\030\004 \001(\010*E\n\010Se" + + "verity\022\010\n\004INFO\020\000\022\t\n\005MINOR\020\001\022\t\n\005MAJOR\020\002\022\014" + + "\n\010CRITICAL\020\003\022\013\n\007BLOCKER\020\004*>\n\nRuleStatus\022" + + "\010\n\004BETA\020\000\022\016\n\nDEPRECATED\020\001\022\t\n\005READY\020\002\022\013\n\007" + + "REMOVED\020\003B\034\n\020org.sonarqube.wsB\006CommonH\001" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -6194,7 +5940,7 @@ public final class Common { internal_static_sonarqube_ws_Rule_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_sonarqube_ws_Rule_descriptor, - new java.lang.String[] { "Key", "Name", "Lang", "Desc", "Status", "LangName", }); + new java.lang.String[] { "Key", "Name", "Lang", "Status", "LangName", }); internal_static_sonarqube_ws_User_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_sonarqube_ws_User_fieldAccessorTable = new diff --git a/sonar-ws/src/main/gen-java/org/sonarqube/ws/Issues.java b/sonar-ws/src/main/gen-java/org/sonarqube/ws/Issues.java index 15fb9df79dc..d67d3b6bebc 100644 --- a/sonar-ws/src/main/gen-java/org/sonarqube/ws/Issues.java +++ b/sonar-ws/src/main/gen-java/org/sonarqube/ws/Issues.java @@ -94,241 +94,199 @@ public final class Issues { int index); /** - * optional bool projectsPresentIfEmpty = 8; - */ - boolean hasProjectsPresentIfEmpty(); - /** - * optional bool projectsPresentIfEmpty = 8; - */ - boolean getProjectsPresentIfEmpty(); - - /** - * repeated .sonarqube.ws.Component projects = 9; - */ - java.util.List - getProjectsList(); - /** - * repeated .sonarqube.ws.Component projects = 9; - */ - org.sonarqube.ws.Common.Component getProjects(int index); - /** - * repeated .sonarqube.ws.Component projects = 9; - */ - int getProjectsCount(); - /** - * repeated .sonarqube.ws.Component projects = 9; - */ - java.util.List - getProjectsOrBuilderList(); - /** - * repeated .sonarqube.ws.Component projects = 9; - */ - org.sonarqube.ws.Common.ComponentOrBuilder getProjectsOrBuilder( - int index); - - /** - * optional bool componentsPresentIfEmpty = 10; - */ - boolean hasComponentsPresentIfEmpty(); - /** - * optional bool componentsPresentIfEmpty = 10; - */ - boolean getComponentsPresentIfEmpty(); - - /** - * repeated .sonarqube.ws.Component components = 11; + * repeated .sonarqube.ws.Component components = 7; */ java.util.List getComponentsList(); /** - * repeated .sonarqube.ws.Component components = 11; + * repeated .sonarqube.ws.Component components = 7; */ org.sonarqube.ws.Common.Component getComponents(int index); /** - * repeated .sonarqube.ws.Component components = 11; + * repeated .sonarqube.ws.Component components = 7; */ int getComponentsCount(); /** - * repeated .sonarqube.ws.Component components = 11; + * repeated .sonarqube.ws.Component components = 7; */ java.util.List getComponentsOrBuilderList(); /** - * repeated .sonarqube.ws.Component components = 11; + * repeated .sonarqube.ws.Component components = 7; */ org.sonarqube.ws.Common.ComponentOrBuilder getComponentsOrBuilder( int index); /** - * optional bool rulesPresentIfEmpty = 12; + * optional bool rulesPresentIfEmpty = 8; */ boolean hasRulesPresentIfEmpty(); /** - * optional bool rulesPresentIfEmpty = 12; + * optional bool rulesPresentIfEmpty = 8; */ boolean getRulesPresentIfEmpty(); /** - * repeated .sonarqube.ws.Rule rules = 13; + * repeated .sonarqube.ws.Rule rules = 9; */ java.util.List getRulesList(); /** - * repeated .sonarqube.ws.Rule rules = 13; + * repeated .sonarqube.ws.Rule rules = 9; */ org.sonarqube.ws.Common.Rule getRules(int index); /** - * repeated .sonarqube.ws.Rule rules = 13; + * repeated .sonarqube.ws.Rule rules = 9; */ int getRulesCount(); /** - * repeated .sonarqube.ws.Rule rules = 13; + * repeated .sonarqube.ws.Rule rules = 9; */ java.util.List getRulesOrBuilderList(); /** - * repeated .sonarqube.ws.Rule rules = 13; + * repeated .sonarqube.ws.Rule rules = 9; */ org.sonarqube.ws.Common.RuleOrBuilder getRulesOrBuilder( int index); /** - * optional bool usersPresentIfEmpty = 14; + * optional bool usersPresentIfEmpty = 10; */ boolean hasUsersPresentIfEmpty(); /** - * optional bool usersPresentIfEmpty = 14; + * optional bool usersPresentIfEmpty = 10; */ boolean getUsersPresentIfEmpty(); /** - * repeated .sonarqube.ws.User users = 15; + * repeated .sonarqube.ws.User users = 11; */ java.util.List getUsersList(); /** - * repeated .sonarqube.ws.User users = 15; + * repeated .sonarqube.ws.User users = 11; */ org.sonarqube.ws.Common.User getUsers(int index); /** - * repeated .sonarqube.ws.User users = 15; + * repeated .sonarqube.ws.User users = 11; */ int getUsersCount(); /** - * repeated .sonarqube.ws.User users = 15; + * repeated .sonarqube.ws.User users = 11; */ java.util.List getUsersOrBuilderList(); /** - * repeated .sonarqube.ws.User users = 15; + * repeated .sonarqube.ws.User users = 11; */ org.sonarqube.ws.Common.UserOrBuilder getUsersOrBuilder( int index); /** - * optional bool actionPlansPresentIfEmpty = 16; + * optional bool actionPlansPresentIfEmpty = 12; */ boolean hasActionPlansPresentIfEmpty(); /** - * optional bool actionPlansPresentIfEmpty = 16; + * optional bool actionPlansPresentIfEmpty = 12; */ boolean getActionPlansPresentIfEmpty(); /** - * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 17; + * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 13; */ java.util.List getActionPlansList(); /** - * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 17; + * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 13; */ org.sonarqube.ws.Issues.ActionPlan getActionPlans(int index); /** - * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 17; + * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 13; */ int getActionPlansCount(); /** - * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 17; + * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 13; */ java.util.List getActionPlansOrBuilderList(); /** - * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 17; + * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 13; */ org.sonarqube.ws.Issues.ActionPlanOrBuilder getActionPlansOrBuilder( int index); /** - * optional bool languagesPresentIfEmpty = 18; + * optional bool languagesPresentIfEmpty = 14; */ boolean hasLanguagesPresentIfEmpty(); /** - * optional bool languagesPresentIfEmpty = 18; + * optional bool languagesPresentIfEmpty = 14; */ boolean getLanguagesPresentIfEmpty(); /** - * repeated .sonarqube.ws.issues.Language languages = 19; + * repeated .sonarqube.ws.issues.Language languages = 15; */ java.util.List getLanguagesList(); /** - * repeated .sonarqube.ws.issues.Language languages = 19; + * repeated .sonarqube.ws.issues.Language languages = 15; */ org.sonarqube.ws.Issues.Language getLanguages(int index); /** - * repeated .sonarqube.ws.issues.Language languages = 19; + * repeated .sonarqube.ws.issues.Language languages = 15; */ int getLanguagesCount(); /** - * repeated .sonarqube.ws.issues.Language languages = 19; + * repeated .sonarqube.ws.issues.Language languages = 15; */ java.util.List getLanguagesOrBuilderList(); /** - * repeated .sonarqube.ws.issues.Language languages = 19; + * repeated .sonarqube.ws.issues.Language languages = 15; */ org.sonarqube.ws.Issues.LanguageOrBuilder getLanguagesOrBuilder( int index); /** - * repeated .sonarqube.ws.Facet facets = 20; + * optional bool facetsPresentIfEmpty = 16; + */ + boolean hasFacetsPresentIfEmpty(); + /** + * optional bool facetsPresentIfEmpty = 16; + */ + boolean getFacetsPresentIfEmpty(); + + /** + * repeated .sonarqube.ws.Facet facets = 17; */ java.util.List getFacetsList(); /** - * repeated .sonarqube.ws.Facet facets = 20; + * repeated .sonarqube.ws.Facet facets = 17; */ org.sonarqube.ws.Common.Facet getFacets(int index); /** - * repeated .sonarqube.ws.Facet facets = 20; + * repeated .sonarqube.ws.Facet facets = 17; */ int getFacetsCount(); /** - * repeated .sonarqube.ws.Facet facets = 20; + * repeated .sonarqube.ws.Facet facets = 17; */ java.util.List getFacetsOrBuilderList(); /** - * repeated .sonarqube.ws.Facet facets = 20; + * repeated .sonarqube.ws.Facet facets = 17; */ org.sonarqube.ws.Common.FacetOrBuilder getFacetsOrBuilder( int index); - - /** - * optional bool facetsPresentIfEmpty = 21; - */ - boolean hasFacetsPresentIfEmpty(); - /** - * optional bool facetsPresentIfEmpty = 21; - */ - boolean getFacetsPresentIfEmpty(); } /** * Protobuf type {@code sonarqube.ws.issues.Search} * *
-   * Response of URL api/issues/search
+   * Response of GET api/issues/search
    * 
*/ public static final class Search extends @@ -421,97 +379,79 @@ public final class Issues { issues_.add(input.readMessage(org.sonarqube.ws.Issues.Issue.PARSER, extensionRegistry)); break; } - case 64: { - bitField0_ |= 0x00000020; - projectsPresentIfEmpty_ = input.readBool(); - break; - } - case 74: { - if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) { - projects_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000080; - } - projects_.add(input.readMessage(org.sonarqube.ws.Common.Component.PARSER, extensionRegistry)); - break; - } - case 80: { - bitField0_ |= 0x00000040; - componentsPresentIfEmpty_ = input.readBool(); - break; - } - case 90: { - if (!((mutable_bitField0_ & 0x00000200) == 0x00000200)) { + case 58: { + if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { components_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000200; + mutable_bitField0_ |= 0x00000040; } components_.add(input.readMessage(org.sonarqube.ws.Common.Component.PARSER, extensionRegistry)); break; } - case 96: { - bitField0_ |= 0x00000080; + case 64: { + bitField0_ |= 0x00000020; rulesPresentIfEmpty_ = input.readBool(); break; } - case 106: { - if (!((mutable_bitField0_ & 0x00000800) == 0x00000800)) { + case 74: { + if (!((mutable_bitField0_ & 0x00000100) == 0x00000100)) { rules_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000800; + mutable_bitField0_ |= 0x00000100; } rules_.add(input.readMessage(org.sonarqube.ws.Common.Rule.PARSER, extensionRegistry)); break; } - case 112: { - bitField0_ |= 0x00000100; + case 80: { + bitField0_ |= 0x00000040; usersPresentIfEmpty_ = input.readBool(); break; } - case 122: { - if (!((mutable_bitField0_ & 0x00002000) == 0x00002000)) { + case 90: { + if (!((mutable_bitField0_ & 0x00000400) == 0x00000400)) { users_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00002000; + mutable_bitField0_ |= 0x00000400; } users_.add(input.readMessage(org.sonarqube.ws.Common.User.PARSER, extensionRegistry)); break; } - case 128: { - bitField0_ |= 0x00000200; + case 96: { + bitField0_ |= 0x00000080; actionPlansPresentIfEmpty_ = input.readBool(); break; } - case 138: { - if (!((mutable_bitField0_ & 0x00008000) == 0x00008000)) { + case 106: { + if (!((mutable_bitField0_ & 0x00001000) == 0x00001000)) { actionPlans_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00008000; + mutable_bitField0_ |= 0x00001000; } actionPlans_.add(input.readMessage(org.sonarqube.ws.Issues.ActionPlan.PARSER, extensionRegistry)); break; } - case 144: { - bitField0_ |= 0x00000400; + case 112: { + bitField0_ |= 0x00000100; languagesPresentIfEmpty_ = input.readBool(); break; } - case 154: { - if (!((mutable_bitField0_ & 0x00020000) == 0x00020000)) { + case 122: { + if (!((mutable_bitField0_ & 0x00004000) == 0x00004000)) { languages_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00020000; + mutable_bitField0_ |= 0x00004000; } languages_.add(input.readMessage(org.sonarqube.ws.Issues.Language.PARSER, extensionRegistry)); break; } - case 162: { - if (!((mutable_bitField0_ & 0x00040000) == 0x00040000)) { + case 128: { + bitField0_ |= 0x00000200; + facetsPresentIfEmpty_ = input.readBool(); + break; + } + case 138: { + if (!((mutable_bitField0_ & 0x00010000) == 0x00010000)) { facets_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00040000; + mutable_bitField0_ |= 0x00010000; } facets_.add(input.readMessage(org.sonarqube.ws.Common.Facet.PARSER, extensionRegistry)); break; } - case 168: { - bitField0_ |= 0x00000800; - facetsPresentIfEmpty_ = input.readBool(); - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -523,25 +463,22 @@ public final class Issues { if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) { issues_ = java.util.Collections.unmodifiableList(issues_); } - if (((mutable_bitField0_ & 0x00000080) == 0x00000080)) { - projects_ = java.util.Collections.unmodifiableList(projects_); - } - if (((mutable_bitField0_ & 0x00000200) == 0x00000200)) { + if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) { components_ = java.util.Collections.unmodifiableList(components_); } - if (((mutable_bitField0_ & 0x00000800) == 0x00000800)) { + if (((mutable_bitField0_ & 0x00000100) == 0x00000100)) { rules_ = java.util.Collections.unmodifiableList(rules_); } - if (((mutable_bitField0_ & 0x00002000) == 0x00002000)) { + if (((mutable_bitField0_ & 0x00000400) == 0x00000400)) { users_ = java.util.Collections.unmodifiableList(users_); } - if (((mutable_bitField0_ & 0x00008000) == 0x00008000)) { + if (((mutable_bitField0_ & 0x00001000) == 0x00001000)) { actionPlans_ = java.util.Collections.unmodifiableList(actionPlans_); } - if (((mutable_bitField0_ & 0x00020000) == 0x00020000)) { + if (((mutable_bitField0_ & 0x00004000) == 0x00004000)) { languages_ = java.util.Collections.unmodifiableList(languages_); } - if (((mutable_bitField0_ & 0x00040000) == 0x00040000)) { + if (((mutable_bitField0_ & 0x00010000) == 0x00010000)) { facets_ = java.util.Collections.unmodifiableList(facets_); } this.unknownFields = unknownFields.build(); @@ -700,356 +637,291 @@ public final class Issues { return issues_.get(index); } - public static final int PROJECTSPRESENTIFEMPTY_FIELD_NUMBER = 8; - private boolean projectsPresentIfEmpty_; - /** - * optional bool projectsPresentIfEmpty = 8; - */ - public boolean hasProjectsPresentIfEmpty() { - return ((bitField0_ & 0x00000020) == 0x00000020); - } - /** - * optional bool projectsPresentIfEmpty = 8; - */ - public boolean getProjectsPresentIfEmpty() { - return projectsPresentIfEmpty_; - } - - public static final int PROJECTS_FIELD_NUMBER = 9; - private java.util.List projects_; - /** - * repeated .sonarqube.ws.Component projects = 9; - */ - public java.util.List getProjectsList() { - return projects_; - } - /** - * repeated .sonarqube.ws.Component projects = 9; - */ - public java.util.List - getProjectsOrBuilderList() { - return projects_; - } - /** - * repeated .sonarqube.ws.Component projects = 9; - */ - public int getProjectsCount() { - return projects_.size(); - } - /** - * repeated .sonarqube.ws.Component projects = 9; - */ - public org.sonarqube.ws.Common.Component getProjects(int index) { - return projects_.get(index); - } - /** - * repeated .sonarqube.ws.Component projects = 9; - */ - public org.sonarqube.ws.Common.ComponentOrBuilder getProjectsOrBuilder( - int index) { - return projects_.get(index); - } - - public static final int COMPONENTSPRESENTIFEMPTY_FIELD_NUMBER = 10; - private boolean componentsPresentIfEmpty_; - /** - * optional bool componentsPresentIfEmpty = 10; - */ - public boolean hasComponentsPresentIfEmpty() { - return ((bitField0_ & 0x00000040) == 0x00000040); - } - /** - * optional bool componentsPresentIfEmpty = 10; - */ - public boolean getComponentsPresentIfEmpty() { - return componentsPresentIfEmpty_; - } - - public static final int COMPONENTS_FIELD_NUMBER = 11; + public static final int COMPONENTS_FIELD_NUMBER = 7; private java.util.List components_; /** - * repeated .sonarqube.ws.Component components = 11; + * repeated .sonarqube.ws.Component components = 7; */ public java.util.List getComponentsList() { return components_; } /** - * repeated .sonarqube.ws.Component components = 11; + * repeated .sonarqube.ws.Component components = 7; */ public java.util.List getComponentsOrBuilderList() { return components_; } /** - * repeated .sonarqube.ws.Component components = 11; + * repeated .sonarqube.ws.Component components = 7; */ public int getComponentsCount() { return components_.size(); } /** - * repeated .sonarqube.ws.Component components = 11; + * repeated .sonarqube.ws.Component components = 7; */ public org.sonarqube.ws.Common.Component getComponents(int index) { return components_.get(index); } /** - * repeated .sonarqube.ws.Component components = 11; + * repeated .sonarqube.ws.Component components = 7; */ public org.sonarqube.ws.Common.ComponentOrBuilder getComponentsOrBuilder( int index) { return components_.get(index); } - public static final int RULESPRESENTIFEMPTY_FIELD_NUMBER = 12; + public static final int RULESPRESENTIFEMPTY_FIELD_NUMBER = 8; private boolean rulesPresentIfEmpty_; /** - * optional bool rulesPresentIfEmpty = 12; + * optional bool rulesPresentIfEmpty = 8; */ public boolean hasRulesPresentIfEmpty() { - return ((bitField0_ & 0x00000080) == 0x00000080); + return ((bitField0_ & 0x00000020) == 0x00000020); } /** - * optional bool rulesPresentIfEmpty = 12; + * optional bool rulesPresentIfEmpty = 8; */ public boolean getRulesPresentIfEmpty() { return rulesPresentIfEmpty_; } - public static final int RULES_FIELD_NUMBER = 13; + public static final int RULES_FIELD_NUMBER = 9; private java.util.List rules_; /** - * repeated .sonarqube.ws.Rule rules = 13; + * repeated .sonarqube.ws.Rule rules = 9; */ public java.util.List getRulesList() { return rules_; } /** - * repeated .sonarqube.ws.Rule rules = 13; + * repeated .sonarqube.ws.Rule rules = 9; */ public java.util.List getRulesOrBuilderList() { return rules_; } /** - * repeated .sonarqube.ws.Rule rules = 13; + * repeated .sonarqube.ws.Rule rules = 9; */ public int getRulesCount() { return rules_.size(); } /** - * repeated .sonarqube.ws.Rule rules = 13; + * repeated .sonarqube.ws.Rule rules = 9; */ public org.sonarqube.ws.Common.Rule getRules(int index) { return rules_.get(index); } /** - * repeated .sonarqube.ws.Rule rules = 13; + * repeated .sonarqube.ws.Rule rules = 9; */ public org.sonarqube.ws.Common.RuleOrBuilder getRulesOrBuilder( int index) { return rules_.get(index); } - public static final int USERSPRESENTIFEMPTY_FIELD_NUMBER = 14; + public static final int USERSPRESENTIFEMPTY_FIELD_NUMBER = 10; private boolean usersPresentIfEmpty_; /** - * optional bool usersPresentIfEmpty = 14; + * optional bool usersPresentIfEmpty = 10; */ public boolean hasUsersPresentIfEmpty() { - return ((bitField0_ & 0x00000100) == 0x00000100); + return ((bitField0_ & 0x00000040) == 0x00000040); } /** - * optional bool usersPresentIfEmpty = 14; + * optional bool usersPresentIfEmpty = 10; */ public boolean getUsersPresentIfEmpty() { return usersPresentIfEmpty_; } - public static final int USERS_FIELD_NUMBER = 15; + public static final int USERS_FIELD_NUMBER = 11; private java.util.List users_; /** - * repeated .sonarqube.ws.User users = 15; + * repeated .sonarqube.ws.User users = 11; */ public java.util.List getUsersList() { return users_; } /** - * repeated .sonarqube.ws.User users = 15; + * repeated .sonarqube.ws.User users = 11; */ public java.util.List getUsersOrBuilderList() { return users_; } /** - * repeated .sonarqube.ws.User users = 15; + * repeated .sonarqube.ws.User users = 11; */ public int getUsersCount() { return users_.size(); } /** - * repeated .sonarqube.ws.User users = 15; + * repeated .sonarqube.ws.User users = 11; */ public org.sonarqube.ws.Common.User getUsers(int index) { return users_.get(index); } /** - * repeated .sonarqube.ws.User users = 15; + * repeated .sonarqube.ws.User users = 11; */ public org.sonarqube.ws.Common.UserOrBuilder getUsersOrBuilder( int index) { return users_.get(index); } - public static final int ACTIONPLANSPRESENTIFEMPTY_FIELD_NUMBER = 16; + public static final int ACTIONPLANSPRESENTIFEMPTY_FIELD_NUMBER = 12; private boolean actionPlansPresentIfEmpty_; /** - * optional bool actionPlansPresentIfEmpty = 16; + * optional bool actionPlansPresentIfEmpty = 12; */ public boolean hasActionPlansPresentIfEmpty() { - return ((bitField0_ & 0x00000200) == 0x00000200); + return ((bitField0_ & 0x00000080) == 0x00000080); } /** - * optional bool actionPlansPresentIfEmpty = 16; + * optional bool actionPlansPresentIfEmpty = 12; */ public boolean getActionPlansPresentIfEmpty() { return actionPlansPresentIfEmpty_; } - public static final int ACTIONPLANS_FIELD_NUMBER = 17; + public static final int ACTIONPLANS_FIELD_NUMBER = 13; private java.util.List actionPlans_; /** - * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 17; + * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 13; */ public java.util.List getActionPlansList() { return actionPlans_; } /** - * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 17; + * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 13; */ public java.util.List getActionPlansOrBuilderList() { return actionPlans_; } /** - * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 17; + * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 13; */ public int getActionPlansCount() { return actionPlans_.size(); } /** - * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 17; + * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 13; */ public org.sonarqube.ws.Issues.ActionPlan getActionPlans(int index) { return actionPlans_.get(index); } /** - * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 17; + * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 13; */ public org.sonarqube.ws.Issues.ActionPlanOrBuilder getActionPlansOrBuilder( int index) { return actionPlans_.get(index); } - public static final int LANGUAGESPRESENTIFEMPTY_FIELD_NUMBER = 18; + public static final int LANGUAGESPRESENTIFEMPTY_FIELD_NUMBER = 14; private boolean languagesPresentIfEmpty_; /** - * optional bool languagesPresentIfEmpty = 18; + * optional bool languagesPresentIfEmpty = 14; */ public boolean hasLanguagesPresentIfEmpty() { - return ((bitField0_ & 0x00000400) == 0x00000400); + return ((bitField0_ & 0x00000100) == 0x00000100); } /** - * optional bool languagesPresentIfEmpty = 18; + * optional bool languagesPresentIfEmpty = 14; */ public boolean getLanguagesPresentIfEmpty() { return languagesPresentIfEmpty_; } - public static final int LANGUAGES_FIELD_NUMBER = 19; + public static final int LANGUAGES_FIELD_NUMBER = 15; private java.util.List languages_; /** - * repeated .sonarqube.ws.issues.Language languages = 19; + * repeated .sonarqube.ws.issues.Language languages = 15; */ public java.util.List getLanguagesList() { return languages_; } /** - * repeated .sonarqube.ws.issues.Language languages = 19; + * repeated .sonarqube.ws.issues.Language languages = 15; */ public java.util.List getLanguagesOrBuilderList() { return languages_; } /** - * repeated .sonarqube.ws.issues.Language languages = 19; + * repeated .sonarqube.ws.issues.Language languages = 15; */ public int getLanguagesCount() { return languages_.size(); } /** - * repeated .sonarqube.ws.issues.Language languages = 19; + * repeated .sonarqube.ws.issues.Language languages = 15; */ public org.sonarqube.ws.Issues.Language getLanguages(int index) { return languages_.get(index); } /** - * repeated .sonarqube.ws.issues.Language languages = 19; + * repeated .sonarqube.ws.issues.Language languages = 15; */ public org.sonarqube.ws.Issues.LanguageOrBuilder getLanguagesOrBuilder( int index) { return languages_.get(index); } - public static final int FACETS_FIELD_NUMBER = 20; + public static final int FACETSPRESENTIFEMPTY_FIELD_NUMBER = 16; + private boolean facetsPresentIfEmpty_; + /** + * optional bool facetsPresentIfEmpty = 16; + */ + public boolean hasFacetsPresentIfEmpty() { + return ((bitField0_ & 0x00000200) == 0x00000200); + } + /** + * optional bool facetsPresentIfEmpty = 16; + */ + public boolean getFacetsPresentIfEmpty() { + return facetsPresentIfEmpty_; + } + + public static final int FACETS_FIELD_NUMBER = 17; private java.util.List facets_; /** - * repeated .sonarqube.ws.Facet facets = 20; + * repeated .sonarqube.ws.Facet facets = 17; */ public java.util.List getFacetsList() { return facets_; } /** - * repeated .sonarqube.ws.Facet facets = 20; + * repeated .sonarqube.ws.Facet facets = 17; */ public java.util.List getFacetsOrBuilderList() { return facets_; } /** - * repeated .sonarqube.ws.Facet facets = 20; + * repeated .sonarqube.ws.Facet facets = 17; */ public int getFacetsCount() { return facets_.size(); } /** - * repeated .sonarqube.ws.Facet facets = 20; + * repeated .sonarqube.ws.Facet facets = 17; */ public org.sonarqube.ws.Common.Facet getFacets(int index) { return facets_.get(index); } /** - * repeated .sonarqube.ws.Facet facets = 20; + * repeated .sonarqube.ws.Facet facets = 17; */ public org.sonarqube.ws.Common.FacetOrBuilder getFacetsOrBuilder( int index) { return facets_.get(index); } - public static final int FACETSPRESENTIFEMPTY_FIELD_NUMBER = 21; - private boolean facetsPresentIfEmpty_; - /** - * optional bool facetsPresentIfEmpty = 21; - */ - public boolean hasFacetsPresentIfEmpty() { - return ((bitField0_ & 0x00000800) == 0x00000800); - } - /** - * optional bool facetsPresentIfEmpty = 21; - */ - public boolean getFacetsPresentIfEmpty() { - return facetsPresentIfEmpty_; - } - private void initFields() { total_ = 0L; p_ = 0L; @@ -1057,9 +929,6 @@ public final class Issues { paging_ = org.sonarqube.ws.Common.Paging.getDefaultInstance(); debtTotal_ = 0L; issues_ = java.util.Collections.emptyList(); - projectsPresentIfEmpty_ = false; - projects_ = java.util.Collections.emptyList(); - componentsPresentIfEmpty_ = false; components_ = java.util.Collections.emptyList(); rulesPresentIfEmpty_ = false; rules_ = java.util.Collections.emptyList(); @@ -1069,8 +938,8 @@ public final class Issues { actionPlans_ = java.util.Collections.emptyList(); languagesPresentIfEmpty_ = false; languages_ = java.util.Collections.emptyList(); - facets_ = java.util.Collections.emptyList(); facetsPresentIfEmpty_ = false; + facets_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { @@ -1103,47 +972,38 @@ public final class Issues { for (int i = 0; i < issues_.size(); i++) { output.writeMessage(6, issues_.get(i)); } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - output.writeBool(8, projectsPresentIfEmpty_); - } - for (int i = 0; i < projects_.size(); i++) { - output.writeMessage(9, projects_.get(i)); - } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - output.writeBool(10, componentsPresentIfEmpty_); - } for (int i = 0; i < components_.size(); i++) { - output.writeMessage(11, components_.get(i)); + output.writeMessage(7, components_.get(i)); } - if (((bitField0_ & 0x00000080) == 0x00000080)) { - output.writeBool(12, rulesPresentIfEmpty_); + if (((bitField0_ & 0x00000020) == 0x00000020)) { + output.writeBool(8, rulesPresentIfEmpty_); } for (int i = 0; i < rules_.size(); i++) { - output.writeMessage(13, rules_.get(i)); + output.writeMessage(9, rules_.get(i)); } - if (((bitField0_ & 0x00000100) == 0x00000100)) { - output.writeBool(14, usersPresentIfEmpty_); + if (((bitField0_ & 0x00000040) == 0x00000040)) { + output.writeBool(10, usersPresentIfEmpty_); } for (int i = 0; i < users_.size(); i++) { - output.writeMessage(15, users_.get(i)); + output.writeMessage(11, users_.get(i)); } - if (((bitField0_ & 0x00000200) == 0x00000200)) { - output.writeBool(16, actionPlansPresentIfEmpty_); + if (((bitField0_ & 0x00000080) == 0x00000080)) { + output.writeBool(12, actionPlansPresentIfEmpty_); } for (int i = 0; i < actionPlans_.size(); i++) { - output.writeMessage(17, actionPlans_.get(i)); + output.writeMessage(13, actionPlans_.get(i)); } - if (((bitField0_ & 0x00000400) == 0x00000400)) { - output.writeBool(18, languagesPresentIfEmpty_); + if (((bitField0_ & 0x00000100) == 0x00000100)) { + output.writeBool(14, languagesPresentIfEmpty_); } for (int i = 0; i < languages_.size(); i++) { - output.writeMessage(19, languages_.get(i)); + output.writeMessage(15, languages_.get(i)); } - for (int i = 0; i < facets_.size(); i++) { - output.writeMessage(20, facets_.get(i)); + if (((bitField0_ & 0x00000200) == 0x00000200)) { + output.writeBool(16, facetsPresentIfEmpty_); } - if (((bitField0_ & 0x00000800) == 0x00000800)) { - output.writeBool(21, facetsPresentIfEmpty_); + for (int i = 0; i < facets_.size(); i++) { + output.writeMessage(17, facets_.get(i)); } getUnknownFields().writeTo(output); } @@ -1178,61 +1038,49 @@ public final class Issues { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, issues_.get(i)); } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(8, projectsPresentIfEmpty_); - } - for (int i = 0; i < projects_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, projects_.get(i)); - } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(10, componentsPresentIfEmpty_); - } for (int i = 0; i < components_.size(); i++) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, components_.get(i)); + .computeMessageSize(7, components_.get(i)); } - if (((bitField0_ & 0x00000080) == 0x00000080)) { + if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream - .computeBoolSize(12, rulesPresentIfEmpty_); + .computeBoolSize(8, rulesPresentIfEmpty_); } for (int i = 0; i < rules_.size(); i++) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(13, rules_.get(i)); + .computeMessageSize(9, rules_.get(i)); } - if (((bitField0_ & 0x00000100) == 0x00000100)) { + if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream - .computeBoolSize(14, usersPresentIfEmpty_); + .computeBoolSize(10, usersPresentIfEmpty_); } for (int i = 0; i < users_.size(); i++) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(15, users_.get(i)); + .computeMessageSize(11, users_.get(i)); } - if (((bitField0_ & 0x00000200) == 0x00000200)) { + if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.CodedOutputStream - .computeBoolSize(16, actionPlansPresentIfEmpty_); + .computeBoolSize(12, actionPlansPresentIfEmpty_); } for (int i = 0; i < actionPlans_.size(); i++) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(17, actionPlans_.get(i)); + .computeMessageSize(13, actionPlans_.get(i)); } - if (((bitField0_ & 0x00000400) == 0x00000400)) { + if (((bitField0_ & 0x00000100) == 0x00000100)) { size += com.google.protobuf.CodedOutputStream - .computeBoolSize(18, languagesPresentIfEmpty_); + .computeBoolSize(14, languagesPresentIfEmpty_); } for (int i = 0; i < languages_.size(); i++) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(19, languages_.get(i)); + .computeMessageSize(15, languages_.get(i)); } - for (int i = 0; i < facets_.size(); i++) { + if (((bitField0_ & 0x00000200) == 0x00000200)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(20, facets_.get(i)); + .computeBoolSize(16, facetsPresentIfEmpty_); } - if (((bitField0_ & 0x00000800) == 0x00000800)) { + for (int i = 0; i < facets_.size(); i++) { size += com.google.protobuf.CodedOutputStream - .computeBoolSize(21, facetsPresentIfEmpty_); + .computeMessageSize(17, facets_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; @@ -1316,7 +1164,7 @@ public final class Issues { * Protobuf type {@code sonarqube.ws.issues.Search} * *
-     * Response of URL api/issues/search
+     * Response of GET api/issues/search
      * 
*/ public static final class Builder extends @@ -1349,7 +1197,6 @@ public final class Issues { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getPagingFieldBuilder(); getIssuesFieldBuilder(); - getProjectsFieldBuilder(); getComponentsFieldBuilder(); getRulesFieldBuilder(); getUsersFieldBuilder(); @@ -1384,62 +1231,52 @@ public final class Issues { } else { issuesBuilder_.clear(); } - projectsPresentIfEmpty_ = false; - bitField0_ = (bitField0_ & ~0x00000040); - if (projectsBuilder_ == null) { - projects_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000080); - } else { - projectsBuilder_.clear(); - } - componentsPresentIfEmpty_ = false; - bitField0_ = (bitField0_ & ~0x00000100); if (componentsBuilder_ == null) { components_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000040); } else { componentsBuilder_.clear(); } rulesPresentIfEmpty_ = false; - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00000080); if (rulesBuilder_ == null) { rules_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00000100); } else { rulesBuilder_.clear(); } usersPresentIfEmpty_ = false; - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00000200); if (usersBuilder_ == null) { users_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00000400); } else { usersBuilder_.clear(); } actionPlansPresentIfEmpty_ = false; - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00000800); if (actionPlansBuilder_ == null) { actionPlans_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00008000); + bitField0_ = (bitField0_ & ~0x00001000); } else { actionPlansBuilder_.clear(); } languagesPresentIfEmpty_ = false; - bitField0_ = (bitField0_ & ~0x00010000); + bitField0_ = (bitField0_ & ~0x00002000); if (languagesBuilder_ == null) { languages_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00020000); + bitField0_ = (bitField0_ & ~0x00004000); } else { languagesBuilder_.clear(); } + facetsPresentIfEmpty_ = false; + bitField0_ = (bitField0_ & ~0x00008000); if (facetsBuilder_ == null) { facets_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00040000); + bitField0_ = (bitField0_ & ~0x00010000); } else { facetsBuilder_.clear(); } - facetsPresentIfEmpty_ = false; - bitField0_ = (bitField0_ & ~0x00080000); return this; } @@ -1501,97 +1338,80 @@ public final class Issues { } else { result.issues_ = issuesBuilder_.build(); } - if (((from_bitField0_ & 0x00000040) == 0x00000040)) { - to_bitField0_ |= 0x00000020; - } - result.projectsPresentIfEmpty_ = projectsPresentIfEmpty_; - if (projectsBuilder_ == null) { - if (((bitField0_ & 0x00000080) == 0x00000080)) { - projects_ = java.util.Collections.unmodifiableList(projects_); - bitField0_ = (bitField0_ & ~0x00000080); - } - result.projects_ = projects_; - } else { - result.projects_ = projectsBuilder_.build(); - } - if (((from_bitField0_ & 0x00000100) == 0x00000100)) { - to_bitField0_ |= 0x00000040; - } - result.componentsPresentIfEmpty_ = componentsPresentIfEmpty_; if (componentsBuilder_ == null) { - if (((bitField0_ & 0x00000200) == 0x00000200)) { + if (((bitField0_ & 0x00000040) == 0x00000040)) { components_ = java.util.Collections.unmodifiableList(components_); - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000040); } result.components_ = components_; } else { result.components_ = componentsBuilder_.build(); } - if (((from_bitField0_ & 0x00000400) == 0x00000400)) { - to_bitField0_ |= 0x00000080; + if (((from_bitField0_ & 0x00000080) == 0x00000080)) { + to_bitField0_ |= 0x00000020; } result.rulesPresentIfEmpty_ = rulesPresentIfEmpty_; if (rulesBuilder_ == null) { - if (((bitField0_ & 0x00000800) == 0x00000800)) { + if (((bitField0_ & 0x00000100) == 0x00000100)) { rules_ = java.util.Collections.unmodifiableList(rules_); - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00000100); } result.rules_ = rules_; } else { result.rules_ = rulesBuilder_.build(); } - if (((from_bitField0_ & 0x00001000) == 0x00001000)) { - to_bitField0_ |= 0x00000100; + if (((from_bitField0_ & 0x00000200) == 0x00000200)) { + to_bitField0_ |= 0x00000040; } result.usersPresentIfEmpty_ = usersPresentIfEmpty_; if (usersBuilder_ == null) { - if (((bitField0_ & 0x00002000) == 0x00002000)) { + if (((bitField0_ & 0x00000400) == 0x00000400)) { users_ = java.util.Collections.unmodifiableList(users_); - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00000400); } result.users_ = users_; } else { result.users_ = usersBuilder_.build(); } - if (((from_bitField0_ & 0x00004000) == 0x00004000)) { - to_bitField0_ |= 0x00000200; + if (((from_bitField0_ & 0x00000800) == 0x00000800)) { + to_bitField0_ |= 0x00000080; } result.actionPlansPresentIfEmpty_ = actionPlansPresentIfEmpty_; if (actionPlansBuilder_ == null) { - if (((bitField0_ & 0x00008000) == 0x00008000)) { + if (((bitField0_ & 0x00001000) == 0x00001000)) { actionPlans_ = java.util.Collections.unmodifiableList(actionPlans_); - bitField0_ = (bitField0_ & ~0x00008000); + bitField0_ = (bitField0_ & ~0x00001000); } result.actionPlans_ = actionPlans_; } else { result.actionPlans_ = actionPlansBuilder_.build(); } - if (((from_bitField0_ & 0x00010000) == 0x00010000)) { - to_bitField0_ |= 0x00000400; + if (((from_bitField0_ & 0x00002000) == 0x00002000)) { + to_bitField0_ |= 0x00000100; } result.languagesPresentIfEmpty_ = languagesPresentIfEmpty_; if (languagesBuilder_ == null) { - if (((bitField0_ & 0x00020000) == 0x00020000)) { + if (((bitField0_ & 0x00004000) == 0x00004000)) { languages_ = java.util.Collections.unmodifiableList(languages_); - bitField0_ = (bitField0_ & ~0x00020000); + bitField0_ = (bitField0_ & ~0x00004000); } result.languages_ = languages_; } else { result.languages_ = languagesBuilder_.build(); } + if (((from_bitField0_ & 0x00008000) == 0x00008000)) { + to_bitField0_ |= 0x00000200; + } + result.facetsPresentIfEmpty_ = facetsPresentIfEmpty_; if (facetsBuilder_ == null) { - if (((bitField0_ & 0x00040000) == 0x00040000)) { + if (((bitField0_ & 0x00010000) == 0x00010000)) { facets_ = java.util.Collections.unmodifiableList(facets_); - bitField0_ = (bitField0_ & ~0x00040000); + bitField0_ = (bitField0_ & ~0x00010000); } result.facets_ = facets_; } else { result.facets_ = facetsBuilder_.build(); } - if (((from_bitField0_ & 0x00080000) == 0x00080000)) { - to_bitField0_ |= 0x00000800; - } - result.facetsPresentIfEmpty_ = facetsPresentIfEmpty_; result.bitField0_ = to_bitField0_; onBuilt(); return result; @@ -1649,43 +1469,11 @@ public final class Issues { } } } - if (other.hasProjectsPresentIfEmpty()) { - setProjectsPresentIfEmpty(other.getProjectsPresentIfEmpty()); - } - if (projectsBuilder_ == null) { - if (!other.projects_.isEmpty()) { - if (projects_.isEmpty()) { - projects_ = other.projects_; - bitField0_ = (bitField0_ & ~0x00000080); - } else { - ensureProjectsIsMutable(); - projects_.addAll(other.projects_); - } - onChanged(); - } - } else { - if (!other.projects_.isEmpty()) { - if (projectsBuilder_.isEmpty()) { - projectsBuilder_.dispose(); - projectsBuilder_ = null; - projects_ = other.projects_; - bitField0_ = (bitField0_ & ~0x00000080); - projectsBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getProjectsFieldBuilder() : null; - } else { - projectsBuilder_.addAllMessages(other.projects_); - } - } - } - if (other.hasComponentsPresentIfEmpty()) { - setComponentsPresentIfEmpty(other.getComponentsPresentIfEmpty()); - } if (componentsBuilder_ == null) { if (!other.components_.isEmpty()) { if (components_.isEmpty()) { components_ = other.components_; - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000040); } else { ensureComponentsIsMutable(); components_.addAll(other.components_); @@ -1698,7 +1486,7 @@ public final class Issues { componentsBuilder_.dispose(); componentsBuilder_ = null; components_ = other.components_; - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000040); componentsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getComponentsFieldBuilder() : null; @@ -1714,7 +1502,7 @@ public final class Issues { if (!other.rules_.isEmpty()) { if (rules_.isEmpty()) { rules_ = other.rules_; - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00000100); } else { ensureRulesIsMutable(); rules_.addAll(other.rules_); @@ -1727,7 +1515,7 @@ public final class Issues { rulesBuilder_.dispose(); rulesBuilder_ = null; rules_ = other.rules_; - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00000100); rulesBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getRulesFieldBuilder() : null; @@ -1743,7 +1531,7 @@ public final class Issues { if (!other.users_.isEmpty()) { if (users_.isEmpty()) { users_ = other.users_; - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00000400); } else { ensureUsersIsMutable(); users_.addAll(other.users_); @@ -1756,7 +1544,7 @@ public final class Issues { usersBuilder_.dispose(); usersBuilder_ = null; users_ = other.users_; - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00000400); usersBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getUsersFieldBuilder() : null; @@ -1772,7 +1560,7 @@ public final class Issues { if (!other.actionPlans_.isEmpty()) { if (actionPlans_.isEmpty()) { actionPlans_ = other.actionPlans_; - bitField0_ = (bitField0_ & ~0x00008000); + bitField0_ = (bitField0_ & ~0x00001000); } else { ensureActionPlansIsMutable(); actionPlans_.addAll(other.actionPlans_); @@ -1785,7 +1573,7 @@ public final class Issues { actionPlansBuilder_.dispose(); actionPlansBuilder_ = null; actionPlans_ = other.actionPlans_; - bitField0_ = (bitField0_ & ~0x00008000); + bitField0_ = (bitField0_ & ~0x00001000); actionPlansBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getActionPlansFieldBuilder() : null; @@ -1801,7 +1589,7 @@ public final class Issues { if (!other.languages_.isEmpty()) { if (languages_.isEmpty()) { languages_ = other.languages_; - bitField0_ = (bitField0_ & ~0x00020000); + bitField0_ = (bitField0_ & ~0x00004000); } else { ensureLanguagesIsMutable(); languages_.addAll(other.languages_); @@ -1814,7 +1602,7 @@ public final class Issues { languagesBuilder_.dispose(); languagesBuilder_ = null; languages_ = other.languages_; - bitField0_ = (bitField0_ & ~0x00020000); + bitField0_ = (bitField0_ & ~0x00004000); languagesBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getLanguagesFieldBuilder() : null; @@ -1823,11 +1611,14 @@ public final class Issues { } } } + if (other.hasFacetsPresentIfEmpty()) { + setFacetsPresentIfEmpty(other.getFacetsPresentIfEmpty()); + } if (facetsBuilder_ == null) { if (!other.facets_.isEmpty()) { if (facets_.isEmpty()) { facets_ = other.facets_; - bitField0_ = (bitField0_ & ~0x00040000); + bitField0_ = (bitField0_ & ~0x00010000); } else { ensureFacetsIsMutable(); facets_.addAll(other.facets_); @@ -1840,7 +1631,7 @@ public final class Issues { facetsBuilder_.dispose(); facetsBuilder_ = null; facets_ = other.facets_; - bitField0_ = (bitField0_ & ~0x00040000); + bitField0_ = (bitField0_ & ~0x00010000); facetsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getFacetsFieldBuilder() : null; @@ -1849,9 +1640,6 @@ public final class Issues { } } } - if (other.hasFacetsPresentIfEmpty()) { - setFacetsPresentIfEmpty(other.getFacetsPresentIfEmpty()); - } this.mergeUnknownFields(other.getUnknownFields()); return this; } @@ -2379,316 +2167,12 @@ public final class Issues { return issuesBuilder_; } - private boolean projectsPresentIfEmpty_ ; - /** - * optional bool projectsPresentIfEmpty = 8; - */ - public boolean hasProjectsPresentIfEmpty() { - return ((bitField0_ & 0x00000040) == 0x00000040); - } - /** - * optional bool projectsPresentIfEmpty = 8; - */ - public boolean getProjectsPresentIfEmpty() { - return projectsPresentIfEmpty_; - } - /** - * optional bool projectsPresentIfEmpty = 8; - */ - public Builder setProjectsPresentIfEmpty(boolean value) { - bitField0_ |= 0x00000040; - projectsPresentIfEmpty_ = value; - onChanged(); - return this; - } - /** - * optional bool projectsPresentIfEmpty = 8; - */ - public Builder clearProjectsPresentIfEmpty() { - bitField0_ = (bitField0_ & ~0x00000040); - projectsPresentIfEmpty_ = false; - onChanged(); - return this; - } - - private java.util.List projects_ = - java.util.Collections.emptyList(); - private void ensureProjectsIsMutable() { - if (!((bitField0_ & 0x00000080) == 0x00000080)) { - projects_ = new java.util.ArrayList(projects_); - bitField0_ |= 0x00000080; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.Common.Component, org.sonarqube.ws.Common.Component.Builder, org.sonarqube.ws.Common.ComponentOrBuilder> projectsBuilder_; - - /** - * repeated .sonarqube.ws.Component projects = 9; - */ - public java.util.List getProjectsList() { - if (projectsBuilder_ == null) { - return java.util.Collections.unmodifiableList(projects_); - } else { - return projectsBuilder_.getMessageList(); - } - } - /** - * repeated .sonarqube.ws.Component projects = 9; - */ - public int getProjectsCount() { - if (projectsBuilder_ == null) { - return projects_.size(); - } else { - return projectsBuilder_.getCount(); - } - } - /** - * repeated .sonarqube.ws.Component projects = 9; - */ - public org.sonarqube.ws.Common.Component getProjects(int index) { - if (projectsBuilder_ == null) { - return projects_.get(index); - } else { - return projectsBuilder_.getMessage(index); - } - } - /** - * repeated .sonarqube.ws.Component projects = 9; - */ - public Builder setProjects( - int index, org.sonarqube.ws.Common.Component value) { - if (projectsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureProjectsIsMutable(); - projects_.set(index, value); - onChanged(); - } else { - projectsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .sonarqube.ws.Component projects = 9; - */ - public Builder setProjects( - int index, org.sonarqube.ws.Common.Component.Builder builderForValue) { - if (projectsBuilder_ == null) { - ensureProjectsIsMutable(); - projects_.set(index, builderForValue.build()); - onChanged(); - } else { - projectsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.Component projects = 9; - */ - public Builder addProjects(org.sonarqube.ws.Common.Component value) { - if (projectsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureProjectsIsMutable(); - projects_.add(value); - onChanged(); - } else { - projectsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .sonarqube.ws.Component projects = 9; - */ - public Builder addProjects( - int index, org.sonarqube.ws.Common.Component value) { - if (projectsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureProjectsIsMutable(); - projects_.add(index, value); - onChanged(); - } else { - projectsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .sonarqube.ws.Component projects = 9; - */ - public Builder addProjects( - org.sonarqube.ws.Common.Component.Builder builderForValue) { - if (projectsBuilder_ == null) { - ensureProjectsIsMutable(); - projects_.add(builderForValue.build()); - onChanged(); - } else { - projectsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.Component projects = 9; - */ - public Builder addProjects( - int index, org.sonarqube.ws.Common.Component.Builder builderForValue) { - if (projectsBuilder_ == null) { - ensureProjectsIsMutable(); - projects_.add(index, builderForValue.build()); - onChanged(); - } else { - projectsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.Component projects = 9; - */ - public Builder addAllProjects( - java.lang.Iterable values) { - if (projectsBuilder_ == null) { - ensureProjectsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, projects_); - onChanged(); - } else { - projectsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .sonarqube.ws.Component projects = 9; - */ - public Builder clearProjects() { - if (projectsBuilder_ == null) { - projects_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000080); - onChanged(); - } else { - projectsBuilder_.clear(); - } - return this; - } - /** - * repeated .sonarqube.ws.Component projects = 9; - */ - public Builder removeProjects(int index) { - if (projectsBuilder_ == null) { - ensureProjectsIsMutable(); - projects_.remove(index); - onChanged(); - } else { - projectsBuilder_.remove(index); - } - return this; - } - /** - * repeated .sonarqube.ws.Component projects = 9; - */ - public org.sonarqube.ws.Common.Component.Builder getProjectsBuilder( - int index) { - return getProjectsFieldBuilder().getBuilder(index); - } - /** - * repeated .sonarqube.ws.Component projects = 9; - */ - public org.sonarqube.ws.Common.ComponentOrBuilder getProjectsOrBuilder( - int index) { - if (projectsBuilder_ == null) { - return projects_.get(index); } else { - return projectsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .sonarqube.ws.Component projects = 9; - */ - public java.util.List - getProjectsOrBuilderList() { - if (projectsBuilder_ != null) { - return projectsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(projects_); - } - } - /** - * repeated .sonarqube.ws.Component projects = 9; - */ - public org.sonarqube.ws.Common.Component.Builder addProjectsBuilder() { - return getProjectsFieldBuilder().addBuilder( - org.sonarqube.ws.Common.Component.getDefaultInstance()); - } - /** - * repeated .sonarqube.ws.Component projects = 9; - */ - public org.sonarqube.ws.Common.Component.Builder addProjectsBuilder( - int index) { - return getProjectsFieldBuilder().addBuilder( - index, org.sonarqube.ws.Common.Component.getDefaultInstance()); - } - /** - * repeated .sonarqube.ws.Component projects = 9; - */ - public java.util.List - getProjectsBuilderList() { - return getProjectsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.Common.Component, org.sonarqube.ws.Common.Component.Builder, org.sonarqube.ws.Common.ComponentOrBuilder> - getProjectsFieldBuilder() { - if (projectsBuilder_ == null) { - projectsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.Common.Component, org.sonarqube.ws.Common.Component.Builder, org.sonarqube.ws.Common.ComponentOrBuilder>( - projects_, - ((bitField0_ & 0x00000080) == 0x00000080), - getParentForChildren(), - isClean()); - projects_ = null; - } - return projectsBuilder_; - } - - private boolean componentsPresentIfEmpty_ ; - /** - * optional bool componentsPresentIfEmpty = 10; - */ - public boolean hasComponentsPresentIfEmpty() { - return ((bitField0_ & 0x00000100) == 0x00000100); - } - /** - * optional bool componentsPresentIfEmpty = 10; - */ - public boolean getComponentsPresentIfEmpty() { - return componentsPresentIfEmpty_; - } - /** - * optional bool componentsPresentIfEmpty = 10; - */ - public Builder setComponentsPresentIfEmpty(boolean value) { - bitField0_ |= 0x00000100; - componentsPresentIfEmpty_ = value; - onChanged(); - return this; - } - /** - * optional bool componentsPresentIfEmpty = 10; - */ - public Builder clearComponentsPresentIfEmpty() { - bitField0_ = (bitField0_ & ~0x00000100); - componentsPresentIfEmpty_ = false; - onChanged(); - return this; - } - private java.util.List components_ = java.util.Collections.emptyList(); private void ensureComponentsIsMutable() { - if (!((bitField0_ & 0x00000200) == 0x00000200)) { + if (!((bitField0_ & 0x00000040) == 0x00000040)) { components_ = new java.util.ArrayList(components_); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000040; } } @@ -2696,7 +2180,7 @@ public final class Issues { org.sonarqube.ws.Common.Component, org.sonarqube.ws.Common.Component.Builder, org.sonarqube.ws.Common.ComponentOrBuilder> componentsBuilder_; /** - * repeated .sonarqube.ws.Component components = 11; + * repeated .sonarqube.ws.Component components = 7; */ public java.util.List getComponentsList() { if (componentsBuilder_ == null) { @@ -2706,7 +2190,7 @@ public final class Issues { } } /** - * repeated .sonarqube.ws.Component components = 11; + * repeated .sonarqube.ws.Component components = 7; */ public int getComponentsCount() { if (componentsBuilder_ == null) { @@ -2716,7 +2200,7 @@ public final class Issues { } } /** - * repeated .sonarqube.ws.Component components = 11; + * repeated .sonarqube.ws.Component components = 7; */ public org.sonarqube.ws.Common.Component getComponents(int index) { if (componentsBuilder_ == null) { @@ -2726,7 +2210,7 @@ public final class Issues { } } /** - * repeated .sonarqube.ws.Component components = 11; + * repeated .sonarqube.ws.Component components = 7; */ public Builder setComponents( int index, org.sonarqube.ws.Common.Component value) { @@ -2743,7 +2227,7 @@ public final class Issues { return this; } /** - * repeated .sonarqube.ws.Component components = 11; + * repeated .sonarqube.ws.Component components = 7; */ public Builder setComponents( int index, org.sonarqube.ws.Common.Component.Builder builderForValue) { @@ -2757,7 +2241,7 @@ public final class Issues { return this; } /** - * repeated .sonarqube.ws.Component components = 11; + * repeated .sonarqube.ws.Component components = 7; */ public Builder addComponents(org.sonarqube.ws.Common.Component value) { if (componentsBuilder_ == null) { @@ -2773,7 +2257,7 @@ public final class Issues { return this; } /** - * repeated .sonarqube.ws.Component components = 11; + * repeated .sonarqube.ws.Component components = 7; */ public Builder addComponents( int index, org.sonarqube.ws.Common.Component value) { @@ -2790,7 +2274,7 @@ public final class Issues { return this; } /** - * repeated .sonarqube.ws.Component components = 11; + * repeated .sonarqube.ws.Component components = 7; */ public Builder addComponents( org.sonarqube.ws.Common.Component.Builder builderForValue) { @@ -2804,7 +2288,7 @@ public final class Issues { return this; } /** - * repeated .sonarqube.ws.Component components = 11; + * repeated .sonarqube.ws.Component components = 7; */ public Builder addComponents( int index, org.sonarqube.ws.Common.Component.Builder builderForValue) { @@ -2818,7 +2302,7 @@ public final class Issues { return this; } /** - * repeated .sonarqube.ws.Component components = 11; + * repeated .sonarqube.ws.Component components = 7; */ public Builder addAllComponents( java.lang.Iterable values) { @@ -2833,12 +2317,12 @@ public final class Issues { return this; } /** - * repeated .sonarqube.ws.Component components = 11; + * repeated .sonarqube.ws.Component components = 7; */ public Builder clearComponents() { if (componentsBuilder_ == null) { components_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000040); onChanged(); } else { componentsBuilder_.clear(); @@ -2846,7 +2330,7 @@ public final class Issues { return this; } /** - * repeated .sonarqube.ws.Component components = 11; + * repeated .sonarqube.ws.Component components = 7; */ public Builder removeComponents(int index) { if (componentsBuilder_ == null) { @@ -2859,14 +2343,14 @@ public final class Issues { return this; } /** - * repeated .sonarqube.ws.Component components = 11; + * repeated .sonarqube.ws.Component components = 7; */ public org.sonarqube.ws.Common.Component.Builder getComponentsBuilder( int index) { return getComponentsFieldBuilder().getBuilder(index); } /** - * repeated .sonarqube.ws.Component components = 11; + * repeated .sonarqube.ws.Component components = 7; */ public org.sonarqube.ws.Common.ComponentOrBuilder getComponentsOrBuilder( int index) { @@ -2876,7 +2360,7 @@ public final class Issues { } } /** - * repeated .sonarqube.ws.Component components = 11; + * repeated .sonarqube.ws.Component components = 7; */ public java.util.List getComponentsOrBuilderList() { @@ -2887,14 +2371,14 @@ public final class Issues { } } /** - * repeated .sonarqube.ws.Component components = 11; + * repeated .sonarqube.ws.Component components = 7; */ public org.sonarqube.ws.Common.Component.Builder addComponentsBuilder() { return getComponentsFieldBuilder().addBuilder( org.sonarqube.ws.Common.Component.getDefaultInstance()); } /** - * repeated .sonarqube.ws.Component components = 11; + * repeated .sonarqube.ws.Component components = 7; */ public org.sonarqube.ws.Common.Component.Builder addComponentsBuilder( int index) { @@ -2902,7 +2386,7 @@ public final class Issues { index, org.sonarqube.ws.Common.Component.getDefaultInstance()); } /** - * repeated .sonarqube.ws.Component components = 11; + * repeated .sonarqube.ws.Component components = 7; */ public java.util.List getComponentsBuilderList() { @@ -2915,7 +2399,7 @@ public final class Issues { componentsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< org.sonarqube.ws.Common.Component, org.sonarqube.ws.Common.Component.Builder, org.sonarqube.ws.Common.ComponentOrBuilder>( components_, - ((bitField0_ & 0x00000200) == 0x00000200), + ((bitField0_ & 0x00000040) == 0x00000040), getParentForChildren(), isClean()); components_ = null; @@ -2925,31 +2409,31 @@ public final class Issues { private boolean rulesPresentIfEmpty_ ; /** - * optional bool rulesPresentIfEmpty = 12; + * optional bool rulesPresentIfEmpty = 8; */ public boolean hasRulesPresentIfEmpty() { - return ((bitField0_ & 0x00000400) == 0x00000400); + return ((bitField0_ & 0x00000080) == 0x00000080); } /** - * optional bool rulesPresentIfEmpty = 12; + * optional bool rulesPresentIfEmpty = 8; */ public boolean getRulesPresentIfEmpty() { return rulesPresentIfEmpty_; } /** - * optional bool rulesPresentIfEmpty = 12; + * optional bool rulesPresentIfEmpty = 8; */ public Builder setRulesPresentIfEmpty(boolean value) { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000080; rulesPresentIfEmpty_ = value; onChanged(); return this; } /** - * optional bool rulesPresentIfEmpty = 12; + * optional bool rulesPresentIfEmpty = 8; */ public Builder clearRulesPresentIfEmpty() { - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00000080); rulesPresentIfEmpty_ = false; onChanged(); return this; @@ -2958,9 +2442,9 @@ public final class Issues { private java.util.List rules_ = java.util.Collections.emptyList(); private void ensureRulesIsMutable() { - if (!((bitField0_ & 0x00000800) == 0x00000800)) { + if (!((bitField0_ & 0x00000100) == 0x00000100)) { rules_ = new java.util.ArrayList(rules_); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00000100; } } @@ -2968,7 +2452,7 @@ public final class Issues { org.sonarqube.ws.Common.Rule, org.sonarqube.ws.Common.Rule.Builder, org.sonarqube.ws.Common.RuleOrBuilder> rulesBuilder_; /** - * repeated .sonarqube.ws.Rule rules = 13; + * repeated .sonarqube.ws.Rule rules = 9; */ public java.util.List getRulesList() { if (rulesBuilder_ == null) { @@ -2978,7 +2462,7 @@ public final class Issues { } } /** - * repeated .sonarqube.ws.Rule rules = 13; + * repeated .sonarqube.ws.Rule rules = 9; */ public int getRulesCount() { if (rulesBuilder_ == null) { @@ -2988,7 +2472,7 @@ public final class Issues { } } /** - * repeated .sonarqube.ws.Rule rules = 13; + * repeated .sonarqube.ws.Rule rules = 9; */ public org.sonarqube.ws.Common.Rule getRules(int index) { if (rulesBuilder_ == null) { @@ -2998,7 +2482,7 @@ public final class Issues { } } /** - * repeated .sonarqube.ws.Rule rules = 13; + * repeated .sonarqube.ws.Rule rules = 9; */ public Builder setRules( int index, org.sonarqube.ws.Common.Rule value) { @@ -3015,7 +2499,7 @@ public final class Issues { return this; } /** - * repeated .sonarqube.ws.Rule rules = 13; + * repeated .sonarqube.ws.Rule rules = 9; */ public Builder setRules( int index, org.sonarqube.ws.Common.Rule.Builder builderForValue) { @@ -3029,7 +2513,7 @@ public final class Issues { return this; } /** - * repeated .sonarqube.ws.Rule rules = 13; + * repeated .sonarqube.ws.Rule rules = 9; */ public Builder addRules(org.sonarqube.ws.Common.Rule value) { if (rulesBuilder_ == null) { @@ -3045,7 +2529,7 @@ public final class Issues { return this; } /** - * repeated .sonarqube.ws.Rule rules = 13; + * repeated .sonarqube.ws.Rule rules = 9; */ public Builder addRules( int index, org.sonarqube.ws.Common.Rule value) { @@ -3062,7 +2546,7 @@ public final class Issues { return this; } /** - * repeated .sonarqube.ws.Rule rules = 13; + * repeated .sonarqube.ws.Rule rules = 9; */ public Builder addRules( org.sonarqube.ws.Common.Rule.Builder builderForValue) { @@ -3076,7 +2560,7 @@ public final class Issues { return this; } /** - * repeated .sonarqube.ws.Rule rules = 13; + * repeated .sonarqube.ws.Rule rules = 9; */ public Builder addRules( int index, org.sonarqube.ws.Common.Rule.Builder builderForValue) { @@ -3090,7 +2574,7 @@ public final class Issues { return this; } /** - * repeated .sonarqube.ws.Rule rules = 13; + * repeated .sonarqube.ws.Rule rules = 9; */ public Builder addAllRules( java.lang.Iterable values) { @@ -3105,12 +2589,12 @@ public final class Issues { return this; } /** - * repeated .sonarqube.ws.Rule rules = 13; + * repeated .sonarqube.ws.Rule rules = 9; */ public Builder clearRules() { if (rulesBuilder_ == null) { rules_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00000100); onChanged(); } else { rulesBuilder_.clear(); @@ -3118,7 +2602,7 @@ public final class Issues { return this; } /** - * repeated .sonarqube.ws.Rule rules = 13; + * repeated .sonarqube.ws.Rule rules = 9; */ public Builder removeRules(int index) { if (rulesBuilder_ == null) { @@ -3131,14 +2615,14 @@ public final class Issues { return this; } /** - * repeated .sonarqube.ws.Rule rules = 13; + * repeated .sonarqube.ws.Rule rules = 9; */ public org.sonarqube.ws.Common.Rule.Builder getRulesBuilder( int index) { return getRulesFieldBuilder().getBuilder(index); } /** - * repeated .sonarqube.ws.Rule rules = 13; + * repeated .sonarqube.ws.Rule rules = 9; */ public org.sonarqube.ws.Common.RuleOrBuilder getRulesOrBuilder( int index) { @@ -3148,7 +2632,7 @@ public final class Issues { } } /** - * repeated .sonarqube.ws.Rule rules = 13; + * repeated .sonarqube.ws.Rule rules = 9; */ public java.util.List getRulesOrBuilderList() { @@ -3159,14 +2643,14 @@ public final class Issues { } } /** - * repeated .sonarqube.ws.Rule rules = 13; + * repeated .sonarqube.ws.Rule rules = 9; */ public org.sonarqube.ws.Common.Rule.Builder addRulesBuilder() { return getRulesFieldBuilder().addBuilder( org.sonarqube.ws.Common.Rule.getDefaultInstance()); } /** - * repeated .sonarqube.ws.Rule rules = 13; + * repeated .sonarqube.ws.Rule rules = 9; */ public org.sonarqube.ws.Common.Rule.Builder addRulesBuilder( int index) { @@ -3174,7 +2658,7 @@ public final class Issues { index, org.sonarqube.ws.Common.Rule.getDefaultInstance()); } /** - * repeated .sonarqube.ws.Rule rules = 13; + * repeated .sonarqube.ws.Rule rules = 9; */ public java.util.List getRulesBuilderList() { @@ -3187,7 +2671,7 @@ public final class Issues { rulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< org.sonarqube.ws.Common.Rule, org.sonarqube.ws.Common.Rule.Builder, org.sonarqube.ws.Common.RuleOrBuilder>( rules_, - ((bitField0_ & 0x00000800) == 0x00000800), + ((bitField0_ & 0x00000100) == 0x00000100), getParentForChildren(), isClean()); rules_ = null; @@ -3197,31 +2681,31 @@ public final class Issues { private boolean usersPresentIfEmpty_ ; /** - * optional bool usersPresentIfEmpty = 14; + * optional bool usersPresentIfEmpty = 10; */ public boolean hasUsersPresentIfEmpty() { - return ((bitField0_ & 0x00001000) == 0x00001000); + return ((bitField0_ & 0x00000200) == 0x00000200); } /** - * optional bool usersPresentIfEmpty = 14; + * optional bool usersPresentIfEmpty = 10; */ public boolean getUsersPresentIfEmpty() { return usersPresentIfEmpty_; } /** - * optional bool usersPresentIfEmpty = 14; + * optional bool usersPresentIfEmpty = 10; */ public Builder setUsersPresentIfEmpty(boolean value) { - bitField0_ |= 0x00001000; + bitField0_ |= 0x00000200; usersPresentIfEmpty_ = value; onChanged(); return this; } /** - * optional bool usersPresentIfEmpty = 14; + * optional bool usersPresentIfEmpty = 10; */ public Builder clearUsersPresentIfEmpty() { - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00000200); usersPresentIfEmpty_ = false; onChanged(); return this; @@ -3230,9 +2714,9 @@ public final class Issues { private java.util.List users_ = java.util.Collections.emptyList(); private void ensureUsersIsMutable() { - if (!((bitField0_ & 0x00002000) == 0x00002000)) { + if (!((bitField0_ & 0x00000400) == 0x00000400)) { users_ = new java.util.ArrayList(users_); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00000400; } } @@ -3240,7 +2724,7 @@ public final class Issues { org.sonarqube.ws.Common.User, org.sonarqube.ws.Common.User.Builder, org.sonarqube.ws.Common.UserOrBuilder> usersBuilder_; /** - * repeated .sonarqube.ws.User users = 15; + * repeated .sonarqube.ws.User users = 11; */ public java.util.List getUsersList() { if (usersBuilder_ == null) { @@ -3250,7 +2734,7 @@ public final class Issues { } } /** - * repeated .sonarqube.ws.User users = 15; + * repeated .sonarqube.ws.User users = 11; */ public int getUsersCount() { if (usersBuilder_ == null) { @@ -3260,7 +2744,7 @@ public final class Issues { } } /** - * repeated .sonarqube.ws.User users = 15; + * repeated .sonarqube.ws.User users = 11; */ public org.sonarqube.ws.Common.User getUsers(int index) { if (usersBuilder_ == null) { @@ -3270,7 +2754,7 @@ public final class Issues { } } /** - * repeated .sonarqube.ws.User users = 15; + * repeated .sonarqube.ws.User users = 11; */ public Builder setUsers( int index, org.sonarqube.ws.Common.User value) { @@ -3287,7 +2771,7 @@ public final class Issues { return this; } /** - * repeated .sonarqube.ws.User users = 15; + * repeated .sonarqube.ws.User users = 11; */ public Builder setUsers( int index, org.sonarqube.ws.Common.User.Builder builderForValue) { @@ -3301,7 +2785,7 @@ public final class Issues { return this; } /** - * repeated .sonarqube.ws.User users = 15; + * repeated .sonarqube.ws.User users = 11; */ public Builder addUsers(org.sonarqube.ws.Common.User value) { if (usersBuilder_ == null) { @@ -3317,7 +2801,7 @@ public final class Issues { return this; } /** - * repeated .sonarqube.ws.User users = 15; + * repeated .sonarqube.ws.User users = 11; */ public Builder addUsers( int index, org.sonarqube.ws.Common.User value) { @@ -3334,7 +2818,7 @@ public final class Issues { return this; } /** - * repeated .sonarqube.ws.User users = 15; + * repeated .sonarqube.ws.User users = 11; */ public Builder addUsers( org.sonarqube.ws.Common.User.Builder builderForValue) { @@ -3348,7 +2832,7 @@ public final class Issues { return this; } /** - * repeated .sonarqube.ws.User users = 15; + * repeated .sonarqube.ws.User users = 11; */ public Builder addUsers( int index, org.sonarqube.ws.Common.User.Builder builderForValue) { @@ -3362,7 +2846,7 @@ public final class Issues { return this; } /** - * repeated .sonarqube.ws.User users = 15; + * repeated .sonarqube.ws.User users = 11; */ public Builder addAllUsers( java.lang.Iterable values) { @@ -3377,12 +2861,12 @@ public final class Issues { return this; } /** - * repeated .sonarqube.ws.User users = 15; + * repeated .sonarqube.ws.User users = 11; */ public Builder clearUsers() { if (usersBuilder_ == null) { users_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00000400); onChanged(); } else { usersBuilder_.clear(); @@ -3390,7 +2874,7 @@ public final class Issues { return this; } /** - * repeated .sonarqube.ws.User users = 15; + * repeated .sonarqube.ws.User users = 11; */ public Builder removeUsers(int index) { if (usersBuilder_ == null) { @@ -3403,14 +2887,14 @@ public final class Issues { return this; } /** - * repeated .sonarqube.ws.User users = 15; + * repeated .sonarqube.ws.User users = 11; */ public org.sonarqube.ws.Common.User.Builder getUsersBuilder( int index) { return getUsersFieldBuilder().getBuilder(index); } /** - * repeated .sonarqube.ws.User users = 15; + * repeated .sonarqube.ws.User users = 11; */ public org.sonarqube.ws.Common.UserOrBuilder getUsersOrBuilder( int index) { @@ -3420,7 +2904,7 @@ public final class Issues { } } /** - * repeated .sonarqube.ws.User users = 15; + * repeated .sonarqube.ws.User users = 11; */ public java.util.List getUsersOrBuilderList() { @@ -3431,14 +2915,14 @@ public final class Issues { } } /** - * repeated .sonarqube.ws.User users = 15; + * repeated .sonarqube.ws.User users = 11; */ public org.sonarqube.ws.Common.User.Builder addUsersBuilder() { return getUsersFieldBuilder().addBuilder( org.sonarqube.ws.Common.User.getDefaultInstance()); } /** - * repeated .sonarqube.ws.User users = 15; + * repeated .sonarqube.ws.User users = 11; */ public org.sonarqube.ws.Common.User.Builder addUsersBuilder( int index) { @@ -3446,7 +2930,7 @@ public final class Issues { index, org.sonarqube.ws.Common.User.getDefaultInstance()); } /** - * repeated .sonarqube.ws.User users = 15; + * repeated .sonarqube.ws.User users = 11; */ public java.util.List getUsersBuilderList() { @@ -3459,7 +2943,7 @@ public final class Issues { usersBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< org.sonarqube.ws.Common.User, org.sonarqube.ws.Common.User.Builder, org.sonarqube.ws.Common.UserOrBuilder>( users_, - ((bitField0_ & 0x00002000) == 0x00002000), + ((bitField0_ & 0x00000400) == 0x00000400), getParentForChildren(), isClean()); users_ = null; @@ -3469,31 +2953,31 @@ public final class Issues { private boolean actionPlansPresentIfEmpty_ ; /** - * optional bool actionPlansPresentIfEmpty = 16; + * optional bool actionPlansPresentIfEmpty = 12; */ public boolean hasActionPlansPresentIfEmpty() { - return ((bitField0_ & 0x00004000) == 0x00004000); + return ((bitField0_ & 0x00000800) == 0x00000800); } /** - * optional bool actionPlansPresentIfEmpty = 16; + * optional bool actionPlansPresentIfEmpty = 12; */ public boolean getActionPlansPresentIfEmpty() { return actionPlansPresentIfEmpty_; } /** - * optional bool actionPlansPresentIfEmpty = 16; + * optional bool actionPlansPresentIfEmpty = 12; */ public Builder setActionPlansPresentIfEmpty(boolean value) { - bitField0_ |= 0x00004000; + bitField0_ |= 0x00000800; actionPlansPresentIfEmpty_ = value; onChanged(); return this; } /** - * optional bool actionPlansPresentIfEmpty = 16; + * optional bool actionPlansPresentIfEmpty = 12; */ public Builder clearActionPlansPresentIfEmpty() { - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00000800); actionPlansPresentIfEmpty_ = false; onChanged(); return this; @@ -3502,9 +2986,9 @@ public final class Issues { private java.util.List actionPlans_ = java.util.Collections.emptyList(); private void ensureActionPlansIsMutable() { - if (!((bitField0_ & 0x00008000) == 0x00008000)) { + if (!((bitField0_ & 0x00001000) == 0x00001000)) { actionPlans_ = new java.util.ArrayList(actionPlans_); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00001000; } } @@ -3512,7 +2996,7 @@ public final class Issues { org.sonarqube.ws.Issues.ActionPlan, org.sonarqube.ws.Issues.ActionPlan.Builder, org.sonarqube.ws.Issues.ActionPlanOrBuilder> actionPlansBuilder_; /** - * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 17; + * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 13; */ public java.util.List getActionPlansList() { if (actionPlansBuilder_ == null) { @@ -3522,7 +3006,7 @@ public final class Issues { } } /** - * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 17; + * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 13; */ public int getActionPlansCount() { if (actionPlansBuilder_ == null) { @@ -3532,7 +3016,7 @@ public final class Issues { } } /** - * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 17; + * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 13; */ public org.sonarqube.ws.Issues.ActionPlan getActionPlans(int index) { if (actionPlansBuilder_ == null) { @@ -3542,7 +3026,7 @@ public final class Issues { } } /** - * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 17; + * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 13; */ public Builder setActionPlans( int index, org.sonarqube.ws.Issues.ActionPlan value) { @@ -3559,7 +3043,7 @@ public final class Issues { return this; } /** - * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 17; + * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 13; */ public Builder setActionPlans( int index, org.sonarqube.ws.Issues.ActionPlan.Builder builderForValue) { @@ -3573,7 +3057,7 @@ public final class Issues { return this; } /** - * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 17; + * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 13; */ public Builder addActionPlans(org.sonarqube.ws.Issues.ActionPlan value) { if (actionPlansBuilder_ == null) { @@ -3589,7 +3073,7 @@ public final class Issues { return this; } /** - * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 17; + * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 13; */ public Builder addActionPlans( int index, org.sonarqube.ws.Issues.ActionPlan value) { @@ -3606,7 +3090,7 @@ public final class Issues { return this; } /** - * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 17; + * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 13; */ public Builder addActionPlans( org.sonarqube.ws.Issues.ActionPlan.Builder builderForValue) { @@ -3620,7 +3104,7 @@ public final class Issues { return this; } /** - * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 17; + * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 13; */ public Builder addActionPlans( int index, org.sonarqube.ws.Issues.ActionPlan.Builder builderForValue) { @@ -3634,7 +3118,7 @@ public final class Issues { return this; } /** - * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 17; + * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 13; */ public Builder addAllActionPlans( java.lang.Iterable values) { @@ -3649,12 +3133,12 @@ public final class Issues { return this; } /** - * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 17; + * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 13; */ public Builder clearActionPlans() { if (actionPlansBuilder_ == null) { actionPlans_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00008000); + bitField0_ = (bitField0_ & ~0x00001000); onChanged(); } else { actionPlansBuilder_.clear(); @@ -3662,7 +3146,7 @@ public final class Issues { return this; } /** - * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 17; + * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 13; */ public Builder removeActionPlans(int index) { if (actionPlansBuilder_ == null) { @@ -3675,14 +3159,14 @@ public final class Issues { return this; } /** - * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 17; + * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 13; */ public org.sonarqube.ws.Issues.ActionPlan.Builder getActionPlansBuilder( int index) { return getActionPlansFieldBuilder().getBuilder(index); } /** - * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 17; + * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 13; */ public org.sonarqube.ws.Issues.ActionPlanOrBuilder getActionPlansOrBuilder( int index) { @@ -3692,7 +3176,7 @@ public final class Issues { } } /** - * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 17; + * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 13; */ public java.util.List getActionPlansOrBuilderList() { @@ -3703,14 +3187,14 @@ public final class Issues { } } /** - * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 17; + * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 13; */ public org.sonarqube.ws.Issues.ActionPlan.Builder addActionPlansBuilder() { return getActionPlansFieldBuilder().addBuilder( org.sonarqube.ws.Issues.ActionPlan.getDefaultInstance()); } /** - * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 17; + * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 13; */ public org.sonarqube.ws.Issues.ActionPlan.Builder addActionPlansBuilder( int index) { @@ -3718,7 +3202,7 @@ public final class Issues { index, org.sonarqube.ws.Issues.ActionPlan.getDefaultInstance()); } /** - * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 17; + * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 13; */ public java.util.List getActionPlansBuilderList() { @@ -3731,7 +3215,7 @@ public final class Issues { actionPlansBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< org.sonarqube.ws.Issues.ActionPlan, org.sonarqube.ws.Issues.ActionPlan.Builder, org.sonarqube.ws.Issues.ActionPlanOrBuilder>( actionPlans_, - ((bitField0_ & 0x00008000) == 0x00008000), + ((bitField0_ & 0x00001000) == 0x00001000), getParentForChildren(), isClean()); actionPlans_ = null; @@ -3741,31 +3225,31 @@ public final class Issues { private boolean languagesPresentIfEmpty_ ; /** - * optional bool languagesPresentIfEmpty = 18; + * optional bool languagesPresentIfEmpty = 14; */ public boolean hasLanguagesPresentIfEmpty() { - return ((bitField0_ & 0x00010000) == 0x00010000); + return ((bitField0_ & 0x00002000) == 0x00002000); } /** - * optional bool languagesPresentIfEmpty = 18; + * optional bool languagesPresentIfEmpty = 14; */ public boolean getLanguagesPresentIfEmpty() { return languagesPresentIfEmpty_; } /** - * optional bool languagesPresentIfEmpty = 18; + * optional bool languagesPresentIfEmpty = 14; */ public Builder setLanguagesPresentIfEmpty(boolean value) { - bitField0_ |= 0x00010000; + bitField0_ |= 0x00002000; languagesPresentIfEmpty_ = value; onChanged(); return this; } /** - * optional bool languagesPresentIfEmpty = 18; + * optional bool languagesPresentIfEmpty = 14; */ public Builder clearLanguagesPresentIfEmpty() { - bitField0_ = (bitField0_ & ~0x00010000); + bitField0_ = (bitField0_ & ~0x00002000); languagesPresentIfEmpty_ = false; onChanged(); return this; @@ -3774,9 +3258,9 @@ public final class Issues { private java.util.List languages_ = java.util.Collections.emptyList(); private void ensureLanguagesIsMutable() { - if (!((bitField0_ & 0x00020000) == 0x00020000)) { + if (!((bitField0_ & 0x00004000) == 0x00004000)) { languages_ = new java.util.ArrayList(languages_); - bitField0_ |= 0x00020000; + bitField0_ |= 0x00004000; } } @@ -3784,7 +3268,7 @@ public final class Issues { org.sonarqube.ws.Issues.Language, org.sonarqube.ws.Issues.Language.Builder, org.sonarqube.ws.Issues.LanguageOrBuilder> languagesBuilder_; /** - * repeated .sonarqube.ws.issues.Language languages = 19; + * repeated .sonarqube.ws.issues.Language languages = 15; */ public java.util.List getLanguagesList() { if (languagesBuilder_ == null) { @@ -3794,7 +3278,7 @@ public final class Issues { } } /** - * repeated .sonarqube.ws.issues.Language languages = 19; + * repeated .sonarqube.ws.issues.Language languages = 15; */ public int getLanguagesCount() { if (languagesBuilder_ == null) { @@ -3804,7 +3288,7 @@ public final class Issues { } } /** - * repeated .sonarqube.ws.issues.Language languages = 19; + * repeated .sonarqube.ws.issues.Language languages = 15; */ public org.sonarqube.ws.Issues.Language getLanguages(int index) { if (languagesBuilder_ == null) { @@ -3814,7 +3298,7 @@ public final class Issues { } } /** - * repeated .sonarqube.ws.issues.Language languages = 19; + * repeated .sonarqube.ws.issues.Language languages = 15; */ public Builder setLanguages( int index, org.sonarqube.ws.Issues.Language value) { @@ -3831,7 +3315,7 @@ public final class Issues { return this; } /** - * repeated .sonarqube.ws.issues.Language languages = 19; + * repeated .sonarqube.ws.issues.Language languages = 15; */ public Builder setLanguages( int index, org.sonarqube.ws.Issues.Language.Builder builderForValue) { @@ -3845,7 +3329,7 @@ public final class Issues { return this; } /** - * repeated .sonarqube.ws.issues.Language languages = 19; + * repeated .sonarqube.ws.issues.Language languages = 15; */ public Builder addLanguages(org.sonarqube.ws.Issues.Language value) { if (languagesBuilder_ == null) { @@ -3861,7 +3345,7 @@ public final class Issues { return this; } /** - * repeated .sonarqube.ws.issues.Language languages = 19; + * repeated .sonarqube.ws.issues.Language languages = 15; */ public Builder addLanguages( int index, org.sonarqube.ws.Issues.Language value) { @@ -3878,7 +3362,7 @@ public final class Issues { return this; } /** - * repeated .sonarqube.ws.issues.Language languages = 19; + * repeated .sonarqube.ws.issues.Language languages = 15; */ public Builder addLanguages( org.sonarqube.ws.Issues.Language.Builder builderForValue) { @@ -3892,7 +3376,7 @@ public final class Issues { return this; } /** - * repeated .sonarqube.ws.issues.Language languages = 19; + * repeated .sonarqube.ws.issues.Language languages = 15; */ public Builder addLanguages( int index, org.sonarqube.ws.Issues.Language.Builder builderForValue) { @@ -3906,7 +3390,7 @@ public final class Issues { return this; } /** - * repeated .sonarqube.ws.issues.Language languages = 19; + * repeated .sonarqube.ws.issues.Language languages = 15; */ public Builder addAllLanguages( java.lang.Iterable values) { @@ -3921,12 +3405,12 @@ public final class Issues { return this; } /** - * repeated .sonarqube.ws.issues.Language languages = 19; + * repeated .sonarqube.ws.issues.Language languages = 15; */ public Builder clearLanguages() { if (languagesBuilder_ == null) { languages_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00020000); + bitField0_ = (bitField0_ & ~0x00004000); onChanged(); } else { languagesBuilder_.clear(); @@ -3934,7 +3418,7 @@ public final class Issues { return this; } /** - * repeated .sonarqube.ws.issues.Language languages = 19; + * repeated .sonarqube.ws.issues.Language languages = 15; */ public Builder removeLanguages(int index) { if (languagesBuilder_ == null) { @@ -3947,14 +3431,14 @@ public final class Issues { return this; } /** - * repeated .sonarqube.ws.issues.Language languages = 19; + * repeated .sonarqube.ws.issues.Language languages = 15; */ public org.sonarqube.ws.Issues.Language.Builder getLanguagesBuilder( int index) { return getLanguagesFieldBuilder().getBuilder(index); } /** - * repeated .sonarqube.ws.issues.Language languages = 19; + * repeated .sonarqube.ws.issues.Language languages = 15; */ public org.sonarqube.ws.Issues.LanguageOrBuilder getLanguagesOrBuilder( int index) { @@ -3964,7 +3448,7 @@ public final class Issues { } } /** - * repeated .sonarqube.ws.issues.Language languages = 19; + * repeated .sonarqube.ws.issues.Language languages = 15; */ public java.util.List getLanguagesOrBuilderList() { @@ -3975,14 +3459,14 @@ public final class Issues { } } /** - * repeated .sonarqube.ws.issues.Language languages = 19; + * repeated .sonarqube.ws.issues.Language languages = 15; */ public org.sonarqube.ws.Issues.Language.Builder addLanguagesBuilder() { return getLanguagesFieldBuilder().addBuilder( org.sonarqube.ws.Issues.Language.getDefaultInstance()); } /** - * repeated .sonarqube.ws.issues.Language languages = 19; + * repeated .sonarqube.ws.issues.Language languages = 15; */ public org.sonarqube.ws.Issues.Language.Builder addLanguagesBuilder( int index) { @@ -3990,7 +3474,7 @@ public final class Issues { index, org.sonarqube.ws.Issues.Language.getDefaultInstance()); } /** - * repeated .sonarqube.ws.issues.Language languages = 19; + * repeated .sonarqube.ws.issues.Language languages = 15; */ public java.util.List getLanguagesBuilderList() { @@ -4003,7 +3487,7 @@ public final class Issues { languagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< org.sonarqube.ws.Issues.Language, org.sonarqube.ws.Issues.Language.Builder, org.sonarqube.ws.Issues.LanguageOrBuilder>( languages_, - ((bitField0_ & 0x00020000) == 0x00020000), + ((bitField0_ & 0x00004000) == 0x00004000), getParentForChildren(), isClean()); languages_ = null; @@ -4011,12 +3495,44 @@ public final class Issues { return languagesBuilder_; } + private boolean facetsPresentIfEmpty_ ; + /** + * optional bool facetsPresentIfEmpty = 16; + */ + public boolean hasFacetsPresentIfEmpty() { + return ((bitField0_ & 0x00008000) == 0x00008000); + } + /** + * optional bool facetsPresentIfEmpty = 16; + */ + public boolean getFacetsPresentIfEmpty() { + return facetsPresentIfEmpty_; + } + /** + * optional bool facetsPresentIfEmpty = 16; + */ + public Builder setFacetsPresentIfEmpty(boolean value) { + bitField0_ |= 0x00008000; + facetsPresentIfEmpty_ = value; + onChanged(); + return this; + } + /** + * optional bool facetsPresentIfEmpty = 16; + */ + public Builder clearFacetsPresentIfEmpty() { + bitField0_ = (bitField0_ & ~0x00008000); + facetsPresentIfEmpty_ = false; + onChanged(); + return this; + } + private java.util.List facets_ = java.util.Collections.emptyList(); private void ensureFacetsIsMutable() { - if (!((bitField0_ & 0x00040000) == 0x00040000)) { + if (!((bitField0_ & 0x00010000) == 0x00010000)) { facets_ = new java.util.ArrayList(facets_); - bitField0_ |= 0x00040000; + bitField0_ |= 0x00010000; } } @@ -4024,7 +3540,7 @@ public final class Issues { org.sonarqube.ws.Common.Facet, org.sonarqube.ws.Common.Facet.Builder, org.sonarqube.ws.Common.FacetOrBuilder> facetsBuilder_; /** - * repeated .sonarqube.ws.Facet facets = 20; + * repeated .sonarqube.ws.Facet facets = 17; */ public java.util.List getFacetsList() { if (facetsBuilder_ == null) { @@ -4034,7 +3550,7 @@ public final class Issues { } } /** - * repeated .sonarqube.ws.Facet facets = 20; + * repeated .sonarqube.ws.Facet facets = 17; */ public int getFacetsCount() { if (facetsBuilder_ == null) { @@ -4044,7 +3560,7 @@ public final class Issues { } } /** - * repeated .sonarqube.ws.Facet facets = 20; + * repeated .sonarqube.ws.Facet facets = 17; */ public org.sonarqube.ws.Common.Facet getFacets(int index) { if (facetsBuilder_ == null) { @@ -4054,7 +3570,7 @@ public final class Issues { } } /** - * repeated .sonarqube.ws.Facet facets = 20; + * repeated .sonarqube.ws.Facet facets = 17; */ public Builder setFacets( int index, org.sonarqube.ws.Common.Facet value) { @@ -4071,7 +3587,7 @@ public final class Issues { return this; } /** - * repeated .sonarqube.ws.Facet facets = 20; + * repeated .sonarqube.ws.Facet facets = 17; */ public Builder setFacets( int index, org.sonarqube.ws.Common.Facet.Builder builderForValue) { @@ -4085,7 +3601,7 @@ public final class Issues { return this; } /** - * repeated .sonarqube.ws.Facet facets = 20; + * repeated .sonarqube.ws.Facet facets = 17; */ public Builder addFacets(org.sonarqube.ws.Common.Facet value) { if (facetsBuilder_ == null) { @@ -4101,7 +3617,7 @@ public final class Issues { return this; } /** - * repeated .sonarqube.ws.Facet facets = 20; + * repeated .sonarqube.ws.Facet facets = 17; */ public Builder addFacets( int index, org.sonarqube.ws.Common.Facet value) { @@ -4118,7 +3634,7 @@ public final class Issues { return this; } /** - * repeated .sonarqube.ws.Facet facets = 20; + * repeated .sonarqube.ws.Facet facets = 17; */ public Builder addFacets( org.sonarqube.ws.Common.Facet.Builder builderForValue) { @@ -4132,7 +3648,7 @@ public final class Issues { return this; } /** - * repeated .sonarqube.ws.Facet facets = 20; + * repeated .sonarqube.ws.Facet facets = 17; */ public Builder addFacets( int index, org.sonarqube.ws.Common.Facet.Builder builderForValue) { @@ -4146,7 +3662,7 @@ public final class Issues { return this; } /** - * repeated .sonarqube.ws.Facet facets = 20; + * repeated .sonarqube.ws.Facet facets = 17; */ public Builder addAllFacets( java.lang.Iterable values) { @@ -4161,12 +3677,12 @@ public final class Issues { return this; } /** - * repeated .sonarqube.ws.Facet facets = 20; + * repeated .sonarqube.ws.Facet facets = 17; */ public Builder clearFacets() { if (facetsBuilder_ == null) { facets_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00040000); + bitField0_ = (bitField0_ & ~0x00010000); onChanged(); } else { facetsBuilder_.clear(); @@ -4174,7 +3690,7 @@ public final class Issues { return this; } /** - * repeated .sonarqube.ws.Facet facets = 20; + * repeated .sonarqube.ws.Facet facets = 17; */ public Builder removeFacets(int index) { if (facetsBuilder_ == null) { @@ -4187,14 +3703,14 @@ public final class Issues { return this; } /** - * repeated .sonarqube.ws.Facet facets = 20; + * repeated .sonarqube.ws.Facet facets = 17; */ public org.sonarqube.ws.Common.Facet.Builder getFacetsBuilder( int index) { return getFacetsFieldBuilder().getBuilder(index); } /** - * repeated .sonarqube.ws.Facet facets = 20; + * repeated .sonarqube.ws.Facet facets = 17; */ public org.sonarqube.ws.Common.FacetOrBuilder getFacetsOrBuilder( int index) { @@ -4204,7 +3720,7 @@ public final class Issues { } } /** - * repeated .sonarqube.ws.Facet facets = 20; + * repeated .sonarqube.ws.Facet facets = 17; */ public java.util.List getFacetsOrBuilderList() { @@ -4215,14 +3731,14 @@ public final class Issues { } } /** - * repeated .sonarqube.ws.Facet facets = 20; + * repeated .sonarqube.ws.Facet facets = 17; */ public org.sonarqube.ws.Common.Facet.Builder addFacetsBuilder() { return getFacetsFieldBuilder().addBuilder( org.sonarqube.ws.Common.Facet.getDefaultInstance()); } /** - * repeated .sonarqube.ws.Facet facets = 20; + * repeated .sonarqube.ws.Facet facets = 17; */ public org.sonarqube.ws.Common.Facet.Builder addFacetsBuilder( int index) { @@ -4230,7 +3746,7 @@ public final class Issues { index, org.sonarqube.ws.Common.Facet.getDefaultInstance()); } /** - * repeated .sonarqube.ws.Facet facets = 20; + * repeated .sonarqube.ws.Facet facets = 17; */ public java.util.List getFacetsBuilderList() { @@ -4243,55 +3759,1979 @@ public final class Issues { facetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< org.sonarqube.ws.Common.Facet, org.sonarqube.ws.Common.Facet.Builder, org.sonarqube.ws.Common.FacetOrBuilder>( facets_, - ((bitField0_ & 0x00040000) == 0x00040000), + ((bitField0_ & 0x00010000) == 0x00010000), getParentForChildren(), isClean()); facets_ = null; } - return facetsBuilder_; + return facetsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:sonarqube.ws.issues.Search) + } + + static { + defaultInstance = new Search(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:sonarqube.ws.issues.Search) + } + + public interface OperationOrBuilder extends + // @@protoc_insertion_point(interface_extends:sonarqube.ws.issues.Operation) + com.google.protobuf.MessageOrBuilder { + + /** + * optional .sonarqube.ws.issues.Issue issue = 1; + */ + boolean hasIssue(); + /** + * optional .sonarqube.ws.issues.Issue issue = 1; + */ + org.sonarqube.ws.Issues.Issue getIssue(); + /** + * optional .sonarqube.ws.issues.Issue issue = 1; + */ + org.sonarqube.ws.Issues.IssueOrBuilder getIssueOrBuilder(); + + /** + * repeated .sonarqube.ws.Component components = 2; + */ + java.util.List + getComponentsList(); + /** + * repeated .sonarqube.ws.Component components = 2; + */ + org.sonarqube.ws.Common.Component getComponents(int index); + /** + * repeated .sonarqube.ws.Component components = 2; + */ + int getComponentsCount(); + /** + * repeated .sonarqube.ws.Component components = 2; + */ + java.util.List + getComponentsOrBuilderList(); + /** + * repeated .sonarqube.ws.Component components = 2; + */ + org.sonarqube.ws.Common.ComponentOrBuilder getComponentsOrBuilder( + int index); + + /** + * repeated .sonarqube.ws.Rule rules = 3; + */ + java.util.List + getRulesList(); + /** + * repeated .sonarqube.ws.Rule rules = 3; + */ + org.sonarqube.ws.Common.Rule getRules(int index); + /** + * repeated .sonarqube.ws.Rule rules = 3; + */ + int getRulesCount(); + /** + * repeated .sonarqube.ws.Rule rules = 3; + */ + java.util.List + getRulesOrBuilderList(); + /** + * repeated .sonarqube.ws.Rule rules = 3; + */ + org.sonarqube.ws.Common.RuleOrBuilder getRulesOrBuilder( + int index); + + /** + * repeated .sonarqube.ws.User users = 4; + */ + java.util.List + getUsersList(); + /** + * repeated .sonarqube.ws.User users = 4; + */ + org.sonarqube.ws.Common.User getUsers(int index); + /** + * repeated .sonarqube.ws.User users = 4; + */ + int getUsersCount(); + /** + * repeated .sonarqube.ws.User users = 4; + */ + java.util.List + getUsersOrBuilderList(); + /** + * repeated .sonarqube.ws.User users = 4; + */ + org.sonarqube.ws.Common.UserOrBuilder getUsersOrBuilder( + int index); + + /** + * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 5; + */ + java.util.List + getActionPlansList(); + /** + * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 5; + */ + org.sonarqube.ws.Issues.ActionPlan getActionPlans(int index); + /** + * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 5; + */ + int getActionPlansCount(); + /** + * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 5; + */ + java.util.List + getActionPlansOrBuilderList(); + /** + * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 5; + */ + org.sonarqube.ws.Issues.ActionPlanOrBuilder getActionPlansOrBuilder( + int index); + } + /** + * Protobuf type {@code sonarqube.ws.issues.Operation} + * + *
+   * Response of most of POST/issues/{operation}, for instance assign, add_comment and set_severity
+   * 
+ */ + public static final class Operation extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:sonarqube.ws.issues.Operation) + OperationOrBuilder { + // Use Operation.newBuilder() to construct. + private Operation(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private Operation(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + + private static final Operation defaultInstance; + public static Operation getDefaultInstance() { + return defaultInstance; + } + + public Operation getDefaultInstanceForType() { + return defaultInstance; + } + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Operation( + 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: { + org.sonarqube.ws.Issues.Issue.Builder subBuilder = null; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + subBuilder = issue_.toBuilder(); + } + issue_ = input.readMessage(org.sonarqube.ws.Issues.Issue.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(issue_); + issue_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000001; + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + components_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + components_.add(input.readMessage(org.sonarqube.ws.Common.Component.PARSER, extensionRegistry)); + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + rules_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + rules_.add(input.readMessage(org.sonarqube.ws.Common.Rule.PARSER, extensionRegistry)); + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + users_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; + } + users_.add(input.readMessage(org.sonarqube.ws.Common.User.PARSER, extensionRegistry)); + break; + } + case 42: { + if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { + actionPlans_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000010; + } + actionPlans_.add(input.readMessage(org.sonarqube.ws.Issues.ActionPlan.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_ & 0x00000002) == 0x00000002)) { + components_ = java.util.Collections.unmodifiableList(components_); + } + if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + rules_ = java.util.Collections.unmodifiableList(rules_); + } + if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + users_ = java.util.Collections.unmodifiableList(users_); + } + if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { + actionPlans_ = java.util.Collections.unmodifiableList(actionPlans_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Operation_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Operation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.sonarqube.ws.Issues.Operation.class, org.sonarqube.ws.Issues.Operation.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public Operation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Operation(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + private int bitField0_; + public static final int ISSUE_FIELD_NUMBER = 1; + private org.sonarqube.ws.Issues.Issue issue_; + /** + * optional .sonarqube.ws.issues.Issue issue = 1; + */ + public boolean hasIssue() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional .sonarqube.ws.issues.Issue issue = 1; + */ + public org.sonarqube.ws.Issues.Issue getIssue() { + return issue_; + } + /** + * optional .sonarqube.ws.issues.Issue issue = 1; + */ + public org.sonarqube.ws.Issues.IssueOrBuilder getIssueOrBuilder() { + return issue_; + } + + public static final int COMPONENTS_FIELD_NUMBER = 2; + private java.util.List components_; + /** + * repeated .sonarqube.ws.Component components = 2; + */ + public java.util.List getComponentsList() { + return components_; + } + /** + * repeated .sonarqube.ws.Component components = 2; + */ + public java.util.List + getComponentsOrBuilderList() { + return components_; + } + /** + * repeated .sonarqube.ws.Component components = 2; + */ + public int getComponentsCount() { + return components_.size(); + } + /** + * repeated .sonarqube.ws.Component components = 2; + */ + public org.sonarqube.ws.Common.Component getComponents(int index) { + return components_.get(index); + } + /** + * repeated .sonarqube.ws.Component components = 2; + */ + public org.sonarqube.ws.Common.ComponentOrBuilder getComponentsOrBuilder( + int index) { + return components_.get(index); + } + + public static final int RULES_FIELD_NUMBER = 3; + private java.util.List rules_; + /** + * repeated .sonarqube.ws.Rule rules = 3; + */ + public java.util.List getRulesList() { + return rules_; + } + /** + * repeated .sonarqube.ws.Rule rules = 3; + */ + public java.util.List + getRulesOrBuilderList() { + return rules_; + } + /** + * repeated .sonarqube.ws.Rule rules = 3; + */ + public int getRulesCount() { + return rules_.size(); + } + /** + * repeated .sonarqube.ws.Rule rules = 3; + */ + public org.sonarqube.ws.Common.Rule getRules(int index) { + return rules_.get(index); + } + /** + * repeated .sonarqube.ws.Rule rules = 3; + */ + public org.sonarqube.ws.Common.RuleOrBuilder getRulesOrBuilder( + int index) { + return rules_.get(index); + } + + public static final int USERS_FIELD_NUMBER = 4; + private java.util.List users_; + /** + * repeated .sonarqube.ws.User users = 4; + */ + public java.util.List getUsersList() { + return users_; + } + /** + * repeated .sonarqube.ws.User users = 4; + */ + public java.util.List + getUsersOrBuilderList() { + return users_; + } + /** + * repeated .sonarqube.ws.User users = 4; + */ + public int getUsersCount() { + return users_.size(); + } + /** + * repeated .sonarqube.ws.User users = 4; + */ + public org.sonarqube.ws.Common.User getUsers(int index) { + return users_.get(index); + } + /** + * repeated .sonarqube.ws.User users = 4; + */ + public org.sonarqube.ws.Common.UserOrBuilder getUsersOrBuilder( + int index) { + return users_.get(index); + } + + public static final int ACTIONPLANS_FIELD_NUMBER = 5; + private java.util.List actionPlans_; + /** + * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 5; + */ + public java.util.List getActionPlansList() { + return actionPlans_; + } + /** + * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 5; + */ + public java.util.List + getActionPlansOrBuilderList() { + return actionPlans_; + } + /** + * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 5; + */ + public int getActionPlansCount() { + return actionPlans_.size(); + } + /** + * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 5; + */ + public org.sonarqube.ws.Issues.ActionPlan getActionPlans(int index) { + return actionPlans_.get(index); + } + /** + * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 5; + */ + public org.sonarqube.ws.Issues.ActionPlanOrBuilder getActionPlansOrBuilder( + int index) { + return actionPlans_.get(index); + } + + private void initFields() { + issue_ = org.sonarqube.ws.Issues.Issue.getDefaultInstance(); + components_ = java.util.Collections.emptyList(); + rules_ = java.util.Collections.emptyList(); + users_ = java.util.Collections.emptyList(); + actionPlans_ = 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.writeMessage(1, issue_); + } + for (int i = 0; i < components_.size(); i++) { + output.writeMessage(2, components_.get(i)); + } + for (int i = 0; i < rules_.size(); i++) { + output.writeMessage(3, rules_.get(i)); + } + for (int i = 0; i < users_.size(); i++) { + output.writeMessage(4, users_.get(i)); + } + for (int i = 0; i < actionPlans_.size(); i++) { + output.writeMessage(5, actionPlans_.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 + .computeMessageSize(1, issue_); + } + for (int i = 0; i < components_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, components_.get(i)); + } + for (int i = 0; i < rules_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, rules_.get(i)); + } + for (int i = 0; i < users_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, users_.get(i)); + } + for (int i = 0; i < actionPlans_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, actionPlans_.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.sonarqube.ws.Issues.Operation parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.sonarqube.ws.Issues.Operation parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.sonarqube.ws.Issues.Operation parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.sonarqube.ws.Issues.Operation parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.sonarqube.ws.Issues.Operation parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.sonarqube.ws.Issues.Operation parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static org.sonarqube.ws.Issues.Operation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static org.sonarqube.ws.Issues.Operation parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static org.sonarqube.ws.Issues.Operation parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.sonarqube.ws.Issues.Operation 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.sonarqube.ws.Issues.Operation 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 sonarqube.ws.issues.Operation} + * + *
+     * Response of most of POST/issues/{operation}, for instance assign, add_comment and set_severity
+     * 
+ */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:sonarqube.ws.issues.Operation) + org.sonarqube.ws.Issues.OperationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Operation_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Operation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.sonarqube.ws.Issues.Operation.class, org.sonarqube.ws.Issues.Operation.Builder.class); + } + + // Construct using org.sonarqube.ws.Issues.Operation.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + getIssueFieldBuilder(); + getComponentsFieldBuilder(); + getRulesFieldBuilder(); + getUsersFieldBuilder(); + getActionPlansFieldBuilder(); + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + if (issueBuilder_ == null) { + issue_ = org.sonarqube.ws.Issues.Issue.getDefaultInstance(); + } else { + issueBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + if (componentsBuilder_ == null) { + components_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + componentsBuilder_.clear(); + } + if (rulesBuilder_ == null) { + rules_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + } else { + rulesBuilder_.clear(); + } + if (usersBuilder_ == null) { + users_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + } else { + usersBuilder_.clear(); + } + if (actionPlansBuilder_ == null) { + actionPlans_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + } else { + actionPlansBuilder_.clear(); + } + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Operation_descriptor; + } + + public org.sonarqube.ws.Issues.Operation getDefaultInstanceForType() { + return org.sonarqube.ws.Issues.Operation.getDefaultInstance(); + } + + public org.sonarqube.ws.Issues.Operation build() { + org.sonarqube.ws.Issues.Operation result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.sonarqube.ws.Issues.Operation buildPartial() { + org.sonarqube.ws.Issues.Operation result = new org.sonarqube.ws.Issues.Operation(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + if (issueBuilder_ == null) { + result.issue_ = issue_; + } else { + result.issue_ = issueBuilder_.build(); + } + if (componentsBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { + components_ = java.util.Collections.unmodifiableList(components_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.components_ = components_; + } else { + result.components_ = componentsBuilder_.build(); + } + if (rulesBuilder_ == null) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { + rules_ = java.util.Collections.unmodifiableList(rules_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.rules_ = rules_; + } else { + result.rules_ = rulesBuilder_.build(); + } + if (usersBuilder_ == null) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { + users_ = java.util.Collections.unmodifiableList(users_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.users_ = users_; + } else { + result.users_ = usersBuilder_.build(); + } + if (actionPlansBuilder_ == null) { + if (((bitField0_ & 0x00000010) == 0x00000010)) { + actionPlans_ = java.util.Collections.unmodifiableList(actionPlans_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.actionPlans_ = actionPlans_; + } else { + result.actionPlans_ = actionPlansBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.sonarqube.ws.Issues.Operation) { + return mergeFrom((org.sonarqube.ws.Issues.Operation)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.sonarqube.ws.Issues.Operation other) { + if (other == org.sonarqube.ws.Issues.Operation.getDefaultInstance()) return this; + if (other.hasIssue()) { + mergeIssue(other.getIssue()); + } + if (componentsBuilder_ == null) { + if (!other.components_.isEmpty()) { + if (components_.isEmpty()) { + components_ = other.components_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureComponentsIsMutable(); + components_.addAll(other.components_); + } + onChanged(); + } + } else { + if (!other.components_.isEmpty()) { + if (componentsBuilder_.isEmpty()) { + componentsBuilder_.dispose(); + componentsBuilder_ = null; + components_ = other.components_; + bitField0_ = (bitField0_ & ~0x00000002); + componentsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getComponentsFieldBuilder() : null; + } else { + componentsBuilder_.addAllMessages(other.components_); + } + } + } + if (rulesBuilder_ == null) { + if (!other.rules_.isEmpty()) { + if (rules_.isEmpty()) { + rules_ = other.rules_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureRulesIsMutable(); + rules_.addAll(other.rules_); + } + onChanged(); + } + } else { + if (!other.rules_.isEmpty()) { + if (rulesBuilder_.isEmpty()) { + rulesBuilder_.dispose(); + rulesBuilder_ = null; + rules_ = other.rules_; + bitField0_ = (bitField0_ & ~0x00000004); + rulesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getRulesFieldBuilder() : null; + } else { + rulesBuilder_.addAllMessages(other.rules_); + } + } + } + if (usersBuilder_ == null) { + if (!other.users_.isEmpty()) { + if (users_.isEmpty()) { + users_ = other.users_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureUsersIsMutable(); + users_.addAll(other.users_); + } + onChanged(); + } + } else { + if (!other.users_.isEmpty()) { + if (usersBuilder_.isEmpty()) { + usersBuilder_.dispose(); + usersBuilder_ = null; + users_ = other.users_; + bitField0_ = (bitField0_ & ~0x00000008); + usersBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getUsersFieldBuilder() : null; + } else { + usersBuilder_.addAllMessages(other.users_); + } + } + } + if (actionPlansBuilder_ == null) { + if (!other.actionPlans_.isEmpty()) { + if (actionPlans_.isEmpty()) { + actionPlans_ = other.actionPlans_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureActionPlansIsMutable(); + actionPlans_.addAll(other.actionPlans_); + } + onChanged(); + } + } else { + if (!other.actionPlans_.isEmpty()) { + if (actionPlansBuilder_.isEmpty()) { + actionPlansBuilder_.dispose(); + actionPlansBuilder_ = null; + actionPlans_ = other.actionPlans_; + bitField0_ = (bitField0_ & ~0x00000010); + actionPlansBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getActionPlansFieldBuilder() : null; + } else { + actionPlansBuilder_.addAllMessages(other.actionPlans_); + } + } + } + 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.sonarqube.ws.Issues.Operation parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.sonarqube.ws.Issues.Operation) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private org.sonarqube.ws.Issues.Issue issue_ = org.sonarqube.ws.Issues.Issue.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + org.sonarqube.ws.Issues.Issue, org.sonarqube.ws.Issues.Issue.Builder, org.sonarqube.ws.Issues.IssueOrBuilder> issueBuilder_; + /** + * optional .sonarqube.ws.issues.Issue issue = 1; + */ + public boolean hasIssue() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional .sonarqube.ws.issues.Issue issue = 1; + */ + public org.sonarqube.ws.Issues.Issue getIssue() { + if (issueBuilder_ == null) { + return issue_; + } else { + return issueBuilder_.getMessage(); + } + } + /** + * optional .sonarqube.ws.issues.Issue issue = 1; + */ + public Builder setIssue(org.sonarqube.ws.Issues.Issue value) { + if (issueBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + issue_ = value; + onChanged(); + } else { + issueBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + return this; + } + /** + * optional .sonarqube.ws.issues.Issue issue = 1; + */ + public Builder setIssue( + org.sonarqube.ws.Issues.Issue.Builder builderForValue) { + if (issueBuilder_ == null) { + issue_ = builderForValue.build(); + onChanged(); + } else { + issueBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + return this; + } + /** + * optional .sonarqube.ws.issues.Issue issue = 1; + */ + public Builder mergeIssue(org.sonarqube.ws.Issues.Issue value) { + if (issueBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001) && + issue_ != org.sonarqube.ws.Issues.Issue.getDefaultInstance()) { + issue_ = + org.sonarqube.ws.Issues.Issue.newBuilder(issue_).mergeFrom(value).buildPartial(); + } else { + issue_ = value; + } + onChanged(); + } else { + issueBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + return this; + } + /** + * optional .sonarqube.ws.issues.Issue issue = 1; + */ + public Builder clearIssue() { + if (issueBuilder_ == null) { + issue_ = org.sonarqube.ws.Issues.Issue.getDefaultInstance(); + onChanged(); + } else { + issueBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + /** + * optional .sonarqube.ws.issues.Issue issue = 1; + */ + public org.sonarqube.ws.Issues.Issue.Builder getIssueBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getIssueFieldBuilder().getBuilder(); + } + /** + * optional .sonarqube.ws.issues.Issue issue = 1; + */ + public org.sonarqube.ws.Issues.IssueOrBuilder getIssueOrBuilder() { + if (issueBuilder_ != null) { + return issueBuilder_.getMessageOrBuilder(); + } else { + return issue_; + } + } + /** + * optional .sonarqube.ws.issues.Issue issue = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + org.sonarqube.ws.Issues.Issue, org.sonarqube.ws.Issues.Issue.Builder, org.sonarqube.ws.Issues.IssueOrBuilder> + getIssueFieldBuilder() { + if (issueBuilder_ == null) { + issueBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.sonarqube.ws.Issues.Issue, org.sonarqube.ws.Issues.Issue.Builder, org.sonarqube.ws.Issues.IssueOrBuilder>( + getIssue(), + getParentForChildren(), + isClean()); + issue_ = null; + } + return issueBuilder_; + } + + private java.util.List components_ = + java.util.Collections.emptyList(); + private void ensureComponentsIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + components_ = new java.util.ArrayList(components_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + org.sonarqube.ws.Common.Component, org.sonarqube.ws.Common.Component.Builder, org.sonarqube.ws.Common.ComponentOrBuilder> componentsBuilder_; + + /** + * repeated .sonarqube.ws.Component components = 2; + */ + public java.util.List getComponentsList() { + if (componentsBuilder_ == null) { + return java.util.Collections.unmodifiableList(components_); + } else { + return componentsBuilder_.getMessageList(); + } + } + /** + * repeated .sonarqube.ws.Component components = 2; + */ + public int getComponentsCount() { + if (componentsBuilder_ == null) { + return components_.size(); + } else { + return componentsBuilder_.getCount(); + } + } + /** + * repeated .sonarqube.ws.Component components = 2; + */ + public org.sonarqube.ws.Common.Component getComponents(int index) { + if (componentsBuilder_ == null) { + return components_.get(index); + } else { + return componentsBuilder_.getMessage(index); + } + } + /** + * repeated .sonarqube.ws.Component components = 2; + */ + public Builder setComponents( + int index, org.sonarqube.ws.Common.Component value) { + if (componentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureComponentsIsMutable(); + components_.set(index, value); + onChanged(); + } else { + componentsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .sonarqube.ws.Component components = 2; + */ + public Builder setComponents( + int index, org.sonarqube.ws.Common.Component.Builder builderForValue) { + if (componentsBuilder_ == null) { + ensureComponentsIsMutable(); + components_.set(index, builderForValue.build()); + onChanged(); + } else { + componentsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .sonarqube.ws.Component components = 2; + */ + public Builder addComponents(org.sonarqube.ws.Common.Component value) { + if (componentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureComponentsIsMutable(); + components_.add(value); + onChanged(); + } else { + componentsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .sonarqube.ws.Component components = 2; + */ + public Builder addComponents( + int index, org.sonarqube.ws.Common.Component value) { + if (componentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureComponentsIsMutable(); + components_.add(index, value); + onChanged(); + } else { + componentsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .sonarqube.ws.Component components = 2; + */ + public Builder addComponents( + org.sonarqube.ws.Common.Component.Builder builderForValue) { + if (componentsBuilder_ == null) { + ensureComponentsIsMutable(); + components_.add(builderForValue.build()); + onChanged(); + } else { + componentsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .sonarqube.ws.Component components = 2; + */ + public Builder addComponents( + int index, org.sonarqube.ws.Common.Component.Builder builderForValue) { + if (componentsBuilder_ == null) { + ensureComponentsIsMutable(); + components_.add(index, builderForValue.build()); + onChanged(); + } else { + componentsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .sonarqube.ws.Component components = 2; + */ + public Builder addAllComponents( + java.lang.Iterable values) { + if (componentsBuilder_ == null) { + ensureComponentsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, components_); + onChanged(); + } else { + componentsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .sonarqube.ws.Component components = 2; + */ + public Builder clearComponents() { + if (componentsBuilder_ == null) { + components_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + componentsBuilder_.clear(); + } + return this; + } + /** + * repeated .sonarqube.ws.Component components = 2; + */ + public Builder removeComponents(int index) { + if (componentsBuilder_ == null) { + ensureComponentsIsMutable(); + components_.remove(index); + onChanged(); + } else { + componentsBuilder_.remove(index); + } + return this; + } + /** + * repeated .sonarqube.ws.Component components = 2; + */ + public org.sonarqube.ws.Common.Component.Builder getComponentsBuilder( + int index) { + return getComponentsFieldBuilder().getBuilder(index); + } + /** + * repeated .sonarqube.ws.Component components = 2; + */ + public org.sonarqube.ws.Common.ComponentOrBuilder getComponentsOrBuilder( + int index) { + if (componentsBuilder_ == null) { + return components_.get(index); } else { + return componentsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .sonarqube.ws.Component components = 2; + */ + public java.util.List + getComponentsOrBuilderList() { + if (componentsBuilder_ != null) { + return componentsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(components_); + } + } + /** + * repeated .sonarqube.ws.Component components = 2; + */ + public org.sonarqube.ws.Common.Component.Builder addComponentsBuilder() { + return getComponentsFieldBuilder().addBuilder( + org.sonarqube.ws.Common.Component.getDefaultInstance()); + } + /** + * repeated .sonarqube.ws.Component components = 2; + */ + public org.sonarqube.ws.Common.Component.Builder addComponentsBuilder( + int index) { + return getComponentsFieldBuilder().addBuilder( + index, org.sonarqube.ws.Common.Component.getDefaultInstance()); + } + /** + * repeated .sonarqube.ws.Component components = 2; + */ + public java.util.List + getComponentsBuilderList() { + return getComponentsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + org.sonarqube.ws.Common.Component, org.sonarqube.ws.Common.Component.Builder, org.sonarqube.ws.Common.ComponentOrBuilder> + getComponentsFieldBuilder() { + if (componentsBuilder_ == null) { + componentsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + org.sonarqube.ws.Common.Component, org.sonarqube.ws.Common.Component.Builder, org.sonarqube.ws.Common.ComponentOrBuilder>( + components_, + ((bitField0_ & 0x00000002) == 0x00000002), + getParentForChildren(), + isClean()); + components_ = null; + } + return componentsBuilder_; + } + + private java.util.List rules_ = + java.util.Collections.emptyList(); + private void ensureRulesIsMutable() { + if (!((bitField0_ & 0x00000004) == 0x00000004)) { + rules_ = new java.util.ArrayList(rules_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + org.sonarqube.ws.Common.Rule, org.sonarqube.ws.Common.Rule.Builder, org.sonarqube.ws.Common.RuleOrBuilder> rulesBuilder_; + + /** + * repeated .sonarqube.ws.Rule rules = 3; + */ + public java.util.List getRulesList() { + if (rulesBuilder_ == null) { + return java.util.Collections.unmodifiableList(rules_); + } else { + return rulesBuilder_.getMessageList(); + } + } + /** + * repeated .sonarqube.ws.Rule rules = 3; + */ + public int getRulesCount() { + if (rulesBuilder_ == null) { + return rules_.size(); + } else { + return rulesBuilder_.getCount(); + } + } + /** + * repeated .sonarqube.ws.Rule rules = 3; + */ + public org.sonarqube.ws.Common.Rule getRules(int index) { + if (rulesBuilder_ == null) { + return rules_.get(index); + } else { + return rulesBuilder_.getMessage(index); + } + } + /** + * repeated .sonarqube.ws.Rule rules = 3; + */ + public Builder setRules( + int index, org.sonarqube.ws.Common.Rule value) { + if (rulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRulesIsMutable(); + rules_.set(index, value); + onChanged(); + } else { + rulesBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .sonarqube.ws.Rule rules = 3; + */ + public Builder setRules( + int index, org.sonarqube.ws.Common.Rule.Builder builderForValue) { + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + rules_.set(index, builderForValue.build()); + onChanged(); + } else { + rulesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .sonarqube.ws.Rule rules = 3; + */ + public Builder addRules(org.sonarqube.ws.Common.Rule value) { + if (rulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRulesIsMutable(); + rules_.add(value); + onChanged(); + } else { + rulesBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .sonarqube.ws.Rule rules = 3; + */ + public Builder addRules( + int index, org.sonarqube.ws.Common.Rule value) { + if (rulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRulesIsMutable(); + rules_.add(index, value); + onChanged(); + } else { + rulesBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .sonarqube.ws.Rule rules = 3; + */ + public Builder addRules( + org.sonarqube.ws.Common.Rule.Builder builderForValue) { + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + rules_.add(builderForValue.build()); + onChanged(); + } else { + rulesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .sonarqube.ws.Rule rules = 3; + */ + public Builder addRules( + int index, org.sonarqube.ws.Common.Rule.Builder builderForValue) { + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + rules_.add(index, builderForValue.build()); + onChanged(); + } else { + rulesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .sonarqube.ws.Rule rules = 3; + */ + public Builder addAllRules( + java.lang.Iterable values) { + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, rules_); + onChanged(); + } else { + rulesBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .sonarqube.ws.Rule rules = 3; + */ + public Builder clearRules() { + if (rulesBuilder_ == null) { + rules_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + rulesBuilder_.clear(); + } + return this; + } + /** + * repeated .sonarqube.ws.Rule rules = 3; + */ + public Builder removeRules(int index) { + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + rules_.remove(index); + onChanged(); + } else { + rulesBuilder_.remove(index); + } + return this; + } + /** + * repeated .sonarqube.ws.Rule rules = 3; + */ + public org.sonarqube.ws.Common.Rule.Builder getRulesBuilder( + int index) { + return getRulesFieldBuilder().getBuilder(index); + } + /** + * repeated .sonarqube.ws.Rule rules = 3; + */ + public org.sonarqube.ws.Common.RuleOrBuilder getRulesOrBuilder( + int index) { + if (rulesBuilder_ == null) { + return rules_.get(index); } else { + return rulesBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .sonarqube.ws.Rule rules = 3; + */ + public java.util.List + getRulesOrBuilderList() { + if (rulesBuilder_ != null) { + return rulesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(rules_); + } + } + /** + * repeated .sonarqube.ws.Rule rules = 3; + */ + public org.sonarqube.ws.Common.Rule.Builder addRulesBuilder() { + return getRulesFieldBuilder().addBuilder( + org.sonarqube.ws.Common.Rule.getDefaultInstance()); + } + /** + * repeated .sonarqube.ws.Rule rules = 3; + */ + public org.sonarqube.ws.Common.Rule.Builder addRulesBuilder( + int index) { + return getRulesFieldBuilder().addBuilder( + index, org.sonarqube.ws.Common.Rule.getDefaultInstance()); + } + /** + * repeated .sonarqube.ws.Rule rules = 3; + */ + public java.util.List + getRulesBuilderList() { + return getRulesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + org.sonarqube.ws.Common.Rule, org.sonarqube.ws.Common.Rule.Builder, org.sonarqube.ws.Common.RuleOrBuilder> + getRulesFieldBuilder() { + if (rulesBuilder_ == null) { + rulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + org.sonarqube.ws.Common.Rule, org.sonarqube.ws.Common.Rule.Builder, org.sonarqube.ws.Common.RuleOrBuilder>( + rules_, + ((bitField0_ & 0x00000004) == 0x00000004), + getParentForChildren(), + isClean()); + rules_ = null; + } + return rulesBuilder_; + } + + private java.util.List users_ = + java.util.Collections.emptyList(); + private void ensureUsersIsMutable() { + if (!((bitField0_ & 0x00000008) == 0x00000008)) { + users_ = new java.util.ArrayList(users_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + org.sonarqube.ws.Common.User, org.sonarqube.ws.Common.User.Builder, org.sonarqube.ws.Common.UserOrBuilder> usersBuilder_; + + /** + * repeated .sonarqube.ws.User users = 4; + */ + public java.util.List getUsersList() { + if (usersBuilder_ == null) { + return java.util.Collections.unmodifiableList(users_); + } else { + return usersBuilder_.getMessageList(); + } + } + /** + * repeated .sonarqube.ws.User users = 4; + */ + public int getUsersCount() { + if (usersBuilder_ == null) { + return users_.size(); + } else { + return usersBuilder_.getCount(); + } + } + /** + * repeated .sonarqube.ws.User users = 4; + */ + public org.sonarqube.ws.Common.User getUsers(int index) { + if (usersBuilder_ == null) { + return users_.get(index); + } else { + return usersBuilder_.getMessage(index); + } + } + /** + * repeated .sonarqube.ws.User users = 4; + */ + public Builder setUsers( + int index, org.sonarqube.ws.Common.User value) { + if (usersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureUsersIsMutable(); + users_.set(index, value); + onChanged(); + } else { + usersBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .sonarqube.ws.User users = 4; + */ + public Builder setUsers( + int index, org.sonarqube.ws.Common.User.Builder builderForValue) { + if (usersBuilder_ == null) { + ensureUsersIsMutable(); + users_.set(index, builderForValue.build()); + onChanged(); + } else { + usersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .sonarqube.ws.User users = 4; + */ + public Builder addUsers(org.sonarqube.ws.Common.User value) { + if (usersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureUsersIsMutable(); + users_.add(value); + onChanged(); + } else { + usersBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .sonarqube.ws.User users = 4; + */ + public Builder addUsers( + int index, org.sonarqube.ws.Common.User value) { + if (usersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureUsersIsMutable(); + users_.add(index, value); + onChanged(); + } else { + usersBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .sonarqube.ws.User users = 4; + */ + public Builder addUsers( + org.sonarqube.ws.Common.User.Builder builderForValue) { + if (usersBuilder_ == null) { + ensureUsersIsMutable(); + users_.add(builderForValue.build()); + onChanged(); + } else { + usersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .sonarqube.ws.User users = 4; + */ + public Builder addUsers( + int index, org.sonarqube.ws.Common.User.Builder builderForValue) { + if (usersBuilder_ == null) { + ensureUsersIsMutable(); + users_.add(index, builderForValue.build()); + onChanged(); + } else { + usersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .sonarqube.ws.User users = 4; + */ + public Builder addAllUsers( + java.lang.Iterable values) { + if (usersBuilder_ == null) { + ensureUsersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, users_); + onChanged(); + } else { + usersBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .sonarqube.ws.User users = 4; + */ + public Builder clearUsers() { + if (usersBuilder_ == null) { + users_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + usersBuilder_.clear(); + } + return this; + } + /** + * repeated .sonarqube.ws.User users = 4; + */ + public Builder removeUsers(int index) { + if (usersBuilder_ == null) { + ensureUsersIsMutable(); + users_.remove(index); + onChanged(); + } else { + usersBuilder_.remove(index); + } + return this; + } + /** + * repeated .sonarqube.ws.User users = 4; + */ + public org.sonarqube.ws.Common.User.Builder getUsersBuilder( + int index) { + return getUsersFieldBuilder().getBuilder(index); + } + /** + * repeated .sonarqube.ws.User users = 4; + */ + public org.sonarqube.ws.Common.UserOrBuilder getUsersOrBuilder( + int index) { + if (usersBuilder_ == null) { + return users_.get(index); } else { + return usersBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .sonarqube.ws.User users = 4; + */ + public java.util.List + getUsersOrBuilderList() { + if (usersBuilder_ != null) { + return usersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(users_); + } + } + /** + * repeated .sonarqube.ws.User users = 4; + */ + public org.sonarqube.ws.Common.User.Builder addUsersBuilder() { + return getUsersFieldBuilder().addBuilder( + org.sonarqube.ws.Common.User.getDefaultInstance()); + } + /** + * repeated .sonarqube.ws.User users = 4; + */ + public org.sonarqube.ws.Common.User.Builder addUsersBuilder( + int index) { + return getUsersFieldBuilder().addBuilder( + index, org.sonarqube.ws.Common.User.getDefaultInstance()); + } + /** + * repeated .sonarqube.ws.User users = 4; + */ + public java.util.List + getUsersBuilderList() { + return getUsersFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + org.sonarqube.ws.Common.User, org.sonarqube.ws.Common.User.Builder, org.sonarqube.ws.Common.UserOrBuilder> + getUsersFieldBuilder() { + if (usersBuilder_ == null) { + usersBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + org.sonarqube.ws.Common.User, org.sonarqube.ws.Common.User.Builder, org.sonarqube.ws.Common.UserOrBuilder>( + users_, + ((bitField0_ & 0x00000008) == 0x00000008), + getParentForChildren(), + isClean()); + users_ = null; + } + return usersBuilder_; + } + + private java.util.List actionPlans_ = + java.util.Collections.emptyList(); + private void ensureActionPlansIsMutable() { + if (!((bitField0_ & 0x00000010) == 0x00000010)) { + actionPlans_ = new java.util.ArrayList(actionPlans_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + org.sonarqube.ws.Issues.ActionPlan, org.sonarqube.ws.Issues.ActionPlan.Builder, org.sonarqube.ws.Issues.ActionPlanOrBuilder> actionPlansBuilder_; + + /** + * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 5; + */ + public java.util.List getActionPlansList() { + if (actionPlansBuilder_ == null) { + return java.util.Collections.unmodifiableList(actionPlans_); + } else { + return actionPlansBuilder_.getMessageList(); + } + } + /** + * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 5; + */ + public int getActionPlansCount() { + if (actionPlansBuilder_ == null) { + return actionPlans_.size(); + } else { + return actionPlansBuilder_.getCount(); + } + } + /** + * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 5; + */ + public org.sonarqube.ws.Issues.ActionPlan getActionPlans(int index) { + if (actionPlansBuilder_ == null) { + return actionPlans_.get(index); + } else { + return actionPlansBuilder_.getMessage(index); + } + } + /** + * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 5; + */ + public Builder setActionPlans( + int index, org.sonarqube.ws.Issues.ActionPlan value) { + if (actionPlansBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureActionPlansIsMutable(); + actionPlans_.set(index, value); + onChanged(); + } else { + actionPlansBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 5; + */ + public Builder setActionPlans( + int index, org.sonarqube.ws.Issues.ActionPlan.Builder builderForValue) { + if (actionPlansBuilder_ == null) { + ensureActionPlansIsMutable(); + actionPlans_.set(index, builderForValue.build()); + onChanged(); + } else { + actionPlansBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 5; + */ + public Builder addActionPlans(org.sonarqube.ws.Issues.ActionPlan value) { + if (actionPlansBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureActionPlansIsMutable(); + actionPlans_.add(value); + onChanged(); + } else { + actionPlansBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 5; + */ + public Builder addActionPlans( + int index, org.sonarqube.ws.Issues.ActionPlan value) { + if (actionPlansBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureActionPlansIsMutable(); + actionPlans_.add(index, value); + onChanged(); + } else { + actionPlansBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 5; + */ + public Builder addActionPlans( + org.sonarqube.ws.Issues.ActionPlan.Builder builderForValue) { + if (actionPlansBuilder_ == null) { + ensureActionPlansIsMutable(); + actionPlans_.add(builderForValue.build()); + onChanged(); + } else { + actionPlansBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 5; + */ + public Builder addActionPlans( + int index, org.sonarqube.ws.Issues.ActionPlan.Builder builderForValue) { + if (actionPlansBuilder_ == null) { + ensureActionPlansIsMutable(); + actionPlans_.add(index, builderForValue.build()); + onChanged(); + } else { + actionPlansBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 5; + */ + public Builder addAllActionPlans( + java.lang.Iterable values) { + if (actionPlansBuilder_ == null) { + ensureActionPlansIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, actionPlans_); + onChanged(); + } else { + actionPlansBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 5; + */ + public Builder clearActionPlans() { + if (actionPlansBuilder_ == null) { + actionPlans_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + actionPlansBuilder_.clear(); + } + return this; + } + /** + * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 5; + */ + public Builder removeActionPlans(int index) { + if (actionPlansBuilder_ == null) { + ensureActionPlansIsMutable(); + actionPlans_.remove(index); + onChanged(); + } else { + actionPlansBuilder_.remove(index); + } + return this; + } + /** + * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 5; + */ + public org.sonarqube.ws.Issues.ActionPlan.Builder getActionPlansBuilder( + int index) { + return getActionPlansFieldBuilder().getBuilder(index); + } + /** + * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 5; + */ + public org.sonarqube.ws.Issues.ActionPlanOrBuilder getActionPlansOrBuilder( + int index) { + if (actionPlansBuilder_ == null) { + return actionPlans_.get(index); } else { + return actionPlansBuilder_.getMessageOrBuilder(index); + } } - - private boolean facetsPresentIfEmpty_ ; /** - * optional bool facetsPresentIfEmpty = 21; + * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 5; */ - public boolean hasFacetsPresentIfEmpty() { - return ((bitField0_ & 0x00080000) == 0x00080000); + public java.util.List + getActionPlansOrBuilderList() { + if (actionPlansBuilder_ != null) { + return actionPlansBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(actionPlans_); + } } /** - * optional bool facetsPresentIfEmpty = 21; + * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 5; */ - public boolean getFacetsPresentIfEmpty() { - return facetsPresentIfEmpty_; + public org.sonarqube.ws.Issues.ActionPlan.Builder addActionPlansBuilder() { + return getActionPlansFieldBuilder().addBuilder( + org.sonarqube.ws.Issues.ActionPlan.getDefaultInstance()); } /** - * optional bool facetsPresentIfEmpty = 21; + * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 5; */ - public Builder setFacetsPresentIfEmpty(boolean value) { - bitField0_ |= 0x00080000; - facetsPresentIfEmpty_ = value; - onChanged(); - return this; + public org.sonarqube.ws.Issues.ActionPlan.Builder addActionPlansBuilder( + int index) { + return getActionPlansFieldBuilder().addBuilder( + index, org.sonarqube.ws.Issues.ActionPlan.getDefaultInstance()); } /** - * optional bool facetsPresentIfEmpty = 21; + * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 5; */ - public Builder clearFacetsPresentIfEmpty() { - bitField0_ = (bitField0_ & ~0x00080000); - facetsPresentIfEmpty_ = false; - onChanged(); - return this; + public java.util.List + getActionPlansBuilderList() { + return getActionPlansFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + org.sonarqube.ws.Issues.ActionPlan, org.sonarqube.ws.Issues.ActionPlan.Builder, org.sonarqube.ws.Issues.ActionPlanOrBuilder> + getActionPlansFieldBuilder() { + if (actionPlansBuilder_ == null) { + actionPlansBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + org.sonarqube.ws.Issues.ActionPlan, org.sonarqube.ws.Issues.ActionPlan.Builder, org.sonarqube.ws.Issues.ActionPlanOrBuilder>( + actionPlans_, + ((bitField0_ & 0x00000010) == 0x00000010), + getParentForChildren(), + isClean()); + actionPlans_ = null; + } + return actionPlansBuilder_; } - // @@protoc_insertion_point(builder_scope:sonarqube.ws.issues.Search) + // @@protoc_insertion_point(builder_scope:sonarqube.ws.issues.Operation) } static { - defaultInstance = new Search(true); + defaultInstance = new Operation(true); defaultInstance.initFields(); } - // @@protoc_insertion_point(class_scope:sonarqube.ws.issues.Search) + // @@protoc_insertion_point(class_scope:sonarqube.ws.issues.Operation) } public interface IssueOrBuilder extends @@ -4373,100 +5813,114 @@ public final class Issues { getProjectBytes(); /** - * optional int32 line = 7; + * optional string subProject = 7; + */ + boolean hasSubProject(); + /** + * optional string subProject = 7; + */ + java.lang.String getSubProject(); + /** + * optional string subProject = 7; + */ + com.google.protobuf.ByteString + getSubProjectBytes(); + + /** + * optional int32 line = 8; */ boolean hasLine(); /** - * optional int32 line = 7; + * optional int32 line = 8; */ int getLine(); /** - * optional string resolution = 8; + * optional string resolution = 9; */ boolean hasResolution(); /** - * optional string resolution = 8; + * optional string resolution = 9; */ java.lang.String getResolution(); /** - * optional string resolution = 8; + * optional string resolution = 9; */ com.google.protobuf.ByteString getResolutionBytes(); /** - * optional string status = 9; + * optional string status = 10; */ boolean hasStatus(); /** - * optional string status = 9; + * optional string status = 10; */ java.lang.String getStatus(); /** - * optional string status = 9; + * optional string status = 10; */ com.google.protobuf.ByteString getStatusBytes(); /** - * optional string message = 10; + * optional string message = 11; */ boolean hasMessage(); /** - * optional string message = 10; + * optional string message = 11; */ java.lang.String getMessage(); /** - * optional string message = 10; + * optional string message = 11; */ com.google.protobuf.ByteString getMessageBytes(); /** - * optional string debt = 11; + * optional string debt = 12; */ boolean hasDebt(); /** - * optional string debt = 11; + * optional string debt = 12; */ java.lang.String getDebt(); /** - * optional string debt = 11; + * optional string debt = 12; */ com.google.protobuf.ByteString getDebtBytes(); /** - * optional string assignee = 12; + * optional string assignee = 13; */ boolean hasAssignee(); /** - * optional string assignee = 12; + * optional string assignee = 13; */ java.lang.String getAssignee(); /** - * optional string assignee = 12; + * optional string assignee = 13; */ com.google.protobuf.ByteString getAssigneeBytes(); /** - * optional string reporter = 13; + * optional string reporter = 14; */ boolean hasReporter(); /** - * optional string reporter = 13; + * optional string reporter = 14; */ java.lang.String getReporter(); /** - * optional string reporter = 13; + * optional string reporter = 14; */ com.google.protobuf.ByteString getReporterBytes(); /** - * optional string author = 14; + * optional string author = 15; * *
      * SCM login of the committer who introduced the issue
@@ -4474,7 +5928,7 @@ public final class Issues {
      */
     boolean hasAuthor();
     /**
-     * optional string author = 14;
+     * optional string author = 15;
      *
      * 
      * SCM login of the committer who introduced the issue
@@ -4482,7 +5936,7 @@ public final class Issues {
      */
     java.lang.String getAuthor();
     /**
-     * optional string author = 14;
+     * optional string author = 15;
      *
      * 
      * SCM login of the committer who introduced the issue
@@ -4492,68 +5946,68 @@ public final class Issues {
         getAuthorBytes();
 
     /**
-     * optional string actionPlan = 15;
+     * optional string actionPlan = 16;
      */
     boolean hasActionPlan();
     /**
-     * optional string actionPlan = 15;
+     * optional string actionPlan = 16;
      */
     java.lang.String getActionPlan();
     /**
-     * optional string actionPlan = 15;
+     * optional string actionPlan = 16;
      */
     com.google.protobuf.ByteString
         getActionPlanBytes();
 
     /**
-     * optional string actionPlanName = 16;
+     * optional string actionPlanName = 17;
      */
     boolean hasActionPlanName();
     /**
-     * optional string actionPlanName = 16;
+     * optional string actionPlanName = 17;
      */
     java.lang.String getActionPlanName();
     /**
-     * optional string actionPlanName = 16;
+     * optional string actionPlanName = 17;
      */
     com.google.protobuf.ByteString
         getActionPlanNameBytes();
 
     /**
-     * optional string attr = 17;
+     * optional string attr = 18;
      */
     boolean hasAttr();
     /**
-     * optional string attr = 17;
+     * optional string attr = 18;
      */
     java.lang.String getAttr();
     /**
-     * optional string attr = 17;
+     * optional string attr = 18;
      */
     com.google.protobuf.ByteString
         getAttrBytes();
 
     /**
-     * repeated string tags = 18;
+     * repeated string tags = 19;
      */
     com.google.protobuf.ProtocolStringList
         getTagsList();
     /**
-     * repeated string tags = 18;
+     * repeated string tags = 19;
      */
     int getTagsCount();
     /**
-     * repeated string tags = 18;
+     * repeated string tags = 19;
      */
     java.lang.String getTags(int index);
     /**
-     * repeated string tags = 18;
+     * repeated string tags = 19;
      */
     com.google.protobuf.ByteString
         getTagsBytes(int index);
 
     /**
-     * optional bool transitionsPresentIfEmpty = 19;
+     * optional bool transitionsPresentIfEmpty = 20;
      *
      * 
      * the transitions allowed for the requesting user.
@@ -4561,7 +6015,7 @@ public final class Issues {
      */
     boolean hasTransitionsPresentIfEmpty();
     /**
-     * optional bool transitionsPresentIfEmpty = 19;
+     * optional bool transitionsPresentIfEmpty = 20;
      *
      * 
      * the transitions allowed for the requesting user.
@@ -4570,26 +6024,26 @@ public final class Issues {
     boolean getTransitionsPresentIfEmpty();
 
     /**
-     * repeated string transitions = 20;
+     * repeated string transitions = 21;
      */
     com.google.protobuf.ProtocolStringList
         getTransitionsList();
     /**
-     * repeated string transitions = 20;
+     * repeated string transitions = 21;
      */
     int getTransitionsCount();
     /**
-     * repeated string transitions = 20;
+     * repeated string transitions = 21;
      */
     java.lang.String getTransitions(int index);
     /**
-     * repeated string transitions = 20;
+     * repeated string transitions = 21;
      */
     com.google.protobuf.ByteString
         getTransitionsBytes(int index);
 
     /**
-     * optional bool actionsPresentIfEmpty = 21;
+     * optional bool actionsPresentIfEmpty = 22;
      *
      * 
      * the actions allowed for the requesting user.
@@ -4597,7 +6051,7 @@ public final class Issues {
      */
     boolean hasActionsPresentIfEmpty();
     /**
-     * optional bool actionsPresentIfEmpty = 21;
+     * optional bool actionsPresentIfEmpty = 22;
      *
      * 
      * the actions allowed for the requesting user.
@@ -4606,109 +6060,109 @@ public final class Issues {
     boolean getActionsPresentIfEmpty();
 
     /**
-     * repeated string actions = 22;
+     * repeated string actions = 23;
      */
     com.google.protobuf.ProtocolStringList
         getActionsList();
     /**
-     * repeated string actions = 22;
+     * repeated string actions = 23;
      */
     int getActionsCount();
     /**
-     * repeated string actions = 22;
+     * repeated string actions = 23;
      */
     java.lang.String getActions(int index);
     /**
-     * repeated string actions = 22;
+     * repeated string actions = 23;
      */
     com.google.protobuf.ByteString
         getActionsBytes(int index);
 
     /**
-     * optional bool commentsPresentIfEmpty = 23;
+     * optional bool commentsPresentIfEmpty = 24;
      */
     boolean hasCommentsPresentIfEmpty();
     /**
-     * optional bool commentsPresentIfEmpty = 23;
+     * optional bool commentsPresentIfEmpty = 24;
      */
     boolean getCommentsPresentIfEmpty();
 
     /**
-     * repeated .sonarqube.ws.issues.Comment comments = 24;
+     * repeated .sonarqube.ws.issues.Comment comments = 25;
      */
     java.util.List 
         getCommentsList();
     /**
-     * repeated .sonarqube.ws.issues.Comment comments = 24;
+     * repeated .sonarqube.ws.issues.Comment comments = 25;
      */
     org.sonarqube.ws.Issues.Comment getComments(int index);
     /**
-     * repeated .sonarqube.ws.issues.Comment comments = 24;
+     * repeated .sonarqube.ws.issues.Comment comments = 25;
      */
     int getCommentsCount();
     /**
-     * repeated .sonarqube.ws.issues.Comment comments = 24;
+     * repeated .sonarqube.ws.issues.Comment comments = 25;
      */
     java.util.List 
         getCommentsOrBuilderList();
     /**
-     * repeated .sonarqube.ws.issues.Comment comments = 24;
+     * repeated .sonarqube.ws.issues.Comment comments = 25;
      */
     org.sonarqube.ws.Issues.CommentOrBuilder getCommentsOrBuilder(
         int index);
 
     /**
-     * optional string creationDate = 25;
+     * optional string creationDate = 26;
      */
     boolean hasCreationDate();
     /**
-     * optional string creationDate = 25;
+     * optional string creationDate = 26;
      */
     java.lang.String getCreationDate();
     /**
-     * optional string creationDate = 25;
+     * optional string creationDate = 26;
      */
     com.google.protobuf.ByteString
         getCreationDateBytes();
 
     /**
-     * optional string updateDate = 26;
+     * optional string updateDate = 27;
      */
     boolean hasUpdateDate();
     /**
-     * optional string updateDate = 26;
+     * optional string updateDate = 27;
      */
     java.lang.String getUpdateDate();
     /**
-     * optional string updateDate = 26;
+     * optional string updateDate = 27;
      */
     com.google.protobuf.ByteString
         getUpdateDateBytes();
 
     /**
-     * optional string fUpdateAge = 27;
+     * optional string fUpdateAge = 28;
      */
     boolean hasFUpdateAge();
     /**
-     * optional string fUpdateAge = 27;
+     * optional string fUpdateAge = 28;
      */
     java.lang.String getFUpdateAge();
     /**
-     * optional string fUpdateAge = 27;
+     * optional string fUpdateAge = 28;
      */
     com.google.protobuf.ByteString
         getFUpdateAgeBytes();
 
     /**
-     * optional string closeDate = 28;
+     * optional string closeDate = 29;
      */
     boolean hasCloseDate();
     /**
-     * optional string closeDate = 28;
+     * optional string closeDate = 29;
      */
     java.lang.String getCloseDate();
     /**
-     * optional string closeDate = 28;
+     * optional string closeDate = 29;
      */
     com.google.protobuf.ByteString
         getCloseDateBytes();
@@ -4805,142 +6259,148 @@ public final class Issues {
               project_ = bs;
               break;
             }
-            case 56: {
+            case 58: {
+              com.google.protobuf.ByteString bs = input.readBytes();
               bitField0_ |= 0x00000040;
-              line_ = input.readInt32();
+              subProject_ = bs;
               break;
             }
-            case 66: {
-              com.google.protobuf.ByteString bs = input.readBytes();
+            case 64: {
               bitField0_ |= 0x00000080;
-              resolution_ = bs;
+              line_ = input.readInt32();
               break;
             }
             case 74: {
               com.google.protobuf.ByteString bs = input.readBytes();
               bitField0_ |= 0x00000100;
-              status_ = bs;
+              resolution_ = bs;
               break;
             }
             case 82: {
               com.google.protobuf.ByteString bs = input.readBytes();
               bitField0_ |= 0x00000200;
-              message_ = bs;
+              status_ = bs;
               break;
             }
             case 90: {
               com.google.protobuf.ByteString bs = input.readBytes();
               bitField0_ |= 0x00000400;
-              debt_ = bs;
+              message_ = bs;
               break;
             }
             case 98: {
               com.google.protobuf.ByteString bs = input.readBytes();
               bitField0_ |= 0x00000800;
-              assignee_ = bs;
+              debt_ = bs;
               break;
             }
             case 106: {
               com.google.protobuf.ByteString bs = input.readBytes();
               bitField0_ |= 0x00001000;
-              reporter_ = bs;
+              assignee_ = bs;
               break;
             }
             case 114: {
               com.google.protobuf.ByteString bs = input.readBytes();
               bitField0_ |= 0x00002000;
-              author_ = bs;
+              reporter_ = bs;
               break;
             }
             case 122: {
               com.google.protobuf.ByteString bs = input.readBytes();
               bitField0_ |= 0x00004000;
-              actionPlan_ = bs;
+              author_ = bs;
               break;
             }
             case 130: {
               com.google.protobuf.ByteString bs = input.readBytes();
               bitField0_ |= 0x00008000;
-              actionPlanName_ = bs;
+              actionPlan_ = bs;
               break;
             }
             case 138: {
               com.google.protobuf.ByteString bs = input.readBytes();
               bitField0_ |= 0x00010000;
-              attr_ = bs;
+              actionPlanName_ = bs;
               break;
             }
             case 146: {
               com.google.protobuf.ByteString bs = input.readBytes();
-              if (!((mutable_bitField0_ & 0x00020000) == 0x00020000)) {
+              bitField0_ |= 0x00020000;
+              attr_ = bs;
+              break;
+            }
+            case 154: {
+              com.google.protobuf.ByteString bs = input.readBytes();
+              if (!((mutable_bitField0_ & 0x00040000) == 0x00040000)) {
                 tags_ = new com.google.protobuf.LazyStringArrayList();
-                mutable_bitField0_ |= 0x00020000;
+                mutable_bitField0_ |= 0x00040000;
               }
               tags_.add(bs);
               break;
             }
-            case 152: {
-              bitField0_ |= 0x00020000;
+            case 160: {
+              bitField0_ |= 0x00040000;
               transitionsPresentIfEmpty_ = input.readBool();
               break;
             }
-            case 162: {
+            case 170: {
               com.google.protobuf.ByteString bs = input.readBytes();
-              if (!((mutable_bitField0_ & 0x00080000) == 0x00080000)) {
+              if (!((mutable_bitField0_ & 0x00100000) == 0x00100000)) {
                 transitions_ = new com.google.protobuf.LazyStringArrayList();
-                mutable_bitField0_ |= 0x00080000;
+                mutable_bitField0_ |= 0x00100000;
               }
               transitions_.add(bs);
               break;
             }
-            case 168: {
-              bitField0_ |= 0x00040000;
+            case 176: {
+              bitField0_ |= 0x00080000;
               actionsPresentIfEmpty_ = input.readBool();
               break;
             }
-            case 178: {
+            case 186: {
               com.google.protobuf.ByteString bs = input.readBytes();
-              if (!((mutable_bitField0_ & 0x00200000) == 0x00200000)) {
+              if (!((mutable_bitField0_ & 0x00400000) == 0x00400000)) {
                 actions_ = new com.google.protobuf.LazyStringArrayList();
-                mutable_bitField0_ |= 0x00200000;
+                mutable_bitField0_ |= 0x00400000;
               }
               actions_.add(bs);
               break;
             }
-            case 184: {
-              bitField0_ |= 0x00080000;
+            case 192: {
+              bitField0_ |= 0x00100000;
               commentsPresentIfEmpty_ = input.readBool();
               break;
             }
-            case 194: {
-              if (!((mutable_bitField0_ & 0x00800000) == 0x00800000)) {
+            case 202: {
+              if (!((mutable_bitField0_ & 0x01000000) == 0x01000000)) {
                 comments_ = new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00800000;
+                mutable_bitField0_ |= 0x01000000;
               }
               comments_.add(input.readMessage(org.sonarqube.ws.Issues.Comment.PARSER, extensionRegistry));
               break;
             }
-            case 202: {
-              com.google.protobuf.ByteString bs = input.readBytes();
-              bitField0_ |= 0x00100000;
-              creationDate_ = bs;
-              break;
-            }
             case 210: {
               com.google.protobuf.ByteString bs = input.readBytes();
               bitField0_ |= 0x00200000;
-              updateDate_ = bs;
+              creationDate_ = bs;
               break;
             }
             case 218: {
               com.google.protobuf.ByteString bs = input.readBytes();
               bitField0_ |= 0x00400000;
-              fUpdateAge_ = bs;
+              updateDate_ = bs;
               break;
             }
             case 226: {
               com.google.protobuf.ByteString bs = input.readBytes();
               bitField0_ |= 0x00800000;
+              fUpdateAge_ = bs;
+              break;
+            }
+            case 234: {
+              com.google.protobuf.ByteString bs = input.readBytes();
+              bitField0_ |= 0x01000000;
               closeDate_ = bs;
               break;
             }
@@ -4952,16 +6412,16 @@ public final class Issues {
         throw new com.google.protobuf.InvalidProtocolBufferException(
             e.getMessage()).setUnfinishedMessage(this);
       } finally {
-        if (((mutable_bitField0_ & 0x00020000) == 0x00020000)) {
+        if (((mutable_bitField0_ & 0x00040000) == 0x00040000)) {
           tags_ = tags_.getUnmodifiableView();
         }
-        if (((mutable_bitField0_ & 0x00080000) == 0x00080000)) {
+        if (((mutable_bitField0_ & 0x00100000) == 0x00100000)) {
           transitions_ = transitions_.getUnmodifiableView();
         }
-        if (((mutable_bitField0_ & 0x00200000) == 0x00200000)) {
+        if (((mutable_bitField0_ & 0x00400000) == 0x00400000)) {
           actions_ = actions_.getUnmodifiableView();
         }
-        if (((mutable_bitField0_ & 0x00800000) == 0x00800000)) {
+        if (((mutable_bitField0_ & 0x01000000) == 0x01000000)) {
           comments_ = java.util.Collections.unmodifiableList(comments_);
         }
         this.unknownFields = unknownFields.build();
@@ -5194,31 +6654,73 @@ public final class Issues {
       }
     }
 
-    public static final int LINE_FIELD_NUMBER = 7;
+    public static final int SUBPROJECT_FIELD_NUMBER = 7;
+    private java.lang.Object subProject_;
+    /**
+     * optional string subProject = 7;
+     */
+    public boolean hasSubProject() {
+      return ((bitField0_ & 0x00000040) == 0x00000040);
+    }
+    /**
+     * optional string subProject = 7;
+     */
+    public java.lang.String getSubProject() {
+      java.lang.Object ref = subProject_;
+      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()) {
+          subProject_ = s;
+        }
+        return s;
+      }
+    }
+    /**
+     * optional string subProject = 7;
+     */
+    public com.google.protobuf.ByteString
+        getSubProjectBytes() {
+      java.lang.Object ref = subProject_;
+      if (ref instanceof java.lang.String) {
+        com.google.protobuf.ByteString b = 
+            com.google.protobuf.ByteString.copyFromUtf8(
+                (java.lang.String) ref);
+        subProject_ = b;
+        return b;
+      } else {
+        return (com.google.protobuf.ByteString) ref;
+      }
+    }
+
+    public static final int LINE_FIELD_NUMBER = 8;
     private int line_;
     /**
-     * optional int32 line = 7;
+     * optional int32 line = 8;
      */
     public boolean hasLine() {
-      return ((bitField0_ & 0x00000040) == 0x00000040);
+      return ((bitField0_ & 0x00000080) == 0x00000080);
     }
     /**
-     * optional int32 line = 7;
+     * optional int32 line = 8;
      */
     public int getLine() {
       return line_;
     }
 
-    public static final int RESOLUTION_FIELD_NUMBER = 8;
+    public static final int RESOLUTION_FIELD_NUMBER = 9;
     private java.lang.Object resolution_;
     /**
-     * optional string resolution = 8;
+     * optional string resolution = 9;
      */
     public boolean hasResolution() {
-      return ((bitField0_ & 0x00000080) == 0x00000080);
+      return ((bitField0_ & 0x00000100) == 0x00000100);
     }
     /**
-     * optional string resolution = 8;
+     * optional string resolution = 9;
      */
     public java.lang.String getResolution() {
       java.lang.Object ref = resolution_;
@@ -5235,7 +6737,7 @@ public final class Issues {
       }
     }
     /**
-     * optional string resolution = 8;
+     * optional string resolution = 9;
      */
     public com.google.protobuf.ByteString
         getResolutionBytes() {
@@ -5251,16 +6753,16 @@ public final class Issues {
       }
     }
 
-    public static final int STATUS_FIELD_NUMBER = 9;
+    public static final int STATUS_FIELD_NUMBER = 10;
     private java.lang.Object status_;
     /**
-     * optional string status = 9;
+     * optional string status = 10;
      */
     public boolean hasStatus() {
-      return ((bitField0_ & 0x00000100) == 0x00000100);
+      return ((bitField0_ & 0x00000200) == 0x00000200);
     }
     /**
-     * optional string status = 9;
+     * optional string status = 10;
      */
     public java.lang.String getStatus() {
       java.lang.Object ref = status_;
@@ -5277,7 +6779,7 @@ public final class Issues {
       }
     }
     /**
-     * optional string status = 9;
+     * optional string status = 10;
      */
     public com.google.protobuf.ByteString
         getStatusBytes() {
@@ -5293,16 +6795,16 @@ public final class Issues {
       }
     }
 
-    public static final int MESSAGE_FIELD_NUMBER = 10;
+    public static final int MESSAGE_FIELD_NUMBER = 11;
     private java.lang.Object message_;
     /**
-     * optional string message = 10;
+     * optional string message = 11;
      */
     public boolean hasMessage() {
-      return ((bitField0_ & 0x00000200) == 0x00000200);
+      return ((bitField0_ & 0x00000400) == 0x00000400);
     }
     /**
-     * optional string message = 10;
+     * optional string message = 11;
      */
     public java.lang.String getMessage() {
       java.lang.Object ref = message_;
@@ -5319,7 +6821,7 @@ public final class Issues {
       }
     }
     /**
-     * optional string message = 10;
+     * optional string message = 11;
      */
     public com.google.protobuf.ByteString
         getMessageBytes() {
@@ -5335,16 +6837,16 @@ public final class Issues {
       }
     }
 
-    public static final int DEBT_FIELD_NUMBER = 11;
+    public static final int DEBT_FIELD_NUMBER = 12;
     private java.lang.Object debt_;
     /**
-     * optional string debt = 11;
+     * optional string debt = 12;
      */
     public boolean hasDebt() {
-      return ((bitField0_ & 0x00000400) == 0x00000400);
+      return ((bitField0_ & 0x00000800) == 0x00000800);
     }
     /**
-     * optional string debt = 11;
+     * optional string debt = 12;
      */
     public java.lang.String getDebt() {
       java.lang.Object ref = debt_;
@@ -5361,7 +6863,7 @@ public final class Issues {
       }
     }
     /**
-     * optional string debt = 11;
+     * optional string debt = 12;
      */
     public com.google.protobuf.ByteString
         getDebtBytes() {
@@ -5377,16 +6879,16 @@ public final class Issues {
       }
     }
 
-    public static final int ASSIGNEE_FIELD_NUMBER = 12;
+    public static final int ASSIGNEE_FIELD_NUMBER = 13;
     private java.lang.Object assignee_;
     /**
-     * optional string assignee = 12;
+     * optional string assignee = 13;
      */
     public boolean hasAssignee() {
-      return ((bitField0_ & 0x00000800) == 0x00000800);
+      return ((bitField0_ & 0x00001000) == 0x00001000);
     }
     /**
-     * optional string assignee = 12;
+     * optional string assignee = 13;
      */
     public java.lang.String getAssignee() {
       java.lang.Object ref = assignee_;
@@ -5403,7 +6905,7 @@ public final class Issues {
       }
     }
     /**
-     * optional string assignee = 12;
+     * optional string assignee = 13;
      */
     public com.google.protobuf.ByteString
         getAssigneeBytes() {
@@ -5419,16 +6921,16 @@ public final class Issues {
       }
     }
 
-    public static final int REPORTER_FIELD_NUMBER = 13;
+    public static final int REPORTER_FIELD_NUMBER = 14;
     private java.lang.Object reporter_;
     /**
-     * optional string reporter = 13;
+     * optional string reporter = 14;
      */
     public boolean hasReporter() {
-      return ((bitField0_ & 0x00001000) == 0x00001000);
+      return ((bitField0_ & 0x00002000) == 0x00002000);
     }
     /**
-     * optional string reporter = 13;
+     * optional string reporter = 14;
      */
     public java.lang.String getReporter() {
       java.lang.Object ref = reporter_;
@@ -5445,7 +6947,7 @@ public final class Issues {
       }
     }
     /**
-     * optional string reporter = 13;
+     * optional string reporter = 14;
      */
     public com.google.protobuf.ByteString
         getReporterBytes() {
@@ -5461,20 +6963,20 @@ public final class Issues {
       }
     }
 
-    public static final int AUTHOR_FIELD_NUMBER = 14;
+    public static final int AUTHOR_FIELD_NUMBER = 15;
     private java.lang.Object author_;
     /**
-     * optional string author = 14;
+     * optional string author = 15;
      *
      * 
      * SCM login of the committer who introduced the issue
      * 
*/ public boolean hasAuthor() { - return ((bitField0_ & 0x00002000) == 0x00002000); + return ((bitField0_ & 0x00004000) == 0x00004000); } /** - * optional string author = 14; + * optional string author = 15; * *
      * SCM login of the committer who introduced the issue
@@ -5495,7 +6997,7 @@ public final class Issues {
       }
     }
     /**
-     * optional string author = 14;
+     * optional string author = 15;
      *
      * 
      * SCM login of the committer who introduced the issue
@@ -5515,16 +7017,16 @@ public final class Issues {
       }
     }
 
-    public static final int ACTIONPLAN_FIELD_NUMBER = 15;
+    public static final int ACTIONPLAN_FIELD_NUMBER = 16;
     private java.lang.Object actionPlan_;
     /**
-     * optional string actionPlan = 15;
+     * optional string actionPlan = 16;
      */
     public boolean hasActionPlan() {
-      return ((bitField0_ & 0x00004000) == 0x00004000);
+      return ((bitField0_ & 0x00008000) == 0x00008000);
     }
     /**
-     * optional string actionPlan = 15;
+     * optional string actionPlan = 16;
      */
     public java.lang.String getActionPlan() {
       java.lang.Object ref = actionPlan_;
@@ -5541,7 +7043,7 @@ public final class Issues {
       }
     }
     /**
-     * optional string actionPlan = 15;
+     * optional string actionPlan = 16;
      */
     public com.google.protobuf.ByteString
         getActionPlanBytes() {
@@ -5557,16 +7059,16 @@ public final class Issues {
       }
     }
 
-    public static final int ACTIONPLANNAME_FIELD_NUMBER = 16;
+    public static final int ACTIONPLANNAME_FIELD_NUMBER = 17;
     private java.lang.Object actionPlanName_;
     /**
-     * optional string actionPlanName = 16;
+     * optional string actionPlanName = 17;
      */
     public boolean hasActionPlanName() {
-      return ((bitField0_ & 0x00008000) == 0x00008000);
+      return ((bitField0_ & 0x00010000) == 0x00010000);
     }
     /**
-     * optional string actionPlanName = 16;
+     * optional string actionPlanName = 17;
      */
     public java.lang.String getActionPlanName() {
       java.lang.Object ref = actionPlanName_;
@@ -5583,7 +7085,7 @@ public final class Issues {
       }
     }
     /**
-     * optional string actionPlanName = 16;
+     * optional string actionPlanName = 17;
      */
     public com.google.protobuf.ByteString
         getActionPlanNameBytes() {
@@ -5599,16 +7101,16 @@ public final class Issues {
       }
     }
 
-    public static final int ATTR_FIELD_NUMBER = 17;
+    public static final int ATTR_FIELD_NUMBER = 18;
     private java.lang.Object attr_;
     /**
-     * optional string attr = 17;
+     * optional string attr = 18;
      */
     public boolean hasAttr() {
-      return ((bitField0_ & 0x00010000) == 0x00010000);
+      return ((bitField0_ & 0x00020000) == 0x00020000);
     }
     /**
-     * optional string attr = 17;
+     * optional string attr = 18;
      */
     public java.lang.String getAttr() {
       java.lang.Object ref = attr_;
@@ -5625,7 +7127,7 @@ public final class Issues {
       }
     }
     /**
-     * optional string attr = 17;
+     * optional string attr = 18;
      */
     public com.google.protobuf.ByteString
         getAttrBytes() {
@@ -5641,49 +7143,49 @@ public final class Issues {
       }
     }
 
-    public static final int TAGS_FIELD_NUMBER = 18;
+    public static final int TAGS_FIELD_NUMBER = 19;
     private com.google.protobuf.LazyStringList tags_;
     /**
-     * repeated string tags = 18;
+     * repeated string tags = 19;
      */
     public com.google.protobuf.ProtocolStringList
         getTagsList() {
       return tags_;
     }
     /**
-     * repeated string tags = 18;
+     * repeated string tags = 19;
      */
     public int getTagsCount() {
       return tags_.size();
     }
     /**
-     * repeated string tags = 18;
+     * repeated string tags = 19;
      */
     public java.lang.String getTags(int index) {
       return tags_.get(index);
     }
     /**
-     * repeated string tags = 18;
+     * repeated string tags = 19;
      */
     public com.google.protobuf.ByteString
         getTagsBytes(int index) {
       return tags_.getByteString(index);
     }
 
-    public static final int TRANSITIONSPRESENTIFEMPTY_FIELD_NUMBER = 19;
+    public static final int TRANSITIONSPRESENTIFEMPTY_FIELD_NUMBER = 20;
     private boolean transitionsPresentIfEmpty_;
     /**
-     * optional bool transitionsPresentIfEmpty = 19;
+     * optional bool transitionsPresentIfEmpty = 20;
      *
      * 
      * the transitions allowed for the requesting user.
      * 
*/ public boolean hasTransitionsPresentIfEmpty() { - return ((bitField0_ & 0x00020000) == 0x00020000); + return ((bitField0_ & 0x00040000) == 0x00040000); } /** - * optional bool transitionsPresentIfEmpty = 19; + * optional bool transitionsPresentIfEmpty = 20; * *
      * the transitions allowed for the requesting user.
@@ -5693,49 +7195,49 @@ public final class Issues {
       return transitionsPresentIfEmpty_;
     }
 
-    public static final int TRANSITIONS_FIELD_NUMBER = 20;
+    public static final int TRANSITIONS_FIELD_NUMBER = 21;
     private com.google.protobuf.LazyStringList transitions_;
     /**
-     * repeated string transitions = 20;
+     * repeated string transitions = 21;
      */
     public com.google.protobuf.ProtocolStringList
         getTransitionsList() {
       return transitions_;
     }
     /**
-     * repeated string transitions = 20;
+     * repeated string transitions = 21;
      */
     public int getTransitionsCount() {
       return transitions_.size();
     }
     /**
-     * repeated string transitions = 20;
+     * repeated string transitions = 21;
      */
     public java.lang.String getTransitions(int index) {
       return transitions_.get(index);
     }
     /**
-     * repeated string transitions = 20;
+     * repeated string transitions = 21;
      */
     public com.google.protobuf.ByteString
         getTransitionsBytes(int index) {
       return transitions_.getByteString(index);
     }
 
-    public static final int ACTIONSPRESENTIFEMPTY_FIELD_NUMBER = 21;
+    public static final int ACTIONSPRESENTIFEMPTY_FIELD_NUMBER = 22;
     private boolean actionsPresentIfEmpty_;
     /**
-     * optional bool actionsPresentIfEmpty = 21;
+     * optional bool actionsPresentIfEmpty = 22;
      *
      * 
      * the actions allowed for the requesting user.
      * 
*/ public boolean hasActionsPresentIfEmpty() { - return ((bitField0_ & 0x00040000) == 0x00040000); + return ((bitField0_ & 0x00080000) == 0x00080000); } /** - * optional bool actionsPresentIfEmpty = 21; + * optional bool actionsPresentIfEmpty = 22; * *
      * the actions allowed for the requesting user.
@@ -5745,95 +7247,95 @@ public final class Issues {
       return actionsPresentIfEmpty_;
     }
 
-    public static final int ACTIONS_FIELD_NUMBER = 22;
+    public static final int ACTIONS_FIELD_NUMBER = 23;
     private com.google.protobuf.LazyStringList actions_;
     /**
-     * repeated string actions = 22;
+     * repeated string actions = 23;
      */
     public com.google.protobuf.ProtocolStringList
         getActionsList() {
       return actions_;
     }
     /**
-     * repeated string actions = 22;
+     * repeated string actions = 23;
      */
     public int getActionsCount() {
       return actions_.size();
     }
     /**
-     * repeated string actions = 22;
+     * repeated string actions = 23;
      */
     public java.lang.String getActions(int index) {
       return actions_.get(index);
     }
     /**
-     * repeated string actions = 22;
+     * repeated string actions = 23;
      */
     public com.google.protobuf.ByteString
         getActionsBytes(int index) {
       return actions_.getByteString(index);
     }
 
-    public static final int COMMENTSPRESENTIFEMPTY_FIELD_NUMBER = 23;
+    public static final int COMMENTSPRESENTIFEMPTY_FIELD_NUMBER = 24;
     private boolean commentsPresentIfEmpty_;
     /**
-     * optional bool commentsPresentIfEmpty = 23;
+     * optional bool commentsPresentIfEmpty = 24;
      */
     public boolean hasCommentsPresentIfEmpty() {
-      return ((bitField0_ & 0x00080000) == 0x00080000);
+      return ((bitField0_ & 0x00100000) == 0x00100000);
     }
     /**
-     * optional bool commentsPresentIfEmpty = 23;
+     * optional bool commentsPresentIfEmpty = 24;
      */
     public boolean getCommentsPresentIfEmpty() {
       return commentsPresentIfEmpty_;
     }
 
-    public static final int COMMENTS_FIELD_NUMBER = 24;
+    public static final int COMMENTS_FIELD_NUMBER = 25;
     private java.util.List comments_;
     /**
-     * repeated .sonarqube.ws.issues.Comment comments = 24;
+     * repeated .sonarqube.ws.issues.Comment comments = 25;
      */
     public java.util.List getCommentsList() {
       return comments_;
     }
     /**
-     * repeated .sonarqube.ws.issues.Comment comments = 24;
+     * repeated .sonarqube.ws.issues.Comment comments = 25;
      */
     public java.util.List 
         getCommentsOrBuilderList() {
       return comments_;
     }
     /**
-     * repeated .sonarqube.ws.issues.Comment comments = 24;
+     * repeated .sonarqube.ws.issues.Comment comments = 25;
      */
     public int getCommentsCount() {
       return comments_.size();
     }
     /**
-     * repeated .sonarqube.ws.issues.Comment comments = 24;
+     * repeated .sonarqube.ws.issues.Comment comments = 25;
      */
     public org.sonarqube.ws.Issues.Comment getComments(int index) {
       return comments_.get(index);
     }
     /**
-     * repeated .sonarqube.ws.issues.Comment comments = 24;
+     * repeated .sonarqube.ws.issues.Comment comments = 25;
      */
     public org.sonarqube.ws.Issues.CommentOrBuilder getCommentsOrBuilder(
         int index) {
       return comments_.get(index);
     }
 
-    public static final int CREATIONDATE_FIELD_NUMBER = 25;
+    public static final int CREATIONDATE_FIELD_NUMBER = 26;
     private java.lang.Object creationDate_;
     /**
-     * optional string creationDate = 25;
+     * optional string creationDate = 26;
      */
     public boolean hasCreationDate() {
-      return ((bitField0_ & 0x00100000) == 0x00100000);
+      return ((bitField0_ & 0x00200000) == 0x00200000);
     }
     /**
-     * optional string creationDate = 25;
+     * optional string creationDate = 26;
      */
     public java.lang.String getCreationDate() {
       java.lang.Object ref = creationDate_;
@@ -5850,7 +7352,7 @@ public final class Issues {
       }
     }
     /**
-     * optional string creationDate = 25;
+     * optional string creationDate = 26;
      */
     public com.google.protobuf.ByteString
         getCreationDateBytes() {
@@ -5866,16 +7368,16 @@ public final class Issues {
       }
     }
 
-    public static final int UPDATEDATE_FIELD_NUMBER = 26;
+    public static final int UPDATEDATE_FIELD_NUMBER = 27;
     private java.lang.Object updateDate_;
     /**
-     * optional string updateDate = 26;
+     * optional string updateDate = 27;
      */
     public boolean hasUpdateDate() {
-      return ((bitField0_ & 0x00200000) == 0x00200000);
+      return ((bitField0_ & 0x00400000) == 0x00400000);
     }
     /**
-     * optional string updateDate = 26;
+     * optional string updateDate = 27;
      */
     public java.lang.String getUpdateDate() {
       java.lang.Object ref = updateDate_;
@@ -5892,7 +7394,7 @@ public final class Issues {
       }
     }
     /**
-     * optional string updateDate = 26;
+     * optional string updateDate = 27;
      */
     public com.google.protobuf.ByteString
         getUpdateDateBytes() {
@@ -5908,16 +7410,16 @@ public final class Issues {
       }
     }
 
-    public static final int FUPDATEAGE_FIELD_NUMBER = 27;
+    public static final int FUPDATEAGE_FIELD_NUMBER = 28;
     private java.lang.Object fUpdateAge_;
     /**
-     * optional string fUpdateAge = 27;
+     * optional string fUpdateAge = 28;
      */
     public boolean hasFUpdateAge() {
-      return ((bitField0_ & 0x00400000) == 0x00400000);
+      return ((bitField0_ & 0x00800000) == 0x00800000);
     }
     /**
-     * optional string fUpdateAge = 27;
+     * optional string fUpdateAge = 28;
      */
     public java.lang.String getFUpdateAge() {
       java.lang.Object ref = fUpdateAge_;
@@ -5934,7 +7436,7 @@ public final class Issues {
       }
     }
     /**
-     * optional string fUpdateAge = 27;
+     * optional string fUpdateAge = 28;
      */
     public com.google.protobuf.ByteString
         getFUpdateAgeBytes() {
@@ -5950,16 +7452,16 @@ public final class Issues {
       }
     }
 
-    public static final int CLOSEDATE_FIELD_NUMBER = 28;
+    public static final int CLOSEDATE_FIELD_NUMBER = 29;
     private java.lang.Object closeDate_;
     /**
-     * optional string closeDate = 28;
+     * optional string closeDate = 29;
      */
     public boolean hasCloseDate() {
-      return ((bitField0_ & 0x00800000) == 0x00800000);
+      return ((bitField0_ & 0x01000000) == 0x01000000);
     }
     /**
-     * optional string closeDate = 28;
+     * optional string closeDate = 29;
      */
     public java.lang.String getCloseDate() {
       java.lang.Object ref = closeDate_;
@@ -5976,7 +7478,7 @@ public final class Issues {
       }
     }
     /**
-     * optional string closeDate = 28;
+     * optional string closeDate = 29;
      */
     public com.google.protobuf.ByteString
         getCloseDateBytes() {
@@ -5999,6 +7501,7 @@ public final class Issues {
       component_ = "";
       componentId_ = 0L;
       project_ = "";
+      subProject_ = "";
       line_ = 0;
       resolution_ = "";
       status_ = "";
@@ -6054,70 +7557,73 @@ public final class Issues {
         output.writeBytes(6, getProjectBytes());
       }
       if (((bitField0_ & 0x00000040) == 0x00000040)) {
-        output.writeInt32(7, line_);
+        output.writeBytes(7, getSubProjectBytes());
       }
       if (((bitField0_ & 0x00000080) == 0x00000080)) {
-        output.writeBytes(8, getResolutionBytes());
+        output.writeInt32(8, line_);
       }
       if (((bitField0_ & 0x00000100) == 0x00000100)) {
-        output.writeBytes(9, getStatusBytes());
+        output.writeBytes(9, getResolutionBytes());
       }
       if (((bitField0_ & 0x00000200) == 0x00000200)) {
-        output.writeBytes(10, getMessageBytes());
+        output.writeBytes(10, getStatusBytes());
       }
       if (((bitField0_ & 0x00000400) == 0x00000400)) {
-        output.writeBytes(11, getDebtBytes());
+        output.writeBytes(11, getMessageBytes());
       }
       if (((bitField0_ & 0x00000800) == 0x00000800)) {
-        output.writeBytes(12, getAssigneeBytes());
+        output.writeBytes(12, getDebtBytes());
       }
       if (((bitField0_ & 0x00001000) == 0x00001000)) {
-        output.writeBytes(13, getReporterBytes());
+        output.writeBytes(13, getAssigneeBytes());
       }
       if (((bitField0_ & 0x00002000) == 0x00002000)) {
-        output.writeBytes(14, getAuthorBytes());
+        output.writeBytes(14, getReporterBytes());
       }
       if (((bitField0_ & 0x00004000) == 0x00004000)) {
-        output.writeBytes(15, getActionPlanBytes());
+        output.writeBytes(15, getAuthorBytes());
       }
       if (((bitField0_ & 0x00008000) == 0x00008000)) {
-        output.writeBytes(16, getActionPlanNameBytes());
+        output.writeBytes(16, getActionPlanBytes());
       }
       if (((bitField0_ & 0x00010000) == 0x00010000)) {
-        output.writeBytes(17, getAttrBytes());
-      }
-      for (int i = 0; i < tags_.size(); i++) {
-        output.writeBytes(18, tags_.getByteString(i));
+        output.writeBytes(17, getActionPlanNameBytes());
       }
       if (((bitField0_ & 0x00020000) == 0x00020000)) {
-        output.writeBool(19, transitionsPresentIfEmpty_);
+        output.writeBytes(18, getAttrBytes());
       }
-      for (int i = 0; i < transitions_.size(); i++) {
-        output.writeBytes(20, transitions_.getByteString(i));
+      for (int i = 0; i < tags_.size(); i++) {
+        output.writeBytes(19, tags_.getByteString(i));
       }
       if (((bitField0_ & 0x00040000) == 0x00040000)) {
-        output.writeBool(21, actionsPresentIfEmpty_);
+        output.writeBool(20, transitionsPresentIfEmpty_);
       }
-      for (int i = 0; i < actions_.size(); i++) {
-        output.writeBytes(22, actions_.getByteString(i));
+      for (int i = 0; i < transitions_.size(); i++) {
+        output.writeBytes(21, transitions_.getByteString(i));
       }
       if (((bitField0_ & 0x00080000) == 0x00080000)) {
-        output.writeBool(23, commentsPresentIfEmpty_);
+        output.writeBool(22, actionsPresentIfEmpty_);
       }
-      for (int i = 0; i < comments_.size(); i++) {
-        output.writeMessage(24, comments_.get(i));
+      for (int i = 0; i < actions_.size(); i++) {
+        output.writeBytes(23, actions_.getByteString(i));
       }
       if (((bitField0_ & 0x00100000) == 0x00100000)) {
-        output.writeBytes(25, getCreationDateBytes());
+        output.writeBool(24, commentsPresentIfEmpty_);
+      }
+      for (int i = 0; i < comments_.size(); i++) {
+        output.writeMessage(25, comments_.get(i));
       }
       if (((bitField0_ & 0x00200000) == 0x00200000)) {
-        output.writeBytes(26, getUpdateDateBytes());
+        output.writeBytes(26, getCreationDateBytes());
       }
       if (((bitField0_ & 0x00400000) == 0x00400000)) {
-        output.writeBytes(27, getFUpdateAgeBytes());
+        output.writeBytes(27, getUpdateDateBytes());
       }
       if (((bitField0_ & 0x00800000) == 0x00800000)) {
-        output.writeBytes(28, getCloseDateBytes());
+        output.writeBytes(28, getFUpdateAgeBytes());
+      }
+      if (((bitField0_ & 0x01000000) == 0x01000000)) {
+        output.writeBytes(29, getCloseDateBytes());
       }
       getUnknownFields().writeTo(output);
     }
@@ -6154,47 +7660,51 @@ public final class Issues {
       }
       if (((bitField0_ & 0x00000040) == 0x00000040)) {
         size += com.google.protobuf.CodedOutputStream
-          .computeInt32Size(7, line_);
+          .computeBytesSize(7, getSubProjectBytes());
       }
       if (((bitField0_ & 0x00000080) == 0x00000080)) {
         size += com.google.protobuf.CodedOutputStream
-          .computeBytesSize(8, getResolutionBytes());
+          .computeInt32Size(8, line_);
       }
       if (((bitField0_ & 0x00000100) == 0x00000100)) {
         size += com.google.protobuf.CodedOutputStream
-          .computeBytesSize(9, getStatusBytes());
+          .computeBytesSize(9, getResolutionBytes());
       }
       if (((bitField0_ & 0x00000200) == 0x00000200)) {
         size += com.google.protobuf.CodedOutputStream
-          .computeBytesSize(10, getMessageBytes());
+          .computeBytesSize(10, getStatusBytes());
       }
       if (((bitField0_ & 0x00000400) == 0x00000400)) {
         size += com.google.protobuf.CodedOutputStream
-          .computeBytesSize(11, getDebtBytes());
+          .computeBytesSize(11, getMessageBytes());
       }
       if (((bitField0_ & 0x00000800) == 0x00000800)) {
         size += com.google.protobuf.CodedOutputStream
-          .computeBytesSize(12, getAssigneeBytes());
+          .computeBytesSize(12, getDebtBytes());
       }
       if (((bitField0_ & 0x00001000) == 0x00001000)) {
         size += com.google.protobuf.CodedOutputStream
-          .computeBytesSize(13, getReporterBytes());
+          .computeBytesSize(13, getAssigneeBytes());
       }
       if (((bitField0_ & 0x00002000) == 0x00002000)) {
         size += com.google.protobuf.CodedOutputStream
-          .computeBytesSize(14, getAuthorBytes());
+          .computeBytesSize(14, getReporterBytes());
       }
       if (((bitField0_ & 0x00004000) == 0x00004000)) {
         size += com.google.protobuf.CodedOutputStream
-          .computeBytesSize(15, getActionPlanBytes());
+          .computeBytesSize(15, getAuthorBytes());
       }
       if (((bitField0_ & 0x00008000) == 0x00008000)) {
         size += com.google.protobuf.CodedOutputStream
-          .computeBytesSize(16, getActionPlanNameBytes());
+          .computeBytesSize(16, getActionPlanBytes());
       }
       if (((bitField0_ & 0x00010000) == 0x00010000)) {
         size += com.google.protobuf.CodedOutputStream
-          .computeBytesSize(17, getAttrBytes());
+          .computeBytesSize(17, getActionPlanNameBytes());
+      }
+      if (((bitField0_ & 0x00020000) == 0x00020000)) {
+        size += com.google.protobuf.CodedOutputStream
+          .computeBytesSize(18, getAttrBytes());
       }
       {
         int dataSize = 0;
@@ -6205,9 +7715,9 @@ public final class Issues {
         size += dataSize;
         size += 2 * getTagsList().size();
       }
-      if (((bitField0_ & 0x00020000) == 0x00020000)) {
+      if (((bitField0_ & 0x00040000) == 0x00040000)) {
         size += com.google.protobuf.CodedOutputStream
-          .computeBoolSize(19, transitionsPresentIfEmpty_);
+          .computeBoolSize(20, transitionsPresentIfEmpty_);
       }
       {
         int dataSize = 0;
@@ -6218,9 +7728,9 @@ public final class Issues {
         size += dataSize;
         size += 2 * getTransitionsList().size();
       }
-      if (((bitField0_ & 0x00040000) == 0x00040000)) {
+      if (((bitField0_ & 0x00080000) == 0x00080000)) {
         size += com.google.protobuf.CodedOutputStream
-          .computeBoolSize(21, actionsPresentIfEmpty_);
+          .computeBoolSize(22, actionsPresentIfEmpty_);
       }
       {
         int dataSize = 0;
@@ -6231,29 +7741,29 @@ public final class Issues {
         size += dataSize;
         size += 2 * getActionsList().size();
       }
-      if (((bitField0_ & 0x00080000) == 0x00080000)) {
+      if (((bitField0_ & 0x00100000) == 0x00100000)) {
         size += com.google.protobuf.CodedOutputStream
-          .computeBoolSize(23, commentsPresentIfEmpty_);
+          .computeBoolSize(24, commentsPresentIfEmpty_);
       }
       for (int i = 0; i < comments_.size(); i++) {
         size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(24, comments_.get(i));
-      }
-      if (((bitField0_ & 0x00100000) == 0x00100000)) {
-        size += com.google.protobuf.CodedOutputStream
-          .computeBytesSize(25, getCreationDateBytes());
+          .computeMessageSize(25, comments_.get(i));
       }
       if (((bitField0_ & 0x00200000) == 0x00200000)) {
         size += com.google.protobuf.CodedOutputStream
-          .computeBytesSize(26, getUpdateDateBytes());
+          .computeBytesSize(26, getCreationDateBytes());
       }
       if (((bitField0_ & 0x00400000) == 0x00400000)) {
         size += com.google.protobuf.CodedOutputStream
-          .computeBytesSize(27, getFUpdateAgeBytes());
+          .computeBytesSize(27, getUpdateDateBytes());
       }
       if (((bitField0_ & 0x00800000) == 0x00800000)) {
         size += com.google.protobuf.CodedOutputStream
-          .computeBytesSize(28, getCloseDateBytes());
+          .computeBytesSize(28, getFUpdateAgeBytes());
+      }
+      if (((bitField0_ & 0x01000000) == 0x01000000)) {
+        size += com.google.protobuf.CodedOutputStream
+          .computeBytesSize(29, getCloseDateBytes());
       }
       size += getUnknownFields().getSerializedSize();
       memoizedSerializedSize = size;
@@ -6385,54 +7895,56 @@ public final class Issues {
         bitField0_ = (bitField0_ & ~0x00000010);
         project_ = "";
         bitField0_ = (bitField0_ & ~0x00000020);
-        line_ = 0;
+        subProject_ = "";
         bitField0_ = (bitField0_ & ~0x00000040);
-        resolution_ = "";
+        line_ = 0;
         bitField0_ = (bitField0_ & ~0x00000080);
-        status_ = "";
+        resolution_ = "";
         bitField0_ = (bitField0_ & ~0x00000100);
-        message_ = "";
+        status_ = "";
         bitField0_ = (bitField0_ & ~0x00000200);
-        debt_ = "";
+        message_ = "";
         bitField0_ = (bitField0_ & ~0x00000400);
-        assignee_ = "";
+        debt_ = "";
         bitField0_ = (bitField0_ & ~0x00000800);
-        reporter_ = "";
+        assignee_ = "";
         bitField0_ = (bitField0_ & ~0x00001000);
-        author_ = "";
+        reporter_ = "";
         bitField0_ = (bitField0_ & ~0x00002000);
-        actionPlan_ = "";
+        author_ = "";
         bitField0_ = (bitField0_ & ~0x00004000);
-        actionPlanName_ = "";
+        actionPlan_ = "";
         bitField0_ = (bitField0_ & ~0x00008000);
-        attr_ = "";
+        actionPlanName_ = "";
         bitField0_ = (bitField0_ & ~0x00010000);
-        tags_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+        attr_ = "";
         bitField0_ = (bitField0_ & ~0x00020000);
-        transitionsPresentIfEmpty_ = false;
+        tags_ = com.google.protobuf.LazyStringArrayList.EMPTY;
         bitField0_ = (bitField0_ & ~0x00040000);
-        transitions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+        transitionsPresentIfEmpty_ = false;
         bitField0_ = (bitField0_ & ~0x00080000);
-        actionsPresentIfEmpty_ = false;
+        transitions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
         bitField0_ = (bitField0_ & ~0x00100000);
-        actions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+        actionsPresentIfEmpty_ = false;
         bitField0_ = (bitField0_ & ~0x00200000);
-        commentsPresentIfEmpty_ = false;
+        actions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
         bitField0_ = (bitField0_ & ~0x00400000);
+        commentsPresentIfEmpty_ = false;
+        bitField0_ = (bitField0_ & ~0x00800000);
         if (commentsBuilder_ == null) {
           comments_ = java.util.Collections.emptyList();
-          bitField0_ = (bitField0_ & ~0x00800000);
+          bitField0_ = (bitField0_ & ~0x01000000);
         } else {
           commentsBuilder_.clear();
         }
         creationDate_ = "";
-        bitField0_ = (bitField0_ & ~0x01000000);
-        updateDate_ = "";
         bitField0_ = (bitField0_ & ~0x02000000);
-        fUpdateAge_ = "";
+        updateDate_ = "";
         bitField0_ = (bitField0_ & ~0x04000000);
-        closeDate_ = "";
+        fUpdateAge_ = "";
         bitField0_ = (bitField0_ & ~0x08000000);
+        closeDate_ = "";
+        bitField0_ = (bitField0_ & ~0x10000000);
         return this;
       }
 
@@ -6488,98 +8000,102 @@ public final class Issues {
         if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
           to_bitField0_ |= 0x00000040;
         }
-        result.line_ = line_;
+        result.subProject_ = subProject_;
         if (((from_bitField0_ & 0x00000080) == 0x00000080)) {
           to_bitField0_ |= 0x00000080;
         }
-        result.resolution_ = resolution_;
+        result.line_ = line_;
         if (((from_bitField0_ & 0x00000100) == 0x00000100)) {
           to_bitField0_ |= 0x00000100;
         }
-        result.status_ = status_;
+        result.resolution_ = resolution_;
         if (((from_bitField0_ & 0x00000200) == 0x00000200)) {
           to_bitField0_ |= 0x00000200;
         }
-        result.message_ = message_;
+        result.status_ = status_;
         if (((from_bitField0_ & 0x00000400) == 0x00000400)) {
           to_bitField0_ |= 0x00000400;
         }
-        result.debt_ = debt_;
+        result.message_ = message_;
         if (((from_bitField0_ & 0x00000800) == 0x00000800)) {
           to_bitField0_ |= 0x00000800;
         }
-        result.assignee_ = assignee_;
+        result.debt_ = debt_;
         if (((from_bitField0_ & 0x00001000) == 0x00001000)) {
           to_bitField0_ |= 0x00001000;
         }
-        result.reporter_ = reporter_;
+        result.assignee_ = assignee_;
         if (((from_bitField0_ & 0x00002000) == 0x00002000)) {
           to_bitField0_ |= 0x00002000;
         }
-        result.author_ = author_;
+        result.reporter_ = reporter_;
         if (((from_bitField0_ & 0x00004000) == 0x00004000)) {
           to_bitField0_ |= 0x00004000;
         }
-        result.actionPlan_ = actionPlan_;
+        result.author_ = author_;
         if (((from_bitField0_ & 0x00008000) == 0x00008000)) {
           to_bitField0_ |= 0x00008000;
         }
-        result.actionPlanName_ = actionPlanName_;
+        result.actionPlan_ = actionPlan_;
         if (((from_bitField0_ & 0x00010000) == 0x00010000)) {
           to_bitField0_ |= 0x00010000;
         }
+        result.actionPlanName_ = actionPlanName_;
+        if (((from_bitField0_ & 0x00020000) == 0x00020000)) {
+          to_bitField0_ |= 0x00020000;
+        }
         result.attr_ = attr_;
-        if (((bitField0_ & 0x00020000) == 0x00020000)) {
+        if (((bitField0_ & 0x00040000) == 0x00040000)) {
           tags_ = tags_.getUnmodifiableView();
-          bitField0_ = (bitField0_ & ~0x00020000);
+          bitField0_ = (bitField0_ & ~0x00040000);
         }
         result.tags_ = tags_;
-        if (((from_bitField0_ & 0x00040000) == 0x00040000)) {
-          to_bitField0_ |= 0x00020000;
+        if (((from_bitField0_ & 0x00080000) == 0x00080000)) {
+          to_bitField0_ |= 0x00040000;
         }
         result.transitionsPresentIfEmpty_ = transitionsPresentIfEmpty_;
-        if (((bitField0_ & 0x00080000) == 0x00080000)) {
+        if (((bitField0_ & 0x00100000) == 0x00100000)) {
           transitions_ = transitions_.getUnmodifiableView();
-          bitField0_ = (bitField0_ & ~0x00080000);
+          bitField0_ = (bitField0_ & ~0x00100000);
         }
         result.transitions_ = transitions_;
-        if (((from_bitField0_ & 0x00100000) == 0x00100000)) {
-          to_bitField0_ |= 0x00040000;
+        if (((from_bitField0_ & 0x00200000) == 0x00200000)) {
+          to_bitField0_ |= 0x00080000;
         }
         result.actionsPresentIfEmpty_ = actionsPresentIfEmpty_;
-        if (((bitField0_ & 0x00200000) == 0x00200000)) {
+        if (((bitField0_ & 0x00400000) == 0x00400000)) {
           actions_ = actions_.getUnmodifiableView();
-          bitField0_ = (bitField0_ & ~0x00200000);
+          bitField0_ = (bitField0_ & ~0x00400000);
         }
         result.actions_ = actions_;
-        if (((from_bitField0_ & 0x00400000) == 0x00400000)) {
-          to_bitField0_ |= 0x00080000;
+        if (((from_bitField0_ & 0x00800000) == 0x00800000)) {
+          to_bitField0_ |= 0x00100000;
         }
         result.commentsPresentIfEmpty_ = commentsPresentIfEmpty_;
         if (commentsBuilder_ == null) {
-          if (((bitField0_ & 0x00800000) == 0x00800000)) {
+          if (((bitField0_ & 0x01000000) == 0x01000000)) {
             comments_ = java.util.Collections.unmodifiableList(comments_);
-            bitField0_ = (bitField0_ & ~0x00800000);
+            bitField0_ = (bitField0_ & ~0x01000000);
           }
           result.comments_ = comments_;
         } else {
           result.comments_ = commentsBuilder_.build();
         }
-        if (((from_bitField0_ & 0x01000000) == 0x01000000)) {
-          to_bitField0_ |= 0x00100000;
-        }
-        result.creationDate_ = creationDate_;
         if (((from_bitField0_ & 0x02000000) == 0x02000000)) {
           to_bitField0_ |= 0x00200000;
         }
-        result.updateDate_ = updateDate_;
+        result.creationDate_ = creationDate_;
         if (((from_bitField0_ & 0x04000000) == 0x04000000)) {
           to_bitField0_ |= 0x00400000;
         }
-        result.fUpdateAge_ = fUpdateAge_;
+        result.updateDate_ = updateDate_;
         if (((from_bitField0_ & 0x08000000) == 0x08000000)) {
           to_bitField0_ |= 0x00800000;
         }
+        result.fUpdateAge_ = fUpdateAge_;
+        if (((from_bitField0_ & 0x10000000) == 0x10000000)) {
+          to_bitField0_ |= 0x01000000;
+        }
         result.closeDate_ = closeDate_;
         result.bitField0_ = to_bitField0_;
         onBuilt();
@@ -6623,63 +8139,68 @@ public final class Issues {
           project_ = other.project_;
           onChanged();
         }
+        if (other.hasSubProject()) {
+          bitField0_ |= 0x00000040;
+          subProject_ = other.subProject_;
+          onChanged();
+        }
         if (other.hasLine()) {
           setLine(other.getLine());
         }
         if (other.hasResolution()) {
-          bitField0_ |= 0x00000080;
+          bitField0_ |= 0x00000100;
           resolution_ = other.resolution_;
           onChanged();
         }
         if (other.hasStatus()) {
-          bitField0_ |= 0x00000100;
+          bitField0_ |= 0x00000200;
           status_ = other.status_;
           onChanged();
         }
         if (other.hasMessage()) {
-          bitField0_ |= 0x00000200;
+          bitField0_ |= 0x00000400;
           message_ = other.message_;
           onChanged();
         }
         if (other.hasDebt()) {
-          bitField0_ |= 0x00000400;
+          bitField0_ |= 0x00000800;
           debt_ = other.debt_;
           onChanged();
         }
         if (other.hasAssignee()) {
-          bitField0_ |= 0x00000800;
+          bitField0_ |= 0x00001000;
           assignee_ = other.assignee_;
           onChanged();
         }
         if (other.hasReporter()) {
-          bitField0_ |= 0x00001000;
+          bitField0_ |= 0x00002000;
           reporter_ = other.reporter_;
           onChanged();
         }
         if (other.hasAuthor()) {
-          bitField0_ |= 0x00002000;
+          bitField0_ |= 0x00004000;
           author_ = other.author_;
           onChanged();
         }
         if (other.hasActionPlan()) {
-          bitField0_ |= 0x00004000;
+          bitField0_ |= 0x00008000;
           actionPlan_ = other.actionPlan_;
           onChanged();
         }
         if (other.hasActionPlanName()) {
-          bitField0_ |= 0x00008000;
+          bitField0_ |= 0x00010000;
           actionPlanName_ = other.actionPlanName_;
           onChanged();
         }
         if (other.hasAttr()) {
-          bitField0_ |= 0x00010000;
+          bitField0_ |= 0x00020000;
           attr_ = other.attr_;
           onChanged();
         }
         if (!other.tags_.isEmpty()) {
           if (tags_.isEmpty()) {
             tags_ = other.tags_;
-            bitField0_ = (bitField0_ & ~0x00020000);
+            bitField0_ = (bitField0_ & ~0x00040000);
           } else {
             ensureTagsIsMutable();
             tags_.addAll(other.tags_);
@@ -6692,7 +8213,7 @@ public final class Issues {
         if (!other.transitions_.isEmpty()) {
           if (transitions_.isEmpty()) {
             transitions_ = other.transitions_;
-            bitField0_ = (bitField0_ & ~0x00080000);
+            bitField0_ = (bitField0_ & ~0x00100000);
           } else {
             ensureTransitionsIsMutable();
             transitions_.addAll(other.transitions_);
@@ -6705,7 +8226,7 @@ public final class Issues {
         if (!other.actions_.isEmpty()) {
           if (actions_.isEmpty()) {
             actions_ = other.actions_;
-            bitField0_ = (bitField0_ & ~0x00200000);
+            bitField0_ = (bitField0_ & ~0x00400000);
           } else {
             ensureActionsIsMutable();
             actions_.addAll(other.actions_);
@@ -6719,7 +8240,7 @@ public final class Issues {
           if (!other.comments_.isEmpty()) {
             if (comments_.isEmpty()) {
               comments_ = other.comments_;
-              bitField0_ = (bitField0_ & ~0x00800000);
+              bitField0_ = (bitField0_ & ~0x01000000);
             } else {
               ensureCommentsIsMutable();
               comments_.addAll(other.comments_);
@@ -6732,7 +8253,7 @@ public final class Issues {
               commentsBuilder_.dispose();
               commentsBuilder_ = null;
               comments_ = other.comments_;
-              bitField0_ = (bitField0_ & ~0x00800000);
+              bitField0_ = (bitField0_ & ~0x01000000);
               commentsBuilder_ = 
                 com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
                    getCommentsFieldBuilder() : null;
@@ -6742,22 +8263,22 @@ public final class Issues {
           }
         }
         if (other.hasCreationDate()) {
-          bitField0_ |= 0x01000000;
+          bitField0_ |= 0x02000000;
           creationDate_ = other.creationDate_;
           onChanged();
         }
         if (other.hasUpdateDate()) {
-          bitField0_ |= 0x02000000;
+          bitField0_ |= 0x04000000;
           updateDate_ = other.updateDate_;
           onChanged();
         }
         if (other.hasFUpdateAge()) {
-          bitField0_ |= 0x04000000;
+          bitField0_ |= 0x08000000;
           fUpdateAge_ = other.fUpdateAge_;
           onChanged();
         }
         if (other.hasCloseDate()) {
-          bitField0_ |= 0x08000000;
+          bitField0_ |= 0x10000000;
           closeDate_ = other.closeDate_;
           onChanged();
         }
@@ -7159,33 +8680,109 @@ public final class Issues {
         return this;
       }
 
+      private java.lang.Object subProject_ = "";
+      /**
+       * optional string subProject = 7;
+       */
+      public boolean hasSubProject() {
+        return ((bitField0_ & 0x00000040) == 0x00000040);
+      }
+      /**
+       * optional string subProject = 7;
+       */
+      public java.lang.String getSubProject() {
+        java.lang.Object ref = subProject_;
+        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()) {
+            subProject_ = s;
+          }
+          return s;
+        } else {
+          return (java.lang.String) ref;
+        }
+      }
+      /**
+       * optional string subProject = 7;
+       */
+      public com.google.protobuf.ByteString
+          getSubProjectBytes() {
+        java.lang.Object ref = subProject_;
+        if (ref instanceof String) {
+          com.google.protobuf.ByteString b = 
+              com.google.protobuf.ByteString.copyFromUtf8(
+                  (java.lang.String) ref);
+          subProject_ = b;
+          return b;
+        } else {
+          return (com.google.protobuf.ByteString) ref;
+        }
+      }
+      /**
+       * optional string subProject = 7;
+       */
+      public Builder setSubProject(
+          java.lang.String value) {
+        if (value == null) {
+    throw new NullPointerException();
+  }
+  bitField0_ |= 0x00000040;
+        subProject_ = value;
+        onChanged();
+        return this;
+      }
+      /**
+       * optional string subProject = 7;
+       */
+      public Builder clearSubProject() {
+        bitField0_ = (bitField0_ & ~0x00000040);
+        subProject_ = getDefaultInstance().getSubProject();
+        onChanged();
+        return this;
+      }
+      /**
+       * optional string subProject = 7;
+       */
+      public Builder setSubProjectBytes(
+          com.google.protobuf.ByteString value) {
+        if (value == null) {
+    throw new NullPointerException();
+  }
+  bitField0_ |= 0x00000040;
+        subProject_ = value;
+        onChanged();
+        return this;
+      }
+
       private int line_ ;
       /**
-       * optional int32 line = 7;
+       * optional int32 line = 8;
        */
       public boolean hasLine() {
-        return ((bitField0_ & 0x00000040) == 0x00000040);
+        return ((bitField0_ & 0x00000080) == 0x00000080);
       }
       /**
-       * optional int32 line = 7;
+       * optional int32 line = 8;
        */
       public int getLine() {
         return line_;
       }
       /**
-       * optional int32 line = 7;
+       * optional int32 line = 8;
        */
       public Builder setLine(int value) {
-        bitField0_ |= 0x00000040;
+        bitField0_ |= 0x00000080;
         line_ = value;
         onChanged();
         return this;
       }
       /**
-       * optional int32 line = 7;
+       * optional int32 line = 8;
        */
       public Builder clearLine() {
-        bitField0_ = (bitField0_ & ~0x00000040);
+        bitField0_ = (bitField0_ & ~0x00000080);
         line_ = 0;
         onChanged();
         return this;
@@ -7193,13 +8790,13 @@ public final class Issues {
 
       private java.lang.Object resolution_ = "";
       /**
-       * optional string resolution = 8;
+       * optional string resolution = 9;
        */
       public boolean hasResolution() {
-        return ((bitField0_ & 0x00000080) == 0x00000080);
+        return ((bitField0_ & 0x00000100) == 0x00000100);
       }
       /**
-       * optional string resolution = 8;
+       * optional string resolution = 9;
        */
       public java.lang.String getResolution() {
         java.lang.Object ref = resolution_;
@@ -7216,7 +8813,7 @@ public final class Issues {
         }
       }
       /**
-       * optional string resolution = 8;
+       * optional string resolution = 9;
        */
       public com.google.protobuf.ByteString
           getResolutionBytes() {
@@ -7232,36 +8829,36 @@ public final class Issues {
         }
       }
       /**
-       * optional string resolution = 8;
+       * optional string resolution = 9;
        */
       public Builder setResolution(
           java.lang.String value) {
         if (value == null) {
     throw new NullPointerException();
   }
-  bitField0_ |= 0x00000080;
+  bitField0_ |= 0x00000100;
         resolution_ = value;
         onChanged();
         return this;
       }
       /**
-       * optional string resolution = 8;
+       * optional string resolution = 9;
        */
       public Builder clearResolution() {
-        bitField0_ = (bitField0_ & ~0x00000080);
+        bitField0_ = (bitField0_ & ~0x00000100);
         resolution_ = getDefaultInstance().getResolution();
         onChanged();
         return this;
       }
       /**
-       * optional string resolution = 8;
+       * optional string resolution = 9;
        */
       public Builder setResolutionBytes(
           com.google.protobuf.ByteString value) {
         if (value == null) {
     throw new NullPointerException();
   }
-  bitField0_ |= 0x00000080;
+  bitField0_ |= 0x00000100;
         resolution_ = value;
         onChanged();
         return this;
@@ -7269,13 +8866,13 @@ public final class Issues {
 
       private java.lang.Object status_ = "";
       /**
-       * optional string status = 9;
+       * optional string status = 10;
        */
       public boolean hasStatus() {
-        return ((bitField0_ & 0x00000100) == 0x00000100);
+        return ((bitField0_ & 0x00000200) == 0x00000200);
       }
       /**
-       * optional string status = 9;
+       * optional string status = 10;
        */
       public java.lang.String getStatus() {
         java.lang.Object ref = status_;
@@ -7292,7 +8889,7 @@ public final class Issues {
         }
       }
       /**
-       * optional string status = 9;
+       * optional string status = 10;
        */
       public com.google.protobuf.ByteString
           getStatusBytes() {
@@ -7308,36 +8905,36 @@ public final class Issues {
         }
       }
       /**
-       * optional string status = 9;
+       * optional string status = 10;
        */
       public Builder setStatus(
           java.lang.String value) {
         if (value == null) {
     throw new NullPointerException();
   }
-  bitField0_ |= 0x00000100;
+  bitField0_ |= 0x00000200;
         status_ = value;
         onChanged();
         return this;
       }
       /**
-       * optional string status = 9;
+       * optional string status = 10;
        */
       public Builder clearStatus() {
-        bitField0_ = (bitField0_ & ~0x00000100);
+        bitField0_ = (bitField0_ & ~0x00000200);
         status_ = getDefaultInstance().getStatus();
         onChanged();
         return this;
       }
       /**
-       * optional string status = 9;
+       * optional string status = 10;
        */
       public Builder setStatusBytes(
           com.google.protobuf.ByteString value) {
         if (value == null) {
     throw new NullPointerException();
   }
-  bitField0_ |= 0x00000100;
+  bitField0_ |= 0x00000200;
         status_ = value;
         onChanged();
         return this;
@@ -7345,13 +8942,13 @@ public final class Issues {
 
       private java.lang.Object message_ = "";
       /**
-       * optional string message = 10;
+       * optional string message = 11;
        */
       public boolean hasMessage() {
-        return ((bitField0_ & 0x00000200) == 0x00000200);
+        return ((bitField0_ & 0x00000400) == 0x00000400);
       }
       /**
-       * optional string message = 10;
+       * optional string message = 11;
        */
       public java.lang.String getMessage() {
         java.lang.Object ref = message_;
@@ -7368,7 +8965,7 @@ public final class Issues {
         }
       }
       /**
-       * optional string message = 10;
+       * optional string message = 11;
        */
       public com.google.protobuf.ByteString
           getMessageBytes() {
@@ -7384,36 +8981,36 @@ public final class Issues {
         }
       }
       /**
-       * optional string message = 10;
+       * optional string message = 11;
        */
       public Builder setMessage(
           java.lang.String value) {
         if (value == null) {
     throw new NullPointerException();
   }
-  bitField0_ |= 0x00000200;
+  bitField0_ |= 0x00000400;
         message_ = value;
         onChanged();
         return this;
       }
       /**
-       * optional string message = 10;
+       * optional string message = 11;
        */
       public Builder clearMessage() {
-        bitField0_ = (bitField0_ & ~0x00000200);
+        bitField0_ = (bitField0_ & ~0x00000400);
         message_ = getDefaultInstance().getMessage();
         onChanged();
         return this;
       }
       /**
-       * optional string message = 10;
+       * optional string message = 11;
        */
       public Builder setMessageBytes(
           com.google.protobuf.ByteString value) {
         if (value == null) {
     throw new NullPointerException();
   }
-  bitField0_ |= 0x00000200;
+  bitField0_ |= 0x00000400;
         message_ = value;
         onChanged();
         return this;
@@ -7421,13 +9018,13 @@ public final class Issues {
 
       private java.lang.Object debt_ = "";
       /**
-       * optional string debt = 11;
+       * optional string debt = 12;
        */
       public boolean hasDebt() {
-        return ((bitField0_ & 0x00000400) == 0x00000400);
+        return ((bitField0_ & 0x00000800) == 0x00000800);
       }
       /**
-       * optional string debt = 11;
+       * optional string debt = 12;
        */
       public java.lang.String getDebt() {
         java.lang.Object ref = debt_;
@@ -7444,7 +9041,7 @@ public final class Issues {
         }
       }
       /**
-       * optional string debt = 11;
+       * optional string debt = 12;
        */
       public com.google.protobuf.ByteString
           getDebtBytes() {
@@ -7460,36 +9057,36 @@ public final class Issues {
         }
       }
       /**
-       * optional string debt = 11;
+       * optional string debt = 12;
        */
       public Builder setDebt(
           java.lang.String value) {
         if (value == null) {
     throw new NullPointerException();
   }
-  bitField0_ |= 0x00000400;
+  bitField0_ |= 0x00000800;
         debt_ = value;
         onChanged();
         return this;
       }
       /**
-       * optional string debt = 11;
+       * optional string debt = 12;
        */
       public Builder clearDebt() {
-        bitField0_ = (bitField0_ & ~0x00000400);
+        bitField0_ = (bitField0_ & ~0x00000800);
         debt_ = getDefaultInstance().getDebt();
         onChanged();
         return this;
       }
       /**
-       * optional string debt = 11;
+       * optional string debt = 12;
        */
       public Builder setDebtBytes(
           com.google.protobuf.ByteString value) {
         if (value == null) {
     throw new NullPointerException();
   }
-  bitField0_ |= 0x00000400;
+  bitField0_ |= 0x00000800;
         debt_ = value;
         onChanged();
         return this;
@@ -7497,13 +9094,13 @@ public final class Issues {
 
       private java.lang.Object assignee_ = "";
       /**
-       * optional string assignee = 12;
+       * optional string assignee = 13;
        */
       public boolean hasAssignee() {
-        return ((bitField0_ & 0x00000800) == 0x00000800);
+        return ((bitField0_ & 0x00001000) == 0x00001000);
       }
       /**
-       * optional string assignee = 12;
+       * optional string assignee = 13;
        */
       public java.lang.String getAssignee() {
         java.lang.Object ref = assignee_;
@@ -7520,7 +9117,7 @@ public final class Issues {
         }
       }
       /**
-       * optional string assignee = 12;
+       * optional string assignee = 13;
        */
       public com.google.protobuf.ByteString
           getAssigneeBytes() {
@@ -7536,36 +9133,36 @@ public final class Issues {
         }
       }
       /**
-       * optional string assignee = 12;
+       * optional string assignee = 13;
        */
       public Builder setAssignee(
           java.lang.String value) {
         if (value == null) {
     throw new NullPointerException();
   }
-  bitField0_ |= 0x00000800;
+  bitField0_ |= 0x00001000;
         assignee_ = value;
         onChanged();
         return this;
       }
       /**
-       * optional string assignee = 12;
+       * optional string assignee = 13;
        */
       public Builder clearAssignee() {
-        bitField0_ = (bitField0_ & ~0x00000800);
+        bitField0_ = (bitField0_ & ~0x00001000);
         assignee_ = getDefaultInstance().getAssignee();
         onChanged();
         return this;
       }
       /**
-       * optional string assignee = 12;
+       * optional string assignee = 13;
        */
       public Builder setAssigneeBytes(
           com.google.protobuf.ByteString value) {
         if (value == null) {
     throw new NullPointerException();
   }
-  bitField0_ |= 0x00000800;
+  bitField0_ |= 0x00001000;
         assignee_ = value;
         onChanged();
         return this;
@@ -7573,13 +9170,13 @@ public final class Issues {
 
       private java.lang.Object reporter_ = "";
       /**
-       * optional string reporter = 13;
+       * optional string reporter = 14;
        */
       public boolean hasReporter() {
-        return ((bitField0_ & 0x00001000) == 0x00001000);
+        return ((bitField0_ & 0x00002000) == 0x00002000);
       }
       /**
-       * optional string reporter = 13;
+       * optional string reporter = 14;
        */
       public java.lang.String getReporter() {
         java.lang.Object ref = reporter_;
@@ -7596,7 +9193,7 @@ public final class Issues {
         }
       }
       /**
-       * optional string reporter = 13;
+       * optional string reporter = 14;
        */
       public com.google.protobuf.ByteString
           getReporterBytes() {
@@ -7612,36 +9209,36 @@ public final class Issues {
         }
       }
       /**
-       * optional string reporter = 13;
+       * optional string reporter = 14;
        */
       public Builder setReporter(
           java.lang.String value) {
         if (value == null) {
     throw new NullPointerException();
   }
-  bitField0_ |= 0x00001000;
+  bitField0_ |= 0x00002000;
         reporter_ = value;
         onChanged();
         return this;
       }
       /**
-       * optional string reporter = 13;
+       * optional string reporter = 14;
        */
       public Builder clearReporter() {
-        bitField0_ = (bitField0_ & ~0x00001000);
+        bitField0_ = (bitField0_ & ~0x00002000);
         reporter_ = getDefaultInstance().getReporter();
         onChanged();
         return this;
       }
       /**
-       * optional string reporter = 13;
+       * optional string reporter = 14;
        */
       public Builder setReporterBytes(
           com.google.protobuf.ByteString value) {
         if (value == null) {
     throw new NullPointerException();
   }
-  bitField0_ |= 0x00001000;
+  bitField0_ |= 0x00002000;
         reporter_ = value;
         onChanged();
         return this;
@@ -7649,17 +9246,17 @@ public final class Issues {
 
       private java.lang.Object author_ = "";
       /**
-       * optional string author = 14;
+       * optional string author = 15;
        *
        * 
        * SCM login of the committer who introduced the issue
        * 
*/ public boolean hasAuthor() { - return ((bitField0_ & 0x00002000) == 0x00002000); + return ((bitField0_ & 0x00004000) == 0x00004000); } /** - * optional string author = 14; + * optional string author = 15; * *
        * SCM login of the committer who introduced the issue
@@ -7680,7 +9277,7 @@ public final class Issues {
         }
       }
       /**
-       * optional string author = 14;
+       * optional string author = 15;
        *
        * 
        * SCM login of the committer who introduced the issue
@@ -7700,7 +9297,7 @@ public final class Issues {
         }
       }
       /**
-       * optional string author = 14;
+       * optional string author = 15;
        *
        * 
        * SCM login of the committer who introduced the issue
@@ -7711,26 +9308,26 @@ public final class Issues {
         if (value == null) {
     throw new NullPointerException();
   }
-  bitField0_ |= 0x00002000;
+  bitField0_ |= 0x00004000;
         author_ = value;
         onChanged();
         return this;
       }
       /**
-       * optional string author = 14;
+       * optional string author = 15;
        *
        * 
        * SCM login of the committer who introduced the issue
        * 
*/ public Builder clearAuthor() { - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00004000); author_ = getDefaultInstance().getAuthor(); onChanged(); return this; } /** - * optional string author = 14; + * optional string author = 15; * *
        * SCM login of the committer who introduced the issue
@@ -7741,7 +9338,7 @@ public final class Issues {
         if (value == null) {
     throw new NullPointerException();
   }
-  bitField0_ |= 0x00002000;
+  bitField0_ |= 0x00004000;
         author_ = value;
         onChanged();
         return this;
@@ -7749,13 +9346,13 @@ public final class Issues {
 
       private java.lang.Object actionPlan_ = "";
       /**
-       * optional string actionPlan = 15;
+       * optional string actionPlan = 16;
        */
       public boolean hasActionPlan() {
-        return ((bitField0_ & 0x00004000) == 0x00004000);
+        return ((bitField0_ & 0x00008000) == 0x00008000);
       }
       /**
-       * optional string actionPlan = 15;
+       * optional string actionPlan = 16;
        */
       public java.lang.String getActionPlan() {
         java.lang.Object ref = actionPlan_;
@@ -7772,7 +9369,7 @@ public final class Issues {
         }
       }
       /**
-       * optional string actionPlan = 15;
+       * optional string actionPlan = 16;
        */
       public com.google.protobuf.ByteString
           getActionPlanBytes() {
@@ -7788,36 +9385,36 @@ public final class Issues {
         }
       }
       /**
-       * optional string actionPlan = 15;
+       * optional string actionPlan = 16;
        */
       public Builder setActionPlan(
           java.lang.String value) {
         if (value == null) {
     throw new NullPointerException();
   }
-  bitField0_ |= 0x00004000;
+  bitField0_ |= 0x00008000;
         actionPlan_ = value;
         onChanged();
         return this;
       }
       /**
-       * optional string actionPlan = 15;
+       * optional string actionPlan = 16;
        */
       public Builder clearActionPlan() {
-        bitField0_ = (bitField0_ & ~0x00004000);
+        bitField0_ = (bitField0_ & ~0x00008000);
         actionPlan_ = getDefaultInstance().getActionPlan();
         onChanged();
         return this;
       }
       /**
-       * optional string actionPlan = 15;
+       * optional string actionPlan = 16;
        */
       public Builder setActionPlanBytes(
           com.google.protobuf.ByteString value) {
         if (value == null) {
     throw new NullPointerException();
   }
-  bitField0_ |= 0x00004000;
+  bitField0_ |= 0x00008000;
         actionPlan_ = value;
         onChanged();
         return this;
@@ -7825,13 +9422,13 @@ public final class Issues {
 
       private java.lang.Object actionPlanName_ = "";
       /**
-       * optional string actionPlanName = 16;
+       * optional string actionPlanName = 17;
        */
       public boolean hasActionPlanName() {
-        return ((bitField0_ & 0x00008000) == 0x00008000);
+        return ((bitField0_ & 0x00010000) == 0x00010000);
       }
       /**
-       * optional string actionPlanName = 16;
+       * optional string actionPlanName = 17;
        */
       public java.lang.String getActionPlanName() {
         java.lang.Object ref = actionPlanName_;
@@ -7848,7 +9445,7 @@ public final class Issues {
         }
       }
       /**
-       * optional string actionPlanName = 16;
+       * optional string actionPlanName = 17;
        */
       public com.google.protobuf.ByteString
           getActionPlanNameBytes() {
@@ -7864,36 +9461,36 @@ public final class Issues {
         }
       }
       /**
-       * optional string actionPlanName = 16;
+       * optional string actionPlanName = 17;
        */
       public Builder setActionPlanName(
           java.lang.String value) {
         if (value == null) {
     throw new NullPointerException();
   }
-  bitField0_ |= 0x00008000;
+  bitField0_ |= 0x00010000;
         actionPlanName_ = value;
         onChanged();
         return this;
       }
       /**
-       * optional string actionPlanName = 16;
+       * optional string actionPlanName = 17;
        */
       public Builder clearActionPlanName() {
-        bitField0_ = (bitField0_ & ~0x00008000);
+        bitField0_ = (bitField0_ & ~0x00010000);
         actionPlanName_ = getDefaultInstance().getActionPlanName();
         onChanged();
         return this;
       }
       /**
-       * optional string actionPlanName = 16;
+       * optional string actionPlanName = 17;
        */
       public Builder setActionPlanNameBytes(
           com.google.protobuf.ByteString value) {
         if (value == null) {
     throw new NullPointerException();
   }
-  bitField0_ |= 0x00008000;
+  bitField0_ |= 0x00010000;
         actionPlanName_ = value;
         onChanged();
         return this;
@@ -7901,13 +9498,13 @@ public final class Issues {
 
       private java.lang.Object attr_ = "";
       /**
-       * optional string attr = 17;
+       * optional string attr = 18;
        */
       public boolean hasAttr() {
-        return ((bitField0_ & 0x00010000) == 0x00010000);
+        return ((bitField0_ & 0x00020000) == 0x00020000);
       }
       /**
-       * optional string attr = 17;
+       * optional string attr = 18;
        */
       public java.lang.String getAttr() {
         java.lang.Object ref = attr_;
@@ -7924,7 +9521,7 @@ public final class Issues {
         }
       }
       /**
-       * optional string attr = 17;
+       * optional string attr = 18;
        */
       public com.google.protobuf.ByteString
           getAttrBytes() {
@@ -7940,36 +9537,36 @@ public final class Issues {
         }
       }
       /**
-       * optional string attr = 17;
+       * optional string attr = 18;
        */
       public Builder setAttr(
           java.lang.String value) {
         if (value == null) {
     throw new NullPointerException();
   }
-  bitField0_ |= 0x00010000;
+  bitField0_ |= 0x00020000;
         attr_ = value;
         onChanged();
         return this;
       }
       /**
-       * optional string attr = 17;
+       * optional string attr = 18;
        */
       public Builder clearAttr() {
-        bitField0_ = (bitField0_ & ~0x00010000);
+        bitField0_ = (bitField0_ & ~0x00020000);
         attr_ = getDefaultInstance().getAttr();
         onChanged();
         return this;
       }
       /**
-       * optional string attr = 17;
+       * optional string attr = 18;
        */
       public Builder setAttrBytes(
           com.google.protobuf.ByteString value) {
         if (value == null) {
     throw new NullPointerException();
   }
-  bitField0_ |= 0x00010000;
+  bitField0_ |= 0x00020000;
         attr_ = value;
         onChanged();
         return this;
@@ -7977,39 +9574,39 @@ public final class Issues {
 
       private com.google.protobuf.LazyStringList tags_ = com.google.protobuf.LazyStringArrayList.EMPTY;
       private void ensureTagsIsMutable() {
-        if (!((bitField0_ & 0x00020000) == 0x00020000)) {
+        if (!((bitField0_ & 0x00040000) == 0x00040000)) {
           tags_ = new com.google.protobuf.LazyStringArrayList(tags_);
-          bitField0_ |= 0x00020000;
+          bitField0_ |= 0x00040000;
          }
       }
       /**
-       * repeated string tags = 18;
+       * repeated string tags = 19;
        */
       public com.google.protobuf.ProtocolStringList
           getTagsList() {
         return tags_.getUnmodifiableView();
       }
       /**
-       * repeated string tags = 18;
+       * repeated string tags = 19;
        */
       public int getTagsCount() {
         return tags_.size();
       }
       /**
-       * repeated string tags = 18;
+       * repeated string tags = 19;
        */
       public java.lang.String getTags(int index) {
         return tags_.get(index);
       }
       /**
-       * repeated string tags = 18;
+       * repeated string tags = 19;
        */
       public com.google.protobuf.ByteString
           getTagsBytes(int index) {
         return tags_.getByteString(index);
       }
       /**
-       * repeated string tags = 18;
+       * repeated string tags = 19;
        */
       public Builder setTags(
           int index, java.lang.String value) {
@@ -8022,7 +9619,7 @@ public final class Issues {
         return this;
       }
       /**
-       * repeated string tags = 18;
+       * repeated string tags = 19;
        */
       public Builder addTags(
           java.lang.String value) {
@@ -8035,7 +9632,7 @@ public final class Issues {
         return this;
       }
       /**
-       * repeated string tags = 18;
+       * repeated string tags = 19;
        */
       public Builder addAllTags(
           java.lang.Iterable values) {
@@ -8046,16 +9643,16 @@ public final class Issues {
         return this;
       }
       /**
-       * repeated string tags = 18;
+       * repeated string tags = 19;
        */
       public Builder clearTags() {
         tags_ = com.google.protobuf.LazyStringArrayList.EMPTY;
-        bitField0_ = (bitField0_ & ~0x00020000);
+        bitField0_ = (bitField0_ & ~0x00040000);
         onChanged();
         return this;
       }
       /**
-       * repeated string tags = 18;
+       * repeated string tags = 19;
        */
       public Builder addTagsBytes(
           com.google.protobuf.ByteString value) {
@@ -8070,17 +9667,17 @@ public final class Issues {
 
       private boolean transitionsPresentIfEmpty_ ;
       /**
-       * optional bool transitionsPresentIfEmpty = 19;
+       * optional bool transitionsPresentIfEmpty = 20;
        *
        * 
        * the transitions allowed for the requesting user.
        * 
*/ public boolean hasTransitionsPresentIfEmpty() { - return ((bitField0_ & 0x00040000) == 0x00040000); + return ((bitField0_ & 0x00080000) == 0x00080000); } /** - * optional bool transitionsPresentIfEmpty = 19; + * optional bool transitionsPresentIfEmpty = 20; * *
        * the transitions allowed for the requesting user.
@@ -8090,27 +9687,27 @@ public final class Issues {
         return transitionsPresentIfEmpty_;
       }
       /**
-       * optional bool transitionsPresentIfEmpty = 19;
+       * optional bool transitionsPresentIfEmpty = 20;
        *
        * 
        * the transitions allowed for the requesting user.
        * 
*/ public Builder setTransitionsPresentIfEmpty(boolean value) { - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; transitionsPresentIfEmpty_ = value; onChanged(); return this; } /** - * optional bool transitionsPresentIfEmpty = 19; + * optional bool transitionsPresentIfEmpty = 20; * *
        * the transitions allowed for the requesting user.
        * 
*/ public Builder clearTransitionsPresentIfEmpty() { - bitField0_ = (bitField0_ & ~0x00040000); + bitField0_ = (bitField0_ & ~0x00080000); transitionsPresentIfEmpty_ = false; onChanged(); return this; @@ -8118,39 +9715,39 @@ public final class Issues { private com.google.protobuf.LazyStringList transitions_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureTransitionsIsMutable() { - if (!((bitField0_ & 0x00080000) == 0x00080000)) { + if (!((bitField0_ & 0x00100000) == 0x00100000)) { transitions_ = new com.google.protobuf.LazyStringArrayList(transitions_); - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; } } /** - * repeated string transitions = 20; + * repeated string transitions = 21; */ public com.google.protobuf.ProtocolStringList getTransitionsList() { return transitions_.getUnmodifiableView(); } /** - * repeated string transitions = 20; + * repeated string transitions = 21; */ public int getTransitionsCount() { return transitions_.size(); } /** - * repeated string transitions = 20; + * repeated string transitions = 21; */ public java.lang.String getTransitions(int index) { return transitions_.get(index); } /** - * repeated string transitions = 20; + * repeated string transitions = 21; */ public com.google.protobuf.ByteString getTransitionsBytes(int index) { return transitions_.getByteString(index); } /** - * repeated string transitions = 20; + * repeated string transitions = 21; */ public Builder setTransitions( int index, java.lang.String value) { @@ -8163,7 +9760,7 @@ public final class Issues { return this; } /** - * repeated string transitions = 20; + * repeated string transitions = 21; */ public Builder addTransitions( java.lang.String value) { @@ -8176,7 +9773,7 @@ public final class Issues { return this; } /** - * repeated string transitions = 20; + * repeated string transitions = 21; */ public Builder addAllTransitions( java.lang.Iterable values) { @@ -8187,16 +9784,16 @@ public final class Issues { return this; } /** - * repeated string transitions = 20; + * repeated string transitions = 21; */ public Builder clearTransitions() { transitions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00080000); + bitField0_ = (bitField0_ & ~0x00100000); onChanged(); return this; } /** - * repeated string transitions = 20; + * repeated string transitions = 21; */ public Builder addTransitionsBytes( com.google.protobuf.ByteString value) { @@ -8211,17 +9808,17 @@ public final class Issues { private boolean actionsPresentIfEmpty_ ; /** - * optional bool actionsPresentIfEmpty = 21; + * optional bool actionsPresentIfEmpty = 22; * *
        * the actions allowed for the requesting user.
        * 
*/ public boolean hasActionsPresentIfEmpty() { - return ((bitField0_ & 0x00100000) == 0x00100000); + return ((bitField0_ & 0x00200000) == 0x00200000); } /** - * optional bool actionsPresentIfEmpty = 21; + * optional bool actionsPresentIfEmpty = 22; * *
        * the actions allowed for the requesting user.
@@ -8231,27 +9828,27 @@ public final class Issues {
         return actionsPresentIfEmpty_;
       }
       /**
-       * optional bool actionsPresentIfEmpty = 21;
+       * optional bool actionsPresentIfEmpty = 22;
        *
        * 
        * the actions allowed for the requesting user.
        * 
*/ public Builder setActionsPresentIfEmpty(boolean value) { - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; actionsPresentIfEmpty_ = value; onChanged(); return this; } /** - * optional bool actionsPresentIfEmpty = 21; + * optional bool actionsPresentIfEmpty = 22; * *
        * the actions allowed for the requesting user.
        * 
*/ public Builder clearActionsPresentIfEmpty() { - bitField0_ = (bitField0_ & ~0x00100000); + bitField0_ = (bitField0_ & ~0x00200000); actionsPresentIfEmpty_ = false; onChanged(); return this; @@ -8259,39 +9856,39 @@ public final class Issues { private com.google.protobuf.LazyStringList actions_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureActionsIsMutable() { - if (!((bitField0_ & 0x00200000) == 0x00200000)) { + if (!((bitField0_ & 0x00400000) == 0x00400000)) { actions_ = new com.google.protobuf.LazyStringArrayList(actions_); - bitField0_ |= 0x00200000; + bitField0_ |= 0x00400000; } } /** - * repeated string actions = 22; + * repeated string actions = 23; */ public com.google.protobuf.ProtocolStringList getActionsList() { return actions_.getUnmodifiableView(); } /** - * repeated string actions = 22; + * repeated string actions = 23; */ public int getActionsCount() { return actions_.size(); } /** - * repeated string actions = 22; + * repeated string actions = 23; */ public java.lang.String getActions(int index) { return actions_.get(index); } /** - * repeated string actions = 22; + * repeated string actions = 23; */ public com.google.protobuf.ByteString getActionsBytes(int index) { return actions_.getByteString(index); } /** - * repeated string actions = 22; + * repeated string actions = 23; */ public Builder setActions( int index, java.lang.String value) { @@ -8304,7 +9901,7 @@ public final class Issues { return this; } /** - * repeated string actions = 22; + * repeated string actions = 23; */ public Builder addActions( java.lang.String value) { @@ -8317,7 +9914,7 @@ public final class Issues { return this; } /** - * repeated string actions = 22; + * repeated string actions = 23; */ public Builder addAllActions( java.lang.Iterable values) { @@ -8328,16 +9925,16 @@ public final class Issues { return this; } /** - * repeated string actions = 22; + * repeated string actions = 23; */ public Builder clearActions() { actions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00200000); + bitField0_ = (bitField0_ & ~0x00400000); onChanged(); return this; } /** - * repeated string actions = 22; + * repeated string actions = 23; */ public Builder addActionsBytes( com.google.protobuf.ByteString value) { @@ -8352,31 +9949,31 @@ public final class Issues { private boolean commentsPresentIfEmpty_ ; /** - * optional bool commentsPresentIfEmpty = 23; + * optional bool commentsPresentIfEmpty = 24; */ public boolean hasCommentsPresentIfEmpty() { - return ((bitField0_ & 0x00400000) == 0x00400000); + return ((bitField0_ & 0x00800000) == 0x00800000); } /** - * optional bool commentsPresentIfEmpty = 23; + * optional bool commentsPresentIfEmpty = 24; */ public boolean getCommentsPresentIfEmpty() { return commentsPresentIfEmpty_; } /** - * optional bool commentsPresentIfEmpty = 23; + * optional bool commentsPresentIfEmpty = 24; */ public Builder setCommentsPresentIfEmpty(boolean value) { - bitField0_ |= 0x00400000; + bitField0_ |= 0x00800000; commentsPresentIfEmpty_ = value; onChanged(); return this; } /** - * optional bool commentsPresentIfEmpty = 23; + * optional bool commentsPresentIfEmpty = 24; */ public Builder clearCommentsPresentIfEmpty() { - bitField0_ = (bitField0_ & ~0x00400000); + bitField0_ = (bitField0_ & ~0x00800000); commentsPresentIfEmpty_ = false; onChanged(); return this; @@ -8385,9 +9982,9 @@ public final class Issues { private java.util.List comments_ = java.util.Collections.emptyList(); private void ensureCommentsIsMutable() { - if (!((bitField0_ & 0x00800000) == 0x00800000)) { + if (!((bitField0_ & 0x01000000) == 0x01000000)) { comments_ = new java.util.ArrayList(comments_); - bitField0_ |= 0x00800000; + bitField0_ |= 0x01000000; } } @@ -8395,7 +9992,7 @@ public final class Issues { org.sonarqube.ws.Issues.Comment, org.sonarqube.ws.Issues.Comment.Builder, org.sonarqube.ws.Issues.CommentOrBuilder> commentsBuilder_; /** - * repeated .sonarqube.ws.issues.Comment comments = 24; + * repeated .sonarqube.ws.issues.Comment comments = 25; */ public java.util.List getCommentsList() { if (commentsBuilder_ == null) { @@ -8405,7 +10002,7 @@ public final class Issues { } } /** - * repeated .sonarqube.ws.issues.Comment comments = 24; + * repeated .sonarqube.ws.issues.Comment comments = 25; */ public int getCommentsCount() { if (commentsBuilder_ == null) { @@ -8415,7 +10012,7 @@ public final class Issues { } } /** - * repeated .sonarqube.ws.issues.Comment comments = 24; + * repeated .sonarqube.ws.issues.Comment comments = 25; */ public org.sonarqube.ws.Issues.Comment getComments(int index) { if (commentsBuilder_ == null) { @@ -8425,7 +10022,7 @@ public final class Issues { } } /** - * repeated .sonarqube.ws.issues.Comment comments = 24; + * repeated .sonarqube.ws.issues.Comment comments = 25; */ public Builder setComments( int index, org.sonarqube.ws.Issues.Comment value) { @@ -8442,7 +10039,7 @@ public final class Issues { return this; } /** - * repeated .sonarqube.ws.issues.Comment comments = 24; + * repeated .sonarqube.ws.issues.Comment comments = 25; */ public Builder setComments( int index, org.sonarqube.ws.Issues.Comment.Builder builderForValue) { @@ -8456,7 +10053,7 @@ public final class Issues { return this; } /** - * repeated .sonarqube.ws.issues.Comment comments = 24; + * repeated .sonarqube.ws.issues.Comment comments = 25; */ public Builder addComments(org.sonarqube.ws.Issues.Comment value) { if (commentsBuilder_ == null) { @@ -8472,7 +10069,7 @@ public final class Issues { return this; } /** - * repeated .sonarqube.ws.issues.Comment comments = 24; + * repeated .sonarqube.ws.issues.Comment comments = 25; */ public Builder addComments( int index, org.sonarqube.ws.Issues.Comment value) { @@ -8489,7 +10086,7 @@ public final class Issues { return this; } /** - * repeated .sonarqube.ws.issues.Comment comments = 24; + * repeated .sonarqube.ws.issues.Comment comments = 25; */ public Builder addComments( org.sonarqube.ws.Issues.Comment.Builder builderForValue) { @@ -8503,7 +10100,7 @@ public final class Issues { return this; } /** - * repeated .sonarqube.ws.issues.Comment comments = 24; + * repeated .sonarqube.ws.issues.Comment comments = 25; */ public Builder addComments( int index, org.sonarqube.ws.Issues.Comment.Builder builderForValue) { @@ -8517,7 +10114,7 @@ public final class Issues { return this; } /** - * repeated .sonarqube.ws.issues.Comment comments = 24; + * repeated .sonarqube.ws.issues.Comment comments = 25; */ public Builder addAllComments( java.lang.Iterable values) { @@ -8532,12 +10129,12 @@ public final class Issues { return this; } /** - * repeated .sonarqube.ws.issues.Comment comments = 24; + * repeated .sonarqube.ws.issues.Comment comments = 25; */ public Builder clearComments() { if (commentsBuilder_ == null) { comments_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00800000); + bitField0_ = (bitField0_ & ~0x01000000); onChanged(); } else { commentsBuilder_.clear(); @@ -8545,7 +10142,7 @@ public final class Issues { return this; } /** - * repeated .sonarqube.ws.issues.Comment comments = 24; + * repeated .sonarqube.ws.issues.Comment comments = 25; */ public Builder removeComments(int index) { if (commentsBuilder_ == null) { @@ -8558,14 +10155,14 @@ public final class Issues { return this; } /** - * repeated .sonarqube.ws.issues.Comment comments = 24; + * repeated .sonarqube.ws.issues.Comment comments = 25; */ public org.sonarqube.ws.Issues.Comment.Builder getCommentsBuilder( int index) { return getCommentsFieldBuilder().getBuilder(index); } /** - * repeated .sonarqube.ws.issues.Comment comments = 24; + * repeated .sonarqube.ws.issues.Comment comments = 25; */ public org.sonarqube.ws.Issues.CommentOrBuilder getCommentsOrBuilder( int index) { @@ -8575,7 +10172,7 @@ public final class Issues { } } /** - * repeated .sonarqube.ws.issues.Comment comments = 24; + * repeated .sonarqube.ws.issues.Comment comments = 25; */ public java.util.List getCommentsOrBuilderList() { @@ -8586,14 +10183,14 @@ public final class Issues { } } /** - * repeated .sonarqube.ws.issues.Comment comments = 24; + * repeated .sonarqube.ws.issues.Comment comments = 25; */ public org.sonarqube.ws.Issues.Comment.Builder addCommentsBuilder() { return getCommentsFieldBuilder().addBuilder( org.sonarqube.ws.Issues.Comment.getDefaultInstance()); } /** - * repeated .sonarqube.ws.issues.Comment comments = 24; + * repeated .sonarqube.ws.issues.Comment comments = 25; */ public org.sonarqube.ws.Issues.Comment.Builder addCommentsBuilder( int index) { @@ -8601,7 +10198,7 @@ public final class Issues { index, org.sonarqube.ws.Issues.Comment.getDefaultInstance()); } /** - * repeated .sonarqube.ws.issues.Comment comments = 24; + * repeated .sonarqube.ws.issues.Comment comments = 25; */ public java.util.List getCommentsBuilderList() { @@ -8614,7 +10211,7 @@ public final class Issues { commentsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< org.sonarqube.ws.Issues.Comment, org.sonarqube.ws.Issues.Comment.Builder, org.sonarqube.ws.Issues.CommentOrBuilder>( comments_, - ((bitField0_ & 0x00800000) == 0x00800000), + ((bitField0_ & 0x01000000) == 0x01000000), getParentForChildren(), isClean()); comments_ = null; @@ -8624,13 +10221,13 @@ public final class Issues { private java.lang.Object creationDate_ = ""; /** - * optional string creationDate = 25; + * optional string creationDate = 26; */ public boolean hasCreationDate() { - return ((bitField0_ & 0x01000000) == 0x01000000); + return ((bitField0_ & 0x02000000) == 0x02000000); } /** - * optional string creationDate = 25; + * optional string creationDate = 26; */ public java.lang.String getCreationDate() { java.lang.Object ref = creationDate_; @@ -8647,7 +10244,7 @@ public final class Issues { } } /** - * optional string creationDate = 25; + * optional string creationDate = 26; */ public com.google.protobuf.ByteString getCreationDateBytes() { @@ -8663,36 +10260,36 @@ public final class Issues { } } /** - * optional string creationDate = 25; + * optional string creationDate = 26; */ public Builder setCreationDate( java.lang.String value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x01000000; + bitField0_ |= 0x02000000; creationDate_ = value; onChanged(); return this; } /** - * optional string creationDate = 25; + * optional string creationDate = 26; */ public Builder clearCreationDate() { - bitField0_ = (bitField0_ & ~0x01000000); + bitField0_ = (bitField0_ & ~0x02000000); creationDate_ = getDefaultInstance().getCreationDate(); onChanged(); return this; } /** - * optional string creationDate = 25; + * optional string creationDate = 26; */ public Builder setCreationDateBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x01000000; + bitField0_ |= 0x02000000; creationDate_ = value; onChanged(); return this; @@ -8700,13 +10297,13 @@ public final class Issues { private java.lang.Object updateDate_ = ""; /** - * optional string updateDate = 26; + * optional string updateDate = 27; */ public boolean hasUpdateDate() { - return ((bitField0_ & 0x02000000) == 0x02000000); + return ((bitField0_ & 0x04000000) == 0x04000000); } /** - * optional string updateDate = 26; + * optional string updateDate = 27; */ public java.lang.String getUpdateDate() { java.lang.Object ref = updateDate_; @@ -8723,7 +10320,7 @@ public final class Issues { } } /** - * optional string updateDate = 26; + * optional string updateDate = 27; */ public com.google.protobuf.ByteString getUpdateDateBytes() { @@ -8739,36 +10336,36 @@ public final class Issues { } } /** - * optional string updateDate = 26; + * optional string updateDate = 27; */ public Builder setUpdateDate( java.lang.String value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x02000000; + bitField0_ |= 0x04000000; updateDate_ = value; onChanged(); return this; } /** - * optional string updateDate = 26; + * optional string updateDate = 27; */ public Builder clearUpdateDate() { - bitField0_ = (bitField0_ & ~0x02000000); + bitField0_ = (bitField0_ & ~0x04000000); updateDate_ = getDefaultInstance().getUpdateDate(); onChanged(); return this; } /** - * optional string updateDate = 26; + * optional string updateDate = 27; */ public Builder setUpdateDateBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x02000000; + bitField0_ |= 0x04000000; updateDate_ = value; onChanged(); return this; @@ -8776,13 +10373,13 @@ public final class Issues { private java.lang.Object fUpdateAge_ = ""; /** - * optional string fUpdateAge = 27; + * optional string fUpdateAge = 28; */ public boolean hasFUpdateAge() { - return ((bitField0_ & 0x04000000) == 0x04000000); + return ((bitField0_ & 0x08000000) == 0x08000000); } /** - * optional string fUpdateAge = 27; + * optional string fUpdateAge = 28; */ public java.lang.String getFUpdateAge() { java.lang.Object ref = fUpdateAge_; @@ -8799,7 +10396,7 @@ public final class Issues { } } /** - * optional string fUpdateAge = 27; + * optional string fUpdateAge = 28; */ public com.google.protobuf.ByteString getFUpdateAgeBytes() { @@ -8815,36 +10412,36 @@ public final class Issues { } } /** - * optional string fUpdateAge = 27; + * optional string fUpdateAge = 28; */ public Builder setFUpdateAge( java.lang.String value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x04000000; + bitField0_ |= 0x08000000; fUpdateAge_ = value; onChanged(); return this; } /** - * optional string fUpdateAge = 27; + * optional string fUpdateAge = 28; */ public Builder clearFUpdateAge() { - bitField0_ = (bitField0_ & ~0x04000000); + bitField0_ = (bitField0_ & ~0x08000000); fUpdateAge_ = getDefaultInstance().getFUpdateAge(); onChanged(); return this; } /** - * optional string fUpdateAge = 27; + * optional string fUpdateAge = 28; */ public Builder setFUpdateAgeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x04000000; + bitField0_ |= 0x08000000; fUpdateAge_ = value; onChanged(); return this; @@ -8852,13 +10449,13 @@ public final class Issues { private java.lang.Object closeDate_ = ""; /** - * optional string closeDate = 28; + * optional string closeDate = 29; */ public boolean hasCloseDate() { - return ((bitField0_ & 0x08000000) == 0x08000000); + return ((bitField0_ & 0x10000000) == 0x10000000); } /** - * optional string closeDate = 28; + * optional string closeDate = 29; */ public java.lang.String getCloseDate() { java.lang.Object ref = closeDate_; @@ -8875,7 +10472,7 @@ public final class Issues { } } /** - * optional string closeDate = 28; + * optional string closeDate = 29; */ public com.google.protobuf.ByteString getCloseDateBytes() { @@ -8891,36 +10488,36 @@ public final class Issues { } } /** - * optional string closeDate = 28; + * optional string closeDate = 29; */ public Builder setCloseDate( java.lang.String value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x08000000; + bitField0_ |= 0x10000000; closeDate_ = value; onChanged(); return this; } /** - * optional string closeDate = 28; + * optional string closeDate = 29; */ public Builder clearCloseDate() { - bitField0_ = (bitField0_ & ~0x08000000); + bitField0_ = (bitField0_ & ~0x10000000); closeDate_ = getDefaultInstance().getCloseDate(); onChanged(); return this; } /** - * optional string closeDate = 28; + * optional string closeDate = 29; */ public Builder setCloseDateBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x08000000; + bitField0_ |= 0x10000000; closeDate_ = value; onChanged(); return this; @@ -12415,6 +14012,11 @@ public final class Issues { private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_sonarqube_ws_issues_Search_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_sonarqube_ws_issues_Operation_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_sonarqube_ws_issues_Operation_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_sonarqube_ws_issues_Issue_descriptor; private static @@ -12445,46 +14047,50 @@ public final class Issues { static { java.lang.String[] descriptorData = { "\n\017ws-issues.proto\022\023sonarqube.ws.issues\032\017" + - "ws-common.proto\"\234\005\n\006Search\022\r\n\005total\030\001 \001(" + + "ws-common.proto\"\257\004\n\006Search\022\r\n\005total\030\001 \001(" + "\003\022\t\n\001p\030\002 \001(\003\022\n\n\002ps\030\003 \001(\005\022$\n\006paging\030\004 \001(\013" + "2\024.sonarqube.ws.Paging\022\021\n\tdebtTotal\030\005 \001(" + "\003\022*\n\006issues\030\006 \003(\0132\032.sonarqube.ws.issues." + - "Issue\022\036\n\026projectsPresentIfEmpty\030\010 \001(\010\022)\n" + - "\010projects\030\t \003(\0132\027.sonarqube.ws.Component" + - "\022 \n\030componentsPresentIfEmpty\030\n \001(\010\022+\n\nco" + - "mponents\030\013 \003(\0132\027.sonarqube.ws.Component\022" + - "\033\n\023rulesPresentIfEmpty\030\014 \001(\010\022!\n\005rules\030\r ", - "\003(\0132\022.sonarqube.ws.Rule\022\033\n\023usersPresentI" + - "fEmpty\030\016 \001(\010\022!\n\005users\030\017 \003(\0132\022.sonarqube." + - "ws.User\022!\n\031actionPlansPresentIfEmpty\030\020 \001" + - "(\010\0224\n\013actionPlans\030\021 \003(\0132\037.sonarqube.ws.i" + - "ssues.ActionPlan\022\037\n\027languagesPresentIfEm" + - "pty\030\022 \001(\010\0220\n\tlanguages\030\023 \003(\0132\035.sonarqube" + - ".ws.issues.Language\022#\n\006facets\030\024 \003(\0132\023.so" + - "narqube.ws.Facet\022\034\n\024facetsPresentIfEmpty" + - "\030\025 \001(\010\"\333\004\n\005Issue\022\013\n\003key\030\001 \001(\t\022\014\n\004rule\030\002 " + - "\001(\t\022(\n\010severity\030\003 \001(\0162\026.sonarqube.ws.Sev", - "erity\022\021\n\tcomponent\030\004 \001(\t\022\023\n\013componentId\030" + - "\005 \001(\003\022\017\n\007project\030\006 \001(\t\022\014\n\004line\030\007 \001(\005\022\022\n\n" + - "resolution\030\010 \001(\t\022\016\n\006status\030\t \001(\t\022\017\n\007mess" + - "age\030\n \001(\t\022\014\n\004debt\030\013 \001(\t\022\020\n\010assignee\030\014 \001(" + - "\t\022\020\n\010reporter\030\r \001(\t\022\016\n\006author\030\016 \001(\t\022\022\n\na" + - "ctionPlan\030\017 \001(\t\022\026\n\016actionPlanName\030\020 \001(\t\022" + - "\014\n\004attr\030\021 \001(\t\022\014\n\004tags\030\022 \003(\t\022!\n\031transitio" + - "nsPresentIfEmpty\030\023 \001(\010\022\023\n\013transitions\030\024 " + - "\003(\t\022\035\n\025actionsPresentIfEmpty\030\025 \001(\010\022\017\n\007ac" + - "tions\030\026 \003(\t\022\036\n\026commentsPresentIfEmpty\030\027 ", - "\001(\010\022.\n\010comments\030\030 \003(\0132\034.sonarqube.ws.iss" + - "ues.Comment\022\024\n\014creationDate\030\031 \001(\t\022\022\n\nupd" + - "ateDate\030\032 \001(\t\022\022\n\nfUpdateAge\030\033 \001(\t\022\021\n\tclo" + - "seDate\030\034 \001(\t\"\220\001\n\007Comment\022\013\n\003key\030\001 \001(\t\022\r\n" + - "\005login\030\002 \001(\t\022\r\n\005email\030\003 \001(\t\022\020\n\010userName\030" + - "\004 \001(\t\022\020\n\010htmlText\030\005 \001(\t\022\020\n\010markdown\030\006 \001(" + - "\t\022\021\n\tupdatable\030\007 \001(\010\022\021\n\tcreatedAt\030\010 \001(\t\"" + - "Z\n\nActionPlan\022\013\n\003key\030\001 \001(\t\022\014\n\004name\030\002 \001(\t" + - "\022\016\n\006status\030\003 \001(\t\022\020\n\010deadLine\030\004 \001(\t\022\017\n\007pr" + - "oject\030\005 \001(\t\"%\n\010Language\022\013\n\003key\030\001 \001(\t\022\014\n\004", - "name\030\002 \001(\tB\034\n\020org.sonarqube.wsB\006IssuesH\001" + "Issue\022+\n\ncomponents\030\007 \003(\0132\027.sonarqube.ws" + + ".Component\022\033\n\023rulesPresentIfEmpty\030\010 \001(\010\022" + + "!\n\005rules\030\t \003(\0132\022.sonarqube.ws.Rule\022\033\n\023us" + + "ersPresentIfEmpty\030\n \001(\010\022!\n\005users\030\013 \003(\0132\022" + + ".sonarqube.ws.User\022!\n\031actionPlansPresent", + "IfEmpty\030\014 \001(\010\0224\n\013actionPlans\030\r \003(\0132\037.son" + + "arqube.ws.issues.ActionPlan\022\037\n\027languages" + + "PresentIfEmpty\030\016 \001(\010\0220\n\tlanguages\030\017 \003(\0132" + + "\035.sonarqube.ws.issues.Language\022\034\n\024facets" + + "PresentIfEmpty\030\020 \001(\010\022#\n\006facets\030\021 \003(\0132\023.s" + + "onarqube.ws.Facet\"\337\001\n\tOperation\022)\n\005issue" + + "\030\001 \001(\0132\032.sonarqube.ws.issues.Issue\022+\n\nco" + + "mponents\030\002 \003(\0132\027.sonarqube.ws.Component\022" + + "!\n\005rules\030\003 \003(\0132\022.sonarqube.ws.Rule\022!\n\005us" + + "ers\030\004 \003(\0132\022.sonarqube.ws.User\0224\n\013actionP", + "lans\030\005 \003(\0132\037.sonarqube.ws.issues.ActionP" + + "lan\"\357\004\n\005Issue\022\013\n\003key\030\001 \001(\t\022\014\n\004rule\030\002 \001(\t" + + "\022(\n\010severity\030\003 \001(\0162\026.sonarqube.ws.Severi" + + "ty\022\021\n\tcomponent\030\004 \001(\t\022\023\n\013componentId\030\005 \001" + + "(\003\022\017\n\007project\030\006 \001(\t\022\022\n\nsubProject\030\007 \001(\t\022" + + "\014\n\004line\030\010 \001(\005\022\022\n\nresolution\030\t \001(\t\022\016\n\006sta" + + "tus\030\n \001(\t\022\017\n\007message\030\013 \001(\t\022\014\n\004debt\030\014 \001(\t" + + "\022\020\n\010assignee\030\r \001(\t\022\020\n\010reporter\030\016 \001(\t\022\016\n\006" + + "author\030\017 \001(\t\022\022\n\nactionPlan\030\020 \001(\t\022\026\n\016acti" + + "onPlanName\030\021 \001(\t\022\014\n\004attr\030\022 \001(\t\022\014\n\004tags\030\023", + " \003(\t\022!\n\031transitionsPresentIfEmpty\030\024 \001(\010\022" + + "\023\n\013transitions\030\025 \003(\t\022\035\n\025actionsPresentIf" + + "Empty\030\026 \001(\010\022\017\n\007actions\030\027 \003(\t\022\036\n\026comments" + + "PresentIfEmpty\030\030 \001(\010\022.\n\010comments\030\031 \003(\0132\034" + + ".sonarqube.ws.issues.Comment\022\024\n\014creation" + + "Date\030\032 \001(\t\022\022\n\nupdateDate\030\033 \001(\t\022\022\n\nfUpdat" + + "eAge\030\034 \001(\t\022\021\n\tcloseDate\030\035 \001(\t\"\220\001\n\007Commen" + + "t\022\013\n\003key\030\001 \001(\t\022\r\n\005login\030\002 \001(\t\022\r\n\005email\030\003" + + " \001(\t\022\020\n\010userName\030\004 \001(\t\022\020\n\010htmlText\030\005 \001(\t" + + "\022\020\n\010markdown\030\006 \001(\t\022\021\n\tupdatable\030\007 \001(\010\022\021\n", + "\tcreatedAt\030\010 \001(\t\"Z\n\nActionPlan\022\013\n\003key\030\001 " + + "\001(\t\022\014\n\004name\030\002 \001(\t\022\016\n\006status\030\003 \001(\t\022\020\n\010dea" + + "dLine\030\004 \001(\t\022\017\n\007project\030\005 \001(\t\"%\n\010Language" + + "\022\013\n\003key\030\001 \001(\t\022\014\n\004name\030\002 \001(\tB\034\n\020org.sonar" + + "qube.wsB\006IssuesH\001" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -12504,27 +14110,33 @@ public final class Issues { internal_static_sonarqube_ws_issues_Search_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_sonarqube_ws_issues_Search_descriptor, - new java.lang.String[] { "Total", "P", "Ps", "Paging", "DebtTotal", "Issues", "ProjectsPresentIfEmpty", "Projects", "ComponentsPresentIfEmpty", "Components", "RulesPresentIfEmpty", "Rules", "UsersPresentIfEmpty", "Users", "ActionPlansPresentIfEmpty", "ActionPlans", "LanguagesPresentIfEmpty", "Languages", "Facets", "FacetsPresentIfEmpty", }); - internal_static_sonarqube_ws_issues_Issue_descriptor = + new java.lang.String[] { "Total", "P", "Ps", "Paging", "DebtTotal", "Issues", "Components", "RulesPresentIfEmpty", "Rules", "UsersPresentIfEmpty", "Users", "ActionPlansPresentIfEmpty", "ActionPlans", "LanguagesPresentIfEmpty", "Languages", "FacetsPresentIfEmpty", "Facets", }); + internal_static_sonarqube_ws_issues_Operation_descriptor = getDescriptor().getMessageTypes().get(1); + internal_static_sonarqube_ws_issues_Operation_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_sonarqube_ws_issues_Operation_descriptor, + new java.lang.String[] { "Issue", "Components", "Rules", "Users", "ActionPlans", }); + internal_static_sonarqube_ws_issues_Issue_descriptor = + getDescriptor().getMessageTypes().get(2); internal_static_sonarqube_ws_issues_Issue_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_sonarqube_ws_issues_Issue_descriptor, - new java.lang.String[] { "Key", "Rule", "Severity", "Component", "ComponentId", "Project", "Line", "Resolution", "Status", "Message", "Debt", "Assignee", "Reporter", "Author", "ActionPlan", "ActionPlanName", "Attr", "Tags", "TransitionsPresentIfEmpty", "Transitions", "ActionsPresentIfEmpty", "Actions", "CommentsPresentIfEmpty", "Comments", "CreationDate", "UpdateDate", "FUpdateAge", "CloseDate", }); + new java.lang.String[] { "Key", "Rule", "Severity", "Component", "ComponentId", "Project", "SubProject", "Line", "Resolution", "Status", "Message", "Debt", "Assignee", "Reporter", "Author", "ActionPlan", "ActionPlanName", "Attr", "Tags", "TransitionsPresentIfEmpty", "Transitions", "ActionsPresentIfEmpty", "Actions", "CommentsPresentIfEmpty", "Comments", "CreationDate", "UpdateDate", "FUpdateAge", "CloseDate", }); internal_static_sonarqube_ws_issues_Comment_descriptor = - getDescriptor().getMessageTypes().get(2); + getDescriptor().getMessageTypes().get(3); internal_static_sonarqube_ws_issues_Comment_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_sonarqube_ws_issues_Comment_descriptor, new java.lang.String[] { "Key", "Login", "Email", "UserName", "HtmlText", "Markdown", "Updatable", "CreatedAt", }); internal_static_sonarqube_ws_issues_ActionPlan_descriptor = - getDescriptor().getMessageTypes().get(3); + getDescriptor().getMessageTypes().get(4); internal_static_sonarqube_ws_issues_ActionPlan_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_sonarqube_ws_issues_ActionPlan_descriptor, new java.lang.String[] { "Key", "Name", "Status", "DeadLine", "Project", }); internal_static_sonarqube_ws_issues_Language_descriptor = - getDescriptor().getMessageTypes().get(4); + getDescriptor().getMessageTypes().get(5); internal_static_sonarqube_ws_issues_Language_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_sonarqube_ws_issues_Language_descriptor, diff --git a/sonar-ws/src/main/protobuf/ws-common.proto b/sonar-ws/src/main/protobuf/ws-common.proto index a269ff7f4be..f61123e7715 100644 --- a/sonar-ws/src/main/protobuf/ws-common.proto +++ b/sonar-ws/src/main/protobuf/ws-common.proto @@ -66,11 +66,8 @@ message Rule { optional string key = 1; optional string name = 2; optional string lang = 3; - // TODO what's the format ? - optional string desc = 4; - optional RuleStatus status = 5; - // TODO missing 'lang' - optional string langName = 6; + optional RuleStatus status = 4; + optional string langName = 5; } enum RuleStatus { diff --git a/sonar-ws/src/main/protobuf/ws-issues.proto b/sonar-ws/src/main/protobuf/ws-issues.proto index 40c9c9daa77..3183973316b 100644 --- a/sonar-ws/src/main/protobuf/ws-issues.proto +++ b/sonar-ws/src/main/protobuf/ws-issues.proto @@ -26,10 +26,8 @@ option java_package = "org.sonarqube.ws"; option java_outer_classname = "Issues"; option optimize_for = SPEED; -// Response of URL api/issues/search +// Response of GET api/issues/search message Search { - // TODO errors - optional int64 total = 1; optional int64 p = 2; optional int32 ps = 3; @@ -39,22 +37,29 @@ message Search { optional int64 debtTotal = 5; repeated Issue issues = 6; - optional bool projectsPresentIfEmpty = 8; - repeated Component projects = 9; - optional bool componentsPresentIfEmpty = 10; - repeated Component components = 11; - optional bool rulesPresentIfEmpty = 12; - repeated Rule rules = 13; - optional bool usersPresentIfEmpty = 14; - repeated User users = 15; - optional bool actionPlansPresentIfEmpty = 16; - repeated ActionPlan actionPlans = 17; - optional bool languagesPresentIfEmpty = 18; - repeated Language languages = 19; - repeated Facet facets = 20; - optional bool facetsPresentIfEmpty = 21; + repeated Component components = 7; + optional bool rulesPresentIfEmpty = 8; + repeated Rule rules = 9; + optional bool usersPresentIfEmpty = 10; + repeated User users = 11; + optional bool actionPlansPresentIfEmpty = 12; + repeated ActionPlan actionPlans = 13; + optional bool languagesPresentIfEmpty = 14; + repeated Language languages = 15; + optional bool facetsPresentIfEmpty = 16; + repeated Facet facets = 17; +} + +// Response of most of POST/issues/{operation}, for instance assign, add_comment and set_severity +message Operation { + optional Issue issue = 1; + repeated Component components = 2; + repeated Rule rules = 3; + repeated User users = 4; + repeated ActionPlan actionPlans = 5; } + message Issue { optional string key = 1; optional string rule = 2; @@ -62,36 +67,37 @@ message Issue { optional string component = 4; optional int64 componentId = 5; optional string project = 6; - optional int32 line = 7; - optional string resolution = 8; - optional string status = 9; - optional string message = 10; - optional string debt = 11; - optional string assignee = 12; - optional string reporter = 13; + optional string subProject = 7; + optional int32 line = 8; + optional string resolution = 9; + optional string status = 10; + optional string message = 11; + optional string debt = 12; + optional string assignee = 13; + optional string reporter = 14; // SCM login of the committer who introduced the issue - optional string author = 14; + optional string author = 15; - optional string actionPlan = 15; - optional string actionPlanName = 16; - optional string attr = 17; - repeated string tags = 18; + optional string actionPlan = 16; + optional string actionPlanName = 17; + optional string attr = 18; + repeated string tags = 19; // the transitions allowed for the requesting user. - optional bool transitionsPresentIfEmpty=19; - repeated string transitions = 20; + optional bool transitionsPresentIfEmpty = 20; + repeated string transitions = 21; // the actions allowed for the requesting user. - optional bool actionsPresentIfEmpty=21; - repeated string actions = 22; - - optional bool commentsPresentIfEmpty = 23; - repeated Comment comments = 24; - optional string creationDate= 25; - optional string updateDate= 26; - optional string fUpdateAge= 27; - optional string closeDate= 28; + optional bool actionsPresentIfEmpty = 22; + repeated string actions = 23; + + optional bool commentsPresentIfEmpty = 24; + repeated Comment comments = 25; + optional string creationDate = 26; + optional string updateDate = 27; + optional string fUpdateAge = 28; + optional string closeDate = 29; } message Comment { -- 2.39.5