From 15005289f592f7a574f8947d09ab4cc6f6f2bd2e Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Wed, 16 Sep 2015 01:15:42 +0200 Subject: [PATCH] Improve protobuf to json converter - replace bool field *PresentIfEmpty by a wrapper of repeated fields - support arrays/maps in map values --- .../server/issue/ws/SearchResponseFormat.java | 99 +- .../permission/ws/CreateTemplateAction.java | 4 +- .../server/permission/ws/GroupsAction.java | 2 +- ...mplateDtoToPermissionTemplateResponse.java | 2 +- .../ws/SearchGlobalPermissionsAction.java | 6 +- .../ws/SearchProjectPermissionsAction.java | 6 +- .../permission/ws/SearchTemplatesAction.java | 8 +- .../permission/ws/UpdateTemplateAction.java | 4 +- .../server/permission/ws/UsersAction.java | 2 +- .../sonar/core/util/ProtobufJsonFormat.java | 226 +- .../gen-java/org/sonar/core/test/Test.java | 5020 ++++- .../core/util/ProtobufJsonFormatTest.java | 144 +- sonar-core/src/test/protobuf/test.proto | 47 +- .../gen-java/org/sonarqube/ws/Common.java | 4607 ++-- .../gen-java/org/sonarqube/ws/Issues.java | 18598 +++++++++------- .../org/sonarqube/ws/Permissions.java | 12666 ----------- sonar-ws/src/main/protobuf/ws-commons.proto | 12 + sonar-ws/src/main/protobuf/ws-issues.proto | 57 +- .../src/main/protobuf/ws-permissions.proto | 5 +- 19 files changed, 18030 insertions(+), 23485 deletions(-) delete mode 100644 sonar-ws/src/main/gen-java/org/sonarqube/ws/Permissions.java 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 47776f713c5..ec1b2257d61 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 @@ -76,20 +76,16 @@ public class SearchResponseFormat { formatFacets(facets, response); } if (fields.contains(SearchAdditionalField.RULES)) { - response.setRulesPresentIfEmpty(true); - response.addAllRules(formatRules(data)); + response.setRules(formatRules(data)); } if (fields.contains(SearchAdditionalField.USERS)) { - response.setUsersPresentIfEmpty(true); - response.addAllUsers(formatUsers(data)); + response.setUsers(formatUsers(data)); } if (fields.contains(SearchAdditionalField.ACTION_PLANS)) { - response.setActionPlansPresentIfEmpty(true); - response.addAllActionPlans(formatActionPlans(data)); + response.setActionPlans(formatActionPlans(data)); } if (fields.contains(SearchAdditionalField.LANGUAGES)) { - response.setLanguagesPresentIfEmpty(true); - response.addAllLanguages(formatLanguages()); + response.setLanguages(formatLanguages()); } return response.build(); } @@ -107,9 +103,9 @@ public class SearchResponseFormat { response.setIssue(issueBuilder.build()); } response.addAllComponents(formatComponents(data)); - response.addAllRules(formatRules(data)); - response.addAllUsers(formatUsers(data)); - response.addAllActionPlans(formatActionPlans(data)); + response.addAllRules(formatRules(data).getRulesList()); + response.addAllUsers(formatUsers(data).getUsersList()); + response.addAllActionPlans(formatActionPlans(data).getActionPlansList()); return response.build(); } @@ -178,7 +174,6 @@ public class SearchResponseFormat { issueBuilder.setActionPlan(dto.getActionPlanKey()); } issueBuilder.setMessage(nullToEmpty(dto.getMessage())); - issueBuilder.setTagsPresentIfEmpty(true); issueBuilder.addAllTags(dto.getTags()); Long debt = dto.getDebt(); if (debt != null) { @@ -254,56 +249,59 @@ public class SearchResponseFormat { return targetRange; } - private static void formatIssueTransitions(SearchResponseData data, Issues.Issue.Builder issueBuilder, IssueDto dto) { - issueBuilder.setTransitionsPresentIfEmpty(true); + private static void formatIssueTransitions(SearchResponseData data, Issues.Issue.Builder wsIssue, IssueDto dto) { + Issues.Transitions.Builder wsTransitions = Issues.Transitions.newBuilder(); List transitions = data.getTransitionsForIssueKey(dto.getKey()); if (transitions != null) { for (Transition transition : transitions) { - issueBuilder.addTransitions(transition.key()); + wsTransitions.addTransitions(transition.key()); } } + wsIssue.setTransitions(wsTransitions); } - private static void formatIssueActions(SearchResponseData data, Issues.Issue.Builder issueBuilder, IssueDto dto) { - issueBuilder.setActionsPresentIfEmpty(true); + private static void formatIssueActions(SearchResponseData data, Issues.Issue.Builder wsIssue, IssueDto dto) { + Issues.Actions.Builder wsActions = Issues.Actions.newBuilder(); List actions = data.getActionsForIssueKey(dto.getKey()); if (actions != null) { - issueBuilder.addAllActions(actions); + wsActions.addAllActions(actions); } + wsIssue.setActions(wsActions); } - private static void formatIssueComments(SearchResponseData data, Issues.Issue.Builder issueBuilder, IssueDto dto) { - issueBuilder.setCommentsPresentIfEmpty(true); + private static void formatIssueComments(SearchResponseData data, Issues.Issue.Builder wsIssue, IssueDto dto) { + Issues.Comments.Builder wsComments = Issues.Comments.newBuilder(); List comments = data.getCommentsForIssueKey(dto.getKey()); if (comments != null) { - Issues.Comment.Builder commentBuilder = Issues.Comment.newBuilder(); + Issues.Comment.Builder wsComment = Issues.Comment.newBuilder(); for (IssueChangeDto comment : comments) { String markdown = comment.getChangeData(); - commentBuilder + wsComment .clear() .setKey(comment.getKey()) .setLogin(nullToEmpty(comment.getUserLogin())) .setUpdatable(data.isUpdatableComment(comment.getKey())) .setCreatedAt(DateUtils.formatDateTime(new Date(comment.getCreatedAt()))); if (markdown != null) { - commentBuilder + wsComment .setHtmlText(Markdown.convertToHtml(markdown)) .setMarkdown(markdown); } - issueBuilder.addComments(commentBuilder.build()); + wsComments.addComments(wsComment); } } + wsIssue.setComments(wsComments); } - private List formatRules(SearchResponseData data) { - List result = new ArrayList<>(); + private Common.Rules.Builder formatRules(SearchResponseData data) { + Common.Rules.Builder wsRules = Common.Rules.newBuilder(); List rules = data.getRules(); if (rules != null) { for (RuleDto rule : rules) { - result.add(commonFormat.formatRule(rule).build()); + wsRules.addRules(commonFormat.formatRule(rule)); } } - return result; + return wsRules; } private static List formatComponents(SearchResponseData data) { @@ -340,19 +338,19 @@ public class SearchResponseFormat { return result; } - private List formatUsers(SearchResponseData data) { - List result = new ArrayList<>(); + private Common.Users.Builder formatUsers(SearchResponseData data) { + Common.Users.Builder wsUsers = Common.Users.newBuilder(); List users = data.getUsers(); if (users != null) { for (UserDto user : users) { - result.add(commonFormat.formatUser(user).build()); + wsUsers.addUsers(commonFormat.formatUser(user)); } } - return result; + return wsUsers; } - private List formatActionPlans(SearchResponseData data) { - List result = new ArrayList<>(); + private Issues.ActionPlans.Builder formatActionPlans(SearchResponseData data) { + Issues.ActionPlans.Builder wsActionPlans = Issues.ActionPlans.newBuilder(); List actionPlans = data.getActionPlans(); if (actionPlans != null) { Issues.ActionPlan.Builder planBuilder = Issues.ActionPlan.newBuilder(); @@ -367,43 +365,44 @@ public class SearchResponseFormat { if (deadLine != null) { planBuilder.setDeadLine(DateUtils.formatDateTime(deadLine)); } - result.add(planBuilder.build()); + wsActionPlans.addActionPlans(planBuilder); } } - return result; + return wsActionPlans; } - private List formatLanguages() { - List result = new ArrayList<>(); - Issues.Language.Builder builder = Issues.Language.newBuilder(); + private Issues.Languages.Builder formatLanguages() { + Issues.Languages.Builder wsLangs = Issues.Languages.newBuilder(); + Issues.Language.Builder wsLang = Issues.Language.newBuilder(); for (Language lang : languages.all()) { - builder + wsLang .clear() .setKey(lang.getKey()) .setName(lang.getName()); - result.add(builder.build()); + wsLangs.addLanguages(wsLang); } - return result; + return wsLangs; } - private void formatFacets(Facets facets, Issues.Search.Builder response) { - response.setFacetsPresentIfEmpty(true); - Common.Facet.Builder facetBuilder = Common.Facet.newBuilder(); + private void formatFacets(Facets facets, Issues.Search.Builder wsSearch) { + Common.Facets.Builder wsFacets = Common.Facets.newBuilder(); + Common.Facet.Builder wsFacet = Common.Facet.newBuilder(); for (Map.Entry> facet : facets.getAll().entrySet()) { - facetBuilder.clear(); - facetBuilder.setProperty(facet.getKey()); + wsFacet.clear(); + wsFacet.setProperty(facet.getKey()); LinkedHashMap buckets = facet.getValue(); if (buckets != null) { for (Map.Entry bucket : buckets.entrySet()) { - Common.FacetValue.Builder valueBuilder = facetBuilder.addValuesBuilder(); + Common.FacetValue.Builder valueBuilder = wsFacet.addValuesBuilder(); valueBuilder.setVal(bucket.getKey()); valueBuilder.setCount(bucket.getValue()); valueBuilder.build(); } } else { - facetBuilder.addAllValues(Collections.emptyList()); + wsFacet.addAllValues(Collections.emptyList()); } - response.addFacets(facetBuilder.build()); + wsFacets.addFacets(wsFacet); } + wsSearch.setFacets(wsFacets); } } diff --git a/server/sonar-server/src/main/java/org/sonar/server/permission/ws/CreateTemplateAction.java b/server/sonar-server/src/main/java/org/sonar/server/permission/ws/CreateTemplateAction.java index 1eb6070c659..8a4b959b647 100644 --- a/server/sonar-server/src/main/java/org/sonar/server/permission/ws/CreateTemplateAction.java +++ b/server/sonar-server/src/main/java/org/sonar/server/permission/ws/CreateTemplateAction.java @@ -28,8 +28,8 @@ import org.sonar.db.DbClient; import org.sonar.db.DbSession; import org.sonar.db.permission.PermissionTemplateDto; import org.sonar.server.user.UserSession; -import org.sonarqube.ws.Permissions.PermissionTemplate; -import org.sonarqube.ws.Permissions.WsCreatePermissionTemplateResponse; +import org.sonarqube.ws.WsPermissions.PermissionTemplate; +import org.sonarqube.ws.WsPermissions.WsCreatePermissionTemplateResponse; import static java.lang.String.format; import static org.sonar.server.permission.PermissionPrivilegeChecker.checkGlobalAdminUser; diff --git a/server/sonar-server/src/main/java/org/sonar/server/permission/ws/GroupsAction.java b/server/sonar-server/src/main/java/org/sonar/server/permission/ws/GroupsAction.java index 8b1c4d1ce8f..b8463a7a7d2 100644 --- a/server/sonar-server/src/main/java/org/sonar/server/permission/ws/GroupsAction.java +++ b/server/sonar-server/src/main/java/org/sonar/server/permission/ws/GroupsAction.java @@ -38,7 +38,7 @@ import org.sonar.server.permission.PermissionFinder; import org.sonar.server.permission.ws.PermissionRequest.Builder; import org.sonar.server.user.UserSession; import org.sonarqube.ws.Common; -import org.sonarqube.ws.Permissions.WsGroupsResponse; +import org.sonarqube.ws.WsPermissions.WsGroupsResponse; import static com.google.common.base.Objects.firstNonNull; import static org.sonar.server.permission.PermissionPrivilegeChecker.checkProjectAdminUserByComponentDto; diff --git a/server/sonar-server/src/main/java/org/sonar/server/permission/ws/PermissionTemplateDtoToPermissionTemplateResponse.java b/server/sonar-server/src/main/java/org/sonar/server/permission/ws/PermissionTemplateDtoToPermissionTemplateResponse.java index 34bf52a9267..1b9be42037c 100644 --- a/server/sonar-server/src/main/java/org/sonar/server/permission/ws/PermissionTemplateDtoToPermissionTemplateResponse.java +++ b/server/sonar-server/src/main/java/org/sonar/server/permission/ws/PermissionTemplateDtoToPermissionTemplateResponse.java @@ -24,7 +24,7 @@ import com.google.common.base.Function; import javax.annotation.Nonnull; import org.sonar.api.utils.DateUtils; import org.sonar.db.permission.PermissionTemplateDto; -import org.sonarqube.ws.Permissions.PermissionTemplate; +import org.sonarqube.ws.WsPermissions.PermissionTemplate; class PermissionTemplateDtoToPermissionTemplateResponse { diff --git a/server/sonar-server/src/main/java/org/sonar/server/permission/ws/SearchGlobalPermissionsAction.java b/server/sonar-server/src/main/java/org/sonar/server/permission/ws/SearchGlobalPermissionsAction.java index c58aa66808d..314cb1ee7b0 100644 --- a/server/sonar-server/src/main/java/org/sonar/server/permission/ws/SearchGlobalPermissionsAction.java +++ b/server/sonar-server/src/main/java/org/sonar/server/permission/ws/SearchGlobalPermissionsAction.java @@ -30,12 +30,12 @@ import org.sonar.db.DbSession; import org.sonar.db.permission.PermissionQuery; import org.sonar.db.user.GroupMembershipQuery; import org.sonar.server.user.UserSession; -import org.sonarqube.ws.Permissions.Permission; -import org.sonarqube.ws.Permissions.WsSearchGlobalPermissionsResponse; +import org.sonarqube.ws.WsPermissions.Permission; +import org.sonarqube.ws.WsPermissions.WsSearchGlobalPermissionsResponse; import static org.sonar.server.permission.PermissionPrivilegeChecker.checkGlobalAdminUser; import static org.sonar.server.ws.WsUtils.writeProtobuf; -import static org.sonarqube.ws.Permissions.Permission.newBuilder; +import static org.sonarqube.ws.WsPermissions.Permission.newBuilder; public class SearchGlobalPermissionsAction implements PermissionsWsAction { private static final String PROPERTY_PREFIX = "global_permissions."; diff --git a/server/sonar-server/src/main/java/org/sonar/server/permission/ws/SearchProjectPermissionsAction.java b/server/sonar-server/src/main/java/org/sonar/server/permission/ws/SearchProjectPermissionsAction.java index 193fb335f5c..fa56dab3bd6 100644 --- a/server/sonar-server/src/main/java/org/sonar/server/permission/ws/SearchProjectPermissionsAction.java +++ b/server/sonar-server/src/main/java/org/sonar/server/permission/ws/SearchProjectPermissionsAction.java @@ -32,9 +32,9 @@ import org.sonar.db.DbSession; import org.sonar.db.component.ComponentDto; import org.sonar.server.user.UserSession; import org.sonarqube.ws.Common; -import org.sonarqube.ws.Permissions.Permission; -import org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse; -import org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project; +import org.sonarqube.ws.WsPermissions.Permission; +import org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse; +import org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.Project; import static org.sonar.server.permission.PermissionPrivilegeChecker.checkGlobalAdminUser; import static org.sonar.server.permission.PermissionPrivilegeChecker.checkProjectAdminUserByComponentKey; diff --git a/server/sonar-server/src/main/java/org/sonar/server/permission/ws/SearchTemplatesAction.java b/server/sonar-server/src/main/java/org/sonar/server/permission/ws/SearchTemplatesAction.java index e7cb032b857..87abcb2ee08 100644 --- a/server/sonar-server/src/main/java/org/sonar/server/permission/ws/SearchTemplatesAction.java +++ b/server/sonar-server/src/main/java/org/sonar/server/permission/ws/SearchTemplatesAction.java @@ -29,10 +29,10 @@ import org.sonar.db.DbClient; import org.sonar.db.DbSession; import org.sonar.db.permission.PermissionTemplateDto; import org.sonar.server.user.UserSession; -import org.sonarqube.ws.Permissions.Permission; -import org.sonarqube.ws.Permissions.PermissionTemplate; -import org.sonarqube.ws.Permissions.WsSearchTemplatesResponse; -import org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier; +import org.sonarqube.ws.WsPermissions.Permission; +import org.sonarqube.ws.WsPermissions.PermissionTemplate; +import org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse; +import org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifier; import static org.sonar.api.utils.DateUtils.formatDateTime; import static org.sonar.server.permission.PermissionPrivilegeChecker.checkGlobalAdminUser; diff --git a/server/sonar-server/src/main/java/org/sonar/server/permission/ws/UpdateTemplateAction.java b/server/sonar-server/src/main/java/org/sonar/server/permission/ws/UpdateTemplateAction.java index 65ac0a5a91e..2c4ae44df62 100644 --- a/server/sonar-server/src/main/java/org/sonar/server/permission/ws/UpdateTemplateAction.java +++ b/server/sonar-server/src/main/java/org/sonar/server/permission/ws/UpdateTemplateAction.java @@ -30,8 +30,8 @@ import org.sonar.db.DbClient; import org.sonar.db.DbSession; import org.sonar.db.permission.PermissionTemplateDto; import org.sonar.server.user.UserSession; -import org.sonarqube.ws.Permissions.PermissionTemplate; -import org.sonarqube.ws.Permissions.WsUpdatePermissionTemplateResponse; +import org.sonarqube.ws.WsPermissions.PermissionTemplate; +import org.sonarqube.ws.WsPermissions.WsUpdatePermissionTemplateResponse; import static com.google.common.base.Objects.firstNonNull; import static java.lang.String.format; diff --git a/server/sonar-server/src/main/java/org/sonar/server/permission/ws/UsersAction.java b/server/sonar-server/src/main/java/org/sonar/server/permission/ws/UsersAction.java index 8541f600843..01ec8d98a32 100644 --- a/server/sonar-server/src/main/java/org/sonar/server/permission/ws/UsersAction.java +++ b/server/sonar-server/src/main/java/org/sonar/server/permission/ws/UsersAction.java @@ -37,7 +37,7 @@ import org.sonar.server.permission.UserWithPermissionQueryResult; import org.sonar.server.permission.ws.PermissionRequest.Builder; import org.sonar.server.user.UserSession; import org.sonarqube.ws.Common.Paging; -import org.sonarqube.ws.Permissions.WsUsersResponse; +import org.sonarqube.ws.WsPermissions.WsUsersResponse; import static com.google.common.base.Objects.firstNonNull; import static com.google.common.base.Strings.nullToEmpty; diff --git a/sonar-core/src/main/java/org/sonar/core/util/ProtobufJsonFormat.java b/sonar-core/src/main/java/org/sonar/core/util/ProtobufJsonFormat.java index 7a0877aa2f5..c99e257e12a 100644 --- a/sonar-core/src/main/java/org/sonar/core/util/ProtobufJsonFormat.java +++ b/sonar-core/src/main/java/org/sonar/core/util/ProtobufJsonFormat.java @@ -19,55 +19,21 @@ */ package org.sonar.core.util; -import com.google.common.base.Preconditions; -import com.google.common.collect.BiMap; -import com.google.common.collect.HashBiMap; import com.google.protobuf.Descriptors; import com.google.protobuf.MapEntry; import com.google.protobuf.Message; import java.io.StringWriter; -import java.util.ArrayList; import java.util.Collection; import java.util.HashMap; -import java.util.List; import java.util.Map; import org.sonar.api.utils.text.JsonWriter; /** - * Converts a Protocol Buffers message to JSON. Unknown fields, binary fields, (deprecated) groups - * and maps are not supported. Absent fields are ignored, so it's possible to distinguish + * Converts a Protocol Buffers message to JSON. Unknown fields, binary fields and groups + * are not supported. Absent fields are ignored, so it's possible to distinguish * null strings (field is absent) and empty strings (field is present with value {@code ""}). *

- *

Empty Arrays

- * Protobuf does not make the difference between absent arrays and empty arrays (size is zero). - * The consequence is that arrays are always output in JSON. Empty arrays are converted to {@code []}. - *

- * A workaround is implemented in {@link ProtobufJsonFormat} to not generate absent arrays into JSON document. - * A boolean field is used to declare if the related repeated field (the array) is present or not. The - * name of the boolean field must be the array field name suffixed with "PresentIfEmpty". This field is "for internal - * use" and is not generated into JSON document. It is ignored when the array is not empty. - * - * For example: - *

- *   // proto specification
- *   message Response {
- *     optional bool issuesPresentIfEmpty = 1;
- *     repeated Issue issues = 2;
- *   }
- * 
- *
- *   // Java usage
- *
- *   Response.newBuilder().build();
- *   // output: {}
- *
- *   Response.newBuilder().setIssuesPresentIfEmpty(true).build();
- *   // output: {"issues": []}
- *
- *   // no need to set the flag to true when the array is not empty
- *   Response.newBuilder().setIssues(atLeastOneIssues).build();
- *   // output: {"issues": [{...}, {...}]}
- * 
+ * TODO */ public class ProtobufJsonFormat { @@ -75,113 +41,24 @@ public class ProtobufJsonFormat { // only statics } - private abstract static class MessageField { - protected final Descriptors.FieldDescriptor descriptor; - - public MessageField(Descriptors.FieldDescriptor descriptor) { - this.descriptor = descriptor; - } - - public Descriptors.FieldDescriptor getDescriptor() { - return descriptor; - } - - public abstract boolean hasValue(Message message); - - public Object getValue(Message message) { - return message.getField(descriptor); - } - } - - private static class MessageNonRepeatedField extends MessageField { - public MessageNonRepeatedField(Descriptors.FieldDescriptor descriptor) { - super(descriptor); - Preconditions.checkArgument(!descriptor.isRepeated()); - } - - @Override - public boolean hasValue(Message message) { - return message.hasField(descriptor); - } - } - - private static class MessageRepeatedField extends MessageField { - public MessageRepeatedField(Descriptors.FieldDescriptor descriptor) { - super(descriptor); - Preconditions.checkArgument(descriptor.isRepeated()); - } - - @Override - public boolean hasValue(Message message) { - return true; - } - } - - private static class MessageNullableRepeatedField extends MessageField { - private final Descriptors.FieldDescriptor booleanDesc; - - public MessageNullableRepeatedField(Descriptors.FieldDescriptor booleanDesc, Descriptors.FieldDescriptor arrayDescriptor) { - super(arrayDescriptor); - Preconditions.checkArgument(arrayDescriptor.isRepeated()); - Preconditions.checkArgument(booleanDesc.getJavaType() == Descriptors.FieldDescriptor.JavaType.BOOLEAN); - this.booleanDesc = booleanDesc; - } - - @Override - public boolean hasValue(Message message) { - if (((Collection) message.getField(descriptor)).isEmpty()) { - return message.hasField(booleanDesc) && (boolean) message.getField(booleanDesc); - } - return true; - } - } - - static class MessageJsonDescriptor { - private static final Map, MessageJsonDescriptor> BY_CLASS = new HashMap<>(); - private final MessageField[] fields; + static class MessageType { + private static final Map, MessageType> TYPES_BY_CLASS = new HashMap<>(); - private MessageJsonDescriptor(MessageField[] fields) { - this.fields = fields; - } + private final Descriptors.FieldDescriptor[] fieldDescriptors; + private final boolean doesWrapRepeated; - MessageField[] getFields() { - return fields; + private MessageType(Descriptors.Descriptor descriptor) { + this.fieldDescriptors = descriptor.getFields().toArray(new Descriptors.FieldDescriptor[descriptor.getFields().size()]); + this.doesWrapRepeated = fieldDescriptors.length == 1 && fieldDescriptors[0].isRepeated() && descriptor.getName().equalsIgnoreCase(fieldDescriptors[0].getName()); } - static MessageJsonDescriptor of(Message message) { - MessageJsonDescriptor desc = BY_CLASS.get(message.getClass()); - if (desc == null) { - desc = introspect(message); - BY_CLASS.put(message.getClass(), desc); - } - return desc; - } - - private static MessageJsonDescriptor introspect(Message message) { - List fields = new ArrayList<>(); - BiMap repeatedToBoolean = HashBiMap.create(); - for (Descriptors.FieldDescriptor desc : message.getDescriptorForType().getFields()) { - if (desc.isRepeated()) { - String booleanName = desc.getName() + "PresentIfEmpty"; - Descriptors.FieldDescriptor booleanDesc = message.getDescriptorForType().findFieldByName(booleanName); - if (booleanDesc != null && booleanDesc.getJavaType() == Descriptors.FieldDescriptor.JavaType.BOOLEAN) { - repeatedToBoolean.put(desc, booleanDesc); - } - } - } - for (Descriptors.FieldDescriptor descriptor : message.getDescriptorForType().getFields()) { - if (descriptor.isRepeated()) { - Descriptors.FieldDescriptor booleanDesc = repeatedToBoolean.get(descriptor); - if (booleanDesc == null) { - fields.add(new MessageRepeatedField(descriptor)); - } else { - fields.add(new MessageNullableRepeatedField(booleanDesc, descriptor)); - } - } else if (!repeatedToBoolean.containsValue(descriptor)) { - fields.add(new MessageNonRepeatedField(descriptor)); - } + static MessageType of(Message message) { + MessageType type = TYPES_BY_CLASS.get(message.getClass()); + if (type == null) { + type = new MessageType(message.getDescriptorForType()); + TYPES_BY_CLASS.put(message.getClass(), type); } - return new MessageJsonDescriptor(fields.toArray(new MessageField[fields.size()])); + return type; } } @@ -200,33 +77,42 @@ public class ProtobufJsonFormat { } private static void writeMessage(Message message, JsonWriter writer) { - MessageJsonDescriptor fields = MessageJsonDescriptor.of(message); - for (MessageField field : fields.getFields()) { - if (field.hasValue(message)) { - writer.name(field.getDescriptor().getName()); - if (field.getDescriptor().isMapField()) { - writer.beginObject(); - for (Object o : (Collection) field.getValue(message)) { - MapEntry mapEntry = (MapEntry)o; - // Key fields are always double-quoted in json - writer.name(mapEntry.getKey().toString()); - Descriptors.FieldDescriptor valueDescriptor = mapEntry.getDescriptorForType().findFieldByName("value"); - writeFieldValue(valueDescriptor, mapEntry.getValue(), writer); - } - writer.endObject(); - } else if (field.getDescriptor().isRepeated()) { - writer.beginArray(); - for (Object o : (Collection) field.getValue(message)) { - writeFieldValue(field.getDescriptor(), o, writer); - } - writer.endArray(); + MessageType type = MessageType.of(message); + for (Descriptors.FieldDescriptor fieldDescriptor : type.fieldDescriptors) { + if (fieldDescriptor.isRepeated()) { + writer.name(fieldDescriptor.getName()); + if (fieldDescriptor.isMapField()) { + writeMap((Collection)message.getField(fieldDescriptor), writer); } else { - writeFieldValue(field.getDescriptor(), field.getValue(message), writer); + writeArray(writer, fieldDescriptor, (Collection) message.getField(fieldDescriptor)); } + } else if (message.hasField(fieldDescriptor)) { + writer.name(fieldDescriptor.getName()); + Object fieldValue = message.getField(fieldDescriptor); + writeFieldValue(fieldDescriptor, fieldValue, writer); } } } + private static void writeArray(JsonWriter writer, Descriptors.FieldDescriptor fieldDescriptor, Collection array) { + writer.beginArray(); + for (Object o : array) { + writeFieldValue(fieldDescriptor, o, writer); + } + writer.endArray(); + } + + private static void writeMap(Collection mapEntries, JsonWriter writer) { + writer.beginObject(); + for (MapEntry mapEntry : mapEntries) { + // Key fields are always double-quoted in json + writer.name(mapEntry.getKey().toString()); + Descriptors.FieldDescriptor valueDescriptor = mapEntry.getDescriptorForType().findFieldByName("value"); + writeFieldValue(valueDescriptor, mapEntry.getValue(), writer); + } + writer.endObject(); + } + private static void writeFieldValue(Descriptors.FieldDescriptor fieldDescriptor, Object value, JsonWriter writer) { switch (fieldDescriptor.getJavaType()) { case INT: @@ -248,12 +134,26 @@ public class ProtobufJsonFormat { writer.value(((Descriptors.EnumValueDescriptor) value).getName()); break; case MESSAGE: - writer.beginObject(); - writeMessage((Message) value, writer); - writer.endObject(); + writeMessageValue((Message) value, writer); break; default: throw new IllegalStateException(String.format("JSON format does not support type '%s' of field '%s'", fieldDescriptor.getJavaType(), fieldDescriptor.getName())); } } + + private static void writeMessageValue(Message message, JsonWriter writer) { + MessageType messageType = MessageType.of(message); + if (messageType.doesWrapRepeated) { + Descriptors.FieldDescriptor repeatedDescriptor = messageType.fieldDescriptors[0]; + if (repeatedDescriptor.isMapField()) { + writeMap((Collection) message.getField(repeatedDescriptor), writer); + } else { + writeArray(writer, repeatedDescriptor, (Collection) message.getField(repeatedDescriptor)); + } + } else { + writer.beginObject(); + writeMessage(message, writer); + writer.endObject(); + } + } } diff --git a/sonar-core/src/test/gen-java/org/sonar/core/test/Test.java b/sonar-core/src/test/gen-java/org/sonar/core/test/Test.java index 04d56a5bdc8..bf02f9d2533 100644 --- a/sonar-core/src/test/gen-java/org/sonar/core/test/Test.java +++ b/sonar-core/src/test/gen-java/org/sonar/core/test/Test.java @@ -1795,8 +1795,8 @@ public final class Test { } - public interface ArrayFieldMsgOrBuilder extends - // @@protoc_insertion_point(interface_extends:ArrayFieldMsg) + public interface TestArrayOrBuilder extends + // @@protoc_insertion_point(interface_extends:TestArray) com.google.protobuf.MessageOrBuilder { /** @@ -1841,61 +1841,21 @@ public final class Test { */ org.sonar.core.test.Test.NestedMsgOrBuilder getNestedsOrBuilder( int index); - - /** - * optional bool nullableArrayPresentIfEmpty = 3; - * - *
-     * naming convention. A boolean field is used
-     * to know if the repeated field is present.
-     * 
- */ - boolean hasNullableArrayPresentIfEmpty(); - /** - * optional bool nullableArrayPresentIfEmpty = 3; - * - *
-     * naming convention. A boolean field is used
-     * to know if the repeated field is present.
-     * 
- */ - boolean getNullableArrayPresentIfEmpty(); - - /** - * repeated string nullableArray = 4; - */ - com.google.protobuf.ProtocolStringList - getNullableArrayList(); - /** - * repeated string nullableArray = 4; - */ - int getNullableArrayCount(); - /** - * repeated string nullableArray = 4; - */ - java.lang.String getNullableArray(int index); - /** - * repeated string nullableArray = 4; - */ - com.google.protobuf.ByteString - getNullableArrayBytes(int index); } /** - * Protobuf type {@code ArrayFieldMsg} + * Protobuf type {@code TestArray} */ - public static final class ArrayFieldMsg extends + public static final class TestArray extends com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:ArrayFieldMsg) - ArrayFieldMsgOrBuilder { - // Use ArrayFieldMsg.newBuilder() to construct. - private ArrayFieldMsg(com.google.protobuf.GeneratedMessage.Builder builder) { + // @@protoc_insertion_point(message_implements:TestArray) + TestArrayOrBuilder { + // Use TestArray.newBuilder() to construct. + private TestArray(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } - private ArrayFieldMsg() { + private TestArray() { strings_ = com.google.protobuf.LazyStringArrayList.EMPTY; nesteds_ = java.util.Collections.emptyList(); - nullableArrayPresentIfEmpty_ = false; - nullableArray_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @@ -1903,7 +1863,7 @@ public final class Test { getUnknownFields() { return this.unknownFields; } - private ArrayFieldMsg( + private TestArray( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) { this(); @@ -1942,20 +1902,6 @@ public final class Test { nesteds_.add(input.readMessage(org.sonar.core.test.Test.NestedMsg.PARSER, extensionRegistry)); break; } - case 24: { - bitField0_ |= 0x00000001; - nullableArrayPresentIfEmpty_ = input.readBool(); - break; - } - case 34: { - com.google.protobuf.ByteString bs = input.readBytes(); - if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { - nullableArray_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000008; - } - nullableArray_.add(bs); - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1971,26 +1917,22 @@ public final class Test { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { nesteds_ = java.util.Collections.unmodifiableList(nesteds_); } - if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { - nullableArray_ = nullableArray_.getUnmodifiableView(); - } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.sonar.core.test.Test.internal_static_ArrayFieldMsg_descriptor; + return org.sonar.core.test.Test.internal_static_TestArray_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.sonar.core.test.Test.internal_static_ArrayFieldMsg_fieldAccessorTable + return org.sonar.core.test.Test.internal_static_TestArray_fieldAccessorTable .ensureFieldAccessorsInitialized( - org.sonar.core.test.Test.ArrayFieldMsg.class, org.sonar.core.test.Test.ArrayFieldMsg.Builder.class); + org.sonar.core.test.Test.TestArray.class, org.sonar.core.test.Test.TestArray.Builder.class); } - private int bitField0_; public static final int STRINGS_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList strings_; /** @@ -2055,60 +1997,6 @@ public final class Test { return nesteds_.get(index); } - public static final int NULLABLEARRAYPRESENTIFEMPTY_FIELD_NUMBER = 3; - private boolean nullableArrayPresentIfEmpty_; - /** - * optional bool nullableArrayPresentIfEmpty = 3; - * - *
-     * naming convention. A boolean field is used
-     * to know if the repeated field is present.
-     * 
- */ - public boolean hasNullableArrayPresentIfEmpty() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional bool nullableArrayPresentIfEmpty = 3; - * - *
-     * naming convention. A boolean field is used
-     * to know if the repeated field is present.
-     * 
- */ - public boolean getNullableArrayPresentIfEmpty() { - return nullableArrayPresentIfEmpty_; - } - - public static final int NULLABLEARRAY_FIELD_NUMBER = 4; - private com.google.protobuf.LazyStringList nullableArray_; - /** - * repeated string nullableArray = 4; - */ - public com.google.protobuf.ProtocolStringList - getNullableArrayList() { - return nullableArray_; - } - /** - * repeated string nullableArray = 4; - */ - public int getNullableArrayCount() { - return nullableArray_.size(); - } - /** - * repeated string nullableArray = 4; - */ - public java.lang.String getNullableArray(int index) { - return nullableArray_.get(index); - } - /** - * repeated string nullableArray = 4; - */ - public com.google.protobuf.ByteString - getNullableArrayBytes(int index) { - return nullableArray_.getByteString(index); - } - private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2127,12 +2015,6 @@ public final class Test { for (int i = 0; i < nesteds_.size(); i++) { output.writeMessage(2, nesteds_.get(i)); } - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBool(3, nullableArrayPresentIfEmpty_); - } - for (int i = 0; i < nullableArray_.size(); i++) { - output.writeBytes(4, nullableArray_.getByteString(i)); - } unknownFields.writeTo(output); } @@ -2155,72 +2037,59 @@ public final class Test { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, nesteds_.get(i)); } - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, nullableArrayPresentIfEmpty_); - } - { - int dataSize = 0; - for (int i = 0; i < nullableArray_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeBytesSizeNoTag(nullableArray_.getByteString(i)); - } - size += dataSize; - size += 1 * getNullableArrayList().size(); - } size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; - public static org.sonar.core.test.Test.ArrayFieldMsg parseFrom( + public static org.sonar.core.test.Test.TestArray parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.sonar.core.test.Test.ArrayFieldMsg parseFrom( + public static org.sonar.core.test.Test.TestArray parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.sonar.core.test.Test.ArrayFieldMsg parseFrom(byte[] data) + public static org.sonar.core.test.Test.TestArray parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.sonar.core.test.Test.ArrayFieldMsg parseFrom( + public static org.sonar.core.test.Test.TestArray parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.sonar.core.test.Test.ArrayFieldMsg parseFrom(java.io.InputStream input) + public static org.sonar.core.test.Test.TestArray parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } - public static org.sonar.core.test.Test.ArrayFieldMsg parseFrom( + public static org.sonar.core.test.Test.TestArray parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } - public static org.sonar.core.test.Test.ArrayFieldMsg parseDelimitedFrom(java.io.InputStream input) + public static org.sonar.core.test.Test.TestArray parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } - public static org.sonar.core.test.Test.ArrayFieldMsg parseDelimitedFrom( + public static org.sonar.core.test.Test.TestArray parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } - public static org.sonar.core.test.Test.ArrayFieldMsg parseFrom( + public static org.sonar.core.test.Test.TestArray parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } - public static org.sonar.core.test.Test.ArrayFieldMsg parseFrom( + public static org.sonar.core.test.Test.TestArray parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -2231,7 +2100,7 @@ public final class Test { public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(org.sonar.core.test.Test.ArrayFieldMsg prototype) { + public static Builder newBuilder(org.sonar.core.test.Test.TestArray prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { @@ -2246,25 +2115,25 @@ public final class Test { return builder; } /** - * Protobuf type {@code ArrayFieldMsg} + * Protobuf type {@code TestArray} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:ArrayFieldMsg) - org.sonar.core.test.Test.ArrayFieldMsgOrBuilder { + // @@protoc_insertion_point(builder_implements:TestArray) + org.sonar.core.test.Test.TestArrayOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.sonar.core.test.Test.internal_static_ArrayFieldMsg_descriptor; + return org.sonar.core.test.Test.internal_static_TestArray_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.sonar.core.test.Test.internal_static_ArrayFieldMsg_fieldAccessorTable + return org.sonar.core.test.Test.internal_static_TestArray_fieldAccessorTable .ensureFieldAccessorsInitialized( - org.sonar.core.test.Test.ArrayFieldMsg.class, org.sonar.core.test.Test.ArrayFieldMsg.Builder.class); + org.sonar.core.test.Test.TestArray.class, org.sonar.core.test.Test.TestArray.Builder.class); } - // Construct using org.sonar.core.test.Test.ArrayFieldMsg.newBuilder() + // Construct using org.sonar.core.test.Test.TestArray.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -2289,34 +2158,29 @@ public final class Test { } else { nestedsBuilder_.clear(); } - nullableArrayPresentIfEmpty_ = false; - bitField0_ = (bitField0_ & ~0x00000004); - nullableArray_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000008); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.sonar.core.test.Test.internal_static_ArrayFieldMsg_descriptor; + return org.sonar.core.test.Test.internal_static_TestArray_descriptor; } - public org.sonar.core.test.Test.ArrayFieldMsg getDefaultInstanceForType() { - return org.sonar.core.test.Test.ArrayFieldMsg.getDefaultInstance(); + public org.sonar.core.test.Test.TestArray getDefaultInstanceForType() { + return org.sonar.core.test.Test.TestArray.getDefaultInstance(); } - public org.sonar.core.test.Test.ArrayFieldMsg build() { - org.sonar.core.test.Test.ArrayFieldMsg result = buildPartial(); + public org.sonar.core.test.Test.TestArray build() { + org.sonar.core.test.Test.TestArray result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } - public org.sonar.core.test.Test.ArrayFieldMsg buildPartial() { - org.sonar.core.test.Test.ArrayFieldMsg result = new org.sonar.core.test.Test.ArrayFieldMsg(this); + public org.sonar.core.test.Test.TestArray buildPartial() { + org.sonar.core.test.Test.TestArray result = new org.sonar.core.test.Test.TestArray(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { strings_ = strings_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); @@ -2331,31 +2195,21 @@ public final class Test { } else { result.nesteds_ = nestedsBuilder_.build(); } - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000001; - } - result.nullableArrayPresentIfEmpty_ = nullableArrayPresentIfEmpty_; - if (((bitField0_ & 0x00000008) == 0x00000008)) { - nullableArray_ = nullableArray_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.nullableArray_ = nullableArray_; - result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonar.core.test.Test.ArrayFieldMsg) { - return mergeFrom((org.sonar.core.test.Test.ArrayFieldMsg)other); + if (other instanceof org.sonar.core.test.Test.TestArray) { + return mergeFrom((org.sonar.core.test.Test.TestArray)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(org.sonar.core.test.Test.ArrayFieldMsg other) { - if (other == org.sonar.core.test.Test.ArrayFieldMsg.getDefaultInstance()) return this; + public Builder mergeFrom(org.sonar.core.test.Test.TestArray other) { + if (other == org.sonar.core.test.Test.TestArray.getDefaultInstance()) return this; if (!other.strings_.isEmpty()) { if (strings_.isEmpty()) { strings_ = other.strings_; @@ -2392,19 +2246,6 @@ public final class Test { } } } - if (other.hasNullableArrayPresentIfEmpty()) { - setNullableArrayPresentIfEmpty(other.getNullableArrayPresentIfEmpty()); - } - if (!other.nullableArray_.isEmpty()) { - if (nullableArray_.isEmpty()) { - nullableArray_ = other.nullableArray_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureNullableArrayIsMutable(); - nullableArray_.addAll(other.nullableArray_); - } - onChanged(); - } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -2418,11 +2259,11 @@ public final class Test { com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - org.sonar.core.test.Test.ArrayFieldMsg parsedMessage = null; + org.sonar.core.test.Test.TestArray parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonar.core.test.Test.ArrayFieldMsg) e.getUnfinishedMessage(); + parsedMessage = (org.sonar.core.test.Test.TestArray) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { @@ -2766,172 +2607,27 @@ public final class Test { return nestedsBuilder_; } - private boolean nullableArrayPresentIfEmpty_ ; - /** - * optional bool nullableArrayPresentIfEmpty = 3; - * - *
-       * naming convention. A boolean field is used
-       * to know if the repeated field is present.
-       * 
- */ - public boolean hasNullableArrayPresentIfEmpty() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional bool nullableArrayPresentIfEmpty = 3; - * - *
-       * naming convention. A boolean field is used
-       * to know if the repeated field is present.
-       * 
- */ - public boolean getNullableArrayPresentIfEmpty() { - return nullableArrayPresentIfEmpty_; - } - /** - * optional bool nullableArrayPresentIfEmpty = 3; - * - *
-       * naming convention. A boolean field is used
-       * to know if the repeated field is present.
-       * 
- */ - public Builder setNullableArrayPresentIfEmpty(boolean value) { - bitField0_ |= 0x00000004; - nullableArrayPresentIfEmpty_ = value; - onChanged(); - return this; - } - /** - * optional bool nullableArrayPresentIfEmpty = 3; - * - *
-       * naming convention. A boolean field is used
-       * to know if the repeated field is present.
-       * 
- */ - public Builder clearNullableArrayPresentIfEmpty() { - bitField0_ = (bitField0_ & ~0x00000004); - nullableArrayPresentIfEmpty_ = false; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList nullableArray_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureNullableArrayIsMutable() { - if (!((bitField0_ & 0x00000008) == 0x00000008)) { - nullableArray_ = new com.google.protobuf.LazyStringArrayList(nullableArray_); - bitField0_ |= 0x00000008; - } - } - /** - * repeated string nullableArray = 4; - */ - public com.google.protobuf.ProtocolStringList - getNullableArrayList() { - return nullableArray_.getUnmodifiableView(); - } - /** - * repeated string nullableArray = 4; - */ - public int getNullableArrayCount() { - return nullableArray_.size(); - } - /** - * repeated string nullableArray = 4; - */ - public java.lang.String getNullableArray(int index) { - return nullableArray_.get(index); - } - /** - * repeated string nullableArray = 4; - */ - public com.google.protobuf.ByteString - getNullableArrayBytes(int index) { - return nullableArray_.getByteString(index); - } - /** - * repeated string nullableArray = 4; - */ - public Builder setNullableArray( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureNullableArrayIsMutable(); - nullableArray_.set(index, value); - onChanged(); - return this; - } - /** - * repeated string nullableArray = 4; - */ - public Builder addNullableArray( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureNullableArrayIsMutable(); - nullableArray_.add(value); - onChanged(); - return this; - } - /** - * repeated string nullableArray = 4; - */ - public Builder addAllNullableArray( - java.lang.Iterable values) { - ensureNullableArrayIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, nullableArray_); - onChanged(); - return this; - } - /** - * repeated string nullableArray = 4; - */ - public Builder clearNullableArray() { - nullableArray_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - /** - * repeated string nullableArray = 4; - */ - public Builder addNullableArrayBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureNullableArrayIsMutable(); - nullableArray_.add(value); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:ArrayFieldMsg) + // @@protoc_insertion_point(builder_scope:TestArray) } - // @@protoc_insertion_point(class_scope:ArrayFieldMsg) - private static final org.sonar.core.test.Test.ArrayFieldMsg DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:TestArray) + private static final org.sonar.core.test.Test.TestArray DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new org.sonar.core.test.Test.ArrayFieldMsg(); + DEFAULT_INSTANCE = new org.sonar.core.test.Test.TestArray(); } - public static org.sonar.core.test.Test.ArrayFieldMsg getDefaultInstance() { + public static org.sonar.core.test.Test.TestArray getDefaultInstance() { return DEFAULT_INSTANCE; } - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public ArrayFieldMsg parsePartialFrom( + public static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public TestArray parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { try { - return new ArrayFieldMsg(input, extensionRegistry); + return new TestArray(input, extensionRegistry); } catch (RuntimeException e) { if (e.getCause() instanceof com.google.protobuf.InvalidProtocolBufferException) { @@ -2944,11 +2640,11 @@ public final class Test { }; @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } - public org.sonar.core.test.Test.ArrayFieldMsg getDefaultInstanceForType() { + public org.sonar.core.test.Test.TestArray getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -3426,8 +3122,8 @@ public final class Test { } - public interface MapMsgOrBuilder extends - // @@protoc_insertion_point(interface_extends:MapMsg) + public interface TestMapOrBuilder extends + // @@protoc_insertion_point(interface_extends:TestMap) com.google.protobuf.MessageOrBuilder { /** @@ -3441,35 +3137,19 @@ public final class Test { */ java.util.Map getNestedMap(); - - /** - * optional bool nullableStringMapPresentIfEmpty = 3; - */ - boolean hasNullableStringMapPresentIfEmpty(); - /** - * optional bool nullableStringMapPresentIfEmpty = 3; - */ - boolean getNullableStringMapPresentIfEmpty(); - - /** - * map<string, string> nullableStringMap = 4; - */ - java.util.Map - getNullableStringMap(); } /** - * Protobuf type {@code MapMsg} + * Protobuf type {@code TestMap} */ - public static final class MapMsg extends + public static final class TestMap extends com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:MapMsg) - MapMsgOrBuilder { - // Use MapMsg.newBuilder() to construct. - private MapMsg(com.google.protobuf.GeneratedMessage.Builder builder) { + // @@protoc_insertion_point(message_implements:TestMap) + TestMapOrBuilder { + // Use TestMap.newBuilder() to construct. + private TestMap(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } - private MapMsg() { - nullableStringMapPresentIfEmpty_ = false; + private TestMap() { } @java.lang.Override @@ -3477,7 +3157,7 @@ public final class Test { getUnknownFields() { return this.unknownFields; } - private MapMsg( + private TestMap( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) { this(); @@ -3523,23 +3203,6 @@ public final class Test { nestedMap_.getMutableMap().put(nestedMap.getKey(), nestedMap.getValue()); break; } - case 24: { - bitField0_ |= 0x00000001; - nullableStringMapPresentIfEmpty_ = input.readBool(); - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { - nullableStringMap_ = com.google.protobuf.MapField.newMapField( - NullableStringMapDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000008; - } - com.google.protobuf.MapEntry - nullableStringMap = input.readMessage( - NullableStringMapDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - nullableStringMap_.getMutableMap().put(nullableStringMap.getKey(), nullableStringMap.getValue()); - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -3555,7 +3218,7 @@ public final class Test { } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.sonar.core.test.Test.internal_static_MapMsg_descriptor; + return org.sonar.core.test.Test.internal_static_TestMap_descriptor; } @SuppressWarnings({"rawtypes"}) @@ -3566,8 +3229,6 @@ public final class Test { return internalGetStringMap(); case 2: return internalGetNestedMap(); - case 4: - return internalGetNullableStringMap(); default: throw new RuntimeException( "Invalid map field number: " + number); @@ -3575,19 +3236,18 @@ public final class Test { } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.sonar.core.test.Test.internal_static_MapMsg_fieldAccessorTable + return org.sonar.core.test.Test.internal_static_TestMap_fieldAccessorTable .ensureFieldAccessorsInitialized( - org.sonar.core.test.Test.MapMsg.class, org.sonar.core.test.Test.MapMsg.Builder.class); + org.sonar.core.test.Test.TestMap.class, org.sonar.core.test.Test.TestMap.Builder.class); } - private int bitField0_; public static final int STRINGMAP_FIELD_NUMBER = 1; private static final class StringMapDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, java.lang.String> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( - org.sonar.core.test.Test.internal_static_MapMsg_StringMapEntry_descriptor, + org.sonar.core.test.Test.internal_static_TestMap_StringMapEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, @@ -3617,7 +3277,7 @@ public final class Test { java.lang.String, org.sonar.core.test.Test.NestedMsg> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( - org.sonar.core.test.Test.internal_static_MapMsg_NestedMapEntry_descriptor, + org.sonar.core.test.Test.internal_static_TestMap_NestedMapEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, @@ -3641,51 +3301,6 @@ public final class Test { return internalGetNestedMap().getMap(); } - public static final int NULLABLESTRINGMAPPRESENTIFEMPTY_FIELD_NUMBER = 3; - private boolean nullableStringMapPresentIfEmpty_; - /** - * optional bool nullableStringMapPresentIfEmpty = 3; - */ - public boolean hasNullableStringMapPresentIfEmpty() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional bool nullableStringMapPresentIfEmpty = 3; - */ - public boolean getNullableStringMapPresentIfEmpty() { - return nullableStringMapPresentIfEmpty_; - } - - public static final int NULLABLESTRINGMAP_FIELD_NUMBER = 4; - private static final class NullableStringMapDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - org.sonar.core.test.Test.internal_static_MapMsg_NullableStringMapEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> nullableStringMap_; - private com.google.protobuf.MapField - internalGetNullableStringMap() { - if (nullableStringMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - NullableStringMapDefaultEntryHolder.defaultEntry); - } - return nullableStringMap_; - } - /** - * map<string, string> nullableStringMap = 4; - */ - - public java.util.Map getNullableStringMap() { - return internalGetNullableStringMap().getMap(); - } - private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3716,18 +3331,6 @@ public final class Test { .build(); output.writeMessage(2, nestedMap); } - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBool(3, nullableStringMapPresentIfEmpty_); - } - for (java.util.Map.Entry entry - : internalGetNullableStringMap().getMap().entrySet()) { - com.google.protobuf.MapEntry - nullableStringMap = NullableStringMapDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - output.writeMessage(4, nullableStringMap); - } unknownFields.writeTo(output); } @@ -3757,73 +3360,59 @@ public final class Test { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, nestedMap); } - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, nullableStringMapPresentIfEmpty_); - } - for (java.util.Map.Entry entry - : internalGetNullableStringMap().getMap().entrySet()) { - com.google.protobuf.MapEntry - nullableStringMap = NullableStringMapDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, nullableStringMap); - } size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; - public static org.sonar.core.test.Test.MapMsg parseFrom( + public static org.sonar.core.test.Test.TestMap parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.sonar.core.test.Test.MapMsg parseFrom( + public static org.sonar.core.test.Test.TestMap parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.sonar.core.test.Test.MapMsg parseFrom(byte[] data) + public static org.sonar.core.test.Test.TestMap parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.sonar.core.test.Test.MapMsg parseFrom( + public static org.sonar.core.test.Test.TestMap parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.sonar.core.test.Test.MapMsg parseFrom(java.io.InputStream input) + public static org.sonar.core.test.Test.TestMap parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } - public static org.sonar.core.test.Test.MapMsg parseFrom( + public static org.sonar.core.test.Test.TestMap parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } - public static org.sonar.core.test.Test.MapMsg parseDelimitedFrom(java.io.InputStream input) + public static org.sonar.core.test.Test.TestMap parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } - public static org.sonar.core.test.Test.MapMsg parseDelimitedFrom( + public static org.sonar.core.test.Test.TestMap parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } - public static org.sonar.core.test.Test.MapMsg parseFrom( + public static org.sonar.core.test.Test.TestMap parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } - public static org.sonar.core.test.Test.MapMsg parseFrom( + public static org.sonar.core.test.Test.TestMap parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -3834,7 +3423,7 @@ public final class Test { public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(org.sonar.core.test.Test.MapMsg prototype) { + public static Builder newBuilder(org.sonar.core.test.Test.TestMap prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { @@ -3849,15 +3438,15 @@ public final class Test { return builder; } /** - * Protobuf type {@code MapMsg} + * Protobuf type {@code TestMap} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:MapMsg) - org.sonar.core.test.Test.MapMsgOrBuilder { + // @@protoc_insertion_point(builder_implements:TestMap) + org.sonar.core.test.Test.TestMapOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.sonar.core.test.Test.internal_static_MapMsg_descriptor; + return org.sonar.core.test.Test.internal_static_TestMap_descriptor; } @SuppressWarnings({"rawtypes"}) @@ -3868,8 +3457,6 @@ public final class Test { return internalGetStringMap(); case 2: return internalGetNestedMap(); - case 4: - return internalGetNullableStringMap(); default: throw new RuntimeException( "Invalid map field number: " + number); @@ -3883,8 +3470,6 @@ public final class Test { return internalGetMutableStringMap(); case 2: return internalGetMutableNestedMap(); - case 4: - return internalGetMutableNullableStringMap(); default: throw new RuntimeException( "Invalid map field number: " + number); @@ -3892,12 +3477,12 @@ public final class Test { } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.sonar.core.test.Test.internal_static_MapMsg_fieldAccessorTable + return org.sonar.core.test.Test.internal_static_TestMap_fieldAccessorTable .ensureFieldAccessorsInitialized( - org.sonar.core.test.Test.MapMsg.class, org.sonar.core.test.Test.MapMsg.Builder.class); + org.sonar.core.test.Test.TestMap.class, org.sonar.core.test.Test.TestMap.Builder.class); } - // Construct using org.sonar.core.test.Test.MapMsg.newBuilder() + // Construct using org.sonar.core.test.Test.TestMap.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -3915,68 +3500,52 @@ public final class Test { super.clear(); internalGetMutableStringMap().clear(); internalGetMutableNestedMap().clear(); - nullableStringMapPresentIfEmpty_ = false; - bitField0_ = (bitField0_ & ~0x00000004); - internalGetMutableNullableStringMap().clear(); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.sonar.core.test.Test.internal_static_MapMsg_descriptor; + return org.sonar.core.test.Test.internal_static_TestMap_descriptor; } - public org.sonar.core.test.Test.MapMsg getDefaultInstanceForType() { - return org.sonar.core.test.Test.MapMsg.getDefaultInstance(); + public org.sonar.core.test.Test.TestMap getDefaultInstanceForType() { + return org.sonar.core.test.Test.TestMap.getDefaultInstance(); } - public org.sonar.core.test.Test.MapMsg build() { - org.sonar.core.test.Test.MapMsg result = buildPartial(); + public org.sonar.core.test.Test.TestMap build() { + org.sonar.core.test.Test.TestMap result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } - public org.sonar.core.test.Test.MapMsg buildPartial() { - org.sonar.core.test.Test.MapMsg result = new org.sonar.core.test.Test.MapMsg(this); + public org.sonar.core.test.Test.TestMap buildPartial() { + org.sonar.core.test.Test.TestMap result = new org.sonar.core.test.Test.TestMap(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; result.stringMap_ = internalGetStringMap(); result.stringMap_.makeImmutable(); result.nestedMap_ = internalGetNestedMap(); result.nestedMap_.makeImmutable(); - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000001; - } - result.nullableStringMapPresentIfEmpty_ = nullableStringMapPresentIfEmpty_; - result.nullableStringMap_ = internalGetNullableStringMap(); - result.nullableStringMap_.makeImmutable(); - result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonar.core.test.Test.MapMsg) { - return mergeFrom((org.sonar.core.test.Test.MapMsg)other); + if (other instanceof org.sonar.core.test.Test.TestMap) { + return mergeFrom((org.sonar.core.test.Test.TestMap)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(org.sonar.core.test.Test.MapMsg other) { - if (other == org.sonar.core.test.Test.MapMsg.getDefaultInstance()) return this; + public Builder mergeFrom(org.sonar.core.test.Test.TestMap other) { + if (other == org.sonar.core.test.Test.TestMap.getDefaultInstance()) return this; internalGetMutableStringMap().mergeFrom( other.internalGetStringMap()); internalGetMutableNestedMap().mergeFrom( other.internalGetNestedMap()); - if (other.hasNullableStringMapPresentIfEmpty()) { - setNullableStringMapPresentIfEmpty(other.getNullableStringMapPresentIfEmpty()); - } - internalGetMutableNullableStringMap().mergeFrom( - other.internalGetNullableStringMap()); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -3990,11 +3559,11 @@ public final class Test { com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - org.sonar.core.test.Test.MapMsg parsedMessage = null; + org.sonar.core.test.Test.TestMap parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonar.core.test.Test.MapMsg) e.getUnfinishedMessage(); + parsedMessage = (org.sonar.core.test.Test.TestMap) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { @@ -4077,95 +3646,4163 @@ public final class Test { return internalGetMutableNestedMap().getMutableMap(); } - private boolean nullableStringMapPresentIfEmpty_ ; - /** - * optional bool nullableStringMapPresentIfEmpty = 3; - */ - public boolean hasNullableStringMapPresentIfEmpty() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional bool nullableStringMapPresentIfEmpty = 3; - */ - public boolean getNullableStringMapPresentIfEmpty() { - return nullableStringMapPresentIfEmpty_; - } - /** - * optional bool nullableStringMapPresentIfEmpty = 3; - */ - public Builder setNullableStringMapPresentIfEmpty(boolean value) { - bitField0_ |= 0x00000004; - nullableStringMapPresentIfEmpty_ = value; - onChanged(); + // @@protoc_insertion_point(builder_scope:TestMap) + } + + // @@protoc_insertion_point(class_scope:TestMap) + private static final org.sonar.core.test.Test.TestMap DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.sonar.core.test.Test.TestMap(); + } + + public static org.sonar.core.test.Test.TestMap getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + public static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public TestMap parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + try { + return new TestMap(input, extensionRegistry); + } catch (RuntimeException e) { + if (e.getCause() instanceof + com.google.protobuf.InvalidProtocolBufferException) { + throw (com.google.protobuf.InvalidProtocolBufferException) + e.getCause(); + } + throw e; + } + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public org.sonar.core.test.Test.TestMap getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TestNullableArrayOrBuilder extends + // @@protoc_insertion_point(interface_extends:TestNullableArray) + com.google.protobuf.MessageOrBuilder { + + /** + * optional string label = 1; + */ + boolean hasLabel(); + /** + * optional string label = 1; + */ + java.lang.String getLabel(); + /** + * optional string label = 1; + */ + com.google.protobuf.ByteString + getLabelBytes(); + + /** + * optional .Countries countries = 2; + * + *
+     * allow to make the difference between null and empty array
+     * 
+ */ + boolean hasCountries(); + /** + * optional .Countries countries = 2; + * + *
+     * allow to make the difference between null and empty array
+     * 
+ */ + org.sonar.core.test.Test.Countries getCountries(); + /** + * optional .Countries countries = 2; + * + *
+     * allow to make the difference between null and empty array
+     * 
+ */ + org.sonar.core.test.Test.CountriesOrBuilder getCountriesOrBuilder(); + } + /** + * Protobuf type {@code TestNullableArray} + */ + public static final class TestNullableArray extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:TestNullableArray) + TestNullableArrayOrBuilder { + // Use TestNullableArray.newBuilder() to construct. + private TestNullableArray(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private TestNullableArray() { + label_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TestNullableArray( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) { + this(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000001; + label_ = bs; + break; + } + case 18: { + org.sonar.core.test.Test.Countries.Builder subBuilder = null; + if (((bitField0_ & 0x00000002) == 0x00000002)) { + subBuilder = countries_.toBuilder(); + } + countries_ = input.readMessage(org.sonar.core.test.Test.Countries.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(countries_); + countries_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000002; + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw new RuntimeException(e.setUnfinishedMessage(this)); + } catch (java.io.IOException e) { + throw new RuntimeException( + new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this)); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.sonar.core.test.Test.internal_static_TestNullableArray_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.sonar.core.test.Test.internal_static_TestNullableArray_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.sonar.core.test.Test.TestNullableArray.class, org.sonar.core.test.Test.TestNullableArray.Builder.class); + } + + private int bitField0_; + public static final int LABEL_FIELD_NUMBER = 1; + private volatile java.lang.Object label_; + /** + * optional string label = 1; + */ + public boolean hasLabel() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional string label = 1; + */ + public java.lang.String getLabel() { + java.lang.Object ref = label_; + 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()) { + label_ = s; + } + return s; + } + } + /** + * optional string label = 1; + */ + public com.google.protobuf.ByteString + getLabelBytes() { + java.lang.Object ref = label_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + label_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int COUNTRIES_FIELD_NUMBER = 2; + private org.sonar.core.test.Test.Countries countries_; + /** + * optional .Countries countries = 2; + * + *
+     * allow to make the difference between null and empty array
+     * 
+ */ + public boolean hasCountries() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional .Countries countries = 2; + * + *
+     * allow to make the difference between null and empty array
+     * 
+ */ + public org.sonar.core.test.Test.Countries getCountries() { + return countries_ == null ? org.sonar.core.test.Test.Countries.getDefaultInstance() : countries_; + } + /** + * optional .Countries countries = 2; + * + *
+     * allow to make the difference between null and empty array
+     * 
+ */ + public org.sonar.core.test.Test.CountriesOrBuilder getCountriesOrBuilder() { + return countries_ == null ? org.sonar.core.test.Test.Countries.getDefaultInstance() : countries_; + } + + 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 { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeBytes(1, getLabelBytes()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeMessage(2, getCountries()); + } + unknownFields.writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, getLabelBytes()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getCountries()); + } + size += unknownFields.getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + public static org.sonar.core.test.Test.TestNullableArray parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.sonar.core.test.Test.TestNullableArray parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.sonar.core.test.Test.TestNullableArray parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.sonar.core.test.Test.TestNullableArray parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.sonar.core.test.Test.TestNullableArray parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.sonar.core.test.Test.TestNullableArray parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static org.sonar.core.test.Test.TestNullableArray parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static org.sonar.core.test.Test.TestNullableArray parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static org.sonar.core.test.Test.TestNullableArray parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.sonar.core.test.Test.TestNullableArray parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.sonar.core.test.Test.TestNullableArray prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code TestNullableArray} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:TestNullableArray) + org.sonar.core.test.Test.TestNullableArrayOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.sonar.core.test.Test.internal_static_TestNullableArray_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.sonar.core.test.Test.internal_static_TestNullableArray_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.sonar.core.test.Test.TestNullableArray.class, org.sonar.core.test.Test.TestNullableArray.Builder.class); + } + + // Construct using org.sonar.core.test.Test.TestNullableArray.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + getCountriesFieldBuilder(); + } + } + public Builder clear() { + super.clear(); + label_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + if (countriesBuilder_ == null) { + countries_ = null; + } else { + countriesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.sonar.core.test.Test.internal_static_TestNullableArray_descriptor; + } + + public org.sonar.core.test.Test.TestNullableArray getDefaultInstanceForType() { + return org.sonar.core.test.Test.TestNullableArray.getDefaultInstance(); + } + + public org.sonar.core.test.Test.TestNullableArray build() { + org.sonar.core.test.Test.TestNullableArray result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.sonar.core.test.Test.TestNullableArray buildPartial() { + org.sonar.core.test.Test.TestNullableArray result = new org.sonar.core.test.Test.TestNullableArray(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.label_ = label_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + if (countriesBuilder_ == null) { + result.countries_ = countries_; + } else { + result.countries_ = countriesBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.sonar.core.test.Test.TestNullableArray) { + return mergeFrom((org.sonar.core.test.Test.TestNullableArray)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.sonar.core.test.Test.TestNullableArray other) { + if (other == org.sonar.core.test.Test.TestNullableArray.getDefaultInstance()) return this; + if (other.hasLabel()) { + bitField0_ |= 0x00000001; + label_ = other.label_; + onChanged(); + } + if (other.hasCountries()) { + mergeCountries(other.getCountries()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.sonar.core.test.Test.TestNullableArray parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.sonar.core.test.Test.TestNullableArray) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object label_ = ""; + /** + * optional string label = 1; + */ + public boolean hasLabel() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional string label = 1; + */ + public java.lang.String getLabel() { + java.lang.Object ref = label_; + 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()) { + label_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string label = 1; + */ + public com.google.protobuf.ByteString + getLabelBytes() { + java.lang.Object ref = label_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + label_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string label = 1; + */ + public Builder setLabel( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + label_ = value; + onChanged(); + return this; + } + /** + * optional string label = 1; + */ + public Builder clearLabel() { + bitField0_ = (bitField0_ & ~0x00000001); + label_ = getDefaultInstance().getLabel(); + onChanged(); + return this; + } + /** + * optional string label = 1; + */ + public Builder setLabelBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + label_ = value; + onChanged(); + return this; + } + + private org.sonar.core.test.Test.Countries countries_ = null; + private com.google.protobuf.SingleFieldBuilder< + org.sonar.core.test.Test.Countries, org.sonar.core.test.Test.Countries.Builder, org.sonar.core.test.Test.CountriesOrBuilder> countriesBuilder_; + /** + * optional .Countries countries = 2; + * + *
+       * allow to make the difference between null and empty array
+       * 
+ */ + public boolean hasCountries() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional .Countries countries = 2; + * + *
+       * allow to make the difference between null and empty array
+       * 
+ */ + public org.sonar.core.test.Test.Countries getCountries() { + if (countriesBuilder_ == null) { + return countries_ == null ? org.sonar.core.test.Test.Countries.getDefaultInstance() : countries_; + } else { + return countriesBuilder_.getMessage(); + } + } + /** + * optional .Countries countries = 2; + * + *
+       * allow to make the difference between null and empty array
+       * 
+ */ + public Builder setCountries(org.sonar.core.test.Test.Countries value) { + if (countriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + countries_ = value; + onChanged(); + } else { + countriesBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + return this; + } + /** + * optional .Countries countries = 2; + * + *
+       * allow to make the difference between null and empty array
+       * 
+ */ + public Builder setCountries( + org.sonar.core.test.Test.Countries.Builder builderForValue) { + if (countriesBuilder_ == null) { + countries_ = builderForValue.build(); + onChanged(); + } else { + countriesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + return this; + } + /** + * optional .Countries countries = 2; + * + *
+       * allow to make the difference between null and empty array
+       * 
+ */ + public Builder mergeCountries(org.sonar.core.test.Test.Countries value) { + if (countriesBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002) && + countries_ != null && + countries_ != org.sonar.core.test.Test.Countries.getDefaultInstance()) { + countries_ = + org.sonar.core.test.Test.Countries.newBuilder(countries_).mergeFrom(value).buildPartial(); + } else { + countries_ = value; + } + onChanged(); + } else { + countriesBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + return this; + } + /** + * optional .Countries countries = 2; + * + *
+       * allow to make the difference between null and empty array
+       * 
+ */ + public Builder clearCountries() { + if (countriesBuilder_ == null) { + countries_ = null; + onChanged(); + } else { + countriesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + /** + * optional .Countries countries = 2; + * + *
+       * allow to make the difference between null and empty array
+       * 
+ */ + public org.sonar.core.test.Test.Countries.Builder getCountriesBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getCountriesFieldBuilder().getBuilder(); + } + /** + * optional .Countries countries = 2; + * + *
+       * allow to make the difference between null and empty array
+       * 
+ */ + public org.sonar.core.test.Test.CountriesOrBuilder getCountriesOrBuilder() { + if (countriesBuilder_ != null) { + return countriesBuilder_.getMessageOrBuilder(); + } else { + return countries_ == null ? + org.sonar.core.test.Test.Countries.getDefaultInstance() : countries_; + } + } + /** + * optional .Countries countries = 2; + * + *
+       * allow to make the difference between null and empty array
+       * 
+ */ + private com.google.protobuf.SingleFieldBuilder< + org.sonar.core.test.Test.Countries, org.sonar.core.test.Test.Countries.Builder, org.sonar.core.test.Test.CountriesOrBuilder> + getCountriesFieldBuilder() { + if (countriesBuilder_ == null) { + countriesBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.sonar.core.test.Test.Countries, org.sonar.core.test.Test.Countries.Builder, org.sonar.core.test.Test.CountriesOrBuilder>( + getCountries(), + getParentForChildren(), + isClean()); + countries_ = null; + } + return countriesBuilder_; + } + + // @@protoc_insertion_point(builder_scope:TestNullableArray) + } + + // @@protoc_insertion_point(class_scope:TestNullableArray) + private static final org.sonar.core.test.Test.TestNullableArray DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.sonar.core.test.Test.TestNullableArray(); + } + + public static org.sonar.core.test.Test.TestNullableArray getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + public static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public TestNullableArray parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + try { + return new TestNullableArray(input, extensionRegistry); + } catch (RuntimeException e) { + if (e.getCause() instanceof + com.google.protobuf.InvalidProtocolBufferException) { + throw (com.google.protobuf.InvalidProtocolBufferException) + e.getCause(); + } + throw e; + } + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public org.sonar.core.test.Test.TestNullableArray getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TestNullableMapOrBuilder extends + // @@protoc_insertion_point(interface_extends:TestNullableMap) + com.google.protobuf.MessageOrBuilder { + + /** + * optional string label = 1; + */ + boolean hasLabel(); + /** + * optional string label = 1; + */ + java.lang.String getLabel(); + /** + * optional string label = 1; + */ + com.google.protobuf.ByteString + getLabelBytes(); + + /** + * optional .Translations translations = 2; + * + *
+     * allow to make the difference between null and empty map
+     * 
+ */ + boolean hasTranslations(); + /** + * optional .Translations translations = 2; + * + *
+     * allow to make the difference between null and empty map
+     * 
+ */ + org.sonar.core.test.Test.Translations getTranslations(); + /** + * optional .Translations translations = 2; + * + *
+     * allow to make the difference between null and empty map
+     * 
+ */ + org.sonar.core.test.Test.TranslationsOrBuilder getTranslationsOrBuilder(); + } + /** + * Protobuf type {@code TestNullableMap} + */ + public static final class TestNullableMap extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:TestNullableMap) + TestNullableMapOrBuilder { + // Use TestNullableMap.newBuilder() to construct. + private TestNullableMap(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private TestNullableMap() { + label_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TestNullableMap( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) { + this(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000001; + label_ = bs; + break; + } + case 18: { + org.sonar.core.test.Test.Translations.Builder subBuilder = null; + if (((bitField0_ & 0x00000002) == 0x00000002)) { + subBuilder = translations_.toBuilder(); + } + translations_ = input.readMessage(org.sonar.core.test.Test.Translations.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(translations_); + translations_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000002; + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw new RuntimeException(e.setUnfinishedMessage(this)); + } catch (java.io.IOException e) { + throw new RuntimeException( + new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this)); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.sonar.core.test.Test.internal_static_TestNullableMap_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.sonar.core.test.Test.internal_static_TestNullableMap_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.sonar.core.test.Test.TestNullableMap.class, org.sonar.core.test.Test.TestNullableMap.Builder.class); + } + + private int bitField0_; + public static final int LABEL_FIELD_NUMBER = 1; + private volatile java.lang.Object label_; + /** + * optional string label = 1; + */ + public boolean hasLabel() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional string label = 1; + */ + public java.lang.String getLabel() { + java.lang.Object ref = label_; + 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()) { + label_ = s; + } + return s; + } + } + /** + * optional string label = 1; + */ + public com.google.protobuf.ByteString + getLabelBytes() { + java.lang.Object ref = label_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + label_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TRANSLATIONS_FIELD_NUMBER = 2; + private org.sonar.core.test.Test.Translations translations_; + /** + * optional .Translations translations = 2; + * + *
+     * allow to make the difference between null and empty map
+     * 
+ */ + public boolean hasTranslations() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional .Translations translations = 2; + * + *
+     * allow to make the difference between null and empty map
+     * 
+ */ + public org.sonar.core.test.Test.Translations getTranslations() { + return translations_ == null ? org.sonar.core.test.Test.Translations.getDefaultInstance() : translations_; + } + /** + * optional .Translations translations = 2; + * + *
+     * allow to make the difference between null and empty map
+     * 
+ */ + public org.sonar.core.test.Test.TranslationsOrBuilder getTranslationsOrBuilder() { + return translations_ == null ? org.sonar.core.test.Test.Translations.getDefaultInstance() : translations_; + } + + 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 { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeBytes(1, getLabelBytes()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeMessage(2, getTranslations()); + } + unknownFields.writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, getLabelBytes()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getTranslations()); + } + size += unknownFields.getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + public static org.sonar.core.test.Test.TestNullableMap parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.sonar.core.test.Test.TestNullableMap parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.sonar.core.test.Test.TestNullableMap parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.sonar.core.test.Test.TestNullableMap parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.sonar.core.test.Test.TestNullableMap parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.sonar.core.test.Test.TestNullableMap parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static org.sonar.core.test.Test.TestNullableMap parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static org.sonar.core.test.Test.TestNullableMap parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static org.sonar.core.test.Test.TestNullableMap parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.sonar.core.test.Test.TestNullableMap parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.sonar.core.test.Test.TestNullableMap prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code TestNullableMap} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:TestNullableMap) + org.sonar.core.test.Test.TestNullableMapOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.sonar.core.test.Test.internal_static_TestNullableMap_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.sonar.core.test.Test.internal_static_TestNullableMap_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.sonar.core.test.Test.TestNullableMap.class, org.sonar.core.test.Test.TestNullableMap.Builder.class); + } + + // Construct using org.sonar.core.test.Test.TestNullableMap.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + getTranslationsFieldBuilder(); + } + } + public Builder clear() { + super.clear(); + label_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + if (translationsBuilder_ == null) { + translations_ = null; + } else { + translationsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.sonar.core.test.Test.internal_static_TestNullableMap_descriptor; + } + + public org.sonar.core.test.Test.TestNullableMap getDefaultInstanceForType() { + return org.sonar.core.test.Test.TestNullableMap.getDefaultInstance(); + } + + public org.sonar.core.test.Test.TestNullableMap build() { + org.sonar.core.test.Test.TestNullableMap result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.sonar.core.test.Test.TestNullableMap buildPartial() { + org.sonar.core.test.Test.TestNullableMap result = new org.sonar.core.test.Test.TestNullableMap(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.label_ = label_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + if (translationsBuilder_ == null) { + result.translations_ = translations_; + } else { + result.translations_ = translationsBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.sonar.core.test.Test.TestNullableMap) { + return mergeFrom((org.sonar.core.test.Test.TestNullableMap)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.sonar.core.test.Test.TestNullableMap other) { + if (other == org.sonar.core.test.Test.TestNullableMap.getDefaultInstance()) return this; + if (other.hasLabel()) { + bitField0_ |= 0x00000001; + label_ = other.label_; + onChanged(); + } + if (other.hasTranslations()) { + mergeTranslations(other.getTranslations()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.sonar.core.test.Test.TestNullableMap parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.sonar.core.test.Test.TestNullableMap) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object label_ = ""; + /** + * optional string label = 1; + */ + public boolean hasLabel() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional string label = 1; + */ + public java.lang.String getLabel() { + java.lang.Object ref = label_; + 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()) { + label_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string label = 1; + */ + public com.google.protobuf.ByteString + getLabelBytes() { + java.lang.Object ref = label_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + label_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string label = 1; + */ + public Builder setLabel( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + label_ = value; + onChanged(); + return this; + } + /** + * optional string label = 1; + */ + public Builder clearLabel() { + bitField0_ = (bitField0_ & ~0x00000001); + label_ = getDefaultInstance().getLabel(); + onChanged(); + return this; + } + /** + * optional string label = 1; + */ + public Builder setLabelBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + label_ = value; + onChanged(); + return this; + } + + private org.sonar.core.test.Test.Translations translations_ = null; + private com.google.protobuf.SingleFieldBuilder< + org.sonar.core.test.Test.Translations, org.sonar.core.test.Test.Translations.Builder, org.sonar.core.test.Test.TranslationsOrBuilder> translationsBuilder_; + /** + * optional .Translations translations = 2; + * + *
+       * allow to make the difference between null and empty map
+       * 
+ */ + public boolean hasTranslations() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional .Translations translations = 2; + * + *
+       * allow to make the difference between null and empty map
+       * 
+ */ + public org.sonar.core.test.Test.Translations getTranslations() { + if (translationsBuilder_ == null) { + return translations_ == null ? org.sonar.core.test.Test.Translations.getDefaultInstance() : translations_; + } else { + return translationsBuilder_.getMessage(); + } + } + /** + * optional .Translations translations = 2; + * + *
+       * allow to make the difference between null and empty map
+       * 
+ */ + public Builder setTranslations(org.sonar.core.test.Test.Translations value) { + if (translationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + translations_ = value; + onChanged(); + } else { + translationsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + return this; + } + /** + * optional .Translations translations = 2; + * + *
+       * allow to make the difference between null and empty map
+       * 
+ */ + public Builder setTranslations( + org.sonar.core.test.Test.Translations.Builder builderForValue) { + if (translationsBuilder_ == null) { + translations_ = builderForValue.build(); + onChanged(); + } else { + translationsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + return this; + } + /** + * optional .Translations translations = 2; + * + *
+       * allow to make the difference between null and empty map
+       * 
+ */ + public Builder mergeTranslations(org.sonar.core.test.Test.Translations value) { + if (translationsBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002) && + translations_ != null && + translations_ != org.sonar.core.test.Test.Translations.getDefaultInstance()) { + translations_ = + org.sonar.core.test.Test.Translations.newBuilder(translations_).mergeFrom(value).buildPartial(); + } else { + translations_ = value; + } + onChanged(); + } else { + translationsBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + return this; + } + /** + * optional .Translations translations = 2; + * + *
+       * allow to make the difference between null and empty map
+       * 
+ */ + public Builder clearTranslations() { + if (translationsBuilder_ == null) { + translations_ = null; + onChanged(); + } else { + translationsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + /** + * optional .Translations translations = 2; + * + *
+       * allow to make the difference between null and empty map
+       * 
+ */ + public org.sonar.core.test.Test.Translations.Builder getTranslationsBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getTranslationsFieldBuilder().getBuilder(); + } + /** + * optional .Translations translations = 2; + * + *
+       * allow to make the difference between null and empty map
+       * 
+ */ + public org.sonar.core.test.Test.TranslationsOrBuilder getTranslationsOrBuilder() { + if (translationsBuilder_ != null) { + return translationsBuilder_.getMessageOrBuilder(); + } else { + return translations_ == null ? + org.sonar.core.test.Test.Translations.getDefaultInstance() : translations_; + } + } + /** + * optional .Translations translations = 2; + * + *
+       * allow to make the difference between null and empty map
+       * 
+ */ + private com.google.protobuf.SingleFieldBuilder< + org.sonar.core.test.Test.Translations, org.sonar.core.test.Test.Translations.Builder, org.sonar.core.test.Test.TranslationsOrBuilder> + getTranslationsFieldBuilder() { + if (translationsBuilder_ == null) { + translationsBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.sonar.core.test.Test.Translations, org.sonar.core.test.Test.Translations.Builder, org.sonar.core.test.Test.TranslationsOrBuilder>( + getTranslations(), + getParentForChildren(), + isClean()); + translations_ = null; + } + return translationsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:TestNullableMap) + } + + // @@protoc_insertion_point(class_scope:TestNullableMap) + private static final org.sonar.core.test.Test.TestNullableMap DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.sonar.core.test.Test.TestNullableMap(); + } + + public static org.sonar.core.test.Test.TestNullableMap getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + public static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public TestNullableMap parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + try { + return new TestNullableMap(input, extensionRegistry); + } catch (RuntimeException e) { + if (e.getCause() instanceof + com.google.protobuf.InvalidProtocolBufferException) { + throw (com.google.protobuf.InvalidProtocolBufferException) + e.getCause(); + } + throw e; + } + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public org.sonar.core.test.Test.TestNullableMap getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TestMapOfArrayOrBuilder extends + // @@protoc_insertion_point(interface_extends:TestMapOfArray) + com.google.protobuf.MessageOrBuilder { + + /** + * map<string, .Countries> moneys = 1; + * + *
+     * allow to have map values of arrays
+     * 
+ */ + java.util.Map + getMoneys(); + } + /** + * Protobuf type {@code TestMapOfArray} + */ + public static final class TestMapOfArray extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:TestMapOfArray) + TestMapOfArrayOrBuilder { + // Use TestMapOfArray.newBuilder() to construct. + private TestMapOfArray(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private TestMapOfArray() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TestMapOfArray( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) { + this(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + moneys_ = com.google.protobuf.MapField.newMapField( + MoneysDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry + moneys = input.readMessage( + MoneysDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + moneys_.getMutableMap().put(moneys.getKey(), moneys.getValue()); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw new RuntimeException(e.setUnfinishedMessage(this)); + } catch (java.io.IOException e) { + throw new RuntimeException( + new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this)); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.sonar.core.test.Test.internal_static_TestMapOfArray_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 1: + return internalGetMoneys(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.sonar.core.test.Test.internal_static_TestMapOfArray_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.sonar.core.test.Test.TestMapOfArray.class, org.sonar.core.test.Test.TestMapOfArray.Builder.class); + } + + public static final int MONEYS_FIELD_NUMBER = 1; + private static final class MoneysDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, org.sonar.core.test.Test.Countries> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + org.sonar.core.test.Test.internal_static_TestMapOfArray_MoneysEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + org.sonar.core.test.Test.Countries.getDefaultInstance()); + } + private com.google.protobuf.MapField< + java.lang.String, org.sonar.core.test.Test.Countries> moneys_; + private com.google.protobuf.MapField + internalGetMoneys() { + if (moneys_ == null) { + return com.google.protobuf.MapField.emptyMapField( + MoneysDefaultEntryHolder.defaultEntry); + } + return moneys_; + } + /** + * map<string, .Countries> moneys = 1; + * + *
+     * allow to have map values of arrays
+     * 
+ */ + + public java.util.Map getMoneys() { + return internalGetMoneys().getMap(); + } + + 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 { + for (java.util.Map.Entry entry + : internalGetMoneys().getMap().entrySet()) { + com.google.protobuf.MapEntry + moneys = MoneysDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + output.writeMessage(1, moneys); + } + unknownFields.writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + for (java.util.Map.Entry entry + : internalGetMoneys().getMap().entrySet()) { + com.google.protobuf.MapEntry + moneys = MoneysDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, moneys); + } + size += unknownFields.getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + public static org.sonar.core.test.Test.TestMapOfArray parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.sonar.core.test.Test.TestMapOfArray parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.sonar.core.test.Test.TestMapOfArray parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.sonar.core.test.Test.TestMapOfArray parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.sonar.core.test.Test.TestMapOfArray parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.sonar.core.test.Test.TestMapOfArray parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static org.sonar.core.test.Test.TestMapOfArray parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static org.sonar.core.test.Test.TestMapOfArray parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static org.sonar.core.test.Test.TestMapOfArray parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.sonar.core.test.Test.TestMapOfArray parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.sonar.core.test.Test.TestMapOfArray prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code TestMapOfArray} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:TestMapOfArray) + org.sonar.core.test.Test.TestMapOfArrayOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.sonar.core.test.Test.internal_static_TestMapOfArray_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 1: + return internalGetMoneys(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 1: + return internalGetMutableMoneys(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.sonar.core.test.Test.internal_static_TestMapOfArray_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.sonar.core.test.Test.TestMapOfArray.class, org.sonar.core.test.Test.TestMapOfArray.Builder.class); + } + + // Construct using org.sonar.core.test.Test.TestMapOfArray.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + internalGetMutableMoneys().clear(); + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.sonar.core.test.Test.internal_static_TestMapOfArray_descriptor; + } + + public org.sonar.core.test.Test.TestMapOfArray getDefaultInstanceForType() { + return org.sonar.core.test.Test.TestMapOfArray.getDefaultInstance(); + } + + public org.sonar.core.test.Test.TestMapOfArray build() { + org.sonar.core.test.Test.TestMapOfArray result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.sonar.core.test.Test.TestMapOfArray buildPartial() { + org.sonar.core.test.Test.TestMapOfArray result = new org.sonar.core.test.Test.TestMapOfArray(this); + int from_bitField0_ = bitField0_; + result.moneys_ = internalGetMoneys(); + result.moneys_.makeImmutable(); + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.sonar.core.test.Test.TestMapOfArray) { + return mergeFrom((org.sonar.core.test.Test.TestMapOfArray)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.sonar.core.test.Test.TestMapOfArray other) { + if (other == org.sonar.core.test.Test.TestMapOfArray.getDefaultInstance()) return this; + internalGetMutableMoneys().mergeFrom( + other.internalGetMoneys()); + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.sonar.core.test.Test.TestMapOfArray parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.sonar.core.test.Test.TestMapOfArray) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.MapField< + java.lang.String, org.sonar.core.test.Test.Countries> moneys_; + private com.google.protobuf.MapField + internalGetMoneys() { + if (moneys_ == null) { + return com.google.protobuf.MapField.emptyMapField( + MoneysDefaultEntryHolder.defaultEntry); + } + return moneys_; + } + private com.google.protobuf.MapField + internalGetMutableMoneys() { + onChanged();; + if (moneys_ == null) { + moneys_ = com.google.protobuf.MapField.newMapField( + MoneysDefaultEntryHolder.defaultEntry); + } + if (!moneys_.isMutable()) { + moneys_ = moneys_.copy(); + } + return moneys_; + } + /** + * map<string, .Countries> moneys = 1; + * + *
+       * allow to have map values of arrays
+       * 
+ */ + public java.util.Map getMoneys() { + return internalGetMoneys().getMap(); + } + /** + * map<string, .Countries> moneys = 1; + * + *
+       * allow to have map values of arrays
+       * 
+ */ + public java.util.Map + getMutableMoneys() { + return internalGetMutableMoneys().getMutableMap(); + } + + // @@protoc_insertion_point(builder_scope:TestMapOfArray) + } + + // @@protoc_insertion_point(class_scope:TestMapOfArray) + private static final org.sonar.core.test.Test.TestMapOfArray DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.sonar.core.test.Test.TestMapOfArray(); + } + + public static org.sonar.core.test.Test.TestMapOfArray getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + public static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public TestMapOfArray parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + try { + return new TestMapOfArray(input, extensionRegistry); + } catch (RuntimeException e) { + if (e.getCause() instanceof + com.google.protobuf.InvalidProtocolBufferException) { + throw (com.google.protobuf.InvalidProtocolBufferException) + e.getCause(); + } + throw e; + } + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public org.sonar.core.test.Test.TestMapOfArray getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TestMapOfMapOrBuilder extends + // @@protoc_insertion_point(interface_extends:TestMapOfMap) + com.google.protobuf.MessageOrBuilder { + + /** + * map<string, .Translations> catalogs = 1; + * + *
+     * allow to have map values of maps
+     * 
+ */ + java.util.Map + getCatalogs(); + } + /** + * Protobuf type {@code TestMapOfMap} + */ + public static final class TestMapOfMap extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:TestMapOfMap) + TestMapOfMapOrBuilder { + // Use TestMapOfMap.newBuilder() to construct. + private TestMapOfMap(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private TestMapOfMap() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TestMapOfMap( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) { + this(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + catalogs_ = com.google.protobuf.MapField.newMapField( + CatalogsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry + catalogs = input.readMessage( + CatalogsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + catalogs_.getMutableMap().put(catalogs.getKey(), catalogs.getValue()); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw new RuntimeException(e.setUnfinishedMessage(this)); + } catch (java.io.IOException e) { + throw new RuntimeException( + new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this)); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.sonar.core.test.Test.internal_static_TestMapOfMap_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 1: + return internalGetCatalogs(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.sonar.core.test.Test.internal_static_TestMapOfMap_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.sonar.core.test.Test.TestMapOfMap.class, org.sonar.core.test.Test.TestMapOfMap.Builder.class); + } + + public static final int CATALOGS_FIELD_NUMBER = 1; + private static final class CatalogsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, org.sonar.core.test.Test.Translations> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + org.sonar.core.test.Test.internal_static_TestMapOfMap_CatalogsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + org.sonar.core.test.Test.Translations.getDefaultInstance()); + } + private com.google.protobuf.MapField< + java.lang.String, org.sonar.core.test.Test.Translations> catalogs_; + private com.google.protobuf.MapField + internalGetCatalogs() { + if (catalogs_ == null) { + return com.google.protobuf.MapField.emptyMapField( + CatalogsDefaultEntryHolder.defaultEntry); + } + return catalogs_; + } + /** + * map<string, .Translations> catalogs = 1; + * + *
+     * allow to have map values of maps
+     * 
+ */ + + public java.util.Map getCatalogs() { + return internalGetCatalogs().getMap(); + } + + 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 { + for (java.util.Map.Entry entry + : internalGetCatalogs().getMap().entrySet()) { + com.google.protobuf.MapEntry + catalogs = CatalogsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + output.writeMessage(1, catalogs); + } + unknownFields.writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + for (java.util.Map.Entry entry + : internalGetCatalogs().getMap().entrySet()) { + com.google.protobuf.MapEntry + catalogs = CatalogsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, catalogs); + } + size += unknownFields.getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + public static org.sonar.core.test.Test.TestMapOfMap parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.sonar.core.test.Test.TestMapOfMap parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.sonar.core.test.Test.TestMapOfMap parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.sonar.core.test.Test.TestMapOfMap parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.sonar.core.test.Test.TestMapOfMap parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.sonar.core.test.Test.TestMapOfMap parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static org.sonar.core.test.Test.TestMapOfMap parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static org.sonar.core.test.Test.TestMapOfMap parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static org.sonar.core.test.Test.TestMapOfMap parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.sonar.core.test.Test.TestMapOfMap parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.sonar.core.test.Test.TestMapOfMap prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code TestMapOfMap} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:TestMapOfMap) + org.sonar.core.test.Test.TestMapOfMapOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.sonar.core.test.Test.internal_static_TestMapOfMap_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 1: + return internalGetCatalogs(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 1: + return internalGetMutableCatalogs(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.sonar.core.test.Test.internal_static_TestMapOfMap_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.sonar.core.test.Test.TestMapOfMap.class, org.sonar.core.test.Test.TestMapOfMap.Builder.class); + } + + // Construct using org.sonar.core.test.Test.TestMapOfMap.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + internalGetMutableCatalogs().clear(); + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.sonar.core.test.Test.internal_static_TestMapOfMap_descriptor; + } + + public org.sonar.core.test.Test.TestMapOfMap getDefaultInstanceForType() { + return org.sonar.core.test.Test.TestMapOfMap.getDefaultInstance(); + } + + public org.sonar.core.test.Test.TestMapOfMap build() { + org.sonar.core.test.Test.TestMapOfMap result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.sonar.core.test.Test.TestMapOfMap buildPartial() { + org.sonar.core.test.Test.TestMapOfMap result = new org.sonar.core.test.Test.TestMapOfMap(this); + int from_bitField0_ = bitField0_; + result.catalogs_ = internalGetCatalogs(); + result.catalogs_.makeImmutable(); + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.sonar.core.test.Test.TestMapOfMap) { + return mergeFrom((org.sonar.core.test.Test.TestMapOfMap)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.sonar.core.test.Test.TestMapOfMap other) { + if (other == org.sonar.core.test.Test.TestMapOfMap.getDefaultInstance()) return this; + internalGetMutableCatalogs().mergeFrom( + other.internalGetCatalogs()); + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.sonar.core.test.Test.TestMapOfMap parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.sonar.core.test.Test.TestMapOfMap) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.MapField< + java.lang.String, org.sonar.core.test.Test.Translations> catalogs_; + private com.google.protobuf.MapField + internalGetCatalogs() { + if (catalogs_ == null) { + return com.google.protobuf.MapField.emptyMapField( + CatalogsDefaultEntryHolder.defaultEntry); + } + return catalogs_; + } + private com.google.protobuf.MapField + internalGetMutableCatalogs() { + onChanged();; + if (catalogs_ == null) { + catalogs_ = com.google.protobuf.MapField.newMapField( + CatalogsDefaultEntryHolder.defaultEntry); + } + if (!catalogs_.isMutable()) { + catalogs_ = catalogs_.copy(); + } + return catalogs_; + } + /** + * map<string, .Translations> catalogs = 1; + * + *
+       * allow to have map values of maps
+       * 
+ */ + public java.util.Map getCatalogs() { + return internalGetCatalogs().getMap(); + } + /** + * map<string, .Translations> catalogs = 1; + * + *
+       * allow to have map values of maps
+       * 
+ */ + public java.util.Map + getMutableCatalogs() { + return internalGetMutableCatalogs().getMutableMap(); + } + + // @@protoc_insertion_point(builder_scope:TestMapOfMap) + } + + // @@protoc_insertion_point(class_scope:TestMapOfMap) + private static final org.sonar.core.test.Test.TestMapOfMap DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.sonar.core.test.Test.TestMapOfMap(); + } + + public static org.sonar.core.test.Test.TestMapOfMap getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + public static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public TestMapOfMap parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + try { + return new TestMapOfMap(input, extensionRegistry); + } catch (RuntimeException e) { + if (e.getCause() instanceof + com.google.protobuf.InvalidProtocolBufferException) { + throw (com.google.protobuf.InvalidProtocolBufferException) + e.getCause(); + } + throw e; + } + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public org.sonar.core.test.Test.TestMapOfMap getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TranslationsOrBuilder extends + // @@protoc_insertion_point(interface_extends:Translations) + com.google.protobuf.MessageOrBuilder { + + /** + * map<string, string> translations = 1; + */ + java.util.Map + getTranslations(); + } + /** + * Protobuf type {@code Translations} + */ + public static final class Translations extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:Translations) + TranslationsOrBuilder { + // Use Translations.newBuilder() to construct. + private Translations(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private Translations() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Translations( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) { + this(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + translations_ = com.google.protobuf.MapField.newMapField( + TranslationsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry + translations = input.readMessage( + TranslationsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + translations_.getMutableMap().put(translations.getKey(), translations.getValue()); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw new RuntimeException(e.setUnfinishedMessage(this)); + } catch (java.io.IOException e) { + throw new RuntimeException( + new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this)); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.sonar.core.test.Test.internal_static_Translations_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 1: + return internalGetTranslations(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.sonar.core.test.Test.internal_static_Translations_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.sonar.core.test.Test.Translations.class, org.sonar.core.test.Test.Translations.Builder.class); + } + + public static final int TRANSLATIONS_FIELD_NUMBER = 1; + private static final class TranslationsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + org.sonar.core.test.Test.internal_static_Translations_TranslationsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> translations_; + private com.google.protobuf.MapField + internalGetTranslations() { + if (translations_ == null) { + return com.google.protobuf.MapField.emptyMapField( + TranslationsDefaultEntryHolder.defaultEntry); + } + return translations_; + } + /** + * map<string, string> translations = 1; + */ + + public java.util.Map getTranslations() { + return internalGetTranslations().getMap(); + } + + 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 { + for (java.util.Map.Entry entry + : internalGetTranslations().getMap().entrySet()) { + com.google.protobuf.MapEntry + translations = TranslationsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + output.writeMessage(1, translations); + } + unknownFields.writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + for (java.util.Map.Entry entry + : internalGetTranslations().getMap().entrySet()) { + com.google.protobuf.MapEntry + translations = TranslationsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, translations); + } + size += unknownFields.getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + public static org.sonar.core.test.Test.Translations parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.sonar.core.test.Test.Translations parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.sonar.core.test.Test.Translations parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.sonar.core.test.Test.Translations parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.sonar.core.test.Test.Translations parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.sonar.core.test.Test.Translations parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static org.sonar.core.test.Test.Translations parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static org.sonar.core.test.Test.Translations parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static org.sonar.core.test.Test.Translations parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.sonar.core.test.Test.Translations parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.sonar.core.test.Test.Translations prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code Translations} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:Translations) + org.sonar.core.test.Test.TranslationsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.sonar.core.test.Test.internal_static_Translations_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 1: + return internalGetTranslations(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 1: + return internalGetMutableTranslations(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.sonar.core.test.Test.internal_static_Translations_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.sonar.core.test.Test.Translations.class, org.sonar.core.test.Test.Translations.Builder.class); + } + + // Construct using org.sonar.core.test.Test.Translations.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + internalGetMutableTranslations().clear(); + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.sonar.core.test.Test.internal_static_Translations_descriptor; + } + + public org.sonar.core.test.Test.Translations getDefaultInstanceForType() { + return org.sonar.core.test.Test.Translations.getDefaultInstance(); + } + + public org.sonar.core.test.Test.Translations build() { + org.sonar.core.test.Test.Translations result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.sonar.core.test.Test.Translations buildPartial() { + org.sonar.core.test.Test.Translations result = new org.sonar.core.test.Test.Translations(this); + int from_bitField0_ = bitField0_; + result.translations_ = internalGetTranslations(); + result.translations_.makeImmutable(); + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.sonar.core.test.Test.Translations) { + return mergeFrom((org.sonar.core.test.Test.Translations)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.sonar.core.test.Test.Translations other) { + if (other == org.sonar.core.test.Test.Translations.getDefaultInstance()) return this; + internalGetMutableTranslations().mergeFrom( + other.internalGetTranslations()); + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.sonar.core.test.Test.Translations parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.sonar.core.test.Test.Translations) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> translations_; + private com.google.protobuf.MapField + internalGetTranslations() { + if (translations_ == null) { + return com.google.protobuf.MapField.emptyMapField( + TranslationsDefaultEntryHolder.defaultEntry); + } + return translations_; + } + private com.google.protobuf.MapField + internalGetMutableTranslations() { + onChanged();; + if (translations_ == null) { + translations_ = com.google.protobuf.MapField.newMapField( + TranslationsDefaultEntryHolder.defaultEntry); + } + if (!translations_.isMutable()) { + translations_ = translations_.copy(); + } + return translations_; + } + /** + * map<string, string> translations = 1; + */ + public java.util.Map getTranslations() { + return internalGetTranslations().getMap(); + } + /** + * map<string, string> translations = 1; + */ + public java.util.Map + getMutableTranslations() { + return internalGetMutableTranslations().getMutableMap(); + } + + // @@protoc_insertion_point(builder_scope:Translations) + } + + // @@protoc_insertion_point(class_scope:Translations) + private static final org.sonar.core.test.Test.Translations DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.sonar.core.test.Test.Translations(); + } + + public static org.sonar.core.test.Test.Translations getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + public static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public Translations parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + try { + return new Translations(input, extensionRegistry); + } catch (RuntimeException e) { + if (e.getCause() instanceof + com.google.protobuf.InvalidProtocolBufferException) { + throw (com.google.protobuf.InvalidProtocolBufferException) + e.getCause(); + } + throw e; + } + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public org.sonar.core.test.Test.Translations getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CountriesOrBuilder extends + // @@protoc_insertion_point(interface_extends:Countries) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .Country countries = 1; + */ + java.util.List + getCountriesList(); + /** + * repeated .Country countries = 1; + */ + org.sonar.core.test.Test.Country getCountries(int index); + /** + * repeated .Country countries = 1; + */ + int getCountriesCount(); + /** + * repeated .Country countries = 1; + */ + java.util.List + getCountriesOrBuilderList(); + /** + * repeated .Country countries = 1; + */ + org.sonar.core.test.Test.CountryOrBuilder getCountriesOrBuilder( + int index); + } + /** + * Protobuf type {@code Countries} + */ + public static final class Countries extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:Countries) + CountriesOrBuilder { + // Use Countries.newBuilder() to construct. + private Countries(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private Countries() { + countries_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Countries( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) { + this(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + countries_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + countries_.add(input.readMessage(org.sonar.core.test.Test.Country.PARSER, extensionRegistry)); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw new RuntimeException(e.setUnfinishedMessage(this)); + } catch (java.io.IOException e) { + throw new RuntimeException( + new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this)); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + countries_ = java.util.Collections.unmodifiableList(countries_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.sonar.core.test.Test.internal_static_Countries_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.sonar.core.test.Test.internal_static_Countries_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.sonar.core.test.Test.Countries.class, org.sonar.core.test.Test.Countries.Builder.class); + } + + public static final int COUNTRIES_FIELD_NUMBER = 1; + private java.util.List countries_; + /** + * repeated .Country countries = 1; + */ + public java.util.List getCountriesList() { + return countries_; + } + /** + * repeated .Country countries = 1; + */ + public java.util.List + getCountriesOrBuilderList() { + return countries_; + } + /** + * repeated .Country countries = 1; + */ + public int getCountriesCount() { + return countries_.size(); + } + /** + * repeated .Country countries = 1; + */ + public org.sonar.core.test.Test.Country getCountries(int index) { + return countries_.get(index); + } + /** + * repeated .Country countries = 1; + */ + public org.sonar.core.test.Test.CountryOrBuilder getCountriesOrBuilder( + int index) { + return countries_.get(index); + } + + 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 { + for (int i = 0; i < countries_.size(); i++) { + output.writeMessage(1, countries_.get(i)); + } + unknownFields.writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < countries_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, countries_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + public static org.sonar.core.test.Test.Countries parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.sonar.core.test.Test.Countries parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.sonar.core.test.Test.Countries parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.sonar.core.test.Test.Countries parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.sonar.core.test.Test.Countries parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.sonar.core.test.Test.Countries parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static org.sonar.core.test.Test.Countries parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static org.sonar.core.test.Test.Countries parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static org.sonar.core.test.Test.Countries parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.sonar.core.test.Test.Countries parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.sonar.core.test.Test.Countries prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code Countries} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:Countries) + org.sonar.core.test.Test.CountriesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.sonar.core.test.Test.internal_static_Countries_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.sonar.core.test.Test.internal_static_Countries_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.sonar.core.test.Test.Countries.class, org.sonar.core.test.Test.Countries.Builder.class); + } + + // Construct using org.sonar.core.test.Test.Countries.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + getCountriesFieldBuilder(); + } + } + public Builder clear() { + super.clear(); + if (countriesBuilder_ == null) { + countries_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + countriesBuilder_.clear(); + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.sonar.core.test.Test.internal_static_Countries_descriptor; + } + + public org.sonar.core.test.Test.Countries getDefaultInstanceForType() { + return org.sonar.core.test.Test.Countries.getDefaultInstance(); + } + + public org.sonar.core.test.Test.Countries build() { + org.sonar.core.test.Test.Countries result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.sonar.core.test.Test.Countries buildPartial() { + org.sonar.core.test.Test.Countries result = new org.sonar.core.test.Test.Countries(this); + int from_bitField0_ = bitField0_; + if (countriesBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + countries_ = java.util.Collections.unmodifiableList(countries_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.countries_ = countries_; + } else { + result.countries_ = countriesBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.sonar.core.test.Test.Countries) { + return mergeFrom((org.sonar.core.test.Test.Countries)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.sonar.core.test.Test.Countries other) { + if (other == org.sonar.core.test.Test.Countries.getDefaultInstance()) return this; + if (countriesBuilder_ == null) { + if (!other.countries_.isEmpty()) { + if (countries_.isEmpty()) { + countries_ = other.countries_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureCountriesIsMutable(); + countries_.addAll(other.countries_); + } + onChanged(); + } + } else { + if (!other.countries_.isEmpty()) { + if (countriesBuilder_.isEmpty()) { + countriesBuilder_.dispose(); + countriesBuilder_ = null; + countries_ = other.countries_; + bitField0_ = (bitField0_ & ~0x00000001); + countriesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getCountriesFieldBuilder() : null; + } else { + countriesBuilder_.addAllMessages(other.countries_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.sonar.core.test.Test.Countries parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.sonar.core.test.Test.Countries) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List countries_ = + java.util.Collections.emptyList(); + private void ensureCountriesIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + countries_ = new java.util.ArrayList(countries_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + org.sonar.core.test.Test.Country, org.sonar.core.test.Test.Country.Builder, org.sonar.core.test.Test.CountryOrBuilder> countriesBuilder_; + + /** + * repeated .Country countries = 1; + */ + public java.util.List getCountriesList() { + if (countriesBuilder_ == null) { + return java.util.Collections.unmodifiableList(countries_); + } else { + return countriesBuilder_.getMessageList(); + } + } + /** + * repeated .Country countries = 1; + */ + public int getCountriesCount() { + if (countriesBuilder_ == null) { + return countries_.size(); + } else { + return countriesBuilder_.getCount(); + } + } + /** + * repeated .Country countries = 1; + */ + public org.sonar.core.test.Test.Country getCountries(int index) { + if (countriesBuilder_ == null) { + return countries_.get(index); + } else { + return countriesBuilder_.getMessage(index); + } + } + /** + * repeated .Country countries = 1; + */ + public Builder setCountries( + int index, org.sonar.core.test.Test.Country value) { + if (countriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCountriesIsMutable(); + countries_.set(index, value); + onChanged(); + } else { + countriesBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .Country countries = 1; + */ + public Builder setCountries( + int index, org.sonar.core.test.Test.Country.Builder builderForValue) { + if (countriesBuilder_ == null) { + ensureCountriesIsMutable(); + countries_.set(index, builderForValue.build()); + onChanged(); + } else { + countriesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .Country countries = 1; + */ + public Builder addCountries(org.sonar.core.test.Test.Country value) { + if (countriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCountriesIsMutable(); + countries_.add(value); + onChanged(); + } else { + countriesBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .Country countries = 1; + */ + public Builder addCountries( + int index, org.sonar.core.test.Test.Country value) { + if (countriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCountriesIsMutable(); + countries_.add(index, value); + onChanged(); + } else { + countriesBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .Country countries = 1; + */ + public Builder addCountries( + org.sonar.core.test.Test.Country.Builder builderForValue) { + if (countriesBuilder_ == null) { + ensureCountriesIsMutable(); + countries_.add(builderForValue.build()); + onChanged(); + } else { + countriesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .Country countries = 1; + */ + public Builder addCountries( + int index, org.sonar.core.test.Test.Country.Builder builderForValue) { + if (countriesBuilder_ == null) { + ensureCountriesIsMutable(); + countries_.add(index, builderForValue.build()); + onChanged(); + } else { + countriesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .Country countries = 1; + */ + public Builder addAllCountries( + java.lang.Iterable values) { + if (countriesBuilder_ == null) { + ensureCountriesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, countries_); + onChanged(); + } else { + countriesBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .Country countries = 1; + */ + public Builder clearCountries() { + if (countriesBuilder_ == null) { + countries_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + countriesBuilder_.clear(); + } + return this; + } + /** + * repeated .Country countries = 1; + */ + public Builder removeCountries(int index) { + if (countriesBuilder_ == null) { + ensureCountriesIsMutable(); + countries_.remove(index); + onChanged(); + } else { + countriesBuilder_.remove(index); + } + return this; + } + /** + * repeated .Country countries = 1; + */ + public org.sonar.core.test.Test.Country.Builder getCountriesBuilder( + int index) { + return getCountriesFieldBuilder().getBuilder(index); + } + /** + * repeated .Country countries = 1; + */ + public org.sonar.core.test.Test.CountryOrBuilder getCountriesOrBuilder( + int index) { + if (countriesBuilder_ == null) { + return countries_.get(index); } else { + return countriesBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .Country countries = 1; + */ + public java.util.List + getCountriesOrBuilderList() { + if (countriesBuilder_ != null) { + return countriesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(countries_); + } + } + /** + * repeated .Country countries = 1; + */ + public org.sonar.core.test.Test.Country.Builder addCountriesBuilder() { + return getCountriesFieldBuilder().addBuilder( + org.sonar.core.test.Test.Country.getDefaultInstance()); + } + /** + * repeated .Country countries = 1; + */ + public org.sonar.core.test.Test.Country.Builder addCountriesBuilder( + int index) { + return getCountriesFieldBuilder().addBuilder( + index, org.sonar.core.test.Test.Country.getDefaultInstance()); + } + /** + * repeated .Country countries = 1; + */ + public java.util.List + getCountriesBuilderList() { + return getCountriesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + org.sonar.core.test.Test.Country, org.sonar.core.test.Test.Country.Builder, org.sonar.core.test.Test.CountryOrBuilder> + getCountriesFieldBuilder() { + if (countriesBuilder_ == null) { + countriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + org.sonar.core.test.Test.Country, org.sonar.core.test.Test.Country.Builder, org.sonar.core.test.Test.CountryOrBuilder>( + countries_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + countries_ = null; + } + return countriesBuilder_; + } + + // @@protoc_insertion_point(builder_scope:Countries) + } + + // @@protoc_insertion_point(class_scope:Countries) + private static final org.sonar.core.test.Test.Countries DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.sonar.core.test.Test.Countries(); + } + + public static org.sonar.core.test.Test.Countries getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + public static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public Countries parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + try { + return new Countries(input, extensionRegistry); + } catch (RuntimeException e) { + if (e.getCause() instanceof + com.google.protobuf.InvalidProtocolBufferException) { + throw (com.google.protobuf.InvalidProtocolBufferException) + e.getCause(); + } + throw e; + } + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public org.sonar.core.test.Test.Countries getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CountryOrBuilder extends + // @@protoc_insertion_point(interface_extends:Country) + com.google.protobuf.MessageOrBuilder { + + /** + * optional string name = 1; + */ + boolean hasName(); + /** + * optional string name = 1; + */ + java.lang.String getName(); + /** + * optional string name = 1; + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + * optional string continent = 2; + */ + boolean hasContinent(); + /** + * optional string continent = 2; + */ + java.lang.String getContinent(); + /** + * optional string continent = 2; + */ + com.google.protobuf.ByteString + getContinentBytes(); + } + /** + * Protobuf type {@code Country} + */ + public static final class Country extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:Country) + CountryOrBuilder { + // Use Country.newBuilder() to construct. + private Country(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private Country() { + name_ = ""; + continent_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Country( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) { + this(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000001; + name_ = bs; + break; + } + case 18: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000002; + continent_ = bs; + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw new RuntimeException(e.setUnfinishedMessage(this)); + } catch (java.io.IOException e) { + throw new RuntimeException( + new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this)); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.sonar.core.test.Test.internal_static_Country_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.sonar.core.test.Test.internal_static_Country_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.sonar.core.test.Test.Country.class, org.sonar.core.test.Test.Country.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * optional string name = 1; + */ + public boolean hasName() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + 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()) { + name_ = s; + } + return s; + } + } + /** + * optional string name = 1; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONTINENT_FIELD_NUMBER = 2; + private volatile java.lang.Object continent_; + /** + * optional string continent = 2; + */ + public boolean hasContinent() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional string continent = 2; + */ + public java.lang.String getContinent() { + java.lang.Object ref = continent_; + 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()) { + continent_ = s; + } + return s; + } + } + /** + * optional string continent = 2; + */ + public com.google.protobuf.ByteString + getContinentBytes() { + java.lang.Object ref = continent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + continent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeBytes(1, getNameBytes()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeBytes(2, getContinentBytes()); + } + unknownFields.writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, getNameBytes()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, getContinentBytes()); + } + size += unknownFields.getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + public static org.sonar.core.test.Test.Country parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.sonar.core.test.Test.Country parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.sonar.core.test.Test.Country parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.sonar.core.test.Test.Country parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.sonar.core.test.Test.Country parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.sonar.core.test.Test.Country parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static org.sonar.core.test.Test.Country parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static org.sonar.core.test.Test.Country parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static org.sonar.core.test.Test.Country parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.sonar.core.test.Test.Country parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.sonar.core.test.Test.Country prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code Country} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:Country) + org.sonar.core.test.Test.CountryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.sonar.core.test.Test.internal_static_Country_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.sonar.core.test.Test.internal_static_Country_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.sonar.core.test.Test.Country.class, org.sonar.core.test.Test.Country.Builder.class); + } + + // Construct using org.sonar.core.test.Test.Country.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + name_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + continent_ = ""; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.sonar.core.test.Test.internal_static_Country_descriptor; + } + + public org.sonar.core.test.Test.Country getDefaultInstanceForType() { + return org.sonar.core.test.Test.Country.getDefaultInstance(); + } + + public org.sonar.core.test.Test.Country build() { + org.sonar.core.test.Test.Country result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.sonar.core.test.Test.Country buildPartial() { + org.sonar.core.test.Test.Country result = new org.sonar.core.test.Test.Country(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.name_ = name_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.continent_ = continent_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.sonar.core.test.Test.Country) { + return mergeFrom((org.sonar.core.test.Test.Country)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.sonar.core.test.Test.Country other) { + if (other == org.sonar.core.test.Test.Country.getDefaultInstance()) return this; + if (other.hasName()) { + bitField0_ |= 0x00000001; + name_ = other.name_; + onChanged(); + } + if (other.hasContinent()) { + bitField0_ |= 0x00000002; + continent_ = other.continent_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.sonar.core.test.Test.Country parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.sonar.core.test.Test.Country) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } return this; } + private int bitField0_; + + private java.lang.Object name_ = ""; /** - * optional bool nullableStringMapPresentIfEmpty = 3; + * optional string name = 1; */ - public Builder clearNullableStringMapPresentIfEmpty() { - bitField0_ = (bitField0_ & ~0x00000004); - nullableStringMapPresentIfEmpty_ = false; + public boolean hasName() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + name_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string name = 1; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string name = 1; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + name_ = value; + onChanged(); + return this; + } + /** + * optional string name = 1; + */ + public Builder clearName() { + bitField0_ = (bitField0_ & ~0x00000001); + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * optional string name = 1; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + name_ = value; onChanged(); return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> nullableStringMap_; - private com.google.protobuf.MapField - internalGetNullableStringMap() { - if (nullableStringMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - NullableStringMapDefaultEntryHolder.defaultEntry); - } - return nullableStringMap_; + private java.lang.Object continent_ = ""; + /** + * optional string continent = 2; + */ + public boolean hasContinent() { + return ((bitField0_ & 0x00000002) == 0x00000002); } - private com.google.protobuf.MapField - internalGetMutableNullableStringMap() { - onChanged();; - if (nullableStringMap_ == null) { - nullableStringMap_ = com.google.protobuf.MapField.newMapField( - NullableStringMapDefaultEntryHolder.defaultEntry); + /** + * optional string continent = 2; + */ + public java.lang.String getContinent() { + java.lang.Object ref = continent_; + 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()) { + continent_ = s; + } + return s; + } else { + return (java.lang.String) ref; } - if (!nullableStringMap_.isMutable()) { - nullableStringMap_ = nullableStringMap_.copy(); + } + /** + * optional string continent = 2; + */ + public com.google.protobuf.ByteString + getContinentBytes() { + java.lang.Object ref = continent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + continent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } - return nullableStringMap_; } /** - * map<string, string> nullableStringMap = 4; + * optional string continent = 2; */ - public java.util.Map getNullableStringMap() { - return internalGetNullableStringMap().getMap(); + public Builder setContinent( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + continent_ = value; + onChanged(); + return this; } /** - * map<string, string> nullableStringMap = 4; + * optional string continent = 2; */ - public java.util.Map - getMutableNullableStringMap() { - return internalGetMutableNullableStringMap().getMutableMap(); + public Builder clearContinent() { + bitField0_ = (bitField0_ & ~0x00000002); + continent_ = getDefaultInstance().getContinent(); + onChanged(); + return this; + } + /** + * optional string continent = 2; + */ + public Builder setContinentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + continent_ = value; + onChanged(); + return this; } - // @@protoc_insertion_point(builder_scope:MapMsg) + // @@protoc_insertion_point(builder_scope:Country) } - // @@protoc_insertion_point(class_scope:MapMsg) - private static final org.sonar.core.test.Test.MapMsg DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:Country) + private static final org.sonar.core.test.Test.Country DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new org.sonar.core.test.Test.MapMsg(); + DEFAULT_INSTANCE = new org.sonar.core.test.Test.Country(); } - public static org.sonar.core.test.Test.MapMsg getDefaultInstance() { + public static org.sonar.core.test.Test.Country getDefaultInstance() { return DEFAULT_INSTANCE; } - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public MapMsg parsePartialFrom( + public static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public Country parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { try { - return new MapMsg(input, extensionRegistry); + return new Country(input, extensionRegistry); } catch (RuntimeException e) { if (e.getCause() instanceof com.google.protobuf.InvalidProtocolBufferException) { @@ -4178,11 +7815,11 @@ public final class Test { }; @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } - public org.sonar.core.test.Test.MapMsg getDefaultInstanceForType() { + public org.sonar.core.test.Test.Country getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -4199,35 +7836,80 @@ public final class Test { com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_PrimitiveTypeMsg_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor - internal_static_ArrayFieldMsg_descriptor; + internal_static_TestArray_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_ArrayFieldMsg_fieldAccessorTable; + internal_static_TestArray_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_NestedMsg_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_NestedMsg_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor - internal_static_MapMsg_descriptor; + internal_static_TestMap_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_TestMap_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_TestMap_StringMapEntry_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_TestMap_StringMapEntry_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_TestMap_NestedMapEntry_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_MapMsg_fieldAccessorTable; + internal_static_TestMap_NestedMapEntry_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor - internal_static_MapMsg_StringMapEntry_descriptor; + internal_static_TestNullableArray_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_MapMsg_StringMapEntry_fieldAccessorTable; + internal_static_TestNullableArray_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor - internal_static_MapMsg_NestedMapEntry_descriptor; + internal_static_TestNullableMap_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_MapMsg_NestedMapEntry_fieldAccessorTable; + internal_static_TestNullableMap_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor - internal_static_MapMsg_NullableStringMapEntry_descriptor; + internal_static_TestMapOfArray_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_MapMsg_NullableStringMapEntry_fieldAccessorTable; + internal_static_TestMapOfArray_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_TestMapOfArray_MoneysEntry_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_TestMapOfArray_MoneysEntry_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_TestMapOfMap_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_TestMapOfMap_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_TestMapOfMap_CatalogsEntry_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_TestMapOfMap_CatalogsEntry_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_Translations_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_Translations_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_Translations_TranslationsEntry_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_Translations_TranslationsEntry_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_Countries_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_Countries_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_Country_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_Country_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { @@ -4243,21 +7925,31 @@ public final class Test { "ld\030\003 \001(\003\022\023\n\013doubleField\030\004 \001(\001\022\024\n\014boolean" + "Field\030\005 \001(\010\022\034\n\tenumField\030\006 \001(\0162\t.FakeEnu" + "m\022\022\n\nbytesField\030\007 \001(\014\022\032\n\006nested\030\010 \001(\0132\n." + - "NestedMsg\"y\n\rArrayFieldMsg\022\017\n\007strings\030\001 " + - "\003(\t\022\033\n\007nesteds\030\002 \003(\0132\n.NestedMsg\022#\n\033null" + - "ableArrayPresentIfEmpty\030\003 \001(\010\022\025\n\rnullabl" + - "eArray\030\004 \003(\t\"\032\n\tNestedMsg\022\r\n\005label\030\001 \001(\t", - "\"\354\002\n\006MapMsg\022)\n\tstringMap\030\001 \003(\0132\026.MapMsg." + - "StringMapEntry\022)\n\tnestedMap\030\002 \003(\0132\026.MapM" + - "sg.NestedMapEntry\022\'\n\037nullableStringMapPr" + - "esentIfEmpty\030\003 \001(\010\0229\n\021nullableStringMap\030" + - "\004 \003(\0132\036.MapMsg.NullableStringMapEntry\0320\n" + - "\016StringMapEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " + - "\001(\t:\0028\001\032<\n\016NestedMapEntry\022\013\n\003key\030\001 \001(\t\022\031" + - "\n\005value\030\002 \001(\0132\n.NestedMsg:\0028\001\0328\n\026Nullabl" + - "eStringMapEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " + - "\001(\t:\0028\001*(\n\010FakeEnum\022\010\n\004BLUE\020\000\022\007\n\003RED\020\001\022\t", - "\n\005GREEN\020\002B\027\n\023org.sonar.core.testH\001" + "NestedMsg\"9\n\tTestArray\022\017\n\007strings\030\001 \003(\t\022" + + "\033\n\007nesteds\030\002 \003(\0132\n.NestedMsg\"\032\n\tNestedMs" + + "g\022\r\n\005label\030\001 \001(\t\"\321\001\n\007TestMap\022*\n\tstringMa" + + "p\030\001 \003(\0132\027.TestMap.StringMapEntry\022*\n\tnest", + "edMap\030\002 \003(\0132\027.TestMap.NestedMapEntry\0320\n\016" + + "StringMapEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001" + + "(\t:\0028\001\032<\n\016NestedMapEntry\022\013\n\003key\030\001 \001(\t\022\031\n" + + "\005value\030\002 \001(\0132\n.NestedMsg:\0028\001\"A\n\021TestNull" + + "ableArray\022\r\n\005label\030\001 \001(\t\022\035\n\tcountries\030\002 " + + "\001(\0132\n.Countries\"E\n\017TestNullableMap\022\r\n\005la" + + "bel\030\001 \001(\t\022#\n\014translations\030\002 \001(\0132\r.Transl" + + "ations\"x\n\016TestMapOfArray\022+\n\006moneys\030\001 \003(\013" + + "2\033.TestMapOfArray.MoneysEntry\0329\n\013MoneysE" + + "ntry\022\013\n\003key\030\001 \001(\t\022\031\n\005value\030\002 \001(\0132\n.Count", + "ries:\0028\001\"}\n\014TestMapOfMap\022-\n\010catalogs\030\001 \003" + + "(\0132\033.TestMapOfMap.CatalogsEntry\032>\n\rCatal" + + "ogsEntry\022\013\n\003key\030\001 \001(\t\022\034\n\005value\030\002 \001(\0132\r.T" + + "ranslations:\0028\001\"z\n\014Translations\0225\n\014trans" + + "lations\030\001 \003(\0132\037.Translations.Translation" + + "sEntry\0323\n\021TranslationsEntry\022\013\n\003key\030\001 \001(\t" + + "\022\r\n\005value\030\002 \001(\t:\0028\001\"(\n\tCountries\022\033\n\tcoun" + + "tries\030\001 \003(\0132\010.Country\"*\n\007Country\022\014\n\004name" + + "\030\001 \001(\t\022\021\n\tcontinent\030\002 \001(\t*(\n\010FakeEnum\022\010\n" + + "\004BLUE\020\000\022\007\n\003RED\020\001\022\t\n\005GREEN\020\002B\027\n\023org.sonar", + ".core.testH\001" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -4283,42 +7975,96 @@ public final class Test { com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_PrimitiveTypeMsg_descriptor, new java.lang.String[] { "StringField", "IntField", "LongField", "DoubleField", "BooleanField", "EnumField", "BytesField", "Nested", }); - internal_static_ArrayFieldMsg_descriptor = + internal_static_TestArray_descriptor = getDescriptor().getMessageTypes().get(2); - internal_static_ArrayFieldMsg_fieldAccessorTable = new + internal_static_TestArray_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_ArrayFieldMsg_descriptor, - new java.lang.String[] { "Strings", "Nesteds", "NullableArrayPresentIfEmpty", "NullableArray", }); + internal_static_TestArray_descriptor, + new java.lang.String[] { "Strings", "Nesteds", }); internal_static_NestedMsg_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_NestedMsg_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_NestedMsg_descriptor, new java.lang.String[] { "Label", }); - internal_static_MapMsg_descriptor = + internal_static_TestMap_descriptor = getDescriptor().getMessageTypes().get(4); - internal_static_MapMsg_fieldAccessorTable = new + internal_static_TestMap_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_TestMap_descriptor, + new java.lang.String[] { "StringMap", "NestedMap", }); + internal_static_TestMap_StringMapEntry_descriptor = + internal_static_TestMap_descriptor.getNestedTypes().get(0); + internal_static_TestMap_StringMapEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_TestMap_StringMapEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_TestMap_NestedMapEntry_descriptor = + internal_static_TestMap_descriptor.getNestedTypes().get(1); + internal_static_TestMap_NestedMapEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_MapMsg_descriptor, - new java.lang.String[] { "StringMap", "NestedMap", "NullableStringMapPresentIfEmpty", "NullableStringMap", }); - internal_static_MapMsg_StringMapEntry_descriptor = - internal_static_MapMsg_descriptor.getNestedTypes().get(0); - internal_static_MapMsg_StringMapEntry_fieldAccessorTable = new + internal_static_TestMap_NestedMapEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_TestNullableArray_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_TestNullableArray_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_TestNullableArray_descriptor, + new java.lang.String[] { "Label", "Countries", }); + internal_static_TestNullableMap_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_TestNullableMap_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_TestNullableMap_descriptor, + new java.lang.String[] { "Label", "Translations", }); + internal_static_TestMapOfArray_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_TestMapOfArray_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_TestMapOfArray_descriptor, + new java.lang.String[] { "Moneys", }); + internal_static_TestMapOfArray_MoneysEntry_descriptor = + internal_static_TestMapOfArray_descriptor.getNestedTypes().get(0); + internal_static_TestMapOfArray_MoneysEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_MapMsg_StringMapEntry_descriptor, + internal_static_TestMapOfArray_MoneysEntry_descriptor, new java.lang.String[] { "Key", "Value", }); - internal_static_MapMsg_NestedMapEntry_descriptor = - internal_static_MapMsg_descriptor.getNestedTypes().get(1); - internal_static_MapMsg_NestedMapEntry_fieldAccessorTable = new + internal_static_TestMapOfMap_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_TestMapOfMap_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_MapMsg_NestedMapEntry_descriptor, + internal_static_TestMapOfMap_descriptor, + new java.lang.String[] { "Catalogs", }); + internal_static_TestMapOfMap_CatalogsEntry_descriptor = + internal_static_TestMapOfMap_descriptor.getNestedTypes().get(0); + internal_static_TestMapOfMap_CatalogsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_TestMapOfMap_CatalogsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); - internal_static_MapMsg_NullableStringMapEntry_descriptor = - internal_static_MapMsg_descriptor.getNestedTypes().get(2); - internal_static_MapMsg_NullableStringMapEntry_fieldAccessorTable = new + internal_static_Translations_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_Translations_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_Translations_descriptor, + new java.lang.String[] { "Translations", }); + internal_static_Translations_TranslationsEntry_descriptor = + internal_static_Translations_descriptor.getNestedTypes().get(0); + internal_static_Translations_TranslationsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_MapMsg_NullableStringMapEntry_descriptor, + internal_static_Translations_TranslationsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); + internal_static_Countries_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_Countries_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_Countries_descriptor, + new java.lang.String[] { "Countries", }); + internal_static_Country_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_Country_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_Country_descriptor, + new java.lang.String[] { "Name", "Continent", }); } // @@protoc_insertion_point(outer_class_scope) diff --git a/sonar-core/src/test/java/org/sonar/core/util/ProtobufJsonFormatTest.java b/sonar-core/src/test/java/org/sonar/core/util/ProtobufJsonFormatTest.java index 93e0b95b951..2c95563b798 100644 --- a/sonar-core/src/test/java/org/sonar/core/util/ProtobufJsonFormatTest.java +++ b/sonar-core/src/test/java/org/sonar/core/util/ProtobufJsonFormatTest.java @@ -25,9 +25,17 @@ import org.junit.Rule; import org.junit.Test; import org.junit.rules.ExpectedException; import org.sonar.api.utils.text.JsonWriter; -import org.sonar.core.test.Test.ArrayFieldMsg; -import org.sonar.core.test.Test.MapMsg; +import org.sonar.core.test.Test.Countries; +import org.sonar.core.test.Test.Country; +import org.sonar.core.test.Test.NestedMsg; import org.sonar.core.test.Test.PrimitiveTypeMsg; +import org.sonar.core.test.Test.TestArray; +import org.sonar.core.test.Test.TestMap; +import org.sonar.core.test.Test.TestMapOfArray; +import org.sonar.core.test.Test.TestMapOfMap; +import org.sonar.core.test.Test.TestNullableArray; +import org.sonar.core.test.Test.TestNullableMap; +import org.sonar.core.test.Test.Translations; import org.sonar.test.TestUtils; import static org.assertj.core.api.Assertions.assertThat; @@ -39,7 +47,7 @@ public class ProtobufJsonFormatTest { public ExpectedException expectedException = ExpectedException.none(); @Test - public void test_conversion_of_primitive_types() { + public void test_primitive_types() { PrimitiveTypeMsg protobuf = PrimitiveTypeMsg.newBuilder() .setStringField("foo") .setIntField(10) @@ -59,14 +67,14 @@ public class ProtobufJsonFormatTest { expectedException.expectMessage("JSON format does not support type 'BYTE_STRING' of field 'bytesField'"); PrimitiveTypeMsg protobuf = PrimitiveTypeMsg.newBuilder() - .setBytesField(ByteString.copyFrom(new byte[] {2, 4})) + .setBytesField(ByteString.copyFrom(new byte[]{2, 4})) .build(); ProtobufJsonFormat.write(protobuf, JsonWriter.of(new StringWriter())); } @Test - public void do_not_convert_absent_primitive_fields() { + public void do_not_write_null_primitive_fields() { PrimitiveTypeMsg msg = PrimitiveTypeMsg.newBuilder().build(); // fields are absent @@ -75,7 +83,7 @@ public class ProtobufJsonFormatTest { } @Test - public void convert_empty_string() { + public void write_empty_string() { PrimitiveTypeMsg msg = PrimitiveTypeMsg.newBuilder().setStringField("").build(); // field is present @@ -86,76 +94,120 @@ public class ProtobufJsonFormatTest { } @Test - public void convert_arrays() { - ArrayFieldMsg msg = ArrayFieldMsg.newBuilder() + public void write_array() { + TestArray msg = TestArray.newBuilder() .addStrings("one").addStrings("two") - .addNesteds(org.sonar.core.test.Test.NestedMsg.newBuilder().setLabel("nestedOne")).addNesteds(org.sonar.core.test.Test.NestedMsg.newBuilder().setLabel("nestedTwo")) - .addNullableArray("nullableOne").addNullableArray("nullableTwo") + .addNesteds(NestedMsg.newBuilder().setLabel("nestedOne")).addNesteds(NestedMsg.newBuilder().setLabel("nestedTwo")) .build(); assertThat(toJson(msg)) - .isEqualTo("{\"strings\":[\"one\",\"two\"],\"nesteds\":[{\"label\":\"nestedOne\"},{\"label\":\"nestedTwo\"}],\"nullableArray\":[\"nullableOne\",\"nullableTwo\"]}"); + .isEqualTo("{\"strings\":[\"one\",\"two\"],\"nesteds\":[{\"label\":\"nestedOne\"},{\"label\":\"nestedTwo\"}]}"); } @Test - public void convert_empty_arrays() { - ArrayFieldMsg msg = ArrayFieldMsg.newBuilder() - .setNullableArrayPresentIfEmpty(true) - .build(); + public void write_empty_array() { + TestArray msg = TestArray.newBuilder().build(); - assertThat(toJson(msg)).isEqualTo("{\"strings\":[],\"nesteds\":[],\"nullableArray\":[]}"); + assertThat(toJson(msg)).isEqualTo("{\"strings\":[],\"nesteds\":[]}"); } @Test - public void do_not_convert_empty_array_marked_as_absent() { - ArrayFieldMsg msg = ArrayFieldMsg.newBuilder() - .setNullableArrayPresentIfEmpty(false) + public void do_not_write_null_wrapper_of_array() { + TestNullableArray msg = TestNullableArray.newBuilder() + .setLabel("world") .build(); - assertThat(msg.hasNullableArrayPresentIfEmpty()).isTrue(); - assertThat(msg.getNullableArrayPresentIfEmpty()).isFalse(); + assertThat(msg.hasCountries()).isFalse(); - // nullableArray does not appear - assertThat(toJson(msg)).isEqualTo("{\"strings\":[],\"nesteds\":[]}"); + // array wrapper is null + assertThat(toJson(msg)).isEqualTo("{\"label\":\"world\"}"); } @Test - public void convert_non_empty_array_even_if_not_marked_as_present() { - ArrayFieldMsg msg = ArrayFieldMsg.newBuilder() - .addNullableArray("foo") + public void inline_wrapper_of_array() { + TestNullableArray msg = TestNullableArray.newBuilder() + .setLabel("world") + .setCountries(Countries.newBuilder()) .build(); + assertThat(msg.hasCountries()).isTrue(); + assertThat(toJson(msg)).contains("\"label\":\"world\",\"countries\":[]"); - // repeated field "nullableArray" is present, but the boolean marker "nullableArrayPresentIfEmpty" - // is not set. - assertThat(msg.hasNullableArrayPresentIfEmpty()).isFalse(); - assertThat(msg.getNullableArrayPresentIfEmpty()).isFalse(); - - // JSON contains the array but not the boolean marker - assertThat(toJson(msg)).contains("\"nullableArray\":[\"foo\"]"); + msg = TestNullableArray.newBuilder() + .setLabel("world") + .setCountries(Countries.newBuilder().addCountries(Country.newBuilder().setName("France").setContinent("Europe"))) + .build(); + assertThat(msg.hasCountries()).isTrue(); + assertThat(toJson(msg)).contains("\"label\":\"world\",\"countries\":[{\"name\":\"France\",\"continent\":\"Europe\"}]"); } @Test - public void convert_map() { - MapMsg.Builder builder = MapMsg.newBuilder(); + public void write_map() { + TestMap.Builder builder = TestMap.newBuilder(); builder.getMutableStringMap().put("one", "un"); builder.getMutableStringMap().put("two", "deux"); - builder.getMutableNestedMap().put("three", org.sonar.core.test.Test.NestedMsg.newBuilder().setLabel("trois").build()); - builder.getMutableNestedMap().put("four", org.sonar.core.test.Test.NestedMsg.newBuilder().setLabel("quatre").build()); - builder.setNullableStringMapPresentIfEmpty(false); - assertThat(toJson(builder.build())) - .isEqualTo("{\"stringMap\":{\"one\":\"un\",\"two\":\"deux\"},\"nestedMap\":{\"three\":{\"label\":\"trois\"},\"four\":{\"label\":\"quatre\"}}}"); + builder.getMutableNestedMap().put("three", NestedMsg.newBuilder().setLabel("trois").build()); + builder.getMutableNestedMap().put("four", NestedMsg.newBuilder().setLabel("quatre").build()); + assertThat(toJson(builder.build())).isEqualTo( + "{\"stringMap\":{\"one\":\"un\",\"two\":\"deux\"},\"nestedMap\":{\"three\":{\"label\":\"trois\"},\"four\":{\"label\":\"quatre\"}}}"); + } + + @Test + public void write_empty_map() { + TestMap.Builder builder = TestMap.newBuilder(); + assertThat(toJson(builder.build())).isEqualTo("{\"stringMap\":{},\"nestedMap\":{}}"); + } + + @Test + public void do_not_write_null_wrapper_of_map() { + TestNullableMap msg = TestNullableMap.newBuilder() + .setLabel("world") + .build(); + assertThat(toJson(msg)).isEqualTo("{\"label\":\"world\"}"); } @Test - public void convert_empty_map() { - MapMsg msg = MapMsg.newBuilder().build(); - assertThat(toJson(msg)).isEqualTo("{\"stringMap\":{},\"nestedMap\":{}}"); + public void inline_wrapper_of_map() { + TestNullableMap msg = TestNullableMap.newBuilder() + .setLabel("world") + .setTranslations(Translations.newBuilder()) + .build(); + assertThat(toJson(msg)).isEqualTo("{\"label\":\"world\",\"translations\":{}}"); + + Translations.Builder translationsBuilder = Translations.newBuilder(); + translationsBuilder.getMutableTranslations().put("one", "un"); + translationsBuilder.getMutableTranslations().put("two", "deux"); + msg = TestNullableMap.newBuilder() + .setLabel("world") + .setTranslations(translationsBuilder) + .build(); + assertThat(toJson(msg)).isEqualTo("{\"label\":\"world\",\"translations\":{\"one\":\"un\",\"two\":\"deux\"}}"); + } + + @Test + public void write_map_of_arrays() throws Exception { + // this is a trick to have arrays in map values + TestMapOfArray.Builder msg = TestMapOfArray.newBuilder(); + + // wrapper over array + Countries europe = Countries.newBuilder() + .addCountries(Country.newBuilder().setContinent("Europe").setName("France")) + .addCountries(Country.newBuilder().setContinent("Europe").setName("Germany")) + .build(); + msg.getMutableMoneys().put("eur", europe); + assertThat(toJson(msg.build())).isEqualTo("{\"moneys\":{\"eur\":[{\"name\":\"France\",\"continent\":\"Europe\"},{\"name\":\"Germany\",\"continent\":\"Europe\"}]}}"); } @Test - public void convert_nullable_empty_map_if_marked_as_present() { - MapMsg msg = MapMsg.newBuilder().setNullableStringMapPresentIfEmpty(true).build(); - assertThat(toJson(msg)).isEqualTo("{\"stringMap\":{},\"nestedMap\":{},\"nullableStringMap\":{}}"); + public void write_map_of_map() throws Exception { + // this is a trick to have maps in map values + TestMapOfMap.Builder msg = TestMapOfMap.newBuilder(); + + // wrapper over map + Translations.Builder translationsBuilder = Translations.newBuilder(); + translationsBuilder.getMutableTranslations().put("one", "un"); + translationsBuilder.getMutableTranslations().put("two", "deux"); + msg.getMutableCatalogs().put("numbers", translationsBuilder.build()); + assertThat(toJson(msg.build())).isEqualTo("{\"catalogs\":{\"numbers\":{\"one\":\"un\",\"two\":\"deux\"}}}"); } @Test diff --git a/sonar-core/src/test/protobuf/test.proto b/sonar-core/src/test/protobuf/test.proto index fc86fe39521..5b55eded0e7 100644 --- a/sonar-core/src/test/protobuf/test.proto +++ b/sonar-core/src/test/protobuf/test.proto @@ -45,24 +45,53 @@ message PrimitiveTypeMsg { optional NestedMsg nested = 8; } -message ArrayFieldMsg { +message TestArray { repeated string strings = 1; repeated NestedMsg nesteds = 2; - - // naming convention. A boolean field is used - // to know if the repeated field is present. - optional bool nullableArrayPresentIfEmpty = 3; - repeated string nullableArray = 4; } message NestedMsg { optional string label = 1; } -message MapMsg { +message TestMap { map stringMap = 1; map nestedMap = 2; +} + +message TestNullableArray { + optional string label = 1; + + // allow to make the difference between null and empty array + optional Countries countries = 2; +} + +message TestNullableMap { + optional string label = 1; + + // allow to make the difference between null and empty map + optional Translations translations = 2; +} + +message TestMapOfArray { + // allow to have map values of arrays + map moneys = 1; +} + +message TestMapOfMap { + // allow to have map values of maps + map catalogs = 1; +} + +message Translations { + map translations = 1; +} + +message Countries { + repeated Country countries = 1; +} - optional bool nullableStringMapPresentIfEmpty = 3; - map nullableStringMap = 4; +message Country { + optional string name = 1; + optional string continent = 2; } 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 7483d52b914..e054fdcd978 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 @@ -1650,47 +1650,47 @@ public final class Common { } - public interface FacetValueOrBuilder extends - // @@protoc_insertion_point(interface_extends:sonarqube.ws.commons.FacetValue) + public interface FacetsOrBuilder extends + // @@protoc_insertion_point(interface_extends:sonarqube.ws.commons.Facets) com.google.protobuf.MessageOrBuilder { /** - * optional string val = 1; + * repeated .sonarqube.ws.commons.Facet facets = 1; */ - boolean hasVal(); + java.util.List + getFacetsList(); /** - * optional string val = 1; + * repeated .sonarqube.ws.commons.Facet facets = 1; */ - java.lang.String getVal(); + org.sonarqube.ws.Common.Facet getFacets(int index); /** - * optional string val = 1; + * repeated .sonarqube.ws.commons.Facet facets = 1; */ - com.google.protobuf.ByteString - getValBytes(); - + int getFacetsCount(); /** - * optional int64 count = 2; + * repeated .sonarqube.ws.commons.Facet facets = 1; */ - boolean hasCount(); + java.util.List + getFacetsOrBuilderList(); /** - * optional int64 count = 2; + * repeated .sonarqube.ws.commons.Facet facets = 1; */ - long getCount(); + org.sonarqube.ws.Common.FacetOrBuilder getFacetsOrBuilder( + int index); } /** - * Protobuf type {@code sonarqube.ws.commons.FacetValue} + * Protobuf type {@code sonarqube.ws.commons.Facets} */ - public static final class FacetValue extends + public static final class Facets extends com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:sonarqube.ws.commons.FacetValue) - FacetValueOrBuilder { - // Use FacetValue.newBuilder() to construct. - private FacetValue(com.google.protobuf.GeneratedMessage.Builder builder) { + // @@protoc_insertion_point(message_implements:sonarqube.ws.commons.Facets) + FacetsOrBuilder { + // Use Facets.newBuilder() to construct. + private Facets(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } - private FacetValue() { - val_ = ""; - count_ = 0L; + private Facets() { + facets_ = java.util.Collections.emptyList(); } @java.lang.Override @@ -1698,7 +1698,7 @@ public final class Common { getUnknownFields() { return this.unknownFields; } - private FacetValue( + private Facets( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) { this(); @@ -1721,14 +1721,11 @@ public final class Common { break; } case 10: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000001; - val_ = bs; - break; - } - case 16: { - bitField0_ |= 0x00000002; - count_ = input.readInt64(); + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + facets_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + facets_.add(input.readMessage(org.sonarqube.ws.Common.Facet.PARSER, extensionRegistry)); break; } } @@ -1740,78 +1737,58 @@ public final class Common { new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this)); } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + facets_ = java.util.Collections.unmodifiableList(facets_); + } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.sonarqube.ws.Common.internal_static_sonarqube_ws_commons_FacetValue_descriptor; + return org.sonarqube.ws.Common.internal_static_sonarqube_ws_commons_Facets_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.sonarqube.ws.Common.internal_static_sonarqube_ws_commons_FacetValue_fieldAccessorTable + return org.sonarqube.ws.Common.internal_static_sonarqube_ws_commons_Facets_fieldAccessorTable .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Common.FacetValue.class, org.sonarqube.ws.Common.FacetValue.Builder.class); + org.sonarqube.ws.Common.Facets.class, org.sonarqube.ws.Common.Facets.Builder.class); } - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private volatile java.lang.Object val_; + public static final int FACETS_FIELD_NUMBER = 1; + private java.util.List facets_; /** - * optional string val = 1; + * repeated .sonarqube.ws.commons.Facet facets = 1; */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) == 0x00000001); + public java.util.List getFacetsList() { + return facets_; } /** - * optional string val = 1; + * repeated .sonarqube.ws.commons.Facet facets = 1; */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - 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()) { - val_ = s; - } - return s; - } + public java.util.List + getFacetsOrBuilderList() { + return facets_; } /** - * optional string val = 1; + * repeated .sonarqube.ws.commons.Facet facets = 1; */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public int getFacetsCount() { + return facets_.size(); } - - public static final int COUNT_FIELD_NUMBER = 2; - private long count_; /** - * optional int64 count = 2; + * repeated .sonarqube.ws.commons.Facet facets = 1; */ - public boolean hasCount() { - return ((bitField0_ & 0x00000002) == 0x00000002); + public org.sonarqube.ws.Common.Facet getFacets(int index) { + return facets_.get(index); } /** - * optional int64 count = 2; + * repeated .sonarqube.ws.commons.Facet facets = 1; */ - public long getCount() { - return count_; + public org.sonarqube.ws.Common.FacetOrBuilder getFacetsOrBuilder( + int index) { + return facets_.get(index); } private byte memoizedIsInitialized = -1; @@ -1826,11 +1803,8 @@ public final class Common { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getValBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeInt64(2, count_); + for (int i = 0; i < facets_.size(); i++) { + output.writeMessage(1, facets_.get(i)); } unknownFields.writeTo(output); } @@ -1841,13 +1815,9 @@ public final class Common { if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getValBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + for (int i = 0; i < facets_.size(); i++) { size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, count_); + .computeMessageSize(1, facets_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; @@ -1855,53 +1825,53 @@ public final class Common { } private static final long serialVersionUID = 0L; - public static org.sonarqube.ws.Common.FacetValue parseFrom( + public static org.sonarqube.ws.Common.Facets parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.sonarqube.ws.Common.FacetValue parseFrom( + public static org.sonarqube.ws.Common.Facets 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.Common.FacetValue parseFrom(byte[] data) + public static org.sonarqube.ws.Common.Facets parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.sonarqube.ws.Common.FacetValue parseFrom( + public static org.sonarqube.ws.Common.Facets parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.sonarqube.ws.Common.FacetValue parseFrom(java.io.InputStream input) + public static org.sonarqube.ws.Common.Facets parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } - public static org.sonarqube.ws.Common.FacetValue parseFrom( + public static org.sonarqube.ws.Common.Facets parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } - public static org.sonarqube.ws.Common.FacetValue parseDelimitedFrom(java.io.InputStream input) + public static org.sonarqube.ws.Common.Facets parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } - public static org.sonarqube.ws.Common.FacetValue parseDelimitedFrom( + public static org.sonarqube.ws.Common.Facets parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } - public static org.sonarqube.ws.Common.FacetValue parseFrom( + public static org.sonarqube.ws.Common.Facets parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } - public static org.sonarqube.ws.Common.FacetValue parseFrom( + public static org.sonarqube.ws.Common.Facets parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -1912,7 +1882,7 @@ public final class Common { public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(org.sonarqube.ws.Common.FacetValue prototype) { + public static Builder newBuilder(org.sonarqube.ws.Common.Facets prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { @@ -1927,25 +1897,25 @@ public final class Common { return builder; } /** - * Protobuf type {@code sonarqube.ws.commons.FacetValue} + * Protobuf type {@code sonarqube.ws.commons.Facets} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:sonarqube.ws.commons.FacetValue) - org.sonarqube.ws.Common.FacetValueOrBuilder { + // @@protoc_insertion_point(builder_implements:sonarqube.ws.commons.Facets) + org.sonarqube.ws.Common.FacetsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.sonarqube.ws.Common.internal_static_sonarqube_ws_commons_FacetValue_descriptor; + return org.sonarqube.ws.Common.internal_static_sonarqube_ws_commons_Facets_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.sonarqube.ws.Common.internal_static_sonarqube_ws_commons_FacetValue_fieldAccessorTable + return org.sonarqube.ws.Common.internal_static_sonarqube_ws_commons_Facets_fieldAccessorTable .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Common.FacetValue.class, org.sonarqube.ws.Common.FacetValue.Builder.class); + org.sonarqube.ws.Common.Facets.class, org.sonarqube.ws.Common.Facets.Builder.class); } - // Construct using org.sonarqube.ws.Common.FacetValue.newBuilder() + // Construct using org.sonarqube.ws.Common.Facets.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -1957,69 +1927,89 @@ public final class Common { } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + getFacetsFieldBuilder(); } } public Builder clear() { super.clear(); - val_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - count_ = 0L; - bitField0_ = (bitField0_ & ~0x00000002); + if (facetsBuilder_ == null) { + facets_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + facetsBuilder_.clear(); + } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.sonarqube.ws.Common.internal_static_sonarqube_ws_commons_FacetValue_descriptor; + return org.sonarqube.ws.Common.internal_static_sonarqube_ws_commons_Facets_descriptor; } - public org.sonarqube.ws.Common.FacetValue getDefaultInstanceForType() { - return org.sonarqube.ws.Common.FacetValue.getDefaultInstance(); + public org.sonarqube.ws.Common.Facets getDefaultInstanceForType() { + return org.sonarqube.ws.Common.Facets.getDefaultInstance(); } - public org.sonarqube.ws.Common.FacetValue build() { - org.sonarqube.ws.Common.FacetValue result = buildPartial(); + public org.sonarqube.ws.Common.Facets build() { + org.sonarqube.ws.Common.Facets result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } - public org.sonarqube.ws.Common.FacetValue buildPartial() { - org.sonarqube.ws.Common.FacetValue result = new org.sonarqube.ws.Common.FacetValue(this); + public org.sonarqube.ws.Common.Facets buildPartial() { + org.sonarqube.ws.Common.Facets result = new org.sonarqube.ws.Common.Facets(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.val_ = val_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; + if (facetsBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + facets_ = java.util.Collections.unmodifiableList(facets_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.facets_ = facets_; + } else { + result.facets_ = facetsBuilder_.build(); } - result.count_ = count_; - result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonarqube.ws.Common.FacetValue) { - return mergeFrom((org.sonarqube.ws.Common.FacetValue)other); + if (other instanceof org.sonarqube.ws.Common.Facets) { + return mergeFrom((org.sonarqube.ws.Common.Facets)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(org.sonarqube.ws.Common.FacetValue other) { - if (other == org.sonarqube.ws.Common.FacetValue.getDefaultInstance()) return this; - if (other.hasVal()) { - bitField0_ |= 0x00000001; - val_ = other.val_; - onChanged(); - } - if (other.hasCount()) { - setCount(other.getCount()); + public Builder mergeFrom(org.sonarqube.ws.Common.Facets other) { + if (other == org.sonarqube.ws.Common.Facets.getDefaultInstance()) return this; + if (facetsBuilder_ == null) { + if (!other.facets_.isEmpty()) { + if (facets_.isEmpty()) { + facets_ = other.facets_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureFacetsIsMutable(); + facets_.addAll(other.facets_); + } + onChanged(); + } + } else { + if (!other.facets_.isEmpty()) { + if (facetsBuilder_.isEmpty()) { + facetsBuilder_.dispose(); + facetsBuilder_ = null; + facets_ = other.facets_; + bitField0_ = (bitField0_ & ~0x00000001); + facetsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getFacetsFieldBuilder() : null; + } else { + facetsBuilder_.addAllMessages(other.facets_); + } + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -2034,11 +2024,11 @@ public final class Common { com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - org.sonarqube.ws.Common.FacetValue parsedMessage = null; + org.sonarqube.ws.Common.Facets parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonarqube.ws.Common.FacetValue) e.getUnfinishedMessage(); + parsedMessage = (org.sonarqube.ws.Common.Facets) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { @@ -2049,135 +2039,267 @@ public final class Common { } private int bitField0_; - private java.lang.Object val_ = ""; - /** - * optional string val = 1; - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) == 0x00000001); + private java.util.List facets_ = + java.util.Collections.emptyList(); + private void ensureFacetsIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + facets_ = new java.util.ArrayList(facets_); + bitField0_ |= 0x00000001; + } } + + private com.google.protobuf.RepeatedFieldBuilder< + org.sonarqube.ws.Common.Facet, org.sonarqube.ws.Common.Facet.Builder, org.sonarqube.ws.Common.FacetOrBuilder> facetsBuilder_; + /** - * optional string val = 1; + * repeated .sonarqube.ws.commons.Facet facets = 1; */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - 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()) { - val_ = s; - } - return s; + public java.util.List getFacetsList() { + if (facetsBuilder_ == null) { + return java.util.Collections.unmodifiableList(facets_); } else { - return (java.lang.String) ref; + return facetsBuilder_.getMessageList(); } } /** - * optional string val = 1; + * repeated .sonarqube.ws.commons.Facet facets = 1; */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; + public int getFacetsCount() { + if (facetsBuilder_ == null) { + return facets_.size(); } else { - return (com.google.protobuf.ByteString) ref; + return facetsBuilder_.getCount(); } } /** - * optional string val = 1; + * repeated .sonarqube.ws.commons.Facet facets = 1; */ - public Builder setVal( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - val_ = value; - onChanged(); - return this; + public org.sonarqube.ws.Common.Facet getFacets(int index) { + if (facetsBuilder_ == null) { + return facets_.get(index); + } else { + return facetsBuilder_.getMessage(index); + } } /** - * optional string val = 1; + * repeated .sonarqube.ws.commons.Facet facets = 1; */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = getDefaultInstance().getVal(); - onChanged(); + public Builder setFacets( + int index, org.sonarqube.ws.Common.Facet value) { + if (facetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFacetsIsMutable(); + facets_.set(index, value); + onChanged(); + } else { + facetsBuilder_.setMessage(index, value); + } return this; } /** - * optional string val = 1; + * repeated .sonarqube.ws.commons.Facet facets = 1; */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - val_ = value; - onChanged(); + public Builder setFacets( + int index, org.sonarqube.ws.Common.Facet.Builder builderForValue) { + if (facetsBuilder_ == null) { + ensureFacetsIsMutable(); + facets_.set(index, builderForValue.build()); + onChanged(); + } else { + facetsBuilder_.setMessage(index, builderForValue.build()); + } return this; } - - private long count_ ; /** - * optional int64 count = 2; + * repeated .sonarqube.ws.commons.Facet facets = 1; */ - public boolean hasCount() { - return ((bitField0_ & 0x00000002) == 0x00000002); + public Builder addFacets(org.sonarqube.ws.Common.Facet value) { + if (facetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFacetsIsMutable(); + facets_.add(value); + onChanged(); + } else { + facetsBuilder_.addMessage(value); + } + return this; } /** - * optional int64 count = 2; + * repeated .sonarqube.ws.commons.Facet facets = 1; */ - public long getCount() { - return count_; + public Builder addFacets( + int index, org.sonarqube.ws.Common.Facet value) { + if (facetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFacetsIsMutable(); + facets_.add(index, value); + onChanged(); + } else { + facetsBuilder_.addMessage(index, value); + } + return this; } /** - * optional int64 count = 2; + * repeated .sonarqube.ws.commons.Facet facets = 1; */ - public Builder setCount(long value) { - bitField0_ |= 0x00000002; - count_ = value; - onChanged(); + public Builder addFacets( + org.sonarqube.ws.Common.Facet.Builder builderForValue) { + if (facetsBuilder_ == null) { + ensureFacetsIsMutable(); + facets_.add(builderForValue.build()); + onChanged(); + } else { + facetsBuilder_.addMessage(builderForValue.build()); + } return this; } /** - * optional int64 count = 2; + * repeated .sonarqube.ws.commons.Facet facets = 1; */ - public Builder clearCount() { - bitField0_ = (bitField0_ & ~0x00000002); - count_ = 0L; - onChanged(); + public Builder addFacets( + int index, org.sonarqube.ws.Common.Facet.Builder builderForValue) { + if (facetsBuilder_ == null) { + ensureFacetsIsMutable(); + facets_.add(index, builderForValue.build()); + onChanged(); + } else { + facetsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .sonarqube.ws.commons.Facet facets = 1; + */ + public Builder addAllFacets( + java.lang.Iterable values) { + if (facetsBuilder_ == null) { + ensureFacetsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, facets_); + onChanged(); + } else { + facetsBuilder_.addAllMessages(values); + } return this; } + /** + * repeated .sonarqube.ws.commons.Facet facets = 1; + */ + public Builder clearFacets() { + if (facetsBuilder_ == null) { + facets_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + facetsBuilder_.clear(); + } + return this; + } + /** + * repeated .sonarqube.ws.commons.Facet facets = 1; + */ + public Builder removeFacets(int index) { + if (facetsBuilder_ == null) { + ensureFacetsIsMutable(); + facets_.remove(index); + onChanged(); + } else { + facetsBuilder_.remove(index); + } + return this; + } + /** + * repeated .sonarqube.ws.commons.Facet facets = 1; + */ + public org.sonarqube.ws.Common.Facet.Builder getFacetsBuilder( + int index) { + return getFacetsFieldBuilder().getBuilder(index); + } + /** + * repeated .sonarqube.ws.commons.Facet facets = 1; + */ + public org.sonarqube.ws.Common.FacetOrBuilder getFacetsOrBuilder( + int index) { + if (facetsBuilder_ == null) { + return facets_.get(index); } else { + return facetsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .sonarqube.ws.commons.Facet facets = 1; + */ + public java.util.List + getFacetsOrBuilderList() { + if (facetsBuilder_ != null) { + return facetsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(facets_); + } + } + /** + * repeated .sonarqube.ws.commons.Facet facets = 1; + */ + public org.sonarqube.ws.Common.Facet.Builder addFacetsBuilder() { + return getFacetsFieldBuilder().addBuilder( + org.sonarqube.ws.Common.Facet.getDefaultInstance()); + } + /** + * repeated .sonarqube.ws.commons.Facet facets = 1; + */ + public org.sonarqube.ws.Common.Facet.Builder addFacetsBuilder( + int index) { + return getFacetsFieldBuilder().addBuilder( + index, org.sonarqube.ws.Common.Facet.getDefaultInstance()); + } + /** + * repeated .sonarqube.ws.commons.Facet facets = 1; + */ + public java.util.List + getFacetsBuilderList() { + return getFacetsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + org.sonarqube.ws.Common.Facet, org.sonarqube.ws.Common.Facet.Builder, org.sonarqube.ws.Common.FacetOrBuilder> + getFacetsFieldBuilder() { + if (facetsBuilder_ == null) { + facetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + org.sonarqube.ws.Common.Facet, org.sonarqube.ws.Common.Facet.Builder, org.sonarqube.ws.Common.FacetOrBuilder>( + facets_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + facets_ = null; + } + return facetsBuilder_; + } - // @@protoc_insertion_point(builder_scope:sonarqube.ws.commons.FacetValue) + // @@protoc_insertion_point(builder_scope:sonarqube.ws.commons.Facets) } - // @@protoc_insertion_point(class_scope:sonarqube.ws.commons.FacetValue) - private static final org.sonarqube.ws.Common.FacetValue DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:sonarqube.ws.commons.Facets) + private static final org.sonarqube.ws.Common.Facets DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new org.sonarqube.ws.Common.FacetValue(); + DEFAULT_INSTANCE = new org.sonarqube.ws.Common.Facets(); } - public static org.sonarqube.ws.Common.FacetValue getDefaultInstance() { + public static org.sonarqube.ws.Common.Facets getDefaultInstance() { return DEFAULT_INSTANCE; } - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public FacetValue parsePartialFrom( + public static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public Facets parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { try { - return new FacetValue(input, extensionRegistry); + return new Facets(input, extensionRegistry); } catch (RuntimeException e) { if (e.getCause() instanceof com.google.protobuf.InvalidProtocolBufferException) { @@ -2190,102 +2312,57 @@ public final class Common { }; @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } - public org.sonarqube.ws.Common.FacetValue getDefaultInstanceForType() { + public org.sonarqube.ws.Common.Facets getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface RuleOrBuilder extends - // @@protoc_insertion_point(interface_extends:sonarqube.ws.commons.Rule) + public interface FacetValueOrBuilder extends + // @@protoc_insertion_point(interface_extends:sonarqube.ws.commons.FacetValue) com.google.protobuf.MessageOrBuilder { /** - * optional string key = 1; - */ - boolean hasKey(); - /** - * optional string key = 1; - */ - java.lang.String getKey(); - /** - * optional string key = 1; - */ - com.google.protobuf.ByteString - getKeyBytes(); - - /** - * optional string name = 2; - */ - boolean hasName(); - /** - * optional string name = 2; - */ - java.lang.String getName(); - /** - * optional string name = 2; - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - * optional string lang = 3; + * optional string val = 1; */ - boolean hasLang(); + boolean hasVal(); /** - * optional string lang = 3; + * optional string val = 1; */ - java.lang.String getLang(); + java.lang.String getVal(); /** - * optional string lang = 3; + * optional string val = 1; */ com.google.protobuf.ByteString - getLangBytes(); - - /** - * optional .sonarqube.ws.commons.RuleStatus status = 4; - */ - boolean hasStatus(); - /** - * optional .sonarqube.ws.commons.RuleStatus status = 4; - */ - org.sonarqube.ws.Common.RuleStatus getStatus(); + getValBytes(); /** - * optional string langName = 5; - */ - boolean hasLangName(); - /** - * optional string langName = 5; + * optional int64 count = 2; */ - java.lang.String getLangName(); + boolean hasCount(); /** - * optional string langName = 5; + * optional int64 count = 2; */ - com.google.protobuf.ByteString - getLangNameBytes(); + long getCount(); } /** - * Protobuf type {@code sonarqube.ws.commons.Rule} + * Protobuf type {@code sonarqube.ws.commons.FacetValue} */ - public static final class Rule extends + public static final class FacetValue extends com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:sonarqube.ws.commons.Rule) - RuleOrBuilder { - // Use Rule.newBuilder() to construct. - private Rule(com.google.protobuf.GeneratedMessage.Builder builder) { + // @@protoc_insertion_point(message_implements:sonarqube.ws.commons.FacetValue) + FacetValueOrBuilder { + // Use FacetValue.newBuilder() to construct. + private FacetValue(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } - private Rule() { - key_ = ""; - name_ = ""; - lang_ = ""; - status_ = 0; - langName_ = ""; + private FacetValue() { + val_ = ""; + count_ = 0L; } @java.lang.Override @@ -2293,7 +2370,7 @@ public final class Common { getUnknownFields() { return this.unknownFields; } - private Rule( + private FacetValue( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) { this(); @@ -2318,36 +2395,12 @@ public final class Common { case 10: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; - key_ = bs; + val_ = bs; break; } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); + case 16: { bitField0_ |= 0x00000002; - name_ = bs; - break; - } - case 26: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000004; - lang_ = bs; - break; - } - case 32: { - int rawValue = input.readEnum(); - org.sonarqube.ws.Common.RuleStatus value = org.sonarqube.ws.Common.RuleStatus.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(4, rawValue); - } else { - bitField0_ |= 0x00000008; - status_ = rawValue; - } - break; - } - case 42: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000010; - langName_ = bs; + count_ = input.readInt64(); break; } } @@ -2365,30 +2418,30 @@ public final class Common { } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.sonarqube.ws.Common.internal_static_sonarqube_ws_commons_Rule_descriptor; + return org.sonarqube.ws.Common.internal_static_sonarqube_ws_commons_FacetValue_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.sonarqube.ws.Common.internal_static_sonarqube_ws_commons_Rule_fieldAccessorTable + return org.sonarqube.ws.Common.internal_static_sonarqube_ws_commons_FacetValue_fieldAccessorTable .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Common.Rule.class, org.sonarqube.ws.Common.Rule.Builder.class); + org.sonarqube.ws.Common.FacetValue.class, org.sonarqube.ws.Common.FacetValue.Builder.class); } private int bitField0_; - public static final int KEY_FIELD_NUMBER = 1; - private volatile java.lang.Object key_; + public static final int VAL_FIELD_NUMBER = 1; + private volatile java.lang.Object val_; /** - * optional string key = 1; + * optional string val = 1; */ - public boolean hasKey() { + public boolean hasVal() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** - * optional string key = 1; + * optional string val = 1; */ - public java.lang.String getKey() { - java.lang.Object ref = key_; + public java.lang.String getVal() { + java.lang.Object ref = val_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { @@ -2396,168 +2449,41 @@ public final class Common { (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { - key_ = s; + val_ = s; } return s; } } /** - * optional string key = 1; + * optional string val = 1; */ public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; + getValBytes() { + java.lang.Object ref = val_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - key_ = b; + val_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - public static final int NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object name_; + public static final int COUNT_FIELD_NUMBER = 2; + private long count_; /** - * optional string name = 2; + * optional int64 count = 2; */ - public boolean hasName() { + public boolean hasCount() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** - * optional string name = 2; + * optional int64 count = 2; */ - public java.lang.String getName() { - java.lang.Object ref = name_; - 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()) { - name_ = s; - } - return s; - } - } - /** - * optional string name = 2; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int LANG_FIELD_NUMBER = 3; - private volatile java.lang.Object lang_; - /** - * optional string lang = 3; - */ - public boolean hasLang() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional string lang = 3; - */ - public java.lang.String getLang() { - java.lang.Object ref = lang_; - 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()) { - lang_ = s; - } - return s; - } - } - /** - * optional string lang = 3; - */ - public com.google.protobuf.ByteString - getLangBytes() { - java.lang.Object ref = lang_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - lang_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int STATUS_FIELD_NUMBER = 4; - private int status_; - /** - * optional .sonarqube.ws.commons.RuleStatus status = 4; - */ - public boolean hasStatus() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional .sonarqube.ws.commons.RuleStatus status = 4; - */ - public org.sonarqube.ws.Common.RuleStatus getStatus() { - org.sonarqube.ws.Common.RuleStatus result = org.sonarqube.ws.Common.RuleStatus.valueOf(status_); - return result == null ? org.sonarqube.ws.Common.RuleStatus.BETA : result; - } - - public static final int LANGNAME_FIELD_NUMBER = 5; - private volatile java.lang.Object langName_; - /** - * optional string langName = 5; - */ - public boolean hasLangName() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - /** - * optional string langName = 5; - */ - public java.lang.String getLangName() { - java.lang.Object ref = langName_; - 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()) { - langName_ = s; - } - return s; - } - } - /** - * optional string langName = 5; - */ - public com.google.protobuf.ByteString - getLangNameBytes() { - java.lang.Object ref = langName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - langName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public long getCount() { + return count_; } private byte memoizedIsInitialized = -1; @@ -2573,19 +2499,10 @@ public final class Common { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getKeyBytes()); + output.writeBytes(1, getValBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getNameBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, getLangBytes()); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeEnum(4, status_); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeBytes(5, getLangNameBytes()); + output.writeInt64(2, count_); } unknownFields.writeTo(output); } @@ -2598,23 +2515,11 @@ public final class Common { size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getKeyBytes()); + .computeBytesSize(1, getValBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getNameBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getLangBytes()); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, status_); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(5, getLangNameBytes()); + .computeInt64Size(2, count_); } size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; @@ -2622,53 +2527,53 @@ public final class Common { } private static final long serialVersionUID = 0L; - public static org.sonarqube.ws.Common.Rule parseFrom( + public static org.sonarqube.ws.Common.FacetValue parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.sonarqube.ws.Common.Rule parseFrom( + public static org.sonarqube.ws.Common.FacetValue 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.Common.Rule parseFrom(byte[] data) + public static org.sonarqube.ws.Common.FacetValue parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.sonarqube.ws.Common.Rule parseFrom( + public static org.sonarqube.ws.Common.FacetValue parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.sonarqube.ws.Common.Rule parseFrom(java.io.InputStream input) + public static org.sonarqube.ws.Common.FacetValue parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } - public static org.sonarqube.ws.Common.Rule parseFrom( + public static org.sonarqube.ws.Common.FacetValue parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } - public static org.sonarqube.ws.Common.Rule parseDelimitedFrom(java.io.InputStream input) + public static org.sonarqube.ws.Common.FacetValue parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } - public static org.sonarqube.ws.Common.Rule parseDelimitedFrom( + public static org.sonarqube.ws.Common.FacetValue parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } - public static org.sonarqube.ws.Common.Rule parseFrom( + public static org.sonarqube.ws.Common.FacetValue parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } - public static org.sonarqube.ws.Common.Rule parseFrom( + public static org.sonarqube.ws.Common.FacetValue parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -2679,7 +2584,7 @@ public final class Common { public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(org.sonarqube.ws.Common.Rule prototype) { + public static Builder newBuilder(org.sonarqube.ws.Common.FacetValue prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { @@ -2694,25 +2599,25 @@ public final class Common { return builder; } /** - * Protobuf type {@code sonarqube.ws.commons.Rule} + * Protobuf type {@code sonarqube.ws.commons.FacetValue} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:sonarqube.ws.commons.Rule) - org.sonarqube.ws.Common.RuleOrBuilder { + // @@protoc_insertion_point(builder_implements:sonarqube.ws.commons.FacetValue) + org.sonarqube.ws.Common.FacetValueOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.sonarqube.ws.Common.internal_static_sonarqube_ws_commons_Rule_descriptor; + return org.sonarqube.ws.Common.internal_static_sonarqube_ws_commons_FacetValue_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.sonarqube.ws.Common.internal_static_sonarqube_ws_commons_Rule_fieldAccessorTable + return org.sonarqube.ws.Common.internal_static_sonarqube_ws_commons_FacetValue_fieldAccessorTable .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Common.Rule.class, org.sonarqube.ws.Common.Rule.Builder.class); + org.sonarqube.ws.Common.FacetValue.class, org.sonarqube.ws.Common.FacetValue.Builder.class); } - // Construct using org.sonarqube.ws.Common.Rule.newBuilder() + // Construct using org.sonarqube.ws.Common.FacetValue.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -2728,98 +2633,65 @@ public final class Common { } public Builder clear() { super.clear(); - key_ = ""; + val_ = ""; bitField0_ = (bitField0_ & ~0x00000001); - name_ = ""; + count_ = 0L; bitField0_ = (bitField0_ & ~0x00000002); - lang_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); - status_ = 0; - bitField0_ = (bitField0_ & ~0x00000008); - langName_ = ""; - bitField0_ = (bitField0_ & ~0x00000010); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.sonarqube.ws.Common.internal_static_sonarqube_ws_commons_Rule_descriptor; + return org.sonarqube.ws.Common.internal_static_sonarqube_ws_commons_FacetValue_descriptor; } - public org.sonarqube.ws.Common.Rule getDefaultInstanceForType() { - return org.sonarqube.ws.Common.Rule.getDefaultInstance(); + public org.sonarqube.ws.Common.FacetValue getDefaultInstanceForType() { + return org.sonarqube.ws.Common.FacetValue.getDefaultInstance(); } - public org.sonarqube.ws.Common.Rule build() { - org.sonarqube.ws.Common.Rule result = buildPartial(); + public org.sonarqube.ws.Common.FacetValue build() { + org.sonarqube.ws.Common.FacetValue result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } - public org.sonarqube.ws.Common.Rule buildPartial() { - org.sonarqube.ws.Common.Rule result = new org.sonarqube.ws.Common.Rule(this); + public org.sonarqube.ws.Common.FacetValue buildPartial() { + org.sonarqube.ws.Common.FacetValue result = new org.sonarqube.ws.Common.FacetValue(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } - result.key_ = key_; + result.val_ = val_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } - result.name_ = name_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.lang_ = lang_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } - result.status_ = status_; - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { - to_bitField0_ |= 0x00000010; - } - result.langName_ = langName_; + result.count_ = count_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonarqube.ws.Common.Rule) { - return mergeFrom((org.sonarqube.ws.Common.Rule)other); + if (other instanceof org.sonarqube.ws.Common.FacetValue) { + return mergeFrom((org.sonarqube.ws.Common.FacetValue)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(org.sonarqube.ws.Common.Rule other) { - if (other == org.sonarqube.ws.Common.Rule.getDefaultInstance()) return this; - if (other.hasKey()) { + public Builder mergeFrom(org.sonarqube.ws.Common.FacetValue other) { + if (other == org.sonarqube.ws.Common.FacetValue.getDefaultInstance()) return this; + if (other.hasVal()) { bitField0_ |= 0x00000001; - key_ = other.key_; - onChanged(); - } - if (other.hasName()) { - bitField0_ |= 0x00000002; - name_ = other.name_; - onChanged(); - } - if (other.hasLang()) { - bitField0_ |= 0x00000004; - lang_ = other.lang_; + val_ = other.val_; onChanged(); } - if (other.hasStatus()) { - setStatus(other.getStatus()); - } - if (other.hasLangName()) { - bitField0_ |= 0x00000010; - langName_ = other.langName_; - onChanged(); + if (other.hasCount()) { + setCount(other.getCount()); } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -2834,11 +2706,11 @@ public final class Common { com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - org.sonarqube.ws.Common.Rule parsedMessage = null; + org.sonarqube.ws.Common.FacetValue parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonarqube.ws.Common.Rule) e.getUnfinishedMessage(); + parsedMessage = (org.sonarqube.ws.Common.FacetValue) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { @@ -2849,100 +2721,2440 @@ public final class Common { } private int bitField0_; - private java.lang.Object key_ = ""; + private java.lang.Object val_ = ""; /** - * optional string key = 1; + * optional string val = 1; */ - public boolean hasKey() { + public boolean hasVal() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** - * optional string key = 1; + * optional string val = 1; */ - public java.lang.String getKey() { - java.lang.Object ref = key_; + public java.lang.String getVal() { + java.lang.Object ref = val_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { - key_ = s; + val_ = s; } return s; } else { return (java.lang.String) ref; } } - /** - * optional string key = 1; - */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; + /** + * optional string val = 1; + */ + public com.google.protobuf.ByteString + getValBytes() { + java.lang.Object ref = val_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + val_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string val = 1; + */ + public Builder setVal( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + val_ = value; + onChanged(); + return this; + } + /** + * optional string val = 1; + */ + public Builder clearVal() { + bitField0_ = (bitField0_ & ~0x00000001); + val_ = getDefaultInstance().getVal(); + onChanged(); + return this; + } + /** + * optional string val = 1; + */ + public Builder setValBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + val_ = value; + onChanged(); + return this; + } + + private long count_ ; + /** + * optional int64 count = 2; + */ + public boolean hasCount() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional int64 count = 2; + */ + public long getCount() { + return count_; + } + /** + * optional int64 count = 2; + */ + public Builder setCount(long value) { + bitField0_ |= 0x00000002; + count_ = value; + onChanged(); + return this; + } + /** + * optional int64 count = 2; + */ + public Builder clearCount() { + bitField0_ = (bitField0_ & ~0x00000002); + count_ = 0L; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:sonarqube.ws.commons.FacetValue) + } + + // @@protoc_insertion_point(class_scope:sonarqube.ws.commons.FacetValue) + private static final org.sonarqube.ws.Common.FacetValue DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.sonarqube.ws.Common.FacetValue(); + } + + public static org.sonarqube.ws.Common.FacetValue getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + public static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public FacetValue parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + try { + return new FacetValue(input, extensionRegistry); + } catch (RuntimeException e) { + if (e.getCause() instanceof + com.google.protobuf.InvalidProtocolBufferException) { + throw (com.google.protobuf.InvalidProtocolBufferException) + e.getCause(); + } + throw e; + } + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public org.sonarqube.ws.Common.FacetValue getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface RuleOrBuilder extends + // @@protoc_insertion_point(interface_extends:sonarqube.ws.commons.Rule) + com.google.protobuf.MessageOrBuilder { + + /** + * optional string key = 1; + */ + boolean hasKey(); + /** + * optional string key = 1; + */ + java.lang.String getKey(); + /** + * optional string key = 1; + */ + com.google.protobuf.ByteString + getKeyBytes(); + + /** + * optional string name = 2; + */ + boolean hasName(); + /** + * optional string name = 2; + */ + java.lang.String getName(); + /** + * optional string name = 2; + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + * optional string lang = 3; + */ + boolean hasLang(); + /** + * optional string lang = 3; + */ + java.lang.String getLang(); + /** + * optional string lang = 3; + */ + com.google.protobuf.ByteString + getLangBytes(); + + /** + * optional .sonarqube.ws.commons.RuleStatus status = 4; + */ + boolean hasStatus(); + /** + * optional .sonarqube.ws.commons.RuleStatus status = 4; + */ + org.sonarqube.ws.Common.RuleStatus getStatus(); + + /** + * optional string langName = 5; + */ + boolean hasLangName(); + /** + * optional string langName = 5; + */ + java.lang.String getLangName(); + /** + * optional string langName = 5; + */ + com.google.protobuf.ByteString + getLangNameBytes(); + } + /** + * Protobuf type {@code sonarqube.ws.commons.Rule} + */ + public static final class Rule extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:sonarqube.ws.commons.Rule) + RuleOrBuilder { + // Use Rule.newBuilder() to construct. + private Rule(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private Rule() { + key_ = ""; + name_ = ""; + lang_ = ""; + status_ = 0; + langName_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Rule( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) { + this(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000001; + key_ = bs; + break; + } + case 18: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000002; + name_ = bs; + break; + } + case 26: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000004; + lang_ = bs; + break; + } + case 32: { + int rawValue = input.readEnum(); + org.sonarqube.ws.Common.RuleStatus value = org.sonarqube.ws.Common.RuleStatus.valueOf(rawValue); + if (value == null) { + unknownFields.mergeVarintField(4, rawValue); + } else { + bitField0_ |= 0x00000008; + status_ = rawValue; + } + break; + } + case 42: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000010; + langName_ = bs; + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw new RuntimeException(e.setUnfinishedMessage(this)); + } catch (java.io.IOException e) { + throw new RuntimeException( + new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this)); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.sonarqube.ws.Common.internal_static_sonarqube_ws_commons_Rule_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.sonarqube.ws.Common.internal_static_sonarqube_ws_commons_Rule_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.sonarqube.ws.Common.Rule.class, org.sonarqube.ws.Common.Rule.Builder.class); + } + + private int bitField0_; + public static final int KEY_FIELD_NUMBER = 1; + private volatile java.lang.Object key_; + /** + * optional string key = 1; + */ + public boolean hasKey() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional string key = 1; + */ + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + key_ = s; + } + return s; + } + } + /** + * optional string key = 1; + */ + public com.google.protobuf.ByteString + getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object name_; + /** + * optional string name = 2; + */ + public boolean hasName() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional string name = 2; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + 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()) { + name_ = s; + } + return s; + } + } + /** + * optional string name = 2; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LANG_FIELD_NUMBER = 3; + private volatile java.lang.Object lang_; + /** + * optional string lang = 3; + */ + public boolean hasLang() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional string lang = 3; + */ + public java.lang.String getLang() { + java.lang.Object ref = lang_; + 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()) { + lang_ = s; + } + return s; + } + } + /** + * optional string lang = 3; + */ + public com.google.protobuf.ByteString + getLangBytes() { + java.lang.Object ref = lang_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + lang_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATUS_FIELD_NUMBER = 4; + private int status_; + /** + * optional .sonarqube.ws.commons.RuleStatus status = 4; + */ + public boolean hasStatus() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + * optional .sonarqube.ws.commons.RuleStatus status = 4; + */ + public org.sonarqube.ws.Common.RuleStatus getStatus() { + org.sonarqube.ws.Common.RuleStatus result = org.sonarqube.ws.Common.RuleStatus.valueOf(status_); + return result == null ? org.sonarqube.ws.Common.RuleStatus.BETA : result; + } + + public static final int LANGNAME_FIELD_NUMBER = 5; + private volatile java.lang.Object langName_; + /** + * optional string langName = 5; + */ + public boolean hasLangName() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + /** + * optional string langName = 5; + */ + public java.lang.String getLangName() { + java.lang.Object ref = langName_; + 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()) { + langName_ = s; + } + return s; + } + } + /** + * optional string langName = 5; + */ + public com.google.protobuf.ByteString + getLangNameBytes() { + java.lang.Object ref = langName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + langName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeBytes(1, getKeyBytes()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeBytes(2, getNameBytes()); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeBytes(3, getLangBytes()); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeEnum(4, status_); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + output.writeBytes(5, getLangNameBytes()); + } + unknownFields.writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, getKeyBytes()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, getNameBytes()); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(3, getLangBytes()); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, status_); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(5, getLangNameBytes()); + } + size += unknownFields.getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + public static org.sonarqube.ws.Common.Rule parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.sonarqube.ws.Common.Rule 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.Common.Rule parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.sonarqube.ws.Common.Rule parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.sonarqube.ws.Common.Rule parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.sonarqube.ws.Common.Rule parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static org.sonarqube.ws.Common.Rule parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static org.sonarqube.ws.Common.Rule parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static org.sonarqube.ws.Common.Rule parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.sonarqube.ws.Common.Rule parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.sonarqube.ws.Common.Rule prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(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.commons.Rule} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:sonarqube.ws.commons.Rule) + org.sonarqube.ws.Common.RuleOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.sonarqube.ws.Common.internal_static_sonarqube_ws_commons_Rule_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.sonarqube.ws.Common.internal_static_sonarqube_ws_commons_Rule_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.sonarqube.ws.Common.Rule.class, org.sonarqube.ws.Common.Rule.Builder.class); + } + + // Construct using org.sonarqube.ws.Common.Rule.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + key_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + name_ = ""; + bitField0_ = (bitField0_ & ~0x00000002); + lang_ = ""; + bitField0_ = (bitField0_ & ~0x00000004); + status_ = 0; + bitField0_ = (bitField0_ & ~0x00000008); + langName_ = ""; + bitField0_ = (bitField0_ & ~0x00000010); + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.sonarqube.ws.Common.internal_static_sonarqube_ws_commons_Rule_descriptor; + } + + public org.sonarqube.ws.Common.Rule getDefaultInstanceForType() { + return org.sonarqube.ws.Common.Rule.getDefaultInstance(); + } + + public org.sonarqube.ws.Common.Rule build() { + org.sonarqube.ws.Common.Rule result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.sonarqube.ws.Common.Rule buildPartial() { + org.sonarqube.ws.Common.Rule result = new org.sonarqube.ws.Common.Rule(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.key_ = key_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.name_ = name_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.lang_ = lang_; + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000008; + } + result.status_ = status_; + if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + to_bitField0_ |= 0x00000010; + } + result.langName_ = langName_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.sonarqube.ws.Common.Rule) { + return mergeFrom((org.sonarqube.ws.Common.Rule)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.sonarqube.ws.Common.Rule other) { + if (other == org.sonarqube.ws.Common.Rule.getDefaultInstance()) return this; + if (other.hasKey()) { + bitField0_ |= 0x00000001; + key_ = other.key_; + onChanged(); + } + if (other.hasName()) { + bitField0_ |= 0x00000002; + name_ = other.name_; + onChanged(); + } + if (other.hasLang()) { + bitField0_ |= 0x00000004; + lang_ = other.lang_; + onChanged(); + } + if (other.hasStatus()) { + setStatus(other.getStatus()); + } + if (other.hasLangName()) { + bitField0_ |= 0x00000010; + langName_ = other.langName_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + 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.Common.Rule parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.sonarqube.ws.Common.Rule) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object key_ = ""; + /** + * optional string key = 1; + */ + public boolean hasKey() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional string key = 1; + */ + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + key_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string key = 1; + */ + public com.google.protobuf.ByteString + getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string key = 1; + */ + public Builder setKey( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + key_ = value; + onChanged(); + return this; + } + /** + * optional string key = 1; + */ + public Builder clearKey() { + bitField0_ = (bitField0_ & ~0x00000001); + key_ = getDefaultInstance().getKey(); + onChanged(); + return this; + } + /** + * optional string key = 1; + */ + public Builder setKeyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + key_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + * optional string name = 2; + */ + public boolean hasName() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional string name = 2; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + name_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string name = 2; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string name = 2; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + name_ = value; + onChanged(); + return this; + } + /** + * optional string name = 2; + */ + public Builder clearName() { + bitField0_ = (bitField0_ & ~0x00000002); + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * optional string name = 2; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object lang_ = ""; + /** + * optional string lang = 3; + */ + public boolean hasLang() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional string lang = 3; + */ + public java.lang.String getLang() { + java.lang.Object ref = lang_; + 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()) { + lang_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string lang = 3; + */ + public com.google.protobuf.ByteString + getLangBytes() { + java.lang.Object ref = lang_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + lang_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string lang = 3; + */ + public Builder setLang( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + lang_ = value; + onChanged(); + return this; + } + /** + * optional string lang = 3; + */ + public Builder clearLang() { + bitField0_ = (bitField0_ & ~0x00000004); + lang_ = getDefaultInstance().getLang(); + onChanged(); + return this; + } + /** + * optional string lang = 3; + */ + public Builder setLangBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + lang_ = value; + onChanged(); + return this; + } + + private int status_ = 0; + /** + * optional .sonarqube.ws.commons.RuleStatus status = 4; + */ + public boolean hasStatus() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + * optional .sonarqube.ws.commons.RuleStatus status = 4; + */ + public org.sonarqube.ws.Common.RuleStatus getStatus() { + org.sonarqube.ws.Common.RuleStatus result = org.sonarqube.ws.Common.RuleStatus.valueOf(status_); + return result == null ? org.sonarqube.ws.Common.RuleStatus.BETA : result; + } + /** + * optional .sonarqube.ws.commons.RuleStatus status = 4; + */ + public Builder setStatus(org.sonarqube.ws.Common.RuleStatus value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + status_ = value.getNumber(); + onChanged(); + return this; + } + /** + * optional .sonarqube.ws.commons.RuleStatus status = 4; + */ + public Builder clearStatus() { + bitField0_ = (bitField0_ & ~0x00000008); + status_ = 0; + onChanged(); + return this; + } + + private java.lang.Object langName_ = ""; + /** + * optional string langName = 5; + */ + public boolean hasLangName() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + /** + * optional string langName = 5; + */ + public java.lang.String getLangName() { + java.lang.Object ref = langName_; + 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()) { + langName_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string langName = 5; + */ + public com.google.protobuf.ByteString + getLangNameBytes() { + java.lang.Object ref = langName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + langName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string langName = 5; + */ + public Builder setLangName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + langName_ = value; + onChanged(); + return this; + } + /** + * optional string langName = 5; + */ + public Builder clearLangName() { + bitField0_ = (bitField0_ & ~0x00000010); + langName_ = getDefaultInstance().getLangName(); + onChanged(); + return this; + } + /** + * optional string langName = 5; + */ + public Builder setLangNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + langName_ = value; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:sonarqube.ws.commons.Rule) + } + + // @@protoc_insertion_point(class_scope:sonarqube.ws.commons.Rule) + private static final org.sonarqube.ws.Common.Rule DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.sonarqube.ws.Common.Rule(); + } + + public static org.sonarqube.ws.Common.Rule getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + public static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public Rule parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + try { + return new Rule(input, extensionRegistry); + } catch (RuntimeException e) { + if (e.getCause() instanceof + com.google.protobuf.InvalidProtocolBufferException) { + throw (com.google.protobuf.InvalidProtocolBufferException) + e.getCause(); + } + throw e; + } + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public org.sonarqube.ws.Common.Rule getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface RulesOrBuilder extends + // @@protoc_insertion_point(interface_extends:sonarqube.ws.commons.Rules) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .sonarqube.ws.commons.Rule rules = 1; + */ + java.util.List + getRulesList(); + /** + * repeated .sonarqube.ws.commons.Rule rules = 1; + */ + org.sonarqube.ws.Common.Rule getRules(int index); + /** + * repeated .sonarqube.ws.commons.Rule rules = 1; + */ + int getRulesCount(); + /** + * repeated .sonarqube.ws.commons.Rule rules = 1; + */ + java.util.List + getRulesOrBuilderList(); + /** + * repeated .sonarqube.ws.commons.Rule rules = 1; + */ + org.sonarqube.ws.Common.RuleOrBuilder getRulesOrBuilder( + int index); + } + /** + * Protobuf type {@code sonarqube.ws.commons.Rules} + */ + public static final class Rules extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:sonarqube.ws.commons.Rules) + RulesOrBuilder { + // Use Rules.newBuilder() to construct. + private Rules(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private Rules() { + rules_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Rules( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) { + this(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + rules_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + rules_.add(input.readMessage(org.sonarqube.ws.Common.Rule.PARSER, extensionRegistry)); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw new RuntimeException(e.setUnfinishedMessage(this)); + } catch (java.io.IOException e) { + throw new RuntimeException( + new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this)); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + rules_ = java.util.Collections.unmodifiableList(rules_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.sonarqube.ws.Common.internal_static_sonarqube_ws_commons_Rules_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.sonarqube.ws.Common.internal_static_sonarqube_ws_commons_Rules_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.sonarqube.ws.Common.Rules.class, org.sonarqube.ws.Common.Rules.Builder.class); + } + + public static final int RULES_FIELD_NUMBER = 1; + private java.util.List rules_; + /** + * repeated .sonarqube.ws.commons.Rule rules = 1; + */ + public java.util.List getRulesList() { + return rules_; + } + /** + * repeated .sonarqube.ws.commons.Rule rules = 1; + */ + public java.util.List + getRulesOrBuilderList() { + return rules_; + } + /** + * repeated .sonarqube.ws.commons.Rule rules = 1; + */ + public int getRulesCount() { + return rules_.size(); + } + /** + * repeated .sonarqube.ws.commons.Rule rules = 1; + */ + public org.sonarqube.ws.Common.Rule getRules(int index) { + return rules_.get(index); + } + /** + * repeated .sonarqube.ws.commons.Rule rules = 1; + */ + public org.sonarqube.ws.Common.RuleOrBuilder getRulesOrBuilder( + int index) { + return rules_.get(index); + } + + 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 { + for (int i = 0; i < rules_.size(); i++) { + output.writeMessage(1, rules_.get(i)); + } + unknownFields.writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < rules_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, rules_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + public static org.sonarqube.ws.Common.Rules parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.sonarqube.ws.Common.Rules 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.Common.Rules parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.sonarqube.ws.Common.Rules parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.sonarqube.ws.Common.Rules parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.sonarqube.ws.Common.Rules parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static org.sonarqube.ws.Common.Rules parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static org.sonarqube.ws.Common.Rules parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static org.sonarqube.ws.Common.Rules parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.sonarqube.ws.Common.Rules parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.sonarqube.ws.Common.Rules prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(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.commons.Rules} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:sonarqube.ws.commons.Rules) + org.sonarqube.ws.Common.RulesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.sonarqube.ws.Common.internal_static_sonarqube_ws_commons_Rules_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.sonarqube.ws.Common.internal_static_sonarqube_ws_commons_Rules_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.sonarqube.ws.Common.Rules.class, org.sonarqube.ws.Common.Rules.Builder.class); + } + + // Construct using org.sonarqube.ws.Common.Rules.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + getRulesFieldBuilder(); + } + } + public Builder clear() { + super.clear(); + if (rulesBuilder_ == null) { + rules_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + rulesBuilder_.clear(); + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.sonarqube.ws.Common.internal_static_sonarqube_ws_commons_Rules_descriptor; + } + + public org.sonarqube.ws.Common.Rules getDefaultInstanceForType() { + return org.sonarqube.ws.Common.Rules.getDefaultInstance(); + } + + public org.sonarqube.ws.Common.Rules build() { + org.sonarqube.ws.Common.Rules result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.sonarqube.ws.Common.Rules buildPartial() { + org.sonarqube.ws.Common.Rules result = new org.sonarqube.ws.Common.Rules(this); + int from_bitField0_ = bitField0_; + if (rulesBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + rules_ = java.util.Collections.unmodifiableList(rules_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.rules_ = rules_; + } else { + result.rules_ = rulesBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.sonarqube.ws.Common.Rules) { + return mergeFrom((org.sonarqube.ws.Common.Rules)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.sonarqube.ws.Common.Rules other) { + if (other == org.sonarqube.ws.Common.Rules.getDefaultInstance()) return this; + if (rulesBuilder_ == null) { + if (!other.rules_.isEmpty()) { + if (rules_.isEmpty()) { + rules_ = other.rules_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureRulesIsMutable(); + rules_.addAll(other.rules_); + } + onChanged(); + } + } else { + if (!other.rules_.isEmpty()) { + if (rulesBuilder_.isEmpty()) { + rulesBuilder_.dispose(); + rulesBuilder_ = null; + rules_ = other.rules_; + bitField0_ = (bitField0_ & ~0x00000001); + rulesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getRulesFieldBuilder() : null; + } else { + rulesBuilder_.addAllMessages(other.rules_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + 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.Common.Rules parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.sonarqube.ws.Common.Rules) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List rules_ = + java.util.Collections.emptyList(); + private void ensureRulesIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + rules_ = new java.util.ArrayList(rules_); + bitField0_ |= 0x00000001; + } + } + + 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.commons.Rule rules = 1; + */ + public java.util.List getRulesList() { + if (rulesBuilder_ == null) { + return java.util.Collections.unmodifiableList(rules_); + } else { + return rulesBuilder_.getMessageList(); + } + } + /** + * repeated .sonarqube.ws.commons.Rule rules = 1; + */ + public int getRulesCount() { + if (rulesBuilder_ == null) { + return rules_.size(); + } else { + return rulesBuilder_.getCount(); + } + } + /** + * repeated .sonarqube.ws.commons.Rule rules = 1; + */ + public org.sonarqube.ws.Common.Rule getRules(int index) { + if (rulesBuilder_ == null) { + return rules_.get(index); + } else { + return rulesBuilder_.getMessage(index); + } + } + /** + * repeated .sonarqube.ws.commons.Rule rules = 1; + */ + 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.commons.Rule rules = 1; + */ + 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.commons.Rule rules = 1; + */ + 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.commons.Rule rules = 1; + */ + 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.commons.Rule rules = 1; + */ + 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.commons.Rule rules = 1; + */ + 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.commons.Rule rules = 1; + */ + 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.commons.Rule rules = 1; + */ + public Builder clearRules() { + if (rulesBuilder_ == null) { + rules_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + rulesBuilder_.clear(); + } + return this; + } + /** + * repeated .sonarqube.ws.commons.Rule rules = 1; + */ + public Builder removeRules(int index) { + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + rules_.remove(index); + onChanged(); + } else { + rulesBuilder_.remove(index); + } + return this; + } + /** + * repeated .sonarqube.ws.commons.Rule rules = 1; + */ + public org.sonarqube.ws.Common.Rule.Builder getRulesBuilder( + int index) { + return getRulesFieldBuilder().getBuilder(index); + } + /** + * repeated .sonarqube.ws.commons.Rule rules = 1; + */ + public org.sonarqube.ws.Common.RuleOrBuilder getRulesOrBuilder( + int index) { + if (rulesBuilder_ == null) { + return rules_.get(index); } else { + return rulesBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .sonarqube.ws.commons.Rule rules = 1; + */ + public java.util.List + getRulesOrBuilderList() { + if (rulesBuilder_ != null) { + return rulesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(rules_); + } + } + /** + * repeated .sonarqube.ws.commons.Rule rules = 1; + */ + public org.sonarqube.ws.Common.Rule.Builder addRulesBuilder() { + return getRulesFieldBuilder().addBuilder( + org.sonarqube.ws.Common.Rule.getDefaultInstance()); + } + /** + * repeated .sonarqube.ws.commons.Rule rules = 1; + */ + public org.sonarqube.ws.Common.Rule.Builder addRulesBuilder( + int index) { + return getRulesFieldBuilder().addBuilder( + index, org.sonarqube.ws.Common.Rule.getDefaultInstance()); + } + /** + * repeated .sonarqube.ws.commons.Rule rules = 1; + */ + 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_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + rules_ = null; + } + return rulesBuilder_; + } + + // @@protoc_insertion_point(builder_scope:sonarqube.ws.commons.Rules) + } + + // @@protoc_insertion_point(class_scope:sonarqube.ws.commons.Rules) + private static final org.sonarqube.ws.Common.Rules DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.sonarqube.ws.Common.Rules(); + } + + public static org.sonarqube.ws.Common.Rules getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + public static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public Rules parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + try { + return new Rules(input, extensionRegistry); + } catch (RuntimeException e) { + if (e.getCause() instanceof + com.google.protobuf.InvalidProtocolBufferException) { + throw (com.google.protobuf.InvalidProtocolBufferException) + e.getCause(); + } + throw e; + } + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public org.sonarqube.ws.Common.Rules getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface UserOrBuilder extends + // @@protoc_insertion_point(interface_extends:sonarqube.ws.commons.User) + com.google.protobuf.MessageOrBuilder { + + /** + * optional string login = 1; + */ + boolean hasLogin(); + /** + * optional string login = 1; + */ + java.lang.String getLogin(); + /** + * optional string login = 1; + */ + com.google.protobuf.ByteString + getLoginBytes(); + + /** + * optional string name = 2; + */ + boolean hasName(); + /** + * optional string name = 2; + */ + java.lang.String getName(); + /** + * optional string name = 2; + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + * optional string email = 3; + */ + boolean hasEmail(); + /** + * optional string email = 3; + */ + java.lang.String getEmail(); + /** + * optional string email = 3; + */ + com.google.protobuf.ByteString + getEmailBytes(); + + /** + * optional bool active = 4; + */ + boolean hasActive(); + /** + * optional bool active = 4; + */ + boolean getActive(); + } + /** + * Protobuf type {@code sonarqube.ws.commons.User} + */ + public static final class User extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:sonarqube.ws.commons.User) + UserOrBuilder { + // Use User.newBuilder() to construct. + private User(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private User() { + login_ = ""; + name_ = ""; + email_ = ""; + active_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private User( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) { + this(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000001; + login_ = bs; + break; + } + case 18: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000002; + name_ = bs; + break; + } + case 26: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000004; + email_ = bs; + break; + } + case 32: { + bitField0_ |= 0x00000008; + active_ = input.readBool(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw new RuntimeException(e.setUnfinishedMessage(this)); + } catch (java.io.IOException e) { + throw new RuntimeException( + new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this)); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.sonarqube.ws.Common.internal_static_sonarqube_ws_commons_User_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.sonarqube.ws.Common.internal_static_sonarqube_ws_commons_User_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.sonarqube.ws.Common.User.class, org.sonarqube.ws.Common.User.Builder.class); + } + + private int bitField0_; + public static final int LOGIN_FIELD_NUMBER = 1; + private volatile java.lang.Object login_; + /** + * optional string login = 1; + */ + public boolean hasLogin() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional string login = 1; + */ + public java.lang.String getLogin() { + java.lang.Object ref = login_; + 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()) { + login_ = s; + } + return s; + } + } + /** + * optional string login = 1; + */ + public com.google.protobuf.ByteString + getLoginBytes() { + java.lang.Object ref = login_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + login_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object name_; + /** + * optional string name = 2; + */ + public boolean hasName() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional string name = 2; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + 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()) { + name_ = s; + } + return s; + } + } + /** + * optional string name = 2; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EMAIL_FIELD_NUMBER = 3; + private volatile java.lang.Object email_; + /** + * optional string email = 3; + */ + public boolean hasEmail() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional string email = 3; + */ + public java.lang.String getEmail() { + java.lang.Object ref = email_; + 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()) { + email_ = s; + } + return s; + } + } + /** + * optional string email = 3; + */ + public com.google.protobuf.ByteString + getEmailBytes() { + java.lang.Object ref = email_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + email_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ACTIVE_FIELD_NUMBER = 4; + private boolean active_; + /** + * optional bool active = 4; + */ + public boolean hasActive() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + * optional bool active = 4; + */ + public boolean getActive() { + return active_; + } + + 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 { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeBytes(1, getLoginBytes()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeBytes(2, getNameBytes()); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeBytes(3, getEmailBytes()); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeBool(4, active_); + } + unknownFields.writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, getLoginBytes()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, getNameBytes()); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(3, getEmailBytes()); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, active_); + } + size += unknownFields.getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + public static org.sonarqube.ws.Common.User parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.sonarqube.ws.Common.User 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.Common.User parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.sonarqube.ws.Common.User parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.sonarqube.ws.Common.User parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.sonarqube.ws.Common.User parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static org.sonarqube.ws.Common.User parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static org.sonarqube.ws.Common.User parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static org.sonarqube.ws.Common.User parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.sonarqube.ws.Common.User parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.sonarqube.ws.Common.User prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(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.commons.User} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:sonarqube.ws.commons.User) + org.sonarqube.ws.Common.UserOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.sonarqube.ws.Common.internal_static_sonarqube_ws_commons_User_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.sonarqube.ws.Common.internal_static_sonarqube_ws_commons_User_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.sonarqube.ws.Common.User.class, org.sonarqube.ws.Common.User.Builder.class); + } + + // Construct using org.sonarqube.ws.Common.User.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + login_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + name_ = ""; + bitField0_ = (bitField0_ & ~0x00000002); + email_ = ""; + bitField0_ = (bitField0_ & ~0x00000004); + active_ = false; + bitField0_ = (bitField0_ & ~0x00000008); + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.sonarqube.ws.Common.internal_static_sonarqube_ws_commons_User_descriptor; + } + + public org.sonarqube.ws.Common.User getDefaultInstanceForType() { + return org.sonarqube.ws.Common.User.getDefaultInstance(); + } + + public org.sonarqube.ws.Common.User build() { + org.sonarqube.ws.Common.User result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.sonarqube.ws.Common.User buildPartial() { + org.sonarqube.ws.Common.User result = new org.sonarqube.ws.Common.User(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.login_ = login_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.name_ = name_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.email_ = email_; + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000008; + } + result.active_ = active_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.sonarqube.ws.Common.User) { + return mergeFrom((org.sonarqube.ws.Common.User)other); } else { - return (com.google.protobuf.ByteString) ref; + super.mergeFrom(other); + return this; } } - /** - * optional string key = 1; - */ - public Builder setKey( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - key_ = value; + + public Builder mergeFrom(org.sonarqube.ws.Common.User other) { + if (other == org.sonarqube.ws.Common.User.getDefaultInstance()) return this; + if (other.hasLogin()) { + bitField0_ |= 0x00000001; + login_ = other.login_; + onChanged(); + } + if (other.hasName()) { + bitField0_ |= 0x00000002; + name_ = other.name_; + onChanged(); + } + if (other.hasEmail()) { + bitField0_ |= 0x00000004; + email_ = other.email_; + onChanged(); + } + if (other.hasActive()) { + setActive(other.getActive()); + } + this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } - /** - * optional string key = 1; - */ - public Builder clearKey() { - bitField0_ = (bitField0_ & ~0x00000001); - key_ = getDefaultInstance().getKey(); - onChanged(); - return this; + + public final boolean isInitialized() { + return true; } - /** - * optional string key = 1; - */ - public Builder setKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - key_ = value; - onChanged(); + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.sonarqube.ws.Common.User parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.sonarqube.ws.Common.User) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } return this; } + private int bitField0_; - private java.lang.Object name_ = ""; + private java.lang.Object login_ = ""; /** - * optional string name = 2; + * optional string login = 1; */ - public boolean hasName() { - return ((bitField0_ & 0x00000002) == 0x00000002); + public boolean hasLogin() { + return ((bitField0_ & 0x00000001) == 0x00000001); } /** - * optional string name = 2; + * optional string login = 1; */ - public java.lang.String getName() { - java.lang.Object ref = name_; + public java.lang.String getLogin() { + java.lang.Object ref = login_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { - name_ = s; + login_ = s; } return s; } else { @@ -2950,75 +5162,75 @@ public final class Common { } } /** - * optional string name = 2; + * optional string login = 1; */ public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; + getLoginBytes() { + java.lang.Object ref = login_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - name_ = b; + login_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** - * optional string name = 2; + * optional string login = 1; */ - public Builder setName( + public Builder setLogin( java.lang.String value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000002; - name_ = value; + bitField0_ |= 0x00000001; + login_ = value; onChanged(); return this; } /** - * optional string name = 2; + * optional string login = 1; */ - public Builder clearName() { - bitField0_ = (bitField0_ & ~0x00000002); - name_ = getDefaultInstance().getName(); + public Builder clearLogin() { + bitField0_ = (bitField0_ & ~0x00000001); + login_ = getDefaultInstance().getLogin(); onChanged(); return this; } /** - * optional string name = 2; + * optional string login = 1; */ - public Builder setNameBytes( + public Builder setLoginBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000002; - name_ = value; + bitField0_ |= 0x00000001; + login_ = value; onChanged(); return this; } - private java.lang.Object lang_ = ""; + private java.lang.Object name_ = ""; /** - * optional string lang = 3; + * optional string name = 2; */ - public boolean hasLang() { - return ((bitField0_ & 0x00000004) == 0x00000004); + public boolean hasName() { + return ((bitField0_ & 0x00000002) == 0x00000002); } /** - * optional string lang = 3; + * optional string name = 2; */ - public java.lang.String getLang() { - java.lang.Object ref = lang_; + public java.lang.String getName() { + java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { - lang_ = s; + name_ = s; } return s; } else { @@ -3026,111 +5238,75 @@ public final class Common { } } /** - * optional string lang = 3; + * optional string name = 2; */ public com.google.protobuf.ByteString - getLangBytes() { - java.lang.Object ref = lang_; + getNameBytes() { + java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - lang_ = b; + name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** - * optional string lang = 3; + * optional string name = 2; */ - public Builder setLang( + public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000004; - lang_ = value; - onChanged(); - return this; - } - /** - * optional string lang = 3; - */ - public Builder clearLang() { - bitField0_ = (bitField0_ & ~0x00000004); - lang_ = getDefaultInstance().getLang(); - onChanged(); - return this; - } - /** - * optional string lang = 3; - */ - public Builder setLangBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - lang_ = value; - onChanged(); - return this; - } - - private int status_ = 0; - /** - * optional .sonarqube.ws.commons.RuleStatus status = 4; - */ - public boolean hasStatus() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional .sonarqube.ws.commons.RuleStatus status = 4; - */ - public org.sonarqube.ws.Common.RuleStatus getStatus() { - org.sonarqube.ws.Common.RuleStatus result = org.sonarqube.ws.Common.RuleStatus.valueOf(status_); - return result == null ? org.sonarqube.ws.Common.RuleStatus.BETA : result; + bitField0_ |= 0x00000002; + name_ = value; + onChanged(); + return this; } /** - * optional .sonarqube.ws.commons.RuleStatus status = 4; + * optional string name = 2; */ - public Builder setStatus(org.sonarqube.ws.Common.RuleStatus value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - status_ = value.getNumber(); + public Builder clearName() { + bitField0_ = (bitField0_ & ~0x00000002); + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * optional .sonarqube.ws.commons.RuleStatus status = 4; + * optional string name = 2; */ - public Builder clearStatus() { - bitField0_ = (bitField0_ & ~0x00000008); - status_ = 0; + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + name_ = value; onChanged(); return this; } - private java.lang.Object langName_ = ""; + private java.lang.Object email_ = ""; /** - * optional string langName = 5; + * optional string email = 3; */ - public boolean hasLangName() { - return ((bitField0_ & 0x00000010) == 0x00000010); + public boolean hasEmail() { + return ((bitField0_ & 0x00000004) == 0x00000004); } /** - * optional string langName = 5; + * optional string email = 3; */ - public java.lang.String getLangName() { - java.lang.Object ref = langName_; + public java.lang.String getEmail() { + java.lang.Object ref = email_; 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()) { - langName_ = s; + email_ = s; } return s; } else { @@ -3138,78 +5314,110 @@ public final class Common { } } /** - * optional string langName = 5; + * optional string email = 3; */ public com.google.protobuf.ByteString - getLangNameBytes() { - java.lang.Object ref = langName_; + getEmailBytes() { + java.lang.Object ref = email_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - langName_ = b; + email_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** - * optional string langName = 5; + * optional string email = 3; */ - public Builder setLangName( + public Builder setEmail( java.lang.String value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000010; - langName_ = value; + bitField0_ |= 0x00000004; + email_ = value; onChanged(); return this; } /** - * optional string langName = 5; + * optional string email = 3; */ - public Builder clearLangName() { - bitField0_ = (bitField0_ & ~0x00000010); - langName_ = getDefaultInstance().getLangName(); + public Builder clearEmail() { + bitField0_ = (bitField0_ & ~0x00000004); + email_ = getDefaultInstance().getEmail(); onChanged(); return this; } /** - * optional string langName = 5; + * optional string email = 3; */ - public Builder setLangNameBytes( + public Builder setEmailBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000010; - langName_ = value; + bitField0_ |= 0x00000004; + email_ = value; onChanged(); return this; } - // @@protoc_insertion_point(builder_scope:sonarqube.ws.commons.Rule) + private boolean active_ ; + /** + * optional bool active = 4; + */ + public boolean hasActive() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + * optional bool active = 4; + */ + public boolean getActive() { + return active_; + } + /** + * optional bool active = 4; + */ + public Builder setActive(boolean value) { + bitField0_ |= 0x00000008; + active_ = value; + onChanged(); + return this; + } + /** + * optional bool active = 4; + */ + public Builder clearActive() { + bitField0_ = (bitField0_ & ~0x00000008); + active_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:sonarqube.ws.commons.User) } - // @@protoc_insertion_point(class_scope:sonarqube.ws.commons.Rule) - private static final org.sonarqube.ws.Common.Rule DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:sonarqube.ws.commons.User) + private static final org.sonarqube.ws.Common.User DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new org.sonarqube.ws.Common.Rule(); + DEFAULT_INSTANCE = new org.sonarqube.ws.Common.User(); } - public static org.sonarqube.ws.Common.Rule getDefaultInstance() { + public static org.sonarqube.ws.Common.User getDefaultInstance() { return DEFAULT_INSTANCE; } - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Rule parsePartialFrom( + public static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public User parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { try { - return new Rule(input, extensionRegistry); + return new User(input, extensionRegistry); } catch (RuntimeException e) { if (e.getCause() instanceof com.google.protobuf.InvalidProtocolBufferException) { @@ -3222,87 +5430,57 @@ public final class Common { }; @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } - public org.sonarqube.ws.Common.Rule getDefaultInstanceForType() { + public org.sonarqube.ws.Common.User getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface UserOrBuilder extends - // @@protoc_insertion_point(interface_extends:sonarqube.ws.commons.User) + public interface UsersOrBuilder extends + // @@protoc_insertion_point(interface_extends:sonarqube.ws.commons.Users) com.google.protobuf.MessageOrBuilder { /** - * optional string login = 1; - */ - boolean hasLogin(); - /** - * optional string login = 1; - */ - java.lang.String getLogin(); - /** - * optional string login = 1; - */ - com.google.protobuf.ByteString - getLoginBytes(); - - /** - * optional string name = 2; - */ - boolean hasName(); - /** - * optional string name = 2; - */ - java.lang.String getName(); - /** - * optional string name = 2; - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - * optional string email = 3; + * repeated .sonarqube.ws.commons.User users = 1; */ - boolean hasEmail(); + java.util.List + getUsersList(); /** - * optional string email = 3; + * repeated .sonarqube.ws.commons.User users = 1; */ - java.lang.String getEmail(); + org.sonarqube.ws.Common.User getUsers(int index); /** - * optional string email = 3; + * repeated .sonarqube.ws.commons.User users = 1; */ - com.google.protobuf.ByteString - getEmailBytes(); - + int getUsersCount(); /** - * optional bool active = 4; + * repeated .sonarqube.ws.commons.User users = 1; */ - boolean hasActive(); + java.util.List + getUsersOrBuilderList(); /** - * optional bool active = 4; + * repeated .sonarqube.ws.commons.User users = 1; */ - boolean getActive(); + org.sonarqube.ws.Common.UserOrBuilder getUsersOrBuilder( + int index); } /** - * Protobuf type {@code sonarqube.ws.commons.User} + * Protobuf type {@code sonarqube.ws.commons.Users} */ - public static final class User extends + public static final class Users extends com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:sonarqube.ws.commons.User) - UserOrBuilder { - // Use User.newBuilder() to construct. - private User(com.google.protobuf.GeneratedMessage.Builder builder) { + // @@protoc_insertion_point(message_implements:sonarqube.ws.commons.Users) + UsersOrBuilder { + // Use Users.newBuilder() to construct. + private Users(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } - private User() { - login_ = ""; - name_ = ""; - email_ = ""; - active_ = false; + private Users() { + users_ = java.util.Collections.emptyList(); } @java.lang.Override @@ -3310,7 +5488,7 @@ public final class Common { getUnknownFields() { return this.unknownFields; } - private User( + private Users( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) { this(); @@ -3329,197 +5507,78 @@ public final class Common { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; - } - break; - } - case 10: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000001; - login_ = bs; - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - name_ = bs; - break; - } - case 26: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000004; - email_ = bs; - break; - } - case 32: { - bitField0_ |= 0x00000008; - active_ = input.readBool(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.Common.internal_static_sonarqube_ws_commons_User_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.Common.internal_static_sonarqube_ws_commons_User_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Common.User.class, org.sonarqube.ws.Common.User.Builder.class); - } - - private int bitField0_; - public static final int LOGIN_FIELD_NUMBER = 1; - private volatile java.lang.Object login_; - /** - * optional string login = 1; - */ - public boolean hasLogin() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string login = 1; - */ - public java.lang.String getLogin() { - java.lang.Object ref = login_; - 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()) { - login_ = s; + } + break; + } + case 10: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + users_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + users_.add(input.readMessage(org.sonarqube.ws.Common.User.PARSER, extensionRegistry)); + break; + } + } } - return s; + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw new RuntimeException(e.setUnfinishedMessage(this)); + } catch (java.io.IOException e) { + throw new RuntimeException( + new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this)); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + users_ = java.util.Collections.unmodifiableList(users_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); } } - /** - * optional string login = 1; - */ - public com.google.protobuf.ByteString - getLoginBytes() { - java.lang.Object ref = login_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - login_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.sonarqube.ws.Common.internal_static_sonarqube_ws_commons_Users_descriptor; } - public static final int NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object name_; - /** - * optional string name = 2; - */ - public boolean hasName() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string name = 2; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - 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()) { - name_ = s; - } - return s; - } - } - /** - * optional string name = 2; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.sonarqube.ws.Common.internal_static_sonarqube_ws_commons_Users_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.sonarqube.ws.Common.Users.class, org.sonarqube.ws.Common.Users.Builder.class); } - public static final int EMAIL_FIELD_NUMBER = 3; - private volatile java.lang.Object email_; + public static final int USERS_FIELD_NUMBER = 1; + private java.util.List users_; /** - * optional string email = 3; + * repeated .sonarqube.ws.commons.User users = 1; */ - public boolean hasEmail() { - return ((bitField0_ & 0x00000004) == 0x00000004); + public java.util.List getUsersList() { + return users_; } /** - * optional string email = 3; + * repeated .sonarqube.ws.commons.User users = 1; */ - public java.lang.String getEmail() { - java.lang.Object ref = email_; - 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()) { - email_ = s; - } - return s; - } + public java.util.List + getUsersOrBuilderList() { + return users_; } /** - * optional string email = 3; + * repeated .sonarqube.ws.commons.User users = 1; */ - public com.google.protobuf.ByteString - getEmailBytes() { - java.lang.Object ref = email_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - email_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public int getUsersCount() { + return users_.size(); } - - public static final int ACTIVE_FIELD_NUMBER = 4; - private boolean active_; /** - * optional bool active = 4; + * repeated .sonarqube.ws.commons.User users = 1; */ - public boolean hasActive() { - return ((bitField0_ & 0x00000008) == 0x00000008); + public org.sonarqube.ws.Common.User getUsers(int index) { + return users_.get(index); } /** - * optional bool active = 4; + * repeated .sonarqube.ws.commons.User users = 1; */ - public boolean getActive() { - return active_; + public org.sonarqube.ws.Common.UserOrBuilder getUsersOrBuilder( + int index) { + return users_.get(index); } private byte memoizedIsInitialized = -1; @@ -3534,17 +5593,8 @@ public final class Common { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getLoginBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getNameBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, getEmailBytes()); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeBool(4, active_); + for (int i = 0; i < users_.size(); i++) { + output.writeMessage(1, users_.get(i)); } unknownFields.writeTo(output); } @@ -3555,21 +5605,9 @@ public final class Common { if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getLoginBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getNameBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getEmailBytes()); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { + for (int i = 0; i < users_.size(); i++) { size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, active_); + .computeMessageSize(1, users_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; @@ -3577,53 +5615,53 @@ public final class Common { } private static final long serialVersionUID = 0L; - public static org.sonarqube.ws.Common.User parseFrom( + public static org.sonarqube.ws.Common.Users parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.sonarqube.ws.Common.User parseFrom( + public static org.sonarqube.ws.Common.Users 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.Common.User parseFrom(byte[] data) + public static org.sonarqube.ws.Common.Users parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.sonarqube.ws.Common.User parseFrom( + public static org.sonarqube.ws.Common.Users parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.sonarqube.ws.Common.User parseFrom(java.io.InputStream input) + public static org.sonarqube.ws.Common.Users parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } - public static org.sonarqube.ws.Common.User parseFrom( + public static org.sonarqube.ws.Common.Users parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } - public static org.sonarqube.ws.Common.User parseDelimitedFrom(java.io.InputStream input) + public static org.sonarqube.ws.Common.Users parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } - public static org.sonarqube.ws.Common.User parseDelimitedFrom( + public static org.sonarqube.ws.Common.Users parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } - public static org.sonarqube.ws.Common.User parseFrom( + public static org.sonarqube.ws.Common.Users parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } - public static org.sonarqube.ws.Common.User parseFrom( + public static org.sonarqube.ws.Common.Users parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -3634,7 +5672,7 @@ public final class Common { public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(org.sonarqube.ws.Common.User prototype) { + public static Builder newBuilder(org.sonarqube.ws.Common.Users prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { @@ -3649,25 +5687,25 @@ public final class Common { return builder; } /** - * Protobuf type {@code sonarqube.ws.commons.User} + * Protobuf type {@code sonarqube.ws.commons.Users} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:sonarqube.ws.commons.User) - org.sonarqube.ws.Common.UserOrBuilder { + // @@protoc_insertion_point(builder_implements:sonarqube.ws.commons.Users) + org.sonarqube.ws.Common.UsersOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.sonarqube.ws.Common.internal_static_sonarqube_ws_commons_User_descriptor; + return org.sonarqube.ws.Common.internal_static_sonarqube_ws_commons_Users_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.sonarqube.ws.Common.internal_static_sonarqube_ws_commons_User_fieldAccessorTable + return org.sonarqube.ws.Common.internal_static_sonarqube_ws_commons_Users_fieldAccessorTable .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Common.User.class, org.sonarqube.ws.Common.User.Builder.class); + org.sonarqube.ws.Common.Users.class, org.sonarqube.ws.Common.Users.Builder.class); } - // Construct using org.sonarqube.ws.Common.User.newBuilder() + // Construct using org.sonarqube.ws.Common.Users.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -3679,91 +5717,89 @@ public final class Common { } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + getUsersFieldBuilder(); } } public Builder clear() { super.clear(); - login_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - name_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - email_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); - active_ = false; - bitField0_ = (bitField0_ & ~0x00000008); + if (usersBuilder_ == null) { + users_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + usersBuilder_.clear(); + } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.sonarqube.ws.Common.internal_static_sonarqube_ws_commons_User_descriptor; + return org.sonarqube.ws.Common.internal_static_sonarqube_ws_commons_Users_descriptor; } - public org.sonarqube.ws.Common.User getDefaultInstanceForType() { - return org.sonarqube.ws.Common.User.getDefaultInstance(); + public org.sonarqube.ws.Common.Users getDefaultInstanceForType() { + return org.sonarqube.ws.Common.Users.getDefaultInstance(); } - public org.sonarqube.ws.Common.User build() { - org.sonarqube.ws.Common.User result = buildPartial(); + public org.sonarqube.ws.Common.Users build() { + org.sonarqube.ws.Common.Users result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } - public org.sonarqube.ws.Common.User buildPartial() { - org.sonarqube.ws.Common.User result = new org.sonarqube.ws.Common.User(this); + public org.sonarqube.ws.Common.Users buildPartial() { + org.sonarqube.ws.Common.Users result = new org.sonarqube.ws.Common.Users(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.login_ = login_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.name_ = name_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.email_ = email_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; + if (usersBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + users_ = java.util.Collections.unmodifiableList(users_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.users_ = users_; + } else { + result.users_ = usersBuilder_.build(); } - result.active_ = active_; - result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonarqube.ws.Common.User) { - return mergeFrom((org.sonarqube.ws.Common.User)other); + if (other instanceof org.sonarqube.ws.Common.Users) { + return mergeFrom((org.sonarqube.ws.Common.Users)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(org.sonarqube.ws.Common.User other) { - if (other == org.sonarqube.ws.Common.User.getDefaultInstance()) return this; - if (other.hasLogin()) { - bitField0_ |= 0x00000001; - login_ = other.login_; - onChanged(); - } - if (other.hasName()) { - bitField0_ |= 0x00000002; - name_ = other.name_; - onChanged(); - } - if (other.hasEmail()) { - bitField0_ |= 0x00000004; - email_ = other.email_; - onChanged(); - } - if (other.hasActive()) { - setActive(other.getActive()); + public Builder mergeFrom(org.sonarqube.ws.Common.Users other) { + if (other == org.sonarqube.ws.Common.Users.getDefaultInstance()) return this; + if (usersBuilder_ == null) { + if (!other.users_.isEmpty()) { + if (users_.isEmpty()) { + users_ = other.users_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureUsersIsMutable(); + users_.addAll(other.users_); + } + onChanged(); + } + } else { + if (!other.users_.isEmpty()) { + if (usersBuilder_.isEmpty()) { + usersBuilder_.dispose(); + usersBuilder_ = null; + users_ = other.users_; + bitField0_ = (bitField0_ & ~0x00000001); + usersBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getUsersFieldBuilder() : null; + } else { + usersBuilder_.addAllMessages(other.users_); + } + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -3778,302 +5814,282 @@ public final class Common { com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - org.sonarqube.ws.Common.User parsedMessage = null; + org.sonarqube.ws.Common.Users parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonarqube.ws.Common.User) e.getUnfinishedMessage(); + parsedMessage = (org.sonarqube.ws.Common.Users) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } - return this; - } - private int bitField0_; - - private java.lang.Object login_ = ""; - /** - * optional string login = 1; - */ - public boolean hasLogin() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string login = 1; - */ - public java.lang.String getLogin() { - java.lang.Object ref = login_; - 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()) { - login_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } + return this; + } + private int bitField0_; + + private java.util.List users_ = + java.util.Collections.emptyList(); + private void ensureUsersIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + users_ = new java.util.ArrayList(users_); + bitField0_ |= 0x00000001; + } } + + private com.google.protobuf.RepeatedFieldBuilder< + org.sonarqube.ws.Common.User, org.sonarqube.ws.Common.User.Builder, org.sonarqube.ws.Common.UserOrBuilder> usersBuilder_; + /** - * optional string login = 1; + * repeated .sonarqube.ws.commons.User users = 1; */ - public com.google.protobuf.ByteString - getLoginBytes() { - java.lang.Object ref = login_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - login_ = b; - return b; + public java.util.List getUsersList() { + if (usersBuilder_ == null) { + return java.util.Collections.unmodifiableList(users_); } else { - return (com.google.protobuf.ByteString) ref; + return usersBuilder_.getMessageList(); } } /** - * optional string login = 1; + * repeated .sonarqube.ws.commons.User users = 1; */ - public Builder setLogin( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - login_ = value; - onChanged(); - return this; + public int getUsersCount() { + if (usersBuilder_ == null) { + return users_.size(); + } else { + return usersBuilder_.getCount(); + } } /** - * optional string login = 1; + * repeated .sonarqube.ws.commons.User users = 1; */ - public Builder clearLogin() { - bitField0_ = (bitField0_ & ~0x00000001); - login_ = getDefaultInstance().getLogin(); - onChanged(); - return this; + public org.sonarqube.ws.Common.User getUsers(int index) { + if (usersBuilder_ == null) { + return users_.get(index); + } else { + return usersBuilder_.getMessage(index); + } } /** - * optional string login = 1; + * repeated .sonarqube.ws.commons.User users = 1; */ - public Builder setLoginBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - login_ = value; - onChanged(); + 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; } - - private java.lang.Object name_ = ""; /** - * optional string name = 2; + * repeated .sonarqube.ws.commons.User users = 1; */ - public boolean hasName() { - return ((bitField0_ & 0x00000002) == 0x00000002); + 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; } /** - * optional string name = 2; + * repeated .sonarqube.ws.commons.User users = 1; */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - name_ = s; + public Builder addUsers(org.sonarqube.ws.Common.User value) { + if (usersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); } - return s; + ensureUsersIsMutable(); + users_.add(value); + onChanged(); } else { - return (java.lang.String) ref; + usersBuilder_.addMessage(value); } + return this; } /** - * optional string name = 2; + * repeated .sonarqube.ws.commons.User users = 1; */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; + 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 { - return (com.google.protobuf.ByteString) ref; + usersBuilder_.addMessage(index, value); } - } - /** - * optional string name = 2; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - name_ = value; - onChanged(); return this; } /** - * optional string name = 2; + * repeated .sonarqube.ws.commons.User users = 1; */ - public Builder clearName() { - bitField0_ = (bitField0_ & ~0x00000002); - name_ = getDefaultInstance().getName(); - onChanged(); + 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; } /** - * optional string name = 2; + * repeated .sonarqube.ws.commons.User users = 1; */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - name_ = value; - onChanged(); + 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; } - - private java.lang.Object email_ = ""; - /** - * optional string email = 3; - */ - public boolean hasEmail() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } /** - * optional string email = 3; + * repeated .sonarqube.ws.commons.User users = 1; */ - public java.lang.String getEmail() { - java.lang.Object ref = email_; - 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()) { - email_ = s; - } - return s; + public Builder addAllUsers( + java.lang.Iterable values) { + if (usersBuilder_ == null) { + ensureUsersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, users_); + onChanged(); } else { - return (java.lang.String) ref; + usersBuilder_.addAllMessages(values); } + return this; } /** - * optional string email = 3; + * repeated .sonarqube.ws.commons.User users = 1; */ - public com.google.protobuf.ByteString - getEmailBytes() { - java.lang.Object ref = email_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - email_ = b; - return b; + public Builder clearUsers() { + if (usersBuilder_ == null) { + users_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); } else { - return (com.google.protobuf.ByteString) ref; + usersBuilder_.clear(); } + return this; } /** - * optional string email = 3; + * repeated .sonarqube.ws.commons.User users = 1; */ - public Builder setEmail( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - email_ = value; - onChanged(); + public Builder removeUsers(int index) { + if (usersBuilder_ == null) { + ensureUsersIsMutable(); + users_.remove(index); + onChanged(); + } else { + usersBuilder_.remove(index); + } return this; } /** - * optional string email = 3; + * repeated .sonarqube.ws.commons.User users = 1; */ - public Builder clearEmail() { - bitField0_ = (bitField0_ & ~0x00000004); - email_ = getDefaultInstance().getEmail(); - onChanged(); - return this; + public org.sonarqube.ws.Common.User.Builder getUsersBuilder( + int index) { + return getUsersFieldBuilder().getBuilder(index); } /** - * optional string email = 3; + * repeated .sonarqube.ws.commons.User users = 1; */ - public Builder setEmailBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - email_ = value; - onChanged(); - return this; + public org.sonarqube.ws.Common.UserOrBuilder getUsersOrBuilder( + int index) { + if (usersBuilder_ == null) { + return users_.get(index); } else { + return usersBuilder_.getMessageOrBuilder(index); + } } - - private boolean active_ ; /** - * optional bool active = 4; + * repeated .sonarqube.ws.commons.User users = 1; */ - public boolean hasActive() { - return ((bitField0_ & 0x00000008) == 0x00000008); + public java.util.List + getUsersOrBuilderList() { + if (usersBuilder_ != null) { + return usersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(users_); + } } /** - * optional bool active = 4; + * repeated .sonarqube.ws.commons.User users = 1; */ - public boolean getActive() { - return active_; + public org.sonarqube.ws.Common.User.Builder addUsersBuilder() { + return getUsersFieldBuilder().addBuilder( + org.sonarqube.ws.Common.User.getDefaultInstance()); } /** - * optional bool active = 4; + * repeated .sonarqube.ws.commons.User users = 1; */ - public Builder setActive(boolean value) { - bitField0_ |= 0x00000008; - active_ = value; - onChanged(); - return this; + public org.sonarqube.ws.Common.User.Builder addUsersBuilder( + int index) { + return getUsersFieldBuilder().addBuilder( + index, org.sonarqube.ws.Common.User.getDefaultInstance()); } /** - * optional bool active = 4; + * repeated .sonarqube.ws.commons.User users = 1; */ - public Builder clearActive() { - bitField0_ = (bitField0_ & ~0x00000008); - active_ = false; - onChanged(); - return this; + 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_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + users_ = null; + } + return usersBuilder_; } - // @@protoc_insertion_point(builder_scope:sonarqube.ws.commons.User) + // @@protoc_insertion_point(builder_scope:sonarqube.ws.commons.Users) } - // @@protoc_insertion_point(class_scope:sonarqube.ws.commons.User) - private static final org.sonarqube.ws.Common.User DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:sonarqube.ws.commons.Users) + private static final org.sonarqube.ws.Common.Users DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new org.sonarqube.ws.Common.User(); + DEFAULT_INSTANCE = new org.sonarqube.ws.Common.Users(); } - public static org.sonarqube.ws.Common.User getDefaultInstance() { + public static org.sonarqube.ws.Common.Users getDefaultInstance() { return DEFAULT_INSTANCE; } - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public User parsePartialFrom( + public static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public Users parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { try { - return new User(input, extensionRegistry); + return new Users(input, extensionRegistry); } catch (RuntimeException e) { if (e.getCause() instanceof com.google.protobuf.InvalidProtocolBufferException) { @@ -4086,11 +6102,11 @@ public final class Common { }; @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } - public org.sonarqube.ws.Common.User getDefaultInstanceForType() { + public org.sonarqube.ws.Common.Users getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -4869,6 +6885,11 @@ public final class Common { private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_sonarqube_ws_commons_Facet_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_sonarqube_ws_commons_Facets_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_sonarqube_ws_commons_Facets_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_sonarqube_ws_commons_FacetValue_descriptor; private static @@ -4879,11 +6900,21 @@ public final class Common { private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_sonarqube_ws_commons_Rule_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_sonarqube_ws_commons_Rules_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_sonarqube_ws_commons_Rules_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_sonarqube_ws_commons_User_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_sonarqube_ws_commons_User_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_sonarqube_ws_commons_Users_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_sonarqube_ws_commons_Users_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_sonarqube_ws_commons_TextRange_descriptor; private static @@ -4902,19 +6933,23 @@ public final class Common { "\"<\n\006Paging\022\021\n\tpageIndex\030\001 \001(\005\022\020\n\010pageSiz" + "e\030\002 \001(\005\022\r\n\005total\030\003 \001(\005\"K\n\005Facet\022\020\n\010prope" + "rty\030\001 \001(\t\0220\n\006values\030\002 \003(\0132 .sonarqube.ws" + - ".commons.FacetValue\"(\n\nFacetValue\022\013\n\003val" + - "\030\001 \001(\t\022\r\n\005count\030\002 \001(\003\"s\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\0220\n\006status" + - "\030\004 \001(\0162 .sonarqube.ws.commons.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\"W\n\tTextRange\022\021\n\tstartLine\030\001 \001(\005\022\017" + - "\n\007endLine\030\002 \001(\005\022\023\n\013startOffset\030\003 \001(\005\022\021\n\t" + - "endOffset\030\004 \001(\005*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\007BLO" + - "CKER\020\004*>\n\nRuleStatus\022\010\n\004BETA\020\000\022\016\n\nDEPREC" + - "ATED\020\001\022\t\n\005READY\020\002\022\013\n\007REMOVED\020\003B\034\n\020org.so" + - "narqube.wsB\006CommonH\001" + ".commons.FacetValue\"5\n\006Facets\022+\n\006facets\030" + + "\001 \003(\0132\033.sonarqube.ws.commons.Facet\"(\n\nFa" + + "cetValue\022\013\n\003val\030\001 \001(\t\022\r\n\005count\030\002 \001(\003\"s\n\004" + + "Rule\022\013\n\003key\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\022\014\n\004lang\030" + + "\003 \001(\t\0220\n\006status\030\004 \001(\0162 .sonarqube.ws.com" + + "mons.RuleStatus\022\020\n\010langName\030\005 \001(\t\"2\n\005Rul", + "es\022)\n\005rules\030\001 \003(\0132\032.sonarqube.ws.commons" + + ".Rule\"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\"2\n\005Use" + + "rs\022)\n\005users\030\001 \003(\0132\032.sonarqube.ws.commons" + + ".User\"W\n\tTextRange\022\021\n\tstartLine\030\001 \001(\005\022\017\n" + + "\007endLine\030\002 \001(\005\022\023\n\013startOffset\030\003 \001(\005\022\021\n\te" + + "ndOffset\030\004 \001(\005*E\n\010Severity\022\010\n\004INFO\020\000\022\t\n\005" + + "MINOR\020\001\022\t\n\005MAJOR\020\002\022\014\n\010CRITICAL\020\003\022\013\n\007BLOC" + + "KER\020\004*>\n\nRuleStatus\022\010\n\004BETA\020\000\022\016\n\nDEPRECA" + + "TED\020\001\022\t\n\005READY\020\002\022\013\n\007REMOVED\020\003B\034\n\020org.son", + "arqube.wsB\006CommonH\001" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -4940,26 +6975,44 @@ public final class Common { com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_sonarqube_ws_commons_Facet_descriptor, new java.lang.String[] { "Property", "Values", }); - internal_static_sonarqube_ws_commons_FacetValue_descriptor = + internal_static_sonarqube_ws_commons_Facets_descriptor = getDescriptor().getMessageTypes().get(2); + internal_static_sonarqube_ws_commons_Facets_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_sonarqube_ws_commons_Facets_descriptor, + new java.lang.String[] { "Facets", }); + internal_static_sonarqube_ws_commons_FacetValue_descriptor = + getDescriptor().getMessageTypes().get(3); internal_static_sonarqube_ws_commons_FacetValue_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_sonarqube_ws_commons_FacetValue_descriptor, new java.lang.String[] { "Val", "Count", }); internal_static_sonarqube_ws_commons_Rule_descriptor = - getDescriptor().getMessageTypes().get(3); + getDescriptor().getMessageTypes().get(4); internal_static_sonarqube_ws_commons_Rule_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_sonarqube_ws_commons_Rule_descriptor, new java.lang.String[] { "Key", "Name", "Lang", "Status", "LangName", }); + internal_static_sonarqube_ws_commons_Rules_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_sonarqube_ws_commons_Rules_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_sonarqube_ws_commons_Rules_descriptor, + new java.lang.String[] { "Rules", }); internal_static_sonarqube_ws_commons_User_descriptor = - getDescriptor().getMessageTypes().get(4); + getDescriptor().getMessageTypes().get(6); internal_static_sonarqube_ws_commons_User_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_sonarqube_ws_commons_User_descriptor, new java.lang.String[] { "Login", "Name", "Email", "Active", }); + internal_static_sonarqube_ws_commons_Users_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_sonarqube_ws_commons_Users_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_sonarqube_ws_commons_Users_descriptor, + new java.lang.String[] { "Users", }); internal_static_sonarqube_ws_commons_TextRange_descriptor = - getDescriptor().getMessageTypes().get(5); + getDescriptor().getMessageTypes().get(8); internal_static_sonarqube_ws_commons_TextRange_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_sonarqube_ws_commons_TextRange_descriptor, 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 413930f7f09..8583d8ef271 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 @@ -118,169 +118,69 @@ public final class Issues { int index); /** - * optional bool rulesPresentIfEmpty = 8; + * optional .sonarqube.ws.commons.Rules rules = 8; */ - boolean hasRulesPresentIfEmpty(); + boolean hasRules(); /** - * optional bool rulesPresentIfEmpty = 8; + * optional .sonarqube.ws.commons.Rules rules = 8; */ - boolean getRulesPresentIfEmpty(); - - /** - * repeated .sonarqube.ws.commons.Rule rules = 9; - */ - java.util.List - getRulesList(); - /** - * repeated .sonarqube.ws.commons.Rule rules = 9; - */ - org.sonarqube.ws.Common.Rule getRules(int index); - /** - * repeated .sonarqube.ws.commons.Rule rules = 9; - */ - int getRulesCount(); - /** - * repeated .sonarqube.ws.commons.Rule rules = 9; - */ - java.util.List - getRulesOrBuilderList(); - /** - * repeated .sonarqube.ws.commons.Rule rules = 9; - */ - org.sonarqube.ws.Common.RuleOrBuilder getRulesOrBuilder( - int index); - + org.sonarqube.ws.Common.Rules getRules(); /** - * optional bool usersPresentIfEmpty = 10; + * optional .sonarqube.ws.commons.Rules rules = 8; */ - boolean hasUsersPresentIfEmpty(); - /** - * optional bool usersPresentIfEmpty = 10; - */ - boolean getUsersPresentIfEmpty(); + org.sonarqube.ws.Common.RulesOrBuilder getRulesOrBuilder(); /** - * repeated .sonarqube.ws.commons.User users = 11; - */ - java.util.List - getUsersList(); - /** - * repeated .sonarqube.ws.commons.User users = 11; - */ - org.sonarqube.ws.Common.User getUsers(int index); - /** - * repeated .sonarqube.ws.commons.User users = 11; - */ - int getUsersCount(); - /** - * repeated .sonarqube.ws.commons.User users = 11; + * optional .sonarqube.ws.commons.Users users = 9; */ - java.util.List - getUsersOrBuilderList(); - /** - * repeated .sonarqube.ws.commons.User users = 11; - */ - org.sonarqube.ws.Common.UserOrBuilder getUsersOrBuilder( - int index); - + boolean hasUsers(); /** - * optional bool actionPlansPresentIfEmpty = 12; + * optional .sonarqube.ws.commons.Users users = 9; */ - boolean hasActionPlansPresentIfEmpty(); + org.sonarqube.ws.Common.Users getUsers(); /** - * optional bool actionPlansPresentIfEmpty = 12; + * optional .sonarqube.ws.commons.Users users = 9; */ - boolean getActionPlansPresentIfEmpty(); + org.sonarqube.ws.Common.UsersOrBuilder getUsersOrBuilder(); /** - * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 13; - */ - java.util.List - getActionPlansList(); - /** - * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 13; - */ - org.sonarqube.ws.Issues.ActionPlan getActionPlans(int index); - /** - * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 13; - */ - int getActionPlansCount(); - /** - * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 13; - */ - java.util.List - getActionPlansOrBuilderList(); - /** - * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 13; + * optional .sonarqube.ws.issues.ActionPlans actionPlans = 10; */ - org.sonarqube.ws.Issues.ActionPlanOrBuilder getActionPlansOrBuilder( - int index); - + boolean hasActionPlans(); /** - * optional bool languagesPresentIfEmpty = 14; + * optional .sonarqube.ws.issues.ActionPlans actionPlans = 10; */ - boolean hasLanguagesPresentIfEmpty(); + org.sonarqube.ws.Issues.ActionPlans getActionPlans(); /** - * optional bool languagesPresentIfEmpty = 14; + * optional .sonarqube.ws.issues.ActionPlans actionPlans = 10; */ - boolean getLanguagesPresentIfEmpty(); + org.sonarqube.ws.Issues.ActionPlansOrBuilder getActionPlansOrBuilder(); /** - * repeated .sonarqube.ws.issues.Language languages = 15; - */ - java.util.List - getLanguagesList(); - /** - * repeated .sonarqube.ws.issues.Language languages = 15; - */ - org.sonarqube.ws.Issues.Language getLanguages(int index); - /** - * repeated .sonarqube.ws.issues.Language languages = 15; - */ - int getLanguagesCount(); - /** - * repeated .sonarqube.ws.issues.Language languages = 15; - */ - java.util.List - getLanguagesOrBuilderList(); - /** - * repeated .sonarqube.ws.issues.Language languages = 15; + * optional .sonarqube.ws.issues.Languages languages = 11; */ - org.sonarqube.ws.Issues.LanguageOrBuilder getLanguagesOrBuilder( - int index); - + boolean hasLanguages(); /** - * optional bool facetsPresentIfEmpty = 16; + * optional .sonarqube.ws.issues.Languages languages = 11; */ - boolean hasFacetsPresentIfEmpty(); + org.sonarqube.ws.Issues.Languages getLanguages(); /** - * optional bool facetsPresentIfEmpty = 16; + * optional .sonarqube.ws.issues.Languages languages = 11; */ - boolean getFacetsPresentIfEmpty(); + org.sonarqube.ws.Issues.LanguagesOrBuilder getLanguagesOrBuilder(); /** - * repeated .sonarqube.ws.commons.Facet facets = 17; - */ - java.util.List - getFacetsList(); - /** - * repeated .sonarqube.ws.commons.Facet facets = 17; - */ - org.sonarqube.ws.Common.Facet getFacets(int index); - /** - * repeated .sonarqube.ws.commons.Facet facets = 17; + * optional .sonarqube.ws.commons.Facets facets = 12; */ - int getFacetsCount(); + boolean hasFacets(); /** - * repeated .sonarqube.ws.commons.Facet facets = 17; + * optional .sonarqube.ws.commons.Facets facets = 12; */ - java.util.List - getFacetsOrBuilderList(); + org.sonarqube.ws.Common.Facets getFacets(); /** - * repeated .sonarqube.ws.commons.Facet facets = 17; + * optional .sonarqube.ws.commons.Facets facets = 12; */ - org.sonarqube.ws.Common.FacetOrBuilder getFacetsOrBuilder( - int index); + org.sonarqube.ws.Common.FacetsOrBuilder getFacetsOrBuilder(); } /** * Protobuf type {@code sonarqube.ws.issues.Search} @@ -304,16 +204,6 @@ public final class Issues { debtTotal_ = 0L; issues_ = java.util.Collections.emptyList(); components_ = java.util.Collections.emptyList(); - rulesPresentIfEmpty_ = false; - rules_ = java.util.Collections.emptyList(); - usersPresentIfEmpty_ = false; - users_ = java.util.Collections.emptyList(); - actionPlansPresentIfEmpty_ = false; - actionPlans_ = java.util.Collections.emptyList(); - languagesPresentIfEmpty_ = false; - languages_ = java.util.Collections.emptyList(); - facetsPresentIfEmpty_ = false; - facets_ = java.util.Collections.emptyList(); } @java.lang.Override @@ -392,69 +282,69 @@ public final class Issues { components_.add(input.readMessage(org.sonarqube.ws.Issues.Component.PARSER, extensionRegistry)); break; } - case 64: { + case 66: { + org.sonarqube.ws.Common.Rules.Builder subBuilder = null; + if (((bitField0_ & 0x00000020) == 0x00000020)) { + subBuilder = rules_.toBuilder(); + } + rules_ = input.readMessage(org.sonarqube.ws.Common.Rules.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(rules_); + rules_ = subBuilder.buildPartial(); + } bitField0_ |= 0x00000020; - rulesPresentIfEmpty_ = input.readBool(); break; } case 74: { - if (!((mutable_bitField0_ & 0x00000100) == 0x00000100)) { - rules_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000100; + org.sonarqube.ws.Common.Users.Builder subBuilder = null; + if (((bitField0_ & 0x00000040) == 0x00000040)) { + subBuilder = users_.toBuilder(); + } + users_ = input.readMessage(org.sonarqube.ws.Common.Users.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(users_); + users_ = subBuilder.buildPartial(); } - rules_.add(input.readMessage(org.sonarqube.ws.Common.Rule.PARSER, extensionRegistry)); - break; - } - case 80: { bitField0_ |= 0x00000040; - usersPresentIfEmpty_ = input.readBool(); break; } - case 90: { - if (!((mutable_bitField0_ & 0x00000400) == 0x00000400)) { - users_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000400; + case 82: { + org.sonarqube.ws.Issues.ActionPlans.Builder subBuilder = null; + if (((bitField0_ & 0x00000080) == 0x00000080)) { + subBuilder = actionPlans_.toBuilder(); + } + actionPlans_ = input.readMessage(org.sonarqube.ws.Issues.ActionPlans.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(actionPlans_); + actionPlans_ = subBuilder.buildPartial(); } - users_.add(input.readMessage(org.sonarqube.ws.Common.User.PARSER, extensionRegistry)); - break; - } - case 96: { bitField0_ |= 0x00000080; - actionPlansPresentIfEmpty_ = input.readBool(); break; } - case 106: { - if (!((mutable_bitField0_ & 0x00001000) == 0x00001000)) { - actionPlans_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00001000; + case 90: { + org.sonarqube.ws.Issues.Languages.Builder subBuilder = null; + if (((bitField0_ & 0x00000100) == 0x00000100)) { + subBuilder = languages_.toBuilder(); + } + languages_ = input.readMessage(org.sonarqube.ws.Issues.Languages.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(languages_); + languages_ = subBuilder.buildPartial(); } - actionPlans_.add(input.readMessage(org.sonarqube.ws.Issues.ActionPlan.PARSER, extensionRegistry)); - break; - } - case 112: { bitField0_ |= 0x00000100; - languagesPresentIfEmpty_ = input.readBool(); break; } - case 122: { - if (!((mutable_bitField0_ & 0x00004000) == 0x00004000)) { - languages_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00004000; + case 98: { + org.sonarqube.ws.Common.Facets.Builder subBuilder = null; + if (((bitField0_ & 0x00000200) == 0x00000200)) { + subBuilder = facets_.toBuilder(); } - languages_.add(input.readMessage(org.sonarqube.ws.Issues.Language.PARSER, extensionRegistry)); - break; - } - case 128: { - bitField0_ |= 0x00000200; - facetsPresentIfEmpty_ = input.readBool(); - break; - } - case 138: { - if (!((mutable_bitField0_ & 0x00010000) == 0x00010000)) { - facets_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00010000; + facets_ = input.readMessage(org.sonarqube.ws.Common.Facets.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(facets_); + facets_ = subBuilder.buildPartial(); } - facets_.add(input.readMessage(org.sonarqube.ws.Common.Facet.PARSER, extensionRegistry)); + bitField0_ |= 0x00000200; break; } } @@ -472,21 +362,6 @@ public final class Issues { if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) { components_ = java.util.Collections.unmodifiableList(components_); } - if (((mutable_bitField0_ & 0x00000100) == 0x00000100)) { - rules_ = java.util.Collections.unmodifiableList(rules_); - } - if (((mutable_bitField0_ & 0x00000400) == 0x00000400)) { - users_ = java.util.Collections.unmodifiableList(users_); - } - if (((mutable_bitField0_ & 0x00001000) == 0x00001000)) { - actionPlans_ = java.util.Collections.unmodifiableList(actionPlans_); - } - if (((mutable_bitField0_ & 0x00004000) == 0x00004000)) { - languages_ = java.util.Collections.unmodifiableList(languages_); - } - if (((mutable_bitField0_ & 0x00010000) == 0x00010000)) { - facets_ = java.util.Collections.unmodifiableList(facets_); - } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } @@ -663,254 +538,109 @@ public final class Issues { return components_.get(index); } - public static final int RULESPRESENTIFEMPTY_FIELD_NUMBER = 8; - private boolean rulesPresentIfEmpty_; + public static final int RULES_FIELD_NUMBER = 8; + private org.sonarqube.ws.Common.Rules rules_; /** - * optional bool rulesPresentIfEmpty = 8; + * optional .sonarqube.ws.commons.Rules rules = 8; */ - public boolean hasRulesPresentIfEmpty() { + public boolean hasRules() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** - * optional bool rulesPresentIfEmpty = 8; - */ - public boolean getRulesPresentIfEmpty() { - return rulesPresentIfEmpty_; - } - - public static final int RULES_FIELD_NUMBER = 9; - private java.util.List rules_; - /** - * repeated .sonarqube.ws.commons.Rule rules = 9; - */ - public java.util.List getRulesList() { - return rules_; - } - /** - * repeated .sonarqube.ws.commons.Rule rules = 9; - */ - public java.util.List - getRulesOrBuilderList() { - return rules_; - } - /** - * repeated .sonarqube.ws.commons.Rule rules = 9; - */ - public int getRulesCount() { - return rules_.size(); - } - /** - * repeated .sonarqube.ws.commons.Rule rules = 9; + * optional .sonarqube.ws.commons.Rules rules = 8; */ - public org.sonarqube.ws.Common.Rule getRules(int index) { - return rules_.get(index); + public org.sonarqube.ws.Common.Rules getRules() { + return rules_ == null ? org.sonarqube.ws.Common.Rules.getDefaultInstance() : rules_; } /** - * repeated .sonarqube.ws.commons.Rule rules = 9; + * optional .sonarqube.ws.commons.Rules rules = 8; */ - public org.sonarqube.ws.Common.RuleOrBuilder getRulesOrBuilder( - int index) { - return rules_.get(index); + public org.sonarqube.ws.Common.RulesOrBuilder getRulesOrBuilder() { + return rules_ == null ? org.sonarqube.ws.Common.Rules.getDefaultInstance() : rules_; } - public static final int USERSPRESENTIFEMPTY_FIELD_NUMBER = 10; - private boolean usersPresentIfEmpty_; + public static final int USERS_FIELD_NUMBER = 9; + private org.sonarqube.ws.Common.Users users_; /** - * optional bool usersPresentIfEmpty = 10; + * optional .sonarqube.ws.commons.Users users = 9; */ - public boolean hasUsersPresentIfEmpty() { + public boolean hasUsers() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** - * optional bool usersPresentIfEmpty = 10; - */ - public boolean getUsersPresentIfEmpty() { - return usersPresentIfEmpty_; - } - - public static final int USERS_FIELD_NUMBER = 11; - private java.util.List users_; - /** - * repeated .sonarqube.ws.commons.User users = 11; - */ - public java.util.List getUsersList() { - return users_; - } - /** - * repeated .sonarqube.ws.commons.User users = 11; - */ - public java.util.List - getUsersOrBuilderList() { - return users_; - } - /** - * repeated .sonarqube.ws.commons.User users = 11; - */ - public int getUsersCount() { - return users_.size(); - } - /** - * repeated .sonarqube.ws.commons.User users = 11; + * optional .sonarqube.ws.commons.Users users = 9; */ - public org.sonarqube.ws.Common.User getUsers(int index) { - return users_.get(index); + public org.sonarqube.ws.Common.Users getUsers() { + return users_ == null ? org.sonarqube.ws.Common.Users.getDefaultInstance() : users_; } /** - * repeated .sonarqube.ws.commons.User users = 11; + * optional .sonarqube.ws.commons.Users users = 9; */ - public org.sonarqube.ws.Common.UserOrBuilder getUsersOrBuilder( - int index) { - return users_.get(index); + public org.sonarqube.ws.Common.UsersOrBuilder getUsersOrBuilder() { + return users_ == null ? org.sonarqube.ws.Common.Users.getDefaultInstance() : users_; } - public static final int ACTIONPLANSPRESENTIFEMPTY_FIELD_NUMBER = 12; - private boolean actionPlansPresentIfEmpty_; + public static final int ACTIONPLANS_FIELD_NUMBER = 10; + private org.sonarqube.ws.Issues.ActionPlans actionPlans_; /** - * optional bool actionPlansPresentIfEmpty = 12; + * optional .sonarqube.ws.issues.ActionPlans actionPlans = 10; */ - public boolean hasActionPlansPresentIfEmpty() { + public boolean hasActionPlans() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** - * optional bool actionPlansPresentIfEmpty = 12; - */ - public boolean getActionPlansPresentIfEmpty() { - return actionPlansPresentIfEmpty_; - } - - public static final int ACTIONPLANS_FIELD_NUMBER = 13; - private java.util.List actionPlans_; - /** - * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 13; - */ - public java.util.List getActionPlansList() { - return actionPlans_; - } - /** - * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 13; - */ - public java.util.List - getActionPlansOrBuilderList() { - return actionPlans_; - } - /** - * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 13; + * optional .sonarqube.ws.issues.ActionPlans actionPlans = 10; */ - public int getActionPlansCount() { - return actionPlans_.size(); - } - /** - * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 13; - */ - public org.sonarqube.ws.Issues.ActionPlan getActionPlans(int index) { - return actionPlans_.get(index); + public org.sonarqube.ws.Issues.ActionPlans getActionPlans() { + return actionPlans_ == null ? org.sonarqube.ws.Issues.ActionPlans.getDefaultInstance() : actionPlans_; } /** - * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 13; + * optional .sonarqube.ws.issues.ActionPlans actionPlans = 10; */ - public org.sonarqube.ws.Issues.ActionPlanOrBuilder getActionPlansOrBuilder( - int index) { - return actionPlans_.get(index); + public org.sonarqube.ws.Issues.ActionPlansOrBuilder getActionPlansOrBuilder() { + return actionPlans_ == null ? org.sonarqube.ws.Issues.ActionPlans.getDefaultInstance() : actionPlans_; } - public static final int LANGUAGESPRESENTIFEMPTY_FIELD_NUMBER = 14; - private boolean languagesPresentIfEmpty_; + public static final int LANGUAGES_FIELD_NUMBER = 11; + private org.sonarqube.ws.Issues.Languages languages_; /** - * optional bool languagesPresentIfEmpty = 14; + * optional .sonarqube.ws.issues.Languages languages = 11; */ - public boolean hasLanguagesPresentIfEmpty() { + public boolean hasLanguages() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** - * optional bool languagesPresentIfEmpty = 14; - */ - public boolean getLanguagesPresentIfEmpty() { - return languagesPresentIfEmpty_; - } - - public static final int LANGUAGES_FIELD_NUMBER = 15; - private java.util.List languages_; - /** - * repeated .sonarqube.ws.issues.Language languages = 15; - */ - public java.util.List getLanguagesList() { - return languages_; - } - /** - * repeated .sonarqube.ws.issues.Language languages = 15; - */ - public java.util.List - getLanguagesOrBuilderList() { - return languages_; - } - /** - * repeated .sonarqube.ws.issues.Language languages = 15; - */ - public int getLanguagesCount() { - return languages_.size(); - } - /** - * repeated .sonarqube.ws.issues.Language languages = 15; + * optional .sonarqube.ws.issues.Languages languages = 11; */ - public org.sonarqube.ws.Issues.Language getLanguages(int index) { - return languages_.get(index); + public org.sonarqube.ws.Issues.Languages getLanguages() { + return languages_ == null ? org.sonarqube.ws.Issues.Languages.getDefaultInstance() : languages_; } /** - * repeated .sonarqube.ws.issues.Language languages = 15; + * optional .sonarqube.ws.issues.Languages languages = 11; */ - public org.sonarqube.ws.Issues.LanguageOrBuilder getLanguagesOrBuilder( - int index) { - return languages_.get(index); + public org.sonarqube.ws.Issues.LanguagesOrBuilder getLanguagesOrBuilder() { + return languages_ == null ? org.sonarqube.ws.Issues.Languages.getDefaultInstance() : languages_; } - public static final int FACETSPRESENTIFEMPTY_FIELD_NUMBER = 16; - private boolean facetsPresentIfEmpty_; + public static final int FACETS_FIELD_NUMBER = 12; + private org.sonarqube.ws.Common.Facets facets_; /** - * optional bool facetsPresentIfEmpty = 16; + * optional .sonarqube.ws.commons.Facets facets = 12; */ - public boolean hasFacetsPresentIfEmpty() { + public boolean hasFacets() { 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.commons.Facet facets = 17; - */ - public java.util.List getFacetsList() { - return facets_; - } - /** - * repeated .sonarqube.ws.commons.Facet facets = 17; - */ - public java.util.List - getFacetsOrBuilderList() { - return facets_; - } - /** - * repeated .sonarqube.ws.commons.Facet facets = 17; - */ - public int getFacetsCount() { - return facets_.size(); - } - /** - * repeated .sonarqube.ws.commons.Facet facets = 17; + * optional .sonarqube.ws.commons.Facets facets = 12; */ - public org.sonarqube.ws.Common.Facet getFacets(int index) { - return facets_.get(index); + public org.sonarqube.ws.Common.Facets getFacets() { + return facets_ == null ? org.sonarqube.ws.Common.Facets.getDefaultInstance() : facets_; } /** - * repeated .sonarqube.ws.commons.Facet facets = 17; + * optional .sonarqube.ws.commons.Facets facets = 12; */ - public org.sonarqube.ws.Common.FacetOrBuilder getFacetsOrBuilder( - int index) { - return facets_.get(index); + public org.sonarqube.ws.Common.FacetsOrBuilder getFacetsOrBuilder() { + return facets_ == null ? org.sonarqube.ws.Common.Facets.getDefaultInstance() : facets_; } private byte memoizedIsInitialized = -1; @@ -947,34 +677,19 @@ public final class Issues { output.writeMessage(7, components_.get(i)); } if (((bitField0_ & 0x00000020) == 0x00000020)) { - output.writeBool(8, rulesPresentIfEmpty_); - } - for (int i = 0; i < rules_.size(); i++) { - output.writeMessage(9, rules_.get(i)); + output.writeMessage(8, getRules()); } if (((bitField0_ & 0x00000040) == 0x00000040)) { - output.writeBool(10, usersPresentIfEmpty_); - } - for (int i = 0; i < users_.size(); i++) { - output.writeMessage(11, users_.get(i)); + output.writeMessage(9, getUsers()); } if (((bitField0_ & 0x00000080) == 0x00000080)) { - output.writeBool(12, actionPlansPresentIfEmpty_); - } - for (int i = 0; i < actionPlans_.size(); i++) { - output.writeMessage(13, actionPlans_.get(i)); + output.writeMessage(10, getActionPlans()); } if (((bitField0_ & 0x00000100) == 0x00000100)) { - output.writeBool(14, languagesPresentIfEmpty_); - } - for (int i = 0; i < languages_.size(); i++) { - output.writeMessage(15, languages_.get(i)); + output.writeMessage(11, getLanguages()); } if (((bitField0_ & 0x00000200) == 0x00000200)) { - output.writeBool(16, facetsPresentIfEmpty_); - } - for (int i = 0; i < facets_.size(); i++) { - output.writeMessage(17, facets_.get(i)); + output.writeMessage(12, getFacets()); } unknownFields.writeTo(output); } @@ -1015,43 +730,23 @@ public final class Issues { } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream - .computeBoolSize(8, rulesPresentIfEmpty_); - } - for (int i = 0; i < rules_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, rules_.get(i)); + .computeMessageSize(8, getRules()); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream - .computeBoolSize(10, usersPresentIfEmpty_); - } - for (int i = 0; i < users_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, users_.get(i)); + .computeMessageSize(9, getUsers()); } if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.CodedOutputStream - .computeBoolSize(12, actionPlansPresentIfEmpty_); - } - for (int i = 0; i < actionPlans_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(13, actionPlans_.get(i)); + .computeMessageSize(10, getActionPlans()); } if (((bitField0_ & 0x00000100) == 0x00000100)) { size += com.google.protobuf.CodedOutputStream - .computeBoolSize(14, languagesPresentIfEmpty_); - } - for (int i = 0; i < languages_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(15, languages_.get(i)); + .computeMessageSize(11, getLanguages()); } if (((bitField0_ & 0x00000200) == 0x00000200)) { size += com.google.protobuf.CodedOutputStream - .computeBoolSize(16, facetsPresentIfEmpty_); - } - for (int i = 0; i < facets_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(17, facets_.get(i)); + .computeMessageSize(12, getFacets()); } size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; @@ -1203,46 +898,36 @@ public final class Issues { } else { componentsBuilder_.clear(); } - rulesPresentIfEmpty_ = false; - bitField0_ = (bitField0_ & ~0x00000080); if (rulesBuilder_ == null) { - rules_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000100); + rules_ = null; } else { rulesBuilder_.clear(); } - usersPresentIfEmpty_ = false; - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000080); if (usersBuilder_ == null) { - users_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000400); + users_ = null; } else { usersBuilder_.clear(); } - actionPlansPresentIfEmpty_ = false; - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00000100); if (actionPlansBuilder_ == null) { - actionPlans_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00001000); + actionPlans_ = null; } else { actionPlansBuilder_.clear(); } - languagesPresentIfEmpty_ = false; - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00000200); if (languagesBuilder_ == null) { - languages_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00004000); + languages_ = null; } else { languagesBuilder_.clear(); } - facetsPresentIfEmpty_ = false; - bitField0_ = (bitField0_ & ~0x00008000); + bitField0_ = (bitField0_ & ~0x00000400); if (facetsBuilder_ == null) { - facets_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00010000); + facets_ = null; } else { facetsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000800); return this; } @@ -1312,64 +997,39 @@ public final class Issues { if (((from_bitField0_ & 0x00000080) == 0x00000080)) { to_bitField0_ |= 0x00000020; } - result.rulesPresentIfEmpty_ = rulesPresentIfEmpty_; if (rulesBuilder_ == null) { - if (((bitField0_ & 0x00000100) == 0x00000100)) { - rules_ = java.util.Collections.unmodifiableList(rules_); - bitField0_ = (bitField0_ & ~0x00000100); - } result.rules_ = rules_; } else { result.rules_ = rulesBuilder_.build(); } - if (((from_bitField0_ & 0x00000200) == 0x00000200)) { + if (((from_bitField0_ & 0x00000100) == 0x00000100)) { to_bitField0_ |= 0x00000040; } - result.usersPresentIfEmpty_ = usersPresentIfEmpty_; if (usersBuilder_ == null) { - if (((bitField0_ & 0x00000400) == 0x00000400)) { - users_ = java.util.Collections.unmodifiableList(users_); - bitField0_ = (bitField0_ & ~0x00000400); - } result.users_ = users_; } else { result.users_ = usersBuilder_.build(); } - if (((from_bitField0_ & 0x00000800) == 0x00000800)) { + if (((from_bitField0_ & 0x00000200) == 0x00000200)) { to_bitField0_ |= 0x00000080; } - result.actionPlansPresentIfEmpty_ = actionPlansPresentIfEmpty_; if (actionPlansBuilder_ == null) { - if (((bitField0_ & 0x00001000) == 0x00001000)) { - actionPlans_ = java.util.Collections.unmodifiableList(actionPlans_); - bitField0_ = (bitField0_ & ~0x00001000); - } result.actionPlans_ = actionPlans_; } else { result.actionPlans_ = actionPlansBuilder_.build(); } - if (((from_bitField0_ & 0x00002000) == 0x00002000)) { + if (((from_bitField0_ & 0x00000400) == 0x00000400)) { to_bitField0_ |= 0x00000100; } - result.languagesPresentIfEmpty_ = languagesPresentIfEmpty_; if (languagesBuilder_ == null) { - if (((bitField0_ & 0x00004000) == 0x00004000)) { - languages_ = java.util.Collections.unmodifiableList(languages_); - bitField0_ = (bitField0_ & ~0x00004000); - } result.languages_ = languages_; } else { result.languages_ = languagesBuilder_.build(); } - if (((from_bitField0_ & 0x00008000) == 0x00008000)) { + if (((from_bitField0_ & 0x00000800) == 0x00000800)) { to_bitField0_ |= 0x00000200; } - result.facetsPresentIfEmpty_ = facetsPresentIfEmpty_; if (facetsBuilder_ == null) { - if (((bitField0_ & 0x00010000) == 0x00010000)) { - facets_ = java.util.Collections.unmodifiableList(facets_); - bitField0_ = (bitField0_ & ~0x00010000); - } result.facets_ = facets_; } else { result.facets_ = facetsBuilder_.build(); @@ -1457,150 +1117,20 @@ public final class Issues { } } } - if (other.hasRulesPresentIfEmpty()) { - setRulesPresentIfEmpty(other.getRulesPresentIfEmpty()); - } - if (rulesBuilder_ == null) { - if (!other.rules_.isEmpty()) { - if (rules_.isEmpty()) { - rules_ = other.rules_; - bitField0_ = (bitField0_ & ~0x00000100); - } else { - ensureRulesIsMutable(); - rules_.addAll(other.rules_); - } - onChanged(); - } - } else { - if (!other.rules_.isEmpty()) { - if (rulesBuilder_.isEmpty()) { - rulesBuilder_.dispose(); - rulesBuilder_ = null; - rules_ = other.rules_; - bitField0_ = (bitField0_ & ~0x00000100); - rulesBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getRulesFieldBuilder() : null; - } else { - rulesBuilder_.addAllMessages(other.rules_); - } - } - } - if (other.hasUsersPresentIfEmpty()) { - setUsersPresentIfEmpty(other.getUsersPresentIfEmpty()); - } - if (usersBuilder_ == null) { - if (!other.users_.isEmpty()) { - if (users_.isEmpty()) { - users_ = other.users_; - bitField0_ = (bitField0_ & ~0x00000400); - } else { - ensureUsersIsMutable(); - users_.addAll(other.users_); - } - onChanged(); - } - } else { - if (!other.users_.isEmpty()) { - if (usersBuilder_.isEmpty()) { - usersBuilder_.dispose(); - usersBuilder_ = null; - users_ = other.users_; - bitField0_ = (bitField0_ & ~0x00000400); - usersBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getUsersFieldBuilder() : null; - } else { - usersBuilder_.addAllMessages(other.users_); - } - } - } - if (other.hasActionPlansPresentIfEmpty()) { - setActionPlansPresentIfEmpty(other.getActionPlansPresentIfEmpty()); - } - if (actionPlansBuilder_ == null) { - if (!other.actionPlans_.isEmpty()) { - if (actionPlans_.isEmpty()) { - actionPlans_ = other.actionPlans_; - bitField0_ = (bitField0_ & ~0x00001000); - } else { - ensureActionPlansIsMutable(); - actionPlans_.addAll(other.actionPlans_); - } - onChanged(); - } - } else { - if (!other.actionPlans_.isEmpty()) { - if (actionPlansBuilder_.isEmpty()) { - actionPlansBuilder_.dispose(); - actionPlansBuilder_ = null; - actionPlans_ = other.actionPlans_; - bitField0_ = (bitField0_ & ~0x00001000); - actionPlansBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getActionPlansFieldBuilder() : null; - } else { - actionPlansBuilder_.addAllMessages(other.actionPlans_); - } - } + if (other.hasRules()) { + mergeRules(other.getRules()); } - if (other.hasLanguagesPresentIfEmpty()) { - setLanguagesPresentIfEmpty(other.getLanguagesPresentIfEmpty()); + if (other.hasUsers()) { + mergeUsers(other.getUsers()); } - if (languagesBuilder_ == null) { - if (!other.languages_.isEmpty()) { - if (languages_.isEmpty()) { - languages_ = other.languages_; - bitField0_ = (bitField0_ & ~0x00004000); - } else { - ensureLanguagesIsMutable(); - languages_.addAll(other.languages_); - } - onChanged(); - } - } else { - if (!other.languages_.isEmpty()) { - if (languagesBuilder_.isEmpty()) { - languagesBuilder_.dispose(); - languagesBuilder_ = null; - languages_ = other.languages_; - bitField0_ = (bitField0_ & ~0x00004000); - languagesBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getLanguagesFieldBuilder() : null; - } else { - languagesBuilder_.addAllMessages(other.languages_); - } - } + if (other.hasActionPlans()) { + mergeActionPlans(other.getActionPlans()); } - if (other.hasFacetsPresentIfEmpty()) { - setFacetsPresentIfEmpty(other.getFacetsPresentIfEmpty()); + if (other.hasLanguages()) { + mergeLanguages(other.getLanguages()); } - if (facetsBuilder_ == null) { - if (!other.facets_.isEmpty()) { - if (facets_.isEmpty()) { - facets_ = other.facets_; - bitField0_ = (bitField0_ & ~0x00010000); - } else { - ensureFacetsIsMutable(); - facets_.addAll(other.facets_); - } - onChanged(); - } - } else { - if (!other.facets_.isEmpty()) { - if (facetsBuilder_.isEmpty()) { - facetsBuilder_.dispose(); - facetsBuilder_ = null; - facets_ = other.facets_; - bitField0_ = (bitField0_ & ~0x00010000); - facetsBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getFacetsFieldBuilder() : null; - } else { - facetsBuilder_.addAllMessages(other.facets_); - } - } + if (other.hasFacets()) { + mergeFacets(other.getFacets()); } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -2372,1394 +1902,624 @@ public final class Issues { return componentsBuilder_; } - private boolean rulesPresentIfEmpty_ ; + private org.sonarqube.ws.Common.Rules rules_ = null; + private com.google.protobuf.SingleFieldBuilder< + org.sonarqube.ws.Common.Rules, org.sonarqube.ws.Common.Rules.Builder, org.sonarqube.ws.Common.RulesOrBuilder> rulesBuilder_; /** - * optional bool rulesPresentIfEmpty = 8; + * optional .sonarqube.ws.commons.Rules rules = 8; */ - public boolean hasRulesPresentIfEmpty() { + public boolean hasRules() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** - * optional bool rulesPresentIfEmpty = 8; - */ - public boolean getRulesPresentIfEmpty() { - return rulesPresentIfEmpty_; - } - /** - * optional bool rulesPresentIfEmpty = 8; - */ - public Builder setRulesPresentIfEmpty(boolean value) { - bitField0_ |= 0x00000080; - rulesPresentIfEmpty_ = value; - onChanged(); - return this; - } - /** - * optional bool rulesPresentIfEmpty = 8; - */ - public Builder clearRulesPresentIfEmpty() { - bitField0_ = (bitField0_ & ~0x00000080); - rulesPresentIfEmpty_ = false; - onChanged(); - return this; - } - - private java.util.List rules_ = - java.util.Collections.emptyList(); - private void ensureRulesIsMutable() { - if (!((bitField0_ & 0x00000100) == 0x00000100)) { - rules_ = new java.util.ArrayList(rules_); - bitField0_ |= 0x00000100; - } - } - - 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.commons.Rule rules = 9; - */ - public java.util.List getRulesList() { - if (rulesBuilder_ == null) { - return java.util.Collections.unmodifiableList(rules_); - } else { - return rulesBuilder_.getMessageList(); - } - } - /** - * repeated .sonarqube.ws.commons.Rule rules = 9; - */ - public int getRulesCount() { - if (rulesBuilder_ == null) { - return rules_.size(); - } else { - return rulesBuilder_.getCount(); - } - } - /** - * repeated .sonarqube.ws.commons.Rule rules = 9; + * optional .sonarqube.ws.commons.Rules rules = 8; */ - public org.sonarqube.ws.Common.Rule getRules(int index) { + public org.sonarqube.ws.Common.Rules getRules() { if (rulesBuilder_ == null) { - return rules_.get(index); + return rules_ == null ? org.sonarqube.ws.Common.Rules.getDefaultInstance() : rules_; } else { - return rulesBuilder_.getMessage(index); + return rulesBuilder_.getMessage(); } } /** - * repeated .sonarqube.ws.commons.Rule rules = 9; + * optional .sonarqube.ws.commons.Rules rules = 8; */ - public Builder setRules( - int index, org.sonarqube.ws.Common.Rule value) { + public Builder setRules(org.sonarqube.ws.Common.Rules value) { if (rulesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureRulesIsMutable(); - rules_.set(index, value); + rules_ = value; onChanged(); } else { - rulesBuilder_.setMessage(index, value); + rulesBuilder_.setMessage(value); } + bitField0_ |= 0x00000080; return this; } /** - * repeated .sonarqube.ws.commons.Rule rules = 9; + * optional .sonarqube.ws.commons.Rules rules = 8; */ public Builder setRules( - int index, org.sonarqube.ws.Common.Rule.Builder builderForValue) { + org.sonarqube.ws.Common.Rules.Builder builderForValue) { if (rulesBuilder_ == null) { - ensureRulesIsMutable(); - rules_.set(index, builderForValue.build()); + rules_ = builderForValue.build(); onChanged(); } else { - rulesBuilder_.setMessage(index, builderForValue.build()); + rulesBuilder_.setMessage(builderForValue.build()); } + bitField0_ |= 0x00000080; return this; } /** - * repeated .sonarqube.ws.commons.Rule rules = 9; + * optional .sonarqube.ws.commons.Rules rules = 8; */ - public Builder addRules(org.sonarqube.ws.Common.Rule value) { + public Builder mergeRules(org.sonarqube.ws.Common.Rules value) { if (rulesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); + if (((bitField0_ & 0x00000080) == 0x00000080) && + rules_ != null && + rules_ != org.sonarqube.ws.Common.Rules.getDefaultInstance()) { + rules_ = + org.sonarqube.ws.Common.Rules.newBuilder(rules_).mergeFrom(value).buildPartial(); + } else { + rules_ = value; } - ensureRulesIsMutable(); - rules_.add(value); onChanged(); } else { - rulesBuilder_.addMessage(value); + rulesBuilder_.mergeFrom(value); } + bitField0_ |= 0x00000080; return this; } /** - * repeated .sonarqube.ws.commons.Rule rules = 9; + * optional .sonarqube.ws.commons.Rules rules = 8; */ - public Builder addRules( - int index, org.sonarqube.ws.Common.Rule value) { + public Builder clearRules() { if (rulesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRulesIsMutable(); - rules_.add(index, value); + rules_ = null; onChanged(); } else { - rulesBuilder_.addMessage(index, value); + rulesBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000080); return this; } /** - * repeated .sonarqube.ws.commons.Rule rules = 9; + * optional .sonarqube.ws.commons.Rules rules = 8; */ - public Builder addRules( - org.sonarqube.ws.Common.Rule.Builder builderForValue) { - if (rulesBuilder_ == null) { - ensureRulesIsMutable(); - rules_.add(builderForValue.build()); - onChanged(); + public org.sonarqube.ws.Common.Rules.Builder getRulesBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return getRulesFieldBuilder().getBuilder(); + } + /** + * optional .sonarqube.ws.commons.Rules rules = 8; + */ + public org.sonarqube.ws.Common.RulesOrBuilder getRulesOrBuilder() { + if (rulesBuilder_ != null) { + return rulesBuilder_.getMessageOrBuilder(); } else { - rulesBuilder_.addMessage(builderForValue.build()); + return rules_ == null ? + org.sonarqube.ws.Common.Rules.getDefaultInstance() : rules_; } - return this; } /** - * repeated .sonarqube.ws.commons.Rule rules = 9; + * optional .sonarqube.ws.commons.Rules rules = 8; */ - 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()); + private com.google.protobuf.SingleFieldBuilder< + org.sonarqube.ws.Common.Rules, org.sonarqube.ws.Common.Rules.Builder, org.sonarqube.ws.Common.RulesOrBuilder> + getRulesFieldBuilder() { + if (rulesBuilder_ == null) { + rulesBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.sonarqube.ws.Common.Rules, org.sonarqube.ws.Common.Rules.Builder, org.sonarqube.ws.Common.RulesOrBuilder>( + getRules(), + getParentForChildren(), + isClean()); + rules_ = null; } - return this; + return rulesBuilder_; } + + private org.sonarqube.ws.Common.Users users_ = null; + private com.google.protobuf.SingleFieldBuilder< + org.sonarqube.ws.Common.Users, org.sonarqube.ws.Common.Users.Builder, org.sonarqube.ws.Common.UsersOrBuilder> usersBuilder_; /** - * repeated .sonarqube.ws.commons.Rule rules = 9; + * optional .sonarqube.ws.commons.Users users = 9; */ - public Builder addAllRules( - java.lang.Iterable values) { - if (rulesBuilder_ == null) { - ensureRulesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, rules_); - onChanged(); + public boolean hasUsers() { + return ((bitField0_ & 0x00000100) == 0x00000100); + } + /** + * optional .sonarqube.ws.commons.Users users = 9; + */ + public org.sonarqube.ws.Common.Users getUsers() { + if (usersBuilder_ == null) { + return users_ == null ? org.sonarqube.ws.Common.Users.getDefaultInstance() : users_; } else { - rulesBuilder_.addAllMessages(values); + return usersBuilder_.getMessage(); } - return this; } /** - * repeated .sonarqube.ws.commons.Rule rules = 9; + * optional .sonarqube.ws.commons.Users users = 9; */ - public Builder clearRules() { - if (rulesBuilder_ == null) { - rules_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000100); + public Builder setUsers(org.sonarqube.ws.Common.Users value) { + if (usersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + users_ = value; onChanged(); } else { - rulesBuilder_.clear(); + usersBuilder_.setMessage(value); } + bitField0_ |= 0x00000100; return this; } /** - * repeated .sonarqube.ws.commons.Rule rules = 9; + * optional .sonarqube.ws.commons.Users users = 9; */ - public Builder removeRules(int index) { - if (rulesBuilder_ == null) { - ensureRulesIsMutable(); - rules_.remove(index); + public Builder setUsers( + org.sonarqube.ws.Common.Users.Builder builderForValue) { + if (usersBuilder_ == null) { + users_ = builderForValue.build(); onChanged(); } else { - rulesBuilder_.remove(index); + usersBuilder_.setMessage(builderForValue.build()); } + bitField0_ |= 0x00000100; return this; } /** - * repeated .sonarqube.ws.commons.Rule rules = 9; - */ - public org.sonarqube.ws.Common.Rule.Builder getRulesBuilder( - int index) { - return getRulesFieldBuilder().getBuilder(index); - } - /** - * repeated .sonarqube.ws.commons.Rule rules = 9; + * optional .sonarqube.ws.commons.Users users = 9; */ - public org.sonarqube.ws.Common.RuleOrBuilder getRulesOrBuilder( - int index) { - if (rulesBuilder_ == null) { - return rules_.get(index); } else { - return rulesBuilder_.getMessageOrBuilder(index); + public Builder mergeUsers(org.sonarqube.ws.Common.Users value) { + if (usersBuilder_ == null) { + if (((bitField0_ & 0x00000100) == 0x00000100) && + users_ != null && + users_ != org.sonarqube.ws.Common.Users.getDefaultInstance()) { + users_ = + org.sonarqube.ws.Common.Users.newBuilder(users_).mergeFrom(value).buildPartial(); + } else { + users_ = value; + } + onChanged(); + } else { + usersBuilder_.mergeFrom(value); } + bitField0_ |= 0x00000100; + return this; } /** - * repeated .sonarqube.ws.commons.Rule rules = 9; + * optional .sonarqube.ws.commons.Users users = 9; */ - public java.util.List - getRulesOrBuilderList() { - if (rulesBuilder_ != null) { - return rulesBuilder_.getMessageOrBuilderList(); + public Builder clearUsers() { + if (usersBuilder_ == null) { + users_ = null; + onChanged(); } else { - return java.util.Collections.unmodifiableList(rules_); + usersBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000100); + return this; } /** - * repeated .sonarqube.ws.commons.Rule rules = 9; + * optional .sonarqube.ws.commons.Users users = 9; */ - public org.sonarqube.ws.Common.Rule.Builder addRulesBuilder() { - return getRulesFieldBuilder().addBuilder( - org.sonarqube.ws.Common.Rule.getDefaultInstance()); + public org.sonarqube.ws.Common.Users.Builder getUsersBuilder() { + bitField0_ |= 0x00000100; + onChanged(); + return getUsersFieldBuilder().getBuilder(); } /** - * repeated .sonarqube.ws.commons.Rule rules = 9; + * optional .sonarqube.ws.commons.Users users = 9; */ - public org.sonarqube.ws.Common.Rule.Builder addRulesBuilder( - int index) { - return getRulesFieldBuilder().addBuilder( - index, org.sonarqube.ws.Common.Rule.getDefaultInstance()); + public org.sonarqube.ws.Common.UsersOrBuilder getUsersOrBuilder() { + if (usersBuilder_ != null) { + return usersBuilder_.getMessageOrBuilder(); + } else { + return users_ == null ? + org.sonarqube.ws.Common.Users.getDefaultInstance() : users_; + } } /** - * repeated .sonarqube.ws.commons.Rule rules = 9; + * optional .sonarqube.ws.commons.Users users = 9; */ - 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_ & 0x00000100) == 0x00000100), + private com.google.protobuf.SingleFieldBuilder< + org.sonarqube.ws.Common.Users, org.sonarqube.ws.Common.Users.Builder, org.sonarqube.ws.Common.UsersOrBuilder> + getUsersFieldBuilder() { + if (usersBuilder_ == null) { + usersBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.sonarqube.ws.Common.Users, org.sonarqube.ws.Common.Users.Builder, org.sonarqube.ws.Common.UsersOrBuilder>( + getUsers(), getParentForChildren(), isClean()); - rules_ = null; + users_ = null; } - return rulesBuilder_; + return usersBuilder_; } - private boolean usersPresentIfEmpty_ ; + private org.sonarqube.ws.Issues.ActionPlans actionPlans_ = null; + private com.google.protobuf.SingleFieldBuilder< + org.sonarqube.ws.Issues.ActionPlans, org.sonarqube.ws.Issues.ActionPlans.Builder, org.sonarqube.ws.Issues.ActionPlansOrBuilder> actionPlansBuilder_; /** - * optional bool usersPresentIfEmpty = 10; + * optional .sonarqube.ws.issues.ActionPlans actionPlans = 10; */ - public boolean hasUsersPresentIfEmpty() { + public boolean hasActionPlans() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** - * optional bool usersPresentIfEmpty = 10; + * optional .sonarqube.ws.issues.ActionPlans actionPlans = 10; */ - public boolean getUsersPresentIfEmpty() { - return usersPresentIfEmpty_; + public org.sonarqube.ws.Issues.ActionPlans getActionPlans() { + if (actionPlansBuilder_ == null) { + return actionPlans_ == null ? org.sonarqube.ws.Issues.ActionPlans.getDefaultInstance() : actionPlans_; + } else { + return actionPlansBuilder_.getMessage(); + } } /** - * optional bool usersPresentIfEmpty = 10; + * optional .sonarqube.ws.issues.ActionPlans actionPlans = 10; */ - public Builder setUsersPresentIfEmpty(boolean value) { + public Builder setActionPlans(org.sonarqube.ws.Issues.ActionPlans value) { + if (actionPlansBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + actionPlans_ = value; + onChanged(); + } else { + actionPlansBuilder_.setMessage(value); + } bitField0_ |= 0x00000200; - usersPresentIfEmpty_ = value; - onChanged(); return this; } /** - * optional bool usersPresentIfEmpty = 10; + * optional .sonarqube.ws.issues.ActionPlans actionPlans = 10; */ - public Builder clearUsersPresentIfEmpty() { - bitField0_ = (bitField0_ & ~0x00000200); - usersPresentIfEmpty_ = false; - onChanged(); + public Builder setActionPlans( + org.sonarqube.ws.Issues.ActionPlans.Builder builderForValue) { + if (actionPlansBuilder_ == null) { + actionPlans_ = builderForValue.build(); + onChanged(); + } else { + actionPlansBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000200; return this; } - - private java.util.List users_ = - java.util.Collections.emptyList(); - private void ensureUsersIsMutable() { - if (!((bitField0_ & 0x00000400) == 0x00000400)) { - users_ = new java.util.ArrayList(users_); - bitField0_ |= 0x00000400; - } - } - - 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.commons.User users = 11; + * optional .sonarqube.ws.issues.ActionPlans actionPlans = 10; */ - public java.util.List getUsersList() { - if (usersBuilder_ == null) { - return java.util.Collections.unmodifiableList(users_); + public Builder mergeActionPlans(org.sonarqube.ws.Issues.ActionPlans value) { + if (actionPlansBuilder_ == null) { + if (((bitField0_ & 0x00000200) == 0x00000200) && + actionPlans_ != null && + actionPlans_ != org.sonarqube.ws.Issues.ActionPlans.getDefaultInstance()) { + actionPlans_ = + org.sonarqube.ws.Issues.ActionPlans.newBuilder(actionPlans_).mergeFrom(value).buildPartial(); + } else { + actionPlans_ = value; + } + onChanged(); } else { - return usersBuilder_.getMessageList(); + actionPlansBuilder_.mergeFrom(value); } + bitField0_ |= 0x00000200; + return this; } /** - * repeated .sonarqube.ws.commons.User users = 11; + * optional .sonarqube.ws.issues.ActionPlans actionPlans = 10; */ - public int getUsersCount() { - if (usersBuilder_ == null) { - return users_.size(); + public Builder clearActionPlans() { + if (actionPlansBuilder_ == null) { + actionPlans_ = null; + onChanged(); } else { - return usersBuilder_.getCount(); + actionPlansBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000200); + return this; } /** - * repeated .sonarqube.ws.commons.User users = 11; + * optional .sonarqube.ws.issues.ActionPlans actionPlans = 10; */ - public org.sonarqube.ws.Common.User getUsers(int index) { - if (usersBuilder_ == null) { - return users_.get(index); + public org.sonarqube.ws.Issues.ActionPlans.Builder getActionPlansBuilder() { + bitField0_ |= 0x00000200; + onChanged(); + return getActionPlansFieldBuilder().getBuilder(); + } + /** + * optional .sonarqube.ws.issues.ActionPlans actionPlans = 10; + */ + public org.sonarqube.ws.Issues.ActionPlansOrBuilder getActionPlansOrBuilder() { + if (actionPlansBuilder_ != null) { + return actionPlansBuilder_.getMessageOrBuilder(); } else { - return usersBuilder_.getMessage(index); + return actionPlans_ == null ? + org.sonarqube.ws.Issues.ActionPlans.getDefaultInstance() : actionPlans_; } } /** - * repeated .sonarqube.ws.commons.User users = 11; + * optional .sonarqube.ws.issues.ActionPlans actionPlans = 10; */ - 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); + private com.google.protobuf.SingleFieldBuilder< + org.sonarqube.ws.Issues.ActionPlans, org.sonarqube.ws.Issues.ActionPlans.Builder, org.sonarqube.ws.Issues.ActionPlansOrBuilder> + getActionPlansFieldBuilder() { + if (actionPlansBuilder_ == null) { + actionPlansBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.sonarqube.ws.Issues.ActionPlans, org.sonarqube.ws.Issues.ActionPlans.Builder, org.sonarqube.ws.Issues.ActionPlansOrBuilder>( + getActionPlans(), + getParentForChildren(), + isClean()); + actionPlans_ = null; } - return this; + return actionPlansBuilder_; } + + private org.sonarqube.ws.Issues.Languages languages_ = null; + private com.google.protobuf.SingleFieldBuilder< + org.sonarqube.ws.Issues.Languages, org.sonarqube.ws.Issues.Languages.Builder, org.sonarqube.ws.Issues.LanguagesOrBuilder> languagesBuilder_; /** - * repeated .sonarqube.ws.commons.User users = 11; + * optional .sonarqube.ws.issues.Languages languages = 11; */ - public Builder setUsers( - int index, org.sonarqube.ws.Common.User.Builder builderForValue) { - if (usersBuilder_ == null) { - ensureUsersIsMutable(); - users_.set(index, builderForValue.build()); - onChanged(); + public boolean hasLanguages() { + return ((bitField0_ & 0x00000400) == 0x00000400); + } + /** + * optional .sonarqube.ws.issues.Languages languages = 11; + */ + public org.sonarqube.ws.Issues.Languages getLanguages() { + if (languagesBuilder_ == null) { + return languages_ == null ? org.sonarqube.ws.Issues.Languages.getDefaultInstance() : languages_; } else { - usersBuilder_.setMessage(index, builderForValue.build()); + return languagesBuilder_.getMessage(); } - return this; } /** - * repeated .sonarqube.ws.commons.User users = 11; + * optional .sonarqube.ws.issues.Languages languages = 11; */ - public Builder addUsers(org.sonarqube.ws.Common.User value) { - if (usersBuilder_ == null) { + public Builder setLanguages(org.sonarqube.ws.Issues.Languages value) { + if (languagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureUsersIsMutable(); - users_.add(value); + languages_ = value; onChanged(); } else { - usersBuilder_.addMessage(value); + languagesBuilder_.setMessage(value); } + bitField0_ |= 0x00000400; return this; } /** - * repeated .sonarqube.ws.commons.User users = 11; + * optional .sonarqube.ws.issues.Languages languages = 11; */ - 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); + public Builder setLanguages( + org.sonarqube.ws.Issues.Languages.Builder builderForValue) { + if (languagesBuilder_ == null) { + languages_ = builderForValue.build(); onChanged(); } else { - usersBuilder_.addMessage(index, value); + languagesBuilder_.setMessage(builderForValue.build()); } + bitField0_ |= 0x00000400; return this; } /** - * repeated .sonarqube.ws.commons.User users = 11; + * optional .sonarqube.ws.issues.Languages languages = 11; */ - public Builder addUsers( - org.sonarqube.ws.Common.User.Builder builderForValue) { - if (usersBuilder_ == null) { - ensureUsersIsMutable(); - users_.add(builderForValue.build()); + public Builder mergeLanguages(org.sonarqube.ws.Issues.Languages value) { + if (languagesBuilder_ == null) { + if (((bitField0_ & 0x00000400) == 0x00000400) && + languages_ != null && + languages_ != org.sonarqube.ws.Issues.Languages.getDefaultInstance()) { + languages_ = + org.sonarqube.ws.Issues.Languages.newBuilder(languages_).mergeFrom(value).buildPartial(); + } else { + languages_ = value; + } onChanged(); } else { - usersBuilder_.addMessage(builderForValue.build()); + languagesBuilder_.mergeFrom(value); } + bitField0_ |= 0x00000400; return this; } /** - * repeated .sonarqube.ws.commons.User users = 11; + * optional .sonarqube.ws.issues.Languages languages = 11; */ - public Builder addUsers( - int index, org.sonarqube.ws.Common.User.Builder builderForValue) { - if (usersBuilder_ == null) { - ensureUsersIsMutable(); - users_.add(index, builderForValue.build()); + public Builder clearLanguages() { + if (languagesBuilder_ == null) { + languages_ = null; onChanged(); } else { - usersBuilder_.addMessage(index, builderForValue.build()); + languagesBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000400); return this; } /** - * repeated .sonarqube.ws.commons.User users = 11; + * optional .sonarqube.ws.issues.Languages languages = 11; */ - public Builder addAllUsers( - java.lang.Iterable values) { - if (usersBuilder_ == null) { - ensureUsersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, users_); - onChanged(); + public org.sonarqube.ws.Issues.Languages.Builder getLanguagesBuilder() { + bitField0_ |= 0x00000400; + onChanged(); + return getLanguagesFieldBuilder().getBuilder(); + } + /** + * optional .sonarqube.ws.issues.Languages languages = 11; + */ + public org.sonarqube.ws.Issues.LanguagesOrBuilder getLanguagesOrBuilder() { + if (languagesBuilder_ != null) { + return languagesBuilder_.getMessageOrBuilder(); } else { - usersBuilder_.addAllMessages(values); + return languages_ == null ? + org.sonarqube.ws.Issues.Languages.getDefaultInstance() : languages_; } - return this; } /** - * repeated .sonarqube.ws.commons.User users = 11; + * optional .sonarqube.ws.issues.Languages languages = 11; */ - public Builder clearUsers() { - if (usersBuilder_ == null) { - users_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000400); - onChanged(); - } else { - usersBuilder_.clear(); - } - return this; - } - /** - * repeated .sonarqube.ws.commons.User users = 11; - */ - public Builder removeUsers(int index) { - if (usersBuilder_ == null) { - ensureUsersIsMutable(); - users_.remove(index); - onChanged(); - } else { - usersBuilder_.remove(index); - } - return this; - } - /** - * repeated .sonarqube.ws.commons.User users = 11; - */ - public org.sonarqube.ws.Common.User.Builder getUsersBuilder( - int index) { - return getUsersFieldBuilder().getBuilder(index); - } - /** - * repeated .sonarqube.ws.commons.User users = 11; - */ - public org.sonarqube.ws.Common.UserOrBuilder getUsersOrBuilder( - int index) { - if (usersBuilder_ == null) { - return users_.get(index); } else { - return usersBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .sonarqube.ws.commons.User users = 11; - */ - public java.util.List - getUsersOrBuilderList() { - if (usersBuilder_ != null) { - return usersBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(users_); - } - } - /** - * repeated .sonarqube.ws.commons.User users = 11; - */ - public org.sonarqube.ws.Common.User.Builder addUsersBuilder() { - return getUsersFieldBuilder().addBuilder( - org.sonarqube.ws.Common.User.getDefaultInstance()); - } - /** - * repeated .sonarqube.ws.commons.User users = 11; - */ - public org.sonarqube.ws.Common.User.Builder addUsersBuilder( - int index) { - return getUsersFieldBuilder().addBuilder( - index, org.sonarqube.ws.Common.User.getDefaultInstance()); - } - /** - * repeated .sonarqube.ws.commons.User users = 11; - */ - 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_ & 0x00000400) == 0x00000400), + private com.google.protobuf.SingleFieldBuilder< + org.sonarqube.ws.Issues.Languages, org.sonarqube.ws.Issues.Languages.Builder, org.sonarqube.ws.Issues.LanguagesOrBuilder> + getLanguagesFieldBuilder() { + if (languagesBuilder_ == null) { + languagesBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.sonarqube.ws.Issues.Languages, org.sonarqube.ws.Issues.Languages.Builder, org.sonarqube.ws.Issues.LanguagesOrBuilder>( + getLanguages(), getParentForChildren(), isClean()); - users_ = null; + languages_ = null; } - return usersBuilder_; + return languagesBuilder_; } - private boolean actionPlansPresentIfEmpty_ ; + private org.sonarqube.ws.Common.Facets facets_ = null; + private com.google.protobuf.SingleFieldBuilder< + org.sonarqube.ws.Common.Facets, org.sonarqube.ws.Common.Facets.Builder, org.sonarqube.ws.Common.FacetsOrBuilder> facetsBuilder_; /** - * optional bool actionPlansPresentIfEmpty = 12; + * optional .sonarqube.ws.commons.Facets facets = 12; */ - public boolean hasActionPlansPresentIfEmpty() { + public boolean hasFacets() { return ((bitField0_ & 0x00000800) == 0x00000800); } /** - * optional bool actionPlansPresentIfEmpty = 12; - */ - public boolean getActionPlansPresentIfEmpty() { - return actionPlansPresentIfEmpty_; - } - /** - * optional bool actionPlansPresentIfEmpty = 12; - */ - public Builder setActionPlansPresentIfEmpty(boolean value) { - bitField0_ |= 0x00000800; - actionPlansPresentIfEmpty_ = value; - onChanged(); - return this; - } - /** - * optional bool actionPlansPresentIfEmpty = 12; - */ - public Builder clearActionPlansPresentIfEmpty() { - bitField0_ = (bitField0_ & ~0x00000800); - actionPlansPresentIfEmpty_ = false; - onChanged(); - return this; - } - - private java.util.List actionPlans_ = - java.util.Collections.emptyList(); - private void ensureActionPlansIsMutable() { - if (!((bitField0_ & 0x00001000) == 0x00001000)) { - actionPlans_ = new java.util.ArrayList(actionPlans_); - bitField0_ |= 0x00001000; - } - } - - 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 = 13; - */ - public java.util.List getActionPlansList() { - if (actionPlansBuilder_ == null) { - return java.util.Collections.unmodifiableList(actionPlans_); - } else { - return actionPlansBuilder_.getMessageList(); - } - } - /** - * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 13; - */ - public int getActionPlansCount() { - if (actionPlansBuilder_ == null) { - return actionPlans_.size(); - } else { - return actionPlansBuilder_.getCount(); - } - } - /** - * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 13; + * optional .sonarqube.ws.commons.Facets facets = 12; */ - public org.sonarqube.ws.Issues.ActionPlan getActionPlans(int index) { - if (actionPlansBuilder_ == null) { - return actionPlans_.get(index); + public org.sonarqube.ws.Common.Facets getFacets() { + if (facetsBuilder_ == null) { + return facets_ == null ? org.sonarqube.ws.Common.Facets.getDefaultInstance() : facets_; } else { - return actionPlansBuilder_.getMessage(index); + return facetsBuilder_.getMessage(); } } /** - * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 13; + * optional .sonarqube.ws.commons.Facets facets = 12; */ - public Builder setActionPlans( - int index, org.sonarqube.ws.Issues.ActionPlan value) { - if (actionPlansBuilder_ == null) { + public Builder setFacets(org.sonarqube.ws.Common.Facets value) { + if (facetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureActionPlansIsMutable(); - actionPlans_.set(index, value); + facets_ = value; onChanged(); } else { - actionPlansBuilder_.setMessage(index, value); + facetsBuilder_.setMessage(value); } + bitField0_ |= 0x00000800; return this; } /** - * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 13; + * optional .sonarqube.ws.commons.Facets facets = 12; */ - public Builder setActionPlans( - int index, org.sonarqube.ws.Issues.ActionPlan.Builder builderForValue) { - if (actionPlansBuilder_ == null) { - ensureActionPlansIsMutable(); - actionPlans_.set(index, builderForValue.build()); + public Builder setFacets( + org.sonarqube.ws.Common.Facets.Builder builderForValue) { + if (facetsBuilder_ == null) { + facets_ = builderForValue.build(); onChanged(); } else { - actionPlansBuilder_.setMessage(index, builderForValue.build()); + facetsBuilder_.setMessage(builderForValue.build()); } + bitField0_ |= 0x00000800; return this; } /** - * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 13; + * optional .sonarqube.ws.commons.Facets facets = 12; */ - public Builder addActionPlans(org.sonarqube.ws.Issues.ActionPlan value) { - if (actionPlansBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); + public Builder mergeFacets(org.sonarqube.ws.Common.Facets value) { + if (facetsBuilder_ == null) { + if (((bitField0_ & 0x00000800) == 0x00000800) && + facets_ != null && + facets_ != org.sonarqube.ws.Common.Facets.getDefaultInstance()) { + facets_ = + org.sonarqube.ws.Common.Facets.newBuilder(facets_).mergeFrom(value).buildPartial(); + } else { + facets_ = value; } - ensureActionPlansIsMutable(); - actionPlans_.add(value); onChanged(); } else { - actionPlansBuilder_.addMessage(value); + facetsBuilder_.mergeFrom(value); } + bitField0_ |= 0x00000800; return this; } /** - * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 13; + * optional .sonarqube.ws.commons.Facets facets = 12; */ - 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); + public Builder clearFacets() { + if (facetsBuilder_ == null) { + facets_ = null; onChanged(); } else { - actionPlansBuilder_.addMessage(index, value); + facetsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000800); return this; } /** - * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 13; + * optional .sonarqube.ws.commons.Facets facets = 12; */ - 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; + public org.sonarqube.ws.Common.Facets.Builder getFacetsBuilder() { + bitField0_ |= 0x00000800; + onChanged(); + return getFacetsFieldBuilder().getBuilder(); } /** - * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 13; + * optional .sonarqube.ws.commons.Facets facets = 12; */ - public Builder addActionPlans( - int index, org.sonarqube.ws.Issues.ActionPlan.Builder builderForValue) { - if (actionPlansBuilder_ == null) { - ensureActionPlansIsMutable(); - actionPlans_.add(index, builderForValue.build()); - onChanged(); + public org.sonarqube.ws.Common.FacetsOrBuilder getFacetsOrBuilder() { + if (facetsBuilder_ != null) { + return facetsBuilder_.getMessageOrBuilder(); } else { - actionPlansBuilder_.addMessage(index, builderForValue.build()); + return facets_ == null ? + org.sonarqube.ws.Common.Facets.getDefaultInstance() : facets_; } - return this; } /** - * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 13; + * optional .sonarqube.ws.commons.Facets facets = 12; */ - public Builder addAllActionPlans( - java.lang.Iterable values) { - if (actionPlansBuilder_ == null) { - ensureActionPlansIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, actionPlans_); - onChanged(); - } else { - actionPlansBuilder_.addAllMessages(values); + private com.google.protobuf.SingleFieldBuilder< + org.sonarqube.ws.Common.Facets, org.sonarqube.ws.Common.Facets.Builder, org.sonarqube.ws.Common.FacetsOrBuilder> + getFacetsFieldBuilder() { + if (facetsBuilder_ == null) { + facetsBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.sonarqube.ws.Common.Facets, org.sonarqube.ws.Common.Facets.Builder, org.sonarqube.ws.Common.FacetsOrBuilder>( + getFacets(), + getParentForChildren(), + isClean()); + facets_ = null; } - return this; + return facetsBuilder_; } - /** - * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 13; - */ - public Builder clearActionPlans() { - if (actionPlansBuilder_ == null) { - actionPlans_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00001000); - onChanged(); - } else { - actionPlansBuilder_.clear(); - } - return this; - } - /** - * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 13; - */ - 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 = 13; - */ - public org.sonarqube.ws.Issues.ActionPlan.Builder getActionPlansBuilder( - int index) { - return getActionPlansFieldBuilder().getBuilder(index); - } - /** - * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 13; - */ - public org.sonarqube.ws.Issues.ActionPlanOrBuilder getActionPlansOrBuilder( - int index) { - if (actionPlansBuilder_ == null) { - return actionPlans_.get(index); } else { - return actionPlansBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 13; - */ - public java.util.List - getActionPlansOrBuilderList() { - if (actionPlansBuilder_ != null) { - return actionPlansBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(actionPlans_); - } - } - /** - * 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 = 13; - */ - public org.sonarqube.ws.Issues.ActionPlan.Builder addActionPlansBuilder( - int index) { - return getActionPlansFieldBuilder().addBuilder( - index, org.sonarqube.ws.Issues.ActionPlan.getDefaultInstance()); - } - /** - * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 13; - */ - 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_ & 0x00001000) == 0x00001000), - getParentForChildren(), - isClean()); - actionPlans_ = null; - } - return actionPlansBuilder_; - } - - private boolean languagesPresentIfEmpty_ ; - /** - * optional bool languagesPresentIfEmpty = 14; - */ - public boolean hasLanguagesPresentIfEmpty() { - return ((bitField0_ & 0x00002000) == 0x00002000); - } - /** - * optional bool languagesPresentIfEmpty = 14; - */ - public boolean getLanguagesPresentIfEmpty() { - return languagesPresentIfEmpty_; - } - /** - * optional bool languagesPresentIfEmpty = 14; - */ - public Builder setLanguagesPresentIfEmpty(boolean value) { - bitField0_ |= 0x00002000; - languagesPresentIfEmpty_ = value; - onChanged(); - return this; - } - /** - * optional bool languagesPresentIfEmpty = 14; - */ - public Builder clearLanguagesPresentIfEmpty() { - bitField0_ = (bitField0_ & ~0x00002000); - languagesPresentIfEmpty_ = false; - onChanged(); - return this; - } - - private java.util.List languages_ = - java.util.Collections.emptyList(); - private void ensureLanguagesIsMutable() { - if (!((bitField0_ & 0x00004000) == 0x00004000)) { - languages_ = new java.util.ArrayList(languages_); - bitField0_ |= 0x00004000; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.Issues.Language, org.sonarqube.ws.Issues.Language.Builder, org.sonarqube.ws.Issues.LanguageOrBuilder> languagesBuilder_; - - /** - * repeated .sonarqube.ws.issues.Language languages = 15; - */ - public java.util.List getLanguagesList() { - if (languagesBuilder_ == null) { - return java.util.Collections.unmodifiableList(languages_); - } else { - return languagesBuilder_.getMessageList(); - } - } - /** - * repeated .sonarqube.ws.issues.Language languages = 15; - */ - public int getLanguagesCount() { - if (languagesBuilder_ == null) { - return languages_.size(); - } else { - return languagesBuilder_.getCount(); - } - } - /** - * repeated .sonarqube.ws.issues.Language languages = 15; - */ - public org.sonarqube.ws.Issues.Language getLanguages(int index) { - if (languagesBuilder_ == null) { - return languages_.get(index); - } else { - return languagesBuilder_.getMessage(index); - } - } - /** - * repeated .sonarqube.ws.issues.Language languages = 15; - */ - public Builder setLanguages( - int index, org.sonarqube.ws.Issues.Language value) { - if (languagesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLanguagesIsMutable(); - languages_.set(index, value); - onChanged(); - } else { - languagesBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .sonarqube.ws.issues.Language languages = 15; - */ - public Builder setLanguages( - int index, org.sonarqube.ws.Issues.Language.Builder builderForValue) { - if (languagesBuilder_ == null) { - ensureLanguagesIsMutable(); - languages_.set(index, builderForValue.build()); - onChanged(); - } else { - languagesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.issues.Language languages = 15; - */ - public Builder addLanguages(org.sonarqube.ws.Issues.Language value) { - if (languagesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLanguagesIsMutable(); - languages_.add(value); - onChanged(); - } else { - languagesBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .sonarqube.ws.issues.Language languages = 15; - */ - public Builder addLanguages( - int index, org.sonarqube.ws.Issues.Language value) { - if (languagesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLanguagesIsMutable(); - languages_.add(index, value); - onChanged(); - } else { - languagesBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .sonarqube.ws.issues.Language languages = 15; - */ - public Builder addLanguages( - org.sonarqube.ws.Issues.Language.Builder builderForValue) { - if (languagesBuilder_ == null) { - ensureLanguagesIsMutable(); - languages_.add(builderForValue.build()); - onChanged(); - } else { - languagesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.issues.Language languages = 15; - */ - public Builder addLanguages( - int index, org.sonarqube.ws.Issues.Language.Builder builderForValue) { - if (languagesBuilder_ == null) { - ensureLanguagesIsMutable(); - languages_.add(index, builderForValue.build()); - onChanged(); - } else { - languagesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.issues.Language languages = 15; - */ - public Builder addAllLanguages( - java.lang.Iterable values) { - if (languagesBuilder_ == null) { - ensureLanguagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, languages_); - onChanged(); - } else { - languagesBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .sonarqube.ws.issues.Language languages = 15; - */ - public Builder clearLanguages() { - if (languagesBuilder_ == null) { - languages_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00004000); - onChanged(); - } else { - languagesBuilder_.clear(); - } - return this; - } - /** - * repeated .sonarqube.ws.issues.Language languages = 15; - */ - public Builder removeLanguages(int index) { - if (languagesBuilder_ == null) { - ensureLanguagesIsMutable(); - languages_.remove(index); - onChanged(); - } else { - languagesBuilder_.remove(index); - } - return this; - } - /** - * 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 = 15; - */ - public org.sonarqube.ws.Issues.LanguageOrBuilder getLanguagesOrBuilder( - int index) { - if (languagesBuilder_ == null) { - return languages_.get(index); } else { - return languagesBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .sonarqube.ws.issues.Language languages = 15; - */ - public java.util.List - getLanguagesOrBuilderList() { - if (languagesBuilder_ != null) { - return languagesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(languages_); - } - } - /** - * 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 = 15; - */ - public org.sonarqube.ws.Issues.Language.Builder addLanguagesBuilder( - int index) { - return getLanguagesFieldBuilder().addBuilder( - index, org.sonarqube.ws.Issues.Language.getDefaultInstance()); - } - /** - * repeated .sonarqube.ws.issues.Language languages = 15; - */ - public java.util.List - getLanguagesBuilderList() { - return getLanguagesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.Issues.Language, org.sonarqube.ws.Issues.Language.Builder, org.sonarqube.ws.Issues.LanguageOrBuilder> - getLanguagesFieldBuilder() { - if (languagesBuilder_ == null) { - languagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.Issues.Language, org.sonarqube.ws.Issues.Language.Builder, org.sonarqube.ws.Issues.LanguageOrBuilder>( - languages_, - ((bitField0_ & 0x00004000) == 0x00004000), - getParentForChildren(), - isClean()); - languages_ = null; - } - 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_ & 0x00010000) == 0x00010000)) { - facets_ = new java.util.ArrayList(facets_); - bitField0_ |= 0x00010000; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.Common.Facet, org.sonarqube.ws.Common.Facet.Builder, org.sonarqube.ws.Common.FacetOrBuilder> facetsBuilder_; - - /** - * repeated .sonarqube.ws.commons.Facet facets = 17; - */ - public java.util.List getFacetsList() { - if (facetsBuilder_ == null) { - return java.util.Collections.unmodifiableList(facets_); - } else { - return facetsBuilder_.getMessageList(); - } - } - /** - * repeated .sonarqube.ws.commons.Facet facets = 17; - */ - public int getFacetsCount() { - if (facetsBuilder_ == null) { - return facets_.size(); - } else { - return facetsBuilder_.getCount(); - } - } - /** - * repeated .sonarqube.ws.commons.Facet facets = 17; - */ - public org.sonarqube.ws.Common.Facet getFacets(int index) { - if (facetsBuilder_ == null) { - return facets_.get(index); - } else { - return facetsBuilder_.getMessage(index); - } - } - /** - * repeated .sonarqube.ws.commons.Facet facets = 17; - */ - public Builder setFacets( - int index, org.sonarqube.ws.Common.Facet value) { - if (facetsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFacetsIsMutable(); - facets_.set(index, value); - onChanged(); - } else { - facetsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .sonarqube.ws.commons.Facet facets = 17; - */ - public Builder setFacets( - int index, org.sonarqube.ws.Common.Facet.Builder builderForValue) { - if (facetsBuilder_ == null) { - ensureFacetsIsMutable(); - facets_.set(index, builderForValue.build()); - onChanged(); - } else { - facetsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.commons.Facet facets = 17; - */ - public Builder addFacets(org.sonarqube.ws.Common.Facet value) { - if (facetsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFacetsIsMutable(); - facets_.add(value); - onChanged(); - } else { - facetsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .sonarqube.ws.commons.Facet facets = 17; - */ - public Builder addFacets( - int index, org.sonarqube.ws.Common.Facet value) { - if (facetsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFacetsIsMutable(); - facets_.add(index, value); - onChanged(); - } else { - facetsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .sonarqube.ws.commons.Facet facets = 17; - */ - public Builder addFacets( - org.sonarqube.ws.Common.Facet.Builder builderForValue) { - if (facetsBuilder_ == null) { - ensureFacetsIsMutable(); - facets_.add(builderForValue.build()); - onChanged(); - } else { - facetsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.commons.Facet facets = 17; - */ - public Builder addFacets( - int index, org.sonarqube.ws.Common.Facet.Builder builderForValue) { - if (facetsBuilder_ == null) { - ensureFacetsIsMutable(); - facets_.add(index, builderForValue.build()); - onChanged(); - } else { - facetsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.commons.Facet facets = 17; - */ - public Builder addAllFacets( - java.lang.Iterable values) { - if (facetsBuilder_ == null) { - ensureFacetsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, facets_); - onChanged(); - } else { - facetsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .sonarqube.ws.commons.Facet facets = 17; - */ - public Builder clearFacets() { - if (facetsBuilder_ == null) { - facets_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00010000); - onChanged(); - } else { - facetsBuilder_.clear(); - } - return this; - } - /** - * repeated .sonarqube.ws.commons.Facet facets = 17; - */ - public Builder removeFacets(int index) { - if (facetsBuilder_ == null) { - ensureFacetsIsMutable(); - facets_.remove(index); - onChanged(); - } else { - facetsBuilder_.remove(index); - } - return this; - } - /** - * repeated .sonarqube.ws.commons.Facet facets = 17; - */ - public org.sonarqube.ws.Common.Facet.Builder getFacetsBuilder( - int index) { - return getFacetsFieldBuilder().getBuilder(index); - } - /** - * repeated .sonarqube.ws.commons.Facet facets = 17; - */ - public org.sonarqube.ws.Common.FacetOrBuilder getFacetsOrBuilder( - int index) { - if (facetsBuilder_ == null) { - return facets_.get(index); } else { - return facetsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .sonarqube.ws.commons.Facet facets = 17; - */ - public java.util.List - getFacetsOrBuilderList() { - if (facetsBuilder_ != null) { - return facetsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(facets_); - } - } - /** - * repeated .sonarqube.ws.commons.Facet facets = 17; - */ - public org.sonarqube.ws.Common.Facet.Builder addFacetsBuilder() { - return getFacetsFieldBuilder().addBuilder( - org.sonarqube.ws.Common.Facet.getDefaultInstance()); - } - /** - * repeated .sonarqube.ws.commons.Facet facets = 17; - */ - public org.sonarqube.ws.Common.Facet.Builder addFacetsBuilder( - int index) { - return getFacetsFieldBuilder().addBuilder( - index, org.sonarqube.ws.Common.Facet.getDefaultInstance()); - } - /** - * repeated .sonarqube.ws.commons.Facet facets = 17; - */ - public java.util.List - getFacetsBuilderList() { - return getFacetsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.Common.Facet, org.sonarqube.ws.Common.Facet.Builder, org.sonarqube.ws.Common.FacetOrBuilder> - getFacetsFieldBuilder() { - if (facetsBuilder_ == null) { - facetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.Common.Facet, org.sonarqube.ws.Common.Facet.Builder, org.sonarqube.ws.Common.FacetOrBuilder>( - facets_, - ((bitField0_ & 0x00010000) == 0x00010000), - getParentForChildren(), - isClean()); - facets_ = null; - } - return facetsBuilder_; - } - - // @@protoc_insertion_point(builder_scope:sonarqube.ws.issues.Search) - } - - // @@protoc_insertion_point(class_scope:sonarqube.ws.issues.Search) - private static final org.sonarqube.ws.Issues.Search DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonarqube.ws.Issues.Search(); - } - - public static org.sonarqube.ws.Issues.Search getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Search parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new Search(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; + + // @@protoc_insertion_point(builder_scope:sonarqube.ws.issues.Search) + } + + // @@protoc_insertion_point(class_scope:sonarqube.ws.issues.Search) + private static final org.sonarqube.ws.Issues.Search DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.sonarqube.ws.Issues.Search(); + } + + public static org.sonarqube.ws.Issues.Search getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + public static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public Search parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + try { + return new Search(input, extensionRegistry); + } catch (RuntimeException e) { + if (e.getCause() instanceof + com.google.protobuf.InvalidProtocolBufferException) { + throw (com.google.protobuf.InvalidProtocolBufferException) + e.getCause(); + } + throw e; } } }; @@ -5915,593 +4675,1295 @@ public final class Issues { /** * optional string debt = 14; */ - java.lang.String getDebt(); + java.lang.String getDebt(); + /** + * optional string debt = 14; + */ + com.google.protobuf.ByteString + getDebtBytes(); + + /** + * optional string assignee = 15; + */ + boolean hasAssignee(); + /** + * optional string assignee = 15; + */ + java.lang.String getAssignee(); + /** + * optional string assignee = 15; + */ + com.google.protobuf.ByteString + getAssigneeBytes(); + + /** + * optional string reporter = 16; + */ + boolean hasReporter(); + /** + * optional string reporter = 16; + */ + java.lang.String getReporter(); + /** + * optional string reporter = 16; + */ + com.google.protobuf.ByteString + getReporterBytes(); + + /** + * optional string author = 17; + * + *
+     * SCM login of the committer who introduced the issue
+     * 
+ */ + boolean hasAuthor(); + /** + * optional string author = 17; + * + *
+     * SCM login of the committer who introduced the issue
+     * 
+ */ + java.lang.String getAuthor(); + /** + * optional string author = 17; + * + *
+     * SCM login of the committer who introduced the issue
+     * 
+ */ + com.google.protobuf.ByteString + getAuthorBytes(); + + /** + * optional string actionPlan = 18; + */ + boolean hasActionPlan(); + /** + * optional string actionPlan = 18; + */ + java.lang.String getActionPlan(); + /** + * optional string actionPlan = 18; + */ + com.google.protobuf.ByteString + getActionPlanBytes(); + + /** + * repeated string tags = 19; + */ + com.google.protobuf.ProtocolStringList + getTagsList(); + /** + * repeated string tags = 19; + */ + int getTagsCount(); + /** + * repeated string tags = 19; + */ + java.lang.String getTags(int index); + /** + * repeated string tags = 19; + */ + com.google.protobuf.ByteString + getTagsBytes(int index); + + /** + * optional .sonarqube.ws.issues.Transitions transitions = 20; + * + *
+     * the transitions allowed for the requesting user.
+     * 
+ */ + boolean hasTransitions(); + /** + * optional .sonarqube.ws.issues.Transitions transitions = 20; + * + *
+     * the transitions allowed for the requesting user.
+     * 
+ */ + org.sonarqube.ws.Issues.Transitions getTransitions(); + /** + * optional .sonarqube.ws.issues.Transitions transitions = 20; + * + *
+     * the transitions allowed for the requesting user.
+     * 
+ */ + org.sonarqube.ws.Issues.TransitionsOrBuilder getTransitionsOrBuilder(); + + /** + * optional .sonarqube.ws.issues.Actions actions = 21; + * + *
+     * the actions allowed for the requesting user.
+     * 
+ */ + boolean hasActions(); + /** + * optional .sonarqube.ws.issues.Actions actions = 21; + * + *
+     * the actions allowed for the requesting user.
+     * 
+ */ + org.sonarqube.ws.Issues.Actions getActions(); + /** + * optional .sonarqube.ws.issues.Actions actions = 21; + * + *
+     * the actions allowed for the requesting user.
+     * 
+ */ + org.sonarqube.ws.Issues.ActionsOrBuilder getActionsOrBuilder(); + + /** + * optional .sonarqube.ws.issues.Comments comments = 22; + */ + boolean hasComments(); + /** + * optional .sonarqube.ws.issues.Comments comments = 22; + */ + org.sonarqube.ws.Issues.Comments getComments(); + /** + * optional .sonarqube.ws.issues.Comments comments = 22; + */ + org.sonarqube.ws.Issues.CommentsOrBuilder getCommentsOrBuilder(); + + /** + * optional string creationDate = 23; + */ + boolean hasCreationDate(); + /** + * optional string creationDate = 23; + */ + java.lang.String getCreationDate(); + /** + * optional string creationDate = 23; + */ + com.google.protobuf.ByteString + getCreationDateBytes(); + + /** + * optional string updateDate = 24; + */ + boolean hasUpdateDate(); + /** + * optional string updateDate = 24; + */ + java.lang.String getUpdateDate(); + /** + * optional string updateDate = 24; + */ + com.google.protobuf.ByteString + getUpdateDateBytes(); + + /** + * optional string fUpdateAge = 25; + */ + boolean hasFUpdateAge(); + /** + * optional string fUpdateAge = 25; + */ + java.lang.String getFUpdateAge(); /** - * optional string debt = 14; + * optional string fUpdateAge = 25; */ com.google.protobuf.ByteString - getDebtBytes(); + getFUpdateAgeBytes(); /** - * optional string assignee = 15; + * optional string closeDate = 26; */ - boolean hasAssignee(); + boolean hasCloseDate(); /** - * optional string assignee = 15; + * optional string closeDate = 26; */ - java.lang.String getAssignee(); + java.lang.String getCloseDate(); /** - * optional string assignee = 15; + * optional string closeDate = 26; */ com.google.protobuf.ByteString - getAssigneeBytes(); + getCloseDateBytes(); + } + /** + * Protobuf type {@code sonarqube.ws.issues.Issue} + */ + public static final class Issue extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:sonarqube.ws.issues.Issue) + IssueOrBuilder { + // Use Issue.newBuilder() to construct. + private Issue(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private Issue() { + key_ = ""; + rule_ = ""; + severity_ = 0; + component_ = ""; + componentId_ = 0L; + project_ = ""; + subProject_ = ""; + line_ = 0; + flows_ = java.util.Collections.emptyList(); + resolution_ = ""; + status_ = ""; + message_ = ""; + debt_ = ""; + assignee_ = ""; + reporter_ = ""; + author_ = ""; + actionPlan_ = ""; + tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + creationDate_ = ""; + updateDate_ = ""; + fUpdateAge_ = ""; + closeDate_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Issue( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) { + this(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000001; + key_ = bs; + break; + } + case 18: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000002; + rule_ = bs; + break; + } + case 24: { + int rawValue = input.readEnum(); + org.sonarqube.ws.Common.Severity value = org.sonarqube.ws.Common.Severity.valueOf(rawValue); + if (value == null) { + unknownFields.mergeVarintField(3, rawValue); + } else { + bitField0_ |= 0x00000004; + severity_ = rawValue; + } + break; + } + case 34: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000008; + component_ = bs; + break; + } + case 40: { + bitField0_ |= 0x00000010; + componentId_ = input.readInt64(); + break; + } + case 50: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000020; + project_ = bs; + break; + } + case 58: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000040; + subProject_ = bs; + break; + } + case 64: { + bitField0_ |= 0x00000080; + line_ = input.readInt32(); + break; + } + case 74: { + org.sonarqube.ws.Common.TextRange.Builder subBuilder = null; + if (((bitField0_ & 0x00000100) == 0x00000100)) { + subBuilder = textRange_.toBuilder(); + } + textRange_ = input.readMessage(org.sonarqube.ws.Common.TextRange.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(textRange_); + textRange_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000100; + break; + } + case 82: { + if (!((mutable_bitField0_ & 0x00000200) == 0x00000200)) { + flows_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000200; + } + flows_.add(input.readMessage(org.sonarqube.ws.Issues.Flow.PARSER, extensionRegistry)); + break; + } + case 90: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000200; + resolution_ = bs; + break; + } + case 98: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000400; + status_ = bs; + break; + } + case 106: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000800; + message_ = bs; + break; + } + case 114: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00001000; + debt_ = bs; + break; + } + case 122: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00002000; + assignee_ = bs; + break; + } + case 130: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00004000; + reporter_ = bs; + break; + } + case 138: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00008000; + author_ = bs; + break; + } + case 146: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00010000; + actionPlan_ = bs; + break; + } + case 154: { + com.google.protobuf.ByteString bs = input.readBytes(); + if (!((mutable_bitField0_ & 0x00040000) == 0x00040000)) { + tags_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00040000; + } + tags_.add(bs); + break; + } + case 162: { + org.sonarqube.ws.Issues.Transitions.Builder subBuilder = null; + if (((bitField0_ & 0x00020000) == 0x00020000)) { + subBuilder = transitions_.toBuilder(); + } + transitions_ = input.readMessage(org.sonarqube.ws.Issues.Transitions.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(transitions_); + transitions_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00020000; + break; + } + case 170: { + org.sonarqube.ws.Issues.Actions.Builder subBuilder = null; + if (((bitField0_ & 0x00040000) == 0x00040000)) { + subBuilder = actions_.toBuilder(); + } + actions_ = input.readMessage(org.sonarqube.ws.Issues.Actions.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(actions_); + actions_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00040000; + break; + } + case 178: { + org.sonarqube.ws.Issues.Comments.Builder subBuilder = null; + if (((bitField0_ & 0x00080000) == 0x00080000)) { + subBuilder = comments_.toBuilder(); + } + comments_ = input.readMessage(org.sonarqube.ws.Issues.Comments.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(comments_); + comments_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00080000; + break; + } + case 186: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00100000; + creationDate_ = bs; + break; + } + case 194: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00200000; + updateDate_ = bs; + break; + } + case 202: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00400000; + fUpdateAge_ = bs; + break; + } + case 210: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00800000; + closeDate_ = bs; + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw new RuntimeException(e.setUnfinishedMessage(this)); + } catch (java.io.IOException e) { + throw new RuntimeException( + new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this)); + } finally { + if (((mutable_bitField0_ & 0x00000200) == 0x00000200)) { + flows_ = java.util.Collections.unmodifiableList(flows_); + } + if (((mutable_bitField0_ & 0x00040000) == 0x00040000)) { + tags_ = tags_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Issue_descriptor; + } - /** - * optional string reporter = 16; - */ - boolean hasReporter(); - /** - * optional string reporter = 16; - */ - java.lang.String getReporter(); - /** - * optional string reporter = 16; - */ - com.google.protobuf.ByteString - getReporterBytes(); + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Issue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.sonarqube.ws.Issues.Issue.class, org.sonarqube.ws.Issues.Issue.Builder.class); + } + private int bitField0_; + public static final int KEY_FIELD_NUMBER = 1; + private volatile java.lang.Object key_; /** - * optional string author = 17; - * - *
-     * SCM login of the committer who introduced the issue
-     * 
+ * optional string key = 1; */ - boolean hasAuthor(); + public boolean hasKey() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } /** - * optional string author = 17; - * - *
-     * SCM login of the committer who introduced the issue
-     * 
+ * optional string key = 1; */ - java.lang.String getAuthor(); + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + key_ = s; + } + return s; + } + } /** - * optional string author = 17; - * - *
-     * SCM login of the committer who introduced the issue
-     * 
+ * optional string key = 1; */ - com.google.protobuf.ByteString - getAuthorBytes(); + public com.google.protobuf.ByteString + getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int RULE_FIELD_NUMBER = 2; + private volatile java.lang.Object rule_; /** - * optional string actionPlan = 18; + * optional string rule = 2; */ - boolean hasActionPlan(); + public boolean hasRule() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } /** - * optional string actionPlan = 18; + * optional string rule = 2; */ - java.lang.String getActionPlan(); + public java.lang.String getRule() { + java.lang.Object ref = rule_; + 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()) { + rule_ = s; + } + return s; + } + } /** - * optional string actionPlan = 18; + * optional string rule = 2; */ - com.google.protobuf.ByteString - getActionPlanBytes(); + public com.google.protobuf.ByteString + getRuleBytes() { + java.lang.Object ref = rule_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + rule_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int SEVERITY_FIELD_NUMBER = 3; + private int severity_; /** - * optional bool tagsPresentIfEmpty = 19; + * optional .sonarqube.ws.commons.Severity severity = 3; */ - boolean hasTagsPresentIfEmpty(); + public boolean hasSeverity() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } /** - * optional bool tagsPresentIfEmpty = 19; + * optional .sonarqube.ws.commons.Severity severity = 3; */ - boolean getTagsPresentIfEmpty(); + public org.sonarqube.ws.Common.Severity getSeverity() { + org.sonarqube.ws.Common.Severity result = org.sonarqube.ws.Common.Severity.valueOf(severity_); + return result == null ? org.sonarqube.ws.Common.Severity.INFO : result; + } + public static final int COMPONENT_FIELD_NUMBER = 4; + private volatile java.lang.Object component_; /** - * repeated string tags = 20; - */ - com.google.protobuf.ProtocolStringList - getTagsList(); - /** - * repeated string tags = 20; + * optional string component = 4; */ - int getTagsCount(); + public boolean hasComponent() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } /** - * repeated string tags = 20; + * optional string component = 4; */ - java.lang.String getTags(int index); + public java.lang.String getComponent() { + java.lang.Object ref = component_; + 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()) { + component_ = s; + } + return s; + } + } /** - * repeated string tags = 20; + * optional string component = 4; */ - com.google.protobuf.ByteString - getTagsBytes(int index); + public com.google.protobuf.ByteString + getComponentBytes() { + java.lang.Object ref = component_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + component_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int COMPONENTID_FIELD_NUMBER = 5; + private long componentId_; /** - * optional bool transitionsPresentIfEmpty = 21; - * - *
-     * the transitions allowed for the requesting user.
-     * 
+ * optional int64 componentId = 5; */ - boolean hasTransitionsPresentIfEmpty(); + public boolean hasComponentId() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } /** - * optional bool transitionsPresentIfEmpty = 21; - * - *
-     * the transitions allowed for the requesting user.
-     * 
+ * optional int64 componentId = 5; */ - boolean getTransitionsPresentIfEmpty(); + public long getComponentId() { + return componentId_; + } + public static final int PROJECT_FIELD_NUMBER = 6; + private volatile java.lang.Object project_; /** - * repeated string transitions = 22; - */ - com.google.protobuf.ProtocolStringList - getTransitionsList(); - /** - * repeated string transitions = 22; - */ - int getTransitionsCount(); - /** - * repeated string transitions = 22; - */ - java.lang.String getTransitions(int index); - /** - * repeated string transitions = 22; + * optional string project = 6; */ - com.google.protobuf.ByteString - getTransitionsBytes(int index); - + public boolean hasProject() { + return ((bitField0_ & 0x00000020) == 0x00000020); + } /** - * optional bool actionsPresentIfEmpty = 23; - * - *
-     * the actions allowed for the requesting user.
-     * 
+ * optional string project = 6; */ - boolean hasActionsPresentIfEmpty(); + public java.lang.String getProject() { + java.lang.Object ref = project_; + 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()) { + project_ = s; + } + return s; + } + } /** - * optional bool actionsPresentIfEmpty = 23; - * - *
-     * the actions allowed for the requesting user.
-     * 
+ * optional string project = 6; */ - boolean getActionsPresentIfEmpty(); + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int SUBPROJECT_FIELD_NUMBER = 7; + private volatile java.lang.Object subProject_; /** - * repeated string actions = 24; - */ - com.google.protobuf.ProtocolStringList - getActionsList(); - /** - * repeated string actions = 24; + * optional string subProject = 7; */ - int getActionsCount(); + public boolean hasSubProject() { + return ((bitField0_ & 0x00000040) == 0x00000040); + } /** - * repeated string actions = 24; + * optional string subProject = 7; */ - java.lang.String getActions(int index); + 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; + } + } /** - * repeated string actions = 24; + * optional string subProject = 7; */ - com.google.protobuf.ByteString - getActionsBytes(int index); + 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 bool commentsPresentIfEmpty = 25; + * optional int32 line = 8; */ - boolean hasCommentsPresentIfEmpty(); + public boolean hasLine() { + return ((bitField0_ & 0x00000080) == 0x00000080); + } /** - * optional bool commentsPresentIfEmpty = 25; + * optional int32 line = 8; */ - boolean getCommentsPresentIfEmpty(); + public int getLine() { + return line_; + } + public static final int TEXTRANGE_FIELD_NUMBER = 9; + private org.sonarqube.ws.Common.TextRange textRange_; /** - * repeated .sonarqube.ws.issues.Comment comments = 26; + * optional .sonarqube.ws.commons.TextRange textRange = 9; */ - java.util.List - getCommentsList(); + public boolean hasTextRange() { + return ((bitField0_ & 0x00000100) == 0x00000100); + } /** - * repeated .sonarqube.ws.issues.Comment comments = 26; + * optional .sonarqube.ws.commons.TextRange textRange = 9; */ - org.sonarqube.ws.Issues.Comment getComments(int index); + public org.sonarqube.ws.Common.TextRange getTextRange() { + return textRange_ == null ? org.sonarqube.ws.Common.TextRange.getDefaultInstance() : textRange_; + } /** - * repeated .sonarqube.ws.issues.Comment comments = 26; + * optional .sonarqube.ws.commons.TextRange textRange = 9; */ - int getCommentsCount(); + public org.sonarqube.ws.Common.TextRangeOrBuilder getTextRangeOrBuilder() { + return textRange_ == null ? org.sonarqube.ws.Common.TextRange.getDefaultInstance() : textRange_; + } + + public static final int FLOWS_FIELD_NUMBER = 10; + private java.util.List flows_; /** - * repeated .sonarqube.ws.issues.Comment comments = 26; + * repeated .sonarqube.ws.issues.Flow flows = 10; */ - java.util.List - getCommentsOrBuilderList(); + public java.util.List getFlowsList() { + return flows_; + } /** - * repeated .sonarqube.ws.issues.Comment comments = 26; + * repeated .sonarqube.ws.issues.Flow flows = 10; */ - org.sonarqube.ws.Issues.CommentOrBuilder getCommentsOrBuilder( - int index); - + public java.util.List + getFlowsOrBuilderList() { + return flows_; + } /** - * optional string creationDate = 27; + * repeated .sonarqube.ws.issues.Flow flows = 10; */ - boolean hasCreationDate(); + public int getFlowsCount() { + return flows_.size(); + } /** - * optional string creationDate = 27; + * repeated .sonarqube.ws.issues.Flow flows = 10; */ - java.lang.String getCreationDate(); + public org.sonarqube.ws.Issues.Flow getFlows(int index) { + return flows_.get(index); + } /** - * optional string creationDate = 27; + * repeated .sonarqube.ws.issues.Flow flows = 10; */ - com.google.protobuf.ByteString - getCreationDateBytes(); + public org.sonarqube.ws.Issues.FlowOrBuilder getFlowsOrBuilder( + int index) { + return flows_.get(index); + } + public static final int RESOLUTION_FIELD_NUMBER = 11; + private volatile java.lang.Object resolution_; /** - * optional string updateDate = 28; + * optional string resolution = 11; */ - boolean hasUpdateDate(); + public boolean hasResolution() { + return ((bitField0_ & 0x00000200) == 0x00000200); + } /** - * optional string updateDate = 28; + * optional string resolution = 11; */ - java.lang.String getUpdateDate(); + public java.lang.String getResolution() { + java.lang.Object ref = resolution_; + 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()) { + resolution_ = s; + } + return s; + } + } /** - * optional string updateDate = 28; + * optional string resolution = 11; */ - com.google.protobuf.ByteString - getUpdateDateBytes(); + public com.google.protobuf.ByteString + getResolutionBytes() { + java.lang.Object ref = resolution_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + resolution_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int STATUS_FIELD_NUMBER = 12; + private volatile java.lang.Object status_; /** - * optional string fUpdateAge = 29; + * optional string status = 12; */ - boolean hasFUpdateAge(); + public boolean hasStatus() { + return ((bitField0_ & 0x00000400) == 0x00000400); + } /** - * optional string fUpdateAge = 29; + * optional string status = 12; */ - java.lang.String getFUpdateAge(); + public java.lang.String getStatus() { + java.lang.Object ref = status_; + 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()) { + status_ = s; + } + return s; + } + } /** - * optional string fUpdateAge = 29; + * optional string status = 12; */ - com.google.protobuf.ByteString - getFUpdateAgeBytes(); + public com.google.protobuf.ByteString + getStatusBytes() { + java.lang.Object ref = status_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + status_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int MESSAGE_FIELD_NUMBER = 13; + private volatile java.lang.Object message_; /** - * optional string closeDate = 30; + * optional string message = 13; */ - boolean hasCloseDate(); + public boolean hasMessage() { + return ((bitField0_ & 0x00000800) == 0x00000800); + } /** - * optional string closeDate = 30; + * optional string message = 13; */ - java.lang.String getCloseDate(); + public java.lang.String getMessage() { + java.lang.Object ref = message_; + 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()) { + message_ = s; + } + return s; + } + } /** - * optional string closeDate = 30; + * optional string message = 13; */ - com.google.protobuf.ByteString - getCloseDateBytes(); - } - /** - * Protobuf type {@code sonarqube.ws.issues.Issue} - */ - public static final class Issue extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:sonarqube.ws.issues.Issue) - IssueOrBuilder { - // Use Issue.newBuilder() to construct. - private Issue(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Issue() { - key_ = ""; - rule_ = ""; - severity_ = 0; - component_ = ""; - componentId_ = 0L; - project_ = ""; - subProject_ = ""; - line_ = 0; - flows_ = java.util.Collections.emptyList(); - resolution_ = ""; - status_ = ""; - message_ = ""; - debt_ = ""; - assignee_ = ""; - reporter_ = ""; - author_ = ""; - actionPlan_ = ""; - tagsPresentIfEmpty_ = false; - tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; - transitionsPresentIfEmpty_ = false; - transitions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - actionsPresentIfEmpty_ = false; - actions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - commentsPresentIfEmpty_ = false; - comments_ = java.util.Collections.emptyList(); - creationDate_ = ""; - updateDate_ = ""; - fUpdateAge_ = ""; - closeDate_ = ""; + public com.google.protobuf.ByteString + getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; + public static final int DEBT_FIELD_NUMBER = 14; + private volatile java.lang.Object debt_; + /** + * optional string debt = 14; + */ + public boolean hasDebt() { + return ((bitField0_ & 0x00001000) == 0x00001000); } - private Issue( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000001; - key_ = bs; - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - rule_ = bs; - break; - } - case 24: { - int rawValue = input.readEnum(); - org.sonarqube.ws.Common.Severity value = org.sonarqube.ws.Common.Severity.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(3, rawValue); - } else { - bitField0_ |= 0x00000004; - severity_ = rawValue; - } - break; - } - case 34: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000008; - component_ = bs; - break; - } - case 40: { - bitField0_ |= 0x00000010; - componentId_ = input.readInt64(); - break; - } - case 50: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000020; - project_ = bs; - break; - } - case 58: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000040; - subProject_ = bs; - break; - } - case 64: { - bitField0_ |= 0x00000080; - line_ = input.readInt32(); - break; - } - case 74: { - org.sonarqube.ws.Common.TextRange.Builder subBuilder = null; - if (((bitField0_ & 0x00000100) == 0x00000100)) { - subBuilder = textRange_.toBuilder(); - } - textRange_ = input.readMessage(org.sonarqube.ws.Common.TextRange.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(textRange_); - textRange_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000100; - break; - } - case 82: { - if (!((mutable_bitField0_ & 0x00000200) == 0x00000200)) { - flows_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000200; - } - flows_.add(input.readMessage(org.sonarqube.ws.Issues.Flow.PARSER, extensionRegistry)); - break; - } - case 90: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000200; - resolution_ = bs; - break; - } - case 98: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000400; - status_ = bs; - break; - } - case 106: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000800; - message_ = bs; - break; - } - case 114: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00001000; - debt_ = bs; - break; - } - case 122: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00002000; - assignee_ = bs; - break; - } - case 130: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00004000; - reporter_ = bs; - break; - } - case 138: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00008000; - author_ = bs; - break; - } - case 146: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00010000; - actionPlan_ = bs; - break; - } - case 152: { - bitField0_ |= 0x00020000; - tagsPresentIfEmpty_ = input.readBool(); - break; - } - case 162: { - com.google.protobuf.ByteString bs = input.readBytes(); - if (!((mutable_bitField0_ & 0x00080000) == 0x00080000)) { - tags_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00080000; - } - tags_.add(bs); - break; - } - case 168: { - bitField0_ |= 0x00040000; - transitionsPresentIfEmpty_ = input.readBool(); - break; - } - case 178: { - com.google.protobuf.ByteString bs = input.readBytes(); - if (!((mutable_bitField0_ & 0x00200000) == 0x00200000)) { - transitions_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00200000; - } - transitions_.add(bs); - break; - } - case 184: { - bitField0_ |= 0x00080000; - actionsPresentIfEmpty_ = input.readBool(); - break; - } - case 194: { - com.google.protobuf.ByteString bs = input.readBytes(); - if (!((mutable_bitField0_ & 0x00800000) == 0x00800000)) { - actions_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00800000; - } - actions_.add(bs); - break; - } - case 200: { - bitField0_ |= 0x00100000; - commentsPresentIfEmpty_ = input.readBool(); - break; - } - case 210: { - if (!((mutable_bitField0_ & 0x02000000) == 0x02000000)) { - comments_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x02000000; - } - comments_.add(input.readMessage(org.sonarqube.ws.Issues.Comment.PARSER, extensionRegistry)); - break; - } - case 218: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00200000; - creationDate_ = bs; - break; - } - case 226: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00400000; - updateDate_ = bs; - break; - } - case 234: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00800000; - fUpdateAge_ = bs; - break; - } - case 242: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x01000000; - closeDate_ = bs; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - if (((mutable_bitField0_ & 0x00000200) == 0x00000200)) { - flows_ = java.util.Collections.unmodifiableList(flows_); + /** + * optional string debt = 14; + */ + public java.lang.String getDebt() { + java.lang.Object ref = debt_; + 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()) { + debt_ = s; } - if (((mutable_bitField0_ & 0x00080000) == 0x00080000)) { - tags_ = tags_.getUnmodifiableView(); + return s; + } + } + /** + * optional string debt = 14; + */ + public com.google.protobuf.ByteString + getDebtBytes() { + java.lang.Object ref = debt_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + debt_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ASSIGNEE_FIELD_NUMBER = 15; + private volatile java.lang.Object assignee_; + /** + * optional string assignee = 15; + */ + public boolean hasAssignee() { + return ((bitField0_ & 0x00002000) == 0x00002000); + } + /** + * optional string assignee = 15; + */ + public java.lang.String getAssignee() { + java.lang.Object ref = assignee_; + 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()) { + assignee_ = s; } - if (((mutable_bitField0_ & 0x00200000) == 0x00200000)) { - transitions_ = transitions_.getUnmodifiableView(); + return s; + } + } + /** + * optional string assignee = 15; + */ + public com.google.protobuf.ByteString + getAssigneeBytes() { + java.lang.Object ref = assignee_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + assignee_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REPORTER_FIELD_NUMBER = 16; + private volatile java.lang.Object reporter_; + /** + * optional string reporter = 16; + */ + public boolean hasReporter() { + return ((bitField0_ & 0x00004000) == 0x00004000); + } + /** + * optional string reporter = 16; + */ + public java.lang.String getReporter() { + java.lang.Object ref = reporter_; + 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()) { + reporter_ = s; } - if (((mutable_bitField0_ & 0x00800000) == 0x00800000)) { - actions_ = actions_.getUnmodifiableView(); + return s; + } + } + /** + * optional string reporter = 16; + */ + public com.google.protobuf.ByteString + getReporterBytes() { + java.lang.Object ref = reporter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + reporter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AUTHOR_FIELD_NUMBER = 17; + private volatile java.lang.Object author_; + /** + * optional string author = 17; + * + *
+     * SCM login of the committer who introduced the issue
+     * 
+ */ + public boolean hasAuthor() { + return ((bitField0_ & 0x00008000) == 0x00008000); + } + /** + * optional string author = 17; + * + *
+     * SCM login of the committer who introduced the issue
+     * 
+ */ + public java.lang.String getAuthor() { + java.lang.Object ref = author_; + 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()) { + author_ = s; } - if (((mutable_bitField0_ & 0x02000000) == 0x02000000)) { - comments_ = java.util.Collections.unmodifiableList(comments_); + return s; + } + } + /** + * optional string author = 17; + * + *
+     * SCM login of the committer who introduced the issue
+     * 
+ */ + public com.google.protobuf.ByteString + getAuthorBytes() { + java.lang.Object ref = author_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + author_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ACTIONPLAN_FIELD_NUMBER = 18; + private volatile java.lang.Object actionPlan_; + /** + * optional string actionPlan = 18; + */ + public boolean hasActionPlan() { + return ((bitField0_ & 0x00010000) == 0x00010000); + } + /** + * optional string actionPlan = 18; + */ + public java.lang.String getActionPlan() { + java.lang.Object ref = actionPlan_; + 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()) { + actionPlan_ = s; } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); + return s; + } + } + /** + * optional string actionPlan = 18; + */ + public com.google.protobuf.ByteString + getActionPlanBytes() { + java.lang.Object ref = actionPlan_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + actionPlan_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Issue_descriptor; + + public static final int TAGS_FIELD_NUMBER = 19; + private com.google.protobuf.LazyStringList tags_; + /** + * repeated string tags = 19; + */ + public com.google.protobuf.ProtocolStringList + getTagsList() { + return tags_; + } + /** + * repeated string tags = 19; + */ + public int getTagsCount() { + return tags_.size(); + } + /** + * repeated string tags = 19; + */ + public java.lang.String getTags(int index) { + return tags_.get(index); + } + /** + * repeated string tags = 19; + */ + public com.google.protobuf.ByteString + getTagsBytes(int index) { + return tags_.getByteString(index); + } + + public static final int TRANSITIONS_FIELD_NUMBER = 20; + private org.sonarqube.ws.Issues.Transitions transitions_; + /** + * optional .sonarqube.ws.issues.Transitions transitions = 20; + * + *
+     * the transitions allowed for the requesting user.
+     * 
+ */ + public boolean hasTransitions() { + return ((bitField0_ & 0x00020000) == 0x00020000); + } + /** + * optional .sonarqube.ws.issues.Transitions transitions = 20; + * + *
+     * the transitions allowed for the requesting user.
+     * 
+ */ + public org.sonarqube.ws.Issues.Transitions getTransitions() { + return transitions_ == null ? org.sonarqube.ws.Issues.Transitions.getDefaultInstance() : transitions_; + } + /** + * optional .sonarqube.ws.issues.Transitions transitions = 20; + * + *
+     * the transitions allowed for the requesting user.
+     * 
+ */ + public org.sonarqube.ws.Issues.TransitionsOrBuilder getTransitionsOrBuilder() { + return transitions_ == null ? org.sonarqube.ws.Issues.Transitions.getDefaultInstance() : transitions_; + } + + public static final int ACTIONS_FIELD_NUMBER = 21; + private org.sonarqube.ws.Issues.Actions actions_; + /** + * optional .sonarqube.ws.issues.Actions actions = 21; + * + *
+     * the actions allowed for the requesting user.
+     * 
+ */ + public boolean hasActions() { + return ((bitField0_ & 0x00040000) == 0x00040000); + } + /** + * optional .sonarqube.ws.issues.Actions actions = 21; + * + *
+     * the actions allowed for the requesting user.
+     * 
+ */ + public org.sonarqube.ws.Issues.Actions getActions() { + return actions_ == null ? org.sonarqube.ws.Issues.Actions.getDefaultInstance() : actions_; + } + /** + * optional .sonarqube.ws.issues.Actions actions = 21; + * + *
+     * the actions allowed for the requesting user.
+     * 
+ */ + public org.sonarqube.ws.Issues.ActionsOrBuilder getActionsOrBuilder() { + return actions_ == null ? org.sonarqube.ws.Issues.Actions.getDefaultInstance() : actions_; + } + + public static final int COMMENTS_FIELD_NUMBER = 22; + private org.sonarqube.ws.Issues.Comments comments_; + /** + * optional .sonarqube.ws.issues.Comments comments = 22; + */ + public boolean hasComments() { + return ((bitField0_ & 0x00080000) == 0x00080000); + } + /** + * optional .sonarqube.ws.issues.Comments comments = 22; + */ + public org.sonarqube.ws.Issues.Comments getComments() { + return comments_ == null ? org.sonarqube.ws.Issues.Comments.getDefaultInstance() : comments_; } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Issue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Issues.Issue.class, org.sonarqube.ws.Issues.Issue.Builder.class); + /** + * optional .sonarqube.ws.issues.Comments comments = 22; + */ + public org.sonarqube.ws.Issues.CommentsOrBuilder getCommentsOrBuilder() { + return comments_ == null ? org.sonarqube.ws.Issues.Comments.getDefaultInstance() : comments_; } - private int bitField0_; - public static final int KEY_FIELD_NUMBER = 1; - private volatile java.lang.Object key_; + public static final int CREATIONDATE_FIELD_NUMBER = 23; + private volatile java.lang.Object creationDate_; /** - * optional string key = 1; + * optional string creationDate = 23; */ - public boolean hasKey() { - return ((bitField0_ & 0x00000001) == 0x00000001); + public boolean hasCreationDate() { + return ((bitField0_ & 0x00100000) == 0x00100000); } /** - * optional string key = 1; + * optional string creationDate = 23; */ - public java.lang.String getKey() { - java.lang.Object ref = key_; + public java.lang.String getCreationDate() { + java.lang.Object ref = creationDate_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { @@ -6509,41 +5971,41 @@ public final class Issues { (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { - key_ = s; + creationDate_ = s; } return s; } } /** - * optional string key = 1; + * optional string creationDate = 23; */ public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; + getCreationDateBytes() { + java.lang.Object ref = creationDate_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - key_ = b; + creationDate_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - public static final int RULE_FIELD_NUMBER = 2; - private volatile java.lang.Object rule_; + public static final int UPDATEDATE_FIELD_NUMBER = 24; + private volatile java.lang.Object updateDate_; /** - * optional string rule = 2; + * optional string updateDate = 24; */ - public boolean hasRule() { - return ((bitField0_ & 0x00000002) == 0x00000002); + public boolean hasUpdateDate() { + return ((bitField0_ & 0x00200000) == 0x00200000); } /** - * optional string rule = 2; + * optional string updateDate = 24; */ - public java.lang.String getRule() { - java.lang.Object ref = rule_; + public java.lang.String getUpdateDate() { + java.lang.Object ref = updateDate_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { @@ -6551,57 +6013,83 @@ public final class Issues { (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { - rule_ = s; + updateDate_ = s; } return s; } } /** - * optional string rule = 2; + * optional string updateDate = 24; */ public com.google.protobuf.ByteString - getRuleBytes() { - java.lang.Object ref = rule_; + getUpdateDateBytes() { + java.lang.Object ref = updateDate_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - rule_ = b; + updateDate_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - public static final int SEVERITY_FIELD_NUMBER = 3; - private int severity_; + public static final int FUPDATEAGE_FIELD_NUMBER = 25; + private volatile java.lang.Object fUpdateAge_; /** - * optional .sonarqube.ws.commons.Severity severity = 3; + * optional string fUpdateAge = 25; */ - public boolean hasSeverity() { - return ((bitField0_ & 0x00000004) == 0x00000004); + public boolean hasFUpdateAge() { + return ((bitField0_ & 0x00400000) == 0x00400000); } /** - * optional .sonarqube.ws.commons.Severity severity = 3; + * optional string fUpdateAge = 25; */ - public org.sonarqube.ws.Common.Severity getSeverity() { - org.sonarqube.ws.Common.Severity result = org.sonarqube.ws.Common.Severity.valueOf(severity_); - return result == null ? org.sonarqube.ws.Common.Severity.INFO : result; + public java.lang.String getFUpdateAge() { + java.lang.Object ref = fUpdateAge_; + 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()) { + fUpdateAge_ = s; + } + return s; + } + } + /** + * optional string fUpdateAge = 25; + */ + public com.google.protobuf.ByteString + getFUpdateAgeBytes() { + java.lang.Object ref = fUpdateAge_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + fUpdateAge_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - public static final int COMPONENT_FIELD_NUMBER = 4; - private volatile java.lang.Object component_; + public static final int CLOSEDATE_FIELD_NUMBER = 26; + private volatile java.lang.Object closeDate_; /** - * optional string component = 4; + * optional string closeDate = 26; */ - public boolean hasComponent() { - return ((bitField0_ & 0x00000008) == 0x00000008); + public boolean hasCloseDate() { + return ((bitField0_ & 0x00800000) == 0x00800000); } /** - * optional string component = 4; + * optional string closeDate = 26; */ - public java.lang.String getComponent() { - java.lang.Object ref = component_; + public java.lang.String getCloseDate() { + java.lang.Object ref = closeDate_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { @@ -6609,1835 +6097,2768 @@ public final class Issues { (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { - component_ = s; + closeDate_ = s; } return s; } - } - /** - * optional string component = 4; - */ - public com.google.protobuf.ByteString - getComponentBytes() { - java.lang.Object ref = component_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - component_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + } + /** + * optional string closeDate = 26; + */ + public com.google.protobuf.ByteString + getCloseDateBytes() { + java.lang.Object ref = closeDate_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + closeDate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeBytes(1, getKeyBytes()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeBytes(2, getRuleBytes()); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeEnum(3, severity_); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeBytes(4, getComponentBytes()); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + output.writeInt64(5, componentId_); + } + if (((bitField0_ & 0x00000020) == 0x00000020)) { + output.writeBytes(6, getProjectBytes()); + } + if (((bitField0_ & 0x00000040) == 0x00000040)) { + output.writeBytes(7, getSubProjectBytes()); + } + if (((bitField0_ & 0x00000080) == 0x00000080)) { + output.writeInt32(8, line_); + } + if (((bitField0_ & 0x00000100) == 0x00000100)) { + output.writeMessage(9, getTextRange()); + } + for (int i = 0; i < flows_.size(); i++) { + output.writeMessage(10, flows_.get(i)); + } + if (((bitField0_ & 0x00000200) == 0x00000200)) { + output.writeBytes(11, getResolutionBytes()); + } + if (((bitField0_ & 0x00000400) == 0x00000400)) { + output.writeBytes(12, getStatusBytes()); + } + if (((bitField0_ & 0x00000800) == 0x00000800)) { + output.writeBytes(13, getMessageBytes()); + } + if (((bitField0_ & 0x00001000) == 0x00001000)) { + output.writeBytes(14, getDebtBytes()); + } + if (((bitField0_ & 0x00002000) == 0x00002000)) { + output.writeBytes(15, getAssigneeBytes()); + } + if (((bitField0_ & 0x00004000) == 0x00004000)) { + output.writeBytes(16, getReporterBytes()); + } + if (((bitField0_ & 0x00008000) == 0x00008000)) { + output.writeBytes(17, getAuthorBytes()); + } + if (((bitField0_ & 0x00010000) == 0x00010000)) { + output.writeBytes(18, getActionPlanBytes()); + } + for (int i = 0; i < tags_.size(); i++) { + output.writeBytes(19, tags_.getByteString(i)); + } + if (((bitField0_ & 0x00020000) == 0x00020000)) { + output.writeMessage(20, getTransitions()); + } + if (((bitField0_ & 0x00040000) == 0x00040000)) { + output.writeMessage(21, getActions()); + } + if (((bitField0_ & 0x00080000) == 0x00080000)) { + output.writeMessage(22, getComments()); + } + if (((bitField0_ & 0x00100000) == 0x00100000)) { + output.writeBytes(23, getCreationDateBytes()); + } + if (((bitField0_ & 0x00200000) == 0x00200000)) { + output.writeBytes(24, getUpdateDateBytes()); + } + if (((bitField0_ & 0x00400000) == 0x00400000)) { + output.writeBytes(25, getFUpdateAgeBytes()); + } + if (((bitField0_ & 0x00800000) == 0x00800000)) { + output.writeBytes(26, getCloseDateBytes()); + } + unknownFields.writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, getKeyBytes()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, getRuleBytes()); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, severity_); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(4, getComponentBytes()); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(5, componentId_); + } + if (((bitField0_ & 0x00000020) == 0x00000020)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(6, getProjectBytes()); + } + if (((bitField0_ & 0x00000040) == 0x00000040)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(7, getSubProjectBytes()); + } + if (((bitField0_ & 0x00000080) == 0x00000080)) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(8, line_); + } + if (((bitField0_ & 0x00000100) == 0x00000100)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, getTextRange()); + } + for (int i = 0; i < flows_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, flows_.get(i)); } - } - - public static final int COMPONENTID_FIELD_NUMBER = 5; - private long componentId_; - /** - * optional int64 componentId = 5; - */ - public boolean hasComponentId() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - /** - * optional int64 componentId = 5; - */ - public long getComponentId() { - return componentId_; - } - - public static final int PROJECT_FIELD_NUMBER = 6; - private volatile java.lang.Object project_; - /** - * optional string project = 6; - */ - public boolean hasProject() { - return ((bitField0_ & 0x00000020) == 0x00000020); - } - /** - * optional string project = 6; - */ - public java.lang.String getProject() { - java.lang.Object ref = project_; - 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()) { - project_ = s; + if (((bitField0_ & 0x00000200) == 0x00000200)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(11, getResolutionBytes()); + } + if (((bitField0_ & 0x00000400) == 0x00000400)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(12, getStatusBytes()); + } + if (((bitField0_ & 0x00000800) == 0x00000800)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(13, getMessageBytes()); + } + if (((bitField0_ & 0x00001000) == 0x00001000)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(14, getDebtBytes()); + } + if (((bitField0_ & 0x00002000) == 0x00002000)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(15, getAssigneeBytes()); + } + if (((bitField0_ & 0x00004000) == 0x00004000)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(16, getReporterBytes()); + } + if (((bitField0_ & 0x00008000) == 0x00008000)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(17, getAuthorBytes()); + } + if (((bitField0_ & 0x00010000) == 0x00010000)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(18, getActionPlanBytes()); + } + { + int dataSize = 0; + for (int i = 0; i < tags_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeBytesSizeNoTag(tags_.getByteString(i)); } - return s; + size += dataSize; + size += 2 * getTagsList().size(); } - } - /** - * optional string project = 6; - */ - public com.google.protobuf.ByteString - getProjectBytes() { - java.lang.Object ref = project_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - project_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + if (((bitField0_ & 0x00020000) == 0x00020000)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(20, getTransitions()); + } + if (((bitField0_ & 0x00040000) == 0x00040000)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(21, getActions()); + } + if (((bitField0_ & 0x00080000) == 0x00080000)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(22, getComments()); + } + if (((bitField0_ & 0x00100000) == 0x00100000)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(23, getCreationDateBytes()); + } + if (((bitField0_ & 0x00200000) == 0x00200000)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(24, getUpdateDateBytes()); + } + if (((bitField0_ & 0x00400000) == 0x00400000)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(25, getFUpdateAgeBytes()); + } + if (((bitField0_ & 0x00800000) == 0x00800000)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(26, getCloseDateBytes()); } + size += unknownFields.getSerializedSize(); + memoizedSerializedSize = size; + return size; } - public static final int SUBPROJECT_FIELD_NUMBER = 7; - private volatile java.lang.Object subProject_; - /** - * optional string subProject = 7; - */ - public boolean hasSubProject() { - return ((bitField0_ & 0x00000040) == 0x00000040); + private static final long serialVersionUID = 0L; + public static org.sonarqube.ws.Issues.Issue parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - /** - * 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; - } + public static org.sonarqube.ws.Issues.Issue parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } - /** - * 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 org.sonarqube.ws.Issues.Issue parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - - public static final int LINE_FIELD_NUMBER = 8; - private int line_; - /** - * optional int32 line = 8; - */ - public boolean hasLine() { - return ((bitField0_ & 0x00000080) == 0x00000080); + public static org.sonarqube.ws.Issues.Issue parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } - /** - * optional int32 line = 8; - */ - public int getLine() { - return line_; + public static org.sonarqube.ws.Issues.Issue parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); } - - public static final int TEXTRANGE_FIELD_NUMBER = 9; - private org.sonarqube.ws.Common.TextRange textRange_; - /** - * optional .sonarqube.ws.commons.TextRange textRange = 9; - */ - public boolean hasTextRange() { - return ((bitField0_ & 0x00000100) == 0x00000100); + public static org.sonarqube.ws.Issues.Issue parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); } - /** - * optional .sonarqube.ws.commons.TextRange textRange = 9; - */ - public org.sonarqube.ws.Common.TextRange getTextRange() { - return textRange_ == null ? org.sonarqube.ws.Common.TextRange.getDefaultInstance() : textRange_; + public static org.sonarqube.ws.Issues.Issue parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); } - /** - * optional .sonarqube.ws.commons.TextRange textRange = 9; - */ - public org.sonarqube.ws.Common.TextRangeOrBuilder getTextRangeOrBuilder() { - return textRange_ == null ? org.sonarqube.ws.Common.TextRange.getDefaultInstance() : textRange_; + public static org.sonarqube.ws.Issues.Issue parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); } - - public static final int FLOWS_FIELD_NUMBER = 10; - private java.util.List flows_; - /** - * repeated .sonarqube.ws.issues.Flow flows = 10; - */ - public java.util.List getFlowsList() { - return flows_; + public static org.sonarqube.ws.Issues.Issue parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); } - /** - * repeated .sonarqube.ws.issues.Flow flows = 10; - */ - public java.util.List - getFlowsOrBuilderList() { - return flows_; + public static org.sonarqube.ws.Issues.Issue parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); } - /** - * repeated .sonarqube.ws.issues.Flow flows = 10; - */ - public int getFlowsCount() { - return flows_.size(); + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); } - /** - * repeated .sonarqube.ws.issues.Flow flows = 10; - */ - public org.sonarqube.ws.Issues.Flow getFlows(int index) { - return flows_.get(index); + public static Builder newBuilder(org.sonarqube.ws.Issues.Issue prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - /** - * repeated .sonarqube.ws.issues.Flow flows = 10; - */ - public org.sonarqube.ws.Issues.FlowOrBuilder getFlowsOrBuilder( - int index) { - return flows_.get(index); + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public static final int RESOLUTION_FIELD_NUMBER = 11; - private volatile java.lang.Object resolution_; - /** - * optional string resolution = 11; - */ - public boolean hasResolution() { - return ((bitField0_ & 0x00000200) == 0x00000200); + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; } /** - * optional string resolution = 11; + * Protobuf type {@code sonarqube.ws.issues.Issue} */ - public java.lang.String getResolution() { - java.lang.Object ref = resolution_; - 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()) { - resolution_ = s; + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:sonarqube.ws.issues.Issue) + org.sonarqube.ws.Issues.IssueOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Issue_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Issue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.sonarqube.ws.Issues.Issue.class, org.sonarqube.ws.Issues.Issue.Builder.class); + } + + // Construct using org.sonarqube.ws.Issues.Issue.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + getTextRangeFieldBuilder(); + getFlowsFieldBuilder(); + getTransitionsFieldBuilder(); + getActionsFieldBuilder(); + getCommentsFieldBuilder(); + } + } + public Builder clear() { + super.clear(); + key_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + rule_ = ""; + bitField0_ = (bitField0_ & ~0x00000002); + severity_ = 0; + bitField0_ = (bitField0_ & ~0x00000004); + component_ = ""; + bitField0_ = (bitField0_ & ~0x00000008); + componentId_ = 0L; + bitField0_ = (bitField0_ & ~0x00000010); + project_ = ""; + bitField0_ = (bitField0_ & ~0x00000020); + subProject_ = ""; + bitField0_ = (bitField0_ & ~0x00000040); + line_ = 0; + bitField0_ = (bitField0_ & ~0x00000080); + if (textRangeBuilder_ == null) { + textRange_ = null; + } else { + textRangeBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000100); + if (flowsBuilder_ == null) { + flows_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000200); + } else { + flowsBuilder_.clear(); + } + resolution_ = ""; + bitField0_ = (bitField0_ & ~0x00000400); + status_ = ""; + bitField0_ = (bitField0_ & ~0x00000800); + message_ = ""; + bitField0_ = (bitField0_ & ~0x00001000); + debt_ = ""; + bitField0_ = (bitField0_ & ~0x00002000); + assignee_ = ""; + bitField0_ = (bitField0_ & ~0x00004000); + reporter_ = ""; + bitField0_ = (bitField0_ & ~0x00008000); + author_ = ""; + bitField0_ = (bitField0_ & ~0x00010000); + actionPlan_ = ""; + bitField0_ = (bitField0_ & ~0x00020000); + tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00040000); + if (transitionsBuilder_ == null) { + transitions_ = null; + } else { + transitionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00080000); + if (actionsBuilder_ == null) { + actions_ = null; + } else { + actionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00100000); + if (commentsBuilder_ == null) { + comments_ = null; + } else { + commentsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00200000); + creationDate_ = ""; + bitField0_ = (bitField0_ & ~0x00400000); + updateDate_ = ""; + bitField0_ = (bitField0_ & ~0x00800000); + fUpdateAge_ = ""; + bitField0_ = (bitField0_ & ~0x01000000); + closeDate_ = ""; + bitField0_ = (bitField0_ & ~0x02000000); + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Issue_descriptor; + } + + public org.sonarqube.ws.Issues.Issue getDefaultInstanceForType() { + return org.sonarqube.ws.Issues.Issue.getDefaultInstance(); + } + + public org.sonarqube.ws.Issues.Issue build() { + org.sonarqube.ws.Issues.Issue result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.sonarqube.ws.Issues.Issue buildPartial() { + org.sonarqube.ws.Issues.Issue result = new org.sonarqube.ws.Issues.Issue(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.key_ = key_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.rule_ = rule_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.severity_ = severity_; + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000008; + } + result.component_ = component_; + if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + to_bitField0_ |= 0x00000010; + } + result.componentId_ = componentId_; + if (((from_bitField0_ & 0x00000020) == 0x00000020)) { + to_bitField0_ |= 0x00000020; + } + result.project_ = project_; + if (((from_bitField0_ & 0x00000040) == 0x00000040)) { + to_bitField0_ |= 0x00000040; + } + result.subProject_ = subProject_; + if (((from_bitField0_ & 0x00000080) == 0x00000080)) { + to_bitField0_ |= 0x00000080; + } + result.line_ = line_; + if (((from_bitField0_ & 0x00000100) == 0x00000100)) { + to_bitField0_ |= 0x00000100; + } + if (textRangeBuilder_ == null) { + result.textRange_ = textRange_; + } else { + result.textRange_ = textRangeBuilder_.build(); + } + if (flowsBuilder_ == null) { + if (((bitField0_ & 0x00000200) == 0x00000200)) { + flows_ = java.util.Collections.unmodifiableList(flows_); + bitField0_ = (bitField0_ & ~0x00000200); + } + result.flows_ = flows_; + } else { + result.flows_ = flowsBuilder_.build(); + } + if (((from_bitField0_ & 0x00000400) == 0x00000400)) { + to_bitField0_ |= 0x00000200; + } + result.resolution_ = resolution_; + if (((from_bitField0_ & 0x00000800) == 0x00000800)) { + to_bitField0_ |= 0x00000400; + } + result.status_ = status_; + if (((from_bitField0_ & 0x00001000) == 0x00001000)) { + to_bitField0_ |= 0x00000800; + } + result.message_ = message_; + if (((from_bitField0_ & 0x00002000) == 0x00002000)) { + to_bitField0_ |= 0x00001000; + } + result.debt_ = debt_; + if (((from_bitField0_ & 0x00004000) == 0x00004000)) { + to_bitField0_ |= 0x00002000; + } + result.assignee_ = assignee_; + if (((from_bitField0_ & 0x00008000) == 0x00008000)) { + to_bitField0_ |= 0x00004000; + } + result.reporter_ = reporter_; + if (((from_bitField0_ & 0x00010000) == 0x00010000)) { + to_bitField0_ |= 0x00008000; + } + result.author_ = author_; + if (((from_bitField0_ & 0x00020000) == 0x00020000)) { + to_bitField0_ |= 0x00010000; } - return s; - } - } - /** - * optional string resolution = 11; - */ - public com.google.protobuf.ByteString - getResolutionBytes() { - java.lang.Object ref = resolution_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - resolution_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + result.actionPlan_ = actionPlan_; + if (((bitField0_ & 0x00040000) == 0x00040000)) { + tags_ = tags_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00040000); + } + result.tags_ = tags_; + if (((from_bitField0_ & 0x00080000) == 0x00080000)) { + to_bitField0_ |= 0x00020000; + } + if (transitionsBuilder_ == null) { + result.transitions_ = transitions_; + } else { + result.transitions_ = transitionsBuilder_.build(); + } + if (((from_bitField0_ & 0x00100000) == 0x00100000)) { + to_bitField0_ |= 0x00040000; + } + if (actionsBuilder_ == null) { + result.actions_ = actions_; + } else { + result.actions_ = actionsBuilder_.build(); + } + if (((from_bitField0_ & 0x00200000) == 0x00200000)) { + to_bitField0_ |= 0x00080000; + } + if (commentsBuilder_ == null) { + result.comments_ = comments_; + } else { + result.comments_ = commentsBuilder_.build(); + } + if (((from_bitField0_ & 0x00400000) == 0x00400000)) { + to_bitField0_ |= 0x00100000; + } + result.creationDate_ = creationDate_; + if (((from_bitField0_ & 0x00800000) == 0x00800000)) { + to_bitField0_ |= 0x00200000; + } + result.updateDate_ = updateDate_; + if (((from_bitField0_ & 0x01000000) == 0x01000000)) { + to_bitField0_ |= 0x00400000; + } + result.fUpdateAge_ = fUpdateAge_; + if (((from_bitField0_ & 0x02000000) == 0x02000000)) { + to_bitField0_ |= 0x00800000; + } + result.closeDate_ = closeDate_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; } - } - public static final int STATUS_FIELD_NUMBER = 12; - private volatile java.lang.Object status_; - /** - * optional string status = 12; - */ - public boolean hasStatus() { - return ((bitField0_ & 0x00000400) == 0x00000400); - } - /** - * optional string status = 12; - */ - public java.lang.String getStatus() { - java.lang.Object ref = status_; - 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()) { - status_ = s; + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.sonarqube.ws.Issues.Issue) { + return mergeFrom((org.sonarqube.ws.Issues.Issue)other); + } else { + super.mergeFrom(other); + return this; } - return s; - } - } - /** - * optional string status = 12; - */ - public com.google.protobuf.ByteString - getStatusBytes() { - java.lang.Object ref = status_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - status_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; } - } - public static final int MESSAGE_FIELD_NUMBER = 13; - private volatile java.lang.Object message_; - /** - * optional string message = 13; - */ - public boolean hasMessage() { - return ((bitField0_ & 0x00000800) == 0x00000800); - } - /** - * optional string message = 13; - */ - public java.lang.String getMessage() { - java.lang.Object ref = message_; - 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()) { - message_ = s; + public Builder mergeFrom(org.sonarqube.ws.Issues.Issue other) { + if (other == org.sonarqube.ws.Issues.Issue.getDefaultInstance()) return this; + if (other.hasKey()) { + bitField0_ |= 0x00000001; + key_ = other.key_; + onChanged(); + } + if (other.hasRule()) { + bitField0_ |= 0x00000002; + rule_ = other.rule_; + onChanged(); + } + if (other.hasSeverity()) { + setSeverity(other.getSeverity()); + } + if (other.hasComponent()) { + bitField0_ |= 0x00000008; + component_ = other.component_; + onChanged(); + } + if (other.hasComponentId()) { + setComponentId(other.getComponentId()); + } + if (other.hasProject()) { + bitField0_ |= 0x00000020; + project_ = other.project_; + onChanged(); + } + if (other.hasSubProject()) { + bitField0_ |= 0x00000040; + subProject_ = other.subProject_; + onChanged(); + } + if (other.hasLine()) { + setLine(other.getLine()); + } + if (other.hasTextRange()) { + mergeTextRange(other.getTextRange()); + } + if (flowsBuilder_ == null) { + if (!other.flows_.isEmpty()) { + if (flows_.isEmpty()) { + flows_ = other.flows_; + bitField0_ = (bitField0_ & ~0x00000200); + } else { + ensureFlowsIsMutable(); + flows_.addAll(other.flows_); + } + onChanged(); + } + } else { + if (!other.flows_.isEmpty()) { + if (flowsBuilder_.isEmpty()) { + flowsBuilder_.dispose(); + flowsBuilder_ = null; + flows_ = other.flows_; + bitField0_ = (bitField0_ & ~0x00000200); + flowsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getFlowsFieldBuilder() : null; + } else { + flowsBuilder_.addAllMessages(other.flows_); + } + } + } + if (other.hasResolution()) { + bitField0_ |= 0x00000400; + resolution_ = other.resolution_; + onChanged(); + } + if (other.hasStatus()) { + bitField0_ |= 0x00000800; + status_ = other.status_; + onChanged(); + } + if (other.hasMessage()) { + bitField0_ |= 0x00001000; + message_ = other.message_; + onChanged(); + } + if (other.hasDebt()) { + bitField0_ |= 0x00002000; + debt_ = other.debt_; + onChanged(); + } + if (other.hasAssignee()) { + bitField0_ |= 0x00004000; + assignee_ = other.assignee_; + onChanged(); + } + if (other.hasReporter()) { + bitField0_ |= 0x00008000; + reporter_ = other.reporter_; + onChanged(); + } + if (other.hasAuthor()) { + bitField0_ |= 0x00010000; + author_ = other.author_; + onChanged(); + } + if (other.hasActionPlan()) { + bitField0_ |= 0x00020000; + actionPlan_ = other.actionPlan_; + onChanged(); + } + if (!other.tags_.isEmpty()) { + if (tags_.isEmpty()) { + tags_ = other.tags_; + bitField0_ = (bitField0_ & ~0x00040000); + } else { + ensureTagsIsMutable(); + tags_.addAll(other.tags_); + } + onChanged(); + } + if (other.hasTransitions()) { + mergeTransitions(other.getTransitions()); + } + if (other.hasActions()) { + mergeActions(other.getActions()); + } + if (other.hasComments()) { + mergeComments(other.getComments()); + } + if (other.hasCreationDate()) { + bitField0_ |= 0x00400000; + creationDate_ = other.creationDate_; + onChanged(); + } + if (other.hasUpdateDate()) { + bitField0_ |= 0x00800000; + updateDate_ = other.updateDate_; + onChanged(); + } + if (other.hasFUpdateAge()) { + bitField0_ |= 0x01000000; + fUpdateAge_ = other.fUpdateAge_; + onChanged(); + } + if (other.hasCloseDate()) { + bitField0_ |= 0x02000000; + closeDate_ = other.closeDate_; + onChanged(); } - return s; - } - } - /** - * optional string message = 13; - */ - public com.google.protobuf.ByteString - getMessageBytes() { - java.lang.Object ref = message_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - message_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; } - } - public static final int DEBT_FIELD_NUMBER = 14; - private volatile java.lang.Object debt_; - /** - * optional string debt = 14; - */ - public boolean hasDebt() { - return ((bitField0_ & 0x00001000) == 0x00001000); - } - /** - * optional string debt = 14; - */ - public java.lang.String getDebt() { - java.lang.Object ref = debt_; - 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()) { - debt_ = s; - } - return s; - } - } - /** - * optional string debt = 14; - */ - public com.google.protobuf.ByteString - getDebtBytes() { - java.lang.Object ref = debt_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - debt_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + public final boolean isInitialized() { + return true; } - } - public static final int ASSIGNEE_FIELD_NUMBER = 15; - private volatile java.lang.Object assignee_; - /** - * optional string assignee = 15; - */ - public boolean hasAssignee() { - return ((bitField0_ & 0x00002000) == 0x00002000); - } - /** - * optional string assignee = 15; - */ - public java.lang.String getAssignee() { - java.lang.Object ref = assignee_; - 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()) { - assignee_ = s; + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.sonarqube.ws.Issues.Issue parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.sonarqube.ws.Issues.Issue) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } } - return s; - } - } - /** - * optional string assignee = 15; - */ - public com.google.protobuf.ByteString - getAssigneeBytes() { - java.lang.Object ref = assignee_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - assignee_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + return this; } - } + private int bitField0_; - public static final int REPORTER_FIELD_NUMBER = 16; - private volatile java.lang.Object reporter_; - /** - * optional string reporter = 16; - */ - public boolean hasReporter() { - return ((bitField0_ & 0x00004000) == 0x00004000); - } - /** - * optional string reporter = 16; - */ - public java.lang.String getReporter() { - java.lang.Object ref = reporter_; - 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()) { - reporter_ = s; - } - return s; + private java.lang.Object key_ = ""; + /** + * optional string key = 1; + */ + public boolean hasKey() { + return ((bitField0_ & 0x00000001) == 0x00000001); } - } - /** - * optional string reporter = 16; - */ - public com.google.protobuf.ByteString - getReporterBytes() { - java.lang.Object ref = reporter_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - reporter_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + /** + * optional string key = 1; + */ + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + key_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } } - } - - public static final int AUTHOR_FIELD_NUMBER = 17; - private volatile java.lang.Object author_; - /** - * optional string author = 17; - * - *
-     * SCM login of the committer who introduced the issue
-     * 
- */ - public boolean hasAuthor() { - return ((bitField0_ & 0x00008000) == 0x00008000); - } - /** - * optional string author = 17; - * - *
-     * SCM login of the committer who introduced the issue
-     * 
- */ - public java.lang.String getAuthor() { - java.lang.Object ref = author_; - 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()) { - author_ = s; + /** + * optional string key = 1; + */ + public com.google.protobuf.ByteString + getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } - return s; } - } - /** - * optional string author = 17; - * - *
-     * SCM login of the committer who introduced the issue
-     * 
- */ - public com.google.protobuf.ByteString - getAuthorBytes() { - java.lang.Object ref = author_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - author_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + /** + * optional string key = 1; + */ + public Builder setKey( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + key_ = value; + onChanged(); + return this; + } + /** + * optional string key = 1; + */ + public Builder clearKey() { + bitField0_ = (bitField0_ & ~0x00000001); + key_ = getDefaultInstance().getKey(); + onChanged(); + return this; + } + /** + * optional string key = 1; + */ + public Builder setKeyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + key_ = value; + onChanged(); + return this; } - } - public static final int ACTIONPLAN_FIELD_NUMBER = 18; - private volatile java.lang.Object actionPlan_; - /** - * optional string actionPlan = 18; - */ - public boolean hasActionPlan() { - return ((bitField0_ & 0x00010000) == 0x00010000); - } - /** - * optional string actionPlan = 18; - */ - public java.lang.String getActionPlan() { - java.lang.Object ref = actionPlan_; - 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()) { - actionPlan_ = s; + private java.lang.Object rule_ = ""; + /** + * optional string rule = 2; + */ + public boolean hasRule() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional string rule = 2; + */ + public java.lang.String getRule() { + java.lang.Object ref = rule_; + 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()) { + rule_ = s; + } + return s; + } else { + return (java.lang.String) ref; } - return s; } - } - /** - * optional string actionPlan = 18; - */ - public com.google.protobuf.ByteString - getActionPlanBytes() { - java.lang.Object ref = actionPlan_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - actionPlan_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + /** + * optional string rule = 2; + */ + public com.google.protobuf.ByteString + getRuleBytes() { + java.lang.Object ref = rule_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + rule_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string rule = 2; + */ + public Builder setRule( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + rule_ = value; + onChanged(); + return this; + } + /** + * optional string rule = 2; + */ + public Builder clearRule() { + bitField0_ = (bitField0_ & ~0x00000002); + rule_ = getDefaultInstance().getRule(); + onChanged(); + return this; + } + /** + * optional string rule = 2; + */ + public Builder setRuleBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + rule_ = value; + onChanged(); + return this; } - } - - public static final int TAGSPRESENTIFEMPTY_FIELD_NUMBER = 19; - private boolean tagsPresentIfEmpty_; - /** - * optional bool tagsPresentIfEmpty = 19; - */ - public boolean hasTagsPresentIfEmpty() { - return ((bitField0_ & 0x00020000) == 0x00020000); - } - /** - * optional bool tagsPresentIfEmpty = 19; - */ - public boolean getTagsPresentIfEmpty() { - return tagsPresentIfEmpty_; - } - - public static final int TAGS_FIELD_NUMBER = 20; - private com.google.protobuf.LazyStringList tags_; - /** - * repeated string tags = 20; - */ - public com.google.protobuf.ProtocolStringList - getTagsList() { - return tags_; - } - /** - * repeated string tags = 20; - */ - public int getTagsCount() { - return tags_.size(); - } - /** - * repeated string tags = 20; - */ - public java.lang.String getTags(int index) { - return tags_.get(index); - } - /** - * repeated string tags = 20; - */ - public com.google.protobuf.ByteString - getTagsBytes(int index) { - return tags_.getByteString(index); - } - - public static final int TRANSITIONSPRESENTIFEMPTY_FIELD_NUMBER = 21; - private boolean transitionsPresentIfEmpty_; - /** - * optional bool transitionsPresentIfEmpty = 21; - * - *
-     * the transitions allowed for the requesting user.
-     * 
- */ - public boolean hasTransitionsPresentIfEmpty() { - return ((bitField0_ & 0x00040000) == 0x00040000); - } - /** - * optional bool transitionsPresentIfEmpty = 21; - * - *
-     * the transitions allowed for the requesting user.
-     * 
- */ - public boolean getTransitionsPresentIfEmpty() { - return transitionsPresentIfEmpty_; - } - - public static final int TRANSITIONS_FIELD_NUMBER = 22; - private com.google.protobuf.LazyStringList transitions_; - /** - * repeated string transitions = 22; - */ - public com.google.protobuf.ProtocolStringList - getTransitionsList() { - return transitions_; - } - /** - * repeated string transitions = 22; - */ - public int getTransitionsCount() { - return transitions_.size(); - } - /** - * repeated string transitions = 22; - */ - public java.lang.String getTransitions(int index) { - return transitions_.get(index); - } - /** - * repeated string transitions = 22; - */ - public com.google.protobuf.ByteString - getTransitionsBytes(int index) { - return transitions_.getByteString(index); - } - - public static final int ACTIONSPRESENTIFEMPTY_FIELD_NUMBER = 23; - private boolean actionsPresentIfEmpty_; - /** - * optional bool actionsPresentIfEmpty = 23; - * - *
-     * the actions allowed for the requesting user.
-     * 
- */ - public boolean hasActionsPresentIfEmpty() { - return ((bitField0_ & 0x00080000) == 0x00080000); - } - /** - * optional bool actionsPresentIfEmpty = 23; - * - *
-     * the actions allowed for the requesting user.
-     * 
- */ - public boolean getActionsPresentIfEmpty() { - return actionsPresentIfEmpty_; - } - public static final int ACTIONS_FIELD_NUMBER = 24; - private com.google.protobuf.LazyStringList actions_; - /** - * repeated string actions = 24; - */ - public com.google.protobuf.ProtocolStringList - getActionsList() { - return actions_; - } - /** - * repeated string actions = 24; - */ - public int getActionsCount() { - return actions_.size(); - } - /** - * repeated string actions = 24; - */ - public java.lang.String getActions(int index) { - return actions_.get(index); - } - /** - * repeated string actions = 24; - */ - public com.google.protobuf.ByteString - getActionsBytes(int index) { - return actions_.getByteString(index); - } + private int severity_ = 0; + /** + * optional .sonarqube.ws.commons.Severity severity = 3; + */ + public boolean hasSeverity() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional .sonarqube.ws.commons.Severity severity = 3; + */ + public org.sonarqube.ws.Common.Severity getSeverity() { + org.sonarqube.ws.Common.Severity result = org.sonarqube.ws.Common.Severity.valueOf(severity_); + return result == null ? org.sonarqube.ws.Common.Severity.INFO : result; + } + /** + * optional .sonarqube.ws.commons.Severity severity = 3; + */ + public Builder setSeverity(org.sonarqube.ws.Common.Severity value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + severity_ = value.getNumber(); + onChanged(); + return this; + } + /** + * optional .sonarqube.ws.commons.Severity severity = 3; + */ + public Builder clearSeverity() { + bitField0_ = (bitField0_ & ~0x00000004); + severity_ = 0; + onChanged(); + return this; + } - public static final int COMMENTSPRESENTIFEMPTY_FIELD_NUMBER = 25; - private boolean commentsPresentIfEmpty_; - /** - * optional bool commentsPresentIfEmpty = 25; - */ - public boolean hasCommentsPresentIfEmpty() { - return ((bitField0_ & 0x00100000) == 0x00100000); - } - /** - * optional bool commentsPresentIfEmpty = 25; - */ - public boolean getCommentsPresentIfEmpty() { - return commentsPresentIfEmpty_; - } + private java.lang.Object component_ = ""; + /** + * optional string component = 4; + */ + public boolean hasComponent() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + * optional string component = 4; + */ + public java.lang.String getComponent() { + java.lang.Object ref = component_; + 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()) { + component_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string component = 4; + */ + public com.google.protobuf.ByteString + getComponentBytes() { + java.lang.Object ref = component_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + component_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string component = 4; + */ + public Builder setComponent( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + component_ = value; + onChanged(); + return this; + } + /** + * optional string component = 4; + */ + public Builder clearComponent() { + bitField0_ = (bitField0_ & ~0x00000008); + component_ = getDefaultInstance().getComponent(); + onChanged(); + return this; + } + /** + * optional string component = 4; + */ + public Builder setComponentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + component_ = value; + onChanged(); + return this; + } - public static final int COMMENTS_FIELD_NUMBER = 26; - private java.util.List comments_; - /** - * repeated .sonarqube.ws.issues.Comment comments = 26; - */ - public java.util.List getCommentsList() { - return comments_; - } - /** - * repeated .sonarqube.ws.issues.Comment comments = 26; - */ - public java.util.List - getCommentsOrBuilderList() { - return comments_; - } - /** - * repeated .sonarqube.ws.issues.Comment comments = 26; - */ - public int getCommentsCount() { - return comments_.size(); - } - /** - * repeated .sonarqube.ws.issues.Comment comments = 26; - */ - public org.sonarqube.ws.Issues.Comment getComments(int index) { - return comments_.get(index); - } - /** - * repeated .sonarqube.ws.issues.Comment comments = 26; - */ - public org.sonarqube.ws.Issues.CommentOrBuilder getCommentsOrBuilder( - int index) { - return comments_.get(index); - } + private long componentId_ ; + /** + * optional int64 componentId = 5; + */ + public boolean hasComponentId() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + /** + * optional int64 componentId = 5; + */ + public long getComponentId() { + return componentId_; + } + /** + * optional int64 componentId = 5; + */ + public Builder setComponentId(long value) { + bitField0_ |= 0x00000010; + componentId_ = value; + onChanged(); + return this; + } + /** + * optional int64 componentId = 5; + */ + public Builder clearComponentId() { + bitField0_ = (bitField0_ & ~0x00000010); + componentId_ = 0L; + onChanged(); + return this; + } - public static final int CREATIONDATE_FIELD_NUMBER = 27; - private volatile java.lang.Object creationDate_; - /** - * optional string creationDate = 27; - */ - public boolean hasCreationDate() { - return ((bitField0_ & 0x00200000) == 0x00200000); - } - /** - * optional string creationDate = 27; - */ - public java.lang.String getCreationDate() { - java.lang.Object ref = creationDate_; - 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()) { - creationDate_ = s; + private java.lang.Object project_ = ""; + /** + * optional string project = 6; + */ + public boolean hasProject() { + return ((bitField0_ & 0x00000020) == 0x00000020); + } + /** + * optional string project = 6; + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + 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()) { + project_ = s; + } + return s; + } else { + return (java.lang.String) ref; } - return s; } - } - /** - * optional string creationDate = 27; - */ - public com.google.protobuf.ByteString - getCreationDateBytes() { - java.lang.Object ref = creationDate_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - creationDate_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + /** + * optional string project = 6; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string project = 6; + */ + public Builder setProject( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + project_ = value; + onChanged(); + return this; + } + /** + * optional string project = 6; + */ + public Builder clearProject() { + bitField0_ = (bitField0_ & ~0x00000020); + project_ = getDefaultInstance().getProject(); + onChanged(); + return this; + } + /** + * optional string project = 6; + */ + public Builder setProjectBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + project_ = value; + onChanged(); + return this; } - } - public static final int UPDATEDATE_FIELD_NUMBER = 28; - private volatile java.lang.Object updateDate_; - /** - * optional string updateDate = 28; - */ - public boolean hasUpdateDate() { - return ((bitField0_ & 0x00400000) == 0x00400000); - } - /** - * optional string updateDate = 28; - */ - public java.lang.String getUpdateDate() { - java.lang.Object ref = updateDate_; - 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()) { - updateDate_ = s; - } - return s; + private java.lang.Object subProject_ = ""; + /** + * optional string subProject = 7; + */ + public boolean hasSubProject() { + return ((bitField0_ & 0x00000040) == 0x00000040); } - } - /** - * optional string updateDate = 28; - */ - public com.google.protobuf.ByteString - getUpdateDateBytes() { - java.lang.Object ref = updateDate_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - updateDate_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + /** + * 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; + } } - } - - public static final int FUPDATEAGE_FIELD_NUMBER = 29; - private volatile java.lang.Object fUpdateAge_; - /** - * optional string fUpdateAge = 29; - */ - public boolean hasFUpdateAge() { - return ((bitField0_ & 0x00800000) == 0x00800000); - } - /** - * optional string fUpdateAge = 29; - */ - public java.lang.String getFUpdateAge() { - java.lang.Object ref = fUpdateAge_; - 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()) { - fUpdateAge_ = s; + /** + * 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; } - return s; } - } - /** - * optional string fUpdateAge = 29; - */ - public com.google.protobuf.ByteString - getFUpdateAgeBytes() { - java.lang.Object ref = fUpdateAge_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - fUpdateAge_ = 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; } - } - - public static final int CLOSEDATE_FIELD_NUMBER = 30; - private volatile java.lang.Object closeDate_; - /** - * optional string closeDate = 30; - */ - public boolean hasCloseDate() { - return ((bitField0_ & 0x01000000) == 0x01000000); - } - /** - * optional string closeDate = 30; - */ - public java.lang.String getCloseDate() { - java.lang.Object ref = closeDate_; - 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()) { - closeDate_ = s; - } - return s; + /** + * optional string subProject = 7; + */ + public Builder clearSubProject() { + bitField0_ = (bitField0_ & ~0x00000040); + subProject_ = getDefaultInstance().getSubProject(); + onChanged(); + return this; } - } - /** - * optional string closeDate = 30; - */ - public com.google.protobuf.ByteString - getCloseDateBytes() { - java.lang.Object ref = closeDate_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - closeDate_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + /** + * 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 byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - memoizedIsInitialized = 1; - return true; - } + private int line_ ; + /** + * optional int32 line = 8; + */ + public boolean hasLine() { + return ((bitField0_ & 0x00000080) == 0x00000080); + } + /** + * optional int32 line = 8; + */ + public int getLine() { + return line_; + } + /** + * optional int32 line = 8; + */ + public Builder setLine(int value) { + bitField0_ |= 0x00000080; + line_ = value; + onChanged(); + return this; + } + /** + * optional int32 line = 8; + */ + public Builder clearLine() { + bitField0_ = (bitField0_ & ~0x00000080); + line_ = 0; + onChanged(); + return this; + } - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getKeyBytes()); + private org.sonarqube.ws.Common.TextRange textRange_ = null; + private com.google.protobuf.SingleFieldBuilder< + org.sonarqube.ws.Common.TextRange, org.sonarqube.ws.Common.TextRange.Builder, org.sonarqube.ws.Common.TextRangeOrBuilder> textRangeBuilder_; + /** + * optional .sonarqube.ws.commons.TextRange textRange = 9; + */ + public boolean hasTextRange() { + return ((bitField0_ & 0x00000100) == 0x00000100); + } + /** + * optional .sonarqube.ws.commons.TextRange textRange = 9; + */ + public org.sonarqube.ws.Common.TextRange getTextRange() { + if (textRangeBuilder_ == null) { + return textRange_ == null ? org.sonarqube.ws.Common.TextRange.getDefaultInstance() : textRange_; + } else { + return textRangeBuilder_.getMessage(); + } + } + /** + * optional .sonarqube.ws.commons.TextRange textRange = 9; + */ + public Builder setTextRange(org.sonarqube.ws.Common.TextRange value) { + if (textRangeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + textRange_ = value; + onChanged(); + } else { + textRangeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000100; + return this; } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getRuleBytes()); + /** + * optional .sonarqube.ws.commons.TextRange textRange = 9; + */ + public Builder setTextRange( + org.sonarqube.ws.Common.TextRange.Builder builderForValue) { + if (textRangeBuilder_ == null) { + textRange_ = builderForValue.build(); + onChanged(); + } else { + textRangeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000100; + return this; } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeEnum(3, severity_); + /** + * optional .sonarqube.ws.commons.TextRange textRange = 9; + */ + public Builder mergeTextRange(org.sonarqube.ws.Common.TextRange value) { + if (textRangeBuilder_ == null) { + if (((bitField0_ & 0x00000100) == 0x00000100) && + textRange_ != null && + textRange_ != org.sonarqube.ws.Common.TextRange.getDefaultInstance()) { + textRange_ = + org.sonarqube.ws.Common.TextRange.newBuilder(textRange_).mergeFrom(value).buildPartial(); + } else { + textRange_ = value; + } + onChanged(); + } else { + textRangeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000100; + return this; } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeBytes(4, getComponentBytes()); + /** + * optional .sonarqube.ws.commons.TextRange textRange = 9; + */ + public Builder clearTextRange() { + if (textRangeBuilder_ == null) { + textRange_ = null; + onChanged(); + } else { + textRangeBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000100); + return this; } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeInt64(5, componentId_); + /** + * optional .sonarqube.ws.commons.TextRange textRange = 9; + */ + public org.sonarqube.ws.Common.TextRange.Builder getTextRangeBuilder() { + bitField0_ |= 0x00000100; + onChanged(); + return getTextRangeFieldBuilder().getBuilder(); } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - output.writeBytes(6, getProjectBytes()); + /** + * optional .sonarqube.ws.commons.TextRange textRange = 9; + */ + public org.sonarqube.ws.Common.TextRangeOrBuilder getTextRangeOrBuilder() { + if (textRangeBuilder_ != null) { + return textRangeBuilder_.getMessageOrBuilder(); + } else { + return textRange_ == null ? + org.sonarqube.ws.Common.TextRange.getDefaultInstance() : textRange_; + } } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - output.writeBytes(7, getSubProjectBytes()); + /** + * optional .sonarqube.ws.commons.TextRange textRange = 9; + */ + private com.google.protobuf.SingleFieldBuilder< + org.sonarqube.ws.Common.TextRange, org.sonarqube.ws.Common.TextRange.Builder, org.sonarqube.ws.Common.TextRangeOrBuilder> + getTextRangeFieldBuilder() { + if (textRangeBuilder_ == null) { + textRangeBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.sonarqube.ws.Common.TextRange, org.sonarqube.ws.Common.TextRange.Builder, org.sonarqube.ws.Common.TextRangeOrBuilder>( + getTextRange(), + getParentForChildren(), + isClean()); + textRange_ = null; + } + return textRangeBuilder_; } - if (((bitField0_ & 0x00000080) == 0x00000080)) { - output.writeInt32(8, line_); + + private java.util.List flows_ = + java.util.Collections.emptyList(); + private void ensureFlowsIsMutable() { + if (!((bitField0_ & 0x00000200) == 0x00000200)) { + flows_ = new java.util.ArrayList(flows_); + bitField0_ |= 0x00000200; + } } - if (((bitField0_ & 0x00000100) == 0x00000100)) { - output.writeMessage(9, getTextRange()); + + private com.google.protobuf.RepeatedFieldBuilder< + org.sonarqube.ws.Issues.Flow, org.sonarqube.ws.Issues.Flow.Builder, org.sonarqube.ws.Issues.FlowOrBuilder> flowsBuilder_; + + /** + * repeated .sonarqube.ws.issues.Flow flows = 10; + */ + public java.util.List getFlowsList() { + if (flowsBuilder_ == null) { + return java.util.Collections.unmodifiableList(flows_); + } else { + return flowsBuilder_.getMessageList(); + } } - for (int i = 0; i < flows_.size(); i++) { - output.writeMessage(10, flows_.get(i)); + /** + * repeated .sonarqube.ws.issues.Flow flows = 10; + */ + public int getFlowsCount() { + if (flowsBuilder_ == null) { + return flows_.size(); + } else { + return flowsBuilder_.getCount(); + } } - if (((bitField0_ & 0x00000200) == 0x00000200)) { - output.writeBytes(11, getResolutionBytes()); + /** + * repeated .sonarqube.ws.issues.Flow flows = 10; + */ + public org.sonarqube.ws.Issues.Flow getFlows(int index) { + if (flowsBuilder_ == null) { + return flows_.get(index); + } else { + return flowsBuilder_.getMessage(index); + } } - if (((bitField0_ & 0x00000400) == 0x00000400)) { - output.writeBytes(12, getStatusBytes()); + /** + * repeated .sonarqube.ws.issues.Flow flows = 10; + */ + public Builder setFlows( + int index, org.sonarqube.ws.Issues.Flow value) { + if (flowsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFlowsIsMutable(); + flows_.set(index, value); + onChanged(); + } else { + flowsBuilder_.setMessage(index, value); + } + return this; } - if (((bitField0_ & 0x00000800) == 0x00000800)) { - output.writeBytes(13, getMessageBytes()); + /** + * repeated .sonarqube.ws.issues.Flow flows = 10; + */ + public Builder setFlows( + int index, org.sonarqube.ws.Issues.Flow.Builder builderForValue) { + if (flowsBuilder_ == null) { + ensureFlowsIsMutable(); + flows_.set(index, builderForValue.build()); + onChanged(); + } else { + flowsBuilder_.setMessage(index, builderForValue.build()); + } + return this; } - if (((bitField0_ & 0x00001000) == 0x00001000)) { - output.writeBytes(14, getDebtBytes()); + /** + * repeated .sonarqube.ws.issues.Flow flows = 10; + */ + public Builder addFlows(org.sonarqube.ws.Issues.Flow value) { + if (flowsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFlowsIsMutable(); + flows_.add(value); + onChanged(); + } else { + flowsBuilder_.addMessage(value); + } + return this; } - if (((bitField0_ & 0x00002000) == 0x00002000)) { - output.writeBytes(15, getAssigneeBytes()); + /** + * repeated .sonarqube.ws.issues.Flow flows = 10; + */ + public Builder addFlows( + int index, org.sonarqube.ws.Issues.Flow value) { + if (flowsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFlowsIsMutable(); + flows_.add(index, value); + onChanged(); + } else { + flowsBuilder_.addMessage(index, value); + } + return this; } - if (((bitField0_ & 0x00004000) == 0x00004000)) { - output.writeBytes(16, getReporterBytes()); + /** + * repeated .sonarqube.ws.issues.Flow flows = 10; + */ + public Builder addFlows( + org.sonarqube.ws.Issues.Flow.Builder builderForValue) { + if (flowsBuilder_ == null) { + ensureFlowsIsMutable(); + flows_.add(builderForValue.build()); + onChanged(); + } else { + flowsBuilder_.addMessage(builderForValue.build()); + } + return this; } - if (((bitField0_ & 0x00008000) == 0x00008000)) { - output.writeBytes(17, getAuthorBytes()); + /** + * repeated .sonarqube.ws.issues.Flow flows = 10; + */ + public Builder addFlows( + int index, org.sonarqube.ws.Issues.Flow.Builder builderForValue) { + if (flowsBuilder_ == null) { + ensureFlowsIsMutable(); + flows_.add(index, builderForValue.build()); + onChanged(); + } else { + flowsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .sonarqube.ws.issues.Flow flows = 10; + */ + public Builder addAllFlows( + java.lang.Iterable values) { + if (flowsBuilder_ == null) { + ensureFlowsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, flows_); + onChanged(); + } else { + flowsBuilder_.addAllMessages(values); + } + return this; } - if (((bitField0_ & 0x00010000) == 0x00010000)) { - output.writeBytes(18, getActionPlanBytes()); + /** + * repeated .sonarqube.ws.issues.Flow flows = 10; + */ + public Builder clearFlows() { + if (flowsBuilder_ == null) { + flows_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + } else { + flowsBuilder_.clear(); + } + return this; } - if (((bitField0_ & 0x00020000) == 0x00020000)) { - output.writeBool(19, tagsPresentIfEmpty_); + /** + * repeated .sonarqube.ws.issues.Flow flows = 10; + */ + public Builder removeFlows(int index) { + if (flowsBuilder_ == null) { + ensureFlowsIsMutable(); + flows_.remove(index); + onChanged(); + } else { + flowsBuilder_.remove(index); + } + return this; } - for (int i = 0; i < tags_.size(); i++) { - output.writeBytes(20, tags_.getByteString(i)); + /** + * repeated .sonarqube.ws.issues.Flow flows = 10; + */ + public org.sonarqube.ws.Issues.Flow.Builder getFlowsBuilder( + int index) { + return getFlowsFieldBuilder().getBuilder(index); } - if (((bitField0_ & 0x00040000) == 0x00040000)) { - output.writeBool(21, transitionsPresentIfEmpty_); + /** + * repeated .sonarqube.ws.issues.Flow flows = 10; + */ + public org.sonarqube.ws.Issues.FlowOrBuilder getFlowsOrBuilder( + int index) { + if (flowsBuilder_ == null) { + return flows_.get(index); } else { + return flowsBuilder_.getMessageOrBuilder(index); + } } - for (int i = 0; i < transitions_.size(); i++) { - output.writeBytes(22, transitions_.getByteString(i)); + /** + * repeated .sonarqube.ws.issues.Flow flows = 10; + */ + public java.util.List + getFlowsOrBuilderList() { + if (flowsBuilder_ != null) { + return flowsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(flows_); + } } - if (((bitField0_ & 0x00080000) == 0x00080000)) { - output.writeBool(23, actionsPresentIfEmpty_); + /** + * repeated .sonarqube.ws.issues.Flow flows = 10; + */ + public org.sonarqube.ws.Issues.Flow.Builder addFlowsBuilder() { + return getFlowsFieldBuilder().addBuilder( + org.sonarqube.ws.Issues.Flow.getDefaultInstance()); } - for (int i = 0; i < actions_.size(); i++) { - output.writeBytes(24, actions_.getByteString(i)); + /** + * repeated .sonarqube.ws.issues.Flow flows = 10; + */ + public org.sonarqube.ws.Issues.Flow.Builder addFlowsBuilder( + int index) { + return getFlowsFieldBuilder().addBuilder( + index, org.sonarqube.ws.Issues.Flow.getDefaultInstance()); } - if (((bitField0_ & 0x00100000) == 0x00100000)) { - output.writeBool(25, commentsPresentIfEmpty_); + /** + * repeated .sonarqube.ws.issues.Flow flows = 10; + */ + public java.util.List + getFlowsBuilderList() { + return getFlowsFieldBuilder().getBuilderList(); } - for (int i = 0; i < comments_.size(); i++) { - output.writeMessage(26, comments_.get(i)); + private com.google.protobuf.RepeatedFieldBuilder< + org.sonarqube.ws.Issues.Flow, org.sonarqube.ws.Issues.Flow.Builder, org.sonarqube.ws.Issues.FlowOrBuilder> + getFlowsFieldBuilder() { + if (flowsBuilder_ == null) { + flowsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + org.sonarqube.ws.Issues.Flow, org.sonarqube.ws.Issues.Flow.Builder, org.sonarqube.ws.Issues.FlowOrBuilder>( + flows_, + ((bitField0_ & 0x00000200) == 0x00000200), + getParentForChildren(), + isClean()); + flows_ = null; + } + return flowsBuilder_; } - if (((bitField0_ & 0x00200000) == 0x00200000)) { - output.writeBytes(27, getCreationDateBytes()); + + private java.lang.Object resolution_ = ""; + /** + * optional string resolution = 11; + */ + public boolean hasResolution() { + return ((bitField0_ & 0x00000400) == 0x00000400); } - if (((bitField0_ & 0x00400000) == 0x00400000)) { - output.writeBytes(28, getUpdateDateBytes()); + /** + * optional string resolution = 11; + */ + public java.lang.String getResolution() { + java.lang.Object ref = resolution_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + resolution_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } } - if (((bitField0_ & 0x00800000) == 0x00800000)) { - output.writeBytes(29, getFUpdateAgeBytes()); + /** + * optional string resolution = 11; + */ + public com.google.protobuf.ByteString + getResolutionBytes() { + java.lang.Object ref = resolution_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + resolution_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - if (((bitField0_ & 0x01000000) == 0x01000000)) { - output.writeBytes(30, getCloseDateBytes()); + /** + * optional string resolution = 11; + */ + public Builder setResolution( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000400; + resolution_ = value; + onChanged(); + return this; } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getKeyBytes()); + /** + * optional string resolution = 11; + */ + public Builder clearResolution() { + bitField0_ = (bitField0_ & ~0x00000400); + resolution_ = getDefaultInstance().getResolution(); + onChanged(); + return this; } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getRuleBytes()); + /** + * optional string resolution = 11; + */ + public Builder setResolutionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000400; + resolution_ = value; + onChanged(); + return this; } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, severity_); + + private java.lang.Object status_ = ""; + /** + * optional string status = 12; + */ + public boolean hasStatus() { + return ((bitField0_ & 0x00000800) == 0x00000800); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, getComponentBytes()); + /** + * optional string status = 12; + */ + public java.lang.String getStatus() { + java.lang.Object ref = status_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + status_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(5, componentId_); + /** + * optional string status = 12; + */ + public com.google.protobuf.ByteString + getStatusBytes() { + java.lang.Object ref = status_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + status_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(6, getProjectBytes()); + /** + * optional string status = 12; + */ + public Builder setStatus( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000800; + status_ = value; + onChanged(); + return this; } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(7, getSubProjectBytes()); + /** + * optional string status = 12; + */ + public Builder clearStatus() { + bitField0_ = (bitField0_ & ~0x00000800); + status_ = getDefaultInstance().getStatus(); + onChanged(); + return this; } - if (((bitField0_ & 0x00000080) == 0x00000080)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(8, line_); + /** + * optional string status = 12; + */ + public Builder setStatusBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000800; + status_ = value; + onChanged(); + return this; } - if (((bitField0_ & 0x00000100) == 0x00000100)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, getTextRange()); + + private java.lang.Object message_ = ""; + /** + * optional string message = 13; + */ + public boolean hasMessage() { + return ((bitField0_ & 0x00001000) == 0x00001000); } - for (int i = 0; i < flows_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, flows_.get(i)); + /** + * optional string message = 13; + */ + public java.lang.String getMessage() { + java.lang.Object ref = message_; + 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()) { + message_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } } - if (((bitField0_ & 0x00000200) == 0x00000200)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(11, getResolutionBytes()); + /** + * optional string message = 13; + */ + public com.google.protobuf.ByteString + getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - if (((bitField0_ & 0x00000400) == 0x00000400)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(12, getStatusBytes()); + /** + * optional string message = 13; + */ + public Builder setMessage( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00001000; + message_ = value; + onChanged(); + return this; } - if (((bitField0_ & 0x00000800) == 0x00000800)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(13, getMessageBytes()); + /** + * optional string message = 13; + */ + public Builder clearMessage() { + bitField0_ = (bitField0_ & ~0x00001000); + message_ = getDefaultInstance().getMessage(); + onChanged(); + return this; } - if (((bitField0_ & 0x00001000) == 0x00001000)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(14, getDebtBytes()); + /** + * optional string message = 13; + */ + public Builder setMessageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00001000; + message_ = value; + onChanged(); + return this; } - if (((bitField0_ & 0x00002000) == 0x00002000)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(15, getAssigneeBytes()); + + private java.lang.Object debt_ = ""; + /** + * optional string debt = 14; + */ + public boolean hasDebt() { + return ((bitField0_ & 0x00002000) == 0x00002000); } - if (((bitField0_ & 0x00004000) == 0x00004000)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(16, getReporterBytes()); + /** + * optional string debt = 14; + */ + public java.lang.String getDebt() { + java.lang.Object ref = debt_; + 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()) { + debt_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } } - if (((bitField0_ & 0x00008000) == 0x00008000)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(17, getAuthorBytes()); + /** + * optional string debt = 14; + */ + public com.google.protobuf.ByteString + getDebtBytes() { + java.lang.Object ref = debt_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + debt_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - if (((bitField0_ & 0x00010000) == 0x00010000)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(18, getActionPlanBytes()); + /** + * optional string debt = 14; + */ + public Builder setDebt( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00002000; + debt_ = value; + onChanged(); + return this; } - if (((bitField0_ & 0x00020000) == 0x00020000)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(19, tagsPresentIfEmpty_); + /** + * optional string debt = 14; + */ + public Builder clearDebt() { + bitField0_ = (bitField0_ & ~0x00002000); + debt_ = getDefaultInstance().getDebt(); + onChanged(); + return this; } - { - int dataSize = 0; - for (int i = 0; i < tags_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeBytesSizeNoTag(tags_.getByteString(i)); - } - size += dataSize; - size += 2 * getTagsList().size(); + /** + * optional string debt = 14; + */ + public Builder setDebtBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00002000; + debt_ = value; + onChanged(); + return this; } - if (((bitField0_ & 0x00040000) == 0x00040000)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(21, transitionsPresentIfEmpty_); + + private java.lang.Object assignee_ = ""; + /** + * optional string assignee = 15; + */ + public boolean hasAssignee() { + return ((bitField0_ & 0x00004000) == 0x00004000); } - { - int dataSize = 0; - for (int i = 0; i < transitions_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeBytesSizeNoTag(transitions_.getByteString(i)); + /** + * optional string assignee = 15; + */ + public java.lang.String getAssignee() { + java.lang.Object ref = assignee_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + assignee_ = s; + } + return s; + } else { + return (java.lang.String) ref; } - size += dataSize; - size += 2 * getTransitionsList().size(); - } - if (((bitField0_ & 0x00080000) == 0x00080000)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(23, actionsPresentIfEmpty_); } - { - int dataSize = 0; - for (int i = 0; i < actions_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeBytesSizeNoTag(actions_.getByteString(i)); + /** + * optional string assignee = 15; + */ + public com.google.protobuf.ByteString + getAssigneeBytes() { + java.lang.Object ref = assignee_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + assignee_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } - size += dataSize; - size += 2 * getActionsList().size(); } - if (((bitField0_ & 0x00100000) == 0x00100000)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(25, commentsPresentIfEmpty_); + /** + * optional string assignee = 15; + */ + public Builder setAssignee( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00004000; + assignee_ = value; + onChanged(); + return this; } - for (int i = 0; i < comments_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(26, comments_.get(i)); + /** + * optional string assignee = 15; + */ + public Builder clearAssignee() { + bitField0_ = (bitField0_ & ~0x00004000); + assignee_ = getDefaultInstance().getAssignee(); + onChanged(); + return this; } - if (((bitField0_ & 0x00200000) == 0x00200000)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(27, getCreationDateBytes()); + /** + * optional string assignee = 15; + */ + public Builder setAssigneeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00004000; + assignee_ = value; + onChanged(); + return this; } - if (((bitField0_ & 0x00400000) == 0x00400000)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(28, getUpdateDateBytes()); + + private java.lang.Object reporter_ = ""; + /** + * optional string reporter = 16; + */ + public boolean hasReporter() { + return ((bitField0_ & 0x00008000) == 0x00008000); } - if (((bitField0_ & 0x00800000) == 0x00800000)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(29, getFUpdateAgeBytes()); + /** + * optional string reporter = 16; + */ + public java.lang.String getReporter() { + java.lang.Object ref = reporter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + reporter_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } } - if (((bitField0_ & 0x01000000) == 0x01000000)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(30, getCloseDateBytes()); + /** + * optional string reporter = 16; + */ + public com.google.protobuf.ByteString + getReporterBytes() { + java.lang.Object ref = reporter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + reporter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonarqube.ws.Issues.Issue parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.Issues.Issue 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.Issue parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.Issues.Issue parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.Issues.Issue parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.Issues.Issue 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.Issue parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonarqube.ws.Issues.Issue 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.Issue parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.Issues.Issue parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonarqube.ws.Issues.Issue prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(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.Issue} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:sonarqube.ws.issues.Issue) - org.sonarqube.ws.Issues.IssueOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Issue_descriptor; + /** + * optional string reporter = 16; + */ + public Builder setReporter( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00008000; + reporter_ = value; + onChanged(); + return this; } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Issue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Issues.Issue.class, org.sonarqube.ws.Issues.Issue.Builder.class); + /** + * optional string reporter = 16; + */ + public Builder clearReporter() { + bitField0_ = (bitField0_ & ~0x00008000); + reporter_ = getDefaultInstance().getReporter(); + onChanged(); + return this; } - - // Construct using org.sonarqube.ws.Issues.Issue.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); + /** + * optional string reporter = 16; + */ + public Builder setReporterBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00008000; + reporter_ = value; + onChanged(); + return this; } - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getTextRangeFieldBuilder(); - getFlowsFieldBuilder(); - getCommentsFieldBuilder(); - } + private java.lang.Object author_ = ""; + /** + * optional string author = 17; + * + *
+       * SCM login of the committer who introduced the issue
+       * 
+ */ + public boolean hasAuthor() { + return ((bitField0_ & 0x00010000) == 0x00010000); } - public Builder clear() { - super.clear(); - key_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - rule_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - severity_ = 0; - bitField0_ = (bitField0_ & ~0x00000004); - component_ = ""; - bitField0_ = (bitField0_ & ~0x00000008); - componentId_ = 0L; - bitField0_ = (bitField0_ & ~0x00000010); - project_ = ""; - bitField0_ = (bitField0_ & ~0x00000020); - subProject_ = ""; - bitField0_ = (bitField0_ & ~0x00000040); - line_ = 0; - bitField0_ = (bitField0_ & ~0x00000080); - if (textRangeBuilder_ == null) { - textRange_ = null; - } else { - textRangeBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000100); - if (flowsBuilder_ == null) { - flows_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000200); + /** + * optional string author = 17; + * + *
+       * SCM login of the committer who introduced the issue
+       * 
+ */ + public java.lang.String getAuthor() { + java.lang.Object ref = author_; + 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()) { + author_ = s; + } + return s; } else { - flowsBuilder_.clear(); + return (java.lang.String) ref; } - resolution_ = ""; - bitField0_ = (bitField0_ & ~0x00000400); - status_ = ""; - bitField0_ = (bitField0_ & ~0x00000800); - message_ = ""; - bitField0_ = (bitField0_ & ~0x00001000); - debt_ = ""; - bitField0_ = (bitField0_ & ~0x00002000); - assignee_ = ""; - bitField0_ = (bitField0_ & ~0x00004000); - reporter_ = ""; - bitField0_ = (bitField0_ & ~0x00008000); - author_ = ""; - bitField0_ = (bitField0_ & ~0x00010000); - actionPlan_ = ""; - bitField0_ = (bitField0_ & ~0x00020000); - tagsPresentIfEmpty_ = false; - bitField0_ = (bitField0_ & ~0x00040000); - tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00080000); - transitionsPresentIfEmpty_ = false; - bitField0_ = (bitField0_ & ~0x00100000); - transitions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00200000); - actionsPresentIfEmpty_ = false; - bitField0_ = (bitField0_ & ~0x00400000); - actions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00800000); - commentsPresentIfEmpty_ = false; - bitField0_ = (bitField0_ & ~0x01000000); - if (commentsBuilder_ == null) { - comments_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x02000000); + } + /** + * optional string author = 17; + * + *
+       * SCM login of the committer who introduced the issue
+       * 
+ */ + public com.google.protobuf.ByteString + getAuthorBytes() { + java.lang.Object ref = author_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + author_ = b; + return b; } else { - commentsBuilder_.clear(); + return (com.google.protobuf.ByteString) ref; } - creationDate_ = ""; - bitField0_ = (bitField0_ & ~0x04000000); - updateDate_ = ""; - bitField0_ = (bitField0_ & ~0x08000000); - fUpdateAge_ = ""; - bitField0_ = (bitField0_ & ~0x10000000); - closeDate_ = ""; - bitField0_ = (bitField0_ & ~0x20000000); + } + /** + * optional string author = 17; + * + *
+       * SCM login of the committer who introduced the issue
+       * 
+ */ + public Builder setAuthor( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00010000; + author_ = value; + onChanged(); return this; } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Issue_descriptor; + /** + * optional string author = 17; + * + *
+       * SCM login of the committer who introduced the issue
+       * 
+ */ + public Builder clearAuthor() { + bitField0_ = (bitField0_ & ~0x00010000); + author_ = getDefaultInstance().getAuthor(); + onChanged(); + return this; } - - public org.sonarqube.ws.Issues.Issue getDefaultInstanceForType() { - return org.sonarqube.ws.Issues.Issue.getDefaultInstance(); + /** + * optional string author = 17; + * + *
+       * SCM login of the committer who introduced the issue
+       * 
+ */ + public Builder setAuthorBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00010000; + author_ = value; + onChanged(); + return this; } - public org.sonarqube.ws.Issues.Issue build() { - org.sonarqube.ws.Issues.Issue result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; + private java.lang.Object actionPlan_ = ""; + /** + * optional string actionPlan = 18; + */ + public boolean hasActionPlan() { + return ((bitField0_ & 0x00020000) == 0x00020000); } - - public org.sonarqube.ws.Issues.Issue buildPartial() { - org.sonarqube.ws.Issues.Issue result = new org.sonarqube.ws.Issues.Issue(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.key_ = key_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.rule_ = rule_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.severity_ = severity_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } - result.component_ = component_; - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { - to_bitField0_ |= 0x00000010; - } - result.componentId_ = componentId_; - if (((from_bitField0_ & 0x00000020) == 0x00000020)) { - to_bitField0_ |= 0x00000020; - } - result.project_ = project_; - if (((from_bitField0_ & 0x00000040) == 0x00000040)) { - to_bitField0_ |= 0x00000040; - } - result.subProject_ = subProject_; - if (((from_bitField0_ & 0x00000080) == 0x00000080)) { - to_bitField0_ |= 0x00000080; - } - result.line_ = line_; - if (((from_bitField0_ & 0x00000100) == 0x00000100)) { - to_bitField0_ |= 0x00000100; - } - if (textRangeBuilder_ == null) { - result.textRange_ = textRange_; - } else { - result.textRange_ = textRangeBuilder_.build(); - } - if (flowsBuilder_ == null) { - if (((bitField0_ & 0x00000200) == 0x00000200)) { - flows_ = java.util.Collections.unmodifiableList(flows_); - bitField0_ = (bitField0_ & ~0x00000200); + /** + * optional string actionPlan = 18; + */ + public java.lang.String getActionPlan() { + java.lang.Object ref = actionPlan_; + 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()) { + actionPlan_ = s; } - result.flows_ = flows_; + return s; } else { - result.flows_ = flowsBuilder_.build(); - } - if (((from_bitField0_ & 0x00000400) == 0x00000400)) { - to_bitField0_ |= 0x00000200; - } - result.resolution_ = resolution_; - if (((from_bitField0_ & 0x00000800) == 0x00000800)) { - to_bitField0_ |= 0x00000400; - } - result.status_ = status_; - if (((from_bitField0_ & 0x00001000) == 0x00001000)) { - to_bitField0_ |= 0x00000800; - } - result.message_ = message_; - if (((from_bitField0_ & 0x00002000) == 0x00002000)) { - to_bitField0_ |= 0x00001000; - } - result.debt_ = debt_; - if (((from_bitField0_ & 0x00004000) == 0x00004000)) { - to_bitField0_ |= 0x00002000; - } - result.assignee_ = assignee_; - if (((from_bitField0_ & 0x00008000) == 0x00008000)) { - to_bitField0_ |= 0x00004000; - } - result.reporter_ = reporter_; - if (((from_bitField0_ & 0x00010000) == 0x00010000)) { - to_bitField0_ |= 0x00008000; - } - result.author_ = author_; - if (((from_bitField0_ & 0x00020000) == 0x00020000)) { - to_bitField0_ |= 0x00010000; - } - result.actionPlan_ = actionPlan_; - if (((from_bitField0_ & 0x00040000) == 0x00040000)) { - to_bitField0_ |= 0x00020000; - } - result.tagsPresentIfEmpty_ = tagsPresentIfEmpty_; - if (((bitField0_ & 0x00080000) == 0x00080000)) { - tags_ = tags_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00080000); - } - result.tags_ = tags_; - if (((from_bitField0_ & 0x00100000) == 0x00100000)) { - to_bitField0_ |= 0x00040000; - } - result.transitionsPresentIfEmpty_ = transitionsPresentIfEmpty_; - if (((bitField0_ & 0x00200000) == 0x00200000)) { - transitions_ = transitions_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00200000); - } - result.transitions_ = transitions_; - if (((from_bitField0_ & 0x00400000) == 0x00400000)) { - to_bitField0_ |= 0x00080000; - } - result.actionsPresentIfEmpty_ = actionsPresentIfEmpty_; - if (((bitField0_ & 0x00800000) == 0x00800000)) { - actions_ = actions_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00800000); - } - result.actions_ = actions_; - if (((from_bitField0_ & 0x01000000) == 0x01000000)) { - to_bitField0_ |= 0x00100000; + return (java.lang.String) ref; } - result.commentsPresentIfEmpty_ = commentsPresentIfEmpty_; - if (commentsBuilder_ == null) { - if (((bitField0_ & 0x02000000) == 0x02000000)) { - comments_ = java.util.Collections.unmodifiableList(comments_); - bitField0_ = (bitField0_ & ~0x02000000); - } - result.comments_ = comments_; + } + /** + * optional string actionPlan = 18; + */ + public com.google.protobuf.ByteString + getActionPlanBytes() { + java.lang.Object ref = actionPlan_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + actionPlan_ = b; + return b; } else { - result.comments_ = commentsBuilder_.build(); - } - if (((from_bitField0_ & 0x04000000) == 0x04000000)) { - to_bitField0_ |= 0x00200000; - } - result.creationDate_ = creationDate_; - if (((from_bitField0_ & 0x08000000) == 0x08000000)) { - to_bitField0_ |= 0x00400000; - } - result.updateDate_ = updateDate_; - if (((from_bitField0_ & 0x10000000) == 0x10000000)) { - to_bitField0_ |= 0x00800000; - } - result.fUpdateAge_ = fUpdateAge_; - if (((from_bitField0_ & 0x20000000) == 0x20000000)) { - to_bitField0_ |= 0x01000000; + return (com.google.protobuf.ByteString) ref; } - result.closeDate_ = closeDate_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + } + /** + * optional string actionPlan = 18; + */ + public Builder setActionPlan( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00020000; + actionPlan_ = value; + onChanged(); + return this; + } + /** + * optional string actionPlan = 18; + */ + public Builder clearActionPlan() { + bitField0_ = (bitField0_ & ~0x00020000); + actionPlan_ = getDefaultInstance().getActionPlan(); + onChanged(); + return this; + } + /** + * optional string actionPlan = 18; + */ + public Builder setActionPlanBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00020000; + actionPlan_ = value; + onChanged(); + return this; } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonarqube.ws.Issues.Issue) { - return mergeFrom((org.sonarqube.ws.Issues.Issue)other); - } else { - super.mergeFrom(other); - return this; - } + private com.google.protobuf.LazyStringList tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureTagsIsMutable() { + if (!((bitField0_ & 0x00040000) == 0x00040000)) { + tags_ = new com.google.protobuf.LazyStringArrayList(tags_); + bitField0_ |= 0x00040000; + } + } + /** + * repeated string tags = 19; + */ + public com.google.protobuf.ProtocolStringList + getTagsList() { + return tags_.getUnmodifiableView(); + } + /** + * repeated string tags = 19; + */ + public int getTagsCount() { + return tags_.size(); + } + /** + * repeated string tags = 19; + */ + public java.lang.String getTags(int index) { + return tags_.get(index); + } + /** + * repeated string tags = 19; + */ + public com.google.protobuf.ByteString + getTagsBytes(int index) { + return tags_.getByteString(index); + } + /** + * repeated string tags = 19; + */ + public Builder setTags( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTagsIsMutable(); + tags_.set(index, value); + onChanged(); + return this; + } + /** + * repeated string tags = 19; + */ + public Builder addTags( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTagsIsMutable(); + tags_.add(value); + onChanged(); + return this; + } + /** + * repeated string tags = 19; + */ + public Builder addAllTags( + java.lang.Iterable values) { + ensureTagsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, tags_); + onChanged(); + return this; + } + /** + * repeated string tags = 19; + */ + public Builder clearTags() { + tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00040000); + onChanged(); + return this; + } + /** + * repeated string tags = 19; + */ + public Builder addTagsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTagsIsMutable(); + tags_.add(value); + onChanged(); + return this; } - public Builder mergeFrom(org.sonarqube.ws.Issues.Issue other) { - if (other == org.sonarqube.ws.Issues.Issue.getDefaultInstance()) return this; - if (other.hasKey()) { - bitField0_ |= 0x00000001; - key_ = other.key_; - onChanged(); - } - if (other.hasRule()) { - bitField0_ |= 0x00000002; - rule_ = other.rule_; - onChanged(); - } - if (other.hasSeverity()) { - setSeverity(other.getSeverity()); - } - if (other.hasComponent()) { - bitField0_ |= 0x00000008; - component_ = other.component_; - onChanged(); - } - if (other.hasComponentId()) { - setComponentId(other.getComponentId()); - } - if (other.hasProject()) { - bitField0_ |= 0x00000020; - project_ = other.project_; - onChanged(); - } - if (other.hasSubProject()) { - bitField0_ |= 0x00000040; - subProject_ = other.subProject_; - onChanged(); - } - if (other.hasLine()) { - setLine(other.getLine()); - } - if (other.hasTextRange()) { - mergeTextRange(other.getTextRange()); - } - if (flowsBuilder_ == null) { - if (!other.flows_.isEmpty()) { - if (flows_.isEmpty()) { - flows_ = other.flows_; - bitField0_ = (bitField0_ & ~0x00000200); - } else { - ensureFlowsIsMutable(); - flows_.addAll(other.flows_); - } - onChanged(); - } + private org.sonarqube.ws.Issues.Transitions transitions_ = null; + private com.google.protobuf.SingleFieldBuilder< + org.sonarqube.ws.Issues.Transitions, org.sonarqube.ws.Issues.Transitions.Builder, org.sonarqube.ws.Issues.TransitionsOrBuilder> transitionsBuilder_; + /** + * optional .sonarqube.ws.issues.Transitions transitions = 20; + * + *
+       * the transitions allowed for the requesting user.
+       * 
+ */ + public boolean hasTransitions() { + return ((bitField0_ & 0x00080000) == 0x00080000); + } + /** + * optional .sonarqube.ws.issues.Transitions transitions = 20; + * + *
+       * the transitions allowed for the requesting user.
+       * 
+ */ + public org.sonarqube.ws.Issues.Transitions getTransitions() { + if (transitionsBuilder_ == null) { + return transitions_ == null ? org.sonarqube.ws.Issues.Transitions.getDefaultInstance() : transitions_; } else { - if (!other.flows_.isEmpty()) { - if (flowsBuilder_.isEmpty()) { - flowsBuilder_.dispose(); - flowsBuilder_ = null; - flows_ = other.flows_; - bitField0_ = (bitField0_ & ~0x00000200); - flowsBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getFlowsFieldBuilder() : null; - } else { - flowsBuilder_.addAllMessages(other.flows_); - } - } - } - if (other.hasResolution()) { - bitField0_ |= 0x00000400; - resolution_ = other.resolution_; - onChanged(); - } - if (other.hasStatus()) { - bitField0_ |= 0x00000800; - status_ = other.status_; - onChanged(); - } - if (other.hasMessage()) { - bitField0_ |= 0x00001000; - message_ = other.message_; - onChanged(); - } - if (other.hasDebt()) { - bitField0_ |= 0x00002000; - debt_ = other.debt_; - onChanged(); - } - if (other.hasAssignee()) { - bitField0_ |= 0x00004000; - assignee_ = other.assignee_; - onChanged(); - } - if (other.hasReporter()) { - bitField0_ |= 0x00008000; - reporter_ = other.reporter_; - onChanged(); - } - if (other.hasAuthor()) { - bitField0_ |= 0x00010000; - author_ = other.author_; - onChanged(); - } - if (other.hasActionPlan()) { - bitField0_ |= 0x00020000; - actionPlan_ = other.actionPlan_; - onChanged(); - } - if (other.hasTagsPresentIfEmpty()) { - setTagsPresentIfEmpty(other.getTagsPresentIfEmpty()); + return transitionsBuilder_.getMessage(); } - if (!other.tags_.isEmpty()) { - if (tags_.isEmpty()) { - tags_ = other.tags_; - bitField0_ = (bitField0_ & ~0x00080000); - } else { - ensureTagsIsMutable(); - tags_.addAll(other.tags_); + } + /** + * optional .sonarqube.ws.issues.Transitions transitions = 20; + * + *
+       * the transitions allowed for the requesting user.
+       * 
+ */ + public Builder setTransitions(org.sonarqube.ws.Issues.Transitions value) { + if (transitionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); } + transitions_ = value; onChanged(); + } else { + transitionsBuilder_.setMessage(value); } - if (other.hasTransitionsPresentIfEmpty()) { - setTransitionsPresentIfEmpty(other.getTransitionsPresentIfEmpty()); + bitField0_ |= 0x00080000; + return this; + } + /** + * optional .sonarqube.ws.issues.Transitions transitions = 20; + * + *
+       * the transitions allowed for the requesting user.
+       * 
+ */ + public Builder setTransitions( + org.sonarqube.ws.Issues.Transitions.Builder builderForValue) { + if (transitionsBuilder_ == null) { + transitions_ = builderForValue.build(); + onChanged(); + } else { + transitionsBuilder_.setMessage(builderForValue.build()); } - if (!other.transitions_.isEmpty()) { - if (transitions_.isEmpty()) { - transitions_ = other.transitions_; - bitField0_ = (bitField0_ & ~0x00200000); + bitField0_ |= 0x00080000; + return this; + } + /** + * optional .sonarqube.ws.issues.Transitions transitions = 20; + * + *
+       * the transitions allowed for the requesting user.
+       * 
+ */ + public Builder mergeTransitions(org.sonarqube.ws.Issues.Transitions value) { + if (transitionsBuilder_ == null) { + if (((bitField0_ & 0x00080000) == 0x00080000) && + transitions_ != null && + transitions_ != org.sonarqube.ws.Issues.Transitions.getDefaultInstance()) { + transitions_ = + org.sonarqube.ws.Issues.Transitions.newBuilder(transitions_).mergeFrom(value).buildPartial(); } else { - ensureTransitionsIsMutable(); - transitions_.addAll(other.transitions_); + transitions_ = value; } onChanged(); + } else { + transitionsBuilder_.mergeFrom(value); } - if (other.hasActionsPresentIfEmpty()) { - setActionsPresentIfEmpty(other.getActionsPresentIfEmpty()); - } - if (!other.actions_.isEmpty()) { - if (actions_.isEmpty()) { - actions_ = other.actions_; - bitField0_ = (bitField0_ & ~0x00800000); - } else { - ensureActionsIsMutable(); - actions_.addAll(other.actions_); - } + bitField0_ |= 0x00080000; + return this; + } + /** + * optional .sonarqube.ws.issues.Transitions transitions = 20; + * + *
+       * the transitions allowed for the requesting user.
+       * 
+ */ + public Builder clearTransitions() { + if (transitionsBuilder_ == null) { + transitions_ = null; onChanged(); + } else { + transitionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00080000); + return this; + } + /** + * optional .sonarqube.ws.issues.Transitions transitions = 20; + * + *
+       * the transitions allowed for the requesting user.
+       * 
+ */ + public org.sonarqube.ws.Issues.Transitions.Builder getTransitionsBuilder() { + bitField0_ |= 0x00080000; + onChanged(); + return getTransitionsFieldBuilder().getBuilder(); + } + /** + * optional .sonarqube.ws.issues.Transitions transitions = 20; + * + *
+       * the transitions allowed for the requesting user.
+       * 
+ */ + public org.sonarqube.ws.Issues.TransitionsOrBuilder getTransitionsOrBuilder() { + if (transitionsBuilder_ != null) { + return transitionsBuilder_.getMessageOrBuilder(); + } else { + return transitions_ == null ? + org.sonarqube.ws.Issues.Transitions.getDefaultInstance() : transitions_; } - if (other.hasCommentsPresentIfEmpty()) { - setCommentsPresentIfEmpty(other.getCommentsPresentIfEmpty()); + } + /** + * optional .sonarqube.ws.issues.Transitions transitions = 20; + * + *
+       * the transitions allowed for the requesting user.
+       * 
+ */ + private com.google.protobuf.SingleFieldBuilder< + org.sonarqube.ws.Issues.Transitions, org.sonarqube.ws.Issues.Transitions.Builder, org.sonarqube.ws.Issues.TransitionsOrBuilder> + getTransitionsFieldBuilder() { + if (transitionsBuilder_ == null) { + transitionsBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.sonarqube.ws.Issues.Transitions, org.sonarqube.ws.Issues.Transitions.Builder, org.sonarqube.ws.Issues.TransitionsOrBuilder>( + getTransitions(), + getParentForChildren(), + isClean()); + transitions_ = null; } - if (commentsBuilder_ == null) { - if (!other.comments_.isEmpty()) { - if (comments_.isEmpty()) { - comments_ = other.comments_; - bitField0_ = (bitField0_ & ~0x02000000); - } else { - ensureCommentsIsMutable(); - comments_.addAll(other.comments_); - } - onChanged(); - } + return transitionsBuilder_; + } + + private org.sonarqube.ws.Issues.Actions actions_ = null; + private com.google.protobuf.SingleFieldBuilder< + org.sonarqube.ws.Issues.Actions, org.sonarqube.ws.Issues.Actions.Builder, org.sonarqube.ws.Issues.ActionsOrBuilder> actionsBuilder_; + /** + * optional .sonarqube.ws.issues.Actions actions = 21; + * + *
+       * the actions allowed for the requesting user.
+       * 
+ */ + public boolean hasActions() { + return ((bitField0_ & 0x00100000) == 0x00100000); + } + /** + * optional .sonarqube.ws.issues.Actions actions = 21; + * + *
+       * the actions allowed for the requesting user.
+       * 
+ */ + public org.sonarqube.ws.Issues.Actions getActions() { + if (actionsBuilder_ == null) { + return actions_ == null ? org.sonarqube.ws.Issues.Actions.getDefaultInstance() : actions_; } else { - if (!other.comments_.isEmpty()) { - if (commentsBuilder_.isEmpty()) { - commentsBuilder_.dispose(); - commentsBuilder_ = null; - comments_ = other.comments_; - bitField0_ = (bitField0_ & ~0x02000000); - commentsBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getCommentsFieldBuilder() : null; - } else { - commentsBuilder_.addAllMessages(other.comments_); - } - } + return actionsBuilder_.getMessage(); } - if (other.hasCreationDate()) { - bitField0_ |= 0x04000000; - creationDate_ = other.creationDate_; + } + /** + * optional .sonarqube.ws.issues.Actions actions = 21; + * + *
+       * the actions allowed for the requesting user.
+       * 
+ */ + public Builder setActions(org.sonarqube.ws.Issues.Actions value) { + if (actionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + actions_ = value; onChanged(); + } else { + actionsBuilder_.setMessage(value); } - if (other.hasUpdateDate()) { - bitField0_ |= 0x08000000; - updateDate_ = other.updateDate_; + bitField0_ |= 0x00100000; + return this; + } + /** + * optional .sonarqube.ws.issues.Actions actions = 21; + * + *
+       * the actions allowed for the requesting user.
+       * 
+ */ + public Builder setActions( + org.sonarqube.ws.Issues.Actions.Builder builderForValue) { + if (actionsBuilder_ == null) { + actions_ = builderForValue.build(); onChanged(); + } else { + actionsBuilder_.setMessage(builderForValue.build()); } - if (other.hasFUpdateAge()) { - bitField0_ |= 0x10000000; - fUpdateAge_ = other.fUpdateAge_; + bitField0_ |= 0x00100000; + return this; + } + /** + * optional .sonarqube.ws.issues.Actions actions = 21; + * + *
+       * the actions allowed for the requesting user.
+       * 
+ */ + public Builder mergeActions(org.sonarqube.ws.Issues.Actions value) { + if (actionsBuilder_ == null) { + if (((bitField0_ & 0x00100000) == 0x00100000) && + actions_ != null && + actions_ != org.sonarqube.ws.Issues.Actions.getDefaultInstance()) { + actions_ = + org.sonarqube.ws.Issues.Actions.newBuilder(actions_).mergeFrom(value).buildPartial(); + } else { + actions_ = value; + } onChanged(); + } else { + actionsBuilder_.mergeFrom(value); } - if (other.hasCloseDate()) { - bitField0_ |= 0x20000000; - closeDate_ = other.closeDate_; + bitField0_ |= 0x00100000; + return this; + } + /** + * optional .sonarqube.ws.issues.Actions actions = 21; + * + *
+       * the actions allowed for the requesting user.
+       * 
+ */ + public Builder clearActions() { + if (actionsBuilder_ == null) { + actions_ = null; onChanged(); + } else { + actionsBuilder_.clear(); } - this.mergeUnknownFields(other.unknownFields); - onChanged(); + bitField0_ = (bitField0_ & ~0x00100000); return this; } - - public final boolean isInitialized() { - return true; + /** + * optional .sonarqube.ws.issues.Actions actions = 21; + * + *
+       * the actions allowed for the requesting user.
+       * 
+ */ + public org.sonarqube.ws.Issues.Actions.Builder getActionsBuilder() { + bitField0_ |= 0x00100000; + onChanged(); + return getActionsFieldBuilder().getBuilder(); + } + /** + * optional .sonarqube.ws.issues.Actions actions = 21; + * + *
+       * the actions allowed for the requesting user.
+       * 
+ */ + public org.sonarqube.ws.Issues.ActionsOrBuilder getActionsOrBuilder() { + if (actionsBuilder_ != null) { + return actionsBuilder_.getMessageOrBuilder(); + } else { + return actions_ == null ? + org.sonarqube.ws.Issues.Actions.getDefaultInstance() : actions_; + } + } + /** + * optional .sonarqube.ws.issues.Actions actions = 21; + * + *
+       * the actions allowed for the requesting user.
+       * 
+ */ + private com.google.protobuf.SingleFieldBuilder< + org.sonarqube.ws.Issues.Actions, org.sonarqube.ws.Issues.Actions.Builder, org.sonarqube.ws.Issues.ActionsOrBuilder> + getActionsFieldBuilder() { + if (actionsBuilder_ == null) { + actionsBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.sonarqube.ws.Issues.Actions, org.sonarqube.ws.Issues.Actions.Builder, org.sonarqube.ws.Issues.ActionsOrBuilder>( + getActions(), + getParentForChildren(), + isClean()); + actions_ = null; + } + return actionsBuilder_; } - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonarqube.ws.Issues.Issue parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonarqube.ws.Issues.Issue) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); + private org.sonarqube.ws.Issues.Comments comments_ = null; + private com.google.protobuf.SingleFieldBuilder< + org.sonarqube.ws.Issues.Comments, org.sonarqube.ws.Issues.Comments.Builder, org.sonarqube.ws.Issues.CommentsOrBuilder> commentsBuilder_; + /** + * optional .sonarqube.ws.issues.Comments comments = 22; + */ + public boolean hasComments() { + return ((bitField0_ & 0x00200000) == 0x00200000); + } + /** + * optional .sonarqube.ws.issues.Comments comments = 22; + */ + public org.sonarqube.ws.Issues.Comments getComments() { + if (commentsBuilder_ == null) { + return comments_ == null ? org.sonarqube.ws.Issues.Comments.getDefaultInstance() : comments_; + } else { + return commentsBuilder_.getMessage(); + } + } + /** + * optional .sonarqube.ws.issues.Comments comments = 22; + */ + public Builder setComments(org.sonarqube.ws.Issues.Comments value) { + if (commentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); } + comments_ = value; + onChanged(); + } else { + commentsBuilder_.setMessage(value); } + bitField0_ |= 0x00200000; return this; } - private int bitField0_; - - private java.lang.Object key_ = ""; /** - * optional string key = 1; + * optional .sonarqube.ws.issues.Comments comments = 22; */ - public boolean hasKey() { - return ((bitField0_ & 0x00000001) == 0x00000001); + public Builder setComments( + org.sonarqube.ws.Issues.Comments.Builder builderForValue) { + if (commentsBuilder_ == null) { + comments_ = builderForValue.build(); + onChanged(); + } else { + commentsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00200000; + return this; } /** - * optional string key = 1; + * optional .sonarqube.ws.issues.Comments comments = 22; */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - key_ = s; + public Builder mergeComments(org.sonarqube.ws.Issues.Comments value) { + if (commentsBuilder_ == null) { + if (((bitField0_ & 0x00200000) == 0x00200000) && + comments_ != null && + comments_ != org.sonarqube.ws.Issues.Comments.getDefaultInstance()) { + comments_ = + org.sonarqube.ws.Issues.Comments.newBuilder(comments_).mergeFrom(value).buildPartial(); + } else { + comments_ = value; } - return s; + onChanged(); } else { - return (java.lang.String) ref; + commentsBuilder_.mergeFrom(value); } + bitField0_ |= 0x00200000; + return this; } /** - * optional string key = 1; + * optional .sonarqube.ws.issues.Comments comments = 22; */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; + public Builder clearComments() { + if (commentsBuilder_ == null) { + comments_ = null; + onChanged(); } else { - return (com.google.protobuf.ByteString) ref; + commentsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00200000); + return this; } /** - * optional string key = 1; + * optional .sonarqube.ws.issues.Comments comments = 22; */ - public Builder setKey( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - key_ = value; + public org.sonarqube.ws.Issues.Comments.Builder getCommentsBuilder() { + bitField0_ |= 0x00200000; onChanged(); - return this; + return getCommentsFieldBuilder().getBuilder(); } /** - * optional string key = 1; + * optional .sonarqube.ws.issues.Comments comments = 22; */ - public Builder clearKey() { - bitField0_ = (bitField0_ & ~0x00000001); - key_ = getDefaultInstance().getKey(); - onChanged(); - return this; + public org.sonarqube.ws.Issues.CommentsOrBuilder getCommentsOrBuilder() { + if (commentsBuilder_ != null) { + return commentsBuilder_.getMessageOrBuilder(); + } else { + return comments_ == null ? + org.sonarqube.ws.Issues.Comments.getDefaultInstance() : comments_; + } } /** - * optional string key = 1; + * optional .sonarqube.ws.issues.Comments comments = 22; */ - public Builder setKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - key_ = value; - onChanged(); - return this; + private com.google.protobuf.SingleFieldBuilder< + org.sonarqube.ws.Issues.Comments, org.sonarqube.ws.Issues.Comments.Builder, org.sonarqube.ws.Issues.CommentsOrBuilder> + getCommentsFieldBuilder() { + if (commentsBuilder_ == null) { + commentsBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.sonarqube.ws.Issues.Comments, org.sonarqube.ws.Issues.Comments.Builder, org.sonarqube.ws.Issues.CommentsOrBuilder>( + getComments(), + getParentForChildren(), + isClean()); + comments_ = null; + } + return commentsBuilder_; } - private java.lang.Object rule_ = ""; + private java.lang.Object creationDate_ = ""; /** - * optional string rule = 2; + * optional string creationDate = 23; */ - public boolean hasRule() { - return ((bitField0_ & 0x00000002) == 0x00000002); + public boolean hasCreationDate() { + return ((bitField0_ & 0x00400000) == 0x00400000); } /** - * optional string rule = 2; + * optional string creationDate = 23; */ - public java.lang.String getRule() { - java.lang.Object ref = rule_; + public java.lang.String getCreationDate() { + java.lang.Object ref = creationDate_; 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()) { - rule_ = s; + creationDate_ = s; } return s; } else { @@ -8445,111 +8866,75 @@ public final class Issues { } } /** - * optional string rule = 2; + * optional string creationDate = 23; */ public com.google.protobuf.ByteString - getRuleBytes() { - java.lang.Object ref = rule_; + getCreationDateBytes() { + java.lang.Object ref = creationDate_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - rule_ = b; + creationDate_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** - * optional string rule = 2; + * optional string creationDate = 23; */ - public Builder setRule( + public Builder setCreationDate( java.lang.String value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000002; - rule_ = value; + bitField0_ |= 0x00400000; + creationDate_ = value; onChanged(); return this; } /** - * optional string rule = 2; + * optional string creationDate = 23; */ - public Builder clearRule() { - bitField0_ = (bitField0_ & ~0x00000002); - rule_ = getDefaultInstance().getRule(); + public Builder clearCreationDate() { + bitField0_ = (bitField0_ & ~0x00400000); + creationDate_ = getDefaultInstance().getCreationDate(); onChanged(); return this; } /** - * optional string rule = 2; + * optional string creationDate = 23; */ - public Builder setRuleBytes( + public Builder setCreationDateBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000002; - rule_ = value; - onChanged(); - return this; - } - - private int severity_ = 0; - /** - * optional .sonarqube.ws.commons.Severity severity = 3; - */ - public boolean hasSeverity() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional .sonarqube.ws.commons.Severity severity = 3; - */ - public org.sonarqube.ws.Common.Severity getSeverity() { - org.sonarqube.ws.Common.Severity result = org.sonarqube.ws.Common.Severity.valueOf(severity_); - return result == null ? org.sonarqube.ws.Common.Severity.INFO : result; - } - /** - * optional .sonarqube.ws.commons.Severity severity = 3; - */ - public Builder setSeverity(org.sonarqube.ws.Common.Severity value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - severity_ = value.getNumber(); - onChanged(); - return this; - } - /** - * optional .sonarqube.ws.commons.Severity severity = 3; - */ - public Builder clearSeverity() { - bitField0_ = (bitField0_ & ~0x00000004); - severity_ = 0; + bitField0_ |= 0x00400000; + creationDate_ = value; onChanged(); return this; } - private java.lang.Object component_ = ""; + private java.lang.Object updateDate_ = ""; /** - * optional string component = 4; + * optional string updateDate = 24; */ - public boolean hasComponent() { - return ((bitField0_ & 0x00000008) == 0x00000008); + public boolean hasUpdateDate() { + return ((bitField0_ & 0x00800000) == 0x00800000); } /** - * optional string component = 4; + * optional string updateDate = 24; */ - public java.lang.String getComponent() { - java.lang.Object ref = component_; + public java.lang.String getUpdateDate() { + java.lang.Object ref = updateDate_; 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()) { - component_ = s; + updateDate_ = s; } return s; } else { @@ -8557,107 +8942,75 @@ public final class Issues { } } /** - * optional string component = 4; + * optional string updateDate = 24; */ public com.google.protobuf.ByteString - getComponentBytes() { - java.lang.Object ref = component_; + getUpdateDateBytes() { + java.lang.Object ref = updateDate_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - component_ = b; + updateDate_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** - * optional string component = 4; + * optional string updateDate = 24; */ - public Builder setComponent( + public Builder setUpdateDate( java.lang.String value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000008; - component_ = value; + bitField0_ |= 0x00800000; + updateDate_ = value; onChanged(); return this; } /** - * optional string component = 4; + * optional string updateDate = 24; */ - public Builder clearComponent() { - bitField0_ = (bitField0_ & ~0x00000008); - component_ = getDefaultInstance().getComponent(); + public Builder clearUpdateDate() { + bitField0_ = (bitField0_ & ~0x00800000); + updateDate_ = getDefaultInstance().getUpdateDate(); onChanged(); return this; } /** - * optional string component = 4; + * optional string updateDate = 24; */ - public Builder setComponentBytes( + public Builder setUpdateDateBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000008; - component_ = value; - onChanged(); - return this; - } - - private long componentId_ ; - /** - * optional int64 componentId = 5; - */ - public boolean hasComponentId() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - /** - * optional int64 componentId = 5; - */ - public long getComponentId() { - return componentId_; - } - /** - * optional int64 componentId = 5; - */ - public Builder setComponentId(long value) { - bitField0_ |= 0x00000010; - componentId_ = value; - onChanged(); - return this; - } - /** - * optional int64 componentId = 5; - */ - public Builder clearComponentId() { - bitField0_ = (bitField0_ & ~0x00000010); - componentId_ = 0L; + bitField0_ |= 0x00800000; + updateDate_ = value; onChanged(); return this; } - private java.lang.Object project_ = ""; + private java.lang.Object fUpdateAge_ = ""; /** - * optional string project = 6; + * optional string fUpdateAge = 25; */ - public boolean hasProject() { - return ((bitField0_ & 0x00000020) == 0x00000020); + public boolean hasFUpdateAge() { + return ((bitField0_ & 0x01000000) == 0x01000000); } /** - * optional string project = 6; + * optional string fUpdateAge = 25; */ - public java.lang.String getProject() { - java.lang.Object ref = project_; + public java.lang.String getFUpdateAge() { + java.lang.Object ref = fUpdateAge_; 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()) { - project_ = s; + fUpdateAge_ = s; } return s; } else { @@ -8665,75 +9018,75 @@ public final class Issues { } } /** - * optional string project = 6; + * optional string fUpdateAge = 25; */ public com.google.protobuf.ByteString - getProjectBytes() { - java.lang.Object ref = project_; + getFUpdateAgeBytes() { + java.lang.Object ref = fUpdateAge_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - project_ = b; + fUpdateAge_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** - * optional string project = 6; + * optional string fUpdateAge = 25; */ - public Builder setProject( + public Builder setFUpdateAge( java.lang.String value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000020; - project_ = value; + bitField0_ |= 0x01000000; + fUpdateAge_ = value; onChanged(); return this; } /** - * optional string project = 6; + * optional string fUpdateAge = 25; */ - public Builder clearProject() { - bitField0_ = (bitField0_ & ~0x00000020); - project_ = getDefaultInstance().getProject(); + public Builder clearFUpdateAge() { + bitField0_ = (bitField0_ & ~0x01000000); + fUpdateAge_ = getDefaultInstance().getFUpdateAge(); onChanged(); return this; } /** - * optional string project = 6; + * optional string fUpdateAge = 25; */ - public Builder setProjectBytes( + public Builder setFUpdateAgeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); - } - bitField0_ |= 0x00000020; - project_ = value; + } + bitField0_ |= 0x01000000; + fUpdateAge_ = value; onChanged(); return this; } - private java.lang.Object subProject_ = ""; + private java.lang.Object closeDate_ = ""; /** - * optional string subProject = 7; + * optional string closeDate = 26; */ - public boolean hasSubProject() { - return ((bitField0_ & 0x00000040) == 0x00000040); + public boolean hasCloseDate() { + return ((bitField0_ & 0x02000000) == 0x02000000); } /** - * optional string subProject = 7; + * optional string closeDate = 26; */ - public java.lang.String getSubProject() { - java.lang.Object ref = subProject_; + public java.lang.String getCloseDate() { + java.lang.Object ref = closeDate_; 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; + closeDate_ = s; } return s; } else { @@ -8741,1852 +9094,2540 @@ public final class Issues { } } /** - * optional string subProject = 7; + * optional string closeDate = 26; */ public com.google.protobuf.ByteString - getSubProjectBytes() { - java.lang.Object ref = subProject_; + getCloseDateBytes() { + java.lang.Object ref = closeDate_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - subProject_ = b; + closeDate_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** - * optional string subProject = 7; + * optional string closeDate = 26; */ - public Builder setSubProject( + public Builder setCloseDate( java.lang.String value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000040; - subProject_ = value; + bitField0_ |= 0x02000000; + closeDate_ = value; onChanged(); return this; } /** - * optional string subProject = 7; + * optional string closeDate = 26; */ - public Builder clearSubProject() { - bitField0_ = (bitField0_ & ~0x00000040); - subProject_ = getDefaultInstance().getSubProject(); + public Builder clearCloseDate() { + bitField0_ = (bitField0_ & ~0x02000000); + closeDate_ = getDefaultInstance().getCloseDate(); onChanged(); return this; } /** - * optional string subProject = 7; + * optional string closeDate = 26; */ - public Builder setSubProjectBytes( + public Builder setCloseDateBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000040; - subProject_ = value; + bitField0_ |= 0x02000000; + closeDate_ = value; onChanged(); return this; } - private int line_ ; - /** - * optional int32 line = 8; - */ - public boolean hasLine() { - return ((bitField0_ & 0x00000080) == 0x00000080); - } - /** - * optional int32 line = 8; - */ - public int getLine() { - return line_; - } - /** - * optional int32 line = 8; - */ - public Builder setLine(int value) { - bitField0_ |= 0x00000080; - line_ = value; - onChanged(); - return this; - } - /** - * optional int32 line = 8; - */ - public Builder clearLine() { - bitField0_ = (bitField0_ & ~0x00000080); - line_ = 0; - onChanged(); - return this; - } + // @@protoc_insertion_point(builder_scope:sonarqube.ws.issues.Issue) + } - private org.sonarqube.ws.Common.TextRange textRange_ = null; - private com.google.protobuf.SingleFieldBuilder< - org.sonarqube.ws.Common.TextRange, org.sonarqube.ws.Common.TextRange.Builder, org.sonarqube.ws.Common.TextRangeOrBuilder> textRangeBuilder_; - /** - * optional .sonarqube.ws.commons.TextRange textRange = 9; - */ - public boolean hasTextRange() { - return ((bitField0_ & 0x00000100) == 0x00000100); - } - /** - * optional .sonarqube.ws.commons.TextRange textRange = 9; - */ - public org.sonarqube.ws.Common.TextRange getTextRange() { - if (textRangeBuilder_ == null) { - return textRange_ == null ? org.sonarqube.ws.Common.TextRange.getDefaultInstance() : textRange_; - } else { - return textRangeBuilder_.getMessage(); - } - } - /** - * optional .sonarqube.ws.commons.TextRange textRange = 9; - */ - public Builder setTextRange(org.sonarqube.ws.Common.TextRange value) { - if (textRangeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - textRange_ = value; - onChanged(); - } else { - textRangeBuilder_.setMessage(value); - } - bitField0_ |= 0x00000100; - return this; - } - /** - * optional .sonarqube.ws.commons.TextRange textRange = 9; - */ - public Builder setTextRange( - org.sonarqube.ws.Common.TextRange.Builder builderForValue) { - if (textRangeBuilder_ == null) { - textRange_ = builderForValue.build(); - onChanged(); - } else { - textRangeBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000100; - return this; - } - /** - * optional .sonarqube.ws.commons.TextRange textRange = 9; - */ - public Builder mergeTextRange(org.sonarqube.ws.Common.TextRange value) { - if (textRangeBuilder_ == null) { - if (((bitField0_ & 0x00000100) == 0x00000100) && - textRange_ != null && - textRange_ != org.sonarqube.ws.Common.TextRange.getDefaultInstance()) { - textRange_ = - org.sonarqube.ws.Common.TextRange.newBuilder(textRange_).mergeFrom(value).buildPartial(); - } else { - textRange_ = value; + // @@protoc_insertion_point(class_scope:sonarqube.ws.issues.Issue) + private static final org.sonarqube.ws.Issues.Issue DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.sonarqube.ws.Issues.Issue(); + } + + public static org.sonarqube.ws.Issues.Issue getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + public static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public Issue parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + try { + return new Issue(input, extensionRegistry); + } catch (RuntimeException e) { + if (e.getCause() instanceof + com.google.protobuf.InvalidProtocolBufferException) { + throw (com.google.protobuf.InvalidProtocolBufferException) + e.getCause(); } - onChanged(); - } else { - textRangeBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000100; - return this; - } - /** - * optional .sonarqube.ws.commons.TextRange textRange = 9; - */ - public Builder clearTextRange() { - if (textRangeBuilder_ == null) { - textRange_ = null; - onChanged(); - } else { - textRangeBuilder_.clear(); + throw e; } - bitField0_ = (bitField0_ & ~0x00000100); - return this; } - /** - * optional .sonarqube.ws.commons.TextRange textRange = 9; - */ - public org.sonarqube.ws.Common.TextRange.Builder getTextRangeBuilder() { - bitField0_ |= 0x00000100; - onChanged(); - return getTextRangeFieldBuilder().getBuilder(); - } - /** - * optional .sonarqube.ws.commons.TextRange textRange = 9; - */ - public org.sonarqube.ws.Common.TextRangeOrBuilder getTextRangeOrBuilder() { - if (textRangeBuilder_ != null) { - return textRangeBuilder_.getMessageOrBuilder(); - } else { - return textRange_ == null ? - org.sonarqube.ws.Common.TextRange.getDefaultInstance() : textRange_; + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public org.sonarqube.ws.Issues.Issue getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TransitionsOrBuilder extends + // @@protoc_insertion_point(interface_extends:sonarqube.ws.issues.Transitions) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated string transitions = 1; + */ + com.google.protobuf.ProtocolStringList + getTransitionsList(); + /** + * repeated string transitions = 1; + */ + int getTransitionsCount(); + /** + * repeated string transitions = 1; + */ + java.lang.String getTransitions(int index); + /** + * repeated string transitions = 1; + */ + com.google.protobuf.ByteString + getTransitionsBytes(int index); + } + /** + * Protobuf type {@code sonarqube.ws.issues.Transitions} + */ + public static final class Transitions extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:sonarqube.ws.issues.Transitions) + TransitionsOrBuilder { + // Use Transitions.newBuilder() to construct. + private Transitions(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private Transitions() { + transitions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Transitions( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) { + this(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + com.google.protobuf.ByteString bs = input.readBytes(); + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + transitions_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + transitions_.add(bs); + break; + } + } } - } - /** - * optional .sonarqube.ws.commons.TextRange textRange = 9; - */ - private com.google.protobuf.SingleFieldBuilder< - org.sonarqube.ws.Common.TextRange, org.sonarqube.ws.Common.TextRange.Builder, org.sonarqube.ws.Common.TextRangeOrBuilder> - getTextRangeFieldBuilder() { - if (textRangeBuilder_ == null) { - textRangeBuilder_ = new com.google.protobuf.SingleFieldBuilder< - org.sonarqube.ws.Common.TextRange, org.sonarqube.ws.Common.TextRange.Builder, org.sonarqube.ws.Common.TextRangeOrBuilder>( - getTextRange(), - getParentForChildren(), - isClean()); - textRange_ = null; + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw new RuntimeException(e.setUnfinishedMessage(this)); + } catch (java.io.IOException e) { + throw new RuntimeException( + new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this)); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + transitions_ = transitions_.getUnmodifiableView(); } - return textRangeBuilder_; + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Transitions_descriptor; + } - private java.util.List flows_ = - java.util.Collections.emptyList(); - private void ensureFlowsIsMutable() { - if (!((bitField0_ & 0x00000200) == 0x00000200)) { - flows_ = new java.util.ArrayList(flows_); - bitField0_ |= 0x00000200; - } - } + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Transitions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.sonarqube.ws.Issues.Transitions.class, org.sonarqube.ws.Issues.Transitions.Builder.class); + } - private com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.Issues.Flow, org.sonarqube.ws.Issues.Flow.Builder, org.sonarqube.ws.Issues.FlowOrBuilder> flowsBuilder_; + public static final int TRANSITIONS_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList transitions_; + /** + * repeated string transitions = 1; + */ + public com.google.protobuf.ProtocolStringList + getTransitionsList() { + return transitions_; + } + /** + * repeated string transitions = 1; + */ + public int getTransitionsCount() { + return transitions_.size(); + } + /** + * repeated string transitions = 1; + */ + public java.lang.String getTransitions(int index) { + return transitions_.get(index); + } + /** + * repeated string transitions = 1; + */ + public com.google.protobuf.ByteString + getTransitionsBytes(int index) { + return transitions_.getByteString(index); + } - /** - * repeated .sonarqube.ws.issues.Flow flows = 10; - */ - public java.util.List getFlowsList() { - if (flowsBuilder_ == null) { - return java.util.Collections.unmodifiableList(flows_); - } else { - return flowsBuilder_.getMessageList(); - } + 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 { + for (int i = 0; i < transitions_.size(); i++) { + output.writeBytes(1, transitions_.getByteString(i)); } - /** - * repeated .sonarqube.ws.issues.Flow flows = 10; - */ - public int getFlowsCount() { - if (flowsBuilder_ == null) { - return flows_.size(); - } else { - return flowsBuilder_.getCount(); + unknownFields.writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < transitions_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeBytesSizeNoTag(transitions_.getByteString(i)); } + size += dataSize; + size += 1 * getTransitionsList().size(); } - /** - * repeated .sonarqube.ws.issues.Flow flows = 10; - */ - public org.sonarqube.ws.Issues.Flow getFlows(int index) { - if (flowsBuilder_ == null) { - return flows_.get(index); - } else { - return flowsBuilder_.getMessage(index); - } + size += unknownFields.getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + public static org.sonarqube.ws.Issues.Transitions parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.sonarqube.ws.Issues.Transitions 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.Transitions parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.sonarqube.ws.Issues.Transitions parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.sonarqube.ws.Issues.Transitions parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.sonarqube.ws.Issues.Transitions 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.Transitions parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static org.sonarqube.ws.Issues.Transitions 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.Transitions parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.sonarqube.ws.Issues.Transitions parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.sonarqube.ws.Issues.Transitions prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(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.Transitions} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:sonarqube.ws.issues.Transitions) + org.sonarqube.ws.Issues.TransitionsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Transitions_descriptor; } - /** - * repeated .sonarqube.ws.issues.Flow flows = 10; - */ - public Builder setFlows( - int index, org.sonarqube.ws.Issues.Flow value) { - if (flowsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFlowsIsMutable(); - flows_.set(index, value); - onChanged(); - } else { - flowsBuilder_.setMessage(index, value); - } - return this; + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Transitions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.sonarqube.ws.Issues.Transitions.class, org.sonarqube.ws.Issues.Transitions.Builder.class); } - /** - * repeated .sonarqube.ws.issues.Flow flows = 10; - */ - public Builder setFlows( - int index, org.sonarqube.ws.Issues.Flow.Builder builderForValue) { - if (flowsBuilder_ == null) { - ensureFlowsIsMutable(); - flows_.set(index, builderForValue.build()); - onChanged(); - } else { - flowsBuilder_.setMessage(index, builderForValue.build()); - } - return this; + + // Construct using org.sonarqube.ws.Issues.Transitions.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); } - /** - * repeated .sonarqube.ws.issues.Flow flows = 10; - */ - public Builder addFlows(org.sonarqube.ws.Issues.Flow value) { - if (flowsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFlowsIsMutable(); - flows_.add(value); - onChanged(); - } else { - flowsBuilder_.addMessage(value); - } - return this; + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); } - /** - * repeated .sonarqube.ws.issues.Flow flows = 10; - */ - public Builder addFlows( - int index, org.sonarqube.ws.Issues.Flow value) { - if (flowsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFlowsIsMutable(); - flows_.add(index, value); - onChanged(); - } else { - flowsBuilder_.addMessage(index, value); + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } + } + public Builder clear() { + super.clear(); + transitions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); return this; } - /** - * repeated .sonarqube.ws.issues.Flow flows = 10; - */ - public Builder addFlows( - org.sonarqube.ws.Issues.Flow.Builder builderForValue) { - if (flowsBuilder_ == null) { - ensureFlowsIsMutable(); - flows_.add(builderForValue.build()); - onChanged(); - } else { - flowsBuilder_.addMessage(builderForValue.build()); + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Transitions_descriptor; + } + + public org.sonarqube.ws.Issues.Transitions getDefaultInstanceForType() { + return org.sonarqube.ws.Issues.Transitions.getDefaultInstance(); + } + + public org.sonarqube.ws.Issues.Transitions build() { + org.sonarqube.ws.Issues.Transitions result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); } - return this; + return result; } - /** - * repeated .sonarqube.ws.issues.Flow flows = 10; - */ - public Builder addFlows( - int index, org.sonarqube.ws.Issues.Flow.Builder builderForValue) { - if (flowsBuilder_ == null) { - ensureFlowsIsMutable(); - flows_.add(index, builderForValue.build()); - onChanged(); - } else { - flowsBuilder_.addMessage(index, builderForValue.build()); + + public org.sonarqube.ws.Issues.Transitions buildPartial() { + org.sonarqube.ws.Issues.Transitions result = new org.sonarqube.ws.Issues.Transitions(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + transitions_ = transitions_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); } - return this; + result.transitions_ = transitions_; + onBuilt(); + return result; } - /** - * repeated .sonarqube.ws.issues.Flow flows = 10; - */ - public Builder addAllFlows( - java.lang.Iterable values) { - if (flowsBuilder_ == null) { - ensureFlowsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, flows_); - onChanged(); + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.sonarqube.ws.Issues.Transitions) { + return mergeFrom((org.sonarqube.ws.Issues.Transitions)other); } else { - flowsBuilder_.addAllMessages(values); + super.mergeFrom(other); + return this; } - return this; } - /** - * repeated .sonarqube.ws.issues.Flow flows = 10; - */ - public Builder clearFlows() { - if (flowsBuilder_ == null) { - flows_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000200); + + public Builder mergeFrom(org.sonarqube.ws.Issues.Transitions other) { + if (other == org.sonarqube.ws.Issues.Transitions.getDefaultInstance()) return this; + if (!other.transitions_.isEmpty()) { + if (transitions_.isEmpty()) { + transitions_ = other.transitions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTransitionsIsMutable(); + transitions_.addAll(other.transitions_); + } onChanged(); - } else { - flowsBuilder_.clear(); } + this.mergeUnknownFields(other.unknownFields); + onChanged(); return this; } - /** - * repeated .sonarqube.ws.issues.Flow flows = 10; - */ - public Builder removeFlows(int index) { - if (flowsBuilder_ == null) { - ensureFlowsIsMutable(); - flows_.remove(index); - onChanged(); - } else { - flowsBuilder_.remove(index); + + 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.Transitions parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.sonarqube.ws.Issues.Transitions) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } } return this; } - /** - * repeated .sonarqube.ws.issues.Flow flows = 10; - */ - public org.sonarqube.ws.Issues.Flow.Builder getFlowsBuilder( - int index) { - return getFlowsFieldBuilder().getBuilder(index); + private int bitField0_; + + private com.google.protobuf.LazyStringList transitions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureTransitionsIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + transitions_ = new com.google.protobuf.LazyStringArrayList(transitions_); + bitField0_ |= 0x00000001; + } } /** - * repeated .sonarqube.ws.issues.Flow flows = 10; + * repeated string transitions = 1; */ - public org.sonarqube.ws.Issues.FlowOrBuilder getFlowsOrBuilder( - int index) { - if (flowsBuilder_ == null) { - return flows_.get(index); } else { - return flowsBuilder_.getMessageOrBuilder(index); - } + public com.google.protobuf.ProtocolStringList + getTransitionsList() { + return transitions_.getUnmodifiableView(); } /** - * repeated .sonarqube.ws.issues.Flow flows = 10; + * repeated string transitions = 1; */ - public java.util.List - getFlowsOrBuilderList() { - if (flowsBuilder_ != null) { - return flowsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(flows_); - } + public int getTransitionsCount() { + return transitions_.size(); } /** - * repeated .sonarqube.ws.issues.Flow flows = 10; + * repeated string transitions = 1; */ - public org.sonarqube.ws.Issues.Flow.Builder addFlowsBuilder() { - return getFlowsFieldBuilder().addBuilder( - org.sonarqube.ws.Issues.Flow.getDefaultInstance()); + public java.lang.String getTransitions(int index) { + return transitions_.get(index); } /** - * repeated .sonarqube.ws.issues.Flow flows = 10; + * repeated string transitions = 1; */ - public org.sonarqube.ws.Issues.Flow.Builder addFlowsBuilder( - int index) { - return getFlowsFieldBuilder().addBuilder( - index, org.sonarqube.ws.Issues.Flow.getDefaultInstance()); + public com.google.protobuf.ByteString + getTransitionsBytes(int index) { + return transitions_.getByteString(index); } /** - * repeated .sonarqube.ws.issues.Flow flows = 10; + * repeated string transitions = 1; */ - public java.util.List - getFlowsBuilderList() { - return getFlowsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.Issues.Flow, org.sonarqube.ws.Issues.Flow.Builder, org.sonarqube.ws.Issues.FlowOrBuilder> - getFlowsFieldBuilder() { - if (flowsBuilder_ == null) { - flowsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.Issues.Flow, org.sonarqube.ws.Issues.Flow.Builder, org.sonarqube.ws.Issues.FlowOrBuilder>( - flows_, - ((bitField0_ & 0x00000200) == 0x00000200), - getParentForChildren(), - isClean()); - flows_ = null; - } - return flowsBuilder_; + public Builder setTransitions( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTransitionsIsMutable(); + transitions_.set(index, value); + onChanged(); + return this; } - - private java.lang.Object resolution_ = ""; /** - * optional string resolution = 11; + * repeated string transitions = 1; */ - public boolean hasResolution() { - return ((bitField0_ & 0x00000400) == 0x00000400); + public Builder addTransitions( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTransitionsIsMutable(); + transitions_.add(value); + onChanged(); + return this; } /** - * optional string resolution = 11; + * repeated string transitions = 1; */ - public java.lang.String getResolution() { - java.lang.Object ref = resolution_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - resolution_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } + public Builder addAllTransitions( + java.lang.Iterable values) { + ensureTransitionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, transitions_); + onChanged(); + return this; } /** - * optional string resolution = 11; + * repeated string transitions = 1; */ - public com.google.protobuf.ByteString - getResolutionBytes() { - java.lang.Object ref = resolution_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - resolution_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public Builder clearTransitions() { + transitions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; } /** - * optional string resolution = 11; + * repeated string transitions = 1; */ - public Builder setResolution( - java.lang.String value) { + public Builder addTransitionsBytes( + com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000400; - resolution_ = value; + ensureTransitionsIsMutable(); + transitions_.add(value); onChanged(); return this; } - /** - * optional string resolution = 11; - */ - public Builder clearResolution() { - bitField0_ = (bitField0_ & ~0x00000400); - resolution_ = getDefaultInstance().getResolution(); - onChanged(); - return this; + + // @@protoc_insertion_point(builder_scope:sonarqube.ws.issues.Transitions) + } + + // @@protoc_insertion_point(class_scope:sonarqube.ws.issues.Transitions) + private static final org.sonarqube.ws.Issues.Transitions DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.sonarqube.ws.Issues.Transitions(); + } + + public static org.sonarqube.ws.Issues.Transitions getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + public static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public Transitions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + try { + return new Transitions(input, extensionRegistry); + } catch (RuntimeException e) { + if (e.getCause() instanceof + com.google.protobuf.InvalidProtocolBufferException) { + throw (com.google.protobuf.InvalidProtocolBufferException) + e.getCause(); + } + throw e; + } + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public org.sonarqube.ws.Issues.Transitions getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ActionsOrBuilder extends + // @@protoc_insertion_point(interface_extends:sonarqube.ws.issues.Actions) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated string actions = 1; + */ + com.google.protobuf.ProtocolStringList + getActionsList(); + /** + * repeated string actions = 1; + */ + int getActionsCount(); + /** + * repeated string actions = 1; + */ + java.lang.String getActions(int index); + /** + * repeated string actions = 1; + */ + com.google.protobuf.ByteString + getActionsBytes(int index); + } + /** + * Protobuf type {@code sonarqube.ws.issues.Actions} + */ + public static final class Actions extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:sonarqube.ws.issues.Actions) + ActionsOrBuilder { + // Use Actions.newBuilder() to construct. + private Actions(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private Actions() { + actions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Actions( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) { + this(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + com.google.protobuf.ByteString bs = input.readBytes(); + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + actions_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + actions_.add(bs); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw new RuntimeException(e.setUnfinishedMessage(this)); + } catch (java.io.IOException e) { + throw new RuntimeException( + new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this)); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + actions_ = actions_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Actions_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Actions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.sonarqube.ws.Issues.Actions.class, org.sonarqube.ws.Issues.Actions.Builder.class); + } + + public static final int ACTIONS_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList actions_; + /** + * repeated string actions = 1; + */ + public com.google.protobuf.ProtocolStringList + getActionsList() { + return actions_; + } + /** + * repeated string actions = 1; + */ + public int getActionsCount() { + return actions_.size(); + } + /** + * repeated string actions = 1; + */ + public java.lang.String getActions(int index) { + return actions_.get(index); + } + /** + * repeated string actions = 1; + */ + public com.google.protobuf.ByteString + getActionsBytes(int index) { + return actions_.getByteString(index); + } + + 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 { + for (int i = 0; i < actions_.size(); i++) { + output.writeBytes(1, actions_.getByteString(i)); + } + unknownFields.writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < actions_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeBytesSizeNoTag(actions_.getByteString(i)); + } + size += dataSize; + size += 1 * getActionsList().size(); + } + size += unknownFields.getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + public static org.sonarqube.ws.Issues.Actions parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.sonarqube.ws.Issues.Actions 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.Actions parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.sonarqube.ws.Issues.Actions parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.sonarqube.ws.Issues.Actions parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.sonarqube.ws.Issues.Actions 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.Actions parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static org.sonarqube.ws.Issues.Actions 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.Actions parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.sonarqube.ws.Issues.Actions parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.sonarqube.ws.Issues.Actions prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(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.Actions} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:sonarqube.ws.issues.Actions) + org.sonarqube.ws.Issues.ActionsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Actions_descriptor; } - /** - * optional string resolution = 11; - */ - public Builder setResolutionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000400; - resolution_ = value; - onChanged(); - return this; + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Actions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.sonarqube.ws.Issues.Actions.class, org.sonarqube.ws.Issues.Actions.Builder.class); } - private java.lang.Object status_ = ""; - /** - * optional string status = 12; - */ - public boolean hasStatus() { - return ((bitField0_ & 0x00000800) == 0x00000800); + // Construct using org.sonarqube.ws.Issues.Actions.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); } - /** - * optional string status = 12; - */ - public java.lang.String getStatus() { - java.lang.Object ref = status_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - status_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); } - /** - * optional string status = 12; - */ - public com.google.protobuf.ByteString - getStatusBytes() { - java.lang.Object ref = status_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - status_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } - /** - * optional string status = 12; - */ - public Builder setStatus( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000800; - status_ = value; - onChanged(); + public Builder clear() { + super.clear(); + actions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); return this; } - /** - * optional string status = 12; - */ - public Builder clearStatus() { - bitField0_ = (bitField0_ & ~0x00000800); - status_ = getDefaultInstance().getStatus(); - onChanged(); - return this; + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Actions_descriptor; } - /** - * optional string status = 12; - */ - public Builder setStatusBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000800; - status_ = value; - onChanged(); - return this; + + public org.sonarqube.ws.Issues.Actions getDefaultInstanceForType() { + return org.sonarqube.ws.Issues.Actions.getDefaultInstance(); } - private java.lang.Object message_ = ""; - /** - * optional string message = 13; - */ - public boolean hasMessage() { - return ((bitField0_ & 0x00001000) == 0x00001000); + public org.sonarqube.ws.Issues.Actions build() { + org.sonarqube.ws.Issues.Actions result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; } - /** - * optional string message = 13; - */ - public java.lang.String getMessage() { - java.lang.Object ref = message_; - 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()) { - message_ = s; - } - return s; - } else { - return (java.lang.String) ref; + + public org.sonarqube.ws.Issues.Actions buildPartial() { + org.sonarqube.ws.Issues.Actions result = new org.sonarqube.ws.Issues.Actions(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + actions_ = actions_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); } + result.actions_ = actions_; + onBuilt(); + return result; } - /** - * optional string message = 13; - */ - public com.google.protobuf.ByteString - getMessageBytes() { - java.lang.Object ref = message_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - message_ = b; - return b; + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.sonarqube.ws.Issues.Actions) { + return mergeFrom((org.sonarqube.ws.Issues.Actions)other); } else { - return (com.google.protobuf.ByteString) ref; + super.mergeFrom(other); + return this; } } - /** - * optional string message = 13; - */ - public Builder setMessage( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00001000; - message_ = value; - onChanged(); - return this; - } - /** - * optional string message = 13; - */ - public Builder clearMessage() { - bitField0_ = (bitField0_ & ~0x00001000); - message_ = getDefaultInstance().getMessage(); - onChanged(); - return this; - } - /** - * optional string message = 13; - */ - public Builder setMessageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00001000; - message_ = value; - onChanged(); - return this; - } - private java.lang.Object debt_ = ""; - /** - * optional string debt = 14; - */ - public boolean hasDebt() { - return ((bitField0_ & 0x00002000) == 0x00002000); - } - /** - * optional string debt = 14; - */ - public java.lang.String getDebt() { - java.lang.Object ref = debt_; - 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()) { - debt_ = s; + public Builder mergeFrom(org.sonarqube.ws.Issues.Actions other) { + if (other == org.sonarqube.ws.Issues.Actions.getDefaultInstance()) return this; + if (!other.actions_.isEmpty()) { + if (actions_.isEmpty()) { + actions_ = other.actions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureActionsIsMutable(); + actions_.addAll(other.actions_); } - return s; - } else { - return (java.lang.String) ref; + onChanged(); } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; } - /** - * optional string debt = 14; - */ - public com.google.protobuf.ByteString - getDebtBytes() { - java.lang.Object ref = debt_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - debt_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + + public final boolean isInitialized() { + return true; } - /** - * optional string debt = 14; - */ - public Builder setDebt( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00002000; - debt_ = value; - onChanged(); + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.sonarqube.ws.Issues.Actions parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.sonarqube.ws.Issues.Actions) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } return this; } - /** - * optional string debt = 14; - */ - public Builder clearDebt() { - bitField0_ = (bitField0_ & ~0x00002000); - debt_ = getDefaultInstance().getDebt(); - onChanged(); - return this; + private int bitField0_; + + private com.google.protobuf.LazyStringList actions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureActionsIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + actions_ = new com.google.protobuf.LazyStringArrayList(actions_); + bitField0_ |= 0x00000001; + } } /** - * optional string debt = 14; + * repeated string actions = 1; */ - public Builder setDebtBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00002000; - debt_ = value; - onChanged(); - return this; + public com.google.protobuf.ProtocolStringList + getActionsList() { + return actions_.getUnmodifiableView(); } - - private java.lang.Object assignee_ = ""; /** - * optional string assignee = 15; + * repeated string actions = 1; */ - public boolean hasAssignee() { - return ((bitField0_ & 0x00004000) == 0x00004000); + public int getActionsCount() { + return actions_.size(); } /** - * optional string assignee = 15; + * repeated string actions = 1; */ - public java.lang.String getAssignee() { - java.lang.Object ref = assignee_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - assignee_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } + public java.lang.String getActions(int index) { + return actions_.get(index); } /** - * optional string assignee = 15; + * repeated string actions = 1; */ public com.google.protobuf.ByteString - getAssigneeBytes() { - java.lang.Object ref = assignee_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - assignee_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + getActionsBytes(int index) { + return actions_.getByteString(index); } /** - * optional string assignee = 15; + * repeated string actions = 1; */ - public Builder setAssignee( - java.lang.String value) { + public Builder setActions( + int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00004000; - assignee_ = value; - onChanged(); - return this; - } - /** - * optional string assignee = 15; - */ - public Builder clearAssignee() { - bitField0_ = (bitField0_ & ~0x00004000); - assignee_ = getDefaultInstance().getAssignee(); + ensureActionsIsMutable(); + actions_.set(index, value); onChanged(); return this; } /** - * optional string assignee = 15; + * repeated string actions = 1; */ - public Builder setAssigneeBytes( - com.google.protobuf.ByteString value) { + public Builder addActions( + java.lang.String value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00004000; - assignee_ = value; + ensureActionsIsMutable(); + actions_.add(value); onChanged(); return this; } - - private java.lang.Object reporter_ = ""; - /** - * optional string reporter = 16; - */ - public boolean hasReporter() { - return ((bitField0_ & 0x00008000) == 0x00008000); - } - /** - * optional string reporter = 16; - */ - public java.lang.String getReporter() { - java.lang.Object ref = reporter_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - reporter_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } /** - * optional string reporter = 16; - */ - public com.google.protobuf.ByteString - getReporterBytes() { - java.lang.Object ref = reporter_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - reporter_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string reporter = 16; + * repeated string actions = 1; */ - public Builder setReporter( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00008000; - reporter_ = value; + public Builder addAllActions( + java.lang.Iterable values) { + ensureActionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, actions_); onChanged(); return this; } /** - * optional string reporter = 16; + * repeated string actions = 1; */ - public Builder clearReporter() { - bitField0_ = (bitField0_ & ~0x00008000); - reporter_ = getDefaultInstance().getReporter(); + public Builder clearActions() { + actions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** - * optional string reporter = 16; + * repeated string actions = 1; */ - public Builder setReporterBytes( + public Builder addActionsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00008000; - reporter_ = value; + ensureActionsIsMutable(); + actions_.add(value); onChanged(); return this; } - private java.lang.Object author_ = ""; - /** - * optional string author = 17; - * - *
-       * SCM login of the committer who introduced the issue
-       * 
- */ - public boolean hasAuthor() { - return ((bitField0_ & 0x00010000) == 0x00010000); + // @@protoc_insertion_point(builder_scope:sonarqube.ws.issues.Actions) + } + + // @@protoc_insertion_point(class_scope:sonarqube.ws.issues.Actions) + private static final org.sonarqube.ws.Issues.Actions DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.sonarqube.ws.Issues.Actions(); + } + + public static org.sonarqube.ws.Issues.Actions getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + public static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public Actions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + try { + return new Actions(input, extensionRegistry); + } catch (RuntimeException e) { + if (e.getCause() instanceof + com.google.protobuf.InvalidProtocolBufferException) { + throw (com.google.protobuf.InvalidProtocolBufferException) + e.getCause(); + } + throw e; + } } - /** - * optional string author = 17; - * - *
-       * SCM login of the committer who introduced the issue
-       * 
- */ - public java.lang.String getAuthor() { - java.lang.Object ref = author_; - 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()) { - author_ = s; + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public org.sonarqube.ws.Issues.Actions getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface FlowOrBuilder extends + // @@protoc_insertion_point(interface_extends:sonarqube.ws.issues.Flow) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .sonarqube.ws.issues.Location locations = 1; + */ + java.util.List + getLocationsList(); + /** + * repeated .sonarqube.ws.issues.Location locations = 1; + */ + org.sonarqube.ws.Issues.Location getLocations(int index); + /** + * repeated .sonarqube.ws.issues.Location locations = 1; + */ + int getLocationsCount(); + /** + * repeated .sonarqube.ws.issues.Location locations = 1; + */ + java.util.List + getLocationsOrBuilderList(); + /** + * repeated .sonarqube.ws.issues.Location locations = 1; + */ + org.sonarqube.ws.Issues.LocationOrBuilder getLocationsOrBuilder( + int index); + } + /** + * Protobuf type {@code sonarqube.ws.issues.Flow} + */ + public static final class Flow extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:sonarqube.ws.issues.Flow) + FlowOrBuilder { + // Use Flow.newBuilder() to construct. + private Flow(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private Flow() { + locations_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Flow( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) { + this(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + locations_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + locations_.add(input.readMessage(org.sonarqube.ws.Issues.Location.PARSER, extensionRegistry)); + break; + } } - return s; - } else { - return (java.lang.String) ref; } - } - /** - * optional string author = 17; - * - *
-       * SCM login of the committer who introduced the issue
-       * 
- */ - public com.google.protobuf.ByteString - getAuthorBytes() { - java.lang.Object ref = author_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - author_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw new RuntimeException(e.setUnfinishedMessage(this)); + } catch (java.io.IOException e) { + throw new RuntimeException( + new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this)); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + locations_ = java.util.Collections.unmodifiableList(locations_); } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); } - /** - * optional string author = 17; - * - *
-       * SCM login of the committer who introduced the issue
-       * 
- */ - public Builder setAuthor( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00010000; - author_ = value; - onChanged(); - return this; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Flow_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Flow_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.sonarqube.ws.Issues.Flow.class, org.sonarqube.ws.Issues.Flow.Builder.class); + } + + public static final int LOCATIONS_FIELD_NUMBER = 1; + private java.util.List locations_; + /** + * repeated .sonarqube.ws.issues.Location locations = 1; + */ + public java.util.List getLocationsList() { + return locations_; + } + /** + * repeated .sonarqube.ws.issues.Location locations = 1; + */ + public java.util.List + getLocationsOrBuilderList() { + return locations_; + } + /** + * repeated .sonarqube.ws.issues.Location locations = 1; + */ + public int getLocationsCount() { + return locations_.size(); + } + /** + * repeated .sonarqube.ws.issues.Location locations = 1; + */ + public org.sonarqube.ws.Issues.Location getLocations(int index) { + return locations_.get(index); + } + /** + * repeated .sonarqube.ws.issues.Location locations = 1; + */ + public org.sonarqube.ws.Issues.LocationOrBuilder getLocationsOrBuilder( + int index) { + return locations_.get(index); + } + + 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 { + for (int i = 0; i < locations_.size(); i++) { + output.writeMessage(1, locations_.get(i)); + } + unknownFields.writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < locations_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, locations_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + public static org.sonarqube.ws.Issues.Flow parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.sonarqube.ws.Issues.Flow 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.Flow parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.sonarqube.ws.Issues.Flow parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.sonarqube.ws.Issues.Flow parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.sonarqube.ws.Issues.Flow 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.Flow parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static org.sonarqube.ws.Issues.Flow 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.Flow parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.sonarqube.ws.Issues.Flow parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.sonarqube.ws.Issues.Flow prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(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.Flow} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:sonarqube.ws.issues.Flow) + org.sonarqube.ws.Issues.FlowOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Flow_descriptor; } - /** - * optional string author = 17; - * - *
-       * SCM login of the committer who introduced the issue
-       * 
- */ - public Builder clearAuthor() { - bitField0_ = (bitField0_ & ~0x00010000); - author_ = getDefaultInstance().getAuthor(); - onChanged(); - return this; + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Flow_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.sonarqube.ws.Issues.Flow.class, org.sonarqube.ws.Issues.Flow.Builder.class); } - /** - * optional string author = 17; - * - *
-       * SCM login of the committer who introduced the issue
-       * 
- */ - public Builder setAuthorBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00010000; - author_ = value; - onChanged(); - return this; + + // Construct using org.sonarqube.ws.Issues.Flow.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); } - private java.lang.Object actionPlan_ = ""; - /** - * optional string actionPlan = 18; - */ - public boolean hasActionPlan() { - return ((bitField0_ & 0x00020000) == 0x00020000); + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); } - /** - * optional string actionPlan = 18; - */ - public java.lang.String getActionPlan() { - java.lang.Object ref = actionPlan_; - 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()) { - actionPlan_ = s; - } - return s; - } else { - return (java.lang.String) ref; + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + getLocationsFieldBuilder(); } } - /** - * optional string actionPlan = 18; - */ - public com.google.protobuf.ByteString - getActionPlanBytes() { - java.lang.Object ref = actionPlan_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - actionPlan_ = b; - return b; + public Builder clear() { + super.clear(); + if (locationsBuilder_ == null) { + locations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); } else { - return (com.google.protobuf.ByteString) ref; + locationsBuilder_.clear(); } - } - /** - * optional string actionPlan = 18; - */ - public Builder setActionPlan( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00020000; - actionPlan_ = value; - onChanged(); return this; } - /** - * optional string actionPlan = 18; - */ - public Builder clearActionPlan() { - bitField0_ = (bitField0_ & ~0x00020000); - actionPlan_ = getDefaultInstance().getActionPlan(); - onChanged(); - return this; + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Flow_descriptor; } - /** - * optional string actionPlan = 18; - */ - public Builder setActionPlanBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00020000; - actionPlan_ = value; - onChanged(); - return this; + + public org.sonarqube.ws.Issues.Flow getDefaultInstanceForType() { + return org.sonarqube.ws.Issues.Flow.getDefaultInstance(); } - private boolean tagsPresentIfEmpty_ ; - /** - * optional bool tagsPresentIfEmpty = 19; - */ - public boolean hasTagsPresentIfEmpty() { - return ((bitField0_ & 0x00040000) == 0x00040000); + public org.sonarqube.ws.Issues.Flow build() { + org.sonarqube.ws.Issues.Flow result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; } - /** - * optional bool tagsPresentIfEmpty = 19; - */ - public boolean getTagsPresentIfEmpty() { - return tagsPresentIfEmpty_; + + public org.sonarqube.ws.Issues.Flow buildPartial() { + org.sonarqube.ws.Issues.Flow result = new org.sonarqube.ws.Issues.Flow(this); + int from_bitField0_ = bitField0_; + if (locationsBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + locations_ = java.util.Collections.unmodifiableList(locations_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.locations_ = locations_; + } else { + result.locations_ = locationsBuilder_.build(); + } + onBuilt(); + return result; } - /** - * optional bool tagsPresentIfEmpty = 19; - */ - public Builder setTagsPresentIfEmpty(boolean value) { - bitField0_ |= 0x00040000; - tagsPresentIfEmpty_ = value; - onChanged(); - return this; + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.sonarqube.ws.Issues.Flow) { + return mergeFrom((org.sonarqube.ws.Issues.Flow)other); + } else { + super.mergeFrom(other); + return this; + } } - /** - * optional bool tagsPresentIfEmpty = 19; - */ - public Builder clearTagsPresentIfEmpty() { - bitField0_ = (bitField0_ & ~0x00040000); - tagsPresentIfEmpty_ = false; + + public Builder mergeFrom(org.sonarqube.ws.Issues.Flow other) { + if (other == org.sonarqube.ws.Issues.Flow.getDefaultInstance()) return this; + if (locationsBuilder_ == null) { + if (!other.locations_.isEmpty()) { + if (locations_.isEmpty()) { + locations_ = other.locations_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureLocationsIsMutable(); + locations_.addAll(other.locations_); + } + onChanged(); + } + } else { + if (!other.locations_.isEmpty()) { + if (locationsBuilder_.isEmpty()) { + locationsBuilder_.dispose(); + locationsBuilder_ = null; + locations_ = other.locations_; + bitField0_ = (bitField0_ & ~0x00000001); + locationsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getLocationsFieldBuilder() : null; + } else { + locationsBuilder_.addAllMessages(other.locations_); + } + } + } + this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } - private com.google.protobuf.LazyStringList tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureTagsIsMutable() { - if (!((bitField0_ & 0x00080000) == 0x00080000)) { - tags_ = new com.google.protobuf.LazyStringArrayList(tags_); - bitField0_ |= 0x00080000; - } - } - /** - * repeated string tags = 20; - */ - public com.google.protobuf.ProtocolStringList - getTagsList() { - return tags_.getUnmodifiableView(); - } - /** - * repeated string tags = 20; - */ - public int getTagsCount() { - return tags_.size(); - } - /** - * repeated string tags = 20; - */ - public java.lang.String getTags(int index) { - return tags_.get(index); - } - /** - * repeated string tags = 20; - */ - public com.google.protobuf.ByteString - getTagsBytes(int index) { - return tags_.getByteString(index); - } - /** - * repeated string tags = 20; - */ - public Builder setTags( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTagsIsMutable(); - tags_.set(index, value); - onChanged(); - return this; + public final boolean isInitialized() { + return true; } - /** - * repeated string tags = 20; - */ - public Builder addTags( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTagsIsMutable(); - tags_.add(value); - onChanged(); + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.sonarqube.ws.Issues.Flow parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.sonarqube.ws.Issues.Flow) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } return this; } - /** - * repeated string tags = 20; - */ - public Builder addAllTags( - java.lang.Iterable values) { - ensureTagsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, tags_); - onChanged(); - return this; + private int bitField0_; + + private java.util.List locations_ = + java.util.Collections.emptyList(); + private void ensureLocationsIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + locations_ = new java.util.ArrayList(locations_); + bitField0_ |= 0x00000001; + } } + + private com.google.protobuf.RepeatedFieldBuilder< + org.sonarqube.ws.Issues.Location, org.sonarqube.ws.Issues.Location.Builder, org.sonarqube.ws.Issues.LocationOrBuilder> locationsBuilder_; + /** - * repeated string tags = 20; + * repeated .sonarqube.ws.issues.Location locations = 1; */ - public Builder clearTags() { - tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00080000); - onChanged(); - return this; + public java.util.List getLocationsList() { + if (locationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(locations_); + } else { + return locationsBuilder_.getMessageList(); + } } /** - * repeated string tags = 20; + * repeated .sonarqube.ws.issues.Location locations = 1; */ - public Builder addTagsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTagsIsMutable(); - tags_.add(value); - onChanged(); - return this; + public int getLocationsCount() { + if (locationsBuilder_ == null) { + return locations_.size(); + } else { + return locationsBuilder_.getCount(); + } } - - private boolean transitionsPresentIfEmpty_ ; /** - * optional bool transitionsPresentIfEmpty = 21; - * - *
-       * the transitions allowed for the requesting user.
-       * 
+ * repeated .sonarqube.ws.issues.Location locations = 1; */ - public boolean hasTransitionsPresentIfEmpty() { - return ((bitField0_ & 0x00100000) == 0x00100000); + public org.sonarqube.ws.Issues.Location getLocations(int index) { + if (locationsBuilder_ == null) { + return locations_.get(index); + } else { + return locationsBuilder_.getMessage(index); + } } /** - * optional bool transitionsPresentIfEmpty = 21; - * - *
-       * the transitions allowed for the requesting user.
-       * 
+ * repeated .sonarqube.ws.issues.Location locations = 1; */ - public boolean getTransitionsPresentIfEmpty() { - return transitionsPresentIfEmpty_; + public Builder setLocations( + int index, org.sonarqube.ws.Issues.Location value) { + if (locationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLocationsIsMutable(); + locations_.set(index, value); + onChanged(); + } else { + locationsBuilder_.setMessage(index, value); + } + return this; } /** - * optional bool transitionsPresentIfEmpty = 21; - * - *
-       * the transitions allowed for the requesting user.
-       * 
+ * repeated .sonarqube.ws.issues.Location locations = 1; */ - public Builder setTransitionsPresentIfEmpty(boolean value) { - bitField0_ |= 0x00100000; - transitionsPresentIfEmpty_ = value; - onChanged(); + public Builder setLocations( + int index, org.sonarqube.ws.Issues.Location.Builder builderForValue) { + if (locationsBuilder_ == null) { + ensureLocationsIsMutable(); + locations_.set(index, builderForValue.build()); + onChanged(); + } else { + locationsBuilder_.setMessage(index, builderForValue.build()); + } return this; } /** - * optional bool transitionsPresentIfEmpty = 21; - * - *
-       * the transitions allowed for the requesting user.
-       * 
+ * repeated .sonarqube.ws.issues.Location locations = 1; */ - public Builder clearTransitionsPresentIfEmpty() { - bitField0_ = (bitField0_ & ~0x00100000); - transitionsPresentIfEmpty_ = false; - onChanged(); + public Builder addLocations(org.sonarqube.ws.Issues.Location value) { + if (locationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLocationsIsMutable(); + locations_.add(value); + onChanged(); + } else { + locationsBuilder_.addMessage(value); + } return this; } - - private com.google.protobuf.LazyStringList transitions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureTransitionsIsMutable() { - if (!((bitField0_ & 0x00200000) == 0x00200000)) { - transitions_ = new com.google.protobuf.LazyStringArrayList(transitions_); - bitField0_ |= 0x00200000; - } - } /** - * repeated string transitions = 22; + * repeated .sonarqube.ws.issues.Location locations = 1; */ - public com.google.protobuf.ProtocolStringList - getTransitionsList() { - return transitions_.getUnmodifiableView(); + public Builder addLocations( + int index, org.sonarqube.ws.Issues.Location value) { + if (locationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLocationsIsMutable(); + locations_.add(index, value); + onChanged(); + } else { + locationsBuilder_.addMessage(index, value); + } + return this; } /** - * repeated string transitions = 22; + * repeated .sonarqube.ws.issues.Location locations = 1; */ - public int getTransitionsCount() { - return transitions_.size(); + public Builder addLocations( + org.sonarqube.ws.Issues.Location.Builder builderForValue) { + if (locationsBuilder_ == null) { + ensureLocationsIsMutable(); + locations_.add(builderForValue.build()); + onChanged(); + } else { + locationsBuilder_.addMessage(builderForValue.build()); + } + return this; } /** - * repeated string transitions = 22; + * repeated .sonarqube.ws.issues.Location locations = 1; */ - public java.lang.String getTransitions(int index) { - return transitions_.get(index); + public Builder addLocations( + int index, org.sonarqube.ws.Issues.Location.Builder builderForValue) { + if (locationsBuilder_ == null) { + ensureLocationsIsMutable(); + locations_.add(index, builderForValue.build()); + onChanged(); + } else { + locationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; } /** - * repeated string transitions = 22; + * repeated .sonarqube.ws.issues.Location locations = 1; */ - public com.google.protobuf.ByteString - getTransitionsBytes(int index) { - return transitions_.getByteString(index); + public Builder addAllLocations( + java.lang.Iterable values) { + if (locationsBuilder_ == null) { + ensureLocationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, locations_); + onChanged(); + } else { + locationsBuilder_.addAllMessages(values); + } + return this; } /** - * repeated string transitions = 22; + * repeated .sonarqube.ws.issues.Location locations = 1; */ - public Builder setTransitions( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTransitionsIsMutable(); - transitions_.set(index, value); - onChanged(); + public Builder clearLocations() { + if (locationsBuilder_ == null) { + locations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + locationsBuilder_.clear(); + } return this; } /** - * repeated string transitions = 22; + * repeated .sonarqube.ws.issues.Location locations = 1; */ - public Builder addTransitions( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTransitionsIsMutable(); - transitions_.add(value); - onChanged(); + public Builder removeLocations(int index) { + if (locationsBuilder_ == null) { + ensureLocationsIsMutable(); + locations_.remove(index); + onChanged(); + } else { + locationsBuilder_.remove(index); + } return this; } /** - * repeated string transitions = 22; + * repeated .sonarqube.ws.issues.Location locations = 1; */ - public Builder addAllTransitions( - java.lang.Iterable values) { - ensureTransitionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, transitions_); - onChanged(); - return this; + public org.sonarqube.ws.Issues.Location.Builder getLocationsBuilder( + int index) { + return getLocationsFieldBuilder().getBuilder(index); } /** - * repeated string transitions = 22; + * repeated .sonarqube.ws.issues.Location locations = 1; */ - public Builder clearTransitions() { - transitions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00200000); - onChanged(); - return this; + public org.sonarqube.ws.Issues.LocationOrBuilder getLocationsOrBuilder( + int index) { + if (locationsBuilder_ == null) { + return locations_.get(index); } else { + return locationsBuilder_.getMessageOrBuilder(index); + } } /** - * repeated string transitions = 22; - */ - public Builder addTransitionsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTransitionsIsMutable(); - transitions_.add(value); - onChanged(); - return this; + * repeated .sonarqube.ws.issues.Location locations = 1; + */ + public java.util.List + getLocationsOrBuilderList() { + if (locationsBuilder_ != null) { + return locationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(locations_); + } } - - private boolean actionsPresentIfEmpty_ ; /** - * optional bool actionsPresentIfEmpty = 23; - * - *
-       * the actions allowed for the requesting user.
-       * 
+ * repeated .sonarqube.ws.issues.Location locations = 1; */ - public boolean hasActionsPresentIfEmpty() { - return ((bitField0_ & 0x00400000) == 0x00400000); + public org.sonarqube.ws.Issues.Location.Builder addLocationsBuilder() { + return getLocationsFieldBuilder().addBuilder( + org.sonarqube.ws.Issues.Location.getDefaultInstance()); } /** - * optional bool actionsPresentIfEmpty = 23; - * - *
-       * the actions allowed for the requesting user.
-       * 
+ * repeated .sonarqube.ws.issues.Location locations = 1; */ - public boolean getActionsPresentIfEmpty() { - return actionsPresentIfEmpty_; + public org.sonarqube.ws.Issues.Location.Builder addLocationsBuilder( + int index) { + return getLocationsFieldBuilder().addBuilder( + index, org.sonarqube.ws.Issues.Location.getDefaultInstance()); } /** - * optional bool actionsPresentIfEmpty = 23; - * - *
-       * the actions allowed for the requesting user.
-       * 
+ * repeated .sonarqube.ws.issues.Location locations = 1; */ - public Builder setActionsPresentIfEmpty(boolean value) { - bitField0_ |= 0x00400000; - actionsPresentIfEmpty_ = value; - onChanged(); - return this; + public java.util.List + getLocationsBuilderList() { + return getLocationsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + org.sonarqube.ws.Issues.Location, org.sonarqube.ws.Issues.Location.Builder, org.sonarqube.ws.Issues.LocationOrBuilder> + getLocationsFieldBuilder() { + if (locationsBuilder_ == null) { + locationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + org.sonarqube.ws.Issues.Location, org.sonarqube.ws.Issues.Location.Builder, org.sonarqube.ws.Issues.LocationOrBuilder>( + locations_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + locations_ = null; + } + return locationsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:sonarqube.ws.issues.Flow) + } + + // @@protoc_insertion_point(class_scope:sonarqube.ws.issues.Flow) + private static final org.sonarqube.ws.Issues.Flow DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.sonarqube.ws.Issues.Flow(); + } + + public static org.sonarqube.ws.Issues.Flow getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + public static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public Flow parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + try { + return new Flow(input, extensionRegistry); + } catch (RuntimeException e) { + if (e.getCause() instanceof + com.google.protobuf.InvalidProtocolBufferException) { + throw (com.google.protobuf.InvalidProtocolBufferException) + e.getCause(); + } + throw e; + } + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public org.sonarqube.ws.Issues.Flow getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface LocationOrBuilder extends + // @@protoc_insertion_point(interface_extends:sonarqube.ws.issues.Location) + com.google.protobuf.MessageOrBuilder { + + /** + * optional string componentId = 1; + */ + boolean hasComponentId(); + /** + * optional string componentId = 1; + */ + java.lang.String getComponentId(); + /** + * optional string componentId = 1; + */ + com.google.protobuf.ByteString + getComponentIdBytes(); + + /** + * optional .sonarqube.ws.commons.TextRange textRange = 2; + * + *
+     * Only when component is a file. Can be empty for a file if this is an issue global to the file.
+     * 
+ */ + boolean hasTextRange(); + /** + * optional .sonarqube.ws.commons.TextRange textRange = 2; + * + *
+     * Only when component is a file. Can be empty for a file if this is an issue global to the file.
+     * 
+ */ + org.sonarqube.ws.Common.TextRange getTextRange(); + /** + * optional .sonarqube.ws.commons.TextRange textRange = 2; + * + *
+     * Only when component is a file. Can be empty for a file if this is an issue global to the file.
+     * 
+ */ + org.sonarqube.ws.Common.TextRangeOrBuilder getTextRangeOrBuilder(); + + /** + * optional string msg = 3; + */ + boolean hasMsg(); + /** + * optional string msg = 3; + */ + java.lang.String getMsg(); + /** + * optional string msg = 3; + */ + com.google.protobuf.ByteString + getMsgBytes(); + } + /** + * Protobuf type {@code sonarqube.ws.issues.Location} + */ + public static final class Location extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:sonarqube.ws.issues.Location) + LocationOrBuilder { + // Use Location.newBuilder() to construct. + private Location(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private Location() { + componentId_ = ""; + msg_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Location( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) { + this(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000001; + componentId_ = bs; + break; + } + case 18: { + org.sonarqube.ws.Common.TextRange.Builder subBuilder = null; + if (((bitField0_ & 0x00000002) == 0x00000002)) { + subBuilder = textRange_.toBuilder(); + } + textRange_ = input.readMessage(org.sonarqube.ws.Common.TextRange.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(textRange_); + textRange_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000002; + break; + } + case 26: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000004; + msg_ = bs; + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw new RuntimeException(e.setUnfinishedMessage(this)); + } catch (java.io.IOException e) { + throw new RuntimeException( + new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this)); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Location_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Location_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.sonarqube.ws.Issues.Location.class, org.sonarqube.ws.Issues.Location.Builder.class); + } + + private int bitField0_; + public static final int COMPONENTID_FIELD_NUMBER = 1; + private volatile java.lang.Object componentId_; + /** + * optional string componentId = 1; + */ + public boolean hasComponentId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional string componentId = 1; + */ + public java.lang.String getComponentId() { + java.lang.Object ref = componentId_; + 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()) { + componentId_ = s; + } + return s; } - /** - * optional bool actionsPresentIfEmpty = 23; - * - *
-       * the actions allowed for the requesting user.
-       * 
- */ - public Builder clearActionsPresentIfEmpty() { - bitField0_ = (bitField0_ & ~0x00400000); - actionsPresentIfEmpty_ = false; - onChanged(); - return this; + } + /** + * optional string componentId = 1; + */ + public com.google.protobuf.ByteString + getComponentIdBytes() { + java.lang.Object ref = componentId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + componentId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } + } - private com.google.protobuf.LazyStringList actions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureActionsIsMutable() { - if (!((bitField0_ & 0x00800000) == 0x00800000)) { - actions_ = new com.google.protobuf.LazyStringArrayList(actions_); - bitField0_ |= 0x00800000; - } + public static final int TEXTRANGE_FIELD_NUMBER = 2; + private org.sonarqube.ws.Common.TextRange textRange_; + /** + * optional .sonarqube.ws.commons.TextRange textRange = 2; + * + *
+     * Only when component is a file. Can be empty for a file if this is an issue global to the file.
+     * 
+ */ + public boolean hasTextRange() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional .sonarqube.ws.commons.TextRange textRange = 2; + * + *
+     * Only when component is a file. Can be empty for a file if this is an issue global to the file.
+     * 
+ */ + public org.sonarqube.ws.Common.TextRange getTextRange() { + return textRange_ == null ? org.sonarqube.ws.Common.TextRange.getDefaultInstance() : textRange_; + } + /** + * optional .sonarqube.ws.commons.TextRange textRange = 2; + * + *
+     * Only when component is a file. Can be empty for a file if this is an issue global to the file.
+     * 
+ */ + public org.sonarqube.ws.Common.TextRangeOrBuilder getTextRangeOrBuilder() { + return textRange_ == null ? org.sonarqube.ws.Common.TextRange.getDefaultInstance() : textRange_; + } + + public static final int MSG_FIELD_NUMBER = 3; + private volatile java.lang.Object msg_; + /** + * optional string msg = 3; + */ + public boolean hasMsg() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional string msg = 3; + */ + public java.lang.String getMsg() { + java.lang.Object ref = msg_; + 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()) { + msg_ = s; + } + return s; } - /** - * repeated string actions = 24; - */ - public com.google.protobuf.ProtocolStringList - getActionsList() { - return actions_.getUnmodifiableView(); + } + /** + * optional string msg = 3; + */ + public com.google.protobuf.ByteString + getMsgBytes() { + java.lang.Object ref = msg_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + msg_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } - /** - * repeated string actions = 24; - */ - public int getActionsCount() { - return actions_.size(); + } + + 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 { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeBytes(1, getComponentIdBytes()); } - /** - * repeated string actions = 24; - */ - public java.lang.String getActions(int index) { - return actions_.get(index); + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeMessage(2, getTextRange()); } - /** - * repeated string actions = 24; - */ - public com.google.protobuf.ByteString - getActionsBytes(int index) { - return actions_.getByteString(index); + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeBytes(3, getMsgBytes()); } - /** - * repeated string actions = 24; - */ - public Builder setActions( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureActionsIsMutable(); - actions_.set(index, value); - onChanged(); - return this; + unknownFields.writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, getComponentIdBytes()); } - /** - * repeated string actions = 24; - */ - public Builder addActions( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureActionsIsMutable(); - actions_.add(value); - onChanged(); - return this; + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getTextRange()); } - /** - * repeated string actions = 24; - */ - public Builder addAllActions( - java.lang.Iterable values) { - ensureActionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, actions_); - onChanged(); - return this; + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(3, getMsgBytes()); } - /** - * repeated string actions = 24; - */ - public Builder clearActions() { - actions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00800000); - onChanged(); - return this; + size += unknownFields.getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + public static org.sonarqube.ws.Issues.Location parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.sonarqube.ws.Issues.Location 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.Location parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.sonarqube.ws.Issues.Location parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.sonarqube.ws.Issues.Location parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.sonarqube.ws.Issues.Location 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.Location parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static org.sonarqube.ws.Issues.Location 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.Location parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.sonarqube.ws.Issues.Location parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.sonarqube.ws.Issues.Location prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(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.Location} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:sonarqube.ws.issues.Location) + org.sonarqube.ws.Issues.LocationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Location_descriptor; } - /** - * repeated string actions = 24; - */ - public Builder addActionsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureActionsIsMutable(); - actions_.add(value); - onChanged(); - return this; + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Location_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.sonarqube.ws.Issues.Location.class, org.sonarqube.ws.Issues.Location.Builder.class); } - private boolean commentsPresentIfEmpty_ ; - /** - * optional bool commentsPresentIfEmpty = 25; - */ - public boolean hasCommentsPresentIfEmpty() { - return ((bitField0_ & 0x01000000) == 0x01000000); + // Construct using org.sonarqube.ws.Issues.Location.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); } - /** - * optional bool commentsPresentIfEmpty = 25; - */ - public boolean getCommentsPresentIfEmpty() { - return commentsPresentIfEmpty_; + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); } - /** - * optional bool commentsPresentIfEmpty = 25; - */ - public Builder setCommentsPresentIfEmpty(boolean value) { - bitField0_ |= 0x01000000; - commentsPresentIfEmpty_ = value; - onChanged(); - return this; + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + getTextRangeFieldBuilder(); + } } - /** - * optional bool commentsPresentIfEmpty = 25; - */ - public Builder clearCommentsPresentIfEmpty() { - bitField0_ = (bitField0_ & ~0x01000000); - commentsPresentIfEmpty_ = false; - onChanged(); + public Builder clear() { + super.clear(); + componentId_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + if (textRangeBuilder_ == null) { + textRange_ = null; + } else { + textRangeBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + msg_ = ""; + bitField0_ = (bitField0_ & ~0x00000004); return this; } - private java.util.List comments_ = - java.util.Collections.emptyList(); - private void ensureCommentsIsMutable() { - if (!((bitField0_ & 0x02000000) == 0x02000000)) { - comments_ = new java.util.ArrayList(comments_); - bitField0_ |= 0x02000000; - } + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Location_descriptor; } - private com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.Issues.Comment, org.sonarqube.ws.Issues.Comment.Builder, org.sonarqube.ws.Issues.CommentOrBuilder> commentsBuilder_; + public org.sonarqube.ws.Issues.Location getDefaultInstanceForType() { + return org.sonarqube.ws.Issues.Location.getDefaultInstance(); + } - /** - * repeated .sonarqube.ws.issues.Comment comments = 26; - */ - public java.util.List getCommentsList() { - if (commentsBuilder_ == null) { - return java.util.Collections.unmodifiableList(comments_); - } else { - return commentsBuilder_.getMessageList(); + public org.sonarqube.ws.Issues.Location build() { + org.sonarqube.ws.Issues.Location result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); } + return result; } - /** - * repeated .sonarqube.ws.issues.Comment comments = 26; - */ - public int getCommentsCount() { - if (commentsBuilder_ == null) { - return comments_.size(); - } else { - return commentsBuilder_.getCount(); + + public org.sonarqube.ws.Issues.Location buildPartial() { + org.sonarqube.ws.Issues.Location result = new org.sonarqube.ws.Issues.Location(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; } - } - /** - * repeated .sonarqube.ws.issues.Comment comments = 26; - */ - public org.sonarqube.ws.Issues.Comment getComments(int index) { - if (commentsBuilder_ == null) { - return comments_.get(index); - } else { - return commentsBuilder_.getMessage(index); + result.componentId_ = componentId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; } - } - /** - * repeated .sonarqube.ws.issues.Comment comments = 26; - */ - public Builder setComments( - int index, org.sonarqube.ws.Issues.Comment value) { - if (commentsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCommentsIsMutable(); - comments_.set(index, value); - onChanged(); + if (textRangeBuilder_ == null) { + result.textRange_ = textRange_; } else { - commentsBuilder_.setMessage(index, value); + result.textRange_ = textRangeBuilder_.build(); } - return this; - } - /** - * repeated .sonarqube.ws.issues.Comment comments = 26; - */ - public Builder setComments( - int index, org.sonarqube.ws.Issues.Comment.Builder builderForValue) { - if (commentsBuilder_ == null) { - ensureCommentsIsMutable(); - comments_.set(index, builderForValue.build()); - onChanged(); - } else { - commentsBuilder_.setMessage(index, builderForValue.build()); + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; } - return this; + result.msg_ = msg_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; } - /** - * repeated .sonarqube.ws.issues.Comment comments = 26; - */ - public Builder addComments(org.sonarqube.ws.Issues.Comment value) { - if (commentsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCommentsIsMutable(); - comments_.add(value); - onChanged(); + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.sonarqube.ws.Issues.Location) { + return mergeFrom((org.sonarqube.ws.Issues.Location)other); } else { - commentsBuilder_.addMessage(value); + super.mergeFrom(other); + return this; } - return this; } - /** - * repeated .sonarqube.ws.issues.Comment comments = 26; - */ - public Builder addComments( - int index, org.sonarqube.ws.Issues.Comment value) { - if (commentsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCommentsIsMutable(); - comments_.add(index, value); + + public Builder mergeFrom(org.sonarqube.ws.Issues.Location other) { + if (other == org.sonarqube.ws.Issues.Location.getDefaultInstance()) return this; + if (other.hasComponentId()) { + bitField0_ |= 0x00000001; + componentId_ = other.componentId_; onChanged(); - } else { - commentsBuilder_.addMessage(index, value); } - return this; - } - /** - * repeated .sonarqube.ws.issues.Comment comments = 26; - */ - public Builder addComments( - org.sonarqube.ws.Issues.Comment.Builder builderForValue) { - if (commentsBuilder_ == null) { - ensureCommentsIsMutable(); - comments_.add(builderForValue.build()); + if (other.hasTextRange()) { + mergeTextRange(other.getTextRange()); + } + if (other.hasMsg()) { + bitField0_ |= 0x00000004; + msg_ = other.msg_; onChanged(); - } else { - commentsBuilder_.addMessage(builderForValue.build()); } + this.mergeUnknownFields(other.unknownFields); + onChanged(); return this; } - /** - * repeated .sonarqube.ws.issues.Comment comments = 26; - */ - public Builder addComments( - int index, org.sonarqube.ws.Issues.Comment.Builder builderForValue) { - if (commentsBuilder_ == null) { - ensureCommentsIsMutable(); - comments_.add(index, builderForValue.build()); - onChanged(); - } else { - commentsBuilder_.addMessage(index, builderForValue.build()); + + 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.Location parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.sonarqube.ws.Issues.Location) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } } return this; } + private int bitField0_; + + private java.lang.Object componentId_ = ""; /** - * repeated .sonarqube.ws.issues.Comment comments = 26; + * optional string componentId = 1; */ - public Builder addAllComments( - java.lang.Iterable values) { - if (commentsBuilder_ == null) { - ensureCommentsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, comments_); - onChanged(); - } else { - commentsBuilder_.addAllMessages(values); - } - return this; + public boolean hasComponentId() { + return ((bitField0_ & 0x00000001) == 0x00000001); } /** - * repeated .sonarqube.ws.issues.Comment comments = 26; + * optional string componentId = 1; */ - public Builder clearComments() { - if (commentsBuilder_ == null) { - comments_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x02000000); - onChanged(); + public java.lang.String getComponentId() { + java.lang.Object ref = componentId_; + 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()) { + componentId_ = s; + } + return s; } else { - commentsBuilder_.clear(); + return (java.lang.String) ref; } - return this; } /** - * repeated .sonarqube.ws.issues.Comment comments = 26; + * optional string componentId = 1; */ - public Builder removeComments(int index) { - if (commentsBuilder_ == null) { - ensureCommentsIsMutable(); - comments_.remove(index); - onChanged(); + public com.google.protobuf.ByteString + getComponentIdBytes() { + java.lang.Object ref = componentId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + componentId_ = b; + return b; } else { - commentsBuilder_.remove(index); + return (com.google.protobuf.ByteString) ref; } - return this; } /** - * repeated .sonarqube.ws.issues.Comment comments = 26; + * optional string componentId = 1; */ - public org.sonarqube.ws.Issues.Comment.Builder getCommentsBuilder( - int index) { - return getCommentsFieldBuilder().getBuilder(index); + public Builder setComponentId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + componentId_ = value; + onChanged(); + return this; } /** - * repeated .sonarqube.ws.issues.Comment comments = 26; + * optional string componentId = 1; */ - public org.sonarqube.ws.Issues.CommentOrBuilder getCommentsOrBuilder( - int index) { - if (commentsBuilder_ == null) { - return comments_.get(index); } else { - return commentsBuilder_.getMessageOrBuilder(index); - } + public Builder clearComponentId() { + bitField0_ = (bitField0_ & ~0x00000001); + componentId_ = getDefaultInstance().getComponentId(); + onChanged(); + return this; } /** - * repeated .sonarqube.ws.issues.Comment comments = 26; + * optional string componentId = 1; */ - public java.util.List - getCommentsOrBuilderList() { - if (commentsBuilder_ != null) { - return commentsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(comments_); - } + public Builder setComponentIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + componentId_ = value; + onChanged(); + return this; } + + private org.sonarqube.ws.Common.TextRange textRange_ = null; + private com.google.protobuf.SingleFieldBuilder< + org.sonarqube.ws.Common.TextRange, org.sonarqube.ws.Common.TextRange.Builder, org.sonarqube.ws.Common.TextRangeOrBuilder> textRangeBuilder_; /** - * repeated .sonarqube.ws.issues.Comment comments = 26; + * optional .sonarqube.ws.commons.TextRange textRange = 2; + * + *
+       * Only when component is a file. Can be empty for a file if this is an issue global to the file.
+       * 
*/ - public org.sonarqube.ws.Issues.Comment.Builder addCommentsBuilder() { - return getCommentsFieldBuilder().addBuilder( - org.sonarqube.ws.Issues.Comment.getDefaultInstance()); + public boolean hasTextRange() { + return ((bitField0_ & 0x00000002) == 0x00000002); } /** - * repeated .sonarqube.ws.issues.Comment comments = 26; + * optional .sonarqube.ws.commons.TextRange textRange = 2; + * + *
+       * Only when component is a file. Can be empty for a file if this is an issue global to the file.
+       * 
*/ - public org.sonarqube.ws.Issues.Comment.Builder addCommentsBuilder( - int index) { - return getCommentsFieldBuilder().addBuilder( - index, org.sonarqube.ws.Issues.Comment.getDefaultInstance()); + public org.sonarqube.ws.Common.TextRange getTextRange() { + if (textRangeBuilder_ == null) { + return textRange_ == null ? org.sonarqube.ws.Common.TextRange.getDefaultInstance() : textRange_; + } else { + return textRangeBuilder_.getMessage(); + } } /** - * repeated .sonarqube.ws.issues.Comment comments = 26; + * optional .sonarqube.ws.commons.TextRange textRange = 2; + * + *
+       * Only when component is a file. Can be empty for a file if this is an issue global to the file.
+       * 
*/ - public java.util.List - getCommentsBuilderList() { - return getCommentsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.Issues.Comment, org.sonarqube.ws.Issues.Comment.Builder, org.sonarqube.ws.Issues.CommentOrBuilder> - getCommentsFieldBuilder() { - if (commentsBuilder_ == null) { - commentsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.Issues.Comment, org.sonarqube.ws.Issues.Comment.Builder, org.sonarqube.ws.Issues.CommentOrBuilder>( - comments_, - ((bitField0_ & 0x02000000) == 0x02000000), - getParentForChildren(), - isClean()); - comments_ = null; + public Builder setTextRange(org.sonarqube.ws.Common.TextRange value) { + if (textRangeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + textRange_ = value; + onChanged(); + } else { + textRangeBuilder_.setMessage(value); } - return commentsBuilder_; + bitField0_ |= 0x00000002; + return this; } - - private java.lang.Object creationDate_ = ""; /** - * optional string creationDate = 27; + * optional .sonarqube.ws.commons.TextRange textRange = 2; + * + *
+       * Only when component is a file. Can be empty for a file if this is an issue global to the file.
+       * 
*/ - public boolean hasCreationDate() { - return ((bitField0_ & 0x04000000) == 0x04000000); + public Builder setTextRange( + org.sonarqube.ws.Common.TextRange.Builder builderForValue) { + if (textRangeBuilder_ == null) { + textRange_ = builderForValue.build(); + onChanged(); + } else { + textRangeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + return this; } /** - * optional string creationDate = 27; + * optional .sonarqube.ws.commons.TextRange textRange = 2; + * + *
+       * Only when component is a file. Can be empty for a file if this is an issue global to the file.
+       * 
*/ - public java.lang.String getCreationDate() { - java.lang.Object ref = creationDate_; - 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()) { - creationDate_ = s; + public Builder mergeTextRange(org.sonarqube.ws.Common.TextRange value) { + if (textRangeBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002) && + textRange_ != null && + textRange_ != org.sonarqube.ws.Common.TextRange.getDefaultInstance()) { + textRange_ = + org.sonarqube.ws.Common.TextRange.newBuilder(textRange_).mergeFrom(value).buildPartial(); + } else { + textRange_ = value; } - return s; + onChanged(); } else { - return (java.lang.String) ref; + textRangeBuilder_.mergeFrom(value); } + bitField0_ |= 0x00000002; + return this; } /** - * optional string creationDate = 27; + * optional .sonarqube.ws.commons.TextRange textRange = 2; + * + *
+       * Only when component is a file. Can be empty for a file if this is an issue global to the file.
+       * 
*/ - public com.google.protobuf.ByteString - getCreationDateBytes() { - java.lang.Object ref = creationDate_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - creationDate_ = b; - return b; + public Builder clearTextRange() { + if (textRangeBuilder_ == null) { + textRange_ = null; + onChanged(); } else { - return (com.google.protobuf.ByteString) ref; + textRangeBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000002); + return this; } /** - * optional string creationDate = 27; + * optional .sonarqube.ws.commons.TextRange textRange = 2; + * + *
+       * Only when component is a file. Can be empty for a file if this is an issue global to the file.
+       * 
*/ - public Builder setCreationDate( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x04000000; - creationDate_ = value; + public org.sonarqube.ws.Common.TextRange.Builder getTextRangeBuilder() { + bitField0_ |= 0x00000002; onChanged(); - return this; + return getTextRangeFieldBuilder().getBuilder(); } /** - * optional string creationDate = 27; - */ - public Builder clearCreationDate() { - bitField0_ = (bitField0_ & ~0x04000000); - creationDate_ = getDefaultInstance().getCreationDate(); - onChanged(); - return this; + * optional .sonarqube.ws.commons.TextRange textRange = 2; + * + *
+       * Only when component is a file. Can be empty for a file if this is an issue global to the file.
+       * 
+ */ + public org.sonarqube.ws.Common.TextRangeOrBuilder getTextRangeOrBuilder() { + if (textRangeBuilder_ != null) { + return textRangeBuilder_.getMessageOrBuilder(); + } else { + return textRange_ == null ? + org.sonarqube.ws.Common.TextRange.getDefaultInstance() : textRange_; + } } /** - * optional string creationDate = 27; + * optional .sonarqube.ws.commons.TextRange textRange = 2; + * + *
+       * Only when component is a file. Can be empty for a file if this is an issue global to the file.
+       * 
*/ - public Builder setCreationDateBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x04000000; - creationDate_ = value; - onChanged(); - return this; + private com.google.protobuf.SingleFieldBuilder< + org.sonarqube.ws.Common.TextRange, org.sonarqube.ws.Common.TextRange.Builder, org.sonarqube.ws.Common.TextRangeOrBuilder> + getTextRangeFieldBuilder() { + if (textRangeBuilder_ == null) { + textRangeBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.sonarqube.ws.Common.TextRange, org.sonarqube.ws.Common.TextRange.Builder, org.sonarqube.ws.Common.TextRangeOrBuilder>( + getTextRange(), + getParentForChildren(), + isClean()); + textRange_ = null; + } + return textRangeBuilder_; } - private java.lang.Object updateDate_ = ""; + private java.lang.Object msg_ = ""; /** - * optional string updateDate = 28; + * optional string msg = 3; */ - public boolean hasUpdateDate() { - return ((bitField0_ & 0x08000000) == 0x08000000); + public boolean hasMsg() { + return ((bitField0_ & 0x00000004) == 0x00000004); } /** - * optional string updateDate = 28; + * optional string msg = 3; */ - public java.lang.String getUpdateDate() { - java.lang.Object ref = updateDate_; + public java.lang.String getMsg() { + java.lang.Object ref = msg_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { - updateDate_ = s; + msg_ = s; } return s; } else { @@ -10594,391 +11635,712 @@ public final class Issues { } } /** - * optional string updateDate = 28; + * optional string msg = 3; */ public com.google.protobuf.ByteString - getUpdateDateBytes() { - java.lang.Object ref = updateDate_; + getMsgBytes() { + java.lang.Object ref = msg_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - updateDate_ = b; + msg_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** - * optional string updateDate = 28; + * optional string msg = 3; */ - public Builder setUpdateDate( + public Builder setMsg( java.lang.String value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x08000000; - updateDate_ = value; + bitField0_ |= 0x00000004; + msg_ = value; onChanged(); return this; } /** - * optional string updateDate = 28; + * optional string msg = 3; */ - public Builder clearUpdateDate() { - bitField0_ = (bitField0_ & ~0x08000000); - updateDate_ = getDefaultInstance().getUpdateDate(); + public Builder clearMsg() { + bitField0_ = (bitField0_ & ~0x00000004); + msg_ = getDefaultInstance().getMsg(); onChanged(); return this; } /** - * optional string updateDate = 28; + * optional string msg = 3; */ - public Builder setUpdateDateBytes( + public Builder setMsgBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x08000000; - updateDate_ = value; - onChanged(); - return this; - } + bitField0_ |= 0x00000004; + msg_ = value; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:sonarqube.ws.issues.Location) + } + + // @@protoc_insertion_point(class_scope:sonarqube.ws.issues.Location) + private static final org.sonarqube.ws.Issues.Location DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.sonarqube.ws.Issues.Location(); + } + + public static org.sonarqube.ws.Issues.Location getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + public static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public Location parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + try { + return new Location(input, extensionRegistry); + } catch (RuntimeException e) { + if (e.getCause() instanceof + com.google.protobuf.InvalidProtocolBufferException) { + throw (com.google.protobuf.InvalidProtocolBufferException) + e.getCause(); + } + throw e; + } + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public org.sonarqube.ws.Issues.Location getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CommentOrBuilder extends + // @@protoc_insertion_point(interface_extends:sonarqube.ws.issues.Comment) + com.google.protobuf.MessageOrBuilder { + + /** + * optional string key = 1; + */ + boolean hasKey(); + /** + * optional string key = 1; + */ + java.lang.String getKey(); + /** + * optional string key = 1; + */ + com.google.protobuf.ByteString + getKeyBytes(); + + /** + * optional string login = 2; + */ + boolean hasLogin(); + /** + * optional string login = 2; + */ + java.lang.String getLogin(); + /** + * optional string login = 2; + */ + com.google.protobuf.ByteString + getLoginBytes(); + + /** + * optional string email = 3; + * + *
+     * TODO drop, it's already in field "users"
+     * 
+ */ + boolean hasEmail(); + /** + * optional string email = 3; + * + *
+     * TODO drop, it's already in field "users"
+     * 
+ */ + java.lang.String getEmail(); + /** + * optional string email = 3; + * + *
+     * TODO drop, it's already in field "users"
+     * 
+ */ + com.google.protobuf.ByteString + getEmailBytes(); + + /** + * optional string userName = 4; + * + *
+     * TODO drop, it's already in field "users"
+     * 
+ */ + boolean hasUserName(); + /** + * optional string userName = 4; + * + *
+     * TODO drop, it's already in field "users"
+     * 
+ */ + java.lang.String getUserName(); + /** + * optional string userName = 4; + * + *
+     * TODO drop, it's already in field "users"
+     * 
+ */ + com.google.protobuf.ByteString + getUserNameBytes(); + + /** + * optional string htmlText = 5; + */ + boolean hasHtmlText(); + /** + * optional string htmlText = 5; + */ + java.lang.String getHtmlText(); + /** + * optional string htmlText = 5; + */ + com.google.protobuf.ByteString + getHtmlTextBytes(); + + /** + * optional string markdown = 6; + * + *
+     * TODO rename markdownText ?
+     * 
+ */ + boolean hasMarkdown(); + /** + * optional string markdown = 6; + * + *
+     * TODO rename markdownText ?
+     * 
+ */ + java.lang.String getMarkdown(); + /** + * optional string markdown = 6; + * + *
+     * TODO rename markdownText ?
+     * 
+ */ + com.google.protobuf.ByteString + getMarkdownBytes(); + + /** + * optional bool updatable = 7; + */ + boolean hasUpdatable(); + /** + * optional bool updatable = 7; + */ + boolean getUpdatable(); + + /** + * optional string createdAt = 8; + */ + boolean hasCreatedAt(); + /** + * optional string createdAt = 8; + */ + java.lang.String getCreatedAt(); + /** + * optional string createdAt = 8; + */ + com.google.protobuf.ByteString + getCreatedAtBytes(); + } + /** + * Protobuf type {@code sonarqube.ws.issues.Comment} + */ + public static final class Comment extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:sonarqube.ws.issues.Comment) + CommentOrBuilder { + // Use Comment.newBuilder() to construct. + private Comment(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private Comment() { + key_ = ""; + login_ = ""; + email_ = ""; + userName_ = ""; + htmlText_ = ""; + markdown_ = ""; + updatable_ = false; + createdAt_ = ""; + } - private java.lang.Object fUpdateAge_ = ""; - /** - * optional string fUpdateAge = 29; - */ - public boolean hasFUpdateAge() { - return ((bitField0_ & 0x10000000) == 0x10000000); - } - /** - * optional string fUpdateAge = 29; - */ - public java.lang.String getFUpdateAge() { - java.lang.Object ref = fUpdateAge_; - 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()) { - fUpdateAge_ = s; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Comment( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) { + this(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000001; + key_ = bs; + break; + } + case 18: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000002; + login_ = bs; + break; + } + case 26: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000004; + email_ = bs; + break; + } + case 34: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000008; + userName_ = bs; + break; + } + case 42: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000010; + htmlText_ = bs; + break; + } + case 50: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000020; + markdown_ = bs; + break; + } + case 56: { + bitField0_ |= 0x00000040; + updatable_ = input.readBool(); + break; + } + case 66: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000080; + createdAt_ = bs; + break; + } } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string fUpdateAge = 29; - */ - public com.google.protobuf.ByteString - getFUpdateAgeBytes() { - java.lang.Object ref = fUpdateAge_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - fUpdateAge_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw new RuntimeException(e.setUnfinishedMessage(this)); + } catch (java.io.IOException e) { + throw new RuntimeException( + new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this)); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); } - /** - * optional string fUpdateAge = 29; - */ - public Builder setFUpdateAge( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x10000000; - fUpdateAge_ = value; - onChanged(); - return this; - } - /** - * optional string fUpdateAge = 29; - */ - public Builder clearFUpdateAge() { - bitField0_ = (bitField0_ & ~0x10000000); - fUpdateAge_ = getDefaultInstance().getFUpdateAge(); - onChanged(); - return this; - } - /** - * optional string fUpdateAge = 29; - */ - public Builder setFUpdateAgeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x10000000; - fUpdateAge_ = value; - onChanged(); - return this; - } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Comment_descriptor; + } - private java.lang.Object closeDate_ = ""; - /** - * optional string closeDate = 30; - */ - public boolean hasCloseDate() { - return ((bitField0_ & 0x20000000) == 0x20000000); - } - /** - * optional string closeDate = 30; - */ - public java.lang.String getCloseDate() { - java.lang.Object ref = closeDate_; - 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()) { - closeDate_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string closeDate = 30; - */ - public com.google.protobuf.ByteString - getCloseDateBytes() { - java.lang.Object ref = closeDate_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - closeDate_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string closeDate = 30; - */ - public Builder setCloseDate( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x20000000; - closeDate_ = value; - onChanged(); - return this; - } - /** - * optional string closeDate = 30; - */ - public Builder clearCloseDate() { - bitField0_ = (bitField0_ & ~0x20000000); - closeDate_ = getDefaultInstance().getCloseDate(); - onChanged(); - return this; + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Comment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.sonarqube.ws.Issues.Comment.class, org.sonarqube.ws.Issues.Comment.Builder.class); + } + + private int bitField0_; + public static final int KEY_FIELD_NUMBER = 1; + private volatile java.lang.Object key_; + /** + * optional string key = 1; + */ + public boolean hasKey() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional string key = 1; + */ + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + key_ = s; + } + return s; } - /** - * optional string closeDate = 30; - */ - public Builder setCloseDateBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x20000000; - closeDate_ = value; - onChanged(); - return this; + } + /** + * optional string key = 1; + */ + public com.google.protobuf.ByteString + getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } - - // @@protoc_insertion_point(builder_scope:sonarqube.ws.issues.Issue) } - // @@protoc_insertion_point(class_scope:sonarqube.ws.issues.Issue) - private static final org.sonarqube.ws.Issues.Issue DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonarqube.ws.Issues.Issue(); + public static final int LOGIN_FIELD_NUMBER = 2; + private volatile java.lang.Object login_; + /** + * optional string login = 2; + */ + public boolean hasLogin() { + return ((bitField0_ & 0x00000002) == 0x00000002); } - - public static org.sonarqube.ws.Issues.Issue getDefaultInstance() { - return DEFAULT_INSTANCE; + /** + * optional string login = 2; + */ + public java.lang.String getLogin() { + java.lang.Object ref = login_; + 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()) { + login_ = s; + } + return s; + } + } + /** + * optional string login = 2; + */ + public com.google.protobuf.ByteString + getLoginBytes() { + java.lang.Object ref = login_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + login_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Issue parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new Issue(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; + public static final int EMAIL_FIELD_NUMBER = 3; + private volatile java.lang.Object email_; + /** + * optional string email = 3; + * + *
+     * TODO drop, it's already in field "users"
+     * 
+ */ + public boolean hasEmail() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional string email = 3; + * + *
+     * TODO drop, it's already in field "users"
+     * 
+ */ + public java.lang.String getEmail() { + java.lang.Object ref = email_; + 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()) { + email_ = s; } + return s; } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; } - - public org.sonarqube.ws.Issues.Issue getDefaultInstanceForType() { - return DEFAULT_INSTANCE; + /** + * optional string email = 3; + * + *
+     * TODO drop, it's already in field "users"
+     * 
+ */ + public com.google.protobuf.ByteString + getEmailBytes() { + java.lang.Object ref = email_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + email_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - } - - public interface FlowOrBuilder extends - // @@protoc_insertion_point(interface_extends:sonarqube.ws.issues.Flow) - com.google.protobuf.MessageOrBuilder { - + public static final int USERNAME_FIELD_NUMBER = 4; + private volatile java.lang.Object userName_; /** - * repeated .sonarqube.ws.issues.Location locations = 1; + * optional string userName = 4; + * + *
+     * TODO drop, it's already in field "users"
+     * 
*/ - java.util.List - getLocationsList(); + public boolean hasUserName() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } /** - * repeated .sonarqube.ws.issues.Location locations = 1; + * optional string userName = 4; + * + *
+     * TODO drop, it's already in field "users"
+     * 
*/ - org.sonarqube.ws.Issues.Location getLocations(int index); + public java.lang.String getUserName() { + java.lang.Object ref = userName_; + 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()) { + userName_ = s; + } + return s; + } + } /** - * repeated .sonarqube.ws.issues.Location locations = 1; + * optional string userName = 4; + * + *
+     * TODO drop, it's already in field "users"
+     * 
*/ - int getLocationsCount(); + public com.google.protobuf.ByteString + getUserNameBytes() { + java.lang.Object ref = userName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + userName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int HTMLTEXT_FIELD_NUMBER = 5; + private volatile java.lang.Object htmlText_; /** - * repeated .sonarqube.ws.issues.Location locations = 1; + * optional string htmlText = 5; */ - java.util.List - getLocationsOrBuilderList(); + public boolean hasHtmlText() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } /** - * repeated .sonarqube.ws.issues.Location locations = 1; + * optional string htmlText = 5; */ - org.sonarqube.ws.Issues.LocationOrBuilder getLocationsOrBuilder( - int index); - } - /** - * Protobuf type {@code sonarqube.ws.issues.Flow} - */ - public static final class Flow extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:sonarqube.ws.issues.Flow) - FlowOrBuilder { - // Use Flow.newBuilder() to construct. - private Flow(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); + public java.lang.String getHtmlText() { + java.lang.Object ref = htmlText_; + 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()) { + htmlText_ = s; + } + return s; + } } - private Flow() { - locations_ = java.util.Collections.emptyList(); + /** + * optional string htmlText = 5; + */ + public com.google.protobuf.ByteString + getHtmlTextBytes() { + java.lang.Object ref = htmlText_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + htmlText_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; + public static final int MARKDOWN_FIELD_NUMBER = 6; + private volatile java.lang.Object markdown_; + /** + * optional string markdown = 6; + * + *
+     * TODO rename markdownText ?
+     * 
+ */ + public boolean hasMarkdown() { + return ((bitField0_ & 0x00000020) == 0x00000020); } - private Flow( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - locations_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - locations_.add(input.readMessage(org.sonarqube.ws.Issues.Location.PARSER, extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - locations_ = java.util.Collections.unmodifiableList(locations_); + /** + * optional string markdown = 6; + * + *
+     * TODO rename markdownText ?
+     * 
+ */ + public java.lang.String getMarkdown() { + java.lang.Object ref = markdown_; + 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()) { + markdown_ = s; } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); + return s; } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Flow_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Flow_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Issues.Flow.class, org.sonarqube.ws.Issues.Flow.Builder.class); + /** + * optional string markdown = 6; + * + *
+     * TODO rename markdownText ?
+     * 
+ */ + public com.google.protobuf.ByteString + getMarkdownBytes() { + java.lang.Object ref = markdown_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + markdown_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - public static final int LOCATIONS_FIELD_NUMBER = 1; - private java.util.List locations_; + public static final int UPDATABLE_FIELD_NUMBER = 7; + private boolean updatable_; /** - * repeated .sonarqube.ws.issues.Location locations = 1; + * optional bool updatable = 7; */ - public java.util.List getLocationsList() { - return locations_; + public boolean hasUpdatable() { + return ((bitField0_ & 0x00000040) == 0x00000040); } /** - * repeated .sonarqube.ws.issues.Location locations = 1; + * optional bool updatable = 7; */ - public java.util.List - getLocationsOrBuilderList() { - return locations_; + public boolean getUpdatable() { + return updatable_; } + + public static final int CREATEDAT_FIELD_NUMBER = 8; + private volatile java.lang.Object createdAt_; /** - * repeated .sonarqube.ws.issues.Location locations = 1; + * optional string createdAt = 8; */ - public int getLocationsCount() { - return locations_.size(); + public boolean hasCreatedAt() { + return ((bitField0_ & 0x00000080) == 0x00000080); } /** - * repeated .sonarqube.ws.issues.Location locations = 1; + * optional string createdAt = 8; */ - public org.sonarqube.ws.Issues.Location getLocations(int index) { - return locations_.get(index); + public java.lang.String getCreatedAt() { + java.lang.Object ref = createdAt_; + 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()) { + createdAt_ = s; + } + return s; + } } /** - * repeated .sonarqube.ws.issues.Location locations = 1; + * optional string createdAt = 8; */ - public org.sonarqube.ws.Issues.LocationOrBuilder getLocationsOrBuilder( - int index) { - return locations_.get(index); + public com.google.protobuf.ByteString + getCreatedAtBytes() { + java.lang.Object ref = createdAt_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + createdAt_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } private byte memoizedIsInitialized = -1; @@ -10993,8 +12355,29 @@ public final class Issues { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - for (int i = 0; i < locations_.size(); i++) { - output.writeMessage(1, locations_.get(i)); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeBytes(1, getKeyBytes()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeBytes(2, getLoginBytes()); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeBytes(3, getEmailBytes()); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeBytes(4, getUserNameBytes()); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + output.writeBytes(5, getHtmlTextBytes()); + } + if (((bitField0_ & 0x00000020) == 0x00000020)) { + output.writeBytes(6, getMarkdownBytes()); + } + if (((bitField0_ & 0x00000040) == 0x00000040)) { + output.writeBool(7, updatable_); + } + if (((bitField0_ & 0x00000080) == 0x00000080)) { + output.writeBytes(8, getCreatedAtBytes()); } unknownFields.writeTo(output); } @@ -11005,9 +12388,37 @@ public final class Issues { if (size != -1) return size; size = 0; - for (int i = 0; i < locations_.size(); i++) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, locations_.get(i)); + .computeBytesSize(1, getKeyBytes()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, getLoginBytes()); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(3, getEmailBytes()); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(4, getUserNameBytes()); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(5, getHtmlTextBytes()); + } + if (((bitField0_ & 0x00000020) == 0x00000020)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(6, getMarkdownBytes()); + } + if (((bitField0_ & 0x00000040) == 0x00000040)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(7, updatable_); + } + if (((bitField0_ & 0x00000080) == 0x00000080)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(8, getCreatedAtBytes()); } size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; @@ -11015,53 +12426,53 @@ public final class Issues { } private static final long serialVersionUID = 0L; - public static org.sonarqube.ws.Issues.Flow parseFrom( + public static org.sonarqube.ws.Issues.Comment parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.sonarqube.ws.Issues.Flow parseFrom( + public static org.sonarqube.ws.Issues.Comment 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.Flow parseFrom(byte[] data) + public static org.sonarqube.ws.Issues.Comment parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.sonarqube.ws.Issues.Flow parseFrom( + public static org.sonarqube.ws.Issues.Comment parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.sonarqube.ws.Issues.Flow parseFrom(java.io.InputStream input) + public static org.sonarqube.ws.Issues.Comment parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } - public static org.sonarqube.ws.Issues.Flow parseFrom( + public static org.sonarqube.ws.Issues.Comment 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.Flow parseDelimitedFrom(java.io.InputStream input) + public static org.sonarqube.ws.Issues.Comment parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } - public static org.sonarqube.ws.Issues.Flow parseDelimitedFrom( + public static org.sonarqube.ws.Issues.Comment 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.Flow parseFrom( + public static org.sonarqube.ws.Issues.Comment parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } - public static org.sonarqube.ws.Issues.Flow parseFrom( + public static org.sonarqube.ws.Issues.Comment parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -11072,7 +12483,7 @@ public final class Issues { public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(org.sonarqube.ws.Issues.Flow prototype) { + public static Builder newBuilder(org.sonarqube.ws.Issues.Comment prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { @@ -11087,409 +12498,851 @@ public final class Issues { return builder; } /** - * Protobuf type {@code sonarqube.ws.issues.Flow} + * Protobuf type {@code sonarqube.ws.issues.Comment} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:sonarqube.ws.issues.Flow) - org.sonarqube.ws.Issues.FlowOrBuilder { + // @@protoc_insertion_point(builder_implements:sonarqube.ws.issues.Comment) + org.sonarqube.ws.Issues.CommentOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Flow_descriptor; + return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Comment_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Flow_fieldAccessorTable + return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Comment_fieldAccessorTable .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Issues.Flow.class, org.sonarqube.ws.Issues.Flow.Builder.class); + org.sonarqube.ws.Issues.Comment.class, org.sonarqube.ws.Issues.Comment.Builder.class); } - // Construct using org.sonarqube.ws.Issues.Flow.newBuilder() + // Construct using org.sonarqube.ws.Issues.Comment.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + key_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + login_ = ""; + bitField0_ = (bitField0_ & ~0x00000002); + email_ = ""; + bitField0_ = (bitField0_ & ~0x00000004); + userName_ = ""; + bitField0_ = (bitField0_ & ~0x00000008); + htmlText_ = ""; + bitField0_ = (bitField0_ & ~0x00000010); + markdown_ = ""; + bitField0_ = (bitField0_ & ~0x00000020); + updatable_ = false; + bitField0_ = (bitField0_ & ~0x00000040); + createdAt_ = ""; + bitField0_ = (bitField0_ & ~0x00000080); + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Comment_descriptor; + } + + public org.sonarqube.ws.Issues.Comment getDefaultInstanceForType() { + return org.sonarqube.ws.Issues.Comment.getDefaultInstance(); + } + + public org.sonarqube.ws.Issues.Comment build() { + org.sonarqube.ws.Issues.Comment result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.sonarqube.ws.Issues.Comment buildPartial() { + org.sonarqube.ws.Issues.Comment result = new org.sonarqube.ws.Issues.Comment(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.key_ = key_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.login_ = login_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.email_ = email_; + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000008; + } + result.userName_ = userName_; + if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + to_bitField0_ |= 0x00000010; + } + result.htmlText_ = htmlText_; + if (((from_bitField0_ & 0x00000020) == 0x00000020)) { + to_bitField0_ |= 0x00000020; + } + result.markdown_ = markdown_; + if (((from_bitField0_ & 0x00000040) == 0x00000040)) { + to_bitField0_ |= 0x00000040; + } + result.updatable_ = updatable_; + if (((from_bitField0_ & 0x00000080) == 0x00000080)) { + to_bitField0_ |= 0x00000080; + } + result.createdAt_ = createdAt_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.sonarqube.ws.Issues.Comment) { + return mergeFrom((org.sonarqube.ws.Issues.Comment)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.sonarqube.ws.Issues.Comment other) { + if (other == org.sonarqube.ws.Issues.Comment.getDefaultInstance()) return this; + if (other.hasKey()) { + bitField0_ |= 0x00000001; + key_ = other.key_; + onChanged(); + } + if (other.hasLogin()) { + bitField0_ |= 0x00000002; + login_ = other.login_; + onChanged(); + } + if (other.hasEmail()) { + bitField0_ |= 0x00000004; + email_ = other.email_; + onChanged(); + } + if (other.hasUserName()) { + bitField0_ |= 0x00000008; + userName_ = other.userName_; + onChanged(); + } + if (other.hasHtmlText()) { + bitField0_ |= 0x00000010; + htmlText_ = other.htmlText_; + onChanged(); + } + if (other.hasMarkdown()) { + bitField0_ |= 0x00000020; + markdown_ = other.markdown_; + onChanged(); + } + if (other.hasUpdatable()) { + setUpdatable(other.getUpdatable()); + } + if (other.hasCreatedAt()) { + bitField0_ |= 0x00000080; + createdAt_ = other.createdAt_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + 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.Comment parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.sonarqube.ws.Issues.Comment) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object key_ = ""; + /** + * optional string key = 1; + */ + public boolean hasKey() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional string key = 1; + */ + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + key_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string key = 1; + */ + public com.google.protobuf.ByteString + getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string key = 1; + */ + public Builder setKey( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + key_ = value; + onChanged(); + return this; + } + /** + * optional string key = 1; + */ + public Builder clearKey() { + bitField0_ = (bitField0_ & ~0x00000001); + key_ = getDefaultInstance().getKey(); + onChanged(); + return this; + } + /** + * optional string key = 1; + */ + public Builder setKeyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + key_ = value; + onChanged(); + return this; + } + + private java.lang.Object login_ = ""; + /** + * optional string login = 2; + */ + public boolean hasLogin() { + return ((bitField0_ & 0x00000002) == 0x00000002); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getLocationsFieldBuilder(); + /** + * optional string login = 2; + */ + public java.lang.String getLogin() { + java.lang.Object ref = login_; + 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()) { + login_ = s; + } + return s; + } else { + return (java.lang.String) ref; } } - public Builder clear() { - super.clear(); - if (locationsBuilder_ == null) { - locations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + /** + * optional string login = 2; + */ + public com.google.protobuf.ByteString + getLoginBytes() { + java.lang.Object ref = login_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + login_ = b; + return b; } else { - locationsBuilder_.clear(); + return (com.google.protobuf.ByteString) ref; } + } + /** + * optional string login = 2; + */ + public Builder setLogin( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + login_ = value; + onChanged(); return this; } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Flow_descriptor; + /** + * optional string login = 2; + */ + public Builder clearLogin() { + bitField0_ = (bitField0_ & ~0x00000002); + login_ = getDefaultInstance().getLogin(); + onChanged(); + return this; } - - public org.sonarqube.ws.Issues.Flow getDefaultInstanceForType() { - return org.sonarqube.ws.Issues.Flow.getDefaultInstance(); + /** + * optional string login = 2; + */ + public Builder setLoginBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + login_ = value; + onChanged(); + return this; } - public org.sonarqube.ws.Issues.Flow build() { - org.sonarqube.ws.Issues.Flow result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; + private java.lang.Object email_ = ""; + /** + * optional string email = 3; + * + *
+       * TODO drop, it's already in field "users"
+       * 
+ */ + public boolean hasEmail() { + return ((bitField0_ & 0x00000004) == 0x00000004); } - - public org.sonarqube.ws.Issues.Flow buildPartial() { - org.sonarqube.ws.Issues.Flow result = new org.sonarqube.ws.Issues.Flow(this); - int from_bitField0_ = bitField0_; - if (locationsBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - locations_ = java.util.Collections.unmodifiableList(locations_); - bitField0_ = (bitField0_ & ~0x00000001); + /** + * optional string email = 3; + * + *
+       * TODO drop, it's already in field "users"
+       * 
+ */ + public java.lang.String getEmail() { + java.lang.Object ref = email_; + 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()) { + email_ = s; } - result.locations_ = locations_; + return s; } else { - result.locations_ = locationsBuilder_.build(); + return (java.lang.String) ref; } - onBuilt(); - return result; } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonarqube.ws.Issues.Flow) { - return mergeFrom((org.sonarqube.ws.Issues.Flow)other); + /** + * optional string email = 3; + * + *
+       * TODO drop, it's already in field "users"
+       * 
+ */ + public com.google.protobuf.ByteString + getEmailBytes() { + java.lang.Object ref = email_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + email_ = b; + return b; } else { - super.mergeFrom(other); - return this; + return (com.google.protobuf.ByteString) ref; } } + /** + * optional string email = 3; + * + *
+       * TODO drop, it's already in field "users"
+       * 
+ */ + public Builder setEmail( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + email_ = value; + onChanged(); + return this; + } + /** + * optional string email = 3; + * + *
+       * TODO drop, it's already in field "users"
+       * 
+ */ + public Builder clearEmail() { + bitField0_ = (bitField0_ & ~0x00000004); + email_ = getDefaultInstance().getEmail(); + onChanged(); + return this; + } + /** + * optional string email = 3; + * + *
+       * TODO drop, it's already in field "users"
+       * 
+ */ + public Builder setEmailBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + email_ = value; + onChanged(); + return this; + } - public Builder mergeFrom(org.sonarqube.ws.Issues.Flow other) { - if (other == org.sonarqube.ws.Issues.Flow.getDefaultInstance()) return this; - if (locationsBuilder_ == null) { - if (!other.locations_.isEmpty()) { - if (locations_.isEmpty()) { - locations_ = other.locations_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureLocationsIsMutable(); - locations_.addAll(other.locations_); - } - onChanged(); + private java.lang.Object userName_ = ""; + /** + * optional string userName = 4; + * + *
+       * TODO drop, it's already in field "users"
+       * 
+ */ + public boolean hasUserName() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + * optional string userName = 4; + * + *
+       * TODO drop, it's already in field "users"
+       * 
+ */ + public java.lang.String getUserName() { + java.lang.Object ref = userName_; + 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()) { + userName_ = s; } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string userName = 4; + * + *
+       * TODO drop, it's already in field "users"
+       * 
+ */ + public com.google.protobuf.ByteString + getUserNameBytes() { + java.lang.Object ref = userName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + userName_ = b; + return b; } else { - if (!other.locations_.isEmpty()) { - if (locationsBuilder_.isEmpty()) { - locationsBuilder_.dispose(); - locationsBuilder_ = null; - locations_ = other.locations_; - bitField0_ = (bitField0_ & ~0x00000001); - locationsBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getLocationsFieldBuilder() : null; - } else { - locationsBuilder_.addAllMessages(other.locations_); - } - } + return (com.google.protobuf.ByteString) ref; } - this.mergeUnknownFields(other.unknownFields); + } + /** + * optional string userName = 4; + * + *
+       * TODO drop, it's already in field "users"
+       * 
+ */ + public Builder setUserName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + userName_ = value; onChanged(); return this; } - - public final boolean isInitialized() { - return true; + /** + * optional string userName = 4; + * + *
+       * TODO drop, it's already in field "users"
+       * 
+ */ + public Builder clearUserName() { + bitField0_ = (bitField0_ & ~0x00000008); + userName_ = getDefaultInstance().getUserName(); + onChanged(); + return this; } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonarqube.ws.Issues.Flow parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonarqube.ws.Issues.Flow) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + /** + * optional string userName = 4; + * + *
+       * TODO drop, it's already in field "users"
+       * 
+ */ + public Builder setUserNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + userName_ = value; + onChanged(); return this; } - private int bitField0_; - private java.util.List locations_ = - java.util.Collections.emptyList(); - private void ensureLocationsIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - locations_ = new java.util.ArrayList(locations_); - bitField0_ |= 0x00000001; - } + private java.lang.Object htmlText_ = ""; + /** + * optional string htmlText = 5; + */ + public boolean hasHtmlText() { + return ((bitField0_ & 0x00000010) == 0x00000010); } - - private com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.Issues.Location, org.sonarqube.ws.Issues.Location.Builder, org.sonarqube.ws.Issues.LocationOrBuilder> locationsBuilder_; - /** - * repeated .sonarqube.ws.issues.Location locations = 1; + * optional string htmlText = 5; */ - public java.util.List getLocationsList() { - if (locationsBuilder_ == null) { - return java.util.Collections.unmodifiableList(locations_); + public java.lang.String getHtmlText() { + java.lang.Object ref = htmlText_; + 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()) { + htmlText_ = s; + } + return s; } else { - return locationsBuilder_.getMessageList(); + return (java.lang.String) ref; } } /** - * repeated .sonarqube.ws.issues.Location locations = 1; + * optional string htmlText = 5; */ - public int getLocationsCount() { - if (locationsBuilder_ == null) { - return locations_.size(); + public com.google.protobuf.ByteString + getHtmlTextBytes() { + java.lang.Object ref = htmlText_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + htmlText_ = b; + return b; } else { - return locationsBuilder_.getCount(); + return (com.google.protobuf.ByteString) ref; } } /** - * repeated .sonarqube.ws.issues.Location locations = 1; + * optional string htmlText = 5; */ - public org.sonarqube.ws.Issues.Location getLocations(int index) { - if (locationsBuilder_ == null) { - return locations_.get(index); - } else { - return locationsBuilder_.getMessage(index); - } + public Builder setHtmlText( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + htmlText_ = value; + onChanged(); + return this; } /** - * repeated .sonarqube.ws.issues.Location locations = 1; + * optional string htmlText = 5; */ - public Builder setLocations( - int index, org.sonarqube.ws.Issues.Location value) { - if (locationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLocationsIsMutable(); - locations_.set(index, value); - onChanged(); - } else { - locationsBuilder_.setMessage(index, value); - } + public Builder clearHtmlText() { + bitField0_ = (bitField0_ & ~0x00000010); + htmlText_ = getDefaultInstance().getHtmlText(); + onChanged(); return this; } /** - * repeated .sonarqube.ws.issues.Location locations = 1; + * optional string htmlText = 5; */ - public Builder setLocations( - int index, org.sonarqube.ws.Issues.Location.Builder builderForValue) { - if (locationsBuilder_ == null) { - ensureLocationsIsMutable(); - locations_.set(index, builderForValue.build()); - onChanged(); - } else { - locationsBuilder_.setMessage(index, builderForValue.build()); - } + public Builder setHtmlTextBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + htmlText_ = value; + onChanged(); return this; } + + private java.lang.Object markdown_ = ""; /** - * repeated .sonarqube.ws.issues.Location locations = 1; + * optional string markdown = 6; + * + *
+       * TODO rename markdownText ?
+       * 
*/ - public Builder addLocations(org.sonarqube.ws.Issues.Location value) { - if (locationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); + public boolean hasMarkdown() { + return ((bitField0_ & 0x00000020) == 0x00000020); + } + /** + * optional string markdown = 6; + * + *
+       * TODO rename markdownText ?
+       * 
+ */ + public java.lang.String getMarkdown() { + java.lang.Object ref = markdown_; + 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()) { + markdown_ = s; } - ensureLocationsIsMutable(); - locations_.add(value); - onChanged(); + return s; } else { - locationsBuilder_.addMessage(value); + return (java.lang.String) ref; } - return this; } /** - * repeated .sonarqube.ws.issues.Location locations = 1; + * optional string markdown = 6; + * + *
+       * TODO rename markdownText ?
+       * 
*/ - public Builder addLocations( - int index, org.sonarqube.ws.Issues.Location value) { - if (locationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLocationsIsMutable(); - locations_.add(index, value); - onChanged(); + public com.google.protobuf.ByteString + getMarkdownBytes() { + java.lang.Object ref = markdown_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + markdown_ = b; + return b; } else { - locationsBuilder_.addMessage(index, value); + return (com.google.protobuf.ByteString) ref; } + } + /** + * optional string markdown = 6; + * + *
+       * TODO rename markdownText ?
+       * 
+ */ + public Builder setMarkdown( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + markdown_ = value; + onChanged(); return this; } /** - * repeated .sonarqube.ws.issues.Location locations = 1; + * optional string markdown = 6; + * + *
+       * TODO rename markdownText ?
+       * 
*/ - public Builder addLocations( - org.sonarqube.ws.Issues.Location.Builder builderForValue) { - if (locationsBuilder_ == null) { - ensureLocationsIsMutable(); - locations_.add(builderForValue.build()); - onChanged(); - } else { - locationsBuilder_.addMessage(builderForValue.build()); - } + public Builder clearMarkdown() { + bitField0_ = (bitField0_ & ~0x00000020); + markdown_ = getDefaultInstance().getMarkdown(); + onChanged(); return this; } /** - * repeated .sonarqube.ws.issues.Location locations = 1; + * optional string markdown = 6; + * + *
+       * TODO rename markdownText ?
+       * 
*/ - public Builder addLocations( - int index, org.sonarqube.ws.Issues.Location.Builder builderForValue) { - if (locationsBuilder_ == null) { - ensureLocationsIsMutable(); - locations_.add(index, builderForValue.build()); - onChanged(); - } else { - locationsBuilder_.addMessage(index, builderForValue.build()); - } + public Builder setMarkdownBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + markdown_ = value; + onChanged(); return this; } + + private boolean updatable_ ; /** - * repeated .sonarqube.ws.issues.Location locations = 1; + * optional bool updatable = 7; */ - public Builder addAllLocations( - java.lang.Iterable values) { - if (locationsBuilder_ == null) { - ensureLocationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, locations_); - onChanged(); - } else { - locationsBuilder_.addAllMessages(values); - } - return this; + public boolean hasUpdatable() { + return ((bitField0_ & 0x00000040) == 0x00000040); } /** - * repeated .sonarqube.ws.issues.Location locations = 1; + * optional bool updatable = 7; */ - public Builder clearLocations() { - if (locationsBuilder_ == null) { - locations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - locationsBuilder_.clear(); - } + public boolean getUpdatable() { + return updatable_; + } + /** + * optional bool updatable = 7; + */ + public Builder setUpdatable(boolean value) { + bitField0_ |= 0x00000040; + updatable_ = value; + onChanged(); return this; } /** - * repeated .sonarqube.ws.issues.Location locations = 1; + * optional bool updatable = 7; */ - public Builder removeLocations(int index) { - if (locationsBuilder_ == null) { - ensureLocationsIsMutable(); - locations_.remove(index); - onChanged(); - } else { - locationsBuilder_.remove(index); - } + public Builder clearUpdatable() { + bitField0_ = (bitField0_ & ~0x00000040); + updatable_ = false; + onChanged(); return this; } + + private java.lang.Object createdAt_ = ""; /** - * repeated .sonarqube.ws.issues.Location locations = 1; + * optional string createdAt = 8; */ - public org.sonarqube.ws.Issues.Location.Builder getLocationsBuilder( - int index) { - return getLocationsFieldBuilder().getBuilder(index); + public boolean hasCreatedAt() { + return ((bitField0_ & 0x00000080) == 0x00000080); } /** - * repeated .sonarqube.ws.issues.Location locations = 1; + * optional string createdAt = 8; */ - public org.sonarqube.ws.Issues.LocationOrBuilder getLocationsOrBuilder( - int index) { - if (locationsBuilder_ == null) { - return locations_.get(index); } else { - return locationsBuilder_.getMessageOrBuilder(index); + public java.lang.String getCreatedAt() { + java.lang.Object ref = createdAt_; + 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()) { + createdAt_ = s; + } + return s; + } else { + return (java.lang.String) ref; } } /** - * repeated .sonarqube.ws.issues.Location locations = 1; + * optional string createdAt = 8; */ - public java.util.List - getLocationsOrBuilderList() { - if (locationsBuilder_ != null) { - return locationsBuilder_.getMessageOrBuilderList(); + public com.google.protobuf.ByteString + getCreatedAtBytes() { + java.lang.Object ref = createdAt_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + createdAt_ = b; + return b; } else { - return java.util.Collections.unmodifiableList(locations_); + return (com.google.protobuf.ByteString) ref; } } /** - * repeated .sonarqube.ws.issues.Location locations = 1; + * optional string createdAt = 8; */ - public org.sonarqube.ws.Issues.Location.Builder addLocationsBuilder() { - return getLocationsFieldBuilder().addBuilder( - org.sonarqube.ws.Issues.Location.getDefaultInstance()); + public Builder setCreatedAt( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000080; + createdAt_ = value; + onChanged(); + return this; } /** - * repeated .sonarqube.ws.issues.Location locations = 1; + * optional string createdAt = 8; */ - public org.sonarqube.ws.Issues.Location.Builder addLocationsBuilder( - int index) { - return getLocationsFieldBuilder().addBuilder( - index, org.sonarqube.ws.Issues.Location.getDefaultInstance()); + public Builder clearCreatedAt() { + bitField0_ = (bitField0_ & ~0x00000080); + createdAt_ = getDefaultInstance().getCreatedAt(); + onChanged(); + return this; } /** - * repeated .sonarqube.ws.issues.Location locations = 1; + * optional string createdAt = 8; */ - public java.util.List - getLocationsBuilderList() { - return getLocationsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.Issues.Location, org.sonarqube.ws.Issues.Location.Builder, org.sonarqube.ws.Issues.LocationOrBuilder> - getLocationsFieldBuilder() { - if (locationsBuilder_ == null) { - locationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.Issues.Location, org.sonarqube.ws.Issues.Location.Builder, org.sonarqube.ws.Issues.LocationOrBuilder>( - locations_, - ((bitField0_ & 0x00000001) == 0x00000001), - getParentForChildren(), - isClean()); - locations_ = null; - } - return locationsBuilder_; + public Builder setCreatedAtBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000080; + createdAt_ = value; + onChanged(); + return this; } - // @@protoc_insertion_point(builder_scope:sonarqube.ws.issues.Flow) + // @@protoc_insertion_point(builder_scope:sonarqube.ws.issues.Comment) } - // @@protoc_insertion_point(class_scope:sonarqube.ws.issues.Flow) - private static final org.sonarqube.ws.Issues.Flow DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:sonarqube.ws.issues.Comment) + private static final org.sonarqube.ws.Issues.Comment DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new org.sonarqube.ws.Issues.Flow(); + DEFAULT_INSTANCE = new org.sonarqube.ws.Issues.Comment(); } - public static org.sonarqube.ws.Issues.Flow getDefaultInstance() { + public static org.sonarqube.ws.Issues.Comment getDefaultInstance() { return DEFAULT_INSTANCE; } - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Flow parsePartialFrom( + public static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public Comment parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { try { - return new Flow(input, extensionRegistry); + return new Comment(input, extensionRegistry); } catch (RuntimeException e) { if (e.getCause() instanceof com.google.protobuf.InvalidProtocolBufferException) { @@ -11502,87 +13355,57 @@ public final class Issues { }; @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } - public org.sonarqube.ws.Issues.Flow getDefaultInstanceForType() { + public org.sonarqube.ws.Issues.Comment getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - - public interface LocationOrBuilder extends - // @@protoc_insertion_point(interface_extends:sonarqube.ws.issues.Location) - com.google.protobuf.MessageOrBuilder { - - /** - * optional string componentId = 1; - */ - boolean hasComponentId(); - /** - * optional string componentId = 1; - */ - java.lang.String getComponentId(); - /** - * optional string componentId = 1; - */ - com.google.protobuf.ByteString - getComponentIdBytes(); - - /** - * optional .sonarqube.ws.commons.TextRange textRange = 2; - * - *
-     * Only when component is a file. Can be empty for a file if this is an issue global to the file.
-     * 
- */ - boolean hasTextRange(); - /** - * optional .sonarqube.ws.commons.TextRange textRange = 2; - * - *
-     * Only when component is a file. Can be empty for a file if this is an issue global to the file.
-     * 
+ + public interface CommentsOrBuilder extends + // @@protoc_insertion_point(interface_extends:sonarqube.ws.issues.Comments) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .sonarqube.ws.issues.Comment comments = 1; */ - org.sonarqube.ws.Common.TextRange getTextRange(); + java.util.List + getCommentsList(); /** - * optional .sonarqube.ws.commons.TextRange textRange = 2; - * - *
-     * Only when component is a file. Can be empty for a file if this is an issue global to the file.
-     * 
+ * repeated .sonarqube.ws.issues.Comment comments = 1; */ - org.sonarqube.ws.Common.TextRangeOrBuilder getTextRangeOrBuilder(); - + org.sonarqube.ws.Issues.Comment getComments(int index); /** - * optional string msg = 3; + * repeated .sonarqube.ws.issues.Comment comments = 1; */ - boolean hasMsg(); + int getCommentsCount(); /** - * optional string msg = 3; + * repeated .sonarqube.ws.issues.Comment comments = 1; */ - java.lang.String getMsg(); + java.util.List + getCommentsOrBuilderList(); /** - * optional string msg = 3; + * repeated .sonarqube.ws.issues.Comment comments = 1; */ - com.google.protobuf.ByteString - getMsgBytes(); + org.sonarqube.ws.Issues.CommentOrBuilder getCommentsOrBuilder( + int index); } /** - * Protobuf type {@code sonarqube.ws.issues.Location} + * Protobuf type {@code sonarqube.ws.issues.Comments} */ - public static final class Location extends + public static final class Comments extends com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:sonarqube.ws.issues.Location) - LocationOrBuilder { - // Use Location.newBuilder() to construct. - private Location(com.google.protobuf.GeneratedMessage.Builder builder) { + // @@protoc_insertion_point(message_implements:sonarqube.ws.issues.Comments) + CommentsOrBuilder { + // Use Comments.newBuilder() to construct. + private Comments(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } - private Location() { - componentId_ = ""; - msg_ = ""; + private Comments() { + comments_ = java.util.Collections.emptyList(); } @java.lang.Override @@ -11590,7 +13413,7 @@ public final class Issues { getUnknownFields() { return this.unknownFields; } - private Location( + private Comments( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) { this(); @@ -11613,28 +13436,11 @@ public final class Issues { break; } case 10: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000001; - componentId_ = bs; - break; - } - case 18: { - org.sonarqube.ws.Common.TextRange.Builder subBuilder = null; - if (((bitField0_ & 0x00000002) == 0x00000002)) { - subBuilder = textRange_.toBuilder(); - } - textRange_ = input.readMessage(org.sonarqube.ws.Common.TextRange.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(textRange_); - textRange_ = subBuilder.buildPartial(); + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + comments_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - bitField0_ |= 0x00000002; - break; - } - case 26: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000004; - msg_ = bs; + comments_.add(input.readMessage(org.sonarqube.ws.Issues.Comment.PARSER, extensionRegistry)); break; } } @@ -11646,138 +13452,58 @@ public final class Issues { new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this)); } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + comments_ = java.util.Collections.unmodifiableList(comments_); + } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Location_descriptor; + return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Comments_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Location_fieldAccessorTable + return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Comments_fieldAccessorTable .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Issues.Location.class, org.sonarqube.ws.Issues.Location.Builder.class); - } - - private int bitField0_; - public static final int COMPONENTID_FIELD_NUMBER = 1; - private volatile java.lang.Object componentId_; - /** - * optional string componentId = 1; - */ - public boolean hasComponentId() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string componentId = 1; - */ - public java.lang.String getComponentId() { - java.lang.Object ref = componentId_; - 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()) { - componentId_ = s; - } - return s; - } - } - /** - * optional string componentId = 1; - */ - public com.google.protobuf.ByteString - getComponentIdBytes() { - java.lang.Object ref = componentId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - componentId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + org.sonarqube.ws.Issues.Comments.class, org.sonarqube.ws.Issues.Comments.Builder.class); } - public static final int TEXTRANGE_FIELD_NUMBER = 2; - private org.sonarqube.ws.Common.TextRange textRange_; - /** - * optional .sonarqube.ws.commons.TextRange textRange = 2; - * - *
-     * Only when component is a file. Can be empty for a file if this is an issue global to the file.
-     * 
- */ - public boolean hasTextRange() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } + public static final int COMMENTS_FIELD_NUMBER = 1; + private java.util.List comments_; /** - * optional .sonarqube.ws.commons.TextRange textRange = 2; - * - *
-     * Only when component is a file. Can be empty for a file if this is an issue global to the file.
-     * 
+ * repeated .sonarqube.ws.issues.Comment comments = 1; */ - public org.sonarqube.ws.Common.TextRange getTextRange() { - return textRange_ == null ? org.sonarqube.ws.Common.TextRange.getDefaultInstance() : textRange_; + public java.util.List getCommentsList() { + return comments_; } /** - * optional .sonarqube.ws.commons.TextRange textRange = 2; - * - *
-     * Only when component is a file. Can be empty for a file if this is an issue global to the file.
-     * 
+ * repeated .sonarqube.ws.issues.Comment comments = 1; */ - public org.sonarqube.ws.Common.TextRangeOrBuilder getTextRangeOrBuilder() { - return textRange_ == null ? org.sonarqube.ws.Common.TextRange.getDefaultInstance() : textRange_; + public java.util.List + getCommentsOrBuilderList() { + return comments_; } - - public static final int MSG_FIELD_NUMBER = 3; - private volatile java.lang.Object msg_; /** - * optional string msg = 3; + * repeated .sonarqube.ws.issues.Comment comments = 1; */ - public boolean hasMsg() { - return ((bitField0_ & 0x00000004) == 0x00000004); + public int getCommentsCount() { + return comments_.size(); } /** - * optional string msg = 3; + * repeated .sonarqube.ws.issues.Comment comments = 1; */ - public java.lang.String getMsg() { - java.lang.Object ref = msg_; - 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()) { - msg_ = s; - } - return s; - } + public org.sonarqube.ws.Issues.Comment getComments(int index) { + return comments_.get(index); } /** - * optional string msg = 3; + * repeated .sonarqube.ws.issues.Comment comments = 1; */ - public com.google.protobuf.ByteString - getMsgBytes() { - java.lang.Object ref = msg_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - msg_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public org.sonarqube.ws.Issues.CommentOrBuilder getCommentsOrBuilder( + int index) { + return comments_.get(index); } private byte memoizedIsInitialized = -1; @@ -11792,14 +13518,8 @@ public final class Issues { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getComponentIdBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeMessage(2, getTextRange()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, getMsgBytes()); + for (int i = 0; i < comments_.size(); i++) { + output.writeMessage(1, comments_.get(i)); } unknownFields.writeTo(output); } @@ -11810,17 +13530,9 @@ public final class Issues { if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getComponentIdBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getTextRange()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + for (int i = 0; i < comments_.size(); i++) { size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getMsgBytes()); + .computeMessageSize(1, comments_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; @@ -11828,53 +13540,53 @@ public final class Issues { } private static final long serialVersionUID = 0L; - public static org.sonarqube.ws.Issues.Location parseFrom( + public static org.sonarqube.ws.Issues.Comments parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.sonarqube.ws.Issues.Location parseFrom( + public static org.sonarqube.ws.Issues.Comments 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.Location parseFrom(byte[] data) + public static org.sonarqube.ws.Issues.Comments parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.sonarqube.ws.Issues.Location parseFrom( + public static org.sonarqube.ws.Issues.Comments parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.sonarqube.ws.Issues.Location parseFrom(java.io.InputStream input) + public static org.sonarqube.ws.Issues.Comments parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } - public static org.sonarqube.ws.Issues.Location parseFrom( + public static org.sonarqube.ws.Issues.Comments 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.Location parseDelimitedFrom(java.io.InputStream input) + public static org.sonarqube.ws.Issues.Comments parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } - public static org.sonarqube.ws.Issues.Location parseDelimitedFrom( + public static org.sonarqube.ws.Issues.Comments 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.Location parseFrom( + public static org.sonarqube.ws.Issues.Comments parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } - public static org.sonarqube.ws.Issues.Location parseFrom( + public static org.sonarqube.ws.Issues.Comments parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -11885,7 +13597,7 @@ public final class Issues { public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(org.sonarqube.ws.Issues.Location prototype) { + public static Builder newBuilder(org.sonarqube.ws.Issues.Comments prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { @@ -11900,25 +13612,25 @@ public final class Issues { return builder; } /** - * Protobuf type {@code sonarqube.ws.issues.Location} + * Protobuf type {@code sonarqube.ws.issues.Comments} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:sonarqube.ws.issues.Location) - org.sonarqube.ws.Issues.LocationOrBuilder { + // @@protoc_insertion_point(builder_implements:sonarqube.ws.issues.Comments) + org.sonarqube.ws.Issues.CommentsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Location_descriptor; + return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Comments_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Location_fieldAccessorTable + return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Comments_fieldAccessorTable .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Issues.Location.class, org.sonarqube.ws.Issues.Location.Builder.class); + org.sonarqube.ws.Issues.Comments.class, org.sonarqube.ws.Issues.Comments.Builder.class); } - // Construct using org.sonarqube.ws.Issues.Location.newBuilder() + // Construct using org.sonarqube.ws.Issues.Comments.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -11930,89 +13642,89 @@ public final class Issues { } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getTextRangeFieldBuilder(); + getCommentsFieldBuilder(); } } public Builder clear() { super.clear(); - componentId_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - if (textRangeBuilder_ == null) { - textRange_ = null; + if (commentsBuilder_ == null) { + comments_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); } else { - textRangeBuilder_.clear(); + commentsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000002); - msg_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Location_descriptor; + return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Comments_descriptor; } - public org.sonarqube.ws.Issues.Location getDefaultInstanceForType() { - return org.sonarqube.ws.Issues.Location.getDefaultInstance(); + public org.sonarqube.ws.Issues.Comments getDefaultInstanceForType() { + return org.sonarqube.ws.Issues.Comments.getDefaultInstance(); } - public org.sonarqube.ws.Issues.Location build() { - org.sonarqube.ws.Issues.Location result = buildPartial(); + public org.sonarqube.ws.Issues.Comments build() { + org.sonarqube.ws.Issues.Comments result = buildPartial(); if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonarqube.ws.Issues.Location buildPartial() { - org.sonarqube.ws.Issues.Location result = new org.sonarqube.ws.Issues.Location(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.componentId_ = componentId_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; + throw newUninitializedMessageException(result); } - if (textRangeBuilder_ == null) { - result.textRange_ = textRange_; + return result; + } + + public org.sonarqube.ws.Issues.Comments buildPartial() { + org.sonarqube.ws.Issues.Comments result = new org.sonarqube.ws.Issues.Comments(this); + int from_bitField0_ = bitField0_; + if (commentsBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + comments_ = java.util.Collections.unmodifiableList(comments_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.comments_ = comments_; } else { - result.textRange_ = textRangeBuilder_.build(); - } - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; + result.comments_ = commentsBuilder_.build(); } - result.msg_ = msg_; - result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonarqube.ws.Issues.Location) { - return mergeFrom((org.sonarqube.ws.Issues.Location)other); + if (other instanceof org.sonarqube.ws.Issues.Comments) { + return mergeFrom((org.sonarqube.ws.Issues.Comments)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(org.sonarqube.ws.Issues.Location other) { - if (other == org.sonarqube.ws.Issues.Location.getDefaultInstance()) return this; - if (other.hasComponentId()) { - bitField0_ |= 0x00000001; - componentId_ = other.componentId_; - onChanged(); - } - if (other.hasTextRange()) { - mergeTextRange(other.getTextRange()); - } - if (other.hasMsg()) { - bitField0_ |= 0x00000004; - msg_ = other.msg_; - onChanged(); + public Builder mergeFrom(org.sonarqube.ws.Issues.Comments other) { + if (other == org.sonarqube.ws.Issues.Comments.getDefaultInstance()) return this; + if (commentsBuilder_ == null) { + if (!other.comments_.isEmpty()) { + if (comments_.isEmpty()) { + comments_ = other.comments_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureCommentsIsMutable(); + comments_.addAll(other.comments_); + } + onChanged(); + } + } else { + if (!other.comments_.isEmpty()) { + if (commentsBuilder_.isEmpty()) { + commentsBuilder_.dispose(); + commentsBuilder_ = null; + comments_ = other.comments_; + bitField0_ = (bitField0_ & ~0x00000001); + commentsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getCommentsFieldBuilder() : null; + } else { + commentsBuilder_.addAllMessages(other.comments_); + } + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -12027,11 +13739,11 @@ public final class Issues { com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - org.sonarqube.ws.Issues.Location parsedMessage = null; + org.sonarqube.ws.Issues.Comments parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonarqube.ws.Issues.Location) e.getUnfinishedMessage(); + parsedMessage = (org.sonarqube.ws.Issues.Comments) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { @@ -12042,333 +13754,267 @@ public final class Issues { } private int bitField0_; - private java.lang.Object componentId_ = ""; - /** - * optional string componentId = 1; - */ - public boolean hasComponentId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + private java.util.List comments_ = + java.util.Collections.emptyList(); + private void ensureCommentsIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + comments_ = new java.util.ArrayList(comments_); + bitField0_ |= 0x00000001; + } } + + private com.google.protobuf.RepeatedFieldBuilder< + org.sonarqube.ws.Issues.Comment, org.sonarqube.ws.Issues.Comment.Builder, org.sonarqube.ws.Issues.CommentOrBuilder> commentsBuilder_; + /** - * optional string componentId = 1; + * repeated .sonarqube.ws.issues.Comment comments = 1; */ - public java.lang.String getComponentId() { - java.lang.Object ref = componentId_; - 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()) { - componentId_ = s; - } - return s; + public java.util.List getCommentsList() { + if (commentsBuilder_ == null) { + return java.util.Collections.unmodifiableList(comments_); } else { - return (java.lang.String) ref; + return commentsBuilder_.getMessageList(); } } /** - * optional string componentId = 1; + * repeated .sonarqube.ws.issues.Comment comments = 1; */ - public com.google.protobuf.ByteString - getComponentIdBytes() { - java.lang.Object ref = componentId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - componentId_ = b; - return b; + public int getCommentsCount() { + if (commentsBuilder_ == null) { + return comments_.size(); } else { - return (com.google.protobuf.ByteString) ref; + return commentsBuilder_.getCount(); } } /** - * optional string componentId = 1; - */ - public Builder setComponentId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - componentId_ = value; - onChanged(); - return this; - } - /** - * optional string componentId = 1; + * repeated .sonarqube.ws.issues.Comment comments = 1; */ - public Builder clearComponentId() { - bitField0_ = (bitField0_ & ~0x00000001); - componentId_ = getDefaultInstance().getComponentId(); - onChanged(); - return this; + public org.sonarqube.ws.Issues.Comment getComments(int index) { + if (commentsBuilder_ == null) { + return comments_.get(index); + } else { + return commentsBuilder_.getMessage(index); + } } /** - * optional string componentId = 1; + * repeated .sonarqube.ws.issues.Comment comments = 1; */ - public Builder setComponentIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - componentId_ = value; - onChanged(); + public Builder setComments( + int index, org.sonarqube.ws.Issues.Comment value) { + if (commentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCommentsIsMutable(); + comments_.set(index, value); + onChanged(); + } else { + commentsBuilder_.setMessage(index, value); + } return this; } - - private org.sonarqube.ws.Common.TextRange textRange_ = null; - private com.google.protobuf.SingleFieldBuilder< - org.sonarqube.ws.Common.TextRange, org.sonarqube.ws.Common.TextRange.Builder, org.sonarqube.ws.Common.TextRangeOrBuilder> textRangeBuilder_; - /** - * optional .sonarqube.ws.commons.TextRange textRange = 2; - * - *
-       * Only when component is a file. Can be empty for a file if this is an issue global to the file.
-       * 
- */ - public boolean hasTextRange() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } /** - * optional .sonarqube.ws.commons.TextRange textRange = 2; - * - *
-       * Only when component is a file. Can be empty for a file if this is an issue global to the file.
-       * 
+ * repeated .sonarqube.ws.issues.Comment comments = 1; */ - public org.sonarqube.ws.Common.TextRange getTextRange() { - if (textRangeBuilder_ == null) { - return textRange_ == null ? org.sonarqube.ws.Common.TextRange.getDefaultInstance() : textRange_; + public Builder setComments( + int index, org.sonarqube.ws.Issues.Comment.Builder builderForValue) { + if (commentsBuilder_ == null) { + ensureCommentsIsMutable(); + comments_.set(index, builderForValue.build()); + onChanged(); } else { - return textRangeBuilder_.getMessage(); + commentsBuilder_.setMessage(index, builderForValue.build()); } + return this; } /** - * optional .sonarqube.ws.commons.TextRange textRange = 2; - * - *
-       * Only when component is a file. Can be empty for a file if this is an issue global to the file.
-       * 
+ * repeated .sonarqube.ws.issues.Comment comments = 1; */ - public Builder setTextRange(org.sonarqube.ws.Common.TextRange value) { - if (textRangeBuilder_ == null) { + public Builder addComments(org.sonarqube.ws.Issues.Comment value) { + if (commentsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - textRange_ = value; + ensureCommentsIsMutable(); + comments_.add(value); onChanged(); } else { - textRangeBuilder_.setMessage(value); + commentsBuilder_.addMessage(value); } - bitField0_ |= 0x00000002; return this; } /** - * optional .sonarqube.ws.commons.TextRange textRange = 2; - * - *
-       * Only when component is a file. Can be empty for a file if this is an issue global to the file.
-       * 
+ * repeated .sonarqube.ws.issues.Comment comments = 1; */ - public Builder setTextRange( - org.sonarqube.ws.Common.TextRange.Builder builderForValue) { - if (textRangeBuilder_ == null) { - textRange_ = builderForValue.build(); + public Builder addComments( + int index, org.sonarqube.ws.Issues.Comment value) { + if (commentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCommentsIsMutable(); + comments_.add(index, value); onChanged(); } else { - textRangeBuilder_.setMessage(builderForValue.build()); + commentsBuilder_.addMessage(index, value); } - bitField0_ |= 0x00000002; return this; } /** - * optional .sonarqube.ws.commons.TextRange textRange = 2; - * - *
-       * Only when component is a file. Can be empty for a file if this is an issue global to the file.
-       * 
+ * repeated .sonarqube.ws.issues.Comment comments = 1; */ - public Builder mergeTextRange(org.sonarqube.ws.Common.TextRange value) { - if (textRangeBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002) && - textRange_ != null && - textRange_ != org.sonarqube.ws.Common.TextRange.getDefaultInstance()) { - textRange_ = - org.sonarqube.ws.Common.TextRange.newBuilder(textRange_).mergeFrom(value).buildPartial(); - } else { - textRange_ = value; - } + public Builder addComments( + org.sonarqube.ws.Issues.Comment.Builder builderForValue) { + if (commentsBuilder_ == null) { + ensureCommentsIsMutable(); + comments_.add(builderForValue.build()); onChanged(); } else { - textRangeBuilder_.mergeFrom(value); + commentsBuilder_.addMessage(builderForValue.build()); } - bitField0_ |= 0x00000002; return this; } /** - * optional .sonarqube.ws.commons.TextRange textRange = 2; - * - *
-       * Only when component is a file. Can be empty for a file if this is an issue global to the file.
-       * 
+ * repeated .sonarqube.ws.issues.Comment comments = 1; */ - public Builder clearTextRange() { - if (textRangeBuilder_ == null) { - textRange_ = null; + public Builder addComments( + int index, org.sonarqube.ws.Issues.Comment.Builder builderForValue) { + if (commentsBuilder_ == null) { + ensureCommentsIsMutable(); + comments_.add(index, builderForValue.build()); onChanged(); } else { - textRangeBuilder_.clear(); + commentsBuilder_.addMessage(index, builderForValue.build()); } - bitField0_ = (bitField0_ & ~0x00000002); return this; } /** - * optional .sonarqube.ws.commons.TextRange textRange = 2; - * - *
-       * Only when component is a file. Can be empty for a file if this is an issue global to the file.
-       * 
+ * repeated .sonarqube.ws.issues.Comment comments = 1; */ - public org.sonarqube.ws.Common.TextRange.Builder getTextRangeBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getTextRangeFieldBuilder().getBuilder(); + public Builder addAllComments( + java.lang.Iterable values) { + if (commentsBuilder_ == null) { + ensureCommentsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, comments_); + onChanged(); + } else { + commentsBuilder_.addAllMessages(values); + } + return this; } /** - * optional .sonarqube.ws.commons.TextRange textRange = 2; - * - *
-       * Only when component is a file. Can be empty for a file if this is an issue global to the file.
-       * 
+ * repeated .sonarqube.ws.issues.Comment comments = 1; */ - public org.sonarqube.ws.Common.TextRangeOrBuilder getTextRangeOrBuilder() { - if (textRangeBuilder_ != null) { - return textRangeBuilder_.getMessageOrBuilder(); + public Builder clearComments() { + if (commentsBuilder_ == null) { + comments_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); } else { - return textRange_ == null ? - org.sonarqube.ws.Common.TextRange.getDefaultInstance() : textRange_; + commentsBuilder_.clear(); } + return this; } /** - * optional .sonarqube.ws.commons.TextRange textRange = 2; - * - *
-       * Only when component is a file. Can be empty for a file if this is an issue global to the file.
-       * 
+ * repeated .sonarqube.ws.issues.Comment comments = 1; */ - private com.google.protobuf.SingleFieldBuilder< - org.sonarqube.ws.Common.TextRange, org.sonarqube.ws.Common.TextRange.Builder, org.sonarqube.ws.Common.TextRangeOrBuilder> - getTextRangeFieldBuilder() { - if (textRangeBuilder_ == null) { - textRangeBuilder_ = new com.google.protobuf.SingleFieldBuilder< - org.sonarqube.ws.Common.TextRange, org.sonarqube.ws.Common.TextRange.Builder, org.sonarqube.ws.Common.TextRangeOrBuilder>( - getTextRange(), - getParentForChildren(), - isClean()); - textRange_ = null; + public Builder removeComments(int index) { + if (commentsBuilder_ == null) { + ensureCommentsIsMutable(); + comments_.remove(index); + onChanged(); + } else { + commentsBuilder_.remove(index); } - return textRangeBuilder_; + return this; } - - private java.lang.Object msg_ = ""; /** - * optional string msg = 3; + * repeated .sonarqube.ws.issues.Comment comments = 1; */ - public boolean hasMsg() { - return ((bitField0_ & 0x00000004) == 0x00000004); + public org.sonarqube.ws.Issues.Comment.Builder getCommentsBuilder( + int index) { + return getCommentsFieldBuilder().getBuilder(index); } /** - * optional string msg = 3; + * repeated .sonarqube.ws.issues.Comment comments = 1; */ - public java.lang.String getMsg() { - java.lang.Object ref = msg_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - msg_ = s; - } - return s; - } else { - return (java.lang.String) ref; + public org.sonarqube.ws.Issues.CommentOrBuilder getCommentsOrBuilder( + int index) { + if (commentsBuilder_ == null) { + return comments_.get(index); } else { + return commentsBuilder_.getMessageOrBuilder(index); } } /** - * optional string msg = 3; + * repeated .sonarqube.ws.issues.Comment comments = 1; */ - public com.google.protobuf.ByteString - getMsgBytes() { - java.lang.Object ref = msg_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - msg_ = b; - return b; + public java.util.List + getCommentsOrBuilderList() { + if (commentsBuilder_ != null) { + return commentsBuilder_.getMessageOrBuilderList(); } else { - return (com.google.protobuf.ByteString) ref; + return java.util.Collections.unmodifiableList(comments_); } } /** - * optional string msg = 3; + * repeated .sonarqube.ws.issues.Comment comments = 1; */ - public Builder setMsg( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - msg_ = value; - onChanged(); - return this; + public org.sonarqube.ws.Issues.Comment.Builder addCommentsBuilder() { + return getCommentsFieldBuilder().addBuilder( + org.sonarqube.ws.Issues.Comment.getDefaultInstance()); } /** - * optional string msg = 3; + * repeated .sonarqube.ws.issues.Comment comments = 1; */ - public Builder clearMsg() { - bitField0_ = (bitField0_ & ~0x00000004); - msg_ = getDefaultInstance().getMsg(); - onChanged(); - return this; + public org.sonarqube.ws.Issues.Comment.Builder addCommentsBuilder( + int index) { + return getCommentsFieldBuilder().addBuilder( + index, org.sonarqube.ws.Issues.Comment.getDefaultInstance()); } /** - * optional string msg = 3; + * repeated .sonarqube.ws.issues.Comment comments = 1; */ - public Builder setMsgBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - msg_ = value; - onChanged(); - return this; + public java.util.List + getCommentsBuilderList() { + return getCommentsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + org.sonarqube.ws.Issues.Comment, org.sonarqube.ws.Issues.Comment.Builder, org.sonarqube.ws.Issues.CommentOrBuilder> + getCommentsFieldBuilder() { + if (commentsBuilder_ == null) { + commentsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + org.sonarqube.ws.Issues.Comment, org.sonarqube.ws.Issues.Comment.Builder, org.sonarqube.ws.Issues.CommentOrBuilder>( + comments_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + comments_ = null; + } + return commentsBuilder_; } - // @@protoc_insertion_point(builder_scope:sonarqube.ws.issues.Location) + // @@protoc_insertion_point(builder_scope:sonarqube.ws.issues.Comments) } - // @@protoc_insertion_point(class_scope:sonarqube.ws.issues.Location) - private static final org.sonarqube.ws.Issues.Location DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:sonarqube.ws.issues.Comments) + private static final org.sonarqube.ws.Issues.Comments DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new org.sonarqube.ws.Issues.Location(); + DEFAULT_INSTANCE = new org.sonarqube.ws.Issues.Comments(); } - public static org.sonarqube.ws.Issues.Location getDefaultInstance() { + public static org.sonarqube.ws.Issues.Comments getDefaultInstance() { return DEFAULT_INSTANCE; } - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Location parsePartialFrom( + public static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public Comments parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { try { - return new Location(input, extensionRegistry); + return new Comments(input, extensionRegistry); } catch (RuntimeException e) { if (e.getCause() instanceof com.google.protobuf.InvalidProtocolBufferException) { @@ -12381,18 +14027,18 @@ public final class Issues { }; @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } - public org.sonarqube.ws.Issues.Location getDefaultInstanceForType() { + public org.sonarqube.ws.Issues.Comments getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface CommentOrBuilder extends - // @@protoc_insertion_point(interface_extends:sonarqube.ws.issues.Comment) + public interface ActionPlanOrBuilder extends + // @@protoc_insertion_point(interface_extends:sonarqube.ws.issues.ActionPlan) com.google.protobuf.MessageOrBuilder { /** @@ -12410,154 +14056,102 @@ public final class Issues { getKeyBytes(); /** - * optional string login = 2; - */ - boolean hasLogin(); - /** - * optional string login = 2; - */ - java.lang.String getLogin(); - /** - * optional string login = 2; - */ - com.google.protobuf.ByteString - getLoginBytes(); - - /** - * optional string email = 3; - * - *
-     * TODO drop, it's already in field "users"
-     * 
- */ - boolean hasEmail(); - /** - * optional string email = 3; - * - *
-     * TODO drop, it's already in field "users"
-     * 
- */ - java.lang.String getEmail(); - /** - * optional string email = 3; - * - *
-     * TODO drop, it's already in field "users"
-     * 
- */ - com.google.protobuf.ByteString - getEmailBytes(); - - /** - * optional string userName = 4; - * - *
-     * TODO drop, it's already in field "users"
-     * 
- */ - boolean hasUserName(); - /** - * optional string userName = 4; - * - *
-     * TODO drop, it's already in field "users"
-     * 
- */ - java.lang.String getUserName(); - /** - * optional string userName = 4; - * - *
-     * TODO drop, it's already in field "users"
-     * 
- */ - com.google.protobuf.ByteString - getUserNameBytes(); - - /** - * optional string htmlText = 5; + * optional string name = 2; */ - boolean hasHtmlText(); + boolean hasName(); /** - * optional string htmlText = 5; + * optional string name = 2; */ - java.lang.String getHtmlText(); + java.lang.String getName(); /** - * optional string htmlText = 5; + * optional string name = 2; */ com.google.protobuf.ByteString - getHtmlTextBytes(); + getNameBytes(); /** - * optional string markdown = 6; + * optional string status = 3; * *
-     * TODO rename markdownText ?
+     * TODO define enum
      * 
*/ - boolean hasMarkdown(); + boolean hasStatus(); /** - * optional string markdown = 6; + * optional string status = 3; * *
-     * TODO rename markdownText ?
+     * TODO define enum
      * 
*/ - java.lang.String getMarkdown(); + java.lang.String getStatus(); /** - * optional string markdown = 6; + * optional string status = 3; * *
-     * TODO rename markdownText ?
+     * TODO define enum
      * 
*/ com.google.protobuf.ByteString - getMarkdownBytes(); + getStatusBytes(); /** - * optional bool updatable = 7; + * optional string deadLine = 4; */ - boolean hasUpdatable(); + boolean hasDeadLine(); /** - * optional bool updatable = 7; + * optional string deadLine = 4; */ - boolean getUpdatable(); + java.lang.String getDeadLine(); + /** + * optional string deadLine = 4; + */ + com.google.protobuf.ByteString + getDeadLineBytes(); /** - * optional string createdAt = 8; + * optional string project = 5; + * + *
+     * TODO to be renamed, is it id or key ?
+     * 
*/ - boolean hasCreatedAt(); + boolean hasProject(); /** - * optional string createdAt = 8; + * optional string project = 5; + * + *
+     * TODO to be renamed, is it id or key ?
+     * 
*/ - java.lang.String getCreatedAt(); + java.lang.String getProject(); /** - * optional string createdAt = 8; + * optional string project = 5; + * + *
+     * TODO to be renamed, is it id or key ?
+     * 
*/ com.google.protobuf.ByteString - getCreatedAtBytes(); + getProjectBytes(); } /** - * Protobuf type {@code sonarqube.ws.issues.Comment} + * Protobuf type {@code sonarqube.ws.issues.ActionPlan} */ - public static final class Comment extends + public static final class ActionPlan extends com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:sonarqube.ws.issues.Comment) - CommentOrBuilder { - // Use Comment.newBuilder() to construct. - private Comment(com.google.protobuf.GeneratedMessage.Builder builder) { + // @@protoc_insertion_point(message_implements:sonarqube.ws.issues.ActionPlan) + ActionPlanOrBuilder { + // Use ActionPlan.newBuilder() to construct. + private ActionPlan(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } - private Comment() { + private ActionPlan() { key_ = ""; - login_ = ""; - email_ = ""; - userName_ = ""; - htmlText_ = ""; - markdown_ = ""; - updatable_ = false; - createdAt_ = ""; + name_ = ""; + status_ = ""; + deadLine_ = ""; + project_ = ""; } @java.lang.Override @@ -12565,7 +14159,7 @@ public final class Issues { getUnknownFields() { return this.unknownFields; } - private Comment( + private ActionPlan( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) { this(); @@ -12596,42 +14190,25 @@ public final class Issues { case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; - login_ = bs; + name_ = bs; break; } case 26: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000004; - email_ = bs; + status_ = bs; break; } case 34: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000008; - userName_ = bs; + deadLine_ = bs; break; } case 42: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000010; - htmlText_ = bs; - break; - } - case 50: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000020; - markdown_ = bs; - break; - } - case 56: { - bitField0_ |= 0x00000040; - updatable_ = input.readBool(); - break; - } - case 66: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000080; - createdAt_ = bs; + project_ = bs; break; } } @@ -12649,14 +14226,14 @@ public final class Issues { } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Comment_descriptor; + return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_ActionPlan_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Comment_fieldAccessorTable + return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_ActionPlan_fieldAccessorTable .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Issues.Comment.class, org.sonarqube.ws.Issues.Comment.Builder.class); + org.sonarqube.ws.Issues.ActionPlan.class, org.sonarqube.ws.Issues.ActionPlan.Builder.class); } private int bitField0_; @@ -12680,191 +14257,41 @@ public final class Issues { (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { - key_ = s; - } - return s; - } - } - /** - * optional string key = 1; - */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int LOGIN_FIELD_NUMBER = 2; - private volatile java.lang.Object login_; - /** - * optional string login = 2; - */ - public boolean hasLogin() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string login = 2; - */ - public java.lang.String getLogin() { - java.lang.Object ref = login_; - 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()) { - login_ = s; - } - return s; - } - } - /** - * optional string login = 2; - */ - public com.google.protobuf.ByteString - getLoginBytes() { - java.lang.Object ref = login_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - login_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int EMAIL_FIELD_NUMBER = 3; - private volatile java.lang.Object email_; - /** - * optional string email = 3; - * - *
-     * TODO drop, it's already in field "users"
-     * 
- */ - public boolean hasEmail() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional string email = 3; - * - *
-     * TODO drop, it's already in field "users"
-     * 
- */ - public java.lang.String getEmail() { - java.lang.Object ref = email_; - 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()) { - email_ = s; - } - return s; - } - } - /** - * optional string email = 3; - * - *
-     * TODO drop, it's already in field "users"
-     * 
- */ - public com.google.protobuf.ByteString - getEmailBytes() { - java.lang.Object ref = email_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - email_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int USERNAME_FIELD_NUMBER = 4; - private volatile java.lang.Object userName_; - /** - * optional string userName = 4; - * - *
-     * TODO drop, it's already in field "users"
-     * 
- */ - public boolean hasUserName() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional string userName = 4; - * - *
-     * TODO drop, it's already in field "users"
-     * 
- */ - public java.lang.String getUserName() { - java.lang.Object ref = userName_; - 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()) { - userName_ = s; + key_ = s; } return s; } } /** - * optional string userName = 4; - * - *
-     * TODO drop, it's already in field "users"
-     * 
+ * optional string key = 1; */ public com.google.protobuf.ByteString - getUserNameBytes() { - java.lang.Object ref = userName_; + getKeyBytes() { + java.lang.Object ref = key_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - userName_ = b; + key_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - public static final int HTMLTEXT_FIELD_NUMBER = 5; - private volatile java.lang.Object htmlText_; + public static final int NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object name_; /** - * optional string htmlText = 5; + * optional string name = 2; */ - public boolean hasHtmlText() { - return ((bitField0_ & 0x00000010) == 0x00000010); + public boolean hasName() { + return ((bitField0_ & 0x00000002) == 0x00000002); } /** - * optional string htmlText = 5; + * optional string name = 2; */ - public java.lang.String getHtmlText() { - java.lang.Object ref = htmlText_; + public java.lang.String getName() { + java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { @@ -12872,49 +14299,49 @@ public final class Issues { (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { - htmlText_ = s; + name_ = s; } return s; } } /** - * optional string htmlText = 5; + * optional string name = 2; */ public com.google.protobuf.ByteString - getHtmlTextBytes() { - java.lang.Object ref = htmlText_; + getNameBytes() { + java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - htmlText_ = b; + name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - public static final int MARKDOWN_FIELD_NUMBER = 6; - private volatile java.lang.Object markdown_; + public static final int STATUS_FIELD_NUMBER = 3; + private volatile java.lang.Object status_; /** - * optional string markdown = 6; + * optional string status = 3; * *
-     * TODO rename markdownText ?
+     * TODO define enum
      * 
*/ - public boolean hasMarkdown() { - return ((bitField0_ & 0x00000020) == 0x00000020); + public boolean hasStatus() { + return ((bitField0_ & 0x00000004) == 0x00000004); } /** - * optional string markdown = 6; + * optional string status = 3; * *
-     * TODO rename markdownText ?
+     * TODO define enum
      * 
*/ - public java.lang.String getMarkdown() { - java.lang.Object ref = markdown_; + public java.lang.String getStatus() { + java.lang.Object ref = status_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { @@ -12922,60 +14349,95 @@ public final class Issues { (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { - markdown_ = s; + status_ = s; } return s; } } /** - * optional string markdown = 6; + * optional string status = 3; * *
-     * TODO rename markdownText ?
+     * TODO define enum
      * 
*/ public com.google.protobuf.ByteString - getMarkdownBytes() { - java.lang.Object ref = markdown_; + getStatusBytes() { + java.lang.Object ref = status_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - markdown_ = b; + status_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - public static final int UPDATABLE_FIELD_NUMBER = 7; - private boolean updatable_; + public static final int DEADLINE_FIELD_NUMBER = 4; + private volatile java.lang.Object deadLine_; /** - * optional bool updatable = 7; + * optional string deadLine = 4; */ - public boolean hasUpdatable() { - return ((bitField0_ & 0x00000040) == 0x00000040); + public boolean hasDeadLine() { + return ((bitField0_ & 0x00000008) == 0x00000008); } /** - * optional bool updatable = 7; + * optional string deadLine = 4; */ - public boolean getUpdatable() { - return updatable_; + public java.lang.String getDeadLine() { + java.lang.Object ref = deadLine_; + 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()) { + deadLine_ = s; + } + return s; + } + } + /** + * optional string deadLine = 4; + */ + public com.google.protobuf.ByteString + getDeadLineBytes() { + java.lang.Object ref = deadLine_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + deadLine_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - public static final int CREATEDAT_FIELD_NUMBER = 8; - private volatile java.lang.Object createdAt_; + public static final int PROJECT_FIELD_NUMBER = 5; + private volatile java.lang.Object project_; /** - * optional string createdAt = 8; + * optional string project = 5; + * + *
+     * TODO to be renamed, is it id or key ?
+     * 
*/ - public boolean hasCreatedAt() { - return ((bitField0_ & 0x00000080) == 0x00000080); + public boolean hasProject() { + return ((bitField0_ & 0x00000010) == 0x00000010); } /** - * optional string createdAt = 8; + * optional string project = 5; + * + *
+     * TODO to be renamed, is it id or key ?
+     * 
*/ - public java.lang.String getCreatedAt() { - java.lang.Object ref = createdAt_; + public java.lang.String getProject() { + java.lang.Object ref = project_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { @@ -12983,22 +14445,26 @@ public final class Issues { (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { - createdAt_ = s; + project_ = s; } return s; } } /** - * optional string createdAt = 8; + * optional string project = 5; + * + *
+     * TODO to be renamed, is it id or key ?
+     * 
*/ public com.google.protobuf.ByteString - getCreatedAtBytes() { - java.lang.Object ref = createdAt_; + getProjectBytes() { + java.lang.Object ref = project_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - createdAt_ = b; + project_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -13021,25 +14487,16 @@ public final class Issues { output.writeBytes(1, getKeyBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getLoginBytes()); + output.writeBytes(2, getNameBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, getEmailBytes()); + output.writeBytes(3, getStatusBytes()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeBytes(4, getUserNameBytes()); + output.writeBytes(4, getDeadLineBytes()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeBytes(5, getHtmlTextBytes()); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - output.writeBytes(6, getMarkdownBytes()); - } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - output.writeBool(7, updatable_); - } - if (((bitField0_ & 0x00000080) == 0x00000080)) { - output.writeBytes(8, getCreatedAtBytes()); + output.writeBytes(5, getProjectBytes()); } unknownFields.writeTo(output); } @@ -13056,31 +14513,19 @@ public final class Issues { } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getLoginBytes()); + .computeBytesSize(2, getNameBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getEmailBytes()); + .computeBytesSize(3, getStatusBytes()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, getUserNameBytes()); + .computeBytesSize(4, getDeadLineBytes()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream - .computeBytesSize(5, getHtmlTextBytes()); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(6, getMarkdownBytes()); - } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(7, updatable_); - } - if (((bitField0_ & 0x00000080) == 0x00000080)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(8, getCreatedAtBytes()); + .computeBytesSize(5, getProjectBytes()); } size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; @@ -13088,53 +14533,53 @@ public final class Issues { } private static final long serialVersionUID = 0L; - public static org.sonarqube.ws.Issues.Comment parseFrom( + public static org.sonarqube.ws.Issues.ActionPlan parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.sonarqube.ws.Issues.Comment parseFrom( + public static org.sonarqube.ws.Issues.ActionPlan 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.Comment parseFrom(byte[] data) + public static org.sonarqube.ws.Issues.ActionPlan parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.sonarqube.ws.Issues.Comment parseFrom( + public static org.sonarqube.ws.Issues.ActionPlan parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.sonarqube.ws.Issues.Comment parseFrom(java.io.InputStream input) + public static org.sonarqube.ws.Issues.ActionPlan parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } - public static org.sonarqube.ws.Issues.Comment parseFrom( + public static org.sonarqube.ws.Issues.ActionPlan 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.Comment parseDelimitedFrom(java.io.InputStream input) + public static org.sonarqube.ws.Issues.ActionPlan parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } - public static org.sonarqube.ws.Issues.Comment parseDelimitedFrom( + public static org.sonarqube.ws.Issues.ActionPlan 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.Comment parseFrom( + public static org.sonarqube.ws.Issues.ActionPlan parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } - public static org.sonarqube.ws.Issues.Comment parseFrom( + public static org.sonarqube.ws.Issues.ActionPlan parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -13145,7 +14590,7 @@ public final class Issues { public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(org.sonarqube.ws.Issues.Comment prototype) { + public static Builder newBuilder(org.sonarqube.ws.Issues.ActionPlan prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { @@ -13160,25 +14605,25 @@ public final class Issues { return builder; } /** - * Protobuf type {@code sonarqube.ws.issues.Comment} + * Protobuf type {@code sonarqube.ws.issues.ActionPlan} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:sonarqube.ws.issues.Comment) - org.sonarqube.ws.Issues.CommentOrBuilder { + // @@protoc_insertion_point(builder_implements:sonarqube.ws.issues.ActionPlan) + org.sonarqube.ws.Issues.ActionPlanOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Comment_descriptor; + return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_ActionPlan_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Comment_fieldAccessorTable + return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_ActionPlan_fieldAccessorTable .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Issues.Comment.class, org.sonarqube.ws.Issues.Comment.Builder.class); + org.sonarqube.ws.Issues.ActionPlan.class, org.sonarqube.ws.Issues.ActionPlan.Builder.class); } - // Construct using org.sonarqube.ws.Issues.Comment.newBuilder() + // Construct using org.sonarqube.ws.Issues.ActionPlan.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -13196,42 +14641,36 @@ public final class Issues { super.clear(); key_ = ""; bitField0_ = (bitField0_ & ~0x00000001); - login_ = ""; + name_ = ""; bitField0_ = (bitField0_ & ~0x00000002); - email_ = ""; + status_ = ""; bitField0_ = (bitField0_ & ~0x00000004); - userName_ = ""; + deadLine_ = ""; bitField0_ = (bitField0_ & ~0x00000008); - htmlText_ = ""; + project_ = ""; bitField0_ = (bitField0_ & ~0x00000010); - markdown_ = ""; - bitField0_ = (bitField0_ & ~0x00000020); - updatable_ = false; - bitField0_ = (bitField0_ & ~0x00000040); - createdAt_ = ""; - bitField0_ = (bitField0_ & ~0x00000080); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Comment_descriptor; + return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_ActionPlan_descriptor; } - public org.sonarqube.ws.Issues.Comment getDefaultInstanceForType() { - return org.sonarqube.ws.Issues.Comment.getDefaultInstance(); + public org.sonarqube.ws.Issues.ActionPlan getDefaultInstanceForType() { + return org.sonarqube.ws.Issues.ActionPlan.getDefaultInstance(); } - public org.sonarqube.ws.Issues.Comment build() { - org.sonarqube.ws.Issues.Comment result = buildPartial(); + public org.sonarqube.ws.Issues.ActionPlan build() { + org.sonarqube.ws.Issues.ActionPlan result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } - public org.sonarqube.ws.Issues.Comment buildPartial() { - org.sonarqube.ws.Issues.Comment result = new org.sonarqube.ws.Issues.Comment(this); + public org.sonarqube.ws.Issues.ActionPlan buildPartial() { + org.sonarqube.ws.Issues.ActionPlan result = new org.sonarqube.ws.Issues.ActionPlan(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { @@ -13241,83 +14680,58 @@ public final class Issues { if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } - result.login_ = login_; + result.name_ = name_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } - result.email_ = email_; + result.status_ = status_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } - result.userName_ = userName_; + result.deadLine_ = deadLine_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } - result.htmlText_ = htmlText_; - if (((from_bitField0_ & 0x00000020) == 0x00000020)) { - to_bitField0_ |= 0x00000020; - } - result.markdown_ = markdown_; - if (((from_bitField0_ & 0x00000040) == 0x00000040)) { - to_bitField0_ |= 0x00000040; - } - result.updatable_ = updatable_; - if (((from_bitField0_ & 0x00000080) == 0x00000080)) { - to_bitField0_ |= 0x00000080; - } - result.createdAt_ = createdAt_; + result.project_ = project_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonarqube.ws.Issues.Comment) { - return mergeFrom((org.sonarqube.ws.Issues.Comment)other); + if (other instanceof org.sonarqube.ws.Issues.ActionPlan) { + return mergeFrom((org.sonarqube.ws.Issues.ActionPlan)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(org.sonarqube.ws.Issues.Comment other) { - if (other == org.sonarqube.ws.Issues.Comment.getDefaultInstance()) return this; + public Builder mergeFrom(org.sonarqube.ws.Issues.ActionPlan other) { + if (other == org.sonarqube.ws.Issues.ActionPlan.getDefaultInstance()) return this; if (other.hasKey()) { bitField0_ |= 0x00000001; key_ = other.key_; onChanged(); } - if (other.hasLogin()) { + if (other.hasName()) { bitField0_ |= 0x00000002; - login_ = other.login_; + name_ = other.name_; onChanged(); } - if (other.hasEmail()) { + if (other.hasStatus()) { bitField0_ |= 0x00000004; - email_ = other.email_; + status_ = other.status_; onChanged(); } - if (other.hasUserName()) { + if (other.hasDeadLine()) { bitField0_ |= 0x00000008; - userName_ = other.userName_; + deadLine_ = other.deadLine_; onChanged(); } - if (other.hasHtmlText()) { + if (other.hasProject()) { bitField0_ |= 0x00000010; - htmlText_ = other.htmlText_; - onChanged(); - } - if (other.hasMarkdown()) { - bitField0_ |= 0x00000020; - markdown_ = other.markdown_; - onChanged(); - } - if (other.hasUpdatable()) { - setUpdatable(other.getUpdatable()); - } - if (other.hasCreatedAt()) { - bitField0_ |= 0x00000080; - createdAt_ = other.createdAt_; + project_ = other.project_; onChanged(); } this.mergeUnknownFields(other.unknownFields); @@ -13333,11 +14747,11 @@ public final class Issues { com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - org.sonarqube.ws.Issues.Comment parsedMessage = null; + org.sonarqube.ws.Issues.ActionPlan parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonarqube.ws.Issues.Comment) e.getUnfinishedMessage(); + parsedMessage = (org.sonarqube.ws.Issues.ActionPlan) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { @@ -13424,24 +14838,24 @@ public final class Issues { return this; } - private java.lang.Object login_ = ""; + private java.lang.Object name_ = ""; /** - * optional string login = 2; + * optional string name = 2; */ - public boolean hasLogin() { + public boolean hasName() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** - * optional string login = 2; + * optional string name = 2; */ - public java.lang.String getLogin() { - java.lang.Object ref = login_; + public java.lang.String getName() { + java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { - login_ = s; + name_ = s; } return s; } else { @@ -13449,83 +14863,259 @@ public final class Issues { } } /** - * optional string login = 2; + * optional string name = 2; */ public com.google.protobuf.ByteString - getLoginBytes() { - java.lang.Object ref = login_; + getNameBytes() { + java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - login_ = b; + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string name = 2; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + name_ = value; + onChanged(); + return this; + } + /** + * optional string name = 2; + */ + public Builder clearName() { + bitField0_ = (bitField0_ & ~0x00000002); + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * optional string name = 2; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object status_ = ""; + /** + * optional string status = 3; + * + *
+       * TODO define enum
+       * 
+ */ + public boolean hasStatus() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional string status = 3; + * + *
+       * TODO define enum
+       * 
+ */ + public java.lang.String getStatus() { + java.lang.Object ref = status_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + status_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string status = 3; + * + *
+       * TODO define enum
+       * 
+ */ + public com.google.protobuf.ByteString + getStatusBytes() { + java.lang.Object ref = status_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + status_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string status = 3; + * + *
+       * TODO define enum
+       * 
+ */ + public Builder setStatus( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + status_ = value; + onChanged(); + return this; + } + /** + * optional string status = 3; + * + *
+       * TODO define enum
+       * 
+ */ + public Builder clearStatus() { + bitField0_ = (bitField0_ & ~0x00000004); + status_ = getDefaultInstance().getStatus(); + onChanged(); + return this; + } + /** + * optional string status = 3; + * + *
+       * TODO define enum
+       * 
+ */ + public Builder setStatusBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + status_ = value; + onChanged(); + return this; + } + + private java.lang.Object deadLine_ = ""; + /** + * optional string deadLine = 4; + */ + public boolean hasDeadLine() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + * optional string deadLine = 4; + */ + public java.lang.String getDeadLine() { + java.lang.Object ref = deadLine_; + 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()) { + deadLine_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string deadLine = 4; + */ + public com.google.protobuf.ByteString + getDeadLineBytes() { + java.lang.Object ref = deadLine_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + deadLine_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** - * optional string login = 2; + * optional string deadLine = 4; */ - public Builder setLogin( + public Builder setDeadLine( java.lang.String value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000002; - login_ = value; + bitField0_ |= 0x00000008; + deadLine_ = value; onChanged(); return this; } /** - * optional string login = 2; + * optional string deadLine = 4; */ - public Builder clearLogin() { - bitField0_ = (bitField0_ & ~0x00000002); - login_ = getDefaultInstance().getLogin(); + public Builder clearDeadLine() { + bitField0_ = (bitField0_ & ~0x00000008); + deadLine_ = getDefaultInstance().getDeadLine(); onChanged(); return this; } /** - * optional string login = 2; + * optional string deadLine = 4; */ - public Builder setLoginBytes( + public Builder setDeadLineBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000002; - login_ = value; + bitField0_ |= 0x00000008; + deadLine_ = value; onChanged(); return this; } - private java.lang.Object email_ = ""; + private java.lang.Object project_ = ""; /** - * optional string email = 3; + * optional string project = 5; * *
-       * TODO drop, it's already in field "users"
+       * TODO to be renamed, is it id or key ?
        * 
*/ - public boolean hasEmail() { - return ((bitField0_ & 0x00000004) == 0x00000004); + public boolean hasProject() { + return ((bitField0_ & 0x00000010) == 0x00000010); } /** - * optional string email = 3; + * optional string project = 5; * *
-       * TODO drop, it's already in field "users"
+       * TODO to be renamed, is it id or key ?
        * 
*/ - public java.lang.String getEmail() { - java.lang.Object ref = email_; + public java.lang.String getProject() { + java.lang.Object ref = project_; 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()) { - email_ = s; + project_ = s; } return s; } else { @@ -13533,478 +15123,766 @@ public final class Issues { } } /** - * optional string email = 3; + * optional string project = 5; * *
-       * TODO drop, it's already in field "users"
+       * TODO to be renamed, is it id or key ?
        * 
*/ public com.google.protobuf.ByteString - getEmailBytes() { - java.lang.Object ref = email_; + getProjectBytes() { + java.lang.Object ref = project_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - email_ = b; + project_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - /** - * optional string email = 3; - * - *
-       * TODO drop, it's already in field "users"
-       * 
- */ - public Builder setEmail( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - email_ = value; - onChanged(); - return this; + /** + * optional string project = 5; + * + *
+       * TODO to be renamed, is it id or key ?
+       * 
+ */ + public Builder setProject( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + project_ = value; + onChanged(); + return this; + } + /** + * optional string project = 5; + * + *
+       * TODO to be renamed, is it id or key ?
+       * 
+ */ + public Builder clearProject() { + bitField0_ = (bitField0_ & ~0x00000010); + project_ = getDefaultInstance().getProject(); + onChanged(); + return this; + } + /** + * optional string project = 5; + * + *
+       * TODO to be renamed, is it id or key ?
+       * 
+ */ + public Builder setProjectBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + project_ = value; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:sonarqube.ws.issues.ActionPlan) + } + + // @@protoc_insertion_point(class_scope:sonarqube.ws.issues.ActionPlan) + private static final org.sonarqube.ws.Issues.ActionPlan DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.sonarqube.ws.Issues.ActionPlan(); + } + + public static org.sonarqube.ws.Issues.ActionPlan getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + public static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public ActionPlan parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + try { + return new ActionPlan(input, extensionRegistry); + } catch (RuntimeException e) { + if (e.getCause() instanceof + com.google.protobuf.InvalidProtocolBufferException) { + throw (com.google.protobuf.InvalidProtocolBufferException) + e.getCause(); + } + throw e; + } + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public org.sonarqube.ws.Issues.ActionPlan getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ActionPlansOrBuilder extends + // @@protoc_insertion_point(interface_extends:sonarqube.ws.issues.ActionPlans) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 1; + */ + java.util.List + getActionPlansList(); + /** + * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 1; + */ + org.sonarqube.ws.Issues.ActionPlan getActionPlans(int index); + /** + * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 1; + */ + int getActionPlansCount(); + /** + * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 1; + */ + java.util.List + getActionPlansOrBuilderList(); + /** + * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 1; + */ + org.sonarqube.ws.Issues.ActionPlanOrBuilder getActionPlansOrBuilder( + int index); + } + /** + * Protobuf type {@code sonarqube.ws.issues.ActionPlans} + */ + public static final class ActionPlans extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:sonarqube.ws.issues.ActionPlans) + ActionPlansOrBuilder { + // Use ActionPlans.newBuilder() to construct. + private ActionPlans(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private ActionPlans() { + actionPlans_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ActionPlans( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) { + this(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + actionPlans_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + actionPlans_.add(input.readMessage(org.sonarqube.ws.Issues.ActionPlan.PARSER, extensionRegistry)); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw new RuntimeException(e.setUnfinishedMessage(this)); + } catch (java.io.IOException e) { + throw new RuntimeException( + new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this)); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + 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_ActionPlans_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_ActionPlans_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.sonarqube.ws.Issues.ActionPlans.class, org.sonarqube.ws.Issues.ActionPlans.Builder.class); + } + + public static final int ACTIONPLANS_FIELD_NUMBER = 1; + private java.util.List actionPlans_; + /** + * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 1; + */ + public java.util.List getActionPlansList() { + return actionPlans_; + } + /** + * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 1; + */ + public java.util.List + getActionPlansOrBuilderList() { + return actionPlans_; + } + /** + * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 1; + */ + public int getActionPlansCount() { + return actionPlans_.size(); + } + /** + * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 1; + */ + public org.sonarqube.ws.Issues.ActionPlan getActionPlans(int index) { + return actionPlans_.get(index); + } + /** + * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 1; + */ + public org.sonarqube.ws.Issues.ActionPlanOrBuilder getActionPlansOrBuilder( + int index) { + return actionPlans_.get(index); + } + + 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 { + for (int i = 0; i < actionPlans_.size(); i++) { + output.writeMessage(1, actionPlans_.get(i)); + } + unknownFields.writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < actionPlans_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, actionPlans_.get(i)); } - /** - * optional string email = 3; - * - *
-       * TODO drop, it's already in field "users"
-       * 
- */ - public Builder clearEmail() { - bitField0_ = (bitField0_ & ~0x00000004); - email_ = getDefaultInstance().getEmail(); - onChanged(); - return this; + size += unknownFields.getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + public static org.sonarqube.ws.Issues.ActionPlans parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.sonarqube.ws.Issues.ActionPlans 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.ActionPlans parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.sonarqube.ws.Issues.ActionPlans parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.sonarqube.ws.Issues.ActionPlans parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.sonarqube.ws.Issues.ActionPlans 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.ActionPlans parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static org.sonarqube.ws.Issues.ActionPlans 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.ActionPlans parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.sonarqube.ws.Issues.ActionPlans parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.sonarqube.ws.Issues.ActionPlans prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(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.ActionPlans} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:sonarqube.ws.issues.ActionPlans) + org.sonarqube.ws.Issues.ActionPlansOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_ActionPlans_descriptor; } - /** - * optional string email = 3; - * - *
-       * TODO drop, it's already in field "users"
-       * 
- */ - public Builder setEmailBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - email_ = value; - onChanged(); - return this; + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_ActionPlans_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.sonarqube.ws.Issues.ActionPlans.class, org.sonarqube.ws.Issues.ActionPlans.Builder.class); } - private java.lang.Object userName_ = ""; - /** - * optional string userName = 4; - * - *
-       * TODO drop, it's already in field "users"
-       * 
- */ - public boolean hasUserName() { - return ((bitField0_ & 0x00000008) == 0x00000008); + // Construct using org.sonarqube.ws.Issues.ActionPlans.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); } - /** - * optional string userName = 4; - * - *
-       * TODO drop, it's already in field "users"
-       * 
- */ - public java.lang.String getUserName() { - java.lang.Object ref = userName_; - 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()) { - userName_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); } - /** - * optional string userName = 4; - * - *
-       * TODO drop, it's already in field "users"
-       * 
- */ - public com.google.protobuf.ByteString - getUserNameBytes() { - java.lang.Object ref = userName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - userName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + getActionPlansFieldBuilder(); } } - /** - * optional string userName = 4; - * - *
-       * TODO drop, it's already in field "users"
-       * 
- */ - public Builder setUserName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - userName_ = value; - onChanged(); - return this; - } - /** - * optional string userName = 4; - * - *
-       * TODO drop, it's already in field "users"
-       * 
- */ - public Builder clearUserName() { - bitField0_ = (bitField0_ & ~0x00000008); - userName_ = getDefaultInstance().getUserName(); - onChanged(); - return this; - } - /** - * optional string userName = 4; - * - *
-       * TODO drop, it's already in field "users"
-       * 
- */ - public Builder setUserNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - userName_ = value; - onChanged(); + public Builder clear() { + super.clear(); + if (actionPlansBuilder_ == null) { + actionPlans_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + actionPlansBuilder_.clear(); + } return this; } - private java.lang.Object htmlText_ = ""; - /** - * optional string htmlText = 5; - */ - public boolean hasHtmlText() { - return ((bitField0_ & 0x00000010) == 0x00000010); + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_ActionPlans_descriptor; } - /** - * optional string htmlText = 5; - */ - public java.lang.String getHtmlText() { - java.lang.Object ref = htmlText_; - 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()) { - htmlText_ = s; + + public org.sonarqube.ws.Issues.ActionPlans getDefaultInstanceForType() { + return org.sonarqube.ws.Issues.ActionPlans.getDefaultInstance(); + } + + public org.sonarqube.ws.Issues.ActionPlans build() { + org.sonarqube.ws.Issues.ActionPlans result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.sonarqube.ws.Issues.ActionPlans buildPartial() { + org.sonarqube.ws.Issues.ActionPlans result = new org.sonarqube.ws.Issues.ActionPlans(this); + int from_bitField0_ = bitField0_; + if (actionPlansBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + actionPlans_ = java.util.Collections.unmodifiableList(actionPlans_); + bitField0_ = (bitField0_ & ~0x00000001); } - return s; + result.actionPlans_ = actionPlans_; } else { - return (java.lang.String) ref; + result.actionPlans_ = actionPlansBuilder_.build(); } + onBuilt(); + return result; } - /** - * optional string htmlText = 5; - */ - public com.google.protobuf.ByteString - getHtmlTextBytes() { - java.lang.Object ref = htmlText_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - htmlText_ = b; - return b; + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.sonarqube.ws.Issues.ActionPlans) { + return mergeFrom((org.sonarqube.ws.Issues.ActionPlans)other); } else { - return (com.google.protobuf.ByteString) ref; + super.mergeFrom(other); + return this; } } - /** - * optional string htmlText = 5; - */ - public Builder setHtmlText( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; - htmlText_ = value; + + public Builder mergeFrom(org.sonarqube.ws.Issues.ActionPlans other) { + if (other == org.sonarqube.ws.Issues.ActionPlans.getDefaultInstance()) return this; + if (actionPlansBuilder_ == null) { + if (!other.actionPlans_.isEmpty()) { + if (actionPlans_.isEmpty()) { + actionPlans_ = other.actionPlans_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureActionPlansIsMutable(); + actionPlans_.addAll(other.actionPlans_); + } + onChanged(); + } + } else { + if (!other.actionPlans_.isEmpty()) { + if (actionPlansBuilder_.isEmpty()) { + actionPlansBuilder_.dispose(); + actionPlansBuilder_ = null; + actionPlans_ = other.actionPlans_; + bitField0_ = (bitField0_ & ~0x00000001); + actionPlansBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getActionPlansFieldBuilder() : null; + } else { + actionPlansBuilder_.addAllMessages(other.actionPlans_); + } + } + } + this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } - /** - * optional string htmlText = 5; - */ - public Builder clearHtmlText() { - bitField0_ = (bitField0_ & ~0x00000010); - htmlText_ = getDefaultInstance().getHtmlText(); - onChanged(); + + 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.ActionPlans parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.sonarqube.ws.Issues.ActionPlans) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } return this; } + private int bitField0_; + + private java.util.List actionPlans_ = + java.util.Collections.emptyList(); + private void ensureActionPlansIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + actionPlans_ = new java.util.ArrayList(actionPlans_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + org.sonarqube.ws.Issues.ActionPlan, org.sonarqube.ws.Issues.ActionPlan.Builder, org.sonarqube.ws.Issues.ActionPlanOrBuilder> actionPlansBuilder_; + /** - * optional string htmlText = 5; + * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 1; */ - public Builder setHtmlTextBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; - htmlText_ = value; - onChanged(); - return this; + public java.util.List getActionPlansList() { + if (actionPlansBuilder_ == null) { + return java.util.Collections.unmodifiableList(actionPlans_); + } else { + return actionPlansBuilder_.getMessageList(); + } } - - private java.lang.Object markdown_ = ""; /** - * optional string markdown = 6; - * - *
-       * TODO rename markdownText ?
-       * 
+ * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 1; */ - public boolean hasMarkdown() { - return ((bitField0_ & 0x00000020) == 0x00000020); + public int getActionPlansCount() { + if (actionPlansBuilder_ == null) { + return actionPlans_.size(); + } else { + return actionPlansBuilder_.getCount(); + } } /** - * optional string markdown = 6; - * - *
-       * TODO rename markdownText ?
-       * 
+ * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 1; */ - public java.lang.String getMarkdown() { - java.lang.Object ref = markdown_; - 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()) { - markdown_ = s; - } - return s; + public org.sonarqube.ws.Issues.ActionPlan getActionPlans(int index) { + if (actionPlansBuilder_ == null) { + return actionPlans_.get(index); } else { - return (java.lang.String) ref; + return actionPlansBuilder_.getMessage(index); } } /** - * optional string markdown = 6; - * - *
-       * TODO rename markdownText ?
-       * 
+ * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 1; */ - public com.google.protobuf.ByteString - getMarkdownBytes() { - java.lang.Object ref = markdown_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - markdown_ = b; - return b; + 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 { - return (com.google.protobuf.ByteString) ref; + actionPlansBuilder_.setMessage(index, value); } + return this; } /** - * optional string markdown = 6; - * - *
-       * TODO rename markdownText ?
-       * 
+ * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 1; */ - public Builder setMarkdown( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; - markdown_ = value; - onChanged(); + 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; } /** - * optional string markdown = 6; - * - *
-       * TODO rename markdownText ?
-       * 
+ * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 1; + */ + 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 = 1; */ - public Builder clearMarkdown() { - bitField0_ = (bitField0_ & ~0x00000020); - markdown_ = getDefaultInstance().getMarkdown(); - onChanged(); + 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; } /** - * optional string markdown = 6; - * - *
-       * TODO rename markdownText ?
-       * 
+ * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 1; */ - public Builder setMarkdownBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; - markdown_ = value; - onChanged(); + 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; } - - private boolean updatable_ ; /** - * optional bool updatable = 7; + * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 1; */ - public boolean hasUpdatable() { - return ((bitField0_ & 0x00000040) == 0x00000040); + 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; } /** - * optional bool updatable = 7; + * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 1; */ - public boolean getUpdatable() { - return updatable_; + 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; } /** - * optional bool updatable = 7; + * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 1; */ - public Builder setUpdatable(boolean value) { - bitField0_ |= 0x00000040; - updatable_ = value; - onChanged(); + public Builder clearActionPlans() { + if (actionPlansBuilder_ == null) { + actionPlans_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + actionPlansBuilder_.clear(); + } return this; } /** - * optional bool updatable = 7; + * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 1; */ - public Builder clearUpdatable() { - bitField0_ = (bitField0_ & ~0x00000040); - updatable_ = false; - onChanged(); + public Builder removeActionPlans(int index) { + if (actionPlansBuilder_ == null) { + ensureActionPlansIsMutable(); + actionPlans_.remove(index); + onChanged(); + } else { + actionPlansBuilder_.remove(index); + } return this; } - - private java.lang.Object createdAt_ = ""; /** - * optional string createdAt = 8; + * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 1; */ - public boolean hasCreatedAt() { - return ((bitField0_ & 0x00000080) == 0x00000080); + public org.sonarqube.ws.Issues.ActionPlan.Builder getActionPlansBuilder( + int index) { + return getActionPlansFieldBuilder().getBuilder(index); } /** - * optional string createdAt = 8; + * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 1; */ - public java.lang.String getCreatedAt() { - java.lang.Object ref = createdAt_; - 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()) { - createdAt_ = s; - } - return s; - } else { - return (java.lang.String) ref; + public org.sonarqube.ws.Issues.ActionPlanOrBuilder getActionPlansOrBuilder( + int index) { + if (actionPlansBuilder_ == null) { + return actionPlans_.get(index); } else { + return actionPlansBuilder_.getMessageOrBuilder(index); } } /** - * optional string createdAt = 8; + * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 1; */ - public com.google.protobuf.ByteString - getCreatedAtBytes() { - java.lang.Object ref = createdAt_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - createdAt_ = b; - return b; + public java.util.List + getActionPlansOrBuilderList() { + if (actionPlansBuilder_ != null) { + return actionPlansBuilder_.getMessageOrBuilderList(); } else { - return (com.google.protobuf.ByteString) ref; + return java.util.Collections.unmodifiableList(actionPlans_); } } /** - * optional string createdAt = 8; + * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 1; */ - public Builder setCreatedAt( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000080; - createdAt_ = value; - onChanged(); - return this; + public org.sonarqube.ws.Issues.ActionPlan.Builder addActionPlansBuilder() { + return getActionPlansFieldBuilder().addBuilder( + org.sonarqube.ws.Issues.ActionPlan.getDefaultInstance()); } /** - * optional string createdAt = 8; + * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 1; */ - public Builder clearCreatedAt() { - bitField0_ = (bitField0_ & ~0x00000080); - createdAt_ = getDefaultInstance().getCreatedAt(); - onChanged(); - return this; + public org.sonarqube.ws.Issues.ActionPlan.Builder addActionPlansBuilder( + int index) { + return getActionPlansFieldBuilder().addBuilder( + index, org.sonarqube.ws.Issues.ActionPlan.getDefaultInstance()); } /** - * optional string createdAt = 8; + * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 1; */ - public Builder setCreatedAtBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000080; - createdAt_ = value; - 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_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + actionPlans_ = null; + } + return actionPlansBuilder_; } - // @@protoc_insertion_point(builder_scope:sonarqube.ws.issues.Comment) + // @@protoc_insertion_point(builder_scope:sonarqube.ws.issues.ActionPlans) } - // @@protoc_insertion_point(class_scope:sonarqube.ws.issues.Comment) - private static final org.sonarqube.ws.Issues.Comment DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:sonarqube.ws.issues.ActionPlans) + private static final org.sonarqube.ws.Issues.ActionPlans DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new org.sonarqube.ws.Issues.Comment(); + DEFAULT_INSTANCE = new org.sonarqube.ws.Issues.ActionPlans(); } - public static org.sonarqube.ws.Issues.Comment getDefaultInstance() { + public static org.sonarqube.ws.Issues.ActionPlans getDefaultInstance() { return DEFAULT_INSTANCE; } - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Comment parsePartialFrom( + public static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public ActionPlans parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { try { - return new Comment(input, extensionRegistry); + return new ActionPlans(input, extensionRegistry); } catch (RuntimeException e) { if (e.getCause() instanceof com.google.protobuf.InvalidProtocolBufferException) { @@ -14017,131 +15895,62 @@ public final class Issues { }; @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } - public org.sonarqube.ws.Issues.Comment getDefaultInstanceForType() { + public org.sonarqube.ws.Issues.ActionPlans getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface ActionPlanOrBuilder extends - // @@protoc_insertion_point(interface_extends:sonarqube.ws.issues.ActionPlan) + public interface LanguageOrBuilder extends + // @@protoc_insertion_point(interface_extends:sonarqube.ws.issues.Language) com.google.protobuf.MessageOrBuilder { /** * optional string key = 1; */ - boolean hasKey(); - /** - * optional string key = 1; - */ - java.lang.String getKey(); - /** - * optional string key = 1; - */ - com.google.protobuf.ByteString - getKeyBytes(); - - /** - * optional string name = 2; - */ - boolean hasName(); - /** - * optional string name = 2; - */ - java.lang.String getName(); - /** - * optional string name = 2; - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - * optional string status = 3; - * - *
-     * TODO define enum
-     * 
- */ - boolean hasStatus(); - /** - * optional string status = 3; - * - *
-     * TODO define enum
-     * 
- */ - java.lang.String getStatus(); - /** - * optional string status = 3; - * - *
-     * TODO define enum
-     * 
- */ - com.google.protobuf.ByteString - getStatusBytes(); - - /** - * optional string deadLine = 4; - */ - boolean hasDeadLine(); + boolean hasKey(); /** - * optional string deadLine = 4; + * optional string key = 1; */ - java.lang.String getDeadLine(); + java.lang.String getKey(); /** - * optional string deadLine = 4; + * optional string key = 1; */ com.google.protobuf.ByteString - getDeadLineBytes(); + getKeyBytes(); /** - * optional string project = 5; - * - *
-     * TODO to be renamed, is it id or key ?
-     * 
+ * optional string name = 2; */ - boolean hasProject(); + boolean hasName(); /** - * optional string project = 5; - * - *
-     * TODO to be renamed, is it id or key ?
-     * 
+ * optional string name = 2; */ - java.lang.String getProject(); + java.lang.String getName(); /** - * optional string project = 5; - * - *
-     * TODO to be renamed, is it id or key ?
-     * 
+ * optional string name = 2; */ com.google.protobuf.ByteString - getProjectBytes(); + getNameBytes(); } /** - * Protobuf type {@code sonarqube.ws.issues.ActionPlan} + * Protobuf type {@code sonarqube.ws.issues.Language} */ - public static final class ActionPlan extends + public static final class Language extends com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:sonarqube.ws.issues.ActionPlan) - ActionPlanOrBuilder { - // Use ActionPlan.newBuilder() to construct. - private ActionPlan(com.google.protobuf.GeneratedMessage.Builder builder) { + // @@protoc_insertion_point(message_implements:sonarqube.ws.issues.Language) + LanguageOrBuilder { + // Use Language.newBuilder() to construct. + private Language(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } - private ActionPlan() { + private Language() { key_ = ""; name_ = ""; - status_ = ""; - deadLine_ = ""; - project_ = ""; } @java.lang.Override @@ -14149,7 +15958,7 @@ public final class Issues { getUnknownFields() { return this.unknownFields; } - private ActionPlan( + private Language( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) { this(); @@ -14183,24 +15992,6 @@ public final class Issues { name_ = bs; break; } - case 26: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000004; - status_ = bs; - break; - } - case 34: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000008; - deadLine_ = bs; - break; - } - case 42: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000010; - project_ = bs; - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -14216,14 +16007,14 @@ public final class Issues { } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_ActionPlan_descriptor; + return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Language_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_ActionPlan_fieldAccessorTable + return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Language_fieldAccessorTable .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Issues.ActionPlan.class, org.sonarqube.ws.Issues.ActionPlan.Builder.class); + org.sonarqube.ws.Issues.Language.class, org.sonarqube.ws.Issues.Language.Builder.class); } private int bitField0_; @@ -14311,156 +16102,6 @@ public final class Issues { } } - public static final int STATUS_FIELD_NUMBER = 3; - private volatile java.lang.Object status_; - /** - * optional string status = 3; - * - *
-     * TODO define enum
-     * 
- */ - public boolean hasStatus() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional string status = 3; - * - *
-     * TODO define enum
-     * 
- */ - public java.lang.String getStatus() { - java.lang.Object ref = status_; - 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()) { - status_ = s; - } - return s; - } - } - /** - * optional string status = 3; - * - *
-     * TODO define enum
-     * 
- */ - public com.google.protobuf.ByteString - getStatusBytes() { - java.lang.Object ref = status_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - status_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DEADLINE_FIELD_NUMBER = 4; - private volatile java.lang.Object deadLine_; - /** - * optional string deadLine = 4; - */ - public boolean hasDeadLine() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional string deadLine = 4; - */ - public java.lang.String getDeadLine() { - java.lang.Object ref = deadLine_; - 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()) { - deadLine_ = s; - } - return s; - } - } - /** - * optional string deadLine = 4; - */ - public com.google.protobuf.ByteString - getDeadLineBytes() { - java.lang.Object ref = deadLine_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - deadLine_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PROJECT_FIELD_NUMBER = 5; - private volatile java.lang.Object project_; - /** - * optional string project = 5; - * - *
-     * TODO to be renamed, is it id or key ?
-     * 
- */ - public boolean hasProject() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - /** - * optional string project = 5; - * - *
-     * TODO to be renamed, is it id or key ?
-     * 
- */ - public java.lang.String getProject() { - java.lang.Object ref = project_; - 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()) { - project_ = s; - } - return s; - } - } - /** - * optional string project = 5; - * - *
-     * TODO to be renamed, is it id or key ?
-     * 
- */ - public com.google.protobuf.ByteString - getProjectBytes() { - java.lang.Object ref = project_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - project_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -14479,15 +16120,6 @@ public final class Issues { if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, getNameBytes()); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, getStatusBytes()); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeBytes(4, getDeadLineBytes()); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeBytes(5, getProjectBytes()); - } unknownFields.writeTo(output); } @@ -14505,523 +16137,226 @@ public final class Issues { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getNameBytes()); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getStatusBytes()); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, getDeadLineBytes()); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(5, getProjectBytes()); - } size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; - public static org.sonarqube.ws.Issues.ActionPlan parseFrom( + public static org.sonarqube.ws.Issues.Language parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.sonarqube.ws.Issues.ActionPlan parseFrom( + public static org.sonarqube.ws.Issues.Language 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.ActionPlan parseFrom(byte[] data) + public static org.sonarqube.ws.Issues.Language parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.sonarqube.ws.Issues.ActionPlan parseFrom( + public static org.sonarqube.ws.Issues.Language parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.sonarqube.ws.Issues.ActionPlan parseFrom(java.io.InputStream input) + public static org.sonarqube.ws.Issues.Language parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } - public static org.sonarqube.ws.Issues.ActionPlan parseFrom( + public static org.sonarqube.ws.Issues.Language 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.ActionPlan parseDelimitedFrom(java.io.InputStream input) + public static org.sonarqube.ws.Issues.Language parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } - public static org.sonarqube.ws.Issues.ActionPlan parseDelimitedFrom( + public static org.sonarqube.ws.Issues.Language 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.ActionPlan parseFrom( + public static org.sonarqube.ws.Issues.Language parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.Issues.ActionPlan parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonarqube.ws.Issues.ActionPlan prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(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.ActionPlan} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:sonarqube.ws.issues.ActionPlan) - org.sonarqube.ws.Issues.ActionPlanOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_ActionPlan_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_ActionPlan_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Issues.ActionPlan.class, org.sonarqube.ws.Issues.ActionPlan.Builder.class); - } - - // Construct using org.sonarqube.ws.Issues.ActionPlan.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - key_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - name_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - status_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); - deadLine_ = ""; - bitField0_ = (bitField0_ & ~0x00000008); - project_ = ""; - bitField0_ = (bitField0_ & ~0x00000010); - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_ActionPlan_descriptor; - } - - public org.sonarqube.ws.Issues.ActionPlan getDefaultInstanceForType() { - return org.sonarqube.ws.Issues.ActionPlan.getDefaultInstance(); - } - - public org.sonarqube.ws.Issues.ActionPlan build() { - org.sonarqube.ws.Issues.ActionPlan result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonarqube.ws.Issues.ActionPlan buildPartial() { - org.sonarqube.ws.Issues.ActionPlan result = new org.sonarqube.ws.Issues.ActionPlan(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.key_ = key_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.name_ = name_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.status_ = status_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } - result.deadLine_ = deadLine_; - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { - to_bitField0_ |= 0x00000010; - } - result.project_ = project_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonarqube.ws.Issues.ActionPlan) { - return mergeFrom((org.sonarqube.ws.Issues.ActionPlan)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonarqube.ws.Issues.ActionPlan other) { - if (other == org.sonarqube.ws.Issues.ActionPlan.getDefaultInstance()) return this; - if (other.hasKey()) { - bitField0_ |= 0x00000001; - key_ = other.key_; - onChanged(); - } - if (other.hasName()) { - bitField0_ |= 0x00000002; - name_ = other.name_; - onChanged(); - } - if (other.hasStatus()) { - bitField0_ |= 0x00000004; - status_ = other.status_; - onChanged(); - } - if (other.hasDeadLine()) { - bitField0_ |= 0x00000008; - deadLine_ = other.deadLine_; - onChanged(); - } - if (other.hasProject()) { - bitField0_ |= 0x00000010; - project_ = other.project_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - 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.ActionPlan parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonarqube.ws.Issues.ActionPlan) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object key_ = ""; - /** - * optional string key = 1; - */ - public boolean hasKey() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string key = 1; - */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - key_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string key = 1; - */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string key = 1; - */ - public Builder setKey( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - key_ = value; - onChanged(); - return this; - } - /** - * optional string key = 1; - */ - public Builder clearKey() { - bitField0_ = (bitField0_ & ~0x00000001); - key_ = getDefaultInstance().getKey(); - onChanged(); - return this; + return PARSER.parseFrom(input); + } + public static org.sonarqube.ws.Issues.Language parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.sonarqube.ws.Issues.Language prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(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.Language} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:sonarqube.ws.issues.Language) + org.sonarqube.ws.Issues.LanguageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Language_descriptor; } - /** - * optional string key = 1; - */ - public Builder setKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - key_ = value; - onChanged(); - return this; + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Language_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.sonarqube.ws.Issues.Language.class, org.sonarqube.ws.Issues.Language.Builder.class); } - private java.lang.Object name_ = ""; - /** - * optional string name = 2; - */ - public boolean hasName() { - return ((bitField0_ & 0x00000002) == 0x00000002); + // Construct using org.sonarqube.ws.Issues.Language.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); } - /** - * optional string name = 2; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - name_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); } - /** - * optional string name = 2; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } - /** - * optional string name = 2; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - name_ = value; - onChanged(); - return this; - } - /** - * optional string name = 2; - */ - public Builder clearName() { + public Builder clear() { + super.clear(); + key_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + name_ = ""; bitField0_ = (bitField0_ & ~0x00000002); - name_ = getDefaultInstance().getName(); - onChanged(); return this; } - /** - * optional string name = 2; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - name_ = value; - onChanged(); - return this; + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Language_descriptor; } - private java.lang.Object status_ = ""; - /** - * optional string status = 3; - * - *
-       * TODO define enum
-       * 
- */ - public boolean hasStatus() { - return ((bitField0_ & 0x00000004) == 0x00000004); + public org.sonarqube.ws.Issues.Language getDefaultInstanceForType() { + return org.sonarqube.ws.Issues.Language.getDefaultInstance(); } - /** - * optional string status = 3; - * - *
-       * TODO define enum
-       * 
- */ - public java.lang.String getStatus() { - java.lang.Object ref = status_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - status_ = s; - } - return s; - } else { - return (java.lang.String) ref; + + public org.sonarqube.ws.Issues.Language build() { + org.sonarqube.ws.Issues.Language result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); } + return result; } - /** - * optional string status = 3; - * - *
-       * TODO define enum
-       * 
- */ - public com.google.protobuf.ByteString - getStatusBytes() { - java.lang.Object ref = status_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - status_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + + public org.sonarqube.ws.Issues.Language buildPartial() { + org.sonarqube.ws.Issues.Language result = new org.sonarqube.ws.Issues.Language(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.key_ = key_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; } + result.name_ = name_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; } - /** - * optional string status = 3; - * - *
-       * TODO define enum
-       * 
- */ - public Builder setStatus( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - status_ = value; - onChanged(); - return this; + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.sonarqube.ws.Issues.Language) { + return mergeFrom((org.sonarqube.ws.Issues.Language)other); + } else { + super.mergeFrom(other); + return this; + } } - /** - * optional string status = 3; - * - *
-       * TODO define enum
-       * 
- */ - public Builder clearStatus() { - bitField0_ = (bitField0_ & ~0x00000004); - status_ = getDefaultInstance().getStatus(); + + public Builder mergeFrom(org.sonarqube.ws.Issues.Language other) { + if (other == org.sonarqube.ws.Issues.Language.getDefaultInstance()) return this; + if (other.hasKey()) { + bitField0_ |= 0x00000001; + key_ = other.key_; + onChanged(); + } + if (other.hasName()) { + bitField0_ |= 0x00000002; + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } - /** - * optional string status = 3; - * - *
-       * TODO define enum
-       * 
- */ - public Builder setStatusBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - status_ = value; - onChanged(); + + 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.Language parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.sonarqube.ws.Issues.Language) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } return this; } + private int bitField0_; - private java.lang.Object deadLine_ = ""; + private java.lang.Object key_ = ""; /** - * optional string deadLine = 4; + * optional string key = 1; */ - public boolean hasDeadLine() { - return ((bitField0_ & 0x00000008) == 0x00000008); + public boolean hasKey() { + return ((bitField0_ & 0x00000001) == 0x00000001); } /** - * optional string deadLine = 4; + * optional string key = 1; */ - public java.lang.String getDeadLine() { - java.lang.Object ref = deadLine_; + public java.lang.String getKey() { + java.lang.Object ref = key_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { - deadLine_ = s; + key_ = s; } return s; } else { @@ -15029,83 +16364,75 @@ public final class Issues { } } /** - * optional string deadLine = 4; + * optional string key = 1; */ public com.google.protobuf.ByteString - getDeadLineBytes() { - java.lang.Object ref = deadLine_; + getKeyBytes() { + java.lang.Object ref = key_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - deadLine_ = b; + key_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** - * optional string deadLine = 4; + * optional string key = 1; */ - public Builder setDeadLine( + public Builder setKey( java.lang.String value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000008; - deadLine_ = value; + bitField0_ |= 0x00000001; + key_ = value; onChanged(); return this; } /** - * optional string deadLine = 4; + * optional string key = 1; */ - public Builder clearDeadLine() { - bitField0_ = (bitField0_ & ~0x00000008); - deadLine_ = getDefaultInstance().getDeadLine(); + public Builder clearKey() { + bitField0_ = (bitField0_ & ~0x00000001); + key_ = getDefaultInstance().getKey(); onChanged(); return this; } /** - * optional string deadLine = 4; + * optional string key = 1; */ - public Builder setDeadLineBytes( + public Builder setKeyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000008; - deadLine_ = value; + bitField0_ |= 0x00000001; + key_ = value; onChanged(); return this; } - private java.lang.Object project_ = ""; + private java.lang.Object name_ = ""; /** - * optional string project = 5; - * - *
-       * TODO to be renamed, is it id or key ?
-       * 
+ * optional string name = 2; */ - public boolean hasProject() { - return ((bitField0_ & 0x00000010) == 0x00000010); + public boolean hasName() { + return ((bitField0_ & 0x00000002) == 0x00000002); } /** - * optional string project = 5; - * - *
-       * TODO to be renamed, is it id or key ?
-       * 
+ * optional string name = 2; */ - public java.lang.String getProject() { - java.lang.Object ref = project_; + public java.lang.String getName() { + java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { - project_ = s; + name_ = s; } return s; } else { @@ -15113,94 +16440,78 @@ public final class Issues { } } /** - * optional string project = 5; - * - *
-       * TODO to be renamed, is it id or key ?
-       * 
+ * optional string name = 2; */ public com.google.protobuf.ByteString - getProjectBytes() { - java.lang.Object ref = project_; + getNameBytes() { + java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - project_ = b; + name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** - * optional string project = 5; - * - *
-       * TODO to be renamed, is it id or key ?
-       * 
+ * optional string name = 2; */ - public Builder setProject( + public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000010; - project_ = value; + bitField0_ |= 0x00000002; + name_ = value; onChanged(); return this; } /** - * optional string project = 5; - * - *
-       * TODO to be renamed, is it id or key ?
-       * 
+ * optional string name = 2; */ - public Builder clearProject() { - bitField0_ = (bitField0_ & ~0x00000010); - project_ = getDefaultInstance().getProject(); + public Builder clearName() { + bitField0_ = (bitField0_ & ~0x00000002); + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * optional string project = 5; - * - *
-       * TODO to be renamed, is it id or key ?
-       * 
+ * optional string name = 2; */ - public Builder setProjectBytes( + public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000010; - project_ = value; + bitField0_ |= 0x00000002; + name_ = value; onChanged(); return this; } - // @@protoc_insertion_point(builder_scope:sonarqube.ws.issues.ActionPlan) + // @@protoc_insertion_point(builder_scope:sonarqube.ws.issues.Language) } - // @@protoc_insertion_point(class_scope:sonarqube.ws.issues.ActionPlan) - private static final org.sonarqube.ws.Issues.ActionPlan DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:sonarqube.ws.issues.Language) + private static final org.sonarqube.ws.Issues.Language DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new org.sonarqube.ws.Issues.ActionPlan(); + DEFAULT_INSTANCE = new org.sonarqube.ws.Issues.Language(); } - public static org.sonarqube.ws.Issues.ActionPlan getDefaultInstance() { + public static org.sonarqube.ws.Issues.Language getDefaultInstance() { return DEFAULT_INSTANCE; } - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public ActionPlan parsePartialFrom( + public static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public Language parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { try { - return new ActionPlan(input, extensionRegistry); + return new Language(input, extensionRegistry); } catch (RuntimeException e) { if (e.getCause() instanceof com.google.protobuf.InvalidProtocolBufferException) { @@ -15213,62 +16524,57 @@ public final class Issues { }; @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } - public org.sonarqube.ws.Issues.ActionPlan getDefaultInstanceForType() { + public org.sonarqube.ws.Issues.Language getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface LanguageOrBuilder extends - // @@protoc_insertion_point(interface_extends:sonarqube.ws.issues.Language) + public interface LanguagesOrBuilder extends + // @@protoc_insertion_point(interface_extends:sonarqube.ws.issues.Languages) com.google.protobuf.MessageOrBuilder { /** - * optional string key = 1; - */ - boolean hasKey(); - /** - * optional string key = 1; + * repeated .sonarqube.ws.issues.Language languages = 1; */ - java.lang.String getKey(); + java.util.List + getLanguagesList(); /** - * optional string key = 1; + * repeated .sonarqube.ws.issues.Language languages = 1; */ - com.google.protobuf.ByteString - getKeyBytes(); - + org.sonarqube.ws.Issues.Language getLanguages(int index); /** - * optional string name = 2; + * repeated .sonarqube.ws.issues.Language languages = 1; */ - boolean hasName(); + int getLanguagesCount(); /** - * optional string name = 2; + * repeated .sonarqube.ws.issues.Language languages = 1; */ - java.lang.String getName(); + java.util.List + getLanguagesOrBuilderList(); /** - * optional string name = 2; + * repeated .sonarqube.ws.issues.Language languages = 1; */ - com.google.protobuf.ByteString - getNameBytes(); + org.sonarqube.ws.Issues.LanguageOrBuilder getLanguagesOrBuilder( + int index); } /** - * Protobuf type {@code sonarqube.ws.issues.Language} + * Protobuf type {@code sonarqube.ws.issues.Languages} */ - public static final class Language extends + public static final class Languages extends com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:sonarqube.ws.issues.Language) - LanguageOrBuilder { - // Use Language.newBuilder() to construct. - private Language(com.google.protobuf.GeneratedMessage.Builder builder) { + // @@protoc_insertion_point(message_implements:sonarqube.ws.issues.Languages) + LanguagesOrBuilder { + // Use Languages.newBuilder() to construct. + private Languages(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } - private Language() { - key_ = ""; - name_ = ""; + private Languages() { + languages_ = java.util.Collections.emptyList(); } @java.lang.Override @@ -15276,7 +16582,7 @@ public final class Issues { getUnknownFields() { return this.unknownFields; } - private Language( + private Languages( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) { this(); @@ -15299,15 +16605,11 @@ public final class Issues { break; } case 10: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000001; - key_ = bs; - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - name_ = bs; + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + languages_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + languages_.add(input.readMessage(org.sonarqube.ws.Issues.Language.PARSER, extensionRegistry)); break; } } @@ -15319,105 +16621,58 @@ public final class Issues { new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this)); } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + languages_ = java.util.Collections.unmodifiableList(languages_); + } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Language_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Language_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Issues.Language.class, org.sonarqube.ws.Issues.Language.Builder.class); - } - - private int bitField0_; - public static final int KEY_FIELD_NUMBER = 1; - private volatile java.lang.Object key_; - /** - * optional string key = 1; - */ - public boolean hasKey() { - return ((bitField0_ & 0x00000001) == 0x00000001); + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Languages_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Languages_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.sonarqube.ws.Issues.Languages.class, org.sonarqube.ws.Issues.Languages.Builder.class); } + + public static final int LANGUAGES_FIELD_NUMBER = 1; + private java.util.List languages_; /** - * optional string key = 1; + * repeated .sonarqube.ws.issues.Language languages = 1; */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - key_ = s; - } - return s; - } + public java.util.List getLanguagesList() { + return languages_; } /** - * optional string key = 1; + * repeated .sonarqube.ws.issues.Language languages = 1; */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public java.util.List + getLanguagesOrBuilderList() { + return languages_; } - - public static final int NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object name_; /** - * optional string name = 2; + * repeated .sonarqube.ws.issues.Language languages = 1; */ - public boolean hasName() { - return ((bitField0_ & 0x00000002) == 0x00000002); + public int getLanguagesCount() { + return languages_.size(); } /** - * optional string name = 2; + * repeated .sonarqube.ws.issues.Language languages = 1; */ - public java.lang.String getName() { - java.lang.Object ref = name_; - 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()) { - name_ = s; - } - return s; - } + public org.sonarqube.ws.Issues.Language getLanguages(int index) { + return languages_.get(index); } /** - * optional string name = 2; + * repeated .sonarqube.ws.issues.Language languages = 1; */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public org.sonarqube.ws.Issues.LanguageOrBuilder getLanguagesOrBuilder( + int index) { + return languages_.get(index); } private byte memoizedIsInitialized = -1; @@ -15432,11 +16687,8 @@ public final class Issues { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getKeyBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getNameBytes()); + for (int i = 0; i < languages_.size(); i++) { + output.writeMessage(1, languages_.get(i)); } unknownFields.writeTo(output); } @@ -15447,13 +16699,9 @@ public final class Issues { if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getKeyBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + for (int i = 0; i < languages_.size(); i++) { size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getNameBytes()); + .computeMessageSize(1, languages_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; @@ -15461,53 +16709,53 @@ public final class Issues { } private static final long serialVersionUID = 0L; - public static org.sonarqube.ws.Issues.Language parseFrom( + public static org.sonarqube.ws.Issues.Languages parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.sonarqube.ws.Issues.Language parseFrom( + public static org.sonarqube.ws.Issues.Languages 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.Language parseFrom(byte[] data) + public static org.sonarqube.ws.Issues.Languages parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.sonarqube.ws.Issues.Language parseFrom( + public static org.sonarqube.ws.Issues.Languages parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.sonarqube.ws.Issues.Language parseFrom(java.io.InputStream input) + public static org.sonarqube.ws.Issues.Languages parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } - public static org.sonarqube.ws.Issues.Language parseFrom( + public static org.sonarqube.ws.Issues.Languages 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.Language parseDelimitedFrom(java.io.InputStream input) + public static org.sonarqube.ws.Issues.Languages parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } - public static org.sonarqube.ws.Issues.Language parseDelimitedFrom( + public static org.sonarqube.ws.Issues.Languages 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.Language parseFrom( + public static org.sonarqube.ws.Issues.Languages parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } - public static org.sonarqube.ws.Issues.Language parseFrom( + public static org.sonarqube.ws.Issues.Languages parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -15518,7 +16766,7 @@ public final class Issues { public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(org.sonarqube.ws.Issues.Language prototype) { + public static Builder newBuilder(org.sonarqube.ws.Issues.Languages prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { @@ -15533,25 +16781,25 @@ public final class Issues { return builder; } /** - * Protobuf type {@code sonarqube.ws.issues.Language} + * Protobuf type {@code sonarqube.ws.issues.Languages} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:sonarqube.ws.issues.Language) - org.sonarqube.ws.Issues.LanguageOrBuilder { + // @@protoc_insertion_point(builder_implements:sonarqube.ws.issues.Languages) + org.sonarqube.ws.Issues.LanguagesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Language_descriptor; + return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Languages_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Language_fieldAccessorTable + return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Languages_fieldAccessorTable .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Issues.Language.class, org.sonarqube.ws.Issues.Language.Builder.class); + org.sonarqube.ws.Issues.Languages.class, org.sonarqube.ws.Issues.Languages.Builder.class); } - // Construct using org.sonarqube.ws.Issues.Language.newBuilder() + // Construct using org.sonarqube.ws.Issues.Languages.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -15563,71 +16811,89 @@ public final class Issues { } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + getLanguagesFieldBuilder(); } } public Builder clear() { super.clear(); - key_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - name_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); + if (languagesBuilder_ == null) { + languages_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + languagesBuilder_.clear(); + } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Language_descriptor; + return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Languages_descriptor; } - public org.sonarqube.ws.Issues.Language getDefaultInstanceForType() { - return org.sonarqube.ws.Issues.Language.getDefaultInstance(); + public org.sonarqube.ws.Issues.Languages getDefaultInstanceForType() { + return org.sonarqube.ws.Issues.Languages.getDefaultInstance(); } - public org.sonarqube.ws.Issues.Language build() { - org.sonarqube.ws.Issues.Language result = buildPartial(); + public org.sonarqube.ws.Issues.Languages build() { + org.sonarqube.ws.Issues.Languages result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } - public org.sonarqube.ws.Issues.Language buildPartial() { - org.sonarqube.ws.Issues.Language result = new org.sonarqube.ws.Issues.Language(this); + public org.sonarqube.ws.Issues.Languages buildPartial() { + org.sonarqube.ws.Issues.Languages result = new org.sonarqube.ws.Issues.Languages(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.key_ = key_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; + if (languagesBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + languages_ = java.util.Collections.unmodifiableList(languages_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.languages_ = languages_; + } else { + result.languages_ = languagesBuilder_.build(); } - result.name_ = name_; - result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonarqube.ws.Issues.Language) { - return mergeFrom((org.sonarqube.ws.Issues.Language)other); + if (other instanceof org.sonarqube.ws.Issues.Languages) { + return mergeFrom((org.sonarqube.ws.Issues.Languages)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(org.sonarqube.ws.Issues.Language other) { - if (other == org.sonarqube.ws.Issues.Language.getDefaultInstance()) return this; - if (other.hasKey()) { - bitField0_ |= 0x00000001; - key_ = other.key_; - onChanged(); - } - if (other.hasName()) { - bitField0_ |= 0x00000002; - name_ = other.name_; - onChanged(); + public Builder mergeFrom(org.sonarqube.ws.Issues.Languages other) { + if (other == org.sonarqube.ws.Issues.Languages.getDefaultInstance()) return this; + if (languagesBuilder_ == null) { + if (!other.languages_.isEmpty()) { + if (languages_.isEmpty()) { + languages_ = other.languages_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureLanguagesIsMutable(); + languages_.addAll(other.languages_); + } + onChanged(); + } + } else { + if (!other.languages_.isEmpty()) { + if (languagesBuilder_.isEmpty()) { + languagesBuilder_.dispose(); + languagesBuilder_ = null; + languages_ = other.languages_; + bitField0_ = (bitField0_ & ~0x00000001); + languagesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getLanguagesFieldBuilder() : null; + } else { + languagesBuilder_.addAllMessages(other.languages_); + } + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -15642,11 +16908,11 @@ public final class Issues { com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - org.sonarqube.ws.Issues.Language parsedMessage = null; + org.sonarqube.ws.Issues.Languages parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonarqube.ws.Issues.Language) e.getUnfinishedMessage(); + parsedMessage = (org.sonarqube.ws.Issues.Languages) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { @@ -15655,181 +16921,269 @@ public final class Issues { } return this; } - private int bitField0_; - - private java.lang.Object key_ = ""; + private int bitField0_; + + private java.util.List languages_ = + java.util.Collections.emptyList(); + private void ensureLanguagesIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + languages_ = new java.util.ArrayList(languages_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + org.sonarqube.ws.Issues.Language, org.sonarqube.ws.Issues.Language.Builder, org.sonarqube.ws.Issues.LanguageOrBuilder> languagesBuilder_; + + /** + * repeated .sonarqube.ws.issues.Language languages = 1; + */ + public java.util.List getLanguagesList() { + if (languagesBuilder_ == null) { + return java.util.Collections.unmodifiableList(languages_); + } else { + return languagesBuilder_.getMessageList(); + } + } + /** + * repeated .sonarqube.ws.issues.Language languages = 1; + */ + public int getLanguagesCount() { + if (languagesBuilder_ == null) { + return languages_.size(); + } else { + return languagesBuilder_.getCount(); + } + } + /** + * repeated .sonarqube.ws.issues.Language languages = 1; + */ + public org.sonarqube.ws.Issues.Language getLanguages(int index) { + if (languagesBuilder_ == null) { + return languages_.get(index); + } else { + return languagesBuilder_.getMessage(index); + } + } + /** + * repeated .sonarqube.ws.issues.Language languages = 1; + */ + public Builder setLanguages( + int index, org.sonarqube.ws.Issues.Language value) { + if (languagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLanguagesIsMutable(); + languages_.set(index, value); + onChanged(); + } else { + languagesBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .sonarqube.ws.issues.Language languages = 1; + */ + public Builder setLanguages( + int index, org.sonarqube.ws.Issues.Language.Builder builderForValue) { + if (languagesBuilder_ == null) { + ensureLanguagesIsMutable(); + languages_.set(index, builderForValue.build()); + onChanged(); + } else { + languagesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } /** - * optional string key = 1; + * repeated .sonarqube.ws.issues.Language languages = 1; */ - public boolean hasKey() { - return ((bitField0_ & 0x00000001) == 0x00000001); + public Builder addLanguages(org.sonarqube.ws.Issues.Language value) { + if (languagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLanguagesIsMutable(); + languages_.add(value); + onChanged(); + } else { + languagesBuilder_.addMessage(value); + } + return this; } /** - * optional string key = 1; + * repeated .sonarqube.ws.issues.Language languages = 1; */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - key_ = s; + public Builder addLanguages( + int index, org.sonarqube.ws.Issues.Language value) { + if (languagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); } - return s; + ensureLanguagesIsMutable(); + languages_.add(index, value); + onChanged(); } else { - return (java.lang.String) ref; + languagesBuilder_.addMessage(index, value); } + return this; } /** - * optional string key = 1; + * repeated .sonarqube.ws.issues.Language languages = 1; */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; + public Builder addLanguages( + org.sonarqube.ws.Issues.Language.Builder builderForValue) { + if (languagesBuilder_ == null) { + ensureLanguagesIsMutable(); + languages_.add(builderForValue.build()); + onChanged(); } else { - return (com.google.protobuf.ByteString) ref; + languagesBuilder_.addMessage(builderForValue.build()); } + return this; } /** - * optional string key = 1; + * repeated .sonarqube.ws.issues.Language languages = 1; */ - public Builder setKey( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - key_ = value; - onChanged(); + public Builder addLanguages( + int index, org.sonarqube.ws.Issues.Language.Builder builderForValue) { + if (languagesBuilder_ == null) { + ensureLanguagesIsMutable(); + languages_.add(index, builderForValue.build()); + onChanged(); + } else { + languagesBuilder_.addMessage(index, builderForValue.build()); + } return this; } /** - * optional string key = 1; + * repeated .sonarqube.ws.issues.Language languages = 1; */ - public Builder clearKey() { - bitField0_ = (bitField0_ & ~0x00000001); - key_ = getDefaultInstance().getKey(); - onChanged(); + public Builder addAllLanguages( + java.lang.Iterable values) { + if (languagesBuilder_ == null) { + ensureLanguagesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, languages_); + onChanged(); + } else { + languagesBuilder_.addAllMessages(values); + } return this; } /** - * optional string key = 1; + * repeated .sonarqube.ws.issues.Language languages = 1; */ - public Builder setKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - key_ = value; - onChanged(); + public Builder clearLanguages() { + if (languagesBuilder_ == null) { + languages_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + languagesBuilder_.clear(); + } return this; } - - private java.lang.Object name_ = ""; /** - * optional string name = 2; + * repeated .sonarqube.ws.issues.Language languages = 1; */ - public boolean hasName() { - return ((bitField0_ & 0x00000002) == 0x00000002); + public Builder removeLanguages(int index) { + if (languagesBuilder_ == null) { + ensureLanguagesIsMutable(); + languages_.remove(index); + onChanged(); + } else { + languagesBuilder_.remove(index); + } + return this; } /** - * optional string name = 2; + * repeated .sonarqube.ws.issues.Language languages = 1; */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - name_ = s; - } - return s; - } else { - return (java.lang.String) ref; + public org.sonarqube.ws.Issues.Language.Builder getLanguagesBuilder( + int index) { + return getLanguagesFieldBuilder().getBuilder(index); + } + /** + * repeated .sonarqube.ws.issues.Language languages = 1; + */ + public org.sonarqube.ws.Issues.LanguageOrBuilder getLanguagesOrBuilder( + int index) { + if (languagesBuilder_ == null) { + return languages_.get(index); } else { + return languagesBuilder_.getMessageOrBuilder(index); } } /** - * optional string name = 2; + * repeated .sonarqube.ws.issues.Language languages = 1; */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; + public java.util.List + getLanguagesOrBuilderList() { + if (languagesBuilder_ != null) { + return languagesBuilder_.getMessageOrBuilderList(); } else { - return (com.google.protobuf.ByteString) ref; + return java.util.Collections.unmodifiableList(languages_); } } /** - * optional string name = 2; + * repeated .sonarqube.ws.issues.Language languages = 1; */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - name_ = value; - onChanged(); - return this; + public org.sonarqube.ws.Issues.Language.Builder addLanguagesBuilder() { + return getLanguagesFieldBuilder().addBuilder( + org.sonarqube.ws.Issues.Language.getDefaultInstance()); } /** - * optional string name = 2; + * repeated .sonarqube.ws.issues.Language languages = 1; */ - public Builder clearName() { - bitField0_ = (bitField0_ & ~0x00000002); - name_ = getDefaultInstance().getName(); - onChanged(); - return this; + public org.sonarqube.ws.Issues.Language.Builder addLanguagesBuilder( + int index) { + return getLanguagesFieldBuilder().addBuilder( + index, org.sonarqube.ws.Issues.Language.getDefaultInstance()); } /** - * optional string name = 2; + * repeated .sonarqube.ws.issues.Language languages = 1; */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - name_ = value; - onChanged(); - return this; + public java.util.List + getLanguagesBuilderList() { + return getLanguagesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + org.sonarqube.ws.Issues.Language, org.sonarqube.ws.Issues.Language.Builder, org.sonarqube.ws.Issues.LanguageOrBuilder> + getLanguagesFieldBuilder() { + if (languagesBuilder_ == null) { + languagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + org.sonarqube.ws.Issues.Language, org.sonarqube.ws.Issues.Language.Builder, org.sonarqube.ws.Issues.LanguageOrBuilder>( + languages_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + languages_ = null; + } + return languagesBuilder_; } - // @@protoc_insertion_point(builder_scope:sonarqube.ws.issues.Language) + // @@protoc_insertion_point(builder_scope:sonarqube.ws.issues.Languages) } - // @@protoc_insertion_point(class_scope:sonarqube.ws.issues.Language) - private static final org.sonarqube.ws.Issues.Language DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:sonarqube.ws.issues.Languages) + private static final org.sonarqube.ws.Issues.Languages DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new org.sonarqube.ws.Issues.Language(); + DEFAULT_INSTANCE = new org.sonarqube.ws.Issues.Languages(); } - public static org.sonarqube.ws.Issues.Language getDefaultInstance() { + public static org.sonarqube.ws.Issues.Languages getDefaultInstance() { return DEFAULT_INSTANCE; } - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Language parsePartialFrom( + public static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public Languages parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { try { - return new Language(input, extensionRegistry); + return new Languages(input, extensionRegistry); } catch (RuntimeException e) { if (e.getCause() instanceof com.google.protobuf.InvalidProtocolBufferException) { @@ -15842,11 +17196,11 @@ public final class Issues { }; @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } - public org.sonarqube.ws.Issues.Language getDefaultInstanceForType() { + public org.sonarqube.ws.Issues.Languages getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -17436,6 +18790,16 @@ public final class Issues { private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_sonarqube_ws_issues_Issue_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_sonarqube_ws_issues_Transitions_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_sonarqube_ws_issues_Transitions_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_sonarqube_ws_issues_Actions_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_sonarqube_ws_issues_Actions_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_sonarqube_ws_issues_Flow_descriptor; private static @@ -17451,16 +18815,31 @@ public final class Issues { private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_sonarqube_ws_issues_Comment_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_sonarqube_ws_issues_Comments_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_sonarqube_ws_issues_Comments_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_sonarqube_ws_issues_ActionPlan_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_sonarqube_ws_issues_ActionPlan_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_sonarqube_ws_issues_ActionPlans_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_sonarqube_ws_issues_ActionPlans_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_sonarqube_ws_issues_Language_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_sonarqube_ws_issues_Language_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_sonarqube_ws_issues_Languages_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_sonarqube_ws_issues_Languages_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_sonarqube_ws_issues_Component_descriptor; private static @@ -17476,62 +18855,63 @@ public final class Issues { static { java.lang.String[] descriptorData = { "\n\017ws-issues.proto\022\023sonarqube.ws.issues\032\020" + - "ws-commons.proto\"\326\004\n\006Search\022\r\n\005total\030\001 \001" + + "ws-commons.proto\"\277\003\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(" + "\0132\034.sonarqube.ws.commons.Paging\022\021\n\tdebtT" + "otal\030\005 \001(\003\022*\n\006issues\030\006 \003(\0132\032.sonarqube.w" + "s.issues.Issue\0222\n\ncomponents\030\007 \003(\0132\036.son" + - "arqube.ws.issues.Component\022\033\n\023rulesPrese" + - "ntIfEmpty\030\010 \001(\010\022)\n\005rules\030\t \003(\0132\032.sonarqu" + - "be.ws.commons.Rule\022\033\n\023usersPresentIfEmpt" + - "y\030\n \001(\010\022)\n\005users\030\013 \003(\0132\032.sonarqube.ws.co", - "mmons.User\022!\n\031actionPlansPresentIfEmpty\030" + - "\014 \001(\010\0224\n\013actionPlans\030\r \003(\0132\037.sonarqube.w" + - "s.issues.ActionPlan\022\037\n\027languagesPresentI" + - "fEmpty\030\016 \001(\010\0220\n\tlanguages\030\017 \003(\0132\035.sonarq" + - "ube.ws.issues.Language\022\034\n\024facetsPresentI" + - "fEmpty\030\020 \001(\010\022+\n\006facets\030\021 \003(\0132\033.sonarqube" + - ".ws.commons.Facet\"\366\001\n\tOperation\022)\n\005issue" + - "\030\001 \001(\0132\032.sonarqube.ws.issues.Issue\0222\n\nco" + - "mponents\030\002 \003(\0132\036.sonarqube.ws.issues.Com" + - "ponent\022)\n\005rules\030\003 \003(\0132\032.sonarqube.ws.com", - "mons.Rule\022)\n\005users\030\004 \003(\0132\032.sonarqube.ws." + - "commons.User\0224\n\013actionPlans\030\005 \003(\0132\037.sona" + - "rqube.ws.issues.ActionPlan\"\313\005\n\005Issue\022\013\n\003" + - "key\030\001 \001(\t\022\014\n\004rule\030\002 \001(\t\0220\n\010severity\030\003 \001(" + - "\0162\036.sonarqube.ws.commons.Severity\022\021\n\tcom" + - "ponent\030\004 \001(\t\022\023\n\013componentId\030\005 \001(\003\022\017\n\007pro" + - "ject\030\006 \001(\t\022\022\n\nsubProject\030\007 \001(\t\022\014\n\004line\030\010" + - " \001(\005\0222\n\ttextRange\030\t \001(\0132\037.sonarqube.ws.c" + - "ommons.TextRange\022(\n\005flows\030\n \003(\0132\031.sonarq" + - "ube.ws.issues.Flow\022\022\n\nresolution\030\013 \001(\t\022\016", - "\n\006status\030\014 \001(\t\022\017\n\007message\030\r \001(\t\022\014\n\004debt\030" + - "\016 \001(\t\022\020\n\010assignee\030\017 \001(\t\022\020\n\010reporter\030\020 \001(" + - "\t\022\016\n\006author\030\021 \001(\t\022\022\n\nactionPlan\030\022 \001(\t\022\032\n" + - "\022tagsPresentIfEmpty\030\023 \001(\010\022\014\n\004tags\030\024 \003(\t\022" + - "!\n\031transitionsPresentIfEmpty\030\025 \001(\010\022\023\n\013tr" + - "ansitions\030\026 \003(\t\022\035\n\025actionsPresentIfEmpty" + - "\030\027 \001(\010\022\017\n\007actions\030\030 \003(\t\022\036\n\026commentsPrese" + - "ntIfEmpty\030\031 \001(\010\022.\n\010comments\030\032 \003(\0132\034.sona" + - "rqube.ws.issues.Comment\022\024\n\014creationDate\030" + - "\033 \001(\t\022\022\n\nupdateDate\030\034 \001(\t\022\022\n\nfUpdateAge\030", - "\035 \001(\t\022\021\n\tcloseDate\030\036 \001(\t\"8\n\004Flow\0220\n\tloca" + - "tions\030\001 \003(\0132\035.sonarqube.ws.issues.Locati" + - "on\"`\n\010Location\022\023\n\013componentId\030\001 \001(\t\0222\n\tt" + - "extRange\030\002 \001(\0132\037.sonarqube.ws.commons.Te" + - "xtRange\022\013\n\003msg\030\003 \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\010u" + - "serName\030\004 \001(\t\022\020\n\010htmlText\030\005 \001(\t\022\020\n\010markd" + - "own\030\006 \001(\t\022\021\n\tupdatable\030\007 \001(\010\022\021\n\tcreatedA" + - "t\030\010 \001(\t\"Z\n\nActionPlan\022\013\n\003key\030\001 \001(\t\022\014\n\004na" + - "me\030\002 \001(\t\022\016\n\006status\030\003 \001(\t\022\020\n\010deadLine\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(\t\"\255\001\n\tComponent\022\n\n\002id\030\001" + - " \001(\003\022\013\n\003key\030\002 \001(\t\022\014\n\004uuid\030\003 \001(\t\022\017\n\007enabl" + - "ed\030\004 \001(\010\022\021\n\tqualifier\030\005 \001(\t\022\014\n\004name\030\006 \001(" + - "\t\022\020\n\010longName\030\007 \001(\t\022\014\n\004path\030\010 \001(\t\022\021\n\tpro" + - "jectId\030\t \001(\003\022\024\n\014subProjectId\030\n \001(\003B\034\n\020or" + - "g.sonarqube.wsB\006IssuesH\001" + "arqube.ws.issues.Component\022*\n\005rules\030\010 \001(" + + "\0132\033.sonarqube.ws.commons.Rules\022*\n\005users\030" + + "\t \001(\0132\033.sonarqube.ws.commons.Users\0225\n\013ac" + + "tionPlans\030\n \001(\0132 .sonarqube.ws.issues.Ac", + "tionPlans\0221\n\tlanguages\030\013 \001(\0132\036.sonarqube" + + ".ws.issues.Languages\022,\n\006facets\030\014 \001(\0132\034.s" + + "onarqube.ws.commons.Facets\"\366\001\n\tOperation" + + "\022)\n\005issue\030\001 \001(\0132\032.sonarqube.ws.issues.Is" + + "sue\0222\n\ncomponents\030\002 \003(\0132\036.sonarqube.ws.i" + + "ssues.Component\022)\n\005rules\030\003 \003(\0132\032.sonarqu" + + "be.ws.commons.Rule\022)\n\005users\030\004 \003(\0132\032.sona" + + "rqube.ws.commons.User\0224\n\013actionPlans\030\005 \003" + + "(\0132\037.sonarqube.ws.issues.ActionPlan\"\216\005\n\005" + + "Issue\022\013\n\003key\030\001 \001(\t\022\014\n\004rule\030\002 \001(\t\0220\n\010seve", + "rity\030\003 \001(\0162\036.sonarqube.ws.commons.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\0222\n\ttextRange\030\t \001(\0132\037.sonar" + + "qube.ws.commons.TextRange\022(\n\005flows\030\n \003(\013" + + "2\031.sonarqube.ws.issues.Flow\022\022\n\nresolutio" + + "n\030\013 \001(\t\022\016\n\006status\030\014 \001(\t\022\017\n\007message\030\r \001(\t" + + "\022\014\n\004debt\030\016 \001(\t\022\020\n\010assignee\030\017 \001(\t\022\020\n\010repo" + + "rter\030\020 \001(\t\022\016\n\006author\030\021 \001(\t\022\022\n\nactionPlan" + + "\030\022 \001(\t\022\014\n\004tags\030\023 \003(\t\0225\n\013transitions\030\024 \001(", + "\0132 .sonarqube.ws.issues.Transitions\022-\n\007a" + + "ctions\030\025 \001(\0132\034.sonarqube.ws.issues.Actio" + + "ns\022/\n\010comments\030\026 \001(\0132\035.sonarqube.ws.issu" + + "es.Comments\022\024\n\014creationDate\030\027 \001(\t\022\022\n\nupd" + + "ateDate\030\030 \001(\t\022\022\n\nfUpdateAge\030\031 \001(\t\022\021\n\tclo" + + "seDate\030\032 \001(\t\"\"\n\013Transitions\022\023\n\013transitio" + + "ns\030\001 \003(\t\"\032\n\007Actions\022\017\n\007actions\030\001 \003(\t\"8\n\004" + + "Flow\0220\n\tlocations\030\001 \003(\0132\035.sonarqube.ws.i" + + "ssues.Location\"`\n\010Location\022\023\n\013componentI" + + "d\030\001 \001(\t\0222\n\ttextRange\030\002 \001(\0132\037.sonarqube.w", + "s.commons.TextRange\022\013\n\003msg\030\003 \001(\t\"\220\001\n\007Com" + + "ment\022\013\n\003key\030\001 \001(\t\022\r\n\005login\030\002 \001(\t\022\r\n\005emai" + + "l\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\":\n\010Comments\022.\n\010comme" + + "nts\030\001 \003(\0132\034.sonarqube.ws.issues.Comment\"" + + "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\"C\n\013ActionPlans\0224\n\013actionPlan" + + "s\030\001 \003(\0132\037.sonarqube.ws.issues.ActionPlan", + "\"%\n\010Language\022\013\n\003key\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\"" + + "=\n\tLanguages\0220\n\tlanguages\030\001 \003(\0132\035.sonarq" + + "ube.ws.issues.Language\"\255\001\n\tComponent\022\n\n\002" + + "id\030\001 \001(\003\022\013\n\003key\030\002 \001(\t\022\014\n\004uuid\030\003 \001(\t\022\017\n\007e" + + "nabled\030\004 \001(\010\022\021\n\tqualifier\030\005 \001(\t\022\014\n\004name\030" + + "\006 \001(\t\022\020\n\010longName\030\007 \001(\t\022\014\n\004path\030\010 \001(\t\022\021\n" + + "\tprojectId\030\t \001(\003\022\024\n\014subProjectId\030\n \001(\003B\034" + + "\n\020org.sonarqube.wsB\006IssuesH\001" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -17551,7 +18931,7 @@ 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", "Components", "RulesPresentIfEmpty", "Rules", "UsersPresentIfEmpty", "Users", "ActionPlansPresentIfEmpty", "ActionPlans", "LanguagesPresentIfEmpty", "Languages", "FacetsPresentIfEmpty", "Facets", }); + new java.lang.String[] { "Total", "P", "Ps", "Paging", "DebtTotal", "Issues", "Components", "Rules", "Users", "ActionPlans", "Languages", "Facets", }); internal_static_sonarqube_ws_issues_Operation_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_sonarqube_ws_issues_Operation_fieldAccessorTable = new @@ -17563,39 +18943,69 @@ public final class Issues { 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", "SubProject", "Line", "TextRange", "Flows", "Resolution", "Status", "Message", "Debt", "Assignee", "Reporter", "Author", "ActionPlan", "TagsPresentIfEmpty", "Tags", "TransitionsPresentIfEmpty", "Transitions", "ActionsPresentIfEmpty", "Actions", "CommentsPresentIfEmpty", "Comments", "CreationDate", "UpdateDate", "FUpdateAge", "CloseDate", }); - internal_static_sonarqube_ws_issues_Flow_descriptor = + new java.lang.String[] { "Key", "Rule", "Severity", "Component", "ComponentId", "Project", "SubProject", "Line", "TextRange", "Flows", "Resolution", "Status", "Message", "Debt", "Assignee", "Reporter", "Author", "ActionPlan", "Tags", "Transitions", "Actions", "Comments", "CreationDate", "UpdateDate", "FUpdateAge", "CloseDate", }); + internal_static_sonarqube_ws_issues_Transitions_descriptor = getDescriptor().getMessageTypes().get(3); + internal_static_sonarqube_ws_issues_Transitions_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_sonarqube_ws_issues_Transitions_descriptor, + new java.lang.String[] { "Transitions", }); + internal_static_sonarqube_ws_issues_Actions_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_sonarqube_ws_issues_Actions_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_sonarqube_ws_issues_Actions_descriptor, + new java.lang.String[] { "Actions", }); + internal_static_sonarqube_ws_issues_Flow_descriptor = + getDescriptor().getMessageTypes().get(5); internal_static_sonarqube_ws_issues_Flow_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_sonarqube_ws_issues_Flow_descriptor, new java.lang.String[] { "Locations", }); internal_static_sonarqube_ws_issues_Location_descriptor = - getDescriptor().getMessageTypes().get(4); + getDescriptor().getMessageTypes().get(6); internal_static_sonarqube_ws_issues_Location_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_sonarqube_ws_issues_Location_descriptor, new java.lang.String[] { "ComponentId", "TextRange", "Msg", }); internal_static_sonarqube_ws_issues_Comment_descriptor = - getDescriptor().getMessageTypes().get(5); + getDescriptor().getMessageTypes().get(7); 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_Comments_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_sonarqube_ws_issues_Comments_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_sonarqube_ws_issues_Comments_descriptor, + new java.lang.String[] { "Comments", }); internal_static_sonarqube_ws_issues_ActionPlan_descriptor = - getDescriptor().getMessageTypes().get(6); + getDescriptor().getMessageTypes().get(9); 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_ActionPlans_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_sonarqube_ws_issues_ActionPlans_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_sonarqube_ws_issues_ActionPlans_descriptor, + new java.lang.String[] { "ActionPlans", }); internal_static_sonarqube_ws_issues_Language_descriptor = - getDescriptor().getMessageTypes().get(7); + getDescriptor().getMessageTypes().get(11); internal_static_sonarqube_ws_issues_Language_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_sonarqube_ws_issues_Language_descriptor, new java.lang.String[] { "Key", "Name", }); + internal_static_sonarqube_ws_issues_Languages_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_sonarqube_ws_issues_Languages_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_sonarqube_ws_issues_Languages_descriptor, + new java.lang.String[] { "Languages", }); internal_static_sonarqube_ws_issues_Component_descriptor = - getDescriptor().getMessageTypes().get(8); + getDescriptor().getMessageTypes().get(13); internal_static_sonarqube_ws_issues_Component_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_sonarqube_ws_issues_Component_descriptor, diff --git a/sonar-ws/src/main/gen-java/org/sonarqube/ws/Permissions.java b/sonar-ws/src/main/gen-java/org/sonarqube/ws/Permissions.java deleted file mode 100644 index 7564f76c760..00000000000 --- a/sonar-ws/src/main/gen-java/org/sonarqube/ws/Permissions.java +++ /dev/null @@ -1,12666 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ws-permissions.proto - -package org.sonarqube.ws; - -public final class Permissions { - private Permissions() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - } - public interface WsUsersResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:sonarqube.ws.permissions.WsUsersResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - boolean hasPaging(); - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - org.sonarqube.ws.Common.Paging getPaging(); - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - org.sonarqube.ws.Common.PagingOrBuilder getPagingOrBuilder(); - - /** - * repeated .sonarqube.ws.permissions.WsUsersResponse.User users = 2; - */ - java.util.List - getUsersList(); - /** - * repeated .sonarqube.ws.permissions.WsUsersResponse.User users = 2; - */ - org.sonarqube.ws.Permissions.WsUsersResponse.User getUsers(int index); - /** - * repeated .sonarqube.ws.permissions.WsUsersResponse.User users = 2; - */ - int getUsersCount(); - /** - * repeated .sonarqube.ws.permissions.WsUsersResponse.User users = 2; - */ - java.util.List - getUsersOrBuilderList(); - /** - * repeated .sonarqube.ws.permissions.WsUsersResponse.User users = 2; - */ - org.sonarqube.ws.Permissions.WsUsersResponse.UserOrBuilder getUsersOrBuilder( - int index); - } - /** - * Protobuf type {@code sonarqube.ws.permissions.WsUsersResponse} - * - *
-   * WS api/permissions/users for internal use only
-   * 
- */ - public static final class WsUsersResponse extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:sonarqube.ws.permissions.WsUsersResponse) - WsUsersResponseOrBuilder { - // Use WsUsersResponse.newBuilder() to construct. - private WsUsersResponse(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private WsUsersResponse() { - users_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WsUsersResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - 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.Common.Paging.Builder subBuilder = null; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - subBuilder = paging_.toBuilder(); - } - paging_ = input.readMessage(org.sonarqube.ws.Common.Paging.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(paging_); - paging_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000001; - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - users_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - users_.add(input.readMessage(org.sonarqube.ws.Permissions.WsUsersResponse.User.PARSER, extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - users_ = java.util.Collections.unmodifiableList(users_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsUsersResponse_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsUsersResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Permissions.WsUsersResponse.class, org.sonarqube.ws.Permissions.WsUsersResponse.Builder.class); - } - - public interface UserOrBuilder extends - // @@protoc_insertion_point(interface_extends:sonarqube.ws.permissions.WsUsersResponse.User) - com.google.protobuf.MessageOrBuilder { - - /** - * optional string login = 1; - */ - boolean hasLogin(); - /** - * optional string login = 1; - */ - java.lang.String getLogin(); - /** - * optional string login = 1; - */ - com.google.protobuf.ByteString - getLoginBytes(); - - /** - * optional string name = 2; - */ - boolean hasName(); - /** - * optional string name = 2; - */ - java.lang.String getName(); - /** - * optional string name = 2; - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - * optional string email = 3; - */ - boolean hasEmail(); - /** - * optional string email = 3; - */ - java.lang.String getEmail(); - /** - * optional string email = 3; - */ - com.google.protobuf.ByteString - getEmailBytes(); - - /** - * optional bool selected = 4; - */ - boolean hasSelected(); - /** - * optional bool selected = 4; - */ - boolean getSelected(); - } - /** - * Protobuf type {@code sonarqube.ws.permissions.WsUsersResponse.User} - */ - public static final class User extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:sonarqube.ws.permissions.WsUsersResponse.User) - UserOrBuilder { - // Use User.newBuilder() to construct. - private User(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private User() { - login_ = ""; - name_ = ""; - email_ = ""; - selected_ = false; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private User( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000001; - login_ = bs; - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - name_ = bs; - break; - } - case 26: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000004; - email_ = bs; - break; - } - case 32: { - bitField0_ |= 0x00000008; - selected_ = input.readBool(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsUsersResponse_User_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsUsersResponse_User_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Permissions.WsUsersResponse.User.class, org.sonarqube.ws.Permissions.WsUsersResponse.User.Builder.class); - } - - private int bitField0_; - public static final int LOGIN_FIELD_NUMBER = 1; - private volatile java.lang.Object login_; - /** - * optional string login = 1; - */ - public boolean hasLogin() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string login = 1; - */ - public java.lang.String getLogin() { - java.lang.Object ref = login_; - 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()) { - login_ = s; - } - return s; - } - } - /** - * optional string login = 1; - */ - public com.google.protobuf.ByteString - getLoginBytes() { - java.lang.Object ref = login_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - login_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object name_; - /** - * optional string name = 2; - */ - public boolean hasName() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string name = 2; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - 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()) { - name_ = s; - } - return s; - } - } - /** - * optional string name = 2; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int EMAIL_FIELD_NUMBER = 3; - private volatile java.lang.Object email_; - /** - * optional string email = 3; - */ - public boolean hasEmail() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional string email = 3; - */ - public java.lang.String getEmail() { - java.lang.Object ref = email_; - 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()) { - email_ = s; - } - return s; - } - } - /** - * optional string email = 3; - */ - public com.google.protobuf.ByteString - getEmailBytes() { - java.lang.Object ref = email_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - email_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SELECTED_FIELD_NUMBER = 4; - private boolean selected_; - /** - * optional bool selected = 4; - */ - public boolean hasSelected() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional bool selected = 4; - */ - public boolean getSelected() { - return selected_; - } - - 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 { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getLoginBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getNameBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, getEmailBytes()); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeBool(4, selected_); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getLoginBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getNameBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getEmailBytes()); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, selected_); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonarqube.ws.Permissions.WsUsersResponse.User parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.Permissions.WsUsersResponse.User 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.Permissions.WsUsersResponse.User parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.Permissions.WsUsersResponse.User parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.Permissions.WsUsersResponse.User parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.Permissions.WsUsersResponse.User parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.Permissions.WsUsersResponse.User parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonarqube.ws.Permissions.WsUsersResponse.User parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.Permissions.WsUsersResponse.User parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.Permissions.WsUsersResponse.User parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonarqube.ws.Permissions.WsUsersResponse.User prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(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.permissions.WsUsersResponse.User} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:sonarqube.ws.permissions.WsUsersResponse.User) - org.sonarqube.ws.Permissions.WsUsersResponse.UserOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsUsersResponse_User_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsUsersResponse_User_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Permissions.WsUsersResponse.User.class, org.sonarqube.ws.Permissions.WsUsersResponse.User.Builder.class); - } - - // Construct using org.sonarqube.ws.Permissions.WsUsersResponse.User.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - login_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - name_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - email_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); - selected_ = false; - bitField0_ = (bitField0_ & ~0x00000008); - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsUsersResponse_User_descriptor; - } - - public org.sonarqube.ws.Permissions.WsUsersResponse.User getDefaultInstanceForType() { - return org.sonarqube.ws.Permissions.WsUsersResponse.User.getDefaultInstance(); - } - - public org.sonarqube.ws.Permissions.WsUsersResponse.User build() { - org.sonarqube.ws.Permissions.WsUsersResponse.User result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonarqube.ws.Permissions.WsUsersResponse.User buildPartial() { - org.sonarqube.ws.Permissions.WsUsersResponse.User result = new org.sonarqube.ws.Permissions.WsUsersResponse.User(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.login_ = login_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.name_ = name_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.email_ = email_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } - result.selected_ = selected_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonarqube.ws.Permissions.WsUsersResponse.User) { - return mergeFrom((org.sonarqube.ws.Permissions.WsUsersResponse.User)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonarqube.ws.Permissions.WsUsersResponse.User other) { - if (other == org.sonarqube.ws.Permissions.WsUsersResponse.User.getDefaultInstance()) return this; - if (other.hasLogin()) { - bitField0_ |= 0x00000001; - login_ = other.login_; - onChanged(); - } - if (other.hasName()) { - bitField0_ |= 0x00000002; - name_ = other.name_; - onChanged(); - } - if (other.hasEmail()) { - bitField0_ |= 0x00000004; - email_ = other.email_; - onChanged(); - } - if (other.hasSelected()) { - setSelected(other.getSelected()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - 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.Permissions.WsUsersResponse.User parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonarqube.ws.Permissions.WsUsersResponse.User) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object login_ = ""; - /** - * optional string login = 1; - */ - public boolean hasLogin() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string login = 1; - */ - public java.lang.String getLogin() { - java.lang.Object ref = login_; - 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()) { - login_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string login = 1; - */ - public com.google.protobuf.ByteString - getLoginBytes() { - java.lang.Object ref = login_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - login_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string login = 1; - */ - public Builder setLogin( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - login_ = value; - onChanged(); - return this; - } - /** - * optional string login = 1; - */ - public Builder clearLogin() { - bitField0_ = (bitField0_ & ~0x00000001); - login_ = getDefaultInstance().getLogin(); - onChanged(); - return this; - } - /** - * optional string login = 1; - */ - public Builder setLoginBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - login_ = value; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - * optional string name = 2; - */ - public boolean hasName() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string name = 2; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - name_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string name = 2; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string name = 2; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - name_ = value; - onChanged(); - return this; - } - /** - * optional string name = 2; - */ - public Builder clearName() { - bitField0_ = (bitField0_ & ~0x00000002); - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * optional string name = 2; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - name_ = value; - onChanged(); - return this; - } - - private java.lang.Object email_ = ""; - /** - * optional string email = 3; - */ - public boolean hasEmail() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional string email = 3; - */ - public java.lang.String getEmail() { - java.lang.Object ref = email_; - 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()) { - email_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string email = 3; - */ - public com.google.protobuf.ByteString - getEmailBytes() { - java.lang.Object ref = email_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - email_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string email = 3; - */ - public Builder setEmail( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - email_ = value; - onChanged(); - return this; - } - /** - * optional string email = 3; - */ - public Builder clearEmail() { - bitField0_ = (bitField0_ & ~0x00000004); - email_ = getDefaultInstance().getEmail(); - onChanged(); - return this; - } - /** - * optional string email = 3; - */ - public Builder setEmailBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - email_ = value; - onChanged(); - return this; - } - - private boolean selected_ ; - /** - * optional bool selected = 4; - */ - public boolean hasSelected() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional bool selected = 4; - */ - public boolean getSelected() { - return selected_; - } - /** - * optional bool selected = 4; - */ - public Builder setSelected(boolean value) { - bitField0_ |= 0x00000008; - selected_ = value; - onChanged(); - return this; - } - /** - * optional bool selected = 4; - */ - public Builder clearSelected() { - bitField0_ = (bitField0_ & ~0x00000008); - selected_ = false; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:sonarqube.ws.permissions.WsUsersResponse.User) - } - - // @@protoc_insertion_point(class_scope:sonarqube.ws.permissions.WsUsersResponse.User) - private static final org.sonarqube.ws.Permissions.WsUsersResponse.User DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonarqube.ws.Permissions.WsUsersResponse.User(); - } - - public static org.sonarqube.ws.Permissions.WsUsersResponse.User getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public User parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new User(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonarqube.ws.Permissions.WsUsersResponse.User getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private int bitField0_; - public static final int PAGING_FIELD_NUMBER = 1; - private org.sonarqube.ws.Common.Paging paging_; - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - public boolean hasPaging() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - public org.sonarqube.ws.Common.Paging getPaging() { - return paging_ == null ? org.sonarqube.ws.Common.Paging.getDefaultInstance() : paging_; - } - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - public org.sonarqube.ws.Common.PagingOrBuilder getPagingOrBuilder() { - return paging_ == null ? org.sonarqube.ws.Common.Paging.getDefaultInstance() : paging_; - } - - public static final int USERS_FIELD_NUMBER = 2; - private java.util.List users_; - /** - * repeated .sonarqube.ws.permissions.WsUsersResponse.User users = 2; - */ - public java.util.List getUsersList() { - return users_; - } - /** - * repeated .sonarqube.ws.permissions.WsUsersResponse.User users = 2; - */ - public java.util.List - getUsersOrBuilderList() { - return users_; - } - /** - * repeated .sonarqube.ws.permissions.WsUsersResponse.User users = 2; - */ - public int getUsersCount() { - return users_.size(); - } - /** - * repeated .sonarqube.ws.permissions.WsUsersResponse.User users = 2; - */ - public org.sonarqube.ws.Permissions.WsUsersResponse.User getUsers(int index) { - return users_.get(index); - } - /** - * repeated .sonarqube.ws.permissions.WsUsersResponse.User users = 2; - */ - public org.sonarqube.ws.Permissions.WsUsersResponse.UserOrBuilder getUsersOrBuilder( - int index) { - return users_.get(index); - } - - 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 { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(1, getPaging()); - } - for (int i = 0; i < users_.size(); i++) { - output.writeMessage(2, users_.get(i)); - } - unknownFields.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, getPaging()); - } - for (int i = 0; i < users_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, users_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonarqube.ws.Permissions.WsUsersResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.Permissions.WsUsersResponse 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.Permissions.WsUsersResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.Permissions.WsUsersResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.Permissions.WsUsersResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.Permissions.WsUsersResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.Permissions.WsUsersResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonarqube.ws.Permissions.WsUsersResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.Permissions.WsUsersResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.Permissions.WsUsersResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonarqube.ws.Permissions.WsUsersResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(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.permissions.WsUsersResponse} - * - *
-     * WS api/permissions/users for internal use only
-     * 
- */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:sonarqube.ws.permissions.WsUsersResponse) - org.sonarqube.ws.Permissions.WsUsersResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsUsersResponse_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsUsersResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Permissions.WsUsersResponse.class, org.sonarqube.ws.Permissions.WsUsersResponse.Builder.class); - } - - // Construct using org.sonarqube.ws.Permissions.WsUsersResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getPagingFieldBuilder(); - getUsersFieldBuilder(); - } - } - public Builder clear() { - super.clear(); - if (pagingBuilder_ == null) { - paging_ = null; - } else { - pagingBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - if (usersBuilder_ == null) { - users_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - usersBuilder_.clear(); - } - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsUsersResponse_descriptor; - } - - public org.sonarqube.ws.Permissions.WsUsersResponse getDefaultInstanceForType() { - return org.sonarqube.ws.Permissions.WsUsersResponse.getDefaultInstance(); - } - - public org.sonarqube.ws.Permissions.WsUsersResponse build() { - org.sonarqube.ws.Permissions.WsUsersResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonarqube.ws.Permissions.WsUsersResponse buildPartial() { - org.sonarqube.ws.Permissions.WsUsersResponse result = new org.sonarqube.ws.Permissions.WsUsersResponse(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - if (pagingBuilder_ == null) { - result.paging_ = paging_; - } else { - result.paging_ = pagingBuilder_.build(); - } - if (usersBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002)) { - users_ = java.util.Collections.unmodifiableList(users_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.users_ = users_; - } else { - result.users_ = usersBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonarqube.ws.Permissions.WsUsersResponse) { - return mergeFrom((org.sonarqube.ws.Permissions.WsUsersResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonarqube.ws.Permissions.WsUsersResponse other) { - if (other == org.sonarqube.ws.Permissions.WsUsersResponse.getDefaultInstance()) return this; - if (other.hasPaging()) { - mergePaging(other.getPaging()); - } - if (usersBuilder_ == null) { - if (!other.users_.isEmpty()) { - if (users_.isEmpty()) { - users_ = other.users_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureUsersIsMutable(); - users_.addAll(other.users_); - } - onChanged(); - } - } else { - if (!other.users_.isEmpty()) { - if (usersBuilder_.isEmpty()) { - usersBuilder_.dispose(); - usersBuilder_ = null; - users_ = other.users_; - bitField0_ = (bitField0_ & ~0x00000002); - usersBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getUsersFieldBuilder() : null; - } else { - usersBuilder_.addAllMessages(other.users_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - 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.Permissions.WsUsersResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonarqube.ws.Permissions.WsUsersResponse) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private org.sonarqube.ws.Common.Paging paging_ = null; - private com.google.protobuf.SingleFieldBuilder< - org.sonarqube.ws.Common.Paging, org.sonarqube.ws.Common.Paging.Builder, org.sonarqube.ws.Common.PagingOrBuilder> pagingBuilder_; - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - public boolean hasPaging() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - public org.sonarqube.ws.Common.Paging getPaging() { - if (pagingBuilder_ == null) { - return paging_ == null ? org.sonarqube.ws.Common.Paging.getDefaultInstance() : paging_; - } else { - return pagingBuilder_.getMessage(); - } - } - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - public Builder setPaging(org.sonarqube.ws.Common.Paging value) { - if (pagingBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - paging_ = value; - onChanged(); - } else { - pagingBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - public Builder setPaging( - org.sonarqube.ws.Common.Paging.Builder builderForValue) { - if (pagingBuilder_ == null) { - paging_ = builderForValue.build(); - onChanged(); - } else { - pagingBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - public Builder mergePaging(org.sonarqube.ws.Common.Paging value) { - if (pagingBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001) && - paging_ != null && - paging_ != org.sonarqube.ws.Common.Paging.getDefaultInstance()) { - paging_ = - org.sonarqube.ws.Common.Paging.newBuilder(paging_).mergeFrom(value).buildPartial(); - } else { - paging_ = value; - } - onChanged(); - } else { - pagingBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - public Builder clearPaging() { - if (pagingBuilder_ == null) { - paging_ = null; - onChanged(); - } else { - pagingBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - public org.sonarqube.ws.Common.Paging.Builder getPagingBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getPagingFieldBuilder().getBuilder(); - } - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - public org.sonarqube.ws.Common.PagingOrBuilder getPagingOrBuilder() { - if (pagingBuilder_ != null) { - return pagingBuilder_.getMessageOrBuilder(); - } else { - return paging_ == null ? - org.sonarqube.ws.Common.Paging.getDefaultInstance() : paging_; - } - } - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - private com.google.protobuf.SingleFieldBuilder< - org.sonarqube.ws.Common.Paging, org.sonarqube.ws.Common.Paging.Builder, org.sonarqube.ws.Common.PagingOrBuilder> - getPagingFieldBuilder() { - if (pagingBuilder_ == null) { - pagingBuilder_ = new com.google.protobuf.SingleFieldBuilder< - org.sonarqube.ws.Common.Paging, org.sonarqube.ws.Common.Paging.Builder, org.sonarqube.ws.Common.PagingOrBuilder>( - getPaging(), - getParentForChildren(), - isClean()); - paging_ = null; - } - return pagingBuilder_; - } - - private java.util.List users_ = - java.util.Collections.emptyList(); - private void ensureUsersIsMutable() { - if (!((bitField0_ & 0x00000002) == 0x00000002)) { - users_ = new java.util.ArrayList(users_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.Permissions.WsUsersResponse.User, org.sonarqube.ws.Permissions.WsUsersResponse.User.Builder, org.sonarqube.ws.Permissions.WsUsersResponse.UserOrBuilder> usersBuilder_; - - /** - * repeated .sonarqube.ws.permissions.WsUsersResponse.User users = 2; - */ - public java.util.List getUsersList() { - if (usersBuilder_ == null) { - return java.util.Collections.unmodifiableList(users_); - } else { - return usersBuilder_.getMessageList(); - } - } - /** - * repeated .sonarqube.ws.permissions.WsUsersResponse.User users = 2; - */ - public int getUsersCount() { - if (usersBuilder_ == null) { - return users_.size(); - } else { - return usersBuilder_.getCount(); - } - } - /** - * repeated .sonarqube.ws.permissions.WsUsersResponse.User users = 2; - */ - public org.sonarqube.ws.Permissions.WsUsersResponse.User getUsers(int index) { - if (usersBuilder_ == null) { - return users_.get(index); - } else { - return usersBuilder_.getMessage(index); - } - } - /** - * repeated .sonarqube.ws.permissions.WsUsersResponse.User users = 2; - */ - public Builder setUsers( - int index, org.sonarqube.ws.Permissions.WsUsersResponse.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.permissions.WsUsersResponse.User users = 2; - */ - public Builder setUsers( - int index, org.sonarqube.ws.Permissions.WsUsersResponse.User.Builder builderForValue) { - if (usersBuilder_ == null) { - ensureUsersIsMutable(); - users_.set(index, builderForValue.build()); - onChanged(); - } else { - usersBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.WsUsersResponse.User users = 2; - */ - public Builder addUsers(org.sonarqube.ws.Permissions.WsUsersResponse.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.permissions.WsUsersResponse.User users = 2; - */ - public Builder addUsers( - int index, org.sonarqube.ws.Permissions.WsUsersResponse.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.permissions.WsUsersResponse.User users = 2; - */ - public Builder addUsers( - org.sonarqube.ws.Permissions.WsUsersResponse.User.Builder builderForValue) { - if (usersBuilder_ == null) { - ensureUsersIsMutable(); - users_.add(builderForValue.build()); - onChanged(); - } else { - usersBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.WsUsersResponse.User users = 2; - */ - public Builder addUsers( - int index, org.sonarqube.ws.Permissions.WsUsersResponse.User.Builder builderForValue) { - if (usersBuilder_ == null) { - ensureUsersIsMutable(); - users_.add(index, builderForValue.build()); - onChanged(); - } else { - usersBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.WsUsersResponse.User users = 2; - */ - 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.permissions.WsUsersResponse.User users = 2; - */ - public Builder clearUsers() { - if (usersBuilder_ == null) { - users_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - usersBuilder_.clear(); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.WsUsersResponse.User users = 2; - */ - public Builder removeUsers(int index) { - if (usersBuilder_ == null) { - ensureUsersIsMutable(); - users_.remove(index); - onChanged(); - } else { - usersBuilder_.remove(index); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.WsUsersResponse.User users = 2; - */ - public org.sonarqube.ws.Permissions.WsUsersResponse.User.Builder getUsersBuilder( - int index) { - return getUsersFieldBuilder().getBuilder(index); - } - /** - * repeated .sonarqube.ws.permissions.WsUsersResponse.User users = 2; - */ - public org.sonarqube.ws.Permissions.WsUsersResponse.UserOrBuilder getUsersOrBuilder( - int index) { - if (usersBuilder_ == null) { - return users_.get(index); } else { - return usersBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .sonarqube.ws.permissions.WsUsersResponse.User users = 2; - */ - public java.util.List - getUsersOrBuilderList() { - if (usersBuilder_ != null) { - return usersBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(users_); - } - } - /** - * repeated .sonarqube.ws.permissions.WsUsersResponse.User users = 2; - */ - public org.sonarqube.ws.Permissions.WsUsersResponse.User.Builder addUsersBuilder() { - return getUsersFieldBuilder().addBuilder( - org.sonarqube.ws.Permissions.WsUsersResponse.User.getDefaultInstance()); - } - /** - * repeated .sonarqube.ws.permissions.WsUsersResponse.User users = 2; - */ - public org.sonarqube.ws.Permissions.WsUsersResponse.User.Builder addUsersBuilder( - int index) { - return getUsersFieldBuilder().addBuilder( - index, org.sonarqube.ws.Permissions.WsUsersResponse.User.getDefaultInstance()); - } - /** - * repeated .sonarqube.ws.permissions.WsUsersResponse.User users = 2; - */ - public java.util.List - getUsersBuilderList() { - return getUsersFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.Permissions.WsUsersResponse.User, org.sonarqube.ws.Permissions.WsUsersResponse.User.Builder, org.sonarqube.ws.Permissions.WsUsersResponse.UserOrBuilder> - getUsersFieldBuilder() { - if (usersBuilder_ == null) { - usersBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.Permissions.WsUsersResponse.User, org.sonarqube.ws.Permissions.WsUsersResponse.User.Builder, org.sonarqube.ws.Permissions.WsUsersResponse.UserOrBuilder>( - users_, - ((bitField0_ & 0x00000002) == 0x00000002), - getParentForChildren(), - isClean()); - users_ = null; - } - return usersBuilder_; - } - - // @@protoc_insertion_point(builder_scope:sonarqube.ws.permissions.WsUsersResponse) - } - - // @@protoc_insertion_point(class_scope:sonarqube.ws.permissions.WsUsersResponse) - private static final org.sonarqube.ws.Permissions.WsUsersResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonarqube.ws.Permissions.WsUsersResponse(); - } - - public static org.sonarqube.ws.Permissions.WsUsersResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public WsUsersResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new WsUsersResponse(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonarqube.ws.Permissions.WsUsersResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface WsGroupsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:sonarqube.ws.permissions.WsGroupsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - boolean hasPaging(); - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - org.sonarqube.ws.Common.Paging getPaging(); - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - org.sonarqube.ws.Common.PagingOrBuilder getPagingOrBuilder(); - - /** - * repeated .sonarqube.ws.permissions.WsGroupsResponse.Group groups = 2; - */ - java.util.List - getGroupsList(); - /** - * repeated .sonarqube.ws.permissions.WsGroupsResponse.Group groups = 2; - */ - org.sonarqube.ws.Permissions.WsGroupsResponse.Group getGroups(int index); - /** - * repeated .sonarqube.ws.permissions.WsGroupsResponse.Group groups = 2; - */ - int getGroupsCount(); - /** - * repeated .sonarqube.ws.permissions.WsGroupsResponse.Group groups = 2; - */ - java.util.List - getGroupsOrBuilderList(); - /** - * repeated .sonarqube.ws.permissions.WsGroupsResponse.Group groups = 2; - */ - org.sonarqube.ws.Permissions.WsGroupsResponse.GroupOrBuilder getGroupsOrBuilder( - int index); - } - /** - * Protobuf type {@code sonarqube.ws.permissions.WsGroupsResponse} - * - *
-   * WS api/permissions/groups for internal use only
-   * 
- */ - public static final class WsGroupsResponse extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:sonarqube.ws.permissions.WsGroupsResponse) - WsGroupsResponseOrBuilder { - // Use WsGroupsResponse.newBuilder() to construct. - private WsGroupsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private WsGroupsResponse() { - groups_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WsGroupsResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - 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.Common.Paging.Builder subBuilder = null; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - subBuilder = paging_.toBuilder(); - } - paging_ = input.readMessage(org.sonarqube.ws.Common.Paging.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(paging_); - paging_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000001; - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - groups_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - groups_.add(input.readMessage(org.sonarqube.ws.Permissions.WsGroupsResponse.Group.PARSER, extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - groups_ = java.util.Collections.unmodifiableList(groups_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsGroupsResponse_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsGroupsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Permissions.WsGroupsResponse.class, org.sonarqube.ws.Permissions.WsGroupsResponse.Builder.class); - } - - public interface GroupOrBuilder extends - // @@protoc_insertion_point(interface_extends:sonarqube.ws.permissions.WsGroupsResponse.Group) - com.google.protobuf.MessageOrBuilder { - - /** - * optional string id = 1; - */ - boolean hasId(); - /** - * optional string id = 1; - */ - java.lang.String getId(); - /** - * optional string id = 1; - */ - com.google.protobuf.ByteString - getIdBytes(); - - /** - * optional string name = 2; - */ - boolean hasName(); - /** - * optional string name = 2; - */ - java.lang.String getName(); - /** - * optional string name = 2; - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - * optional string description = 3; - */ - boolean hasDescription(); - /** - * optional string description = 3; - */ - java.lang.String getDescription(); - /** - * optional string description = 3; - */ - com.google.protobuf.ByteString - getDescriptionBytes(); - - /** - * optional bool selected = 4; - */ - boolean hasSelected(); - /** - * optional bool selected = 4; - */ - boolean getSelected(); - } - /** - * Protobuf type {@code sonarqube.ws.permissions.WsGroupsResponse.Group} - */ - public static final class Group extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:sonarqube.ws.permissions.WsGroupsResponse.Group) - GroupOrBuilder { - // Use Group.newBuilder() to construct. - private Group(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Group() { - id_ = ""; - name_ = ""; - description_ = ""; - selected_ = false; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Group( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000001; - id_ = bs; - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - name_ = bs; - break; - } - case 26: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000004; - description_ = bs; - break; - } - case 32: { - bitField0_ |= 0x00000008; - selected_ = input.readBool(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsGroupsResponse_Group_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsGroupsResponse_Group_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Permissions.WsGroupsResponse.Group.class, org.sonarqube.ws.Permissions.WsGroupsResponse.Group.Builder.class); - } - - private int bitField0_; - public static final int ID_FIELD_NUMBER = 1; - private volatile java.lang.Object id_; - /** - * optional string id = 1; - */ - public boolean hasId() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string id = 1; - */ - public java.lang.String getId() { - java.lang.Object ref = id_; - 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()) { - id_ = s; - } - return s; - } - } - /** - * optional string id = 1; - */ - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object name_; - /** - * optional string name = 2; - */ - public boolean hasName() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string name = 2; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - 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()) { - name_ = s; - } - return s; - } - } - /** - * optional string name = 2; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DESCRIPTION_FIELD_NUMBER = 3; - private volatile java.lang.Object description_; - /** - * optional string description = 3; - */ - public boolean hasDescription() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional string description = 3; - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - 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()) { - description_ = s; - } - return s; - } - } - /** - * optional string description = 3; - */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SELECTED_FIELD_NUMBER = 4; - private boolean selected_; - /** - * optional bool selected = 4; - */ - public boolean hasSelected() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional bool selected = 4; - */ - public boolean getSelected() { - return selected_; - } - - 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 { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getIdBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getNameBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, getDescriptionBytes()); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeBool(4, selected_); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getIdBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getNameBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getDescriptionBytes()); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, selected_); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonarqube.ws.Permissions.WsGroupsResponse.Group parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.Permissions.WsGroupsResponse.Group 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.Permissions.WsGroupsResponse.Group parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.Permissions.WsGroupsResponse.Group parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.Permissions.WsGroupsResponse.Group parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.Permissions.WsGroupsResponse.Group parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.Permissions.WsGroupsResponse.Group parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonarqube.ws.Permissions.WsGroupsResponse.Group parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.Permissions.WsGroupsResponse.Group parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.Permissions.WsGroupsResponse.Group parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonarqube.ws.Permissions.WsGroupsResponse.Group prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(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.permissions.WsGroupsResponse.Group} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:sonarqube.ws.permissions.WsGroupsResponse.Group) - org.sonarqube.ws.Permissions.WsGroupsResponse.GroupOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsGroupsResponse_Group_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsGroupsResponse_Group_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Permissions.WsGroupsResponse.Group.class, org.sonarqube.ws.Permissions.WsGroupsResponse.Group.Builder.class); - } - - // Construct using org.sonarqube.ws.Permissions.WsGroupsResponse.Group.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - id_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - name_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - description_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); - selected_ = false; - bitField0_ = (bitField0_ & ~0x00000008); - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsGroupsResponse_Group_descriptor; - } - - public org.sonarqube.ws.Permissions.WsGroupsResponse.Group getDefaultInstanceForType() { - return org.sonarqube.ws.Permissions.WsGroupsResponse.Group.getDefaultInstance(); - } - - public org.sonarqube.ws.Permissions.WsGroupsResponse.Group build() { - org.sonarqube.ws.Permissions.WsGroupsResponse.Group result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonarqube.ws.Permissions.WsGroupsResponse.Group buildPartial() { - org.sonarqube.ws.Permissions.WsGroupsResponse.Group result = new org.sonarqube.ws.Permissions.WsGroupsResponse.Group(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.id_ = id_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.name_ = name_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.description_ = description_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } - result.selected_ = selected_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonarqube.ws.Permissions.WsGroupsResponse.Group) { - return mergeFrom((org.sonarqube.ws.Permissions.WsGroupsResponse.Group)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonarqube.ws.Permissions.WsGroupsResponse.Group other) { - if (other == org.sonarqube.ws.Permissions.WsGroupsResponse.Group.getDefaultInstance()) return this; - if (other.hasId()) { - bitField0_ |= 0x00000001; - id_ = other.id_; - onChanged(); - } - if (other.hasName()) { - bitField0_ |= 0x00000002; - name_ = other.name_; - onChanged(); - } - if (other.hasDescription()) { - bitField0_ |= 0x00000004; - description_ = other.description_; - onChanged(); - } - if (other.hasSelected()) { - setSelected(other.getSelected()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - 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.Permissions.WsGroupsResponse.Group parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonarqube.ws.Permissions.WsGroupsResponse.Group) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object id_ = ""; - /** - * optional string id = 1; - */ - public boolean hasId() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string id = 1; - */ - public java.lang.String getId() { - java.lang.Object ref = id_; - 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()) { - id_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string id = 1; - */ - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string id = 1; - */ - public Builder setId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - id_ = value; - onChanged(); - return this; - } - /** - * optional string id = 1; - */ - public Builder clearId() { - bitField0_ = (bitField0_ & ~0x00000001); - id_ = getDefaultInstance().getId(); - onChanged(); - return this; - } - /** - * optional string id = 1; - */ - public Builder setIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - id_ = value; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - * optional string name = 2; - */ - public boolean hasName() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string name = 2; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - name_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string name = 2; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string name = 2; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - name_ = value; - onChanged(); - return this; - } - /** - * optional string name = 2; - */ - public Builder clearName() { - bitField0_ = (bitField0_ & ~0x00000002); - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * optional string name = 2; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - name_ = value; - onChanged(); - return this; - } - - private java.lang.Object description_ = ""; - /** - * optional string description = 3; - */ - public boolean hasDescription() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional string description = 3; - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - 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()) { - description_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string description = 3; - */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string description = 3; - */ - public Builder setDescription( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - description_ = value; - onChanged(); - return this; - } - /** - * optional string description = 3; - */ - public Builder clearDescription() { - bitField0_ = (bitField0_ & ~0x00000004); - description_ = getDefaultInstance().getDescription(); - onChanged(); - return this; - } - /** - * optional string description = 3; - */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - description_ = value; - onChanged(); - return this; - } - - private boolean selected_ ; - /** - * optional bool selected = 4; - */ - public boolean hasSelected() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional bool selected = 4; - */ - public boolean getSelected() { - return selected_; - } - /** - * optional bool selected = 4; - */ - public Builder setSelected(boolean value) { - bitField0_ |= 0x00000008; - selected_ = value; - onChanged(); - return this; - } - /** - * optional bool selected = 4; - */ - public Builder clearSelected() { - bitField0_ = (bitField0_ & ~0x00000008); - selected_ = false; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:sonarqube.ws.permissions.WsGroupsResponse.Group) - } - - // @@protoc_insertion_point(class_scope:sonarqube.ws.permissions.WsGroupsResponse.Group) - private static final org.sonarqube.ws.Permissions.WsGroupsResponse.Group DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonarqube.ws.Permissions.WsGroupsResponse.Group(); - } - - public static org.sonarqube.ws.Permissions.WsGroupsResponse.Group getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Group parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new Group(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonarqube.ws.Permissions.WsGroupsResponse.Group getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private int bitField0_; - public static final int PAGING_FIELD_NUMBER = 1; - private org.sonarqube.ws.Common.Paging paging_; - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - public boolean hasPaging() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - public org.sonarqube.ws.Common.Paging getPaging() { - return paging_ == null ? org.sonarqube.ws.Common.Paging.getDefaultInstance() : paging_; - } - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - public org.sonarqube.ws.Common.PagingOrBuilder getPagingOrBuilder() { - return paging_ == null ? org.sonarqube.ws.Common.Paging.getDefaultInstance() : paging_; - } - - public static final int GROUPS_FIELD_NUMBER = 2; - private java.util.List groups_; - /** - * repeated .sonarqube.ws.permissions.WsGroupsResponse.Group groups = 2; - */ - public java.util.List getGroupsList() { - return groups_; - } - /** - * repeated .sonarqube.ws.permissions.WsGroupsResponse.Group groups = 2; - */ - public java.util.List - getGroupsOrBuilderList() { - return groups_; - } - /** - * repeated .sonarqube.ws.permissions.WsGroupsResponse.Group groups = 2; - */ - public int getGroupsCount() { - return groups_.size(); - } - /** - * repeated .sonarqube.ws.permissions.WsGroupsResponse.Group groups = 2; - */ - public org.sonarqube.ws.Permissions.WsGroupsResponse.Group getGroups(int index) { - return groups_.get(index); - } - /** - * repeated .sonarqube.ws.permissions.WsGroupsResponse.Group groups = 2; - */ - public org.sonarqube.ws.Permissions.WsGroupsResponse.GroupOrBuilder getGroupsOrBuilder( - int index) { - return groups_.get(index); - } - - 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 { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(1, getPaging()); - } - for (int i = 0; i < groups_.size(); i++) { - output.writeMessage(2, groups_.get(i)); - } - unknownFields.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, getPaging()); - } - for (int i = 0; i < groups_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, groups_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonarqube.ws.Permissions.WsGroupsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.Permissions.WsGroupsResponse 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.Permissions.WsGroupsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.Permissions.WsGroupsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.Permissions.WsGroupsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.Permissions.WsGroupsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.Permissions.WsGroupsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonarqube.ws.Permissions.WsGroupsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.Permissions.WsGroupsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.Permissions.WsGroupsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonarqube.ws.Permissions.WsGroupsResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(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.permissions.WsGroupsResponse} - * - *
-     * WS api/permissions/groups for internal use only
-     * 
- */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:sonarqube.ws.permissions.WsGroupsResponse) - org.sonarqube.ws.Permissions.WsGroupsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsGroupsResponse_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsGroupsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Permissions.WsGroupsResponse.class, org.sonarqube.ws.Permissions.WsGroupsResponse.Builder.class); - } - - // Construct using org.sonarqube.ws.Permissions.WsGroupsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getPagingFieldBuilder(); - getGroupsFieldBuilder(); - } - } - public Builder clear() { - super.clear(); - if (pagingBuilder_ == null) { - paging_ = null; - } else { - pagingBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - if (groupsBuilder_ == null) { - groups_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - groupsBuilder_.clear(); - } - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsGroupsResponse_descriptor; - } - - public org.sonarqube.ws.Permissions.WsGroupsResponse getDefaultInstanceForType() { - return org.sonarqube.ws.Permissions.WsGroupsResponse.getDefaultInstance(); - } - - public org.sonarqube.ws.Permissions.WsGroupsResponse build() { - org.sonarqube.ws.Permissions.WsGroupsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonarqube.ws.Permissions.WsGroupsResponse buildPartial() { - org.sonarqube.ws.Permissions.WsGroupsResponse result = new org.sonarqube.ws.Permissions.WsGroupsResponse(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - if (pagingBuilder_ == null) { - result.paging_ = paging_; - } else { - result.paging_ = pagingBuilder_.build(); - } - if (groupsBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002)) { - groups_ = java.util.Collections.unmodifiableList(groups_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.groups_ = groups_; - } else { - result.groups_ = groupsBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonarqube.ws.Permissions.WsGroupsResponse) { - return mergeFrom((org.sonarqube.ws.Permissions.WsGroupsResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonarqube.ws.Permissions.WsGroupsResponse other) { - if (other == org.sonarqube.ws.Permissions.WsGroupsResponse.getDefaultInstance()) return this; - if (other.hasPaging()) { - mergePaging(other.getPaging()); - } - if (groupsBuilder_ == null) { - if (!other.groups_.isEmpty()) { - if (groups_.isEmpty()) { - groups_ = other.groups_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureGroupsIsMutable(); - groups_.addAll(other.groups_); - } - onChanged(); - } - } else { - if (!other.groups_.isEmpty()) { - if (groupsBuilder_.isEmpty()) { - groupsBuilder_.dispose(); - groupsBuilder_ = null; - groups_ = other.groups_; - bitField0_ = (bitField0_ & ~0x00000002); - groupsBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getGroupsFieldBuilder() : null; - } else { - groupsBuilder_.addAllMessages(other.groups_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - 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.Permissions.WsGroupsResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonarqube.ws.Permissions.WsGroupsResponse) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private org.sonarqube.ws.Common.Paging paging_ = null; - private com.google.protobuf.SingleFieldBuilder< - org.sonarqube.ws.Common.Paging, org.sonarqube.ws.Common.Paging.Builder, org.sonarqube.ws.Common.PagingOrBuilder> pagingBuilder_; - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - public boolean hasPaging() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - public org.sonarqube.ws.Common.Paging getPaging() { - if (pagingBuilder_ == null) { - return paging_ == null ? org.sonarqube.ws.Common.Paging.getDefaultInstance() : paging_; - } else { - return pagingBuilder_.getMessage(); - } - } - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - public Builder setPaging(org.sonarqube.ws.Common.Paging value) { - if (pagingBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - paging_ = value; - onChanged(); - } else { - pagingBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - public Builder setPaging( - org.sonarqube.ws.Common.Paging.Builder builderForValue) { - if (pagingBuilder_ == null) { - paging_ = builderForValue.build(); - onChanged(); - } else { - pagingBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - public Builder mergePaging(org.sonarqube.ws.Common.Paging value) { - if (pagingBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001) && - paging_ != null && - paging_ != org.sonarqube.ws.Common.Paging.getDefaultInstance()) { - paging_ = - org.sonarqube.ws.Common.Paging.newBuilder(paging_).mergeFrom(value).buildPartial(); - } else { - paging_ = value; - } - onChanged(); - } else { - pagingBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - public Builder clearPaging() { - if (pagingBuilder_ == null) { - paging_ = null; - onChanged(); - } else { - pagingBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - public org.sonarqube.ws.Common.Paging.Builder getPagingBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getPagingFieldBuilder().getBuilder(); - } - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - public org.sonarqube.ws.Common.PagingOrBuilder getPagingOrBuilder() { - if (pagingBuilder_ != null) { - return pagingBuilder_.getMessageOrBuilder(); - } else { - return paging_ == null ? - org.sonarqube.ws.Common.Paging.getDefaultInstance() : paging_; - } - } - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - private com.google.protobuf.SingleFieldBuilder< - org.sonarqube.ws.Common.Paging, org.sonarqube.ws.Common.Paging.Builder, org.sonarqube.ws.Common.PagingOrBuilder> - getPagingFieldBuilder() { - if (pagingBuilder_ == null) { - pagingBuilder_ = new com.google.protobuf.SingleFieldBuilder< - org.sonarqube.ws.Common.Paging, org.sonarqube.ws.Common.Paging.Builder, org.sonarqube.ws.Common.PagingOrBuilder>( - getPaging(), - getParentForChildren(), - isClean()); - paging_ = null; - } - return pagingBuilder_; - } - - private java.util.List groups_ = - java.util.Collections.emptyList(); - private void ensureGroupsIsMutable() { - if (!((bitField0_ & 0x00000002) == 0x00000002)) { - groups_ = new java.util.ArrayList(groups_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.Permissions.WsGroupsResponse.Group, org.sonarqube.ws.Permissions.WsGroupsResponse.Group.Builder, org.sonarqube.ws.Permissions.WsGroupsResponse.GroupOrBuilder> groupsBuilder_; - - /** - * repeated .sonarqube.ws.permissions.WsGroupsResponse.Group groups = 2; - */ - public java.util.List getGroupsList() { - if (groupsBuilder_ == null) { - return java.util.Collections.unmodifiableList(groups_); - } else { - return groupsBuilder_.getMessageList(); - } - } - /** - * repeated .sonarqube.ws.permissions.WsGroupsResponse.Group groups = 2; - */ - public int getGroupsCount() { - if (groupsBuilder_ == null) { - return groups_.size(); - } else { - return groupsBuilder_.getCount(); - } - } - /** - * repeated .sonarqube.ws.permissions.WsGroupsResponse.Group groups = 2; - */ - public org.sonarqube.ws.Permissions.WsGroupsResponse.Group getGroups(int index) { - if (groupsBuilder_ == null) { - return groups_.get(index); - } else { - return groupsBuilder_.getMessage(index); - } - } - /** - * repeated .sonarqube.ws.permissions.WsGroupsResponse.Group groups = 2; - */ - public Builder setGroups( - int index, org.sonarqube.ws.Permissions.WsGroupsResponse.Group value) { - if (groupsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureGroupsIsMutable(); - groups_.set(index, value); - onChanged(); - } else { - groupsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.WsGroupsResponse.Group groups = 2; - */ - public Builder setGroups( - int index, org.sonarqube.ws.Permissions.WsGroupsResponse.Group.Builder builderForValue) { - if (groupsBuilder_ == null) { - ensureGroupsIsMutable(); - groups_.set(index, builderForValue.build()); - onChanged(); - } else { - groupsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.WsGroupsResponse.Group groups = 2; - */ - public Builder addGroups(org.sonarqube.ws.Permissions.WsGroupsResponse.Group value) { - if (groupsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureGroupsIsMutable(); - groups_.add(value); - onChanged(); - } else { - groupsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.WsGroupsResponse.Group groups = 2; - */ - public Builder addGroups( - int index, org.sonarqube.ws.Permissions.WsGroupsResponse.Group value) { - if (groupsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureGroupsIsMutable(); - groups_.add(index, value); - onChanged(); - } else { - groupsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.WsGroupsResponse.Group groups = 2; - */ - public Builder addGroups( - org.sonarqube.ws.Permissions.WsGroupsResponse.Group.Builder builderForValue) { - if (groupsBuilder_ == null) { - ensureGroupsIsMutable(); - groups_.add(builderForValue.build()); - onChanged(); - } else { - groupsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.WsGroupsResponse.Group groups = 2; - */ - public Builder addGroups( - int index, org.sonarqube.ws.Permissions.WsGroupsResponse.Group.Builder builderForValue) { - if (groupsBuilder_ == null) { - ensureGroupsIsMutable(); - groups_.add(index, builderForValue.build()); - onChanged(); - } else { - groupsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.WsGroupsResponse.Group groups = 2; - */ - public Builder addAllGroups( - java.lang.Iterable values) { - if (groupsBuilder_ == null) { - ensureGroupsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, groups_); - onChanged(); - } else { - groupsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.WsGroupsResponse.Group groups = 2; - */ - public Builder clearGroups() { - if (groupsBuilder_ == null) { - groups_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - groupsBuilder_.clear(); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.WsGroupsResponse.Group groups = 2; - */ - public Builder removeGroups(int index) { - if (groupsBuilder_ == null) { - ensureGroupsIsMutable(); - groups_.remove(index); - onChanged(); - } else { - groupsBuilder_.remove(index); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.WsGroupsResponse.Group groups = 2; - */ - public org.sonarqube.ws.Permissions.WsGroupsResponse.Group.Builder getGroupsBuilder( - int index) { - return getGroupsFieldBuilder().getBuilder(index); - } - /** - * repeated .sonarqube.ws.permissions.WsGroupsResponse.Group groups = 2; - */ - public org.sonarqube.ws.Permissions.WsGroupsResponse.GroupOrBuilder getGroupsOrBuilder( - int index) { - if (groupsBuilder_ == null) { - return groups_.get(index); } else { - return groupsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .sonarqube.ws.permissions.WsGroupsResponse.Group groups = 2; - */ - public java.util.List - getGroupsOrBuilderList() { - if (groupsBuilder_ != null) { - return groupsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(groups_); - } - } - /** - * repeated .sonarqube.ws.permissions.WsGroupsResponse.Group groups = 2; - */ - public org.sonarqube.ws.Permissions.WsGroupsResponse.Group.Builder addGroupsBuilder() { - return getGroupsFieldBuilder().addBuilder( - org.sonarqube.ws.Permissions.WsGroupsResponse.Group.getDefaultInstance()); - } - /** - * repeated .sonarqube.ws.permissions.WsGroupsResponse.Group groups = 2; - */ - public org.sonarqube.ws.Permissions.WsGroupsResponse.Group.Builder addGroupsBuilder( - int index) { - return getGroupsFieldBuilder().addBuilder( - index, org.sonarqube.ws.Permissions.WsGroupsResponse.Group.getDefaultInstance()); - } - /** - * repeated .sonarqube.ws.permissions.WsGroupsResponse.Group groups = 2; - */ - public java.util.List - getGroupsBuilderList() { - return getGroupsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.Permissions.WsGroupsResponse.Group, org.sonarqube.ws.Permissions.WsGroupsResponse.Group.Builder, org.sonarqube.ws.Permissions.WsGroupsResponse.GroupOrBuilder> - getGroupsFieldBuilder() { - if (groupsBuilder_ == null) { - groupsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.Permissions.WsGroupsResponse.Group, org.sonarqube.ws.Permissions.WsGroupsResponse.Group.Builder, org.sonarqube.ws.Permissions.WsGroupsResponse.GroupOrBuilder>( - groups_, - ((bitField0_ & 0x00000002) == 0x00000002), - getParentForChildren(), - isClean()); - groups_ = null; - } - return groupsBuilder_; - } - - // @@protoc_insertion_point(builder_scope:sonarqube.ws.permissions.WsGroupsResponse) - } - - // @@protoc_insertion_point(class_scope:sonarqube.ws.permissions.WsGroupsResponse) - private static final org.sonarqube.ws.Permissions.WsGroupsResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonarqube.ws.Permissions.WsGroupsResponse(); - } - - public static org.sonarqube.ws.Permissions.WsGroupsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public WsGroupsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new WsGroupsResponse(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonarqube.ws.Permissions.WsGroupsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface PermissionOrBuilder extends - // @@protoc_insertion_point(interface_extends:sonarqube.ws.permissions.Permission) - com.google.protobuf.MessageOrBuilder { - - /** - * optional string key = 1; - */ - boolean hasKey(); - /** - * optional string key = 1; - */ - java.lang.String getKey(); - /** - * optional string key = 1; - */ - com.google.protobuf.ByteString - getKeyBytes(); - - /** - * optional string name = 2; - */ - boolean hasName(); - /** - * optional string name = 2; - */ - java.lang.String getName(); - /** - * optional string name = 2; - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - * optional string description = 3; - */ - boolean hasDescription(); - /** - * optional string description = 3; - */ - java.lang.String getDescription(); - /** - * optional string description = 3; - */ - com.google.protobuf.ByteString - getDescriptionBytes(); - - /** - * optional int32 usersCount = 4; - */ - boolean hasUsersCount(); - /** - * optional int32 usersCount = 4; - */ - int getUsersCount(); - - /** - * optional int32 groupsCount = 5; - */ - boolean hasGroupsCount(); - /** - * optional int32 groupsCount = 5; - */ - int getGroupsCount(); - } - /** - * Protobuf type {@code sonarqube.ws.permissions.Permission} - */ - public static final class Permission extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:sonarqube.ws.permissions.Permission) - PermissionOrBuilder { - // Use Permission.newBuilder() to construct. - private Permission(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Permission() { - key_ = ""; - name_ = ""; - description_ = ""; - usersCount_ = 0; - groupsCount_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Permission( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000001; - key_ = bs; - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - name_ = bs; - break; - } - case 26: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000004; - description_ = bs; - break; - } - case 32: { - bitField0_ |= 0x00000008; - usersCount_ = input.readInt32(); - break; - } - case 40: { - bitField0_ |= 0x00000010; - groupsCount_ = input.readInt32(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_Permission_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_Permission_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Permissions.Permission.class, org.sonarqube.ws.Permissions.Permission.Builder.class); - } - - private int bitField0_; - public static final int KEY_FIELD_NUMBER = 1; - private volatile java.lang.Object key_; - /** - * optional string key = 1; - */ - public boolean hasKey() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string key = 1; - */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - key_ = s; - } - return s; - } - } - /** - * optional string key = 1; - */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object name_; - /** - * optional string name = 2; - */ - public boolean hasName() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string name = 2; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - 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()) { - name_ = s; - } - return s; - } - } - /** - * optional string name = 2; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DESCRIPTION_FIELD_NUMBER = 3; - private volatile java.lang.Object description_; - /** - * optional string description = 3; - */ - public boolean hasDescription() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional string description = 3; - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - 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()) { - description_ = s; - } - return s; - } - } - /** - * optional string description = 3; - */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int USERSCOUNT_FIELD_NUMBER = 4; - private int usersCount_; - /** - * optional int32 usersCount = 4; - */ - public boolean hasUsersCount() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional int32 usersCount = 4; - */ - public int getUsersCount() { - return usersCount_; - } - - public static final int GROUPSCOUNT_FIELD_NUMBER = 5; - private int groupsCount_; - /** - * optional int32 groupsCount = 5; - */ - public boolean hasGroupsCount() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - /** - * optional int32 groupsCount = 5; - */ - public int getGroupsCount() { - return groupsCount_; - } - - 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 { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getKeyBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getNameBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, getDescriptionBytes()); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeInt32(4, usersCount_); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeInt32(5, groupsCount_); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getKeyBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getNameBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getDescriptionBytes()); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(4, usersCount_); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(5, groupsCount_); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonarqube.ws.Permissions.Permission parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.Permissions.Permission 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.Permissions.Permission parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.Permissions.Permission parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.Permissions.Permission parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.Permissions.Permission parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.Permissions.Permission parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonarqube.ws.Permissions.Permission parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.Permissions.Permission parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.Permissions.Permission parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonarqube.ws.Permissions.Permission prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(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.permissions.Permission} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:sonarqube.ws.permissions.Permission) - org.sonarqube.ws.Permissions.PermissionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_Permission_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_Permission_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Permissions.Permission.class, org.sonarqube.ws.Permissions.Permission.Builder.class); - } - - // Construct using org.sonarqube.ws.Permissions.Permission.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - key_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - name_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - description_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); - usersCount_ = 0; - bitField0_ = (bitField0_ & ~0x00000008); - groupsCount_ = 0; - bitField0_ = (bitField0_ & ~0x00000010); - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_Permission_descriptor; - } - - public org.sonarqube.ws.Permissions.Permission getDefaultInstanceForType() { - return org.sonarqube.ws.Permissions.Permission.getDefaultInstance(); - } - - public org.sonarqube.ws.Permissions.Permission build() { - org.sonarqube.ws.Permissions.Permission result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonarqube.ws.Permissions.Permission buildPartial() { - org.sonarqube.ws.Permissions.Permission result = new org.sonarqube.ws.Permissions.Permission(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.key_ = key_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.name_ = name_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.description_ = description_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } - result.usersCount_ = usersCount_; - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { - to_bitField0_ |= 0x00000010; - } - result.groupsCount_ = groupsCount_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonarqube.ws.Permissions.Permission) { - return mergeFrom((org.sonarqube.ws.Permissions.Permission)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonarqube.ws.Permissions.Permission other) { - if (other == org.sonarqube.ws.Permissions.Permission.getDefaultInstance()) return this; - if (other.hasKey()) { - bitField0_ |= 0x00000001; - key_ = other.key_; - onChanged(); - } - if (other.hasName()) { - bitField0_ |= 0x00000002; - name_ = other.name_; - onChanged(); - } - if (other.hasDescription()) { - bitField0_ |= 0x00000004; - description_ = other.description_; - onChanged(); - } - if (other.hasUsersCount()) { - setUsersCount(other.getUsersCount()); - } - if (other.hasGroupsCount()) { - setGroupsCount(other.getGroupsCount()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - 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.Permissions.Permission parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonarqube.ws.Permissions.Permission) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object key_ = ""; - /** - * optional string key = 1; - */ - public boolean hasKey() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string key = 1; - */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - key_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string key = 1; - */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string key = 1; - */ - public Builder setKey( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - key_ = value; - onChanged(); - return this; - } - /** - * optional string key = 1; - */ - public Builder clearKey() { - bitField0_ = (bitField0_ & ~0x00000001); - key_ = getDefaultInstance().getKey(); - onChanged(); - return this; - } - /** - * optional string key = 1; - */ - public Builder setKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - key_ = value; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - * optional string name = 2; - */ - public boolean hasName() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string name = 2; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - name_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string name = 2; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string name = 2; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - name_ = value; - onChanged(); - return this; - } - /** - * optional string name = 2; - */ - public Builder clearName() { - bitField0_ = (bitField0_ & ~0x00000002); - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * optional string name = 2; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - name_ = value; - onChanged(); - return this; - } - - private java.lang.Object description_ = ""; - /** - * optional string description = 3; - */ - public boolean hasDescription() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional string description = 3; - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - 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()) { - description_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string description = 3; - */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string description = 3; - */ - public Builder setDescription( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - description_ = value; - onChanged(); - return this; - } - /** - * optional string description = 3; - */ - public Builder clearDescription() { - bitField0_ = (bitField0_ & ~0x00000004); - description_ = getDefaultInstance().getDescription(); - onChanged(); - return this; - } - /** - * optional string description = 3; - */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - description_ = value; - onChanged(); - return this; - } - - private int usersCount_ ; - /** - * optional int32 usersCount = 4; - */ - public boolean hasUsersCount() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional int32 usersCount = 4; - */ - public int getUsersCount() { - return usersCount_; - } - /** - * optional int32 usersCount = 4; - */ - public Builder setUsersCount(int value) { - bitField0_ |= 0x00000008; - usersCount_ = value; - onChanged(); - return this; - } - /** - * optional int32 usersCount = 4; - */ - public Builder clearUsersCount() { - bitField0_ = (bitField0_ & ~0x00000008); - usersCount_ = 0; - onChanged(); - return this; - } - - private int groupsCount_ ; - /** - * optional int32 groupsCount = 5; - */ - public boolean hasGroupsCount() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - /** - * optional int32 groupsCount = 5; - */ - public int getGroupsCount() { - return groupsCount_; - } - /** - * optional int32 groupsCount = 5; - */ - public Builder setGroupsCount(int value) { - bitField0_ |= 0x00000010; - groupsCount_ = value; - onChanged(); - return this; - } - /** - * optional int32 groupsCount = 5; - */ - public Builder clearGroupsCount() { - bitField0_ = (bitField0_ & ~0x00000010); - groupsCount_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:sonarqube.ws.permissions.Permission) - } - - // @@protoc_insertion_point(class_scope:sonarqube.ws.permissions.Permission) - private static final org.sonarqube.ws.Permissions.Permission DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonarqube.ws.Permissions.Permission(); - } - - public static org.sonarqube.ws.Permissions.Permission getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Permission parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new Permission(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonarqube.ws.Permissions.Permission getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface WsSearchGlobalPermissionsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:sonarqube.ws.permissions.WsSearchGlobalPermissionsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 1; - */ - java.util.List - getPermissionsList(); - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 1; - */ - org.sonarqube.ws.Permissions.Permission getPermissions(int index); - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 1; - */ - int getPermissionsCount(); - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 1; - */ - java.util.List - getPermissionsOrBuilderList(); - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 1; - */ - org.sonarqube.ws.Permissions.PermissionOrBuilder getPermissionsOrBuilder( - int index); - } - /** - * Protobuf type {@code sonarqube.ws.permissions.WsSearchGlobalPermissionsResponse} - */ - public static final class WsSearchGlobalPermissionsResponse extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:sonarqube.ws.permissions.WsSearchGlobalPermissionsResponse) - WsSearchGlobalPermissionsResponseOrBuilder { - // Use WsSearchGlobalPermissionsResponse.newBuilder() to construct. - private WsSearchGlobalPermissionsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private WsSearchGlobalPermissionsResponse() { - permissions_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WsSearchGlobalPermissionsResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - permissions_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - permissions_.add(input.readMessage(org.sonarqube.ws.Permissions.Permission.PARSER, extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - permissions_ = java.util.Collections.unmodifiableList(permissions_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsSearchGlobalPermissionsResponse_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsSearchGlobalPermissionsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Permissions.WsSearchGlobalPermissionsResponse.class, org.sonarqube.ws.Permissions.WsSearchGlobalPermissionsResponse.Builder.class); - } - - public static final int PERMISSIONS_FIELD_NUMBER = 1; - private java.util.List permissions_; - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 1; - */ - public java.util.List getPermissionsList() { - return permissions_; - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 1; - */ - public java.util.List - getPermissionsOrBuilderList() { - return permissions_; - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 1; - */ - public int getPermissionsCount() { - return permissions_.size(); - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 1; - */ - public org.sonarqube.ws.Permissions.Permission getPermissions(int index) { - return permissions_.get(index); - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 1; - */ - public org.sonarqube.ws.Permissions.PermissionOrBuilder getPermissionsOrBuilder( - int index) { - return permissions_.get(index); - } - - 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 { - for (int i = 0; i < permissions_.size(); i++) { - output.writeMessage(1, permissions_.get(i)); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < permissions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, permissions_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonarqube.ws.Permissions.WsSearchGlobalPermissionsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.Permissions.WsSearchGlobalPermissionsResponse 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.Permissions.WsSearchGlobalPermissionsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.Permissions.WsSearchGlobalPermissionsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.Permissions.WsSearchGlobalPermissionsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.Permissions.WsSearchGlobalPermissionsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.Permissions.WsSearchGlobalPermissionsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonarqube.ws.Permissions.WsSearchGlobalPermissionsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.Permissions.WsSearchGlobalPermissionsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.Permissions.WsSearchGlobalPermissionsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonarqube.ws.Permissions.WsSearchGlobalPermissionsResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(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.permissions.WsSearchGlobalPermissionsResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:sonarqube.ws.permissions.WsSearchGlobalPermissionsResponse) - org.sonarqube.ws.Permissions.WsSearchGlobalPermissionsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsSearchGlobalPermissionsResponse_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsSearchGlobalPermissionsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Permissions.WsSearchGlobalPermissionsResponse.class, org.sonarqube.ws.Permissions.WsSearchGlobalPermissionsResponse.Builder.class); - } - - // Construct using org.sonarqube.ws.Permissions.WsSearchGlobalPermissionsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getPermissionsFieldBuilder(); - } - } - public Builder clear() { - super.clear(); - if (permissionsBuilder_ == null) { - permissions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - permissionsBuilder_.clear(); - } - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsSearchGlobalPermissionsResponse_descriptor; - } - - public org.sonarqube.ws.Permissions.WsSearchGlobalPermissionsResponse getDefaultInstanceForType() { - return org.sonarqube.ws.Permissions.WsSearchGlobalPermissionsResponse.getDefaultInstance(); - } - - public org.sonarqube.ws.Permissions.WsSearchGlobalPermissionsResponse build() { - org.sonarqube.ws.Permissions.WsSearchGlobalPermissionsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonarqube.ws.Permissions.WsSearchGlobalPermissionsResponse buildPartial() { - org.sonarqube.ws.Permissions.WsSearchGlobalPermissionsResponse result = new org.sonarqube.ws.Permissions.WsSearchGlobalPermissionsResponse(this); - int from_bitField0_ = bitField0_; - if (permissionsBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - permissions_ = java.util.Collections.unmodifiableList(permissions_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.permissions_ = permissions_; - } else { - result.permissions_ = permissionsBuilder_.build(); - } - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonarqube.ws.Permissions.WsSearchGlobalPermissionsResponse) { - return mergeFrom((org.sonarqube.ws.Permissions.WsSearchGlobalPermissionsResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonarqube.ws.Permissions.WsSearchGlobalPermissionsResponse other) { - if (other == org.sonarqube.ws.Permissions.WsSearchGlobalPermissionsResponse.getDefaultInstance()) return this; - if (permissionsBuilder_ == null) { - if (!other.permissions_.isEmpty()) { - if (permissions_.isEmpty()) { - permissions_ = other.permissions_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensurePermissionsIsMutable(); - permissions_.addAll(other.permissions_); - } - onChanged(); - } - } else { - if (!other.permissions_.isEmpty()) { - if (permissionsBuilder_.isEmpty()) { - permissionsBuilder_.dispose(); - permissionsBuilder_ = null; - permissions_ = other.permissions_; - bitField0_ = (bitField0_ & ~0x00000001); - permissionsBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getPermissionsFieldBuilder() : null; - } else { - permissionsBuilder_.addAllMessages(other.permissions_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - 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.Permissions.WsSearchGlobalPermissionsResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonarqube.ws.Permissions.WsSearchGlobalPermissionsResponse) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List permissions_ = - java.util.Collections.emptyList(); - private void ensurePermissionsIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - permissions_ = new java.util.ArrayList(permissions_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.Permissions.Permission, org.sonarqube.ws.Permissions.Permission.Builder, org.sonarqube.ws.Permissions.PermissionOrBuilder> permissionsBuilder_; - - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 1; - */ - public java.util.List getPermissionsList() { - if (permissionsBuilder_ == null) { - return java.util.Collections.unmodifiableList(permissions_); - } else { - return permissionsBuilder_.getMessageList(); - } - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 1; - */ - public int getPermissionsCount() { - if (permissionsBuilder_ == null) { - return permissions_.size(); - } else { - return permissionsBuilder_.getCount(); - } - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 1; - */ - public org.sonarqube.ws.Permissions.Permission getPermissions(int index) { - if (permissionsBuilder_ == null) { - return permissions_.get(index); - } else { - return permissionsBuilder_.getMessage(index); - } - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 1; - */ - public Builder setPermissions( - int index, org.sonarqube.ws.Permissions.Permission value) { - if (permissionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePermissionsIsMutable(); - permissions_.set(index, value); - onChanged(); - } else { - permissionsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 1; - */ - public Builder setPermissions( - int index, org.sonarqube.ws.Permissions.Permission.Builder builderForValue) { - if (permissionsBuilder_ == null) { - ensurePermissionsIsMutable(); - permissions_.set(index, builderForValue.build()); - onChanged(); - } else { - permissionsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 1; - */ - public Builder addPermissions(org.sonarqube.ws.Permissions.Permission value) { - if (permissionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePermissionsIsMutable(); - permissions_.add(value); - onChanged(); - } else { - permissionsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 1; - */ - public Builder addPermissions( - int index, org.sonarqube.ws.Permissions.Permission value) { - if (permissionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePermissionsIsMutable(); - permissions_.add(index, value); - onChanged(); - } else { - permissionsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 1; - */ - public Builder addPermissions( - org.sonarqube.ws.Permissions.Permission.Builder builderForValue) { - if (permissionsBuilder_ == null) { - ensurePermissionsIsMutable(); - permissions_.add(builderForValue.build()); - onChanged(); - } else { - permissionsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 1; - */ - public Builder addPermissions( - int index, org.sonarqube.ws.Permissions.Permission.Builder builderForValue) { - if (permissionsBuilder_ == null) { - ensurePermissionsIsMutable(); - permissions_.add(index, builderForValue.build()); - onChanged(); - } else { - permissionsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 1; - */ - public Builder addAllPermissions( - java.lang.Iterable values) { - if (permissionsBuilder_ == null) { - ensurePermissionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, permissions_); - onChanged(); - } else { - permissionsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 1; - */ - public Builder clearPermissions() { - if (permissionsBuilder_ == null) { - permissions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - permissionsBuilder_.clear(); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 1; - */ - public Builder removePermissions(int index) { - if (permissionsBuilder_ == null) { - ensurePermissionsIsMutable(); - permissions_.remove(index); - onChanged(); - } else { - permissionsBuilder_.remove(index); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 1; - */ - public org.sonarqube.ws.Permissions.Permission.Builder getPermissionsBuilder( - int index) { - return getPermissionsFieldBuilder().getBuilder(index); - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 1; - */ - public org.sonarqube.ws.Permissions.PermissionOrBuilder getPermissionsOrBuilder( - int index) { - if (permissionsBuilder_ == null) { - return permissions_.get(index); } else { - return permissionsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 1; - */ - public java.util.List - getPermissionsOrBuilderList() { - if (permissionsBuilder_ != null) { - return permissionsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(permissions_); - } - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 1; - */ - public org.sonarqube.ws.Permissions.Permission.Builder addPermissionsBuilder() { - return getPermissionsFieldBuilder().addBuilder( - org.sonarqube.ws.Permissions.Permission.getDefaultInstance()); - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 1; - */ - public org.sonarqube.ws.Permissions.Permission.Builder addPermissionsBuilder( - int index) { - return getPermissionsFieldBuilder().addBuilder( - index, org.sonarqube.ws.Permissions.Permission.getDefaultInstance()); - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 1; - */ - public java.util.List - getPermissionsBuilderList() { - return getPermissionsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.Permissions.Permission, org.sonarqube.ws.Permissions.Permission.Builder, org.sonarqube.ws.Permissions.PermissionOrBuilder> - getPermissionsFieldBuilder() { - if (permissionsBuilder_ == null) { - permissionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.Permissions.Permission, org.sonarqube.ws.Permissions.Permission.Builder, org.sonarqube.ws.Permissions.PermissionOrBuilder>( - permissions_, - ((bitField0_ & 0x00000001) == 0x00000001), - getParentForChildren(), - isClean()); - permissions_ = null; - } - return permissionsBuilder_; - } - - // @@protoc_insertion_point(builder_scope:sonarqube.ws.permissions.WsSearchGlobalPermissionsResponse) - } - - // @@protoc_insertion_point(class_scope:sonarqube.ws.permissions.WsSearchGlobalPermissionsResponse) - private static final org.sonarqube.ws.Permissions.WsSearchGlobalPermissionsResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonarqube.ws.Permissions.WsSearchGlobalPermissionsResponse(); - } - - public static org.sonarqube.ws.Permissions.WsSearchGlobalPermissionsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public WsSearchGlobalPermissionsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new WsSearchGlobalPermissionsResponse(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonarqube.ws.Permissions.WsSearchGlobalPermissionsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface WsSearchProjectPermissionsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:sonarqube.ws.permissions.WsSearchProjectPermissionsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - boolean hasPaging(); - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - org.sonarqube.ws.Common.Paging getPaging(); - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - org.sonarqube.ws.Common.PagingOrBuilder getPagingOrBuilder(); - - /** - * repeated .sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project projects = 2; - */ - java.util.List - getProjectsList(); - /** - * repeated .sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project projects = 2; - */ - org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project getProjects(int index); - /** - * repeated .sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project projects = 2; - */ - int getProjectsCount(); - /** - * repeated .sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project projects = 2; - */ - java.util.List - getProjectsOrBuilderList(); - /** - * repeated .sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project projects = 2; - */ - org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.ProjectOrBuilder getProjectsOrBuilder( - int index); - - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 3; - */ - java.util.List - getPermissionsList(); - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 3; - */ - org.sonarqube.ws.Permissions.Permission getPermissions(int index); - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 3; - */ - int getPermissionsCount(); - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 3; - */ - java.util.List - getPermissionsOrBuilderList(); - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 3; - */ - org.sonarqube.ws.Permissions.PermissionOrBuilder getPermissionsOrBuilder( - int index); - } - /** - * Protobuf type {@code sonarqube.ws.permissions.WsSearchProjectPermissionsResponse} - */ - public static final class WsSearchProjectPermissionsResponse extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:sonarqube.ws.permissions.WsSearchProjectPermissionsResponse) - WsSearchProjectPermissionsResponseOrBuilder { - // Use WsSearchProjectPermissionsResponse.newBuilder() to construct. - private WsSearchProjectPermissionsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private WsSearchProjectPermissionsResponse() { - projects_ = java.util.Collections.emptyList(); - permissions_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WsSearchProjectPermissionsResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - 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.Common.Paging.Builder subBuilder = null; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - subBuilder = paging_.toBuilder(); - } - paging_ = input.readMessage(org.sonarqube.ws.Common.Paging.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(paging_); - paging_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000001; - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - projects_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - projects_.add(input.readMessage(org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project.PARSER, extensionRegistry)); - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { - permissions_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - permissions_.add(input.readMessage(org.sonarqube.ws.Permissions.Permission.PARSER, extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - projects_ = java.util.Collections.unmodifiableList(projects_); - } - if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { - permissions_ = java.util.Collections.unmodifiableList(permissions_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsSearchProjectPermissionsResponse_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsSearchProjectPermissionsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.class, org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Builder.class); - } - - public interface ProjectOrBuilder extends - // @@protoc_insertion_point(interface_extends:sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project) - com.google.protobuf.MessageOrBuilder { - - /** - * optional string id = 1; - */ - boolean hasId(); - /** - * optional string id = 1; - */ - java.lang.String getId(); - /** - * optional string id = 1; - */ - com.google.protobuf.ByteString - getIdBytes(); - - /** - * optional string key = 2; - */ - boolean hasKey(); - /** - * optional string key = 2; - */ - java.lang.String getKey(); - /** - * optional string key = 2; - */ - com.google.protobuf.ByteString - getKeyBytes(); - - /** - * optional string qualifier = 3; - */ - boolean hasQualifier(); - /** - * optional string qualifier = 3; - */ - java.lang.String getQualifier(); - /** - * optional string qualifier = 3; - */ - com.google.protobuf.ByteString - getQualifierBytes(); - - /** - * optional string name = 4; - */ - boolean hasName(); - /** - * optional string name = 4; - */ - java.lang.String getName(); - /** - * optional string name = 4; - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 5; - */ - java.util.List - getPermissionsList(); - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 5; - */ - org.sonarqube.ws.Permissions.Permission getPermissions(int index); - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 5; - */ - int getPermissionsCount(); - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 5; - */ - java.util.List - getPermissionsOrBuilderList(); - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 5; - */ - org.sonarqube.ws.Permissions.PermissionOrBuilder getPermissionsOrBuilder( - int index); - } - /** - * Protobuf type {@code sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project} - */ - public static final class Project extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project) - ProjectOrBuilder { - // Use Project.newBuilder() to construct. - private Project(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Project() { - id_ = ""; - key_ = ""; - qualifier_ = ""; - name_ = ""; - permissions_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Project( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000001; - id_ = bs; - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - key_ = bs; - break; - } - case 26: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000004; - qualifier_ = bs; - break; - } - case 34: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000008; - name_ = bs; - break; - } - case 42: { - if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { - permissions_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000010; - } - permissions_.add(input.readMessage(org.sonarqube.ws.Permissions.Permission.PARSER, extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { - permissions_ = java.util.Collections.unmodifiableList(permissions_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsSearchProjectPermissionsResponse_Project_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsSearchProjectPermissionsResponse_Project_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project.class, org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project.Builder.class); - } - - private int bitField0_; - public static final int ID_FIELD_NUMBER = 1; - private volatile java.lang.Object id_; - /** - * optional string id = 1; - */ - public boolean hasId() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string id = 1; - */ - public java.lang.String getId() { - java.lang.Object ref = id_; - 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()) { - id_ = s; - } - return s; - } - } - /** - * optional string id = 1; - */ - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int KEY_FIELD_NUMBER = 2; - private volatile java.lang.Object key_; - /** - * optional string key = 2; - */ - public boolean hasKey() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string key = 2; - */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - key_ = s; - } - return s; - } - } - /** - * optional string key = 2; - */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int QUALIFIER_FIELD_NUMBER = 3; - private volatile java.lang.Object qualifier_; - /** - * optional string qualifier = 3; - */ - public boolean hasQualifier() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional string qualifier = 3; - */ - public java.lang.String getQualifier() { - java.lang.Object ref = qualifier_; - 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()) { - qualifier_ = s; - } - return s; - } - } - /** - * optional string qualifier = 3; - */ - public com.google.protobuf.ByteString - getQualifierBytes() { - java.lang.Object ref = qualifier_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - qualifier_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NAME_FIELD_NUMBER = 4; - private volatile java.lang.Object name_; - /** - * optional string name = 4; - */ - public boolean hasName() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional string name = 4; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - 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()) { - name_ = s; - } - return s; - } - } - /** - * optional string name = 4; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PERMISSIONS_FIELD_NUMBER = 5; - private java.util.List permissions_; - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 5; - */ - public java.util.List getPermissionsList() { - return permissions_; - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 5; - */ - public java.util.List - getPermissionsOrBuilderList() { - return permissions_; - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 5; - */ - public int getPermissionsCount() { - return permissions_.size(); - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 5; - */ - public org.sonarqube.ws.Permissions.Permission getPermissions(int index) { - return permissions_.get(index); - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 5; - */ - public org.sonarqube.ws.Permissions.PermissionOrBuilder getPermissionsOrBuilder( - int index) { - return permissions_.get(index); - } - - 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 { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getIdBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getKeyBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, getQualifierBytes()); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeBytes(4, getNameBytes()); - } - for (int i = 0; i < permissions_.size(); i++) { - output.writeMessage(5, permissions_.get(i)); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getIdBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getKeyBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getQualifierBytes()); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, getNameBytes()); - } - for (int i = 0; i < permissions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, permissions_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project 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.Permissions.WsSearchProjectPermissionsResponse.Project parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(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.permissions.WsSearchProjectPermissionsResponse.Project} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project) - org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.ProjectOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsSearchProjectPermissionsResponse_Project_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsSearchProjectPermissionsResponse_Project_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project.class, org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project.Builder.class); - } - - // Construct using org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getPermissionsFieldBuilder(); - } - } - public Builder clear() { - super.clear(); - id_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - key_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - qualifier_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); - name_ = ""; - bitField0_ = (bitField0_ & ~0x00000008); - if (permissionsBuilder_ == null) { - permissions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - } else { - permissionsBuilder_.clear(); - } - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsSearchProjectPermissionsResponse_Project_descriptor; - } - - public org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project getDefaultInstanceForType() { - return org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project.getDefaultInstance(); - } - - public org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project build() { - org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project buildPartial() { - org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project result = new org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.id_ = id_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.key_ = key_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.qualifier_ = qualifier_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } - result.name_ = name_; - if (permissionsBuilder_ == null) { - if (((bitField0_ & 0x00000010) == 0x00000010)) { - permissions_ = java.util.Collections.unmodifiableList(permissions_); - bitField0_ = (bitField0_ & ~0x00000010); - } - result.permissions_ = permissions_; - } else { - result.permissions_ = permissionsBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project) { - return mergeFrom((org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project other) { - if (other == org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project.getDefaultInstance()) return this; - if (other.hasId()) { - bitField0_ |= 0x00000001; - id_ = other.id_; - onChanged(); - } - if (other.hasKey()) { - bitField0_ |= 0x00000002; - key_ = other.key_; - onChanged(); - } - if (other.hasQualifier()) { - bitField0_ |= 0x00000004; - qualifier_ = other.qualifier_; - onChanged(); - } - if (other.hasName()) { - bitField0_ |= 0x00000008; - name_ = other.name_; - onChanged(); - } - if (permissionsBuilder_ == null) { - if (!other.permissions_.isEmpty()) { - if (permissions_.isEmpty()) { - permissions_ = other.permissions_; - bitField0_ = (bitField0_ & ~0x00000010); - } else { - ensurePermissionsIsMutable(); - permissions_.addAll(other.permissions_); - } - onChanged(); - } - } else { - if (!other.permissions_.isEmpty()) { - if (permissionsBuilder_.isEmpty()) { - permissionsBuilder_.dispose(); - permissionsBuilder_ = null; - permissions_ = other.permissions_; - bitField0_ = (bitField0_ & ~0x00000010); - permissionsBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getPermissionsFieldBuilder() : null; - } else { - permissionsBuilder_.addAllMessages(other.permissions_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - 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.Permissions.WsSearchProjectPermissionsResponse.Project parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object id_ = ""; - /** - * optional string id = 1; - */ - public boolean hasId() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string id = 1; - */ - public java.lang.String getId() { - java.lang.Object ref = id_; - 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()) { - id_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string id = 1; - */ - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string id = 1; - */ - public Builder setId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - id_ = value; - onChanged(); - return this; - } - /** - * optional string id = 1; - */ - public Builder clearId() { - bitField0_ = (bitField0_ & ~0x00000001); - id_ = getDefaultInstance().getId(); - onChanged(); - return this; - } - /** - * optional string id = 1; - */ - public Builder setIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - id_ = value; - onChanged(); - return this; - } - - private java.lang.Object key_ = ""; - /** - * optional string key = 2; - */ - public boolean hasKey() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string key = 2; - */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - key_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string key = 2; - */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string key = 2; - */ - public Builder setKey( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - key_ = value; - onChanged(); - return this; - } - /** - * optional string key = 2; - */ - public Builder clearKey() { - bitField0_ = (bitField0_ & ~0x00000002); - key_ = getDefaultInstance().getKey(); - onChanged(); - return this; - } - /** - * optional string key = 2; - */ - public Builder setKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - key_ = value; - onChanged(); - return this; - } - - private java.lang.Object qualifier_ = ""; - /** - * optional string qualifier = 3; - */ - public boolean hasQualifier() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional string qualifier = 3; - */ - public java.lang.String getQualifier() { - java.lang.Object ref = qualifier_; - 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()) { - qualifier_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string qualifier = 3; - */ - public com.google.protobuf.ByteString - getQualifierBytes() { - java.lang.Object ref = qualifier_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - qualifier_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string qualifier = 3; - */ - public Builder setQualifier( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - qualifier_ = value; - onChanged(); - return this; - } - /** - * optional string qualifier = 3; - */ - public Builder clearQualifier() { - bitField0_ = (bitField0_ & ~0x00000004); - qualifier_ = getDefaultInstance().getQualifier(); - onChanged(); - return this; - } - /** - * optional string qualifier = 3; - */ - public Builder setQualifierBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - qualifier_ = value; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - * optional string name = 4; - */ - public boolean hasName() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional string name = 4; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - name_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string name = 4; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string name = 4; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - name_ = value; - onChanged(); - return this; - } - /** - * optional string name = 4; - */ - public Builder clearName() { - bitField0_ = (bitField0_ & ~0x00000008); - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * optional string name = 4; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - name_ = value; - onChanged(); - return this; - } - - private java.util.List permissions_ = - java.util.Collections.emptyList(); - private void ensurePermissionsIsMutable() { - if (!((bitField0_ & 0x00000010) == 0x00000010)) { - permissions_ = new java.util.ArrayList(permissions_); - bitField0_ |= 0x00000010; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.Permissions.Permission, org.sonarqube.ws.Permissions.Permission.Builder, org.sonarqube.ws.Permissions.PermissionOrBuilder> permissionsBuilder_; - - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 5; - */ - public java.util.List getPermissionsList() { - if (permissionsBuilder_ == null) { - return java.util.Collections.unmodifiableList(permissions_); - } else { - return permissionsBuilder_.getMessageList(); - } - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 5; - */ - public int getPermissionsCount() { - if (permissionsBuilder_ == null) { - return permissions_.size(); - } else { - return permissionsBuilder_.getCount(); - } - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 5; - */ - public org.sonarqube.ws.Permissions.Permission getPermissions(int index) { - if (permissionsBuilder_ == null) { - return permissions_.get(index); - } else { - return permissionsBuilder_.getMessage(index); - } - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 5; - */ - public Builder setPermissions( - int index, org.sonarqube.ws.Permissions.Permission value) { - if (permissionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePermissionsIsMutable(); - permissions_.set(index, value); - onChanged(); - } else { - permissionsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 5; - */ - public Builder setPermissions( - int index, org.sonarqube.ws.Permissions.Permission.Builder builderForValue) { - if (permissionsBuilder_ == null) { - ensurePermissionsIsMutable(); - permissions_.set(index, builderForValue.build()); - onChanged(); - } else { - permissionsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 5; - */ - public Builder addPermissions(org.sonarqube.ws.Permissions.Permission value) { - if (permissionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePermissionsIsMutable(); - permissions_.add(value); - onChanged(); - } else { - permissionsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 5; - */ - public Builder addPermissions( - int index, org.sonarqube.ws.Permissions.Permission value) { - if (permissionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePermissionsIsMutable(); - permissions_.add(index, value); - onChanged(); - } else { - permissionsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 5; - */ - public Builder addPermissions( - org.sonarqube.ws.Permissions.Permission.Builder builderForValue) { - if (permissionsBuilder_ == null) { - ensurePermissionsIsMutable(); - permissions_.add(builderForValue.build()); - onChanged(); - } else { - permissionsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 5; - */ - public Builder addPermissions( - int index, org.sonarqube.ws.Permissions.Permission.Builder builderForValue) { - if (permissionsBuilder_ == null) { - ensurePermissionsIsMutable(); - permissions_.add(index, builderForValue.build()); - onChanged(); - } else { - permissionsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 5; - */ - public Builder addAllPermissions( - java.lang.Iterable values) { - if (permissionsBuilder_ == null) { - ensurePermissionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, permissions_); - onChanged(); - } else { - permissionsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 5; - */ - public Builder clearPermissions() { - if (permissionsBuilder_ == null) { - permissions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - } else { - permissionsBuilder_.clear(); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 5; - */ - public Builder removePermissions(int index) { - if (permissionsBuilder_ == null) { - ensurePermissionsIsMutable(); - permissions_.remove(index); - onChanged(); - } else { - permissionsBuilder_.remove(index); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 5; - */ - public org.sonarqube.ws.Permissions.Permission.Builder getPermissionsBuilder( - int index) { - return getPermissionsFieldBuilder().getBuilder(index); - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 5; - */ - public org.sonarqube.ws.Permissions.PermissionOrBuilder getPermissionsOrBuilder( - int index) { - if (permissionsBuilder_ == null) { - return permissions_.get(index); } else { - return permissionsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 5; - */ - public java.util.List - getPermissionsOrBuilderList() { - if (permissionsBuilder_ != null) { - return permissionsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(permissions_); - } - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 5; - */ - public org.sonarqube.ws.Permissions.Permission.Builder addPermissionsBuilder() { - return getPermissionsFieldBuilder().addBuilder( - org.sonarqube.ws.Permissions.Permission.getDefaultInstance()); - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 5; - */ - public org.sonarqube.ws.Permissions.Permission.Builder addPermissionsBuilder( - int index) { - return getPermissionsFieldBuilder().addBuilder( - index, org.sonarqube.ws.Permissions.Permission.getDefaultInstance()); - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 5; - */ - public java.util.List - getPermissionsBuilderList() { - return getPermissionsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.Permissions.Permission, org.sonarqube.ws.Permissions.Permission.Builder, org.sonarqube.ws.Permissions.PermissionOrBuilder> - getPermissionsFieldBuilder() { - if (permissionsBuilder_ == null) { - permissionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.Permissions.Permission, org.sonarqube.ws.Permissions.Permission.Builder, org.sonarqube.ws.Permissions.PermissionOrBuilder>( - permissions_, - ((bitField0_ & 0x00000010) == 0x00000010), - getParentForChildren(), - isClean()); - permissions_ = null; - } - return permissionsBuilder_; - } - - // @@protoc_insertion_point(builder_scope:sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project) - } - - // @@protoc_insertion_point(class_scope:sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project) - private static final org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project(); - } - - public static org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Project parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new Project(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private int bitField0_; - public static final int PAGING_FIELD_NUMBER = 1; - private org.sonarqube.ws.Common.Paging paging_; - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - public boolean hasPaging() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - public org.sonarqube.ws.Common.Paging getPaging() { - return paging_ == null ? org.sonarqube.ws.Common.Paging.getDefaultInstance() : paging_; - } - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - public org.sonarqube.ws.Common.PagingOrBuilder getPagingOrBuilder() { - return paging_ == null ? org.sonarqube.ws.Common.Paging.getDefaultInstance() : paging_; - } - - public static final int PROJECTS_FIELD_NUMBER = 2; - private java.util.List projects_; - /** - * repeated .sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project projects = 2; - */ - public java.util.List getProjectsList() { - return projects_; - } - /** - * repeated .sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project projects = 2; - */ - public java.util.List - getProjectsOrBuilderList() { - return projects_; - } - /** - * repeated .sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project projects = 2; - */ - public int getProjectsCount() { - return projects_.size(); - } - /** - * repeated .sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project projects = 2; - */ - public org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project getProjects(int index) { - return projects_.get(index); - } - /** - * repeated .sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project projects = 2; - */ - public org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.ProjectOrBuilder getProjectsOrBuilder( - int index) { - return projects_.get(index); - } - - public static final int PERMISSIONS_FIELD_NUMBER = 3; - private java.util.List permissions_; - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 3; - */ - public java.util.List getPermissionsList() { - return permissions_; - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 3; - */ - public java.util.List - getPermissionsOrBuilderList() { - return permissions_; - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 3; - */ - public int getPermissionsCount() { - return permissions_.size(); - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 3; - */ - public org.sonarqube.ws.Permissions.Permission getPermissions(int index) { - return permissions_.get(index); - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 3; - */ - public org.sonarqube.ws.Permissions.PermissionOrBuilder getPermissionsOrBuilder( - int index) { - return permissions_.get(index); - } - - 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 { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(1, getPaging()); - } - for (int i = 0; i < projects_.size(); i++) { - output.writeMessage(2, projects_.get(i)); - } - for (int i = 0; i < permissions_.size(); i++) { - output.writeMessage(3, permissions_.get(i)); - } - unknownFields.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, getPaging()); - } - for (int i = 0; i < projects_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, projects_.get(i)); - } - for (int i = 0; i < permissions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, permissions_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse 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.Permissions.WsSearchProjectPermissionsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(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.permissions.WsSearchProjectPermissionsResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:sonarqube.ws.permissions.WsSearchProjectPermissionsResponse) - org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsSearchProjectPermissionsResponse_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsSearchProjectPermissionsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.class, org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Builder.class); - } - - // Construct using org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getPagingFieldBuilder(); - getProjectsFieldBuilder(); - getPermissionsFieldBuilder(); - } - } - public Builder clear() { - super.clear(); - if (pagingBuilder_ == null) { - paging_ = null; - } else { - pagingBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - if (projectsBuilder_ == null) { - projects_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - projectsBuilder_.clear(); - } - if (permissionsBuilder_ == null) { - permissions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - } else { - permissionsBuilder_.clear(); - } - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsSearchProjectPermissionsResponse_descriptor; - } - - public org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse getDefaultInstanceForType() { - return org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.getDefaultInstance(); - } - - public org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse build() { - org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse buildPartial() { - org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse result = new org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - if (pagingBuilder_ == null) { - result.paging_ = paging_; - } else { - result.paging_ = pagingBuilder_.build(); - } - if (projectsBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002)) { - projects_ = java.util.Collections.unmodifiableList(projects_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.projects_ = projects_; - } else { - result.projects_ = projectsBuilder_.build(); - } - if (permissionsBuilder_ == null) { - if (((bitField0_ & 0x00000004) == 0x00000004)) { - permissions_ = java.util.Collections.unmodifiableList(permissions_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.permissions_ = permissions_; - } else { - result.permissions_ = permissionsBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse) { - return mergeFrom((org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse other) { - if (other == org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.getDefaultInstance()) return this; - if (other.hasPaging()) { - mergePaging(other.getPaging()); - } - if (projectsBuilder_ == null) { - if (!other.projects_.isEmpty()) { - if (projects_.isEmpty()) { - projects_ = other.projects_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureProjectsIsMutable(); - projects_.addAll(other.projects_); - } - onChanged(); - } - } else { - if (!other.projects_.isEmpty()) { - if (projectsBuilder_.isEmpty()) { - projectsBuilder_.dispose(); - projectsBuilder_ = null; - projects_ = other.projects_; - bitField0_ = (bitField0_ & ~0x00000002); - projectsBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getProjectsFieldBuilder() : null; - } else { - projectsBuilder_.addAllMessages(other.projects_); - } - } - } - if (permissionsBuilder_ == null) { - if (!other.permissions_.isEmpty()) { - if (permissions_.isEmpty()) { - permissions_ = other.permissions_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensurePermissionsIsMutable(); - permissions_.addAll(other.permissions_); - } - onChanged(); - } - } else { - if (!other.permissions_.isEmpty()) { - if (permissionsBuilder_.isEmpty()) { - permissionsBuilder_.dispose(); - permissionsBuilder_ = null; - permissions_ = other.permissions_; - bitField0_ = (bitField0_ & ~0x00000004); - permissionsBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getPermissionsFieldBuilder() : null; - } else { - permissionsBuilder_.addAllMessages(other.permissions_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - 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.Permissions.WsSearchProjectPermissionsResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private org.sonarqube.ws.Common.Paging paging_ = null; - private com.google.protobuf.SingleFieldBuilder< - org.sonarqube.ws.Common.Paging, org.sonarqube.ws.Common.Paging.Builder, org.sonarqube.ws.Common.PagingOrBuilder> pagingBuilder_; - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - public boolean hasPaging() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - public org.sonarqube.ws.Common.Paging getPaging() { - if (pagingBuilder_ == null) { - return paging_ == null ? org.sonarqube.ws.Common.Paging.getDefaultInstance() : paging_; - } else { - return pagingBuilder_.getMessage(); - } - } - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - public Builder setPaging(org.sonarqube.ws.Common.Paging value) { - if (pagingBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - paging_ = value; - onChanged(); - } else { - pagingBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - public Builder setPaging( - org.sonarqube.ws.Common.Paging.Builder builderForValue) { - if (pagingBuilder_ == null) { - paging_ = builderForValue.build(); - onChanged(); - } else { - pagingBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - public Builder mergePaging(org.sonarqube.ws.Common.Paging value) { - if (pagingBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001) && - paging_ != null && - paging_ != org.sonarqube.ws.Common.Paging.getDefaultInstance()) { - paging_ = - org.sonarqube.ws.Common.Paging.newBuilder(paging_).mergeFrom(value).buildPartial(); - } else { - paging_ = value; - } - onChanged(); - } else { - pagingBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - public Builder clearPaging() { - if (pagingBuilder_ == null) { - paging_ = null; - onChanged(); - } else { - pagingBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - public org.sonarqube.ws.Common.Paging.Builder getPagingBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getPagingFieldBuilder().getBuilder(); - } - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - public org.sonarqube.ws.Common.PagingOrBuilder getPagingOrBuilder() { - if (pagingBuilder_ != null) { - return pagingBuilder_.getMessageOrBuilder(); - } else { - return paging_ == null ? - org.sonarqube.ws.Common.Paging.getDefaultInstance() : paging_; - } - } - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - private com.google.protobuf.SingleFieldBuilder< - org.sonarqube.ws.Common.Paging, org.sonarqube.ws.Common.Paging.Builder, org.sonarqube.ws.Common.PagingOrBuilder> - getPagingFieldBuilder() { - if (pagingBuilder_ == null) { - pagingBuilder_ = new com.google.protobuf.SingleFieldBuilder< - org.sonarqube.ws.Common.Paging, org.sonarqube.ws.Common.Paging.Builder, org.sonarqube.ws.Common.PagingOrBuilder>( - getPaging(), - getParentForChildren(), - isClean()); - paging_ = null; - } - return pagingBuilder_; - } - - private java.util.List projects_ = - java.util.Collections.emptyList(); - private void ensureProjectsIsMutable() { - if (!((bitField0_ & 0x00000002) == 0x00000002)) { - projects_ = new java.util.ArrayList(projects_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project, org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project.Builder, org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.ProjectOrBuilder> projectsBuilder_; - - /** - * repeated .sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project projects = 2; - */ - public java.util.List getProjectsList() { - if (projectsBuilder_ == null) { - return java.util.Collections.unmodifiableList(projects_); - } else { - return projectsBuilder_.getMessageList(); - } - } - /** - * repeated .sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project projects = 2; - */ - public int getProjectsCount() { - if (projectsBuilder_ == null) { - return projects_.size(); - } else { - return projectsBuilder_.getCount(); - } - } - /** - * repeated .sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project projects = 2; - */ - public org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project getProjects(int index) { - if (projectsBuilder_ == null) { - return projects_.get(index); - } else { - return projectsBuilder_.getMessage(index); - } - } - /** - * repeated .sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project projects = 2; - */ - public Builder setProjects( - int index, org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project 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.permissions.WsSearchProjectPermissionsResponse.Project projects = 2; - */ - public Builder setProjects( - int index, org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project.Builder builderForValue) { - if (projectsBuilder_ == null) { - ensureProjectsIsMutable(); - projects_.set(index, builderForValue.build()); - onChanged(); - } else { - projectsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project projects = 2; - */ - public Builder addProjects(org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project value) { - if (projectsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureProjectsIsMutable(); - projects_.add(value); - onChanged(); - } else { - projectsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project projects = 2; - */ - public Builder addProjects( - int index, org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project 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.permissions.WsSearchProjectPermissionsResponse.Project projects = 2; - */ - public Builder addProjects( - org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project.Builder builderForValue) { - if (projectsBuilder_ == null) { - ensureProjectsIsMutable(); - projects_.add(builderForValue.build()); - onChanged(); - } else { - projectsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project projects = 2; - */ - public Builder addProjects( - int index, org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project.Builder builderForValue) { - if (projectsBuilder_ == null) { - ensureProjectsIsMutable(); - projects_.add(index, builderForValue.build()); - onChanged(); - } else { - projectsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project projects = 2; - */ - 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.permissions.WsSearchProjectPermissionsResponse.Project projects = 2; - */ - public Builder clearProjects() { - if (projectsBuilder_ == null) { - projects_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - projectsBuilder_.clear(); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project projects = 2; - */ - public Builder removeProjects(int index) { - if (projectsBuilder_ == null) { - ensureProjectsIsMutable(); - projects_.remove(index); - onChanged(); - } else { - projectsBuilder_.remove(index); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project projects = 2; - */ - public org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project.Builder getProjectsBuilder( - int index) { - return getProjectsFieldBuilder().getBuilder(index); - } - /** - * repeated .sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project projects = 2; - */ - public org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.ProjectOrBuilder getProjectsOrBuilder( - int index) { - if (projectsBuilder_ == null) { - return projects_.get(index); } else { - return projectsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project projects = 2; - */ - public java.util.List - getProjectsOrBuilderList() { - if (projectsBuilder_ != null) { - return projectsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(projects_); - } - } - /** - * repeated .sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project projects = 2; - */ - public org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project.Builder addProjectsBuilder() { - return getProjectsFieldBuilder().addBuilder( - org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project.getDefaultInstance()); - } - /** - * repeated .sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project projects = 2; - */ - public org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project.Builder addProjectsBuilder( - int index) { - return getProjectsFieldBuilder().addBuilder( - index, org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project.getDefaultInstance()); - } - /** - * repeated .sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project projects = 2; - */ - public java.util.List - getProjectsBuilderList() { - return getProjectsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project, org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project.Builder, org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.ProjectOrBuilder> - getProjectsFieldBuilder() { - if (projectsBuilder_ == null) { - projectsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project, org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project.Builder, org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.ProjectOrBuilder>( - projects_, - ((bitField0_ & 0x00000002) == 0x00000002), - getParentForChildren(), - isClean()); - projects_ = null; - } - return projectsBuilder_; - } - - private java.util.List permissions_ = - java.util.Collections.emptyList(); - private void ensurePermissionsIsMutable() { - if (!((bitField0_ & 0x00000004) == 0x00000004)) { - permissions_ = new java.util.ArrayList(permissions_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.Permissions.Permission, org.sonarqube.ws.Permissions.Permission.Builder, org.sonarqube.ws.Permissions.PermissionOrBuilder> permissionsBuilder_; - - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 3; - */ - public java.util.List getPermissionsList() { - if (permissionsBuilder_ == null) { - return java.util.Collections.unmodifiableList(permissions_); - } else { - return permissionsBuilder_.getMessageList(); - } - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 3; - */ - public int getPermissionsCount() { - if (permissionsBuilder_ == null) { - return permissions_.size(); - } else { - return permissionsBuilder_.getCount(); - } - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 3; - */ - public org.sonarqube.ws.Permissions.Permission getPermissions(int index) { - if (permissionsBuilder_ == null) { - return permissions_.get(index); - } else { - return permissionsBuilder_.getMessage(index); - } - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 3; - */ - public Builder setPermissions( - int index, org.sonarqube.ws.Permissions.Permission value) { - if (permissionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePermissionsIsMutable(); - permissions_.set(index, value); - onChanged(); - } else { - permissionsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 3; - */ - public Builder setPermissions( - int index, org.sonarqube.ws.Permissions.Permission.Builder builderForValue) { - if (permissionsBuilder_ == null) { - ensurePermissionsIsMutable(); - permissions_.set(index, builderForValue.build()); - onChanged(); - } else { - permissionsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 3; - */ - public Builder addPermissions(org.sonarqube.ws.Permissions.Permission value) { - if (permissionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePermissionsIsMutable(); - permissions_.add(value); - onChanged(); - } else { - permissionsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 3; - */ - public Builder addPermissions( - int index, org.sonarqube.ws.Permissions.Permission value) { - if (permissionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePermissionsIsMutable(); - permissions_.add(index, value); - onChanged(); - } else { - permissionsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 3; - */ - public Builder addPermissions( - org.sonarqube.ws.Permissions.Permission.Builder builderForValue) { - if (permissionsBuilder_ == null) { - ensurePermissionsIsMutable(); - permissions_.add(builderForValue.build()); - onChanged(); - } else { - permissionsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 3; - */ - public Builder addPermissions( - int index, org.sonarqube.ws.Permissions.Permission.Builder builderForValue) { - if (permissionsBuilder_ == null) { - ensurePermissionsIsMutable(); - permissions_.add(index, builderForValue.build()); - onChanged(); - } else { - permissionsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 3; - */ - public Builder addAllPermissions( - java.lang.Iterable values) { - if (permissionsBuilder_ == null) { - ensurePermissionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, permissions_); - onChanged(); - } else { - permissionsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 3; - */ - public Builder clearPermissions() { - if (permissionsBuilder_ == null) { - permissions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - permissionsBuilder_.clear(); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 3; - */ - public Builder removePermissions(int index) { - if (permissionsBuilder_ == null) { - ensurePermissionsIsMutable(); - permissions_.remove(index); - onChanged(); - } else { - permissionsBuilder_.remove(index); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 3; - */ - public org.sonarqube.ws.Permissions.Permission.Builder getPermissionsBuilder( - int index) { - return getPermissionsFieldBuilder().getBuilder(index); - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 3; - */ - public org.sonarqube.ws.Permissions.PermissionOrBuilder getPermissionsOrBuilder( - int index) { - if (permissionsBuilder_ == null) { - return permissions_.get(index); } else { - return permissionsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 3; - */ - public java.util.List - getPermissionsOrBuilderList() { - if (permissionsBuilder_ != null) { - return permissionsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(permissions_); - } - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 3; - */ - public org.sonarqube.ws.Permissions.Permission.Builder addPermissionsBuilder() { - return getPermissionsFieldBuilder().addBuilder( - org.sonarqube.ws.Permissions.Permission.getDefaultInstance()); - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 3; - */ - public org.sonarqube.ws.Permissions.Permission.Builder addPermissionsBuilder( - int index) { - return getPermissionsFieldBuilder().addBuilder( - index, org.sonarqube.ws.Permissions.Permission.getDefaultInstance()); - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 3; - */ - public java.util.List - getPermissionsBuilderList() { - return getPermissionsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.Permissions.Permission, org.sonarqube.ws.Permissions.Permission.Builder, org.sonarqube.ws.Permissions.PermissionOrBuilder> - getPermissionsFieldBuilder() { - if (permissionsBuilder_ == null) { - permissionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.Permissions.Permission, org.sonarqube.ws.Permissions.Permission.Builder, org.sonarqube.ws.Permissions.PermissionOrBuilder>( - permissions_, - ((bitField0_ & 0x00000004) == 0x00000004), - getParentForChildren(), - isClean()); - permissions_ = null; - } - return permissionsBuilder_; - } - - // @@protoc_insertion_point(builder_scope:sonarqube.ws.permissions.WsSearchProjectPermissionsResponse) - } - - // @@protoc_insertion_point(class_scope:sonarqube.ws.permissions.WsSearchProjectPermissionsResponse) - private static final org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse(); - } - - public static org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public WsSearchProjectPermissionsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new WsSearchProjectPermissionsResponse(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface PermissionTemplateOrBuilder extends - // @@protoc_insertion_point(interface_extends:sonarqube.ws.permissions.PermissionTemplate) - com.google.protobuf.MessageOrBuilder { - - /** - * optional string id = 1; - */ - boolean hasId(); - /** - * optional string id = 1; - */ - java.lang.String getId(); - /** - * optional string id = 1; - */ - com.google.protobuf.ByteString - getIdBytes(); - - /** - * optional string name = 2; - */ - boolean hasName(); - /** - * optional string name = 2; - */ - java.lang.String getName(); - /** - * optional string name = 2; - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - * optional string description = 3; - */ - boolean hasDescription(); - /** - * optional string description = 3; - */ - java.lang.String getDescription(); - /** - * optional string description = 3; - */ - com.google.protobuf.ByteString - getDescriptionBytes(); - - /** - * optional string projectKeyPattern = 4; - */ - boolean hasProjectKeyPattern(); - /** - * optional string projectKeyPattern = 4; - */ - java.lang.String getProjectKeyPattern(); - /** - * optional string projectKeyPattern = 4; - */ - com.google.protobuf.ByteString - getProjectKeyPatternBytes(); - - /** - * optional string createdAt = 5; - * - *
-     * ex: 2015-08-25T16:18:48+0200
-     * 
- */ - boolean hasCreatedAt(); - /** - * optional string createdAt = 5; - * - *
-     * ex: 2015-08-25T16:18:48+0200
-     * 
- */ - java.lang.String getCreatedAt(); - /** - * optional string createdAt = 5; - * - *
-     * ex: 2015-08-25T16:18:48+0200
-     * 
- */ - com.google.protobuf.ByteString - getCreatedAtBytes(); - - /** - * optional string updatedAt = 6; - * - *
-     * ex: 2015-08-25T16:18:48+0200
-     * 
- */ - boolean hasUpdatedAt(); - /** - * optional string updatedAt = 6; - * - *
-     * ex: 2015-08-25T16:18:48+0200
-     * 
- */ - java.lang.String getUpdatedAt(); - /** - * optional string updatedAt = 6; - * - *
-     * ex: 2015-08-25T16:18:48+0200
-     * 
- */ - com.google.protobuf.ByteString - getUpdatedAtBytes(); - - /** - * optional bool permissionsPresentIfEmpty = 7; - */ - boolean hasPermissionsPresentIfEmpty(); - /** - * optional bool permissionsPresentIfEmpty = 7; - */ - boolean getPermissionsPresentIfEmpty(); - - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 8; - */ - java.util.List - getPermissionsList(); - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 8; - */ - org.sonarqube.ws.Permissions.Permission getPermissions(int index); - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 8; - */ - int getPermissionsCount(); - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 8; - */ - java.util.List - getPermissionsOrBuilderList(); - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 8; - */ - org.sonarqube.ws.Permissions.PermissionOrBuilder getPermissionsOrBuilder( - int index); - } - /** - * Protobuf type {@code sonarqube.ws.permissions.PermissionTemplate} - */ - public static final class PermissionTemplate extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:sonarqube.ws.permissions.PermissionTemplate) - PermissionTemplateOrBuilder { - // Use PermissionTemplate.newBuilder() to construct. - private PermissionTemplate(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private PermissionTemplate() { - id_ = ""; - name_ = ""; - description_ = ""; - projectKeyPattern_ = ""; - createdAt_ = ""; - updatedAt_ = ""; - permissionsPresentIfEmpty_ = false; - permissions_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PermissionTemplate( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000001; - id_ = bs; - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - name_ = bs; - break; - } - case 26: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000004; - description_ = bs; - break; - } - case 34: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000008; - projectKeyPattern_ = bs; - break; - } - case 42: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000010; - createdAt_ = bs; - break; - } - case 50: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000020; - updatedAt_ = bs; - break; - } - case 56: { - bitField0_ |= 0x00000040; - permissionsPresentIfEmpty_ = input.readBool(); - break; - } - case 66: { - if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) { - permissions_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000080; - } - permissions_.add(input.readMessage(org.sonarqube.ws.Permissions.Permission.PARSER, extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - if (((mutable_bitField0_ & 0x00000080) == 0x00000080)) { - permissions_ = java.util.Collections.unmodifiableList(permissions_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_PermissionTemplate_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_PermissionTemplate_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Permissions.PermissionTemplate.class, org.sonarqube.ws.Permissions.PermissionTemplate.Builder.class); - } - - private int bitField0_; - public static final int ID_FIELD_NUMBER = 1; - private volatile java.lang.Object id_; - /** - * optional string id = 1; - */ - public boolean hasId() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string id = 1; - */ - public java.lang.String getId() { - java.lang.Object ref = id_; - 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()) { - id_ = s; - } - return s; - } - } - /** - * optional string id = 1; - */ - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object name_; - /** - * optional string name = 2; - */ - public boolean hasName() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string name = 2; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - 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()) { - name_ = s; - } - return s; - } - } - /** - * optional string name = 2; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DESCRIPTION_FIELD_NUMBER = 3; - private volatile java.lang.Object description_; - /** - * optional string description = 3; - */ - public boolean hasDescription() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional string description = 3; - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - 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()) { - description_ = s; - } - return s; - } - } - /** - * optional string description = 3; - */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PROJECTKEYPATTERN_FIELD_NUMBER = 4; - private volatile java.lang.Object projectKeyPattern_; - /** - * optional string projectKeyPattern = 4; - */ - public boolean hasProjectKeyPattern() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional string projectKeyPattern = 4; - */ - public java.lang.String getProjectKeyPattern() { - java.lang.Object ref = projectKeyPattern_; - 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()) { - projectKeyPattern_ = s; - } - return s; - } - } - /** - * optional string projectKeyPattern = 4; - */ - public com.google.protobuf.ByteString - getProjectKeyPatternBytes() { - java.lang.Object ref = projectKeyPattern_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - projectKeyPattern_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CREATEDAT_FIELD_NUMBER = 5; - private volatile java.lang.Object createdAt_; - /** - * optional string createdAt = 5; - * - *
-     * ex: 2015-08-25T16:18:48+0200
-     * 
- */ - public boolean hasCreatedAt() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - /** - * optional string createdAt = 5; - * - *
-     * ex: 2015-08-25T16:18:48+0200
-     * 
- */ - public java.lang.String getCreatedAt() { - java.lang.Object ref = createdAt_; - 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()) { - createdAt_ = s; - } - return s; - } - } - /** - * optional string createdAt = 5; - * - *
-     * ex: 2015-08-25T16:18:48+0200
-     * 
- */ - public com.google.protobuf.ByteString - getCreatedAtBytes() { - java.lang.Object ref = createdAt_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - createdAt_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int UPDATEDAT_FIELD_NUMBER = 6; - private volatile java.lang.Object updatedAt_; - /** - * optional string updatedAt = 6; - * - *
-     * ex: 2015-08-25T16:18:48+0200
-     * 
- */ - public boolean hasUpdatedAt() { - return ((bitField0_ & 0x00000020) == 0x00000020); - } - /** - * optional string updatedAt = 6; - * - *
-     * ex: 2015-08-25T16:18:48+0200
-     * 
- */ - public java.lang.String getUpdatedAt() { - java.lang.Object ref = updatedAt_; - 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()) { - updatedAt_ = s; - } - return s; - } - } - /** - * optional string updatedAt = 6; - * - *
-     * ex: 2015-08-25T16:18:48+0200
-     * 
- */ - public com.google.protobuf.ByteString - getUpdatedAtBytes() { - java.lang.Object ref = updatedAt_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - updatedAt_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PERMISSIONSPRESENTIFEMPTY_FIELD_NUMBER = 7; - private boolean permissionsPresentIfEmpty_; - /** - * optional bool permissionsPresentIfEmpty = 7; - */ - public boolean hasPermissionsPresentIfEmpty() { - return ((bitField0_ & 0x00000040) == 0x00000040); - } - /** - * optional bool permissionsPresentIfEmpty = 7; - */ - public boolean getPermissionsPresentIfEmpty() { - return permissionsPresentIfEmpty_; - } - - public static final int PERMISSIONS_FIELD_NUMBER = 8; - private java.util.List permissions_; - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 8; - */ - public java.util.List getPermissionsList() { - return permissions_; - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 8; - */ - public java.util.List - getPermissionsOrBuilderList() { - return permissions_; - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 8; - */ - public int getPermissionsCount() { - return permissions_.size(); - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 8; - */ - public org.sonarqube.ws.Permissions.Permission getPermissions(int index) { - return permissions_.get(index); - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 8; - */ - public org.sonarqube.ws.Permissions.PermissionOrBuilder getPermissionsOrBuilder( - int index) { - return permissions_.get(index); - } - - 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 { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getIdBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getNameBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, getDescriptionBytes()); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeBytes(4, getProjectKeyPatternBytes()); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeBytes(5, getCreatedAtBytes()); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - output.writeBytes(6, getUpdatedAtBytes()); - } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - output.writeBool(7, permissionsPresentIfEmpty_); - } - for (int i = 0; i < permissions_.size(); i++) { - output.writeMessage(8, permissions_.get(i)); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getIdBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getNameBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getDescriptionBytes()); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, getProjectKeyPatternBytes()); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(5, getCreatedAtBytes()); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(6, getUpdatedAtBytes()); - } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(7, permissionsPresentIfEmpty_); - } - for (int i = 0; i < permissions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, permissions_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonarqube.ws.Permissions.PermissionTemplate parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.Permissions.PermissionTemplate 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.Permissions.PermissionTemplate parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.Permissions.PermissionTemplate parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.Permissions.PermissionTemplate parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.Permissions.PermissionTemplate parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.Permissions.PermissionTemplate parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonarqube.ws.Permissions.PermissionTemplate parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.Permissions.PermissionTemplate parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.Permissions.PermissionTemplate parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonarqube.ws.Permissions.PermissionTemplate prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(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.permissions.PermissionTemplate} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:sonarqube.ws.permissions.PermissionTemplate) - org.sonarqube.ws.Permissions.PermissionTemplateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_PermissionTemplate_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_PermissionTemplate_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Permissions.PermissionTemplate.class, org.sonarqube.ws.Permissions.PermissionTemplate.Builder.class); - } - - // Construct using org.sonarqube.ws.Permissions.PermissionTemplate.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getPermissionsFieldBuilder(); - } - } - public Builder clear() { - super.clear(); - id_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - name_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - description_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); - projectKeyPattern_ = ""; - bitField0_ = (bitField0_ & ~0x00000008); - createdAt_ = ""; - bitField0_ = (bitField0_ & ~0x00000010); - updatedAt_ = ""; - bitField0_ = (bitField0_ & ~0x00000020); - permissionsPresentIfEmpty_ = false; - bitField0_ = (bitField0_ & ~0x00000040); - if (permissionsBuilder_ == null) { - permissions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000080); - } else { - permissionsBuilder_.clear(); - } - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_PermissionTemplate_descriptor; - } - - public org.sonarqube.ws.Permissions.PermissionTemplate getDefaultInstanceForType() { - return org.sonarqube.ws.Permissions.PermissionTemplate.getDefaultInstance(); - } - - public org.sonarqube.ws.Permissions.PermissionTemplate build() { - org.sonarqube.ws.Permissions.PermissionTemplate result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonarqube.ws.Permissions.PermissionTemplate buildPartial() { - org.sonarqube.ws.Permissions.PermissionTemplate result = new org.sonarqube.ws.Permissions.PermissionTemplate(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.id_ = id_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.name_ = name_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.description_ = description_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } - result.projectKeyPattern_ = projectKeyPattern_; - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { - to_bitField0_ |= 0x00000010; - } - result.createdAt_ = createdAt_; - if (((from_bitField0_ & 0x00000020) == 0x00000020)) { - to_bitField0_ |= 0x00000020; - } - result.updatedAt_ = updatedAt_; - if (((from_bitField0_ & 0x00000040) == 0x00000040)) { - to_bitField0_ |= 0x00000040; - } - result.permissionsPresentIfEmpty_ = permissionsPresentIfEmpty_; - if (permissionsBuilder_ == null) { - if (((bitField0_ & 0x00000080) == 0x00000080)) { - permissions_ = java.util.Collections.unmodifiableList(permissions_); - bitField0_ = (bitField0_ & ~0x00000080); - } - result.permissions_ = permissions_; - } else { - result.permissions_ = permissionsBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonarqube.ws.Permissions.PermissionTemplate) { - return mergeFrom((org.sonarqube.ws.Permissions.PermissionTemplate)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonarqube.ws.Permissions.PermissionTemplate other) { - if (other == org.sonarqube.ws.Permissions.PermissionTemplate.getDefaultInstance()) return this; - if (other.hasId()) { - bitField0_ |= 0x00000001; - id_ = other.id_; - onChanged(); - } - if (other.hasName()) { - bitField0_ |= 0x00000002; - name_ = other.name_; - onChanged(); - } - if (other.hasDescription()) { - bitField0_ |= 0x00000004; - description_ = other.description_; - onChanged(); - } - if (other.hasProjectKeyPattern()) { - bitField0_ |= 0x00000008; - projectKeyPattern_ = other.projectKeyPattern_; - onChanged(); - } - if (other.hasCreatedAt()) { - bitField0_ |= 0x00000010; - createdAt_ = other.createdAt_; - onChanged(); - } - if (other.hasUpdatedAt()) { - bitField0_ |= 0x00000020; - updatedAt_ = other.updatedAt_; - onChanged(); - } - if (other.hasPermissionsPresentIfEmpty()) { - setPermissionsPresentIfEmpty(other.getPermissionsPresentIfEmpty()); - } - if (permissionsBuilder_ == null) { - if (!other.permissions_.isEmpty()) { - if (permissions_.isEmpty()) { - permissions_ = other.permissions_; - bitField0_ = (bitField0_ & ~0x00000080); - } else { - ensurePermissionsIsMutable(); - permissions_.addAll(other.permissions_); - } - onChanged(); - } - } else { - if (!other.permissions_.isEmpty()) { - if (permissionsBuilder_.isEmpty()) { - permissionsBuilder_.dispose(); - permissionsBuilder_ = null; - permissions_ = other.permissions_; - bitField0_ = (bitField0_ & ~0x00000080); - permissionsBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getPermissionsFieldBuilder() : null; - } else { - permissionsBuilder_.addAllMessages(other.permissions_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - 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.Permissions.PermissionTemplate parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonarqube.ws.Permissions.PermissionTemplate) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object id_ = ""; - /** - * optional string id = 1; - */ - public boolean hasId() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string id = 1; - */ - public java.lang.String getId() { - java.lang.Object ref = id_; - 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()) { - id_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string id = 1; - */ - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string id = 1; - */ - public Builder setId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - id_ = value; - onChanged(); - return this; - } - /** - * optional string id = 1; - */ - public Builder clearId() { - bitField0_ = (bitField0_ & ~0x00000001); - id_ = getDefaultInstance().getId(); - onChanged(); - return this; - } - /** - * optional string id = 1; - */ - public Builder setIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - id_ = value; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - * optional string name = 2; - */ - public boolean hasName() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string name = 2; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - name_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string name = 2; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string name = 2; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - name_ = value; - onChanged(); - return this; - } - /** - * optional string name = 2; - */ - public Builder clearName() { - bitField0_ = (bitField0_ & ~0x00000002); - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * optional string name = 2; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - name_ = value; - onChanged(); - return this; - } - - private java.lang.Object description_ = ""; - /** - * optional string description = 3; - */ - public boolean hasDescription() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional string description = 3; - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - 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()) { - description_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string description = 3; - */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string description = 3; - */ - public Builder setDescription( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - description_ = value; - onChanged(); - return this; - } - /** - * optional string description = 3; - */ - public Builder clearDescription() { - bitField0_ = (bitField0_ & ~0x00000004); - description_ = getDefaultInstance().getDescription(); - onChanged(); - return this; - } - /** - * optional string description = 3; - */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - description_ = value; - onChanged(); - return this; - } - - private java.lang.Object projectKeyPattern_ = ""; - /** - * optional string projectKeyPattern = 4; - */ - public boolean hasProjectKeyPattern() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional string projectKeyPattern = 4; - */ - public java.lang.String getProjectKeyPattern() { - java.lang.Object ref = projectKeyPattern_; - 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()) { - projectKeyPattern_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string projectKeyPattern = 4; - */ - public com.google.protobuf.ByteString - getProjectKeyPatternBytes() { - java.lang.Object ref = projectKeyPattern_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - projectKeyPattern_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string projectKeyPattern = 4; - */ - public Builder setProjectKeyPattern( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - projectKeyPattern_ = value; - onChanged(); - return this; - } - /** - * optional string projectKeyPattern = 4; - */ - public Builder clearProjectKeyPattern() { - bitField0_ = (bitField0_ & ~0x00000008); - projectKeyPattern_ = getDefaultInstance().getProjectKeyPattern(); - onChanged(); - return this; - } - /** - * optional string projectKeyPattern = 4; - */ - public Builder setProjectKeyPatternBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - projectKeyPattern_ = value; - onChanged(); - return this; - } - - private java.lang.Object createdAt_ = ""; - /** - * optional string createdAt = 5; - * - *
-       * ex: 2015-08-25T16:18:48+0200
-       * 
- */ - public boolean hasCreatedAt() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - /** - * optional string createdAt = 5; - * - *
-       * ex: 2015-08-25T16:18:48+0200
-       * 
- */ - public java.lang.String getCreatedAt() { - java.lang.Object ref = createdAt_; - 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()) { - createdAt_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string createdAt = 5; - * - *
-       * ex: 2015-08-25T16:18:48+0200
-       * 
- */ - public com.google.protobuf.ByteString - getCreatedAtBytes() { - java.lang.Object ref = createdAt_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - createdAt_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string createdAt = 5; - * - *
-       * ex: 2015-08-25T16:18:48+0200
-       * 
- */ - public Builder setCreatedAt( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; - createdAt_ = value; - onChanged(); - return this; - } - /** - * optional string createdAt = 5; - * - *
-       * ex: 2015-08-25T16:18:48+0200
-       * 
- */ - public Builder clearCreatedAt() { - bitField0_ = (bitField0_ & ~0x00000010); - createdAt_ = getDefaultInstance().getCreatedAt(); - onChanged(); - return this; - } - /** - * optional string createdAt = 5; - * - *
-       * ex: 2015-08-25T16:18:48+0200
-       * 
- */ - public Builder setCreatedAtBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; - createdAt_ = value; - onChanged(); - return this; - } - - private java.lang.Object updatedAt_ = ""; - /** - * optional string updatedAt = 6; - * - *
-       * ex: 2015-08-25T16:18:48+0200
-       * 
- */ - public boolean hasUpdatedAt() { - return ((bitField0_ & 0x00000020) == 0x00000020); - } - /** - * optional string updatedAt = 6; - * - *
-       * ex: 2015-08-25T16:18:48+0200
-       * 
- */ - public java.lang.String getUpdatedAt() { - java.lang.Object ref = updatedAt_; - 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()) { - updatedAt_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string updatedAt = 6; - * - *
-       * ex: 2015-08-25T16:18:48+0200
-       * 
- */ - public com.google.protobuf.ByteString - getUpdatedAtBytes() { - java.lang.Object ref = updatedAt_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - updatedAt_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string updatedAt = 6; - * - *
-       * ex: 2015-08-25T16:18:48+0200
-       * 
- */ - public Builder setUpdatedAt( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; - updatedAt_ = value; - onChanged(); - return this; - } - /** - * optional string updatedAt = 6; - * - *
-       * ex: 2015-08-25T16:18:48+0200
-       * 
- */ - public Builder clearUpdatedAt() { - bitField0_ = (bitField0_ & ~0x00000020); - updatedAt_ = getDefaultInstance().getUpdatedAt(); - onChanged(); - return this; - } - /** - * optional string updatedAt = 6; - * - *
-       * ex: 2015-08-25T16:18:48+0200
-       * 
- */ - public Builder setUpdatedAtBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; - updatedAt_ = value; - onChanged(); - return this; - } - - private boolean permissionsPresentIfEmpty_ ; - /** - * optional bool permissionsPresentIfEmpty = 7; - */ - public boolean hasPermissionsPresentIfEmpty() { - return ((bitField0_ & 0x00000040) == 0x00000040); - } - /** - * optional bool permissionsPresentIfEmpty = 7; - */ - public boolean getPermissionsPresentIfEmpty() { - return permissionsPresentIfEmpty_; - } - /** - * optional bool permissionsPresentIfEmpty = 7; - */ - public Builder setPermissionsPresentIfEmpty(boolean value) { - bitField0_ |= 0x00000040; - permissionsPresentIfEmpty_ = value; - onChanged(); - return this; - } - /** - * optional bool permissionsPresentIfEmpty = 7; - */ - public Builder clearPermissionsPresentIfEmpty() { - bitField0_ = (bitField0_ & ~0x00000040); - permissionsPresentIfEmpty_ = false; - onChanged(); - return this; - } - - private java.util.List permissions_ = - java.util.Collections.emptyList(); - private void ensurePermissionsIsMutable() { - if (!((bitField0_ & 0x00000080) == 0x00000080)) { - permissions_ = new java.util.ArrayList(permissions_); - bitField0_ |= 0x00000080; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.Permissions.Permission, org.sonarqube.ws.Permissions.Permission.Builder, org.sonarqube.ws.Permissions.PermissionOrBuilder> permissionsBuilder_; - - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 8; - */ - public java.util.List getPermissionsList() { - if (permissionsBuilder_ == null) { - return java.util.Collections.unmodifiableList(permissions_); - } else { - return permissionsBuilder_.getMessageList(); - } - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 8; - */ - public int getPermissionsCount() { - if (permissionsBuilder_ == null) { - return permissions_.size(); - } else { - return permissionsBuilder_.getCount(); - } - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 8; - */ - public org.sonarqube.ws.Permissions.Permission getPermissions(int index) { - if (permissionsBuilder_ == null) { - return permissions_.get(index); - } else { - return permissionsBuilder_.getMessage(index); - } - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 8; - */ - public Builder setPermissions( - int index, org.sonarqube.ws.Permissions.Permission value) { - if (permissionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePermissionsIsMutable(); - permissions_.set(index, value); - onChanged(); - } else { - permissionsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 8; - */ - public Builder setPermissions( - int index, org.sonarqube.ws.Permissions.Permission.Builder builderForValue) { - if (permissionsBuilder_ == null) { - ensurePermissionsIsMutable(); - permissions_.set(index, builderForValue.build()); - onChanged(); - } else { - permissionsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 8; - */ - public Builder addPermissions(org.sonarqube.ws.Permissions.Permission value) { - if (permissionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePermissionsIsMutable(); - permissions_.add(value); - onChanged(); - } else { - permissionsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 8; - */ - public Builder addPermissions( - int index, org.sonarqube.ws.Permissions.Permission value) { - if (permissionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePermissionsIsMutable(); - permissions_.add(index, value); - onChanged(); - } else { - permissionsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 8; - */ - public Builder addPermissions( - org.sonarqube.ws.Permissions.Permission.Builder builderForValue) { - if (permissionsBuilder_ == null) { - ensurePermissionsIsMutable(); - permissions_.add(builderForValue.build()); - onChanged(); - } else { - permissionsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 8; - */ - public Builder addPermissions( - int index, org.sonarqube.ws.Permissions.Permission.Builder builderForValue) { - if (permissionsBuilder_ == null) { - ensurePermissionsIsMutable(); - permissions_.add(index, builderForValue.build()); - onChanged(); - } else { - permissionsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 8; - */ - public Builder addAllPermissions( - java.lang.Iterable values) { - if (permissionsBuilder_ == null) { - ensurePermissionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, permissions_); - onChanged(); - } else { - permissionsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 8; - */ - public Builder clearPermissions() { - if (permissionsBuilder_ == null) { - permissions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000080); - onChanged(); - } else { - permissionsBuilder_.clear(); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 8; - */ - public Builder removePermissions(int index) { - if (permissionsBuilder_ == null) { - ensurePermissionsIsMutable(); - permissions_.remove(index); - onChanged(); - } else { - permissionsBuilder_.remove(index); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 8; - */ - public org.sonarqube.ws.Permissions.Permission.Builder getPermissionsBuilder( - int index) { - return getPermissionsFieldBuilder().getBuilder(index); - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 8; - */ - public org.sonarqube.ws.Permissions.PermissionOrBuilder getPermissionsOrBuilder( - int index) { - if (permissionsBuilder_ == null) { - return permissions_.get(index); } else { - return permissionsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 8; - */ - public java.util.List - getPermissionsOrBuilderList() { - if (permissionsBuilder_ != null) { - return permissionsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(permissions_); - } - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 8; - */ - public org.sonarqube.ws.Permissions.Permission.Builder addPermissionsBuilder() { - return getPermissionsFieldBuilder().addBuilder( - org.sonarqube.ws.Permissions.Permission.getDefaultInstance()); - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 8; - */ - public org.sonarqube.ws.Permissions.Permission.Builder addPermissionsBuilder( - int index) { - return getPermissionsFieldBuilder().addBuilder( - index, org.sonarqube.ws.Permissions.Permission.getDefaultInstance()); - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 8; - */ - public java.util.List - getPermissionsBuilderList() { - return getPermissionsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.Permissions.Permission, org.sonarqube.ws.Permissions.Permission.Builder, org.sonarqube.ws.Permissions.PermissionOrBuilder> - getPermissionsFieldBuilder() { - if (permissionsBuilder_ == null) { - permissionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.Permissions.Permission, org.sonarqube.ws.Permissions.Permission.Builder, org.sonarqube.ws.Permissions.PermissionOrBuilder>( - permissions_, - ((bitField0_ & 0x00000080) == 0x00000080), - getParentForChildren(), - isClean()); - permissions_ = null; - } - return permissionsBuilder_; - } - - // @@protoc_insertion_point(builder_scope:sonarqube.ws.permissions.PermissionTemplate) - } - - // @@protoc_insertion_point(class_scope:sonarqube.ws.permissions.PermissionTemplate) - private static final org.sonarqube.ws.Permissions.PermissionTemplate DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonarqube.ws.Permissions.PermissionTemplate(); - } - - public static org.sonarqube.ws.Permissions.PermissionTemplate getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public PermissionTemplate parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new PermissionTemplate(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonarqube.ws.Permissions.PermissionTemplate getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface WsCreatePermissionTemplateResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:sonarqube.ws.permissions.WsCreatePermissionTemplateResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1; - */ - boolean hasPermissionTemplate(); - /** - * optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1; - */ - org.sonarqube.ws.Permissions.PermissionTemplate getPermissionTemplate(); - /** - * optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1; - */ - org.sonarqube.ws.Permissions.PermissionTemplateOrBuilder getPermissionTemplateOrBuilder(); - } - /** - * Protobuf type {@code sonarqube.ws.permissions.WsCreatePermissionTemplateResponse} - */ - public static final class WsCreatePermissionTemplateResponse extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:sonarqube.ws.permissions.WsCreatePermissionTemplateResponse) - WsCreatePermissionTemplateResponseOrBuilder { - // Use WsCreatePermissionTemplateResponse.newBuilder() to construct. - private WsCreatePermissionTemplateResponse(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private WsCreatePermissionTemplateResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WsCreatePermissionTemplateResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - 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.Permissions.PermissionTemplate.Builder subBuilder = null; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - subBuilder = permissionTemplate_.toBuilder(); - } - permissionTemplate_ = input.readMessage(org.sonarqube.ws.Permissions.PermissionTemplate.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(permissionTemplate_); - permissionTemplate_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000001; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsCreatePermissionTemplateResponse_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsCreatePermissionTemplateResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Permissions.WsCreatePermissionTemplateResponse.class, org.sonarqube.ws.Permissions.WsCreatePermissionTemplateResponse.Builder.class); - } - - private int bitField0_; - public static final int PERMISSIONTEMPLATE_FIELD_NUMBER = 1; - private org.sonarqube.ws.Permissions.PermissionTemplate permissionTemplate_; - /** - * optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1; - */ - public boolean hasPermissionTemplate() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1; - */ - public org.sonarqube.ws.Permissions.PermissionTemplate getPermissionTemplate() { - return permissionTemplate_ == null ? org.sonarqube.ws.Permissions.PermissionTemplate.getDefaultInstance() : permissionTemplate_; - } - /** - * optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1; - */ - public org.sonarqube.ws.Permissions.PermissionTemplateOrBuilder getPermissionTemplateOrBuilder() { - return permissionTemplate_ == null ? org.sonarqube.ws.Permissions.PermissionTemplate.getDefaultInstance() : permissionTemplate_; - } - - 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 { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(1, getPermissionTemplate()); - } - unknownFields.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, getPermissionTemplate()); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonarqube.ws.Permissions.WsCreatePermissionTemplateResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.Permissions.WsCreatePermissionTemplateResponse 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.Permissions.WsCreatePermissionTemplateResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.Permissions.WsCreatePermissionTemplateResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.Permissions.WsCreatePermissionTemplateResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.Permissions.WsCreatePermissionTemplateResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.Permissions.WsCreatePermissionTemplateResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonarqube.ws.Permissions.WsCreatePermissionTemplateResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.Permissions.WsCreatePermissionTemplateResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.Permissions.WsCreatePermissionTemplateResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonarqube.ws.Permissions.WsCreatePermissionTemplateResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(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.permissions.WsCreatePermissionTemplateResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:sonarqube.ws.permissions.WsCreatePermissionTemplateResponse) - org.sonarqube.ws.Permissions.WsCreatePermissionTemplateResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsCreatePermissionTemplateResponse_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsCreatePermissionTemplateResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Permissions.WsCreatePermissionTemplateResponse.class, org.sonarqube.ws.Permissions.WsCreatePermissionTemplateResponse.Builder.class); - } - - // Construct using org.sonarqube.ws.Permissions.WsCreatePermissionTemplateResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getPermissionTemplateFieldBuilder(); - } - } - public Builder clear() { - super.clear(); - if (permissionTemplateBuilder_ == null) { - permissionTemplate_ = null; - } else { - permissionTemplateBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsCreatePermissionTemplateResponse_descriptor; - } - - public org.sonarqube.ws.Permissions.WsCreatePermissionTemplateResponse getDefaultInstanceForType() { - return org.sonarqube.ws.Permissions.WsCreatePermissionTemplateResponse.getDefaultInstance(); - } - - public org.sonarqube.ws.Permissions.WsCreatePermissionTemplateResponse build() { - org.sonarqube.ws.Permissions.WsCreatePermissionTemplateResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonarqube.ws.Permissions.WsCreatePermissionTemplateResponse buildPartial() { - org.sonarqube.ws.Permissions.WsCreatePermissionTemplateResponse result = new org.sonarqube.ws.Permissions.WsCreatePermissionTemplateResponse(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - if (permissionTemplateBuilder_ == null) { - result.permissionTemplate_ = permissionTemplate_; - } else { - result.permissionTemplate_ = permissionTemplateBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonarqube.ws.Permissions.WsCreatePermissionTemplateResponse) { - return mergeFrom((org.sonarqube.ws.Permissions.WsCreatePermissionTemplateResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonarqube.ws.Permissions.WsCreatePermissionTemplateResponse other) { - if (other == org.sonarqube.ws.Permissions.WsCreatePermissionTemplateResponse.getDefaultInstance()) return this; - if (other.hasPermissionTemplate()) { - mergePermissionTemplate(other.getPermissionTemplate()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - 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.Permissions.WsCreatePermissionTemplateResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonarqube.ws.Permissions.WsCreatePermissionTemplateResponse) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private org.sonarqube.ws.Permissions.PermissionTemplate permissionTemplate_ = null; - private com.google.protobuf.SingleFieldBuilder< - org.sonarqube.ws.Permissions.PermissionTemplate, org.sonarqube.ws.Permissions.PermissionTemplate.Builder, org.sonarqube.ws.Permissions.PermissionTemplateOrBuilder> permissionTemplateBuilder_; - /** - * optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1; - */ - public boolean hasPermissionTemplate() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1; - */ - public org.sonarqube.ws.Permissions.PermissionTemplate getPermissionTemplate() { - if (permissionTemplateBuilder_ == null) { - return permissionTemplate_ == null ? org.sonarqube.ws.Permissions.PermissionTemplate.getDefaultInstance() : permissionTemplate_; - } else { - return permissionTemplateBuilder_.getMessage(); - } - } - /** - * optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1; - */ - public Builder setPermissionTemplate(org.sonarqube.ws.Permissions.PermissionTemplate value) { - if (permissionTemplateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - permissionTemplate_ = value; - onChanged(); - } else { - permissionTemplateBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1; - */ - public Builder setPermissionTemplate( - org.sonarqube.ws.Permissions.PermissionTemplate.Builder builderForValue) { - if (permissionTemplateBuilder_ == null) { - permissionTemplate_ = builderForValue.build(); - onChanged(); - } else { - permissionTemplateBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1; - */ - public Builder mergePermissionTemplate(org.sonarqube.ws.Permissions.PermissionTemplate value) { - if (permissionTemplateBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001) && - permissionTemplate_ != null && - permissionTemplate_ != org.sonarqube.ws.Permissions.PermissionTemplate.getDefaultInstance()) { - permissionTemplate_ = - org.sonarqube.ws.Permissions.PermissionTemplate.newBuilder(permissionTemplate_).mergeFrom(value).buildPartial(); - } else { - permissionTemplate_ = value; - } - onChanged(); - } else { - permissionTemplateBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1; - */ - public Builder clearPermissionTemplate() { - if (permissionTemplateBuilder_ == null) { - permissionTemplate_ = null; - onChanged(); - } else { - permissionTemplateBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - /** - * optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1; - */ - public org.sonarqube.ws.Permissions.PermissionTemplate.Builder getPermissionTemplateBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getPermissionTemplateFieldBuilder().getBuilder(); - } - /** - * optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1; - */ - public org.sonarqube.ws.Permissions.PermissionTemplateOrBuilder getPermissionTemplateOrBuilder() { - if (permissionTemplateBuilder_ != null) { - return permissionTemplateBuilder_.getMessageOrBuilder(); - } else { - return permissionTemplate_ == null ? - org.sonarqube.ws.Permissions.PermissionTemplate.getDefaultInstance() : permissionTemplate_; - } - } - /** - * optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1; - */ - private com.google.protobuf.SingleFieldBuilder< - org.sonarqube.ws.Permissions.PermissionTemplate, org.sonarqube.ws.Permissions.PermissionTemplate.Builder, org.sonarqube.ws.Permissions.PermissionTemplateOrBuilder> - getPermissionTemplateFieldBuilder() { - if (permissionTemplateBuilder_ == null) { - permissionTemplateBuilder_ = new com.google.protobuf.SingleFieldBuilder< - org.sonarqube.ws.Permissions.PermissionTemplate, org.sonarqube.ws.Permissions.PermissionTemplate.Builder, org.sonarqube.ws.Permissions.PermissionTemplateOrBuilder>( - getPermissionTemplate(), - getParentForChildren(), - isClean()); - permissionTemplate_ = null; - } - return permissionTemplateBuilder_; - } - - // @@protoc_insertion_point(builder_scope:sonarqube.ws.permissions.WsCreatePermissionTemplateResponse) - } - - // @@protoc_insertion_point(class_scope:sonarqube.ws.permissions.WsCreatePermissionTemplateResponse) - private static final org.sonarqube.ws.Permissions.WsCreatePermissionTemplateResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonarqube.ws.Permissions.WsCreatePermissionTemplateResponse(); - } - - public static org.sonarqube.ws.Permissions.WsCreatePermissionTemplateResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public WsCreatePermissionTemplateResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new WsCreatePermissionTemplateResponse(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonarqube.ws.Permissions.WsCreatePermissionTemplateResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface WsUpdatePermissionTemplateResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:sonarqube.ws.permissions.WsUpdatePermissionTemplateResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1; - */ - boolean hasPermissionTemplate(); - /** - * optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1; - */ - org.sonarqube.ws.Permissions.PermissionTemplate getPermissionTemplate(); - /** - * optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1; - */ - org.sonarqube.ws.Permissions.PermissionTemplateOrBuilder getPermissionTemplateOrBuilder(); - } - /** - * Protobuf type {@code sonarqube.ws.permissions.WsUpdatePermissionTemplateResponse} - */ - public static final class WsUpdatePermissionTemplateResponse extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:sonarqube.ws.permissions.WsUpdatePermissionTemplateResponse) - WsUpdatePermissionTemplateResponseOrBuilder { - // Use WsUpdatePermissionTemplateResponse.newBuilder() to construct. - private WsUpdatePermissionTemplateResponse(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private WsUpdatePermissionTemplateResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WsUpdatePermissionTemplateResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - 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.Permissions.PermissionTemplate.Builder subBuilder = null; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - subBuilder = permissionTemplate_.toBuilder(); - } - permissionTemplate_ = input.readMessage(org.sonarqube.ws.Permissions.PermissionTemplate.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(permissionTemplate_); - permissionTemplate_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000001; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsUpdatePermissionTemplateResponse_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsUpdatePermissionTemplateResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Permissions.WsUpdatePermissionTemplateResponse.class, org.sonarqube.ws.Permissions.WsUpdatePermissionTemplateResponse.Builder.class); - } - - private int bitField0_; - public static final int PERMISSIONTEMPLATE_FIELD_NUMBER = 1; - private org.sonarqube.ws.Permissions.PermissionTemplate permissionTemplate_; - /** - * optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1; - */ - public boolean hasPermissionTemplate() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1; - */ - public org.sonarqube.ws.Permissions.PermissionTemplate getPermissionTemplate() { - return permissionTemplate_ == null ? org.sonarqube.ws.Permissions.PermissionTemplate.getDefaultInstance() : permissionTemplate_; - } - /** - * optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1; - */ - public org.sonarqube.ws.Permissions.PermissionTemplateOrBuilder getPermissionTemplateOrBuilder() { - return permissionTemplate_ == null ? org.sonarqube.ws.Permissions.PermissionTemplate.getDefaultInstance() : permissionTemplate_; - } - - 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 { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(1, getPermissionTemplate()); - } - unknownFields.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, getPermissionTemplate()); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonarqube.ws.Permissions.WsUpdatePermissionTemplateResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.Permissions.WsUpdatePermissionTemplateResponse 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.Permissions.WsUpdatePermissionTemplateResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.Permissions.WsUpdatePermissionTemplateResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.Permissions.WsUpdatePermissionTemplateResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.Permissions.WsUpdatePermissionTemplateResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.Permissions.WsUpdatePermissionTemplateResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonarqube.ws.Permissions.WsUpdatePermissionTemplateResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.Permissions.WsUpdatePermissionTemplateResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.Permissions.WsUpdatePermissionTemplateResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonarqube.ws.Permissions.WsUpdatePermissionTemplateResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(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.permissions.WsUpdatePermissionTemplateResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:sonarqube.ws.permissions.WsUpdatePermissionTemplateResponse) - org.sonarqube.ws.Permissions.WsUpdatePermissionTemplateResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsUpdatePermissionTemplateResponse_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsUpdatePermissionTemplateResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Permissions.WsUpdatePermissionTemplateResponse.class, org.sonarqube.ws.Permissions.WsUpdatePermissionTemplateResponse.Builder.class); - } - - // Construct using org.sonarqube.ws.Permissions.WsUpdatePermissionTemplateResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getPermissionTemplateFieldBuilder(); - } - } - public Builder clear() { - super.clear(); - if (permissionTemplateBuilder_ == null) { - permissionTemplate_ = null; - } else { - permissionTemplateBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsUpdatePermissionTemplateResponse_descriptor; - } - - public org.sonarqube.ws.Permissions.WsUpdatePermissionTemplateResponse getDefaultInstanceForType() { - return org.sonarqube.ws.Permissions.WsUpdatePermissionTemplateResponse.getDefaultInstance(); - } - - public org.sonarqube.ws.Permissions.WsUpdatePermissionTemplateResponse build() { - org.sonarqube.ws.Permissions.WsUpdatePermissionTemplateResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonarqube.ws.Permissions.WsUpdatePermissionTemplateResponse buildPartial() { - org.sonarqube.ws.Permissions.WsUpdatePermissionTemplateResponse result = new org.sonarqube.ws.Permissions.WsUpdatePermissionTemplateResponse(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - if (permissionTemplateBuilder_ == null) { - result.permissionTemplate_ = permissionTemplate_; - } else { - result.permissionTemplate_ = permissionTemplateBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonarqube.ws.Permissions.WsUpdatePermissionTemplateResponse) { - return mergeFrom((org.sonarqube.ws.Permissions.WsUpdatePermissionTemplateResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonarqube.ws.Permissions.WsUpdatePermissionTemplateResponse other) { - if (other == org.sonarqube.ws.Permissions.WsUpdatePermissionTemplateResponse.getDefaultInstance()) return this; - if (other.hasPermissionTemplate()) { - mergePermissionTemplate(other.getPermissionTemplate()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - 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.Permissions.WsUpdatePermissionTemplateResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonarqube.ws.Permissions.WsUpdatePermissionTemplateResponse) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private org.sonarqube.ws.Permissions.PermissionTemplate permissionTemplate_ = null; - private com.google.protobuf.SingleFieldBuilder< - org.sonarqube.ws.Permissions.PermissionTemplate, org.sonarqube.ws.Permissions.PermissionTemplate.Builder, org.sonarqube.ws.Permissions.PermissionTemplateOrBuilder> permissionTemplateBuilder_; - /** - * optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1; - */ - public boolean hasPermissionTemplate() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1; - */ - public org.sonarqube.ws.Permissions.PermissionTemplate getPermissionTemplate() { - if (permissionTemplateBuilder_ == null) { - return permissionTemplate_ == null ? org.sonarqube.ws.Permissions.PermissionTemplate.getDefaultInstance() : permissionTemplate_; - } else { - return permissionTemplateBuilder_.getMessage(); - } - } - /** - * optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1; - */ - public Builder setPermissionTemplate(org.sonarqube.ws.Permissions.PermissionTemplate value) { - if (permissionTemplateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - permissionTemplate_ = value; - onChanged(); - } else { - permissionTemplateBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1; - */ - public Builder setPermissionTemplate( - org.sonarqube.ws.Permissions.PermissionTemplate.Builder builderForValue) { - if (permissionTemplateBuilder_ == null) { - permissionTemplate_ = builderForValue.build(); - onChanged(); - } else { - permissionTemplateBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1; - */ - public Builder mergePermissionTemplate(org.sonarqube.ws.Permissions.PermissionTemplate value) { - if (permissionTemplateBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001) && - permissionTemplate_ != null && - permissionTemplate_ != org.sonarqube.ws.Permissions.PermissionTemplate.getDefaultInstance()) { - permissionTemplate_ = - org.sonarqube.ws.Permissions.PermissionTemplate.newBuilder(permissionTemplate_).mergeFrom(value).buildPartial(); - } else { - permissionTemplate_ = value; - } - onChanged(); - } else { - permissionTemplateBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1; - */ - public Builder clearPermissionTemplate() { - if (permissionTemplateBuilder_ == null) { - permissionTemplate_ = null; - onChanged(); - } else { - permissionTemplateBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - /** - * optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1; - */ - public org.sonarqube.ws.Permissions.PermissionTemplate.Builder getPermissionTemplateBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getPermissionTemplateFieldBuilder().getBuilder(); - } - /** - * optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1; - */ - public org.sonarqube.ws.Permissions.PermissionTemplateOrBuilder getPermissionTemplateOrBuilder() { - if (permissionTemplateBuilder_ != null) { - return permissionTemplateBuilder_.getMessageOrBuilder(); - } else { - return permissionTemplate_ == null ? - org.sonarqube.ws.Permissions.PermissionTemplate.getDefaultInstance() : permissionTemplate_; - } - } - /** - * optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1; - */ - private com.google.protobuf.SingleFieldBuilder< - org.sonarqube.ws.Permissions.PermissionTemplate, org.sonarqube.ws.Permissions.PermissionTemplate.Builder, org.sonarqube.ws.Permissions.PermissionTemplateOrBuilder> - getPermissionTemplateFieldBuilder() { - if (permissionTemplateBuilder_ == null) { - permissionTemplateBuilder_ = new com.google.protobuf.SingleFieldBuilder< - org.sonarqube.ws.Permissions.PermissionTemplate, org.sonarqube.ws.Permissions.PermissionTemplate.Builder, org.sonarqube.ws.Permissions.PermissionTemplateOrBuilder>( - getPermissionTemplate(), - getParentForChildren(), - isClean()); - permissionTemplate_ = null; - } - return permissionTemplateBuilder_; - } - - // @@protoc_insertion_point(builder_scope:sonarqube.ws.permissions.WsUpdatePermissionTemplateResponse) - } - - // @@protoc_insertion_point(class_scope:sonarqube.ws.permissions.WsUpdatePermissionTemplateResponse) - private static final org.sonarqube.ws.Permissions.WsUpdatePermissionTemplateResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonarqube.ws.Permissions.WsUpdatePermissionTemplateResponse(); - } - - public static org.sonarqube.ws.Permissions.WsUpdatePermissionTemplateResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public WsUpdatePermissionTemplateResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new WsUpdatePermissionTemplateResponse(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonarqube.ws.Permissions.WsUpdatePermissionTemplateResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface WsSearchTemplatesResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:sonarqube.ws.permissions.WsSearchTemplatesResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1; - */ - java.util.List - getPermissionTemplatesList(); - /** - * repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1; - */ - org.sonarqube.ws.Permissions.PermissionTemplate getPermissionTemplates(int index); - /** - * repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1; - */ - int getPermissionTemplatesCount(); - /** - * repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1; - */ - java.util.List - getPermissionTemplatesOrBuilderList(); - /** - * repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1; - */ - org.sonarqube.ws.Permissions.PermissionTemplateOrBuilder getPermissionTemplatesOrBuilder( - int index); - - /** - * repeated .sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier defaultTemplates = 2; - */ - java.util.List - getDefaultTemplatesList(); - /** - * repeated .sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier defaultTemplates = 2; - */ - org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier getDefaultTemplates(int index); - /** - * repeated .sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier defaultTemplates = 2; - */ - int getDefaultTemplatesCount(); - /** - * repeated .sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier defaultTemplates = 2; - */ - java.util.List - getDefaultTemplatesOrBuilderList(); - /** - * repeated .sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier defaultTemplates = 2; - */ - org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifierOrBuilder getDefaultTemplatesOrBuilder( - int index); - - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 3; - */ - java.util.List - getPermissionsList(); - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 3; - */ - org.sonarqube.ws.Permissions.Permission getPermissions(int index); - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 3; - */ - int getPermissionsCount(); - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 3; - */ - java.util.List - getPermissionsOrBuilderList(); - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 3; - */ - org.sonarqube.ws.Permissions.PermissionOrBuilder getPermissionsOrBuilder( - int index); - } - /** - * Protobuf type {@code sonarqube.ws.permissions.WsSearchTemplatesResponse} - */ - public static final class WsSearchTemplatesResponse extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:sonarqube.ws.permissions.WsSearchTemplatesResponse) - WsSearchTemplatesResponseOrBuilder { - // Use WsSearchTemplatesResponse.newBuilder() to construct. - private WsSearchTemplatesResponse(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private WsSearchTemplatesResponse() { - permissionTemplates_ = java.util.Collections.emptyList(); - defaultTemplates_ = java.util.Collections.emptyList(); - permissions_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WsSearchTemplatesResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - permissionTemplates_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - permissionTemplates_.add(input.readMessage(org.sonarqube.ws.Permissions.PermissionTemplate.PARSER, extensionRegistry)); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - defaultTemplates_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - defaultTemplates_.add(input.readMessage(org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier.PARSER, extensionRegistry)); - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { - permissions_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - permissions_.add(input.readMessage(org.sonarqube.ws.Permissions.Permission.PARSER, extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - permissionTemplates_ = java.util.Collections.unmodifiableList(permissionTemplates_); - } - if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - defaultTemplates_ = java.util.Collections.unmodifiableList(defaultTemplates_); - } - if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { - permissions_ = java.util.Collections.unmodifiableList(permissions_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsSearchTemplatesResponse_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsSearchTemplatesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.class, org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.Builder.class); - } - - public interface TemplateIdQualifierOrBuilder extends - // @@protoc_insertion_point(interface_extends:sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier) - com.google.protobuf.MessageOrBuilder { - - /** - * optional string templateId = 1; - */ - boolean hasTemplateId(); - /** - * optional string templateId = 1; - */ - java.lang.String getTemplateId(); - /** - * optional string templateId = 1; - */ - com.google.protobuf.ByteString - getTemplateIdBytes(); - - /** - * optional string qualifier = 2; - */ - boolean hasQualifier(); - /** - * optional string qualifier = 2; - */ - java.lang.String getQualifier(); - /** - * optional string qualifier = 2; - */ - com.google.protobuf.ByteString - getQualifierBytes(); - } - /** - * Protobuf type {@code sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier} - */ - public static final class TemplateIdQualifier extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier) - TemplateIdQualifierOrBuilder { - // Use TemplateIdQualifier.newBuilder() to construct. - private TemplateIdQualifier(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private TemplateIdQualifier() { - templateId_ = ""; - qualifier_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TemplateIdQualifier( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000001; - templateId_ = bs; - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - qualifier_ = bs; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsSearchTemplatesResponse_TemplateIdQualifier_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsSearchTemplatesResponse_TemplateIdQualifier_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier.class, org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier.Builder.class); - } - - private int bitField0_; - public static final int TEMPLATEID_FIELD_NUMBER = 1; - private volatile java.lang.Object templateId_; - /** - * optional string templateId = 1; - */ - public boolean hasTemplateId() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string templateId = 1; - */ - public java.lang.String getTemplateId() { - java.lang.Object ref = templateId_; - 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()) { - templateId_ = s; - } - return s; - } - } - /** - * optional string templateId = 1; - */ - public com.google.protobuf.ByteString - getTemplateIdBytes() { - java.lang.Object ref = templateId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - templateId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int QUALIFIER_FIELD_NUMBER = 2; - private volatile java.lang.Object qualifier_; - /** - * optional string qualifier = 2; - */ - public boolean hasQualifier() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string qualifier = 2; - */ - public java.lang.String getQualifier() { - java.lang.Object ref = qualifier_; - 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()) { - qualifier_ = s; - } - return s; - } - } - /** - * optional string qualifier = 2; - */ - public com.google.protobuf.ByteString - getQualifierBytes() { - java.lang.Object ref = qualifier_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - qualifier_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getTemplateIdBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getQualifierBytes()); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getTemplateIdBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getQualifierBytes()); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier 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.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(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.permissions.WsSearchTemplatesResponse.TemplateIdQualifier} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier) - org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifierOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsSearchTemplatesResponse_TemplateIdQualifier_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsSearchTemplatesResponse_TemplateIdQualifier_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier.class, org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier.Builder.class); - } - - // Construct using org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - templateId_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - qualifier_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsSearchTemplatesResponse_TemplateIdQualifier_descriptor; - } - - public org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier getDefaultInstanceForType() { - return org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier.getDefaultInstance(); - } - - public org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier build() { - org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier buildPartial() { - org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier result = new org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.templateId_ = templateId_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.qualifier_ = qualifier_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier) { - return mergeFrom((org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier other) { - if (other == org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier.getDefaultInstance()) return this; - if (other.hasTemplateId()) { - bitField0_ |= 0x00000001; - templateId_ = other.templateId_; - onChanged(); - } - if (other.hasQualifier()) { - bitField0_ |= 0x00000002; - qualifier_ = other.qualifier_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - 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.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object templateId_ = ""; - /** - * optional string templateId = 1; - */ - public boolean hasTemplateId() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string templateId = 1; - */ - public java.lang.String getTemplateId() { - java.lang.Object ref = templateId_; - 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()) { - templateId_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string templateId = 1; - */ - public com.google.protobuf.ByteString - getTemplateIdBytes() { - java.lang.Object ref = templateId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - templateId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string templateId = 1; - */ - public Builder setTemplateId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - templateId_ = value; - onChanged(); - return this; - } - /** - * optional string templateId = 1; - */ - public Builder clearTemplateId() { - bitField0_ = (bitField0_ & ~0x00000001); - templateId_ = getDefaultInstance().getTemplateId(); - onChanged(); - return this; - } - /** - * optional string templateId = 1; - */ - public Builder setTemplateIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - templateId_ = value; - onChanged(); - return this; - } - - private java.lang.Object qualifier_ = ""; - /** - * optional string qualifier = 2; - */ - public boolean hasQualifier() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string qualifier = 2; - */ - public java.lang.String getQualifier() { - java.lang.Object ref = qualifier_; - 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()) { - qualifier_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string qualifier = 2; - */ - public com.google.protobuf.ByteString - getQualifierBytes() { - java.lang.Object ref = qualifier_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - qualifier_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string qualifier = 2; - */ - public Builder setQualifier( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - qualifier_ = value; - onChanged(); - return this; - } - /** - * optional string qualifier = 2; - */ - public Builder clearQualifier() { - bitField0_ = (bitField0_ & ~0x00000002); - qualifier_ = getDefaultInstance().getQualifier(); - onChanged(); - return this; - } - /** - * optional string qualifier = 2; - */ - public Builder setQualifierBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - qualifier_ = value; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier) - } - - // @@protoc_insertion_point(class_scope:sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier) - private static final org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier(); - } - - public static org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public TemplateIdQualifier parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new TemplateIdQualifier(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public static final int PERMISSIONTEMPLATES_FIELD_NUMBER = 1; - private java.util.List permissionTemplates_; - /** - * repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1; - */ - public java.util.List getPermissionTemplatesList() { - return permissionTemplates_; - } - /** - * repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1; - */ - public java.util.List - getPermissionTemplatesOrBuilderList() { - return permissionTemplates_; - } - /** - * repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1; - */ - public int getPermissionTemplatesCount() { - return permissionTemplates_.size(); - } - /** - * repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1; - */ - public org.sonarqube.ws.Permissions.PermissionTemplate getPermissionTemplates(int index) { - return permissionTemplates_.get(index); - } - /** - * repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1; - */ - public org.sonarqube.ws.Permissions.PermissionTemplateOrBuilder getPermissionTemplatesOrBuilder( - int index) { - return permissionTemplates_.get(index); - } - - public static final int DEFAULTTEMPLATES_FIELD_NUMBER = 2; - private java.util.List defaultTemplates_; - /** - * repeated .sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier defaultTemplates = 2; - */ - public java.util.List getDefaultTemplatesList() { - return defaultTemplates_; - } - /** - * repeated .sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier defaultTemplates = 2; - */ - public java.util.List - getDefaultTemplatesOrBuilderList() { - return defaultTemplates_; - } - /** - * repeated .sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier defaultTemplates = 2; - */ - public int getDefaultTemplatesCount() { - return defaultTemplates_.size(); - } - /** - * repeated .sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier defaultTemplates = 2; - */ - public org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier getDefaultTemplates(int index) { - return defaultTemplates_.get(index); - } - /** - * repeated .sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier defaultTemplates = 2; - */ - public org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifierOrBuilder getDefaultTemplatesOrBuilder( - int index) { - return defaultTemplates_.get(index); - } - - public static final int PERMISSIONS_FIELD_NUMBER = 3; - private java.util.List permissions_; - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 3; - */ - public java.util.List getPermissionsList() { - return permissions_; - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 3; - */ - public java.util.List - getPermissionsOrBuilderList() { - return permissions_; - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 3; - */ - public int getPermissionsCount() { - return permissions_.size(); - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 3; - */ - public org.sonarqube.ws.Permissions.Permission getPermissions(int index) { - return permissions_.get(index); - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 3; - */ - public org.sonarqube.ws.Permissions.PermissionOrBuilder getPermissionsOrBuilder( - int index) { - return permissions_.get(index); - } - - 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 { - for (int i = 0; i < permissionTemplates_.size(); i++) { - output.writeMessage(1, permissionTemplates_.get(i)); - } - for (int i = 0; i < defaultTemplates_.size(); i++) { - output.writeMessage(2, defaultTemplates_.get(i)); - } - for (int i = 0; i < permissions_.size(); i++) { - output.writeMessage(3, permissions_.get(i)); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < permissionTemplates_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, permissionTemplates_.get(i)); - } - for (int i = 0; i < defaultTemplates_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, defaultTemplates_.get(i)); - } - for (int i = 0; i < permissions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, permissions_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonarqube.ws.Permissions.WsSearchTemplatesResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.Permissions.WsSearchTemplatesResponse 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.Permissions.WsSearchTemplatesResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.Permissions.WsSearchTemplatesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.Permissions.WsSearchTemplatesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.Permissions.WsSearchTemplatesResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.Permissions.WsSearchTemplatesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonarqube.ws.Permissions.WsSearchTemplatesResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.Permissions.WsSearchTemplatesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.Permissions.WsSearchTemplatesResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonarqube.ws.Permissions.WsSearchTemplatesResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(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.permissions.WsSearchTemplatesResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:sonarqube.ws.permissions.WsSearchTemplatesResponse) - org.sonarqube.ws.Permissions.WsSearchTemplatesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsSearchTemplatesResponse_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsSearchTemplatesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.class, org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.Builder.class); - } - - // Construct using org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getPermissionTemplatesFieldBuilder(); - getDefaultTemplatesFieldBuilder(); - getPermissionsFieldBuilder(); - } - } - public Builder clear() { - super.clear(); - if (permissionTemplatesBuilder_ == null) { - permissionTemplates_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - permissionTemplatesBuilder_.clear(); - } - if (defaultTemplatesBuilder_ == null) { - defaultTemplates_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - defaultTemplatesBuilder_.clear(); - } - if (permissionsBuilder_ == null) { - permissions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - } else { - permissionsBuilder_.clear(); - } - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsSearchTemplatesResponse_descriptor; - } - - public org.sonarqube.ws.Permissions.WsSearchTemplatesResponse getDefaultInstanceForType() { - return org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.getDefaultInstance(); - } - - public org.sonarqube.ws.Permissions.WsSearchTemplatesResponse build() { - org.sonarqube.ws.Permissions.WsSearchTemplatesResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonarqube.ws.Permissions.WsSearchTemplatesResponse buildPartial() { - org.sonarqube.ws.Permissions.WsSearchTemplatesResponse result = new org.sonarqube.ws.Permissions.WsSearchTemplatesResponse(this); - int from_bitField0_ = bitField0_; - if (permissionTemplatesBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - permissionTemplates_ = java.util.Collections.unmodifiableList(permissionTemplates_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.permissionTemplates_ = permissionTemplates_; - } else { - result.permissionTemplates_ = permissionTemplatesBuilder_.build(); - } - if (defaultTemplatesBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002)) { - defaultTemplates_ = java.util.Collections.unmodifiableList(defaultTemplates_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.defaultTemplates_ = defaultTemplates_; - } else { - result.defaultTemplates_ = defaultTemplatesBuilder_.build(); - } - if (permissionsBuilder_ == null) { - if (((bitField0_ & 0x00000004) == 0x00000004)) { - permissions_ = java.util.Collections.unmodifiableList(permissions_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.permissions_ = permissions_; - } else { - result.permissions_ = permissionsBuilder_.build(); - } - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonarqube.ws.Permissions.WsSearchTemplatesResponse) { - return mergeFrom((org.sonarqube.ws.Permissions.WsSearchTemplatesResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonarqube.ws.Permissions.WsSearchTemplatesResponse other) { - if (other == org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.getDefaultInstance()) return this; - if (permissionTemplatesBuilder_ == null) { - if (!other.permissionTemplates_.isEmpty()) { - if (permissionTemplates_.isEmpty()) { - permissionTemplates_ = other.permissionTemplates_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensurePermissionTemplatesIsMutable(); - permissionTemplates_.addAll(other.permissionTemplates_); - } - onChanged(); - } - } else { - if (!other.permissionTemplates_.isEmpty()) { - if (permissionTemplatesBuilder_.isEmpty()) { - permissionTemplatesBuilder_.dispose(); - permissionTemplatesBuilder_ = null; - permissionTemplates_ = other.permissionTemplates_; - bitField0_ = (bitField0_ & ~0x00000001); - permissionTemplatesBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getPermissionTemplatesFieldBuilder() : null; - } else { - permissionTemplatesBuilder_.addAllMessages(other.permissionTemplates_); - } - } - } - if (defaultTemplatesBuilder_ == null) { - if (!other.defaultTemplates_.isEmpty()) { - if (defaultTemplates_.isEmpty()) { - defaultTemplates_ = other.defaultTemplates_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureDefaultTemplatesIsMutable(); - defaultTemplates_.addAll(other.defaultTemplates_); - } - onChanged(); - } - } else { - if (!other.defaultTemplates_.isEmpty()) { - if (defaultTemplatesBuilder_.isEmpty()) { - defaultTemplatesBuilder_.dispose(); - defaultTemplatesBuilder_ = null; - defaultTemplates_ = other.defaultTemplates_; - bitField0_ = (bitField0_ & ~0x00000002); - defaultTemplatesBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getDefaultTemplatesFieldBuilder() : null; - } else { - defaultTemplatesBuilder_.addAllMessages(other.defaultTemplates_); - } - } - } - if (permissionsBuilder_ == null) { - if (!other.permissions_.isEmpty()) { - if (permissions_.isEmpty()) { - permissions_ = other.permissions_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensurePermissionsIsMutable(); - permissions_.addAll(other.permissions_); - } - onChanged(); - } - } else { - if (!other.permissions_.isEmpty()) { - if (permissionsBuilder_.isEmpty()) { - permissionsBuilder_.dispose(); - permissionsBuilder_ = null; - permissions_ = other.permissions_; - bitField0_ = (bitField0_ & ~0x00000004); - permissionsBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getPermissionsFieldBuilder() : null; - } else { - permissionsBuilder_.addAllMessages(other.permissions_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - 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.Permissions.WsSearchTemplatesResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonarqube.ws.Permissions.WsSearchTemplatesResponse) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List permissionTemplates_ = - java.util.Collections.emptyList(); - private void ensurePermissionTemplatesIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - permissionTemplates_ = new java.util.ArrayList(permissionTemplates_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.Permissions.PermissionTemplate, org.sonarqube.ws.Permissions.PermissionTemplate.Builder, org.sonarqube.ws.Permissions.PermissionTemplateOrBuilder> permissionTemplatesBuilder_; - - /** - * repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1; - */ - public java.util.List getPermissionTemplatesList() { - if (permissionTemplatesBuilder_ == null) { - return java.util.Collections.unmodifiableList(permissionTemplates_); - } else { - return permissionTemplatesBuilder_.getMessageList(); - } - } - /** - * repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1; - */ - public int getPermissionTemplatesCount() { - if (permissionTemplatesBuilder_ == null) { - return permissionTemplates_.size(); - } else { - return permissionTemplatesBuilder_.getCount(); - } - } - /** - * repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1; - */ - public org.sonarqube.ws.Permissions.PermissionTemplate getPermissionTemplates(int index) { - if (permissionTemplatesBuilder_ == null) { - return permissionTemplates_.get(index); - } else { - return permissionTemplatesBuilder_.getMessage(index); - } - } - /** - * repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1; - */ - public Builder setPermissionTemplates( - int index, org.sonarqube.ws.Permissions.PermissionTemplate value) { - if (permissionTemplatesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePermissionTemplatesIsMutable(); - permissionTemplates_.set(index, value); - onChanged(); - } else { - permissionTemplatesBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1; - */ - public Builder setPermissionTemplates( - int index, org.sonarqube.ws.Permissions.PermissionTemplate.Builder builderForValue) { - if (permissionTemplatesBuilder_ == null) { - ensurePermissionTemplatesIsMutable(); - permissionTemplates_.set(index, builderForValue.build()); - onChanged(); - } else { - permissionTemplatesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1; - */ - public Builder addPermissionTemplates(org.sonarqube.ws.Permissions.PermissionTemplate value) { - if (permissionTemplatesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePermissionTemplatesIsMutable(); - permissionTemplates_.add(value); - onChanged(); - } else { - permissionTemplatesBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1; - */ - public Builder addPermissionTemplates( - int index, org.sonarqube.ws.Permissions.PermissionTemplate value) { - if (permissionTemplatesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePermissionTemplatesIsMutable(); - permissionTemplates_.add(index, value); - onChanged(); - } else { - permissionTemplatesBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1; - */ - public Builder addPermissionTemplates( - org.sonarqube.ws.Permissions.PermissionTemplate.Builder builderForValue) { - if (permissionTemplatesBuilder_ == null) { - ensurePermissionTemplatesIsMutable(); - permissionTemplates_.add(builderForValue.build()); - onChanged(); - } else { - permissionTemplatesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1; - */ - public Builder addPermissionTemplates( - int index, org.sonarqube.ws.Permissions.PermissionTemplate.Builder builderForValue) { - if (permissionTemplatesBuilder_ == null) { - ensurePermissionTemplatesIsMutable(); - permissionTemplates_.add(index, builderForValue.build()); - onChanged(); - } else { - permissionTemplatesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1; - */ - public Builder addAllPermissionTemplates( - java.lang.Iterable values) { - if (permissionTemplatesBuilder_ == null) { - ensurePermissionTemplatesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, permissionTemplates_); - onChanged(); - } else { - permissionTemplatesBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1; - */ - public Builder clearPermissionTemplates() { - if (permissionTemplatesBuilder_ == null) { - permissionTemplates_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - permissionTemplatesBuilder_.clear(); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1; - */ - public Builder removePermissionTemplates(int index) { - if (permissionTemplatesBuilder_ == null) { - ensurePermissionTemplatesIsMutable(); - permissionTemplates_.remove(index); - onChanged(); - } else { - permissionTemplatesBuilder_.remove(index); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1; - */ - public org.sonarqube.ws.Permissions.PermissionTemplate.Builder getPermissionTemplatesBuilder( - int index) { - return getPermissionTemplatesFieldBuilder().getBuilder(index); - } - /** - * repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1; - */ - public org.sonarqube.ws.Permissions.PermissionTemplateOrBuilder getPermissionTemplatesOrBuilder( - int index) { - if (permissionTemplatesBuilder_ == null) { - return permissionTemplates_.get(index); } else { - return permissionTemplatesBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1; - */ - public java.util.List - getPermissionTemplatesOrBuilderList() { - if (permissionTemplatesBuilder_ != null) { - return permissionTemplatesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(permissionTemplates_); - } - } - /** - * repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1; - */ - public org.sonarqube.ws.Permissions.PermissionTemplate.Builder addPermissionTemplatesBuilder() { - return getPermissionTemplatesFieldBuilder().addBuilder( - org.sonarqube.ws.Permissions.PermissionTemplate.getDefaultInstance()); - } - /** - * repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1; - */ - public org.sonarqube.ws.Permissions.PermissionTemplate.Builder addPermissionTemplatesBuilder( - int index) { - return getPermissionTemplatesFieldBuilder().addBuilder( - index, org.sonarqube.ws.Permissions.PermissionTemplate.getDefaultInstance()); - } - /** - * repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1; - */ - public java.util.List - getPermissionTemplatesBuilderList() { - return getPermissionTemplatesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.Permissions.PermissionTemplate, org.sonarqube.ws.Permissions.PermissionTemplate.Builder, org.sonarqube.ws.Permissions.PermissionTemplateOrBuilder> - getPermissionTemplatesFieldBuilder() { - if (permissionTemplatesBuilder_ == null) { - permissionTemplatesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.Permissions.PermissionTemplate, org.sonarqube.ws.Permissions.PermissionTemplate.Builder, org.sonarqube.ws.Permissions.PermissionTemplateOrBuilder>( - permissionTemplates_, - ((bitField0_ & 0x00000001) == 0x00000001), - getParentForChildren(), - isClean()); - permissionTemplates_ = null; - } - return permissionTemplatesBuilder_; - } - - private java.util.List defaultTemplates_ = - java.util.Collections.emptyList(); - private void ensureDefaultTemplatesIsMutable() { - if (!((bitField0_ & 0x00000002) == 0x00000002)) { - defaultTemplates_ = new java.util.ArrayList(defaultTemplates_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier, org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier.Builder, org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifierOrBuilder> defaultTemplatesBuilder_; - - /** - * repeated .sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier defaultTemplates = 2; - */ - public java.util.List getDefaultTemplatesList() { - if (defaultTemplatesBuilder_ == null) { - return java.util.Collections.unmodifiableList(defaultTemplates_); - } else { - return defaultTemplatesBuilder_.getMessageList(); - } - } - /** - * repeated .sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier defaultTemplates = 2; - */ - public int getDefaultTemplatesCount() { - if (defaultTemplatesBuilder_ == null) { - return defaultTemplates_.size(); - } else { - return defaultTemplatesBuilder_.getCount(); - } - } - /** - * repeated .sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier defaultTemplates = 2; - */ - public org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier getDefaultTemplates(int index) { - if (defaultTemplatesBuilder_ == null) { - return defaultTemplates_.get(index); - } else { - return defaultTemplatesBuilder_.getMessage(index); - } - } - /** - * repeated .sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier defaultTemplates = 2; - */ - public Builder setDefaultTemplates( - int index, org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier value) { - if (defaultTemplatesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDefaultTemplatesIsMutable(); - defaultTemplates_.set(index, value); - onChanged(); - } else { - defaultTemplatesBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier defaultTemplates = 2; - */ - public Builder setDefaultTemplates( - int index, org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier.Builder builderForValue) { - if (defaultTemplatesBuilder_ == null) { - ensureDefaultTemplatesIsMutable(); - defaultTemplates_.set(index, builderForValue.build()); - onChanged(); - } else { - defaultTemplatesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier defaultTemplates = 2; - */ - public Builder addDefaultTemplates(org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier value) { - if (defaultTemplatesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDefaultTemplatesIsMutable(); - defaultTemplates_.add(value); - onChanged(); - } else { - defaultTemplatesBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier defaultTemplates = 2; - */ - public Builder addDefaultTemplates( - int index, org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier value) { - if (defaultTemplatesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDefaultTemplatesIsMutable(); - defaultTemplates_.add(index, value); - onChanged(); - } else { - defaultTemplatesBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier defaultTemplates = 2; - */ - public Builder addDefaultTemplates( - org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier.Builder builderForValue) { - if (defaultTemplatesBuilder_ == null) { - ensureDefaultTemplatesIsMutable(); - defaultTemplates_.add(builderForValue.build()); - onChanged(); - } else { - defaultTemplatesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier defaultTemplates = 2; - */ - public Builder addDefaultTemplates( - int index, org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier.Builder builderForValue) { - if (defaultTemplatesBuilder_ == null) { - ensureDefaultTemplatesIsMutable(); - defaultTemplates_.add(index, builderForValue.build()); - onChanged(); - } else { - defaultTemplatesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier defaultTemplates = 2; - */ - public Builder addAllDefaultTemplates( - java.lang.Iterable values) { - if (defaultTemplatesBuilder_ == null) { - ensureDefaultTemplatesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, defaultTemplates_); - onChanged(); - } else { - defaultTemplatesBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier defaultTemplates = 2; - */ - public Builder clearDefaultTemplates() { - if (defaultTemplatesBuilder_ == null) { - defaultTemplates_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - defaultTemplatesBuilder_.clear(); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier defaultTemplates = 2; - */ - public Builder removeDefaultTemplates(int index) { - if (defaultTemplatesBuilder_ == null) { - ensureDefaultTemplatesIsMutable(); - defaultTemplates_.remove(index); - onChanged(); - } else { - defaultTemplatesBuilder_.remove(index); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier defaultTemplates = 2; - */ - public org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier.Builder getDefaultTemplatesBuilder( - int index) { - return getDefaultTemplatesFieldBuilder().getBuilder(index); - } - /** - * repeated .sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier defaultTemplates = 2; - */ - public org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifierOrBuilder getDefaultTemplatesOrBuilder( - int index) { - if (defaultTemplatesBuilder_ == null) { - return defaultTemplates_.get(index); } else { - return defaultTemplatesBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier defaultTemplates = 2; - */ - public java.util.List - getDefaultTemplatesOrBuilderList() { - if (defaultTemplatesBuilder_ != null) { - return defaultTemplatesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(defaultTemplates_); - } - } - /** - * repeated .sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier defaultTemplates = 2; - */ - public org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier.Builder addDefaultTemplatesBuilder() { - return getDefaultTemplatesFieldBuilder().addBuilder( - org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier.getDefaultInstance()); - } - /** - * repeated .sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier defaultTemplates = 2; - */ - public org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier.Builder addDefaultTemplatesBuilder( - int index) { - return getDefaultTemplatesFieldBuilder().addBuilder( - index, org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier.getDefaultInstance()); - } - /** - * repeated .sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier defaultTemplates = 2; - */ - public java.util.List - getDefaultTemplatesBuilderList() { - return getDefaultTemplatesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier, org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier.Builder, org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifierOrBuilder> - getDefaultTemplatesFieldBuilder() { - if (defaultTemplatesBuilder_ == null) { - defaultTemplatesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier, org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier.Builder, org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifierOrBuilder>( - defaultTemplates_, - ((bitField0_ & 0x00000002) == 0x00000002), - getParentForChildren(), - isClean()); - defaultTemplates_ = null; - } - return defaultTemplatesBuilder_; - } - - private java.util.List permissions_ = - java.util.Collections.emptyList(); - private void ensurePermissionsIsMutable() { - if (!((bitField0_ & 0x00000004) == 0x00000004)) { - permissions_ = new java.util.ArrayList(permissions_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.Permissions.Permission, org.sonarqube.ws.Permissions.Permission.Builder, org.sonarqube.ws.Permissions.PermissionOrBuilder> permissionsBuilder_; - - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 3; - */ - public java.util.List getPermissionsList() { - if (permissionsBuilder_ == null) { - return java.util.Collections.unmodifiableList(permissions_); - } else { - return permissionsBuilder_.getMessageList(); - } - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 3; - */ - public int getPermissionsCount() { - if (permissionsBuilder_ == null) { - return permissions_.size(); - } else { - return permissionsBuilder_.getCount(); - } - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 3; - */ - public org.sonarqube.ws.Permissions.Permission getPermissions(int index) { - if (permissionsBuilder_ == null) { - return permissions_.get(index); - } else { - return permissionsBuilder_.getMessage(index); - } - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 3; - */ - public Builder setPermissions( - int index, org.sonarqube.ws.Permissions.Permission value) { - if (permissionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePermissionsIsMutable(); - permissions_.set(index, value); - onChanged(); - } else { - permissionsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 3; - */ - public Builder setPermissions( - int index, org.sonarqube.ws.Permissions.Permission.Builder builderForValue) { - if (permissionsBuilder_ == null) { - ensurePermissionsIsMutable(); - permissions_.set(index, builderForValue.build()); - onChanged(); - } else { - permissionsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 3; - */ - public Builder addPermissions(org.sonarqube.ws.Permissions.Permission value) { - if (permissionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePermissionsIsMutable(); - permissions_.add(value); - onChanged(); - } else { - permissionsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 3; - */ - public Builder addPermissions( - int index, org.sonarqube.ws.Permissions.Permission value) { - if (permissionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePermissionsIsMutable(); - permissions_.add(index, value); - onChanged(); - } else { - permissionsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 3; - */ - public Builder addPermissions( - org.sonarqube.ws.Permissions.Permission.Builder builderForValue) { - if (permissionsBuilder_ == null) { - ensurePermissionsIsMutable(); - permissions_.add(builderForValue.build()); - onChanged(); - } else { - permissionsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 3; - */ - public Builder addPermissions( - int index, org.sonarqube.ws.Permissions.Permission.Builder builderForValue) { - if (permissionsBuilder_ == null) { - ensurePermissionsIsMutable(); - permissions_.add(index, builderForValue.build()); - onChanged(); - } else { - permissionsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 3; - */ - public Builder addAllPermissions( - java.lang.Iterable values) { - if (permissionsBuilder_ == null) { - ensurePermissionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, permissions_); - onChanged(); - } else { - permissionsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 3; - */ - public Builder clearPermissions() { - if (permissionsBuilder_ == null) { - permissions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - permissionsBuilder_.clear(); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 3; - */ - public Builder removePermissions(int index) { - if (permissionsBuilder_ == null) { - ensurePermissionsIsMutable(); - permissions_.remove(index); - onChanged(); - } else { - permissionsBuilder_.remove(index); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 3; - */ - public org.sonarqube.ws.Permissions.Permission.Builder getPermissionsBuilder( - int index) { - return getPermissionsFieldBuilder().getBuilder(index); - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 3; - */ - public org.sonarqube.ws.Permissions.PermissionOrBuilder getPermissionsOrBuilder( - int index) { - if (permissionsBuilder_ == null) { - return permissions_.get(index); } else { - return permissionsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 3; - */ - public java.util.List - getPermissionsOrBuilderList() { - if (permissionsBuilder_ != null) { - return permissionsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(permissions_); - } - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 3; - */ - public org.sonarqube.ws.Permissions.Permission.Builder addPermissionsBuilder() { - return getPermissionsFieldBuilder().addBuilder( - org.sonarqube.ws.Permissions.Permission.getDefaultInstance()); - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 3; - */ - public org.sonarqube.ws.Permissions.Permission.Builder addPermissionsBuilder( - int index) { - return getPermissionsFieldBuilder().addBuilder( - index, org.sonarqube.ws.Permissions.Permission.getDefaultInstance()); - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 3; - */ - public java.util.List - getPermissionsBuilderList() { - return getPermissionsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.Permissions.Permission, org.sonarqube.ws.Permissions.Permission.Builder, org.sonarqube.ws.Permissions.PermissionOrBuilder> - getPermissionsFieldBuilder() { - if (permissionsBuilder_ == null) { - permissionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.Permissions.Permission, org.sonarqube.ws.Permissions.Permission.Builder, org.sonarqube.ws.Permissions.PermissionOrBuilder>( - permissions_, - ((bitField0_ & 0x00000004) == 0x00000004), - getParentForChildren(), - isClean()); - permissions_ = null; - } - return permissionsBuilder_; - } - - // @@protoc_insertion_point(builder_scope:sonarqube.ws.permissions.WsSearchTemplatesResponse) - } - - // @@protoc_insertion_point(class_scope:sonarqube.ws.permissions.WsSearchTemplatesResponse) - private static final org.sonarqube.ws.Permissions.WsSearchTemplatesResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonarqube.ws.Permissions.WsSearchTemplatesResponse(); - } - - public static org.sonarqube.ws.Permissions.WsSearchTemplatesResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public WsSearchTemplatesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new WsSearchTemplatesResponse(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonarqube.ws.Permissions.WsSearchTemplatesResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static com.google.protobuf.Descriptors.Descriptor - internal_static_sonarqube_ws_permissions_WsUsersResponse_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_sonarqube_ws_permissions_WsUsersResponse_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_sonarqube_ws_permissions_WsUsersResponse_User_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_sonarqube_ws_permissions_WsUsersResponse_User_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_sonarqube_ws_permissions_WsGroupsResponse_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_sonarqube_ws_permissions_WsGroupsResponse_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_sonarqube_ws_permissions_WsGroupsResponse_Group_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_sonarqube_ws_permissions_WsGroupsResponse_Group_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_sonarqube_ws_permissions_Permission_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_sonarqube_ws_permissions_Permission_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_sonarqube_ws_permissions_WsSearchGlobalPermissionsResponse_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_sonarqube_ws_permissions_WsSearchGlobalPermissionsResponse_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_sonarqube_ws_permissions_WsSearchProjectPermissionsResponse_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_sonarqube_ws_permissions_WsSearchProjectPermissionsResponse_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_sonarqube_ws_permissions_WsSearchProjectPermissionsResponse_Project_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_sonarqube_ws_permissions_WsSearchProjectPermissionsResponse_Project_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_sonarqube_ws_permissions_PermissionTemplate_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_sonarqube_ws_permissions_PermissionTemplate_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_sonarqube_ws_permissions_WsCreatePermissionTemplateResponse_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_sonarqube_ws_permissions_WsCreatePermissionTemplateResponse_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_sonarqube_ws_permissions_WsUpdatePermissionTemplateResponse_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_sonarqube_ws_permissions_WsUpdatePermissionTemplateResponse_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_sonarqube_ws_permissions_WsSearchTemplatesResponse_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_sonarqube_ws_permissions_WsSearchTemplatesResponse_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_sonarqube_ws_permissions_WsSearchTemplatesResponse_TemplateIdQualifier_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_sonarqube_ws_permissions_WsSearchTemplatesResponse_TemplateIdQualifier_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\024ws-permissions.proto\022\030sonarqube.ws.per" + - "missions\032\020ws-commons.proto\"\304\001\n\017WsUsersRe" + - "sponse\022,\n\006paging\030\001 \001(\0132\034.sonarqube.ws.co" + - "mmons.Paging\022=\n\005users\030\002 \003(\0132..sonarqube." + - "ws.permissions.WsUsersResponse.User\032D\n\004U" + - "ser\022\r\n\005login\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\022\r\n\005emai" + - "l\030\003 \001(\t\022\020\n\010selected\030\004 \001(\010\"\314\001\n\020WsGroupsRe" + - "sponse\022,\n\006paging\030\001 \001(\0132\034.sonarqube.ws.co" + - "mmons.Paging\022@\n\006groups\030\002 \003(\01320.sonarqube" + - ".ws.permissions.WsGroupsResponse.Group\032H", - "\n\005Group\022\n\n\002id\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\022\023\n\013des" + - "cription\030\003 \001(\t\022\020\n\010selected\030\004 \001(\010\"e\n\nPerm" + - "ission\022\013\n\003key\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\022\023\n\013des" + - "cription\030\003 \001(\t\022\022\n\nusersCount\030\004 \001(\005\022\023\n\013gr" + - "oupsCount\030\005 \001(\005\"^\n!WsSearchGlobalPermiss" + - "ionsResponse\0229\n\013permissions\030\001 \003(\0132$.sona" + - "rqube.ws.permissions.Permission\"\345\002\n\"WsSe" + - "archProjectPermissionsResponse\022,\n\006paging" + - "\030\001 \001(\0132\034.sonarqube.ws.commons.Paging\022V\n\010" + - "projects\030\002 \003(\0132D.sonarqube.ws.permission", - "s.WsSearchProjectPermissionsResponse.Pro" + - "ject\0229\n\013permissions\030\003 \003(\0132$.sonarqube.ws" + - ".permissions.Permission\032~\n\007Project\022\n\n\002id" + - "\030\001 \001(\t\022\013\n\003key\030\002 \001(\t\022\021\n\tqualifier\030\003 \001(\t\022\014" + - "\n\004name\030\004 \001(\t\0229\n\013permissions\030\005 \003(\0132$.sona" + - "rqube.ws.permissions.Permission\"\342\001\n\022Perm" + - "issionTemplate\022\n\n\002id\030\001 \001(\t\022\014\n\004name\030\002 \001(\t" + - "\022\023\n\013description\030\003 \001(\t\022\031\n\021projectKeyPatte" + - "rn\030\004 \001(\t\022\021\n\tcreatedAt\030\005 \001(\t\022\021\n\tupdatedAt" + - "\030\006 \001(\t\022!\n\031permissionsPresentIfEmpty\030\007 \001(", - "\010\0229\n\013permissions\030\010 \003(\0132$.sonarqube.ws.pe" + - "rmissions.Permission\"n\n\"WsCreatePermissi" + - "onTemplateResponse\022H\n\022permissionTemplate" + - "\030\001 \001(\0132,.sonarqube.ws.permissions.Permis" + - "sionTemplate\"n\n\"WsUpdatePermissionTempla" + - "teResponse\022H\n\022permissionTemplate\030\001 \001(\0132," + - ".sonarqube.ws.permissions.PermissionTemp" + - "late\"\302\002\n\031WsSearchTemplatesResponse\022I\n\023pe" + - "rmissionTemplates\030\001 \003(\0132,.sonarqube.ws.p" + - "ermissions.PermissionTemplate\022a\n\020default", - "Templates\030\002 \003(\0132G.sonarqube.ws.permissio" + - "ns.WsSearchTemplatesResponse.TemplateIdQ" + - "ualifier\0229\n\013permissions\030\003 \003(\0132$.sonarqub" + - "e.ws.permissions.Permission\032<\n\023TemplateI" + - "dQualifier\022\022\n\ntemplateId\030\001 \001(\t\022\021\n\tqualif" + - "ier\030\002 \001(\tB!\n\020org.sonarqube.wsB\013Permissio" + - "nsH\001" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - org.sonarqube.ws.Common.getDescriptor(), - }, assigner); - internal_static_sonarqube_ws_permissions_WsUsersResponse_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_sonarqube_ws_permissions_WsUsersResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_sonarqube_ws_permissions_WsUsersResponse_descriptor, - new java.lang.String[] { "Paging", "Users", }); - internal_static_sonarqube_ws_permissions_WsUsersResponse_User_descriptor = - internal_static_sonarqube_ws_permissions_WsUsersResponse_descriptor.getNestedTypes().get(0); - internal_static_sonarqube_ws_permissions_WsUsersResponse_User_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_sonarqube_ws_permissions_WsUsersResponse_User_descriptor, - new java.lang.String[] { "Login", "Name", "Email", "Selected", }); - internal_static_sonarqube_ws_permissions_WsGroupsResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_sonarqube_ws_permissions_WsGroupsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_sonarqube_ws_permissions_WsGroupsResponse_descriptor, - new java.lang.String[] { "Paging", "Groups", }); - internal_static_sonarqube_ws_permissions_WsGroupsResponse_Group_descriptor = - internal_static_sonarqube_ws_permissions_WsGroupsResponse_descriptor.getNestedTypes().get(0); - internal_static_sonarqube_ws_permissions_WsGroupsResponse_Group_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_sonarqube_ws_permissions_WsGroupsResponse_Group_descriptor, - new java.lang.String[] { "Id", "Name", "Description", "Selected", }); - internal_static_sonarqube_ws_permissions_Permission_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_sonarqube_ws_permissions_Permission_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_sonarqube_ws_permissions_Permission_descriptor, - new java.lang.String[] { "Key", "Name", "Description", "UsersCount", "GroupsCount", }); - internal_static_sonarqube_ws_permissions_WsSearchGlobalPermissionsResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_sonarqube_ws_permissions_WsSearchGlobalPermissionsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_sonarqube_ws_permissions_WsSearchGlobalPermissionsResponse_descriptor, - new java.lang.String[] { "Permissions", }); - internal_static_sonarqube_ws_permissions_WsSearchProjectPermissionsResponse_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_sonarqube_ws_permissions_WsSearchProjectPermissionsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_sonarqube_ws_permissions_WsSearchProjectPermissionsResponse_descriptor, - new java.lang.String[] { "Paging", "Projects", "Permissions", }); - internal_static_sonarqube_ws_permissions_WsSearchProjectPermissionsResponse_Project_descriptor = - internal_static_sonarqube_ws_permissions_WsSearchProjectPermissionsResponse_descriptor.getNestedTypes().get(0); - internal_static_sonarqube_ws_permissions_WsSearchProjectPermissionsResponse_Project_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_sonarqube_ws_permissions_WsSearchProjectPermissionsResponse_Project_descriptor, - new java.lang.String[] { "Id", "Key", "Qualifier", "Name", "Permissions", }); - internal_static_sonarqube_ws_permissions_PermissionTemplate_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_sonarqube_ws_permissions_PermissionTemplate_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_sonarqube_ws_permissions_PermissionTemplate_descriptor, - new java.lang.String[] { "Id", "Name", "Description", "ProjectKeyPattern", "CreatedAt", "UpdatedAt", "PermissionsPresentIfEmpty", "Permissions", }); - internal_static_sonarqube_ws_permissions_WsCreatePermissionTemplateResponse_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_sonarqube_ws_permissions_WsCreatePermissionTemplateResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_sonarqube_ws_permissions_WsCreatePermissionTemplateResponse_descriptor, - new java.lang.String[] { "PermissionTemplate", }); - internal_static_sonarqube_ws_permissions_WsUpdatePermissionTemplateResponse_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_sonarqube_ws_permissions_WsUpdatePermissionTemplateResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_sonarqube_ws_permissions_WsUpdatePermissionTemplateResponse_descriptor, - new java.lang.String[] { "PermissionTemplate", }); - internal_static_sonarqube_ws_permissions_WsSearchTemplatesResponse_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_sonarqube_ws_permissions_WsSearchTemplatesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_sonarqube_ws_permissions_WsSearchTemplatesResponse_descriptor, - new java.lang.String[] { "PermissionTemplates", "DefaultTemplates", "Permissions", }); - internal_static_sonarqube_ws_permissions_WsSearchTemplatesResponse_TemplateIdQualifier_descriptor = - internal_static_sonarqube_ws_permissions_WsSearchTemplatesResponse_descriptor.getNestedTypes().get(0); - internal_static_sonarqube_ws_permissions_WsSearchTemplatesResponse_TemplateIdQualifier_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_sonarqube_ws_permissions_WsSearchTemplatesResponse_TemplateIdQualifier_descriptor, - new java.lang.String[] { "TemplateId", "Qualifier", }); - org.sonarqube.ws.Common.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/sonar-ws/src/main/protobuf/ws-commons.proto b/sonar-ws/src/main/protobuf/ws-commons.proto index 78a2705d3ff..58b57986c78 100644 --- a/sonar-ws/src/main/protobuf/ws-commons.proto +++ b/sonar-ws/src/main/protobuf/ws-commons.proto @@ -36,6 +36,10 @@ message Facet { repeated FacetValue values = 2; } +message Facets { + repeated Facet facets = 1; +} + message FacetValue { optional string val = 1; optional int64 count = 2; @@ -57,6 +61,10 @@ message Rule { optional string langName = 5; } +message Rules { + repeated Rule rules = 1; +} + enum RuleStatus { BETA = 0; DEPRECATED = 1; @@ -71,6 +79,10 @@ message User { optional bool active = 4; } +message Users { + repeated User users = 1; +} + // Lines start at 1 and line offsets start at 0 message TextRange { // Start line. Should never be absent diff --git a/sonar-ws/src/main/protobuf/ws-issues.proto b/sonar-ws/src/main/protobuf/ws-issues.proto index c2a6a3d1267..96315eef2c1 100644 --- a/sonar-ws/src/main/protobuf/ws-issues.proto +++ b/sonar-ws/src/main/protobuf/ws-issues.proto @@ -38,16 +38,11 @@ message Search { repeated Issue issues = 6; repeated Component components = 7; - optional bool rulesPresentIfEmpty = 8; - repeated sonarqube.ws.commons.Rule rules = 9; - optional bool usersPresentIfEmpty = 10; - repeated sonarqube.ws.commons.User users = 11; - optional bool actionPlansPresentIfEmpty = 12; - repeated ActionPlan actionPlans = 13; - optional bool languagesPresentIfEmpty = 14; - repeated Language languages = 15; - optional bool facetsPresentIfEmpty = 16; - repeated sonarqube.ws.commons.Facet facets = 17; + optional sonarqube.ws.commons.Rules rules = 8; + optional sonarqube.ws.commons.Users users = 9; + optional ActionPlans actionPlans = 10; + optional Languages languages = 11; + optional sonarqube.ws.commons.Facets facets = 12; } // Response of most of POST/issues/{operation}, for instance assign, add_comment and set_severity @@ -82,23 +77,27 @@ message Issue { optional string author = 17; optional string actionPlan = 18; - optional bool tagsPresentIfEmpty = 19; - repeated string tags = 20; + repeated string tags = 19; // the transitions allowed for the requesting user. - optional bool transitionsPresentIfEmpty = 21; - repeated string transitions = 22; + optional Transitions transitions = 20; // the actions allowed for the requesting user. - optional bool actionsPresentIfEmpty = 23; - repeated string actions = 24; - - optional bool commentsPresentIfEmpty = 25; - repeated Comment comments = 26; - optional string creationDate = 27; - optional string updateDate = 28; - optional string fUpdateAge = 29; - optional string closeDate = 30; + optional Actions actions = 21; + + optional Comments comments = 22; + optional string creationDate = 23; + optional string updateDate = 24; + optional string fUpdateAge = 25; + optional string closeDate = 26; +} + +message Transitions { + repeated string transitions = 1; +} + +message Actions { + repeated string actions = 1; } message Flow { @@ -126,6 +125,10 @@ message Comment { optional string createdAt = 8; } +message Comments { + repeated Comment comments = 1; +} + message ActionPlan { optional string key = 1; optional string name = 2; @@ -137,11 +140,19 @@ message ActionPlan { optional string project = 5; } +message ActionPlans { + repeated ActionPlan actionPlans = 1; +} + message Language { optional string key = 1; optional string name = 2; } +message Languages { + repeated Language languages = 1; +} + message Component { optional int64 id = 1; optional string key = 2; diff --git a/sonar-ws/src/main/protobuf/ws-permissions.proto b/sonar-ws/src/main/protobuf/ws-permissions.proto index 86b87c314f0..11c0114af4f 100644 --- a/sonar-ws/src/main/protobuf/ws-permissions.proto +++ b/sonar-ws/src/main/protobuf/ws-permissions.proto @@ -24,7 +24,7 @@ import "ws-commons.proto"; option java_package = "org.sonarqube.ws"; -option java_outer_classname = "Permissions"; +option java_outer_classname = "WsPermissions"; option optimize_for = SPEED; @@ -91,8 +91,7 @@ message PermissionTemplate { optional string createdAt = 5; // ex: 2015-08-25T16:18:48+0200 optional string updatedAt = 6; - optional bool permissionsPresentIfEmpty = 7; - repeated Permission permissions = 8; + repeated Permission permissions = 7; } message WsCreatePermissionTemplateResponse { -- 2.39.5