aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-batch-protocol
diff options
context:
space:
mode:
authorJulien HENRY <julien.henry@sonarsource.com>2015-02-25 14:04:39 +0100
committerJulien HENRY <julien.henry@sonarsource.com>2015-02-25 14:04:39 +0100
commit908b9d0b5b9c21fabd10d697a5466bcc12d80d83 (patch)
treee95396347367ae8e3e6ea8336aad505f91214ee8 /sonar-batch-protocol
parent3414d95ee371418e1e0e45b62f5538a401c33a53 (diff)
downloadsonarqube-908b9d0b5b9c21fabd10d697a5466bcc12d80d83.tar.gz
sonarqube-908b9d0b5b9c21fabd10d697a5466bcc12d80d83.zip
SONAR-5927, SONAR-6012 Rework incremental preview mode to speedup issue retrieval
Diffstat (limited to 'sonar-batch-protocol')
-rwxr-xr-x[-rw-r--r--]sonar-batch-protocol/compile_protobuf.sh0
-rw-r--r--sonar-batch-protocol/src/main/gen-java/org/sonar/batch/protocol/Constants.java14
-rw-r--r--sonar-batch-protocol/src/main/gen-java/org/sonar/batch/protocol/input/BatchInput.java2444
-rw-r--r--sonar-batch-protocol/src/main/gen-java/org/sonar/batch/protocol/output/BatchReport.java506
-rw-r--r--sonar-batch-protocol/src/main/gen-java/org/sonar/server/source/db/FileSourceDb.java198
-rw-r--r--sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/input/issues/PreviousIssue.java158
-rw-r--r--sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/input/issues/PreviousIssueHelper.java129
-rw-r--r--sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/input/issues/package-info.java24
-rw-r--r--sonar-batch-protocol/src/main/protobuf/batch_input.proto56
-rw-r--r--sonar-batch-protocol/src/test/java/org/sonar/batch/protocol/input/issues/PreviousIssueHelperTest.java108
10 files changed, 2885 insertions, 752 deletions
diff --git a/sonar-batch-protocol/compile_protobuf.sh b/sonar-batch-protocol/compile_protobuf.sh
index f2d14c4eebc..f2d14c4eebc 100644..100755
--- a/sonar-batch-protocol/compile_protobuf.sh
+++ b/sonar-batch-protocol/compile_protobuf.sh
diff --git a/sonar-batch-protocol/src/main/gen-java/org/sonar/batch/protocol/Constants.java b/sonar-batch-protocol/src/main/gen-java/org/sonar/batch/protocol/Constants.java
index f9cd2f3ea34..bc9d704a4f2 100644
--- a/sonar-batch-protocol/src/main/gen-java/org/sonar/batch/protocol/Constants.java
+++ b/sonar-batch-protocol/src/main/gen-java/org/sonar/batch/protocol/Constants.java
@@ -252,13 +252,13 @@ public final class Constants {
"otocolH\001"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
- new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
- public com.google.protobuf.ExtensionRegistry assignDescriptors(
- com.google.protobuf.Descriptors.FileDescriptor root) {
- descriptor = root;
- return null;
- }
- };
+ new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
+ public com.google.protobuf.ExtensionRegistry assignDescriptors(
+ com.google.protobuf.Descriptors.FileDescriptor root) {
+ descriptor = root;
+ return null;
+ }
+ };
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
diff --git a/sonar-batch-protocol/src/main/gen-java/org/sonar/batch/protocol/input/BatchInput.java b/sonar-batch-protocol/src/main/gen-java/org/sonar/batch/protocol/input/BatchInput.java
new file mode 100644
index 00000000000..5e35e980038
--- /dev/null
+++ b/sonar-batch-protocol/src/main/gen-java/org/sonar/batch/protocol/input/BatchInput.java
@@ -0,0 +1,2444 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: batch_input.proto
+
+package org.sonar.batch.protocol.input;
+
+public final class BatchInput {
+ private BatchInput() {
+ }
+
+ public static void registerAllExtensions(
+ com.google.protobuf.ExtensionRegistry registry) {
+ }
+
+ public interface ServerIssueOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:ServerIssue)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * <code>optional string key = 1;</code>
+ */
+ boolean hasKey();
+
+ /**
+ * <code>optional string key = 1;</code>
+ */
+ java.lang.String getKey();
+
+ /**
+ * <code>optional string key = 1;</code>
+ */
+ com.google.protobuf.ByteString
+ getKeyBytes();
+
+ /**
+ * <code>optional string module_key = 2;</code>
+ */
+ boolean hasModuleKey();
+
+ /**
+ * <code>optional string module_key = 2;</code>
+ */
+ java.lang.String getModuleKey();
+
+ /**
+ * <code>optional string module_key = 2;</code>
+ */
+ com.google.protobuf.ByteString
+ getModuleKeyBytes();
+
+ /**
+ * <code>optional string path = 3;</code>
+ */
+ boolean hasPath();
+
+ /**
+ * <code>optional string path = 3;</code>
+ */
+ java.lang.String getPath();
+
+ /**
+ * <code>optional string path = 3;</code>
+ */
+ com.google.protobuf.ByteString
+ getPathBytes();
+
+ /**
+ * <code>optional string rule_repository = 4;</code>
+ */
+ boolean hasRuleRepository();
+
+ /**
+ * <code>optional string rule_repository = 4;</code>
+ */
+ java.lang.String getRuleRepository();
+
+ /**
+ * <code>optional string rule_repository = 4;</code>
+ */
+ com.google.protobuf.ByteString
+ getRuleRepositoryBytes();
+
+ /**
+ * <code>optional string rule_key = 5;</code>
+ */
+ boolean hasRuleKey();
+
+ /**
+ * <code>optional string rule_key = 5;</code>
+ */
+ java.lang.String getRuleKey();
+
+ /**
+ * <code>optional string rule_key = 5;</code>
+ */
+ com.google.protobuf.ByteString
+ getRuleKeyBytes();
+
+ /**
+ * <code>optional int32 line = 6;</code>
+ */
+ boolean hasLine();
+
+ /**
+ * <code>optional int32 line = 6;</code>
+ */
+ int getLine();
+
+ /**
+ * <code>optional string msg = 7;</code>
+ */
+ boolean hasMsg();
+
+ /**
+ * <code>optional string msg = 7;</code>
+ */
+ java.lang.String getMsg();
+
+ /**
+ * <code>optional string msg = 7;</code>
+ */
+ com.google.protobuf.ByteString
+ getMsgBytes();
+
+ /**
+ * <code>optional .Severity severity = 8;</code>
+ */
+ boolean hasSeverity();
+
+ /**
+ * <code>optional .Severity severity = 8;</code>
+ */
+ org.sonar.batch.protocol.Constants.Severity getSeverity();
+
+ /**
+ * <code>optional bool manual_severity = 9;</code>
+ */
+ boolean hasManualSeverity();
+
+ /**
+ * <code>optional bool manual_severity = 9;</code>
+ */
+ boolean getManualSeverity();
+
+ /**
+ * <code>optional string resolution = 10;</code>
+ */
+ boolean hasResolution();
+
+ /**
+ * <code>optional string resolution = 10;</code>
+ */
+ java.lang.String getResolution();
+
+ /**
+ * <code>optional string resolution = 10;</code>
+ */
+ com.google.protobuf.ByteString
+ getResolutionBytes();
+
+ /**
+ * <code>optional string status = 11;</code>
+ */
+ boolean hasStatus();
+
+ /**
+ * <code>optional string status = 11;</code>
+ */
+ java.lang.String getStatus();
+
+ /**
+ * <code>optional string status = 11;</code>
+ */
+ com.google.protobuf.ByteString
+ getStatusBytes();
+
+ /**
+ * <code>optional string checksum = 12;</code>
+ */
+ boolean hasChecksum();
+
+ /**
+ * <code>optional string checksum = 12;</code>
+ */
+ java.lang.String getChecksum();
+
+ /**
+ * <code>optional string checksum = 12;</code>
+ */
+ com.google.protobuf.ByteString
+ getChecksumBytes();
+
+ /**
+ * <code>optional string assignee_login = 13;</code>
+ */
+ boolean hasAssigneeLogin();
+
+ /**
+ * <code>optional string assignee_login = 13;</code>
+ */
+ java.lang.String getAssigneeLogin();
+
+ /**
+ * <code>optional string assignee_login = 13;</code>
+ */
+ com.google.protobuf.ByteString
+ getAssigneeLoginBytes();
+
+ /**
+ * <code>optional int64 creation_date = 14;</code>
+ */
+ boolean hasCreationDate();
+
+ /**
+ * <code>optional int64 creation_date = 14;</code>
+ */
+ long getCreationDate();
+ }
+ /**
+ * Protobuf type {@code ServerIssue}
+ */
+ public static final class ServerIssue extends
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:ServerIssue)
+ ServerIssueOrBuilder {
+ // Use ServerIssue.newBuilder() to construct.
+ private ServerIssue(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ super(builder);
+ this.unknownFields = builder.getUnknownFields();
+ }
+
+ private ServerIssue(boolean noInit) {
+ this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance();
+ }
+
+ private static final ServerIssue defaultInstance;
+
+ public static ServerIssue getDefaultInstance() {
+ return defaultInstance;
+ }
+
+ public ServerIssue getDefaultInstanceForType() {
+ return defaultInstance;
+ }
+
+ private final com.google.protobuf.UnknownFieldSet unknownFields;
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private ServerIssue(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ initFields();
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!parseUnknownField(input, unknownFields,
+ extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 10: {
+ com.google.protobuf.ByteString bs = input.readBytes();
+ bitField0_ |= 0x00000001;
+ key_ = bs;
+ break;
+ }
+ case 18: {
+ com.google.protobuf.ByteString bs = input.readBytes();
+ bitField0_ |= 0x00000002;
+ moduleKey_ = bs;
+ break;
+ }
+ case 26: {
+ com.google.protobuf.ByteString bs = input.readBytes();
+ bitField0_ |= 0x00000004;
+ path_ = bs;
+ break;
+ }
+ case 34: {
+ com.google.protobuf.ByteString bs = input.readBytes();
+ bitField0_ |= 0x00000008;
+ ruleRepository_ = bs;
+ break;
+ }
+ case 42: {
+ com.google.protobuf.ByteString bs = input.readBytes();
+ bitField0_ |= 0x00000010;
+ ruleKey_ = bs;
+ break;
+ }
+ case 48: {
+ bitField0_ |= 0x00000020;
+ line_ = input.readInt32();
+ break;
+ }
+ case 58: {
+ com.google.protobuf.ByteString bs = input.readBytes();
+ bitField0_ |= 0x00000040;
+ msg_ = bs;
+ break;
+ }
+ case 64: {
+ int rawValue = input.readEnum();
+ org.sonar.batch.protocol.Constants.Severity value = org.sonar.batch.protocol.Constants.Severity.valueOf(rawValue);
+ if (value == null) {
+ unknownFields.mergeVarintField(8, rawValue);
+ } else {
+ bitField0_ |= 0x00000080;
+ severity_ = value;
+ }
+ break;
+ }
+ case 72: {
+ bitField0_ |= 0x00000100;
+ manualSeverity_ = input.readBool();
+ break;
+ }
+ case 82: {
+ com.google.protobuf.ByteString bs = input.readBytes();
+ bitField0_ |= 0x00000200;
+ resolution_ = bs;
+ break;
+ }
+ case 90: {
+ com.google.protobuf.ByteString bs = input.readBytes();
+ bitField0_ |= 0x00000400;
+ status_ = bs;
+ break;
+ }
+ case 98: {
+ com.google.protobuf.ByteString bs = input.readBytes();
+ bitField0_ |= 0x00000800;
+ checksum_ = bs;
+ break;
+ }
+ case 106: {
+ com.google.protobuf.ByteString bs = input.readBytes();
+ bitField0_ |= 0x00001000;
+ assigneeLogin_ = bs;
+ break;
+ }
+ case 112: {
+ bitField0_ |= 0x00002000;
+ creationDate_ = input.readInt64();
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e.getMessage()).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.sonar.batch.protocol.input.BatchInput.internal_static_ServerIssue_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.sonar.batch.protocol.input.BatchInput.internal_static_ServerIssue_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.sonar.batch.protocol.input.BatchInput.ServerIssue.class, org.sonar.batch.protocol.input.BatchInput.ServerIssue.Builder.class);
+ }
+
+ public static com.google.protobuf.Parser<ServerIssue> PARSER =
+ new com.google.protobuf.AbstractParser<ServerIssue>() {
+ public ServerIssue parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new ServerIssue(input, extensionRegistry);
+ }
+ };
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<ServerIssue> getParserForType() {
+ return PARSER;
+ }
+
+ private int bitField0_;
+ public static final int KEY_FIELD_NUMBER = 1;
+ private java.lang.Object key_;
+
+ /**
+ * <code>optional string key = 1;</code>
+ */
+ public boolean hasKey() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+
+ /**
+ * <code>optional string key = 1;</code>
+ */
+ 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;
+ }
+ }
+
+ /**
+ * <code>optional string key = 1;</code>
+ */
+ 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 MODULE_KEY_FIELD_NUMBER = 2;
+ private java.lang.Object moduleKey_;
+
+ /**
+ * <code>optional string module_key = 2;</code>
+ */
+ public boolean hasModuleKey() {
+ return ((bitField0_ & 0x00000002) == 0x00000002);
+ }
+
+ /**
+ * <code>optional string module_key = 2;</code>
+ */
+ public java.lang.String getModuleKey() {
+ java.lang.Object ref = moduleKey_;
+ 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()) {
+ moduleKey_ = s;
+ }
+ return s;
+ }
+ }
+
+ /**
+ * <code>optional string module_key = 2;</code>
+ */
+ public com.google.protobuf.ByteString
+ getModuleKeyBytes() {
+ java.lang.Object ref = moduleKey_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ moduleKey_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int PATH_FIELD_NUMBER = 3;
+ private java.lang.Object path_;
+
+ /**
+ * <code>optional string path = 3;</code>
+ */
+ public boolean hasPath() {
+ return ((bitField0_ & 0x00000004) == 0x00000004);
+ }
+
+ /**
+ * <code>optional string path = 3;</code>
+ */
+ public java.lang.String getPath() {
+ java.lang.Object ref = path_;
+ 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()) {
+ path_ = s;
+ }
+ return s;
+ }
+ }
+
+ /**
+ * <code>optional string path = 3;</code>
+ */
+ public com.google.protobuf.ByteString
+ getPathBytes() {
+ java.lang.Object ref = path_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ path_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int RULE_REPOSITORY_FIELD_NUMBER = 4;
+ private java.lang.Object ruleRepository_;
+
+ /**
+ * <code>optional string rule_repository = 4;</code>
+ */
+ public boolean hasRuleRepository() {
+ return ((bitField0_ & 0x00000008) == 0x00000008);
+ }
+
+ /**
+ * <code>optional string rule_repository = 4;</code>
+ */
+ public java.lang.String getRuleRepository() {
+ java.lang.Object ref = ruleRepository_;
+ 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()) {
+ ruleRepository_ = s;
+ }
+ return s;
+ }
+ }
+
+ /**
+ * <code>optional string rule_repository = 4;</code>
+ */
+ public com.google.protobuf.ByteString
+ getRuleRepositoryBytes() {
+ java.lang.Object ref = ruleRepository_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ ruleRepository_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int RULE_KEY_FIELD_NUMBER = 5;
+ private java.lang.Object ruleKey_;
+
+ /**
+ * <code>optional string rule_key = 5;</code>
+ */
+ public boolean hasRuleKey() {
+ return ((bitField0_ & 0x00000010) == 0x00000010);
+ }
+
+ /**
+ * <code>optional string rule_key = 5;</code>
+ */
+ public java.lang.String getRuleKey() {
+ java.lang.Object ref = ruleKey_;
+ 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()) {
+ ruleKey_ = s;
+ }
+ return s;
+ }
+ }
+
+ /**
+ * <code>optional string rule_key = 5;</code>
+ */
+ public com.google.protobuf.ByteString
+ getRuleKeyBytes() {
+ java.lang.Object ref = ruleKey_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ ruleKey_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int LINE_FIELD_NUMBER = 6;
+ private int line_;
+
+ /**
+ * <code>optional int32 line = 6;</code>
+ */
+ public boolean hasLine() {
+ return ((bitField0_ & 0x00000020) == 0x00000020);
+ }
+
+ /**
+ * <code>optional int32 line = 6;</code>
+ */
+ public int getLine() {
+ return line_;
+ }
+
+ public static final int MSG_FIELD_NUMBER = 7;
+ private java.lang.Object msg_;
+
+ /**
+ * <code>optional string msg = 7;</code>
+ */
+ public boolean hasMsg() {
+ return ((bitField0_ & 0x00000040) == 0x00000040);
+ }
+
+ /**
+ * <code>optional string msg = 7;</code>
+ */
+ 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;
+ }
+ }
+
+ /**
+ * <code>optional string msg = 7;</code>
+ */
+ 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 static final int SEVERITY_FIELD_NUMBER = 8;
+ private org.sonar.batch.protocol.Constants.Severity severity_;
+
+ /**
+ * <code>optional .Severity severity = 8;</code>
+ */
+ public boolean hasSeverity() {
+ return ((bitField0_ & 0x00000080) == 0x00000080);
+ }
+
+ /**
+ * <code>optional .Severity severity = 8;</code>
+ */
+ public org.sonar.batch.protocol.Constants.Severity getSeverity() {
+ return severity_;
+ }
+
+ public static final int MANUAL_SEVERITY_FIELD_NUMBER = 9;
+ private boolean manualSeverity_;
+
+ /**
+ * <code>optional bool manual_severity = 9;</code>
+ */
+ public boolean hasManualSeverity() {
+ return ((bitField0_ & 0x00000100) == 0x00000100);
+ }
+
+ /**
+ * <code>optional bool manual_severity = 9;</code>
+ */
+ public boolean getManualSeverity() {
+ return manualSeverity_;
+ }
+
+ public static final int RESOLUTION_FIELD_NUMBER = 10;
+ private java.lang.Object resolution_;
+
+ /**
+ * <code>optional string resolution = 10;</code>
+ */
+ public boolean hasResolution() {
+ return ((bitField0_ & 0x00000200) == 0x00000200);
+ }
+
+ /**
+ * <code>optional string resolution = 10;</code>
+ */
+ 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;
+ }
+ }
+
+ /**
+ * <code>optional string resolution = 10;</code>
+ */
+ 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 = 11;
+ private java.lang.Object status_;
+
+ /**
+ * <code>optional string status = 11;</code>
+ */
+ public boolean hasStatus() {
+ return ((bitField0_ & 0x00000400) == 0x00000400);
+ }
+
+ /**
+ * <code>optional string status = 11;</code>
+ */
+ 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;
+ }
+ }
+
+ /**
+ * <code>optional string status = 11;</code>
+ */
+ 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 CHECKSUM_FIELD_NUMBER = 12;
+ private java.lang.Object checksum_;
+
+ /**
+ * <code>optional string checksum = 12;</code>
+ */
+ public boolean hasChecksum() {
+ return ((bitField0_ & 0x00000800) == 0x00000800);
+ }
+
+ /**
+ * <code>optional string checksum = 12;</code>
+ */
+ public java.lang.String getChecksum() {
+ java.lang.Object ref = checksum_;
+ 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()) {
+ checksum_ = s;
+ }
+ return s;
+ }
+ }
+
+ /**
+ * <code>optional string checksum = 12;</code>
+ */
+ public com.google.protobuf.ByteString
+ getChecksumBytes() {
+ java.lang.Object ref = checksum_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ checksum_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int ASSIGNEE_LOGIN_FIELD_NUMBER = 13;
+ private java.lang.Object assigneeLogin_;
+
+ /**
+ * <code>optional string assignee_login = 13;</code>
+ */
+ public boolean hasAssigneeLogin() {
+ return ((bitField0_ & 0x00001000) == 0x00001000);
+ }
+
+ /**
+ * <code>optional string assignee_login = 13;</code>
+ */
+ public java.lang.String getAssigneeLogin() {
+ java.lang.Object ref = assigneeLogin_;
+ 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()) {
+ assigneeLogin_ = s;
+ }
+ return s;
+ }
+ }
+
+ /**
+ * <code>optional string assignee_login = 13;</code>
+ */
+ public com.google.protobuf.ByteString
+ getAssigneeLoginBytes() {
+ java.lang.Object ref = assigneeLogin_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ assigneeLogin_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int CREATION_DATE_FIELD_NUMBER = 14;
+ private long creationDate_;
+
+ /**
+ * <code>optional int64 creation_date = 14;</code>
+ */
+ public boolean hasCreationDate() {
+ return ((bitField0_ & 0x00002000) == 0x00002000);
+ }
+
+ /**
+ * <code>optional int64 creation_date = 14;</code>
+ */
+ public long getCreationDate() {
+ return creationDate_;
+ }
+
+ private void initFields() {
+ key_ = "";
+ moduleKey_ = "";
+ path_ = "";
+ ruleRepository_ = "";
+ ruleKey_ = "";
+ line_ = 0;
+ msg_ = "";
+ severity_ = org.sonar.batch.protocol.Constants.Severity.INFO;
+ manualSeverity_ = false;
+ resolution_ = "";
+ status_ = "";
+ checksum_ = "";
+ assigneeLogin_ = "";
+ creationDate_ = 0L;
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1)
+ return true;
+ if (isInitialized == 0)
+ return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ getSerializedSize();
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ output.writeBytes(1, getKeyBytes());
+ }
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ output.writeBytes(2, getModuleKeyBytes());
+ }
+ if (((bitField0_ & 0x00000004) == 0x00000004)) {
+ output.writeBytes(3, getPathBytes());
+ }
+ if (((bitField0_ & 0x00000008) == 0x00000008)) {
+ output.writeBytes(4, getRuleRepositoryBytes());
+ }
+ if (((bitField0_ & 0x00000010) == 0x00000010)) {
+ output.writeBytes(5, getRuleKeyBytes());
+ }
+ if (((bitField0_ & 0x00000020) == 0x00000020)) {
+ output.writeInt32(6, line_);
+ }
+ if (((bitField0_ & 0x00000040) == 0x00000040)) {
+ output.writeBytes(7, getMsgBytes());
+ }
+ if (((bitField0_ & 0x00000080) == 0x00000080)) {
+ output.writeEnum(8, severity_.getNumber());
+ }
+ if (((bitField0_ & 0x00000100) == 0x00000100)) {
+ output.writeBool(9, manualSeverity_);
+ }
+ if (((bitField0_ & 0x00000200) == 0x00000200)) {
+ output.writeBytes(10, getResolutionBytes());
+ }
+ if (((bitField0_ & 0x00000400) == 0x00000400)) {
+ output.writeBytes(11, getStatusBytes());
+ }
+ if (((bitField0_ & 0x00000800) == 0x00000800)) {
+ output.writeBytes(12, getChecksumBytes());
+ }
+ if (((bitField0_ & 0x00001000) == 0x00001000)) {
+ output.writeBytes(13, getAssigneeLoginBytes());
+ }
+ if (((bitField0_ & 0x00002000) == 0x00002000)) {
+ output.writeInt64(14, creationDate_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ private int memoizedSerializedSize = -1;
+
+ public int getSerializedSize() {
+ int size = memoizedSerializedSize;
+ if (size != -1)
+ return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBytesSize(1, getKeyBytes());
+ }
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBytesSize(2, getModuleKeyBytes());
+ }
+ if (((bitField0_ & 0x00000004) == 0x00000004)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBytesSize(3, getPathBytes());
+ }
+ if (((bitField0_ & 0x00000008) == 0x00000008)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBytesSize(4, getRuleRepositoryBytes());
+ }
+ if (((bitField0_ & 0x00000010) == 0x00000010)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBytesSize(5, getRuleKeyBytes());
+ }
+ if (((bitField0_ & 0x00000020) == 0x00000020)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32Size(6, line_);
+ }
+ if (((bitField0_ & 0x00000040) == 0x00000040)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBytesSize(7, getMsgBytes());
+ }
+ if (((bitField0_ & 0x00000080) == 0x00000080)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeEnumSize(8, severity_.getNumber());
+ }
+ if (((bitField0_ & 0x00000100) == 0x00000100)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(9, manualSeverity_);
+ }
+ if (((bitField0_ & 0x00000200) == 0x00000200)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBytesSize(10, getResolutionBytes());
+ }
+ if (((bitField0_ & 0x00000400) == 0x00000400)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBytesSize(11, getStatusBytes());
+ }
+ if (((bitField0_ & 0x00000800) == 0x00000800)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBytesSize(12, getChecksumBytes());
+ }
+ if (((bitField0_ & 0x00001000) == 0x00001000)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBytesSize(13, getAssigneeLoginBytes());
+ }
+ if (((bitField0_ & 0x00002000) == 0x00002000)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt64Size(14, creationDate_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSerializedSize = size;
+ return size;
+ }
+
+ private static final long serialVersionUID = 0L;
+
+ @java.lang.Override
+ protected java.lang.Object writeReplace()
+ throws java.io.ObjectStreamException {
+ return super.writeReplace();
+ }
+
+ public static org.sonar.batch.protocol.input.BatchInput.ServerIssue parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static org.sonar.batch.protocol.input.BatchInput.ServerIssue parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static org.sonar.batch.protocol.input.BatchInput.ServerIssue parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static org.sonar.batch.protocol.input.BatchInput.ServerIssue parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static org.sonar.batch.protocol.input.BatchInput.ServerIssue parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+
+ public static org.sonar.batch.protocol.input.BatchInput.ServerIssue parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+
+ public static org.sonar.batch.protocol.input.BatchInput.ServerIssue parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input);
+ }
+
+ public static org.sonar.batch.protocol.input.BatchInput.ServerIssue parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ }
+
+ public static org.sonar.batch.protocol.input.BatchInput.ServerIssue parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+
+ public static org.sonar.batch.protocol.input.BatchInput.ServerIssue parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+
+ public static Builder newBuilder() {
+ return Builder.create();
+ }
+
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder(org.sonar.batch.protocol.input.BatchInput.ServerIssue prototype) {
+ return newBuilder().mergeFrom(prototype);
+ }
+
+ public Builder toBuilder() {
+ return newBuilder(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ * Protobuf type {@code ServerIssue}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:ServerIssue)
+ org.sonar.batch.protocol.input.BatchInput.ServerIssueOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.sonar.batch.protocol.input.BatchInput.internal_static_ServerIssue_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.sonar.batch.protocol.input.BatchInput.internal_static_ServerIssue_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.sonar.batch.protocol.input.BatchInput.ServerIssue.class, org.sonar.batch.protocol.input.BatchInput.ServerIssue.Builder.class);
+ }
+
+ // Construct using org.sonar.batch.protocol.input.BatchInput.ServerIssue.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ }
+ }
+
+ private static Builder create() {
+ return new Builder();
+ }
+
+ public Builder clear() {
+ super.clear();
+ key_ = "";
+ bitField0_ = (bitField0_ & ~0x00000001);
+ moduleKey_ = "";
+ bitField0_ = (bitField0_ & ~0x00000002);
+ path_ = "";
+ bitField0_ = (bitField0_ & ~0x00000004);
+ ruleRepository_ = "";
+ bitField0_ = (bitField0_ & ~0x00000008);
+ ruleKey_ = "";
+ bitField0_ = (bitField0_ & ~0x00000010);
+ line_ = 0;
+ bitField0_ = (bitField0_ & ~0x00000020);
+ msg_ = "";
+ bitField0_ = (bitField0_ & ~0x00000040);
+ severity_ = org.sonar.batch.protocol.Constants.Severity.INFO;
+ bitField0_ = (bitField0_ & ~0x00000080);
+ manualSeverity_ = false;
+ bitField0_ = (bitField0_ & ~0x00000100);
+ resolution_ = "";
+ bitField0_ = (bitField0_ & ~0x00000200);
+ status_ = "";
+ bitField0_ = (bitField0_ & ~0x00000400);
+ checksum_ = "";
+ bitField0_ = (bitField0_ & ~0x00000800);
+ assigneeLogin_ = "";
+ bitField0_ = (bitField0_ & ~0x00001000);
+ creationDate_ = 0L;
+ bitField0_ = (bitField0_ & ~0x00002000);
+ return this;
+ }
+
+ public Builder clone() {
+ return create().mergeFrom(buildPartial());
+ }
+
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return org.sonar.batch.protocol.input.BatchInput.internal_static_ServerIssue_descriptor;
+ }
+
+ public org.sonar.batch.protocol.input.BatchInput.ServerIssue getDefaultInstanceForType() {
+ return org.sonar.batch.protocol.input.BatchInput.ServerIssue.getDefaultInstance();
+ }
+
+ public org.sonar.batch.protocol.input.BatchInput.ServerIssue build() {
+ org.sonar.batch.protocol.input.BatchInput.ServerIssue result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ public org.sonar.batch.protocol.input.BatchInput.ServerIssue buildPartial() {
+ org.sonar.batch.protocol.input.BatchInput.ServerIssue result = new org.sonar.batch.protocol.input.BatchInput.ServerIssue(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.moduleKey_ = moduleKey_;
+ if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
+ to_bitField0_ |= 0x00000004;
+ }
+ result.path_ = path_;
+ if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
+ to_bitField0_ |= 0x00000008;
+ }
+ result.ruleRepository_ = ruleRepository_;
+ if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
+ to_bitField0_ |= 0x00000010;
+ }
+ result.ruleKey_ = ruleKey_;
+ if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
+ to_bitField0_ |= 0x00000020;
+ }
+ result.line_ = line_;
+ if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
+ to_bitField0_ |= 0x00000040;
+ }
+ result.msg_ = msg_;
+ if (((from_bitField0_ & 0x00000080) == 0x00000080)) {
+ to_bitField0_ |= 0x00000080;
+ }
+ result.severity_ = severity_;
+ if (((from_bitField0_ & 0x00000100) == 0x00000100)) {
+ to_bitField0_ |= 0x00000100;
+ }
+ result.manualSeverity_ = manualSeverity_;
+ if (((from_bitField0_ & 0x00000200) == 0x00000200)) {
+ to_bitField0_ |= 0x00000200;
+ }
+ result.resolution_ = resolution_;
+ if (((from_bitField0_ & 0x00000400) == 0x00000400)) {
+ to_bitField0_ |= 0x00000400;
+ }
+ result.status_ = status_;
+ if (((from_bitField0_ & 0x00000800) == 0x00000800)) {
+ to_bitField0_ |= 0x00000800;
+ }
+ result.checksum_ = checksum_;
+ if (((from_bitField0_ & 0x00001000) == 0x00001000)) {
+ to_bitField0_ |= 0x00001000;
+ }
+ result.assigneeLogin_ = assigneeLogin_;
+ if (((from_bitField0_ & 0x00002000) == 0x00002000)) {
+ to_bitField0_ |= 0x00002000;
+ }
+ result.creationDate_ = creationDate_;
+ result.bitField0_ = to_bitField0_;
+ onBuilt();
+ return result;
+ }
+
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof org.sonar.batch.protocol.input.BatchInput.ServerIssue) {
+ return mergeFrom((org.sonar.batch.protocol.input.BatchInput.ServerIssue) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(org.sonar.batch.protocol.input.BatchInput.ServerIssue other) {
+ if (other == org.sonar.batch.protocol.input.BatchInput.ServerIssue.getDefaultInstance())
+ return this;
+ if (other.hasKey()) {
+ bitField0_ |= 0x00000001;
+ key_ = other.key_;
+ onChanged();
+ }
+ if (other.hasModuleKey()) {
+ bitField0_ |= 0x00000002;
+ moduleKey_ = other.moduleKey_;
+ onChanged();
+ }
+ if (other.hasPath()) {
+ bitField0_ |= 0x00000004;
+ path_ = other.path_;
+ onChanged();
+ }
+ if (other.hasRuleRepository()) {
+ bitField0_ |= 0x00000008;
+ ruleRepository_ = other.ruleRepository_;
+ onChanged();
+ }
+ if (other.hasRuleKey()) {
+ bitField0_ |= 0x00000010;
+ ruleKey_ = other.ruleKey_;
+ onChanged();
+ }
+ if (other.hasLine()) {
+ setLine(other.getLine());
+ }
+ if (other.hasMsg()) {
+ bitField0_ |= 0x00000040;
+ msg_ = other.msg_;
+ onChanged();
+ }
+ if (other.hasSeverity()) {
+ setSeverity(other.getSeverity());
+ }
+ if (other.hasManualSeverity()) {
+ setManualSeverity(other.getManualSeverity());
+ }
+ if (other.hasResolution()) {
+ bitField0_ |= 0x00000200;
+ resolution_ = other.resolution_;
+ onChanged();
+ }
+ if (other.hasStatus()) {
+ bitField0_ |= 0x00000400;
+ status_ = other.status_;
+ onChanged();
+ }
+ if (other.hasChecksum()) {
+ bitField0_ |= 0x00000800;
+ checksum_ = other.checksum_;
+ onChanged();
+ }
+ if (other.hasAssigneeLogin()) {
+ bitField0_ |= 0x00001000;
+ assigneeLogin_ = other.assigneeLogin_;
+ onChanged();
+ }
+ if (other.hasCreationDate()) {
+ setCreationDate(other.getCreationDate());
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ return this;
+ }
+
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ org.sonar.batch.protocol.input.BatchInput.ServerIssue parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (org.sonar.batch.protocol.input.BatchInput.ServerIssue) e.getUnfinishedMessage();
+ throw e;
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private int bitField0_;
+
+ private java.lang.Object key_ = "";
+
+ /**
+ * <code>optional string key = 1;</code>
+ */
+ public boolean hasKey() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+
+ /**
+ * <code>optional string key = 1;</code>
+ */
+ 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;
+ }
+ }
+
+ /**
+ * <code>optional string key = 1;</code>
+ */
+ 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;
+ }
+ }
+
+ /**
+ * <code>optional string key = 1;</code>
+ */
+ public Builder setKey(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000001;
+ key_ = value;
+ onChanged();
+ return this;
+ }
+
+ /**
+ * <code>optional string key = 1;</code>
+ */
+ public Builder clearKey() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ key_ = getDefaultInstance().getKey();
+ onChanged();
+ return this;
+ }
+
+ /**
+ * <code>optional string key = 1;</code>
+ */
+ 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 moduleKey_ = "";
+
+ /**
+ * <code>optional string module_key = 2;</code>
+ */
+ public boolean hasModuleKey() {
+ return ((bitField0_ & 0x00000002) == 0x00000002);
+ }
+
+ /**
+ * <code>optional string module_key = 2;</code>
+ */
+ public java.lang.String getModuleKey() {
+ java.lang.Object ref = moduleKey_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ moduleKey_ = s;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ * <code>optional string module_key = 2;</code>
+ */
+ public com.google.protobuf.ByteString
+ getModuleKeyBytes() {
+ java.lang.Object ref = moduleKey_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ moduleKey_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ * <code>optional string module_key = 2;</code>
+ */
+ public Builder setModuleKey(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000002;
+ moduleKey_ = value;
+ onChanged();
+ return this;
+ }
+
+ /**
+ * <code>optional string module_key = 2;</code>
+ */
+ public Builder clearModuleKey() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ moduleKey_ = getDefaultInstance().getModuleKey();
+ onChanged();
+ return this;
+ }
+
+ /**
+ * <code>optional string module_key = 2;</code>
+ */
+ public Builder setModuleKeyBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000002;
+ moduleKey_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object path_ = "";
+
+ /**
+ * <code>optional string path = 3;</code>
+ */
+ public boolean hasPath() {
+ return ((bitField0_ & 0x00000004) == 0x00000004);
+ }
+
+ /**
+ * <code>optional string path = 3;</code>
+ */
+ public java.lang.String getPath() {
+ java.lang.Object ref = path_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ path_ = s;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ * <code>optional string path = 3;</code>
+ */
+ public com.google.protobuf.ByteString
+ getPathBytes() {
+ java.lang.Object ref = path_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ path_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ * <code>optional string path = 3;</code>
+ */
+ public Builder setPath(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000004;
+ path_ = value;
+ onChanged();
+ return this;
+ }
+
+ /**
+ * <code>optional string path = 3;</code>
+ */
+ public Builder clearPath() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ path_ = getDefaultInstance().getPath();
+ onChanged();
+ return this;
+ }
+
+ /**
+ * <code>optional string path = 3;</code>
+ */
+ public Builder setPathBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000004;
+ path_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object ruleRepository_ = "";
+
+ /**
+ * <code>optional string rule_repository = 4;</code>
+ */
+ public boolean hasRuleRepository() {
+ return ((bitField0_ & 0x00000008) == 0x00000008);
+ }
+
+ /**
+ * <code>optional string rule_repository = 4;</code>
+ */
+ public java.lang.String getRuleRepository() {
+ java.lang.Object ref = ruleRepository_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ ruleRepository_ = s;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ * <code>optional string rule_repository = 4;</code>
+ */
+ public com.google.protobuf.ByteString
+ getRuleRepositoryBytes() {
+ java.lang.Object ref = ruleRepository_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ ruleRepository_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ * <code>optional string rule_repository = 4;</code>
+ */
+ public Builder setRuleRepository(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000008;
+ ruleRepository_ = value;
+ onChanged();
+ return this;
+ }
+
+ /**
+ * <code>optional string rule_repository = 4;</code>
+ */
+ public Builder clearRuleRepository() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ ruleRepository_ = getDefaultInstance().getRuleRepository();
+ onChanged();
+ return this;
+ }
+
+ /**
+ * <code>optional string rule_repository = 4;</code>
+ */
+ public Builder setRuleRepositoryBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000008;
+ ruleRepository_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object ruleKey_ = "";
+
+ /**
+ * <code>optional string rule_key = 5;</code>
+ */
+ public boolean hasRuleKey() {
+ return ((bitField0_ & 0x00000010) == 0x00000010);
+ }
+
+ /**
+ * <code>optional string rule_key = 5;</code>
+ */
+ public java.lang.String getRuleKey() {
+ java.lang.Object ref = ruleKey_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ ruleKey_ = s;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ * <code>optional string rule_key = 5;</code>
+ */
+ public com.google.protobuf.ByteString
+ getRuleKeyBytes() {
+ java.lang.Object ref = ruleKey_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ ruleKey_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ * <code>optional string rule_key = 5;</code>
+ */
+ public Builder setRuleKey(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000010;
+ ruleKey_ = value;
+ onChanged();
+ return this;
+ }
+
+ /**
+ * <code>optional string rule_key = 5;</code>
+ */
+ public Builder clearRuleKey() {
+ bitField0_ = (bitField0_ & ~0x00000010);
+ ruleKey_ = getDefaultInstance().getRuleKey();
+ onChanged();
+ return this;
+ }
+
+ /**
+ * <code>optional string rule_key = 5;</code>
+ */
+ public Builder setRuleKeyBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000010;
+ ruleKey_ = value;
+ onChanged();
+ return this;
+ }
+
+ private int line_;
+
+ /**
+ * <code>optional int32 line = 6;</code>
+ */
+ public boolean hasLine() {
+ return ((bitField0_ & 0x00000020) == 0x00000020);
+ }
+
+ /**
+ * <code>optional int32 line = 6;</code>
+ */
+ public int getLine() {
+ return line_;
+ }
+
+ /**
+ * <code>optional int32 line = 6;</code>
+ */
+ public Builder setLine(int value) {
+ bitField0_ |= 0x00000020;
+ line_ = value;
+ onChanged();
+ return this;
+ }
+
+ /**
+ * <code>optional int32 line = 6;</code>
+ */
+ public Builder clearLine() {
+ bitField0_ = (bitField0_ & ~0x00000020);
+ line_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object msg_ = "";
+
+ /**
+ * <code>optional string msg = 7;</code>
+ */
+ public boolean hasMsg() {
+ return ((bitField0_ & 0x00000040) == 0x00000040);
+ }
+
+ /**
+ * <code>optional string msg = 7;</code>
+ */
+ 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;
+ }
+ }
+
+ /**
+ * <code>optional string msg = 7;</code>
+ */
+ 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;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ * <code>optional string msg = 7;</code>
+ */
+ public Builder setMsg(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000040;
+ msg_ = value;
+ onChanged();
+ return this;
+ }
+
+ /**
+ * <code>optional string msg = 7;</code>
+ */
+ public Builder clearMsg() {
+ bitField0_ = (bitField0_ & ~0x00000040);
+ msg_ = getDefaultInstance().getMsg();
+ onChanged();
+ return this;
+ }
+
+ /**
+ * <code>optional string msg = 7;</code>
+ */
+ public Builder setMsgBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000040;
+ msg_ = value;
+ onChanged();
+ return this;
+ }
+
+ private org.sonar.batch.protocol.Constants.Severity severity_ = org.sonar.batch.protocol.Constants.Severity.INFO;
+
+ /**
+ * <code>optional .Severity severity = 8;</code>
+ */
+ public boolean hasSeverity() {
+ return ((bitField0_ & 0x00000080) == 0x00000080);
+ }
+
+ /**
+ * <code>optional .Severity severity = 8;</code>
+ */
+ public org.sonar.batch.protocol.Constants.Severity getSeverity() {
+ return severity_;
+ }
+
+ /**
+ * <code>optional .Severity severity = 8;</code>
+ */
+ public Builder setSeverity(org.sonar.batch.protocol.Constants.Severity value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000080;
+ severity_ = value;
+ onChanged();
+ return this;
+ }
+
+ /**
+ * <code>optional .Severity severity = 8;</code>
+ */
+ public Builder clearSeverity() {
+ bitField0_ = (bitField0_ & ~0x00000080);
+ severity_ = org.sonar.batch.protocol.Constants.Severity.INFO;
+ onChanged();
+ return this;
+ }
+
+ private boolean manualSeverity_;
+
+ /**
+ * <code>optional bool manual_severity = 9;</code>
+ */
+ public boolean hasManualSeverity() {
+ return ((bitField0_ & 0x00000100) == 0x00000100);
+ }
+
+ /**
+ * <code>optional bool manual_severity = 9;</code>
+ */
+ public boolean getManualSeverity() {
+ return manualSeverity_;
+ }
+
+ /**
+ * <code>optional bool manual_severity = 9;</code>
+ */
+ public Builder setManualSeverity(boolean value) {
+ bitField0_ |= 0x00000100;
+ manualSeverity_ = value;
+ onChanged();
+ return this;
+ }
+
+ /**
+ * <code>optional bool manual_severity = 9;</code>
+ */
+ public Builder clearManualSeverity() {
+ bitField0_ = (bitField0_ & ~0x00000100);
+ manualSeverity_ = false;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object resolution_ = "";
+
+ /**
+ * <code>optional string resolution = 10;</code>
+ */
+ public boolean hasResolution() {
+ return ((bitField0_ & 0x00000200) == 0x00000200);
+ }
+
+ /**
+ * <code>optional string resolution = 10;</code>
+ */
+ 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;
+ }
+ }
+
+ /**
+ * <code>optional string resolution = 10;</code>
+ */
+ 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;
+ }
+ }
+
+ /**
+ * <code>optional string resolution = 10;</code>
+ */
+ public Builder setResolution(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000200;
+ resolution_ = value;
+ onChanged();
+ return this;
+ }
+
+ /**
+ * <code>optional string resolution = 10;</code>
+ */
+ public Builder clearResolution() {
+ bitField0_ = (bitField0_ & ~0x00000200);
+ resolution_ = getDefaultInstance().getResolution();
+ onChanged();
+ return this;
+ }
+
+ /**
+ * <code>optional string resolution = 10;</code>
+ */
+ public Builder setResolutionBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000200;
+ resolution_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object status_ = "";
+
+ /**
+ * <code>optional string status = 11;</code>
+ */
+ public boolean hasStatus() {
+ return ((bitField0_ & 0x00000400) == 0x00000400);
+ }
+
+ /**
+ * <code>optional string status = 11;</code>
+ */
+ 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;
+ }
+ }
+
+ /**
+ * <code>optional string status = 11;</code>
+ */
+ 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;
+ }
+ }
+
+ /**
+ * <code>optional string status = 11;</code>
+ */
+ public Builder setStatus(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000400;
+ status_ = value;
+ onChanged();
+ return this;
+ }
+
+ /**
+ * <code>optional string status = 11;</code>
+ */
+ public Builder clearStatus() {
+ bitField0_ = (bitField0_ & ~0x00000400);
+ status_ = getDefaultInstance().getStatus();
+ onChanged();
+ return this;
+ }
+
+ /**
+ * <code>optional string status = 11;</code>
+ */
+ public Builder setStatusBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000400;
+ status_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object checksum_ = "";
+
+ /**
+ * <code>optional string checksum = 12;</code>
+ */
+ public boolean hasChecksum() {
+ return ((bitField0_ & 0x00000800) == 0x00000800);
+ }
+
+ /**
+ * <code>optional string checksum = 12;</code>
+ */
+ public java.lang.String getChecksum() {
+ java.lang.Object ref = checksum_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ checksum_ = s;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ * <code>optional string checksum = 12;</code>
+ */
+ public com.google.protobuf.ByteString
+ getChecksumBytes() {
+ java.lang.Object ref = checksum_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ checksum_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ * <code>optional string checksum = 12;</code>
+ */
+ public Builder setChecksum(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000800;
+ checksum_ = value;
+ onChanged();
+ return this;
+ }
+
+ /**
+ * <code>optional string checksum = 12;</code>
+ */
+ public Builder clearChecksum() {
+ bitField0_ = (bitField0_ & ~0x00000800);
+ checksum_ = getDefaultInstance().getChecksum();
+ onChanged();
+ return this;
+ }
+
+ /**
+ * <code>optional string checksum = 12;</code>
+ */
+ public Builder setChecksumBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000800;
+ checksum_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object assigneeLogin_ = "";
+
+ /**
+ * <code>optional string assignee_login = 13;</code>
+ */
+ public boolean hasAssigneeLogin() {
+ return ((bitField0_ & 0x00001000) == 0x00001000);
+ }
+
+ /**
+ * <code>optional string assignee_login = 13;</code>
+ */
+ public java.lang.String getAssigneeLogin() {
+ java.lang.Object ref = assigneeLogin_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ assigneeLogin_ = s;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ * <code>optional string assignee_login = 13;</code>
+ */
+ public com.google.protobuf.ByteString
+ getAssigneeLoginBytes() {
+ java.lang.Object ref = assigneeLogin_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ assigneeLogin_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ * <code>optional string assignee_login = 13;</code>
+ */
+ public Builder setAssigneeLogin(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00001000;
+ assigneeLogin_ = value;
+ onChanged();
+ return this;
+ }
+
+ /**
+ * <code>optional string assignee_login = 13;</code>
+ */
+ public Builder clearAssigneeLogin() {
+ bitField0_ = (bitField0_ & ~0x00001000);
+ assigneeLogin_ = getDefaultInstance().getAssigneeLogin();
+ onChanged();
+ return this;
+ }
+
+ /**
+ * <code>optional string assignee_login = 13;</code>
+ */
+ public Builder setAssigneeLoginBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00001000;
+ assigneeLogin_ = value;
+ onChanged();
+ return this;
+ }
+
+ private long creationDate_;
+
+ /**
+ * <code>optional int64 creation_date = 14;</code>
+ */
+ public boolean hasCreationDate() {
+ return ((bitField0_ & 0x00002000) == 0x00002000);
+ }
+
+ /**
+ * <code>optional int64 creation_date = 14;</code>
+ */
+ public long getCreationDate() {
+ return creationDate_;
+ }
+
+ /**
+ * <code>optional int64 creation_date = 14;</code>
+ */
+ public Builder setCreationDate(long value) {
+ bitField0_ |= 0x00002000;
+ creationDate_ = value;
+ onChanged();
+ return this;
+ }
+
+ /**
+ * <code>optional int64 creation_date = 14;</code>
+ */
+ public Builder clearCreationDate() {
+ bitField0_ = (bitField0_ & ~0x00002000);
+ creationDate_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:ServerIssue)
+ }
+
+ static {
+ defaultInstance = new ServerIssue(true);
+ defaultInstance.initFields();
+ }
+
+ // @@protoc_insertion_point(class_scope:ServerIssue)
+ }
+
+ private static final com.google.protobuf.Descriptors.Descriptor internal_static_ServerIssue_descriptor;
+ private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_ServerIssue_fieldAccessorTable;
+
+ public static com.google.protobuf.Descriptors.FileDescriptor
+ getDescriptor() {
+ return descriptor;
+ }
+
+ private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
+ static {
+ java.lang.String[] descriptorData = {
+ "\n\021batch_input.proto\032\017constants.proto\"\235\002\n" +
+ "\013ServerIssue\022\013\n\003key\030\001 \001(\t\022\022\n\nmodule_key\030" +
+ "\002 \001(\t\022\014\n\004path\030\003 \001(\t\022\027\n\017rule_repository\030\004" +
+ " \001(\t\022\020\n\010rule_key\030\005 \001(\t\022\014\n\004line\030\006 \001(\005\022\013\n\003" +
+ "msg\030\007 \001(\t\022\033\n\010severity\030\010 \001(\0162\t.Severity\022\027" +
+ "\n\017manual_severity\030\t \001(\010\022\022\n\nresolution\030\n " +
+ "\001(\t\022\016\n\006status\030\013 \001(\t\022\020\n\010checksum\030\014 \001(\t\022\026\n" +
+ "\016assignee_login\030\r \001(\t\022\025\n\rcreation_date\030\016" +
+ " \001(\003B\"\n\036org.sonar.batch.protocol.inputH\001"
+ };
+ 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.sonar.batch.protocol.Constants.getDescriptor(),
+ }, assigner);
+ internal_static_ServerIssue_descriptor =
+ getDescriptor().getMessageTypes().get(0);
+ internal_static_ServerIssue_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_ServerIssue_descriptor,
+ new java.lang.String[] {"Key", "ModuleKey", "Path", "RuleRepository", "RuleKey", "Line", "Msg", "Severity", "ManualSeverity", "Resolution", "Status", "Checksum",
+ "AssigneeLogin", "CreationDate",});
+ org.sonar.batch.protocol.Constants.getDescriptor();
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/sonar-batch-protocol/src/main/gen-java/org/sonar/batch/protocol/output/BatchReport.java b/sonar-batch-protocol/src/main/gen-java/org/sonar/batch/protocol/output/BatchReport.java
index 8026f5b5f82..8e5ca2c921c 100644
--- a/sonar-batch-protocol/src/main/gen-java/org/sonar/batch/protocol/output/BatchReport.java
+++ b/sonar-batch-protocol/src/main/gen-java/org/sonar/batch/protocol/output/BatchReport.java
@@ -8,10 +8,10 @@ public final class BatchReport {
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
}
- public interface MetadataOrBuilder extends
- // @@protoc_insertion_point(interface_extends:Metadata)
- com.google.protobuf.MessageOrBuilder {
+ public interface MetadataOrBuilder
+ extends com.google.protobuf.MessageOrBuilder {
+ // optional int64 analysis_date = 1;
/**
* <code>optional int64 analysis_date = 1;</code>
*/
@@ -21,6 +21,7 @@ public final class BatchReport {
*/
long getAnalysisDate();
+ // optional string project_key = 2;
/**
* <code>optional string project_key = 2;</code>
*/
@@ -35,6 +36,7 @@ public final class BatchReport {
com.google.protobuf.ByteString
getProjectKeyBytes();
+ // optional int32 root_component_ref = 3;
/**
* <code>optional int32 root_component_ref = 3;</code>
*/
@@ -48,9 +50,8 @@ public final class BatchReport {
* Protobuf type {@code Metadata}
*/
public static final class Metadata extends
- com.google.protobuf.GeneratedMessage implements
- // @@protoc_insertion_point(message_implements:Metadata)
- MetadataOrBuilder {
+ com.google.protobuf.GeneratedMessage
+ implements MetadataOrBuilder {
// Use Metadata.newBuilder() to construct.
private Metadata(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
@@ -102,9 +103,8 @@ public final class BatchReport {
break;
}
case 18: {
- com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
- projectKey_ = bs;
+ projectKey_ = input.readBytes();
break;
}
case 24: {
@@ -152,6 +152,7 @@ public final class BatchReport {
}
private int bitField0_;
+ // optional int64 analysis_date = 1;
public static final int ANALYSIS_DATE_FIELD_NUMBER = 1;
private long analysisDate_;
/**
@@ -167,6 +168,7 @@ public final class BatchReport {
return analysisDate_;
}
+ // optional string project_key = 2;
public static final int PROJECT_KEY_FIELD_NUMBER = 2;
private java.lang.Object projectKey_;
/**
@@ -209,6 +211,7 @@ public final class BatchReport {
}
}
+ // optional int32 root_component_ref = 3;
public static final int ROOT_COMPONENT_REF_FIELD_NUMBER = 3;
private int rootComponentRef_;
/**
@@ -232,8 +235,7 @@ public final class BatchReport {
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
+ if (isInitialized != -1) return isInitialized == 1;
memoizedIsInitialized = 1;
return true;
@@ -354,9 +356,8 @@ public final class BatchReport {
* Protobuf type {@code Metadata}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder> implements
- // @@protoc_insertion_point(builder_implements:Metadata)
- org.sonar.batch.protocol.output.BatchReport.MetadataOrBuilder {
+ com.google.protobuf.GeneratedMessage.Builder<Builder>
+ implements org.sonar.batch.protocol.output.BatchReport.MetadataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.sonar.batch.protocol.output.BatchReport.internal_static_Metadata_descriptor;
@@ -489,6 +490,7 @@ public final class BatchReport {
}
private int bitField0_;
+ // optional int64 analysis_date = 1;
private long analysisDate_ ;
/**
* <code>optional int64 analysis_date = 1;</code>
@@ -521,6 +523,7 @@ public final class BatchReport {
return this;
}
+ // optional string project_key = 2;
private java.lang.Object projectKey_ = "";
/**
* <code>optional string project_key = 2;</code>
@@ -534,12 +537,9 @@ public final class BatchReport {
public java.lang.String getProjectKey() {
java.lang.Object ref = projectKey_;
if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- projectKey_ = s;
- }
+ java.lang.String s = ((com.google.protobuf.ByteString) ref)
+ .toStringUtf8();
+ projectKey_ = s;
return s;
} else {
return (java.lang.String) ref;
@@ -597,6 +597,7 @@ public final class BatchReport {
return this;
}
+ // optional int32 root_component_ref = 3;
private int rootComponentRef_ ;
/**
* <code>optional int32 root_component_ref = 3;</code>
@@ -640,10 +641,10 @@ public final class BatchReport {
// @@protoc_insertion_point(class_scope:Metadata)
}
- public interface ComponentOrBuilder extends
- // @@protoc_insertion_point(interface_extends:Component)
- com.google.protobuf.MessageOrBuilder {
+ public interface ComponentOrBuilder
+ extends com.google.protobuf.MessageOrBuilder {
+ // optional int32 ref = 1;
/**
* <code>optional int32 ref = 1;</code>
*/
@@ -653,6 +654,7 @@ public final class BatchReport {
*/
int getRef();
+ // optional string path = 2;
/**
* <code>optional string path = 2;</code>
*/
@@ -667,6 +669,7 @@ public final class BatchReport {
com.google.protobuf.ByteString
getPathBytes();
+ // optional string name = 3;
/**
* <code>optional string name = 3;</code>
*/
@@ -681,6 +684,7 @@ public final class BatchReport {
com.google.protobuf.ByteString
getNameBytes();
+ // optional .ComponentType type = 4;
/**
* <code>optional .ComponentType type = 4;</code>
*/
@@ -690,6 +694,7 @@ public final class BatchReport {
*/
org.sonar.batch.protocol.Constants.ComponentType getType();
+ // optional bool is_test = 5;
/**
* <code>optional bool is_test = 5;</code>
*/
@@ -699,6 +704,7 @@ public final class BatchReport {
*/
boolean getIsTest();
+ // optional string language = 6;
/**
* <code>optional string language = 6;</code>
*/
@@ -713,6 +719,7 @@ public final class BatchReport {
com.google.protobuf.ByteString
getLanguageBytes();
+ // repeated int32 child_refs = 7 [packed = true];
/**
* <code>repeated int32 child_refs = 7 [packed = true];</code>
*/
@@ -726,6 +733,7 @@ public final class BatchReport {
*/
int getChildRefs(int index);
+ // optional int32 snapshot_id = 8;
/**
* <code>optional int32 snapshot_id = 8;</code>
*
@@ -743,6 +751,7 @@ public final class BatchReport {
*/
int getSnapshotId();
+ // optional string uuid = 9;
/**
* <code>optional string uuid = 9;</code>
*/
@@ -761,9 +770,8 @@ public final class BatchReport {
* Protobuf type {@code Component}
*/
public static final class Component extends
- com.google.protobuf.GeneratedMessage implements
- // @@protoc_insertion_point(message_implements:Component)
- ComponentOrBuilder {
+ com.google.protobuf.GeneratedMessage
+ implements ComponentOrBuilder {
// Use Component.newBuilder() to construct.
private Component(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
@@ -815,15 +823,13 @@ public final class BatchReport {
break;
}
case 18: {
- com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
- path_ = bs;
+ path_ = input.readBytes();
break;
}
case 26: {
- com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000004;
- name_ = bs;
+ name_ = input.readBytes();
break;
}
case 32: {
@@ -843,9 +849,8 @@ public final class BatchReport {
break;
}
case 50: {
- com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000020;
- language_ = bs;
+ language_ = input.readBytes();
break;
}
case 56: {
@@ -875,9 +880,8 @@ public final class BatchReport {
break;
}
case 74: {
- com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000080;
- uuid_ = bs;
+ uuid_ = input.readBytes();
break;
}
}
@@ -923,6 +927,7 @@ public final class BatchReport {
}
private int bitField0_;
+ // optional int32 ref = 1;
public static final int REF_FIELD_NUMBER = 1;
private int ref_;
/**
@@ -938,6 +943,7 @@ public final class BatchReport {
return ref_;
}
+ // optional string path = 2;
public static final int PATH_FIELD_NUMBER = 2;
private java.lang.Object path_;
/**
@@ -980,6 +986,7 @@ public final class BatchReport {
}
}
+ // optional string name = 3;
public static final int NAME_FIELD_NUMBER = 3;
private java.lang.Object name_;
/**
@@ -1022,6 +1029,7 @@ public final class BatchReport {
}
}
+ // optional .ComponentType type = 4;
public static final int TYPE_FIELD_NUMBER = 4;
private org.sonar.batch.protocol.Constants.ComponentType type_;
/**
@@ -1037,6 +1045,7 @@ public final class BatchReport {
return type_;
}
+ // optional bool is_test = 5;
public static final int IS_TEST_FIELD_NUMBER = 5;
private boolean isTest_;
/**
@@ -1052,6 +1061,7 @@ public final class BatchReport {
return isTest_;
}
+ // optional string language = 6;
public static final int LANGUAGE_FIELD_NUMBER = 6;
private java.lang.Object language_;
/**
@@ -1094,6 +1104,7 @@ public final class BatchReport {
}
}
+ // repeated int32 child_refs = 7 [packed = true];
public static final int CHILD_REFS_FIELD_NUMBER = 7;
private java.util.List<java.lang.Integer> childRefs_;
/**
@@ -1117,6 +1128,7 @@ public final class BatchReport {
}
private int childRefsMemoizedSerializedSize = -1;
+ // optional int32 snapshot_id = 8;
public static final int SNAPSHOT_ID_FIELD_NUMBER = 8;
private int snapshotId_;
/**
@@ -1140,6 +1152,7 @@ public final class BatchReport {
return snapshotId_;
}
+ // optional string uuid = 9;
public static final int UUID_FIELD_NUMBER = 9;
private java.lang.Object uuid_;
/**
@@ -1196,8 +1209,7 @@ public final class BatchReport {
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
+ if (isInitialized != -1) return isInitialized == 1;
memoizedIsInitialized = 1;
return true;
@@ -1374,9 +1386,8 @@ public final class BatchReport {
* Protobuf type {@code Component}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder> implements
- // @@protoc_insertion_point(builder_implements:Component)
- org.sonar.batch.protocol.output.BatchReport.ComponentOrBuilder {
+ com.google.protobuf.GeneratedMessage.Builder<Builder>
+ implements org.sonar.batch.protocol.output.BatchReport.ComponentOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.sonar.batch.protocol.output.BatchReport.internal_static_Component_descriptor;
@@ -1577,6 +1588,7 @@ public final class BatchReport {
}
private int bitField0_;
+ // optional int32 ref = 1;
private int ref_ ;
/**
* <code>optional int32 ref = 1;</code>
@@ -1609,6 +1621,7 @@ public final class BatchReport {
return this;
}
+ // optional string path = 2;
private java.lang.Object path_ = "";
/**
* <code>optional string path = 2;</code>
@@ -1622,12 +1635,9 @@ public final class BatchReport {
public java.lang.String getPath() {
java.lang.Object ref = path_;
if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- path_ = s;
- }
+ java.lang.String s = ((com.google.protobuf.ByteString) ref)
+ .toStringUtf8();
+ path_ = s;
return s;
} else {
return (java.lang.String) ref;
@@ -1685,6 +1695,7 @@ public final class BatchReport {
return this;
}
+ // optional string name = 3;
private java.lang.Object name_ = "";
/**
* <code>optional string name = 3;</code>
@@ -1698,12 +1709,9 @@ public final class BatchReport {
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- name_ = s;
- }
+ java.lang.String s = ((com.google.protobuf.ByteString) ref)
+ .toStringUtf8();
+ name_ = s;
return s;
} else {
return (java.lang.String) ref;
@@ -1761,6 +1769,7 @@ public final class BatchReport {
return this;
}
+ // optional .ComponentType type = 4;
private org.sonar.batch.protocol.Constants.ComponentType type_ = org.sonar.batch.protocol.Constants.ComponentType.PROJECT;
/**
* <code>optional .ComponentType type = 4;</code>
@@ -1796,6 +1805,7 @@ public final class BatchReport {
return this;
}
+ // optional bool is_test = 5;
private boolean isTest_ ;
/**
* <code>optional bool is_test = 5;</code>
@@ -1828,6 +1838,7 @@ public final class BatchReport {
return this;
}
+ // optional string language = 6;
private java.lang.Object language_ = "";
/**
* <code>optional string language = 6;</code>
@@ -1841,12 +1852,9 @@ public final class BatchReport {
public java.lang.String getLanguage() {
java.lang.Object ref = language_;
if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- language_ = s;
- }
+ java.lang.String s = ((com.google.protobuf.ByteString) ref)
+ .toStringUtf8();
+ language_ = s;
return s;
} else {
return (java.lang.String) ref;
@@ -1904,6 +1912,7 @@ public final class BatchReport {
return this;
}
+ // repeated int32 child_refs = 7 [packed = true];
private java.util.List<java.lang.Integer> childRefs_ = java.util.Collections.emptyList();
private void ensureChildRefsIsMutable() {
if (!((bitField0_ & 0x00000040) == 0x00000040)) {
@@ -1955,8 +1964,7 @@ public final class BatchReport {
public Builder addAllChildRefs(
java.lang.Iterable<? extends java.lang.Integer> values) {
ensureChildRefsIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, childRefs_);
+ super.addAll(values, childRefs_);
onChanged();
return this;
}
@@ -1970,6 +1978,7 @@ public final class BatchReport {
return this;
}
+ // optional int32 snapshot_id = 8;
private int snapshotId_ ;
/**
* <code>optional int32 snapshot_id = 8;</code>
@@ -2018,6 +2027,7 @@ public final class BatchReport {
return this;
}
+ // optional string uuid = 9;
private java.lang.Object uuid_ = "";
/**
* <code>optional string uuid = 9;</code>
@@ -2031,12 +2041,9 @@ public final class BatchReport {
public java.lang.String getUuid() {
java.lang.Object ref = uuid_;
if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- uuid_ = s;
- }
+ java.lang.String s = ((com.google.protobuf.ByteString) ref)
+ .toStringUtf8();
+ uuid_ = s;
return s;
} else {
return (java.lang.String) ref;
@@ -2105,10 +2112,10 @@ public final class BatchReport {
// @@protoc_insertion_point(class_scope:Component)
}
- public interface IssueOrBuilder extends
- // @@protoc_insertion_point(interface_extends:Issue)
- com.google.protobuf.MessageOrBuilder {
+ public interface IssueOrBuilder
+ extends com.google.protobuf.MessageOrBuilder {
+ // optional string rule_repository = 1;
/**
* <code>optional string rule_repository = 1;</code>
*/
@@ -2123,6 +2130,7 @@ public final class BatchReport {
com.google.protobuf.ByteString
getRuleRepositoryBytes();
+ // optional string rule_key = 2;
/**
* <code>optional string rule_key = 2;</code>
*/
@@ -2137,6 +2145,7 @@ public final class BatchReport {
com.google.protobuf.ByteString
getRuleKeyBytes();
+ // optional int32 line = 3;
/**
* <code>optional int32 line = 3;</code>
*/
@@ -2146,6 +2155,7 @@ public final class BatchReport {
*/
int getLine();
+ // optional string msg = 4;
/**
* <code>optional string msg = 4;</code>
*/
@@ -2160,6 +2170,7 @@ public final class BatchReport {
com.google.protobuf.ByteString
getMsgBytes();
+ // optional .Severity severity = 5;
/**
* <code>optional .Severity severity = 5;</code>
*/
@@ -2169,11 +2180,12 @@ public final class BatchReport {
*/
org.sonar.batch.protocol.Constants.Severity getSeverity();
+ // repeated string tags = 6;
/**
* <code>repeated string tags = 6;</code>
*/
- com.google.protobuf.ProtocolStringList
- getTagsList();
+ java.util.List<java.lang.String>
+ getTagsList();
/**
* <code>repeated string tags = 6;</code>
*/
@@ -2188,6 +2200,7 @@ public final class BatchReport {
com.google.protobuf.ByteString
getTagsBytes(int index);
+ // optional double effort_to_fix = 7;
/**
* <code>optional double effort_to_fix = 7;</code>
*
@@ -2205,6 +2218,7 @@ public final class BatchReport {
*/
double getEffortToFix();
+ // optional bool is_new = 8;
/**
* <code>optional bool is_new = 8;</code>
*/
@@ -2214,6 +2228,7 @@ public final class BatchReport {
*/
boolean getIsNew();
+ // optional string uuid = 9;
/**
* <code>optional string uuid = 9;</code>
*/
@@ -2228,6 +2243,7 @@ public final class BatchReport {
com.google.protobuf.ByteString
getUuidBytes();
+ // optional int64 debt_in_minutes = 10;
/**
* <code>optional int64 debt_in_minutes = 10;</code>
*/
@@ -2237,6 +2253,7 @@ public final class BatchReport {
*/
long getDebtInMinutes();
+ // optional string resolution = 11;
/**
* <code>optional string resolution = 11;</code>
*/
@@ -2251,6 +2268,7 @@ public final class BatchReport {
com.google.protobuf.ByteString
getResolutionBytes();
+ // optional string status = 12;
/**
* <code>optional string status = 12;</code>
*/
@@ -2265,6 +2283,7 @@ public final class BatchReport {
com.google.protobuf.ByteString
getStatusBytes();
+ // optional string checksum = 13;
/**
* <code>optional string checksum = 13;</code>
*/
@@ -2279,6 +2298,7 @@ public final class BatchReport {
com.google.protobuf.ByteString
getChecksumBytes();
+ // optional bool manual_severity = 14;
/**
* <code>optional bool manual_severity = 14;</code>
*/
@@ -2288,6 +2308,7 @@ public final class BatchReport {
*/
boolean getManualSeverity();
+ // optional string reporter = 15;
/**
* <code>optional string reporter = 15;</code>
*/
@@ -2302,6 +2323,7 @@ public final class BatchReport {
com.google.protobuf.ByteString
getReporterBytes();
+ // optional string assignee = 16;
/**
* <code>optional string assignee = 16;</code>
*/
@@ -2316,6 +2338,7 @@ public final class BatchReport {
com.google.protobuf.ByteString
getAssigneeBytes();
+ // optional string action_plan_key = 17;
/**
* <code>optional string action_plan_key = 17;</code>
*/
@@ -2330,6 +2353,7 @@ public final class BatchReport {
com.google.protobuf.ByteString
getActionPlanKeyBytes();
+ // optional string attributes = 18;
/**
* <code>optional string attributes = 18;</code>
*/
@@ -2344,6 +2368,7 @@ public final class BatchReport {
com.google.protobuf.ByteString
getAttributesBytes();
+ // optional string author_login = 19;
/**
* <code>optional string author_login = 19;</code>
*/
@@ -2358,6 +2383,7 @@ public final class BatchReport {
com.google.protobuf.ByteString
getAuthorLoginBytes();
+ // optional int64 creation_date = 20;
/**
* <code>optional int64 creation_date = 20;</code>
*/
@@ -2367,6 +2393,7 @@ public final class BatchReport {
*/
long getCreationDate();
+ // optional int64 close_date = 21;
/**
* <code>optional int64 close_date = 21;</code>
*/
@@ -2376,6 +2403,7 @@ public final class BatchReport {
*/
long getCloseDate();
+ // optional int64 update_date = 22;
/**
* <code>optional int64 update_date = 22;</code>
*/
@@ -2385,6 +2413,7 @@ public final class BatchReport {
*/
long getUpdateDate();
+ // optional int64 selected_at = 23;
/**
* <code>optional int64 selected_at = 23;</code>
*/
@@ -2394,6 +2423,7 @@ public final class BatchReport {
*/
long getSelectedAt();
+ // optional string diff_fields = 24;
/**
* <code>optional string diff_fields = 24;</code>
*/
@@ -2408,6 +2438,7 @@ public final class BatchReport {
com.google.protobuf.ByteString
getDiffFieldsBytes();
+ // optional bool is_changed = 25;
/**
* <code>optional bool is_changed = 25;</code>
*/
@@ -2417,6 +2448,7 @@ public final class BatchReport {
*/
boolean getIsChanged();
+ // optional bool must_send_notification = 26;
/**
* <code>optional bool must_send_notification = 26;</code>
*/
@@ -2430,9 +2462,8 @@ public final class BatchReport {
* Protobuf type {@code Issue}
*/
public static final class Issue extends
- com.google.protobuf.GeneratedMessage implements
- // @@protoc_insertion_point(message_implements:Issue)
- IssueOrBuilder {
+ com.google.protobuf.GeneratedMessage
+ implements IssueOrBuilder {
// Use Issue.newBuilder() to construct.
private Issue(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
@@ -2479,15 +2510,13 @@ public final class BatchReport {
break;
}
case 10: {
- com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
- ruleRepository_ = bs;
+ ruleRepository_ = input.readBytes();
break;
}
case 18: {
- com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
- ruleKey_ = bs;
+ ruleKey_ = input.readBytes();
break;
}
case 24: {
@@ -2496,9 +2525,8 @@ public final class BatchReport {
break;
}
case 34: {
- com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000008;
- msg_ = bs;
+ msg_ = input.readBytes();
break;
}
case 40: {
@@ -2513,12 +2541,11 @@ public final class BatchReport {
break;
}
case 50: {
- com.google.protobuf.ByteString bs = input.readBytes();
if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
tags_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000020;
}
- tags_.add(bs);
+ tags_.add(input.readBytes());
break;
}
case 57: {
@@ -2532,9 +2559,8 @@ public final class BatchReport {
break;
}
case 74: {
- com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000080;
- uuid_ = bs;
+ uuid_ = input.readBytes();
break;
}
case 80: {
@@ -2543,21 +2569,18 @@ public final class BatchReport {
break;
}
case 90: {
- com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000200;
- resolution_ = bs;
+ resolution_ = input.readBytes();
break;
}
case 98: {
- com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000400;
- status_ = bs;
+ status_ = input.readBytes();
break;
}
case 106: {
- com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000800;
- checksum_ = bs;
+ checksum_ = input.readBytes();
break;
}
case 112: {
@@ -2566,33 +2589,28 @@ public final class BatchReport {
break;
}
case 122: {
- com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00002000;
- reporter_ = bs;
+ reporter_ = input.readBytes();
break;
}
case 130: {
- com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00004000;
- assignee_ = bs;
+ assignee_ = input.readBytes();
break;
}
case 138: {
- com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00008000;
- actionPlanKey_ = bs;
+ actionPlanKey_ = input.readBytes();
break;
}
case 146: {
- com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00010000;
- attributes_ = bs;
+ attributes_ = input.readBytes();
break;
}
case 154: {
- com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00020000;
- authorLogin_ = bs;
+ authorLogin_ = input.readBytes();
break;
}
case 160: {
@@ -2616,9 +2634,8 @@ public final class BatchReport {
break;
}
case 194: {
- com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00400000;
- diffFields_ = bs;
+ diffFields_ = input.readBytes();
break;
}
case 200: {
@@ -2640,7 +2657,7 @@ public final class BatchReport {
e.getMessage()).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
- tags_ = tags_.getUnmodifiableView();
+ tags_ = new com.google.protobuf.UnmodifiableLazyStringList(tags_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
@@ -2674,6 +2691,7 @@ public final class BatchReport {
}
private int bitField0_;
+ // optional string rule_repository = 1;
public static final int RULE_REPOSITORY_FIELD_NUMBER = 1;
private java.lang.Object ruleRepository_;
/**
@@ -2716,6 +2734,7 @@ public final class BatchReport {
}
}
+ // optional string rule_key = 2;
public static final int RULE_KEY_FIELD_NUMBER = 2;
private java.lang.Object ruleKey_;
/**
@@ -2758,6 +2777,7 @@ public final class BatchReport {
}
}
+ // optional int32 line = 3;
public static final int LINE_FIELD_NUMBER = 3;
private int line_;
/**
@@ -2773,6 +2793,7 @@ public final class BatchReport {
return line_;
}
+ // optional string msg = 4;
public static final int MSG_FIELD_NUMBER = 4;
private java.lang.Object msg_;
/**
@@ -2815,6 +2836,7 @@ public final class BatchReport {
}
}
+ // optional .Severity severity = 5;
public static final int SEVERITY_FIELD_NUMBER = 5;
private org.sonar.batch.protocol.Constants.Severity severity_;
/**
@@ -2830,12 +2852,13 @@ public final class BatchReport {
return severity_;
}
+ // repeated string tags = 6;
public static final int TAGS_FIELD_NUMBER = 6;
private com.google.protobuf.LazyStringList tags_;
/**
* <code>repeated string tags = 6;</code>
*/
- public com.google.protobuf.ProtocolStringList
+ public java.util.List<java.lang.String>
getTagsList() {
return tags_;
}
@@ -2859,6 +2882,7 @@ public final class BatchReport {
return tags_.getByteString(index);
}
+ // optional double effort_to_fix = 7;
public static final int EFFORT_TO_FIX_FIELD_NUMBER = 7;
private double effortToFix_;
/**
@@ -2882,6 +2906,7 @@ public final class BatchReport {
return effortToFix_;
}
+ // optional bool is_new = 8;
public static final int IS_NEW_FIELD_NUMBER = 8;
private boolean isNew_;
/**
@@ -2897,6 +2922,7 @@ public final class BatchReport {
return isNew_;
}
+ // optional string uuid = 9;
public static final int UUID_FIELD_NUMBER = 9;
private java.lang.Object uuid_;
/**
@@ -2939,6 +2965,7 @@ public final class BatchReport {
}
}
+ // optional int64 debt_in_minutes = 10;
public static final int DEBT_IN_MINUTES_FIELD_NUMBER = 10;
private long debtInMinutes_;
/**
@@ -2954,6 +2981,7 @@ public final class BatchReport {
return debtInMinutes_;
}
+ // optional string resolution = 11;
public static final int RESOLUTION_FIELD_NUMBER = 11;
private java.lang.Object resolution_;
/**
@@ -2996,6 +3024,7 @@ public final class BatchReport {
}
}
+ // optional string status = 12;
public static final int STATUS_FIELD_NUMBER = 12;
private java.lang.Object status_;
/**
@@ -3038,6 +3067,7 @@ public final class BatchReport {
}
}
+ // optional string checksum = 13;
public static final int CHECKSUM_FIELD_NUMBER = 13;
private java.lang.Object checksum_;
/**
@@ -3080,6 +3110,7 @@ public final class BatchReport {
}
}
+ // optional bool manual_severity = 14;
public static final int MANUAL_SEVERITY_FIELD_NUMBER = 14;
private boolean manualSeverity_;
/**
@@ -3095,6 +3126,7 @@ public final class BatchReport {
return manualSeverity_;
}
+ // optional string reporter = 15;
public static final int REPORTER_FIELD_NUMBER = 15;
private java.lang.Object reporter_;
/**
@@ -3137,6 +3169,7 @@ public final class BatchReport {
}
}
+ // optional string assignee = 16;
public static final int ASSIGNEE_FIELD_NUMBER = 16;
private java.lang.Object assignee_;
/**
@@ -3179,6 +3212,7 @@ public final class BatchReport {
}
}
+ // optional string action_plan_key = 17;
public static final int ACTION_PLAN_KEY_FIELD_NUMBER = 17;
private java.lang.Object actionPlanKey_;
/**
@@ -3221,6 +3255,7 @@ public final class BatchReport {
}
}
+ // optional string attributes = 18;
public static final int ATTRIBUTES_FIELD_NUMBER = 18;
private java.lang.Object attributes_;
/**
@@ -3263,6 +3298,7 @@ public final class BatchReport {
}
}
+ // optional string author_login = 19;
public static final int AUTHOR_LOGIN_FIELD_NUMBER = 19;
private java.lang.Object authorLogin_;
/**
@@ -3305,6 +3341,7 @@ public final class BatchReport {
}
}
+ // optional int64 creation_date = 20;
public static final int CREATION_DATE_FIELD_NUMBER = 20;
private long creationDate_;
/**
@@ -3320,6 +3357,7 @@ public final class BatchReport {
return creationDate_;
}
+ // optional int64 close_date = 21;
public static final int CLOSE_DATE_FIELD_NUMBER = 21;
private long closeDate_;
/**
@@ -3335,6 +3373,7 @@ public final class BatchReport {
return closeDate_;
}
+ // optional int64 update_date = 22;
public static final int UPDATE_DATE_FIELD_NUMBER = 22;
private long updateDate_;
/**
@@ -3350,6 +3389,7 @@ public final class BatchReport {
return updateDate_;
}
+ // optional int64 selected_at = 23;
public static final int SELECTED_AT_FIELD_NUMBER = 23;
private long selectedAt_;
/**
@@ -3365,6 +3405,7 @@ public final class BatchReport {
return selectedAt_;
}
+ // optional string diff_fields = 24;
public static final int DIFF_FIELDS_FIELD_NUMBER = 24;
private java.lang.Object diffFields_;
/**
@@ -3407,6 +3448,7 @@ public final class BatchReport {
}
}
+ // optional bool is_changed = 25;
public static final int IS_CHANGED_FIELD_NUMBER = 25;
private boolean isChanged_;
/**
@@ -3422,6 +3464,7 @@ public final class BatchReport {
return isChanged_;
}
+ // optional bool must_send_notification = 26;
public static final int MUST_SEND_NOTIFICATION_FIELD_NUMBER = 26;
private boolean mustSendNotification_;
/**
@@ -3468,8 +3511,7 @@ public final class BatchReport {
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
+ if (isInitialized != -1) return isInitialized == 1;
memoizedIsInitialized = 1;
return true;
@@ -3756,9 +3798,8 @@ public final class BatchReport {
* Protobuf type {@code Issue}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder> implements
- // @@protoc_insertion_point(builder_implements:Issue)
- org.sonar.batch.protocol.output.BatchReport.IssueOrBuilder {
+ com.google.protobuf.GeneratedMessage.Builder<Builder>
+ implements org.sonar.batch.protocol.output.BatchReport.IssueOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.sonar.batch.protocol.output.BatchReport.internal_static_Issue_descriptor;
@@ -3892,7 +3933,8 @@ public final class BatchReport {
}
result.severity_ = severity_;
if (((bitField0_ & 0x00000020) == 0x00000020)) {
- tags_ = tags_.getUnmodifiableView();
+ tags_ = new com.google.protobuf.UnmodifiableLazyStringList(
+ tags_);
bitField0_ = (bitField0_ & ~0x00000020);
}
result.tags_ = tags_;
@@ -4130,6 +4172,7 @@ public final class BatchReport {
}
private int bitField0_;
+ // optional string rule_repository = 1;
private java.lang.Object ruleRepository_ = "";
/**
* <code>optional string rule_repository = 1;</code>
@@ -4143,12 +4186,9 @@ public final class BatchReport {
public java.lang.String getRuleRepository() {
java.lang.Object ref = ruleRepository_;
if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- ruleRepository_ = s;
- }
+ java.lang.String s = ((com.google.protobuf.ByteString) ref)
+ .toStringUtf8();
+ ruleRepository_ = s;
return s;
} else {
return (java.lang.String) ref;
@@ -4206,6 +4246,7 @@ public final class BatchReport {
return this;
}
+ // optional string rule_key = 2;
private java.lang.Object ruleKey_ = "";
/**
* <code>optional string rule_key = 2;</code>
@@ -4219,12 +4260,9 @@ public final class BatchReport {
public java.lang.String getRuleKey() {
java.lang.Object ref = ruleKey_;
if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- ruleKey_ = s;
- }
+ java.lang.String s = ((com.google.protobuf.ByteString) ref)
+ .toStringUtf8();
+ ruleKey_ = s;
return s;
} else {
return (java.lang.String) ref;
@@ -4282,6 +4320,7 @@ public final class BatchReport {
return this;
}
+ // optional int32 line = 3;
private int line_ ;
/**
* <code>optional int32 line = 3;</code>
@@ -4314,6 +4353,7 @@ public final class BatchReport {
return this;
}
+ // optional string msg = 4;
private java.lang.Object msg_ = "";
/**
* <code>optional string msg = 4;</code>
@@ -4327,12 +4367,9 @@ public final class BatchReport {
public java.lang.String getMsg() {
java.lang.Object ref = msg_;
if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- msg_ = s;
- }
+ java.lang.String s = ((com.google.protobuf.ByteString) ref)
+ .toStringUtf8();
+ msg_ = s;
return s;
} else {
return (java.lang.String) ref;
@@ -4390,6 +4427,7 @@ public final class BatchReport {
return this;
}
+ // optional .Severity severity = 5;
private org.sonar.batch.protocol.Constants.Severity severity_ = org.sonar.batch.protocol.Constants.Severity.INFO;
/**
* <code>optional .Severity severity = 5;</code>
@@ -4425,6 +4463,7 @@ public final class BatchReport {
return this;
}
+ // repeated string tags = 6;
private com.google.protobuf.LazyStringList tags_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureTagsIsMutable() {
if (!((bitField0_ & 0x00000020) == 0x00000020)) {
@@ -4435,9 +4474,9 @@ public final class BatchReport {
/**
* <code>repeated string tags = 6;</code>
*/
- public com.google.protobuf.ProtocolStringList
+ public java.util.List<java.lang.String>
getTagsList() {
- return tags_.getUnmodifiableView();
+ return java.util.Collections.unmodifiableList(tags_);
}
/**
* <code>repeated string tags = 6;</code>
@@ -4490,8 +4529,7 @@ public final class BatchReport {
public Builder addAllTags(
java.lang.Iterable<java.lang.String> values) {
ensureTagsIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, tags_);
+ super.addAll(values, tags_);
onChanged();
return this;
}
@@ -4518,6 +4556,7 @@ public final class BatchReport {
return this;
}
+ // optional double effort_to_fix = 7;
private double effortToFix_ ;
/**
* <code>optional double effort_to_fix = 7;</code>
@@ -4566,6 +4605,7 @@ public final class BatchReport {
return this;
}
+ // optional bool is_new = 8;
private boolean isNew_ ;
/**
* <code>optional bool is_new = 8;</code>
@@ -4598,6 +4638,7 @@ public final class BatchReport {
return this;
}
+ // optional string uuid = 9;
private java.lang.Object uuid_ = "";
/**
* <code>optional string uuid = 9;</code>
@@ -4611,12 +4652,9 @@ public final class BatchReport {
public java.lang.String getUuid() {
java.lang.Object ref = uuid_;
if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- uuid_ = s;
- }
+ java.lang.String s = ((com.google.protobuf.ByteString) ref)
+ .toStringUtf8();
+ uuid_ = s;
return s;
} else {
return (java.lang.String) ref;
@@ -4674,6 +4712,7 @@ public final class BatchReport {
return this;
}
+ // optional int64 debt_in_minutes = 10;
private long debtInMinutes_ ;
/**
* <code>optional int64 debt_in_minutes = 10;</code>
@@ -4706,6 +4745,7 @@ public final class BatchReport {
return this;
}
+ // optional string resolution = 11;
private java.lang.Object resolution_ = "";
/**
* <code>optional string resolution = 11;</code>
@@ -4719,12 +4759,9 @@ public final class BatchReport {
public java.lang.String getResolution() {
java.lang.Object ref = resolution_;
if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- resolution_ = s;
- }
+ java.lang.String s = ((com.google.protobuf.ByteString) ref)
+ .toStringUtf8();
+ resolution_ = s;
return s;
} else {
return (java.lang.String) ref;
@@ -4782,6 +4819,7 @@ public final class BatchReport {
return this;
}
+ // optional string status = 12;
private java.lang.Object status_ = "";
/**
* <code>optional string status = 12;</code>
@@ -4795,12 +4833,9 @@ public final class BatchReport {
public java.lang.String getStatus() {
java.lang.Object ref = status_;
if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- status_ = s;
- }
+ java.lang.String s = ((com.google.protobuf.ByteString) ref)
+ .toStringUtf8();
+ status_ = s;
return s;
} else {
return (java.lang.String) ref;
@@ -4858,6 +4893,7 @@ public final class BatchReport {
return this;
}
+ // optional string checksum = 13;
private java.lang.Object checksum_ = "";
/**
* <code>optional string checksum = 13;</code>
@@ -4871,12 +4907,9 @@ public final class BatchReport {
public java.lang.String getChecksum() {
java.lang.Object ref = checksum_;
if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- checksum_ = s;
- }
+ java.lang.String s = ((com.google.protobuf.ByteString) ref)
+ .toStringUtf8();
+ checksum_ = s;
return s;
} else {
return (java.lang.String) ref;
@@ -4934,6 +4967,7 @@ public final class BatchReport {
return this;
}
+ // optional bool manual_severity = 14;
private boolean manualSeverity_ ;
/**
* <code>optional bool manual_severity = 14;</code>
@@ -4966,6 +5000,7 @@ public final class BatchReport {
return this;
}
+ // optional string reporter = 15;
private java.lang.Object reporter_ = "";
/**
* <code>optional string reporter = 15;</code>
@@ -4979,12 +5014,9 @@ public final class BatchReport {
public java.lang.String getReporter() {
java.lang.Object ref = reporter_;
if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- reporter_ = s;
- }
+ java.lang.String s = ((com.google.protobuf.ByteString) ref)
+ .toStringUtf8();
+ reporter_ = s;
return s;
} else {
return (java.lang.String) ref;
@@ -5042,6 +5074,7 @@ public final class BatchReport {
return this;
}
+ // optional string assignee = 16;
private java.lang.Object assignee_ = "";
/**
* <code>optional string assignee = 16;</code>
@@ -5055,12 +5088,9 @@ public final class BatchReport {
public java.lang.String getAssignee() {
java.lang.Object ref = assignee_;
if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- assignee_ = s;
- }
+ java.lang.String s = ((com.google.protobuf.ByteString) ref)
+ .toStringUtf8();
+ assignee_ = s;
return s;
} else {
return (java.lang.String) ref;
@@ -5118,6 +5148,7 @@ public final class BatchReport {
return this;
}
+ // optional string action_plan_key = 17;
private java.lang.Object actionPlanKey_ = "";
/**
* <code>optional string action_plan_key = 17;</code>
@@ -5131,12 +5162,9 @@ public final class BatchReport {
public java.lang.String getActionPlanKey() {
java.lang.Object ref = actionPlanKey_;
if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- actionPlanKey_ = s;
- }
+ java.lang.String s = ((com.google.protobuf.ByteString) ref)
+ .toStringUtf8();
+ actionPlanKey_ = s;
return s;
} else {
return (java.lang.String) ref;
@@ -5194,6 +5222,7 @@ public final class BatchReport {
return this;
}
+ // optional string attributes = 18;
private java.lang.Object attributes_ = "";
/**
* <code>optional string attributes = 18;</code>
@@ -5207,12 +5236,9 @@ public final class BatchReport {
public java.lang.String getAttributes() {
java.lang.Object ref = attributes_;
if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- attributes_ = s;
- }
+ java.lang.String s = ((com.google.protobuf.ByteString) ref)
+ .toStringUtf8();
+ attributes_ = s;
return s;
} else {
return (java.lang.String) ref;
@@ -5270,6 +5296,7 @@ public final class BatchReport {
return this;
}
+ // optional string author_login = 19;
private java.lang.Object authorLogin_ = "";
/**
* <code>optional string author_login = 19;</code>
@@ -5283,12 +5310,9 @@ public final class BatchReport {
public java.lang.String getAuthorLogin() {
java.lang.Object ref = authorLogin_;
if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- authorLogin_ = s;
- }
+ java.lang.String s = ((com.google.protobuf.ByteString) ref)
+ .toStringUtf8();
+ authorLogin_ = s;
return s;
} else {
return (java.lang.String) ref;
@@ -5346,6 +5370,7 @@ public final class BatchReport {
return this;
}
+ // optional int64 creation_date = 20;
private long creationDate_ ;
/**
* <code>optional int64 creation_date = 20;</code>
@@ -5378,6 +5403,7 @@ public final class BatchReport {
return this;
}
+ // optional int64 close_date = 21;
private long closeDate_ ;
/**
* <code>optional int64 close_date = 21;</code>
@@ -5410,6 +5436,7 @@ public final class BatchReport {
return this;
}
+ // optional int64 update_date = 22;
private long updateDate_ ;
/**
* <code>optional int64 update_date = 22;</code>
@@ -5442,6 +5469,7 @@ public final class BatchReport {
return this;
}
+ // optional int64 selected_at = 23;
private long selectedAt_ ;
/**
* <code>optional int64 selected_at = 23;</code>
@@ -5474,6 +5502,7 @@ public final class BatchReport {
return this;
}
+ // optional string diff_fields = 24;
private java.lang.Object diffFields_ = "";
/**
* <code>optional string diff_fields = 24;</code>
@@ -5487,12 +5516,9 @@ public final class BatchReport {
public java.lang.String getDiffFields() {
java.lang.Object ref = diffFields_;
if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- diffFields_ = s;
- }
+ java.lang.String s = ((com.google.protobuf.ByteString) ref)
+ .toStringUtf8();
+ diffFields_ = s;
return s;
} else {
return (java.lang.String) ref;
@@ -5550,6 +5576,7 @@ public final class BatchReport {
return this;
}
+ // optional bool is_changed = 25;
private boolean isChanged_ ;
/**
* <code>optional bool is_changed = 25;</code>
@@ -5582,6 +5609,7 @@ public final class BatchReport {
return this;
}
+ // optional bool must_send_notification = 26;
private boolean mustSendNotification_ ;
/**
* <code>optional bool must_send_notification = 26;</code>
@@ -5625,10 +5653,10 @@ public final class BatchReport {
// @@protoc_insertion_point(class_scope:Issue)
}
- public interface IssuesOrBuilder extends
- // @@protoc_insertion_point(interface_extends:Issues)
- com.google.protobuf.MessageOrBuilder {
+ public interface IssuesOrBuilder
+ extends com.google.protobuf.MessageOrBuilder {
+ // optional int32 component_ref = 1;
/**
* <code>optional int32 component_ref = 1;</code>
*/
@@ -5638,6 +5666,7 @@ public final class BatchReport {
*/
int getComponentRef();
+ // repeated .Issue list = 2;
/**
* <code>repeated .Issue list = 2;</code>
*/
@@ -5666,9 +5695,8 @@ public final class BatchReport {
* Protobuf type {@code Issues}
*/
public static final class Issues extends
- com.google.protobuf.GeneratedMessage implements
- // @@protoc_insertion_point(message_implements:Issues)
- IssuesOrBuilder {
+ com.google.protobuf.GeneratedMessage
+ implements IssuesOrBuilder {
// Use Issues.newBuilder() to construct.
private Issues(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
@@ -5770,6 +5798,7 @@ public final class BatchReport {
}
private int bitField0_;
+ // optional int32 component_ref = 1;
public static final int COMPONENT_REF_FIELD_NUMBER = 1;
private int componentRef_;
/**
@@ -5785,6 +5814,7 @@ public final class BatchReport {
return componentRef_;
}
+ // repeated .Issue list = 2;
public static final int LIST_FIELD_NUMBER = 2;
private java.util.List<org.sonar.batch.protocol.output.BatchReport.Issue> list_;
/**
@@ -5827,8 +5857,7 @@ public final class BatchReport {
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
+ if (isInitialized != -1) return isInitialized == 1;
memoizedIsInitialized = 1;
return true;
@@ -5942,9 +5971,8 @@ public final class BatchReport {
* Protobuf type {@code Issues}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder> implements
- // @@protoc_insertion_point(builder_implements:Issues)
- org.sonar.batch.protocol.output.BatchReport.IssuesOrBuilder {
+ com.google.protobuf.GeneratedMessage.Builder<Builder>
+ implements org.sonar.batch.protocol.output.BatchReport.IssuesOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.sonar.batch.protocol.output.BatchReport.internal_static_Issues_descriptor;
@@ -6099,6 +6127,7 @@ public final class BatchReport {
}
private int bitField0_;
+ // optional int32 component_ref = 1;
private int componentRef_ ;
/**
* <code>optional int32 component_ref = 1;</code>
@@ -6131,6 +6160,7 @@ public final class BatchReport {
return this;
}
+ // repeated .Issue list = 2;
private java.util.List<org.sonar.batch.protocol.output.BatchReport.Issue> list_ =
java.util.Collections.emptyList();
private void ensureListIsMutable() {
@@ -6272,8 +6302,7 @@ public final class BatchReport {
java.lang.Iterable<? extends org.sonar.batch.protocol.output.BatchReport.Issue> values) {
if (listBuilder_ == null) {
ensureListIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, list_);
+ super.addAll(values, list_);
onChanged();
} else {
listBuilder_.addAllMessages(values);
@@ -6382,22 +6411,22 @@ public final class BatchReport {
// @@protoc_insertion_point(class_scope:Issues)
}
- private static final com.google.protobuf.Descriptors.Descriptor
+ private static com.google.protobuf.Descriptors.Descriptor
internal_static_Metadata_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_Metadata_fieldAccessorTable;
- private static final com.google.protobuf.Descriptors.Descriptor
+ private static com.google.protobuf.Descriptors.Descriptor
internal_static_Component_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_Component_fieldAccessorTable;
- private static final com.google.protobuf.Descriptors.Descriptor
+ private static com.google.protobuf.Descriptors.Descriptor
internal_static_Issue_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_Issue_fieldAccessorTable;
- private static final com.google.protobuf.Descriptors.Descriptor
+ private static com.google.protobuf.Descriptors.Descriptor
internal_static_Issues_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
@@ -6437,43 +6466,42 @@ public final class BatchReport {
"ocol.outputH\001"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
- new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
- public com.google.protobuf.ExtensionRegistry assignDescriptors(
- com.google.protobuf.Descriptors.FileDescriptor root) {
- descriptor = root;
- return null;
- }
- };
+ new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
+ public com.google.protobuf.ExtensionRegistry assignDescriptors(
+ com.google.protobuf.Descriptors.FileDescriptor root) {
+ descriptor = root;
+ internal_static_Metadata_descriptor =
+ getDescriptor().getMessageTypes().get(0);
+ internal_static_Metadata_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_Metadata_descriptor,
+ new java.lang.String[] { "AnalysisDate", "ProjectKey", "RootComponentRef", });
+ internal_static_Component_descriptor =
+ getDescriptor().getMessageTypes().get(1);
+ internal_static_Component_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_Component_descriptor,
+ new java.lang.String[] { "Ref", "Path", "Name", "Type", "IsTest", "Language", "ChildRefs", "SnapshotId", "Uuid", });
+ internal_static_Issue_descriptor =
+ getDescriptor().getMessageTypes().get(2);
+ internal_static_Issue_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_Issue_descriptor,
+ new java.lang.String[] { "RuleRepository", "RuleKey", "Line", "Msg", "Severity", "Tags", "EffortToFix", "IsNew", "Uuid", "DebtInMinutes", "Resolution", "Status", "Checksum", "ManualSeverity", "Reporter", "Assignee", "ActionPlanKey", "Attributes", "AuthorLogin", "CreationDate", "CloseDate", "UpdateDate", "SelectedAt", "DiffFields", "IsChanged", "MustSendNotification", });
+ internal_static_Issues_descriptor =
+ getDescriptor().getMessageTypes().get(3);
+ internal_static_Issues_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_Issues_descriptor,
+ new java.lang.String[] { "ComponentRef", "List", });
+ return null;
+ }
+ };
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
org.sonar.batch.protocol.Constants.getDescriptor(),
}, assigner);
- internal_static_Metadata_descriptor =
- getDescriptor().getMessageTypes().get(0);
- internal_static_Metadata_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_Metadata_descriptor,
- new java.lang.String[] { "AnalysisDate", "ProjectKey", "RootComponentRef", });
- internal_static_Component_descriptor =
- getDescriptor().getMessageTypes().get(1);
- internal_static_Component_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_Component_descriptor,
- new java.lang.String[] { "Ref", "Path", "Name", "Type", "IsTest", "Language", "ChildRefs", "SnapshotId", "Uuid", });
- internal_static_Issue_descriptor =
- getDescriptor().getMessageTypes().get(2);
- internal_static_Issue_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_Issue_descriptor,
- new java.lang.String[] { "RuleRepository", "RuleKey", "Line", "Msg", "Severity", "Tags", "EffortToFix", "IsNew", "Uuid", "DebtInMinutes", "Resolution", "Status", "Checksum", "ManualSeverity", "Reporter", "Assignee", "ActionPlanKey", "Attributes", "AuthorLogin", "CreationDate", "CloseDate", "UpdateDate", "SelectedAt", "DiffFields", "IsChanged", "MustSendNotification", });
- internal_static_Issues_descriptor =
- getDescriptor().getMessageTypes().get(3);
- internal_static_Issues_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_Issues_descriptor,
- new java.lang.String[] { "ComponentRef", "List", });
- org.sonar.batch.protocol.Constants.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
diff --git a/sonar-batch-protocol/src/main/gen-java/org/sonar/server/source/db/FileSourceDb.java b/sonar-batch-protocol/src/main/gen-java/org/sonar/server/source/db/FileSourceDb.java
index a1b40ec8fbf..523344bac28 100644
--- a/sonar-batch-protocol/src/main/gen-java/org/sonar/server/source/db/FileSourceDb.java
+++ b/sonar-batch-protocol/src/main/gen-java/org/sonar/server/source/db/FileSourceDb.java
@@ -8,10 +8,10 @@ public final class FileSourceDb {
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
}
- public interface LineOrBuilder extends
- // @@protoc_insertion_point(interface_extends:org.sonar.server.source.db.Line)
- com.google.protobuf.MessageOrBuilder {
+ public interface LineOrBuilder
+ extends com.google.protobuf.MessageOrBuilder {
+ // optional int32 line = 1;
/**
* <code>optional int32 line = 1;</code>
*/
@@ -21,6 +21,7 @@ public final class FileSourceDb {
*/
int getLine();
+ // optional string source = 2;
/**
* <code>optional string source = 2;</code>
*/
@@ -35,6 +36,7 @@ public final class FileSourceDb {
com.google.protobuf.ByteString
getSourceBytes();
+ // optional string scm_revision = 3;
/**
* <code>optional string scm_revision = 3;</code>
*
@@ -61,6 +63,7 @@ public final class FileSourceDb {
com.google.protobuf.ByteString
getScmRevisionBytes();
+ // optional string scm_author = 4;
/**
* <code>optional string scm_author = 4;</code>
*/
@@ -75,6 +78,7 @@ public final class FileSourceDb {
com.google.protobuf.ByteString
getScmAuthorBytes();
+ // optional int64 scm_date = 5;
/**
* <code>optional int64 scm_date = 5;</code>
*/
@@ -84,6 +88,7 @@ public final class FileSourceDb {
*/
long getScmDate();
+ // optional int32 ut_line_hits = 6;
/**
* <code>optional int32 ut_line_hits = 6;</code>
*
@@ -101,6 +106,7 @@ public final class FileSourceDb {
*/
int getUtLineHits();
+ // optional int32 ut_conditions = 7;
/**
* <code>optional int32 ut_conditions = 7;</code>
*/
@@ -110,6 +116,7 @@ public final class FileSourceDb {
*/
int getUtConditions();
+ // optional int32 ut_covered_conditions = 8;
/**
* <code>optional int32 ut_covered_conditions = 8;</code>
*/
@@ -119,6 +126,7 @@ public final class FileSourceDb {
*/
int getUtCoveredConditions();
+ // optional int32 it_line_hits = 9;
/**
* <code>optional int32 it_line_hits = 9;</code>
*
@@ -136,6 +144,7 @@ public final class FileSourceDb {
*/
int getItLineHits();
+ // optional int32 it_conditions = 10;
/**
* <code>optional int32 it_conditions = 10;</code>
*/
@@ -145,6 +154,7 @@ public final class FileSourceDb {
*/
int getItConditions();
+ // optional int32 it_covered_conditions = 11;
/**
* <code>optional int32 it_covered_conditions = 11;</code>
*/
@@ -154,6 +164,7 @@ public final class FileSourceDb {
*/
int getItCoveredConditions();
+ // optional int32 overall_line_hits = 12;
/**
* <code>optional int32 overall_line_hits = 12;</code>
*
@@ -171,6 +182,7 @@ public final class FileSourceDb {
*/
int getOverallLineHits();
+ // optional int32 overall_conditions = 13;
/**
* <code>optional int32 overall_conditions = 13;</code>
*/
@@ -180,6 +192,7 @@ public final class FileSourceDb {
*/
int getOverallConditions();
+ // optional int32 overall_covered_conditions = 14;
/**
* <code>optional int32 overall_covered_conditions = 14;</code>
*/
@@ -189,6 +202,7 @@ public final class FileSourceDb {
*/
int getOverallCoveredConditions();
+ // optional string highlighting = 15;
/**
* <code>optional string highlighting = 15;</code>
*/
@@ -203,6 +217,7 @@ public final class FileSourceDb {
com.google.protobuf.ByteString
getHighlightingBytes();
+ // optional string symbols = 16;
/**
* <code>optional string symbols = 16;</code>
*/
@@ -217,6 +232,7 @@ public final class FileSourceDb {
com.google.protobuf.ByteString
getSymbolsBytes();
+ // repeated int32 duplications = 17 [packed = true];
/**
* <code>repeated int32 duplications = 17 [packed = true];</code>
*/
@@ -234,9 +250,8 @@ public final class FileSourceDb {
* Protobuf type {@code org.sonar.server.source.db.Line}
*/
public static final class Line extends
- com.google.protobuf.GeneratedMessage implements
- // @@protoc_insertion_point(message_implements:org.sonar.server.source.db.Line)
- LineOrBuilder {
+ com.google.protobuf.GeneratedMessage
+ implements LineOrBuilder {
// Use Line.newBuilder() to construct.
private Line(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
@@ -288,21 +303,18 @@ public final class FileSourceDb {
break;
}
case 18: {
- com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
- source_ = bs;
+ source_ = input.readBytes();
break;
}
case 26: {
- com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000004;
- scmRevision_ = bs;
+ scmRevision_ = input.readBytes();
break;
}
case 34: {
- com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000008;
- scmAuthor_ = bs;
+ scmAuthor_ = input.readBytes();
break;
}
case 40: {
@@ -356,15 +368,13 @@ public final class FileSourceDb {
break;
}
case 122: {
- com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00004000;
- highlighting_ = bs;
+ highlighting_ = input.readBytes();
break;
}
case 130: {
- com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00008000;
- symbols_ = bs;
+ symbols_ = input.readBytes();
break;
}
case 136: {
@@ -431,6 +441,7 @@ public final class FileSourceDb {
}
private int bitField0_;
+ // optional int32 line = 1;
public static final int LINE_FIELD_NUMBER = 1;
private int line_;
/**
@@ -446,6 +457,7 @@ public final class FileSourceDb {
return line_;
}
+ // optional string source = 2;
public static final int SOURCE_FIELD_NUMBER = 2;
private java.lang.Object source_;
/**
@@ -488,6 +500,7 @@ public final class FileSourceDb {
}
}
+ // optional string scm_revision = 3;
public static final int SCM_REVISION_FIELD_NUMBER = 3;
private java.lang.Object scmRevision_;
/**
@@ -542,6 +555,7 @@ public final class FileSourceDb {
}
}
+ // optional string scm_author = 4;
public static final int SCM_AUTHOR_FIELD_NUMBER = 4;
private java.lang.Object scmAuthor_;
/**
@@ -584,6 +598,7 @@ public final class FileSourceDb {
}
}
+ // optional int64 scm_date = 5;
public static final int SCM_DATE_FIELD_NUMBER = 5;
private long scmDate_;
/**
@@ -599,6 +614,7 @@ public final class FileSourceDb {
return scmDate_;
}
+ // optional int32 ut_line_hits = 6;
public static final int UT_LINE_HITS_FIELD_NUMBER = 6;
private int utLineHits_;
/**
@@ -622,6 +638,7 @@ public final class FileSourceDb {
return utLineHits_;
}
+ // optional int32 ut_conditions = 7;
public static final int UT_CONDITIONS_FIELD_NUMBER = 7;
private int utConditions_;
/**
@@ -637,6 +654,7 @@ public final class FileSourceDb {
return utConditions_;
}
+ // optional int32 ut_covered_conditions = 8;
public static final int UT_COVERED_CONDITIONS_FIELD_NUMBER = 8;
private int utCoveredConditions_;
/**
@@ -652,6 +670,7 @@ public final class FileSourceDb {
return utCoveredConditions_;
}
+ // optional int32 it_line_hits = 9;
public static final int IT_LINE_HITS_FIELD_NUMBER = 9;
private int itLineHits_;
/**
@@ -675,6 +694,7 @@ public final class FileSourceDb {
return itLineHits_;
}
+ // optional int32 it_conditions = 10;
public static final int IT_CONDITIONS_FIELD_NUMBER = 10;
private int itConditions_;
/**
@@ -690,6 +710,7 @@ public final class FileSourceDb {
return itConditions_;
}
+ // optional int32 it_covered_conditions = 11;
public static final int IT_COVERED_CONDITIONS_FIELD_NUMBER = 11;
private int itCoveredConditions_;
/**
@@ -705,6 +726,7 @@ public final class FileSourceDb {
return itCoveredConditions_;
}
+ // optional int32 overall_line_hits = 12;
public static final int OVERALL_LINE_HITS_FIELD_NUMBER = 12;
private int overallLineHits_;
/**
@@ -728,6 +750,7 @@ public final class FileSourceDb {
return overallLineHits_;
}
+ // optional int32 overall_conditions = 13;
public static final int OVERALL_CONDITIONS_FIELD_NUMBER = 13;
private int overallConditions_;
/**
@@ -743,6 +766,7 @@ public final class FileSourceDb {
return overallConditions_;
}
+ // optional int32 overall_covered_conditions = 14;
public static final int OVERALL_COVERED_CONDITIONS_FIELD_NUMBER = 14;
private int overallCoveredConditions_;
/**
@@ -758,6 +782,7 @@ public final class FileSourceDb {
return overallCoveredConditions_;
}
+ // optional string highlighting = 15;
public static final int HIGHLIGHTING_FIELD_NUMBER = 15;
private java.lang.Object highlighting_;
/**
@@ -800,6 +825,7 @@ public final class FileSourceDb {
}
}
+ // optional string symbols = 16;
public static final int SYMBOLS_FIELD_NUMBER = 16;
private java.lang.Object symbols_;
/**
@@ -842,6 +868,7 @@ public final class FileSourceDb {
}
}
+ // repeated int32 duplications = 17 [packed = true];
public static final int DUPLICATIONS_FIELD_NUMBER = 17;
private java.util.List<java.lang.Integer> duplications_;
/**
@@ -887,8 +914,7 @@ public final class FileSourceDb {
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
+ if (isInitialized != -1) return isInitialized == 1;
memoizedIsInitialized = 1;
return true;
@@ -1121,9 +1147,8 @@ public final class FileSourceDb {
* Protobuf type {@code org.sonar.server.source.db.Line}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder> implements
- // @@protoc_insertion_point(builder_implements:org.sonar.server.source.db.Line)
- org.sonar.server.source.db.FileSourceDb.LineOrBuilder {
+ com.google.protobuf.GeneratedMessage.Builder<Builder>
+ implements org.sonar.server.source.db.FileSourceDb.LineOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.sonar.server.source.db.FileSourceDb.internal_static_org_sonar_server_source_db_Line_descriptor;
@@ -1398,6 +1423,7 @@ public final class FileSourceDb {
}
private int bitField0_;
+ // optional int32 line = 1;
private int line_ ;
/**
* <code>optional int32 line = 1;</code>
@@ -1430,6 +1456,7 @@ public final class FileSourceDb {
return this;
}
+ // optional string source = 2;
private java.lang.Object source_ = "";
/**
* <code>optional string source = 2;</code>
@@ -1443,12 +1470,9 @@ public final class FileSourceDb {
public java.lang.String getSource() {
java.lang.Object ref = source_;
if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- source_ = s;
- }
+ java.lang.String s = ((com.google.protobuf.ByteString) ref)
+ .toStringUtf8();
+ source_ = s;
return s;
} else {
return (java.lang.String) ref;
@@ -1506,6 +1530,7 @@ public final class FileSourceDb {
return this;
}
+ // optional string scm_revision = 3;
private java.lang.Object scmRevision_ = "";
/**
* <code>optional string scm_revision = 3;</code>
@@ -1527,12 +1552,9 @@ public final class FileSourceDb {
public java.lang.String getScmRevision() {
java.lang.Object ref = scmRevision_;
if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- scmRevision_ = s;
- }
+ java.lang.String s = ((com.google.protobuf.ByteString) ref)
+ .toStringUtf8();
+ scmRevision_ = s;
return s;
} else {
return (java.lang.String) ref;
@@ -1606,6 +1628,7 @@ public final class FileSourceDb {
return this;
}
+ // optional string scm_author = 4;
private java.lang.Object scmAuthor_ = "";
/**
* <code>optional string scm_author = 4;</code>
@@ -1619,12 +1642,9 @@ public final class FileSourceDb {
public java.lang.String getScmAuthor() {
java.lang.Object ref = scmAuthor_;
if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- scmAuthor_ = s;
- }
+ java.lang.String s = ((com.google.protobuf.ByteString) ref)
+ .toStringUtf8();
+ scmAuthor_ = s;
return s;
} else {
return (java.lang.String) ref;
@@ -1682,6 +1702,7 @@ public final class FileSourceDb {
return this;
}
+ // optional int64 scm_date = 5;
private long scmDate_ ;
/**
* <code>optional int64 scm_date = 5;</code>
@@ -1714,6 +1735,7 @@ public final class FileSourceDb {
return this;
}
+ // optional int32 ut_line_hits = 6;
private int utLineHits_ ;
/**
* <code>optional int32 ut_line_hits = 6;</code>
@@ -1762,6 +1784,7 @@ public final class FileSourceDb {
return this;
}
+ // optional int32 ut_conditions = 7;
private int utConditions_ ;
/**
* <code>optional int32 ut_conditions = 7;</code>
@@ -1794,6 +1817,7 @@ public final class FileSourceDb {
return this;
}
+ // optional int32 ut_covered_conditions = 8;
private int utCoveredConditions_ ;
/**
* <code>optional int32 ut_covered_conditions = 8;</code>
@@ -1826,6 +1850,7 @@ public final class FileSourceDb {
return this;
}
+ // optional int32 it_line_hits = 9;
private int itLineHits_ ;
/**
* <code>optional int32 it_line_hits = 9;</code>
@@ -1874,6 +1899,7 @@ public final class FileSourceDb {
return this;
}
+ // optional int32 it_conditions = 10;
private int itConditions_ ;
/**
* <code>optional int32 it_conditions = 10;</code>
@@ -1906,6 +1932,7 @@ public final class FileSourceDb {
return this;
}
+ // optional int32 it_covered_conditions = 11;
private int itCoveredConditions_ ;
/**
* <code>optional int32 it_covered_conditions = 11;</code>
@@ -1938,6 +1965,7 @@ public final class FileSourceDb {
return this;
}
+ // optional int32 overall_line_hits = 12;
private int overallLineHits_ ;
/**
* <code>optional int32 overall_line_hits = 12;</code>
@@ -1986,6 +2014,7 @@ public final class FileSourceDb {
return this;
}
+ // optional int32 overall_conditions = 13;
private int overallConditions_ ;
/**
* <code>optional int32 overall_conditions = 13;</code>
@@ -2018,6 +2047,7 @@ public final class FileSourceDb {
return this;
}
+ // optional int32 overall_covered_conditions = 14;
private int overallCoveredConditions_ ;
/**
* <code>optional int32 overall_covered_conditions = 14;</code>
@@ -2050,6 +2080,7 @@ public final class FileSourceDb {
return this;
}
+ // optional string highlighting = 15;
private java.lang.Object highlighting_ = "";
/**
* <code>optional string highlighting = 15;</code>
@@ -2063,12 +2094,9 @@ public final class FileSourceDb {
public java.lang.String getHighlighting() {
java.lang.Object ref = highlighting_;
if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- highlighting_ = s;
- }
+ java.lang.String s = ((com.google.protobuf.ByteString) ref)
+ .toStringUtf8();
+ highlighting_ = s;
return s;
} else {
return (java.lang.String) ref;
@@ -2126,6 +2154,7 @@ public final class FileSourceDb {
return this;
}
+ // optional string symbols = 16;
private java.lang.Object symbols_ = "";
/**
* <code>optional string symbols = 16;</code>
@@ -2139,12 +2168,9 @@ public final class FileSourceDb {
public java.lang.String getSymbols() {
java.lang.Object ref = symbols_;
if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- symbols_ = s;
- }
+ java.lang.String s = ((com.google.protobuf.ByteString) ref)
+ .toStringUtf8();
+ symbols_ = s;
return s;
} else {
return (java.lang.String) ref;
@@ -2202,6 +2228,7 @@ public final class FileSourceDb {
return this;
}
+ // repeated int32 duplications = 17 [packed = true];
private java.util.List<java.lang.Integer> duplications_ = java.util.Collections.emptyList();
private void ensureDuplicationsIsMutable() {
if (!((bitField0_ & 0x00010000) == 0x00010000)) {
@@ -2253,8 +2280,7 @@ public final class FileSourceDb {
public Builder addAllDuplications(
java.lang.Iterable<? extends java.lang.Integer> values) {
ensureDuplicationsIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, duplications_);
+ super.addAll(values, duplications_);
onChanged();
return this;
}
@@ -2279,10 +2305,10 @@ public final class FileSourceDb {
// @@protoc_insertion_point(class_scope:org.sonar.server.source.db.Line)
}
- public interface DataOrBuilder extends
- // @@protoc_insertion_point(interface_extends:org.sonar.server.source.db.Data)
- com.google.protobuf.MessageOrBuilder {
+ public interface DataOrBuilder
+ extends com.google.protobuf.MessageOrBuilder {
+ // repeated .org.sonar.server.source.db.Line lines = 1;
/**
* <code>repeated .org.sonar.server.source.db.Line lines = 1;</code>
*/
@@ -2311,9 +2337,8 @@ public final class FileSourceDb {
* Protobuf type {@code org.sonar.server.source.db.Data}
*/
public static final class Data extends
- com.google.protobuf.GeneratedMessage implements
- // @@protoc_insertion_point(message_implements:org.sonar.server.source.db.Data)
- DataOrBuilder {
+ com.google.protobuf.GeneratedMessage
+ implements DataOrBuilder {
// Use Data.newBuilder() to construct.
private Data(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
@@ -2409,6 +2434,7 @@ public final class FileSourceDb {
return PARSER;
}
+ // repeated .org.sonar.server.source.db.Line lines = 1;
public static final int LINES_FIELD_NUMBER = 1;
private java.util.List<org.sonar.server.source.db.FileSourceDb.Line> lines_;
/**
@@ -2450,8 +2476,7 @@ public final class FileSourceDb {
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
+ if (isInitialized != -1) return isInitialized == 1;
memoizedIsInitialized = 1;
return true;
@@ -2558,9 +2583,8 @@ public final class FileSourceDb {
* Protobuf type {@code org.sonar.server.source.db.Data}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder> implements
- // @@protoc_insertion_point(builder_implements:org.sonar.server.source.db.Data)
- org.sonar.server.source.db.FileSourceDb.DataOrBuilder {
+ com.google.protobuf.GeneratedMessage.Builder<Builder>
+ implements org.sonar.server.source.db.FileSourceDb.DataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.sonar.server.source.db.FileSourceDb.internal_static_org_sonar_server_source_db_Data_descriptor;
@@ -2704,6 +2728,7 @@ public final class FileSourceDb {
}
private int bitField0_;
+ // repeated .org.sonar.server.source.db.Line lines = 1;
private java.util.List<org.sonar.server.source.db.FileSourceDb.Line> lines_ =
java.util.Collections.emptyList();
private void ensureLinesIsMutable() {
@@ -2845,8 +2870,7 @@ public final class FileSourceDb {
java.lang.Iterable<? extends org.sonar.server.source.db.FileSourceDb.Line> values) {
if (linesBuilder_ == null) {
ensureLinesIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, lines_);
+ super.addAll(values, lines_);
onChanged();
} else {
linesBuilder_.addAllMessages(values);
@@ -2955,12 +2979,12 @@ public final class FileSourceDb {
// @@protoc_insertion_point(class_scope:org.sonar.server.source.db.Data)
}
- private static final com.google.protobuf.Descriptors.Descriptor
+ private static com.google.protobuf.Descriptors.Descriptor
internal_static_org_sonar_server_source_db_Line_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_org_sonar_server_source_db_Line_fieldAccessorTable;
- private static final com.google.protobuf.Descriptors.Descriptor
+ private static com.google.protobuf.Descriptors.Descriptor
internal_static_org_sonar_server_source_db_Data_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
@@ -2989,29 +3013,29 @@ public final class FileSourceDb {
"2 .org.sonar.server.source.db.LineB\002H\001"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
- new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
- public com.google.protobuf.ExtensionRegistry assignDescriptors(
- com.google.protobuf.Descriptors.FileDescriptor root) {
- descriptor = root;
- return null;
- }
- };
+ new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
+ public com.google.protobuf.ExtensionRegistry assignDescriptors(
+ com.google.protobuf.Descriptors.FileDescriptor root) {
+ descriptor = root;
+ internal_static_org_sonar_server_source_db_Line_descriptor =
+ getDescriptor().getMessageTypes().get(0);
+ internal_static_org_sonar_server_source_db_Line_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_org_sonar_server_source_db_Line_descriptor,
+ new java.lang.String[] { "Line", "Source", "ScmRevision", "ScmAuthor", "ScmDate", "UtLineHits", "UtConditions", "UtCoveredConditions", "ItLineHits", "ItConditions", "ItCoveredConditions", "OverallLineHits", "OverallConditions", "OverallCoveredConditions", "Highlighting", "Symbols", "Duplications", });
+ internal_static_org_sonar_server_source_db_Data_descriptor =
+ getDescriptor().getMessageTypes().get(1);
+ internal_static_org_sonar_server_source_db_Data_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_org_sonar_server_source_db_Data_descriptor,
+ new java.lang.String[] { "Lines", });
+ return null;
+ }
+ };
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
}, assigner);
- internal_static_org_sonar_server_source_db_Line_descriptor =
- getDescriptor().getMessageTypes().get(0);
- internal_static_org_sonar_server_source_db_Line_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_org_sonar_server_source_db_Line_descriptor,
- new java.lang.String[] { "Line", "Source", "ScmRevision", "ScmAuthor", "ScmDate", "UtLineHits", "UtConditions", "UtCoveredConditions", "ItLineHits", "ItConditions", "ItCoveredConditions", "OverallLineHits", "OverallConditions", "OverallCoveredConditions", "Highlighting", "Symbols", "Duplications", });
- internal_static_org_sonar_server_source_db_Data_descriptor =
- getDescriptor().getMessageTypes().get(1);
- internal_static_org_sonar_server_source_db_Data_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_org_sonar_server_source_db_Data_descriptor,
- new java.lang.String[] { "Lines", });
}
// @@protoc_insertion_point(outer_class_scope)
diff --git a/sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/input/issues/PreviousIssue.java b/sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/input/issues/PreviousIssue.java
deleted file mode 100644
index d4d8a5ca7c9..00000000000
--- a/sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/input/issues/PreviousIssue.java
+++ /dev/null
@@ -1,158 +0,0 @@
-/*
- * SonarQube, open source software quality management tool.
- * Copyright (C) 2008-2014 SonarSource
- * mailto:contact AT sonarsource DOT com
- *
- * SonarQube is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 3 of the License, or (at your option) any later version.
- *
- * SonarQube is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
-package org.sonar.batch.protocol.input.issues;
-
-import javax.annotation.Nullable;
-
-import java.io.Serializable;
-import java.util.Date;
-
-/**
- * Issues from previous analysis. USed by local issue tracking.
- */
-public class PreviousIssue implements Serializable {
-
- private String key;
- private String componentKey;
- private String ruleKey;
- private String ruleRepo;
- private Integer line;
- private String message;
- private String severity;
- private boolean manualSeverity;
- private String resolution;
- private String status;
- private String checksum;
- private String assigneeLogin;
- private Date creationDate;
-
- public PreviousIssue setKey(String key) {
- this.key = key;
- return this;
- }
-
- public String key() {
- return key;
- }
-
- public PreviousIssue setComponentKey(String key) {
- this.componentKey = key;
- return this;
- }
-
- public String componentKey() {
- return componentKey;
- }
-
- public PreviousIssue setLine(Integer line) {
- this.line = line;
- return this;
- }
-
- public Integer line() {
- return line;
- }
-
- public PreviousIssue setMessage(String message) {
- this.message = message;
- return this;
- }
-
- public String message() {
- return message;
- }
-
- public PreviousIssue setResolution(String resolution) {
- this.resolution = resolution;
- return this;
- }
-
- public String resolution() {
- return resolution;
- }
-
- public PreviousIssue setStatus(String status) {
- this.status = status;
- return this;
- }
-
- public String status() {
- return status;
- }
-
- public PreviousIssue setSeverity(@Nullable String severity) {
- this.severity = severity;
- return this;
- }
-
- public String severity() {
- return severity;
- }
-
- public boolean isManualSeverity() {
- return manualSeverity;
- }
-
- public PreviousIssue setManualSeverity(boolean manualSeverity) {
- this.manualSeverity = manualSeverity;
- return this;
- }
-
- public PreviousIssue setChecksum(String checksum) {
- this.checksum = checksum;
- return this;
- }
-
- public String checksum() {
- return checksum;
- }
-
- public PreviousIssue setAssigneeLogin(String assigneeLogin) {
- this.assigneeLogin = assigneeLogin;
- return this;
- }
-
- public String assigneeLogin() {
- return assigneeLogin;
- }
-
- public PreviousIssue setRuleKey(String ruleRepo, String ruleKey) {
- this.ruleRepo = ruleRepo;
- this.ruleKey = ruleKey;
- return this;
- }
-
- public String ruleRepo() {
- return ruleRepo;
- }
-
- public String ruleKey() {
- return ruleKey;
- }
-
- public Date creationDate() {
- return creationDate;
- }
-
- public PreviousIssue setCreationDate(Date creationDate) {
- this.creationDate = creationDate;
- return this;
- }
-}
diff --git a/sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/input/issues/PreviousIssueHelper.java b/sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/input/issues/PreviousIssueHelper.java
deleted file mode 100644
index 056b0077eea..00000000000
--- a/sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/input/issues/PreviousIssueHelper.java
+++ /dev/null
@@ -1,129 +0,0 @@
-/*
- * SonarQube, open source software quality management tool.
- * Copyright (C) 2008-2014 SonarSource
- * mailto:contact AT sonarsource DOT com
- *
- * SonarQube is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 3 of the License, or (at your option) any later version.
- *
- * SonarQube is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
-package org.sonar.batch.protocol.input.issues;
-
-import com.google.gson.Gson;
-import com.google.gson.stream.JsonReader;
-import com.google.gson.stream.JsonWriter;
-import org.sonar.batch.protocol.GsonHelper;
-
-import javax.annotation.Nullable;
-
-import java.io.Closeable;
-import java.io.IOException;
-import java.io.Reader;
-import java.io.Writer;
-import java.util.Iterator;
-import java.util.NoSuchElementException;
-
-public class PreviousIssueHelper implements Closeable {
-
- private final Gson gson = GsonHelper.create();
- JsonWriter writer;
-
- private PreviousIssueHelper(Writer out) {
- try {
- this.writer = new JsonWriter(out);
- writer.setIndent(" ");
- writer.beginArray();
- } catch (IOException e) {
- throw new IllegalStateException("Unable to open writer", e);
- }
- }
-
- public static PreviousIssueHelper create(Writer out) {
- return new PreviousIssueHelper(out);
- }
-
- public static interface Function<F, T> {
- T apply(@Nullable F from);
- }
-
- public <G> void addIssue(G issue, Function<G, PreviousIssue> converter) {
- gson.toJson(converter.apply(issue), PreviousIssue.class, writer);
- }
-
- @Override
- public void close() {
- try {
- writer.endArray();
- writer.close();
- } catch (IOException e) {
- throw new IllegalStateException("Unable to close write", e);
- }
- }
-
- public static Iterable<PreviousIssue> getIssues(final Reader reader) {
-
- return new Iterable<PreviousIssue>() {
- @Override
- public Iterator<PreviousIssue> iterator() {
- return new PreviousIssueIterator(reader);
- }
- };
- }
-
- private final static class PreviousIssueIterator implements Iterator<PreviousIssue> {
-
- private JsonReader jsonreader;
- private final Gson gson = GsonHelper.create();
-
- public PreviousIssueIterator(Reader reader) {
- try {
- jsonreader = new JsonReader(reader);
- jsonreader.beginArray();
- } catch (IOException e) {
- throw new IllegalStateException("Unable to read issues", e);
- }
- }
-
- @Override
- public boolean hasNext() {
- try {
- if (jsonreader.hasNext()) {
- return true;
- }
- jsonreader.endArray();
- jsonreader.close();
- return false;
- } catch (IOException e) {
- throw new IllegalStateException("Unable to iterate over JSON file ", e);
- }
- }
-
- @Override
- public PreviousIssue next() {
- try {
- if (!jsonreader.hasNext()) {
- throw new NoSuchElementException();
- }
- } catch (IOException e) {
- throw new IllegalStateException("Unable to iterate over JSON file ", e);
- }
- return gson.fromJson(jsonreader, PreviousIssue.class);
- }
-
- @Override
- public void remove() {
- throw new UnsupportedOperationException("remove");
- }
- }
-
-}
diff --git a/sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/input/issues/package-info.java b/sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/input/issues/package-info.java
deleted file mode 100644
index b2ea9bf0e15..00000000000
--- a/sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/input/issues/package-info.java
+++ /dev/null
@@ -1,24 +0,0 @@
-/*
- * SonarQube, open source software quality management tool.
- * Copyright (C) 2008-2014 SonarSource
- * mailto:contact AT sonarsource DOT com
- *
- * SonarQube is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 3 of the License, or (at your option) any later version.
- *
- * SonarQube is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
-@ParametersAreNonnullByDefault
-package org.sonar.batch.protocol.input.issues;
-
-import javax.annotation.ParametersAreNonnullByDefault;
-
diff --git a/sonar-batch-protocol/src/main/protobuf/batch_input.proto b/sonar-batch-protocol/src/main/protobuf/batch_input.proto
new file mode 100644
index 00000000000..7ddc05d517a
--- /dev/null
+++ b/sonar-batch-protocol/src/main/protobuf/batch_input.proto
@@ -0,0 +1,56 @@
+/*
+ SonarQube, open source software quality management tool.
+ Copyright (C) 2008-2015 SonarSource
+ mailto:contact AT sonarsource DOT com
+
+ SonarQube is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 3 of the License, or (at your option) any later version.
+
+ SonarQube is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public License
+ along with this program; if not, write to the Free Software Foundation,
+ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+*/
+
+/*
+Notes
+
+ - "required" fields are not used as recommended by Google to keep forward-compatibility:
+ https://developers.google.com/protocol-buffers/docs/proto#simple
+
+ - this is beta version of specification. It will evolve during next releases and is
+ not forward-compatible yet.
+
+ - the related Java files are not generated during build. Indeed the existing protoc maven
+ plugins require protobuf to be installed on boxes. That means that generated Java files
+ are updated and committed for each change (see src/main/gen-java).
+*/
+
+
+import "constants.proto";
+
+option java_package = "org.sonar.batch.protocol.input";
+option optimize_for = SPEED;
+
+message ServerIssue {
+ optional string key = 1;
+ optional string component_key = 2;
+ optional string rule_repository = 3;
+ optional string rule_key = 4;
+ optional int32 line = 5;
+ optional string msg = 6;
+ optional Severity severity = 7;
+ optional bool manual_severity = 8;
+ optional string resolution = 9;
+ optional string status = 10;
+ optional string checksum = 11;
+ optional string assignee_login = 12;
+ optional int64 creation_date = 13;
+}
+
diff --git a/sonar-batch-protocol/src/test/java/org/sonar/batch/protocol/input/issues/PreviousIssueHelperTest.java b/sonar-batch-protocol/src/test/java/org/sonar/batch/protocol/input/issues/PreviousIssueHelperTest.java
deleted file mode 100644
index ffbc9545d85..00000000000
--- a/sonar-batch-protocol/src/test/java/org/sonar/batch/protocol/input/issues/PreviousIssueHelperTest.java
+++ /dev/null
@@ -1,108 +0,0 @@
-/*
- * SonarQube, open source software quality management tool.
- * Copyright (C) 2008-2014 SonarSource
- * mailto:contact AT sonarsource DOT com
- *
- * SonarQube is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 3 of the License, or (at your option) any later version.
- *
- * SonarQube is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
-package org.sonar.batch.protocol.input.issues;
-
-import org.json.JSONException;
-import org.junit.Test;
-import org.skyscreamer.jsonassert.JSONAssert;
-
-import java.io.StringReader;
-import java.io.StringWriter;
-import java.util.Iterator;
-
-import static org.assertj.core.api.Assertions.assertThat;
-
-public class PreviousIssueHelperTest {
-
- @Test
- public void writeIssues() throws JSONException {
- StringWriter out = new StringWriter();
- PreviousIssueHelper helper = PreviousIssueHelper.create(out);
-
- PreviousIssue issue1 = new PreviousIssue();
- issue1.setKey("key1");
- issue1.setComponentKey("key");
- issue1.setRuleKey("repokey", "rulekey");
- issue1.setLine(2);
- issue1.setMessage("message");
- issue1.setSeverity("severity");
- issue1.setManualSeverity(true);
- issue1.setResolution("resolution");
- issue1.setStatus("status");
- issue1.setChecksum("checksum");
- issue1.setAssigneeLogin("login");
- PreviousIssue issue2 = new PreviousIssue();
- issue2.setKey("key2");
-
- PreviousIssueFunction previousIssueFunction = new PreviousIssueFunction();
- helper.addIssue(issue1, previousIssueFunction);
- helper.addIssue(issue2, previousIssueFunction);
- helper.close();
-
- JSONAssert
- .assertEquals(
- "[{\"key\": \"key1\", \"componentKey\": \"key\", \"ruleKey\": \"rulekey\", \"ruleRepo\": \"repokey\", \"line\": 2,\"message\": \"message\", " +
- "\"severity\": \"severity\", \"manualSeverity\": true, \"resolution\": \"resolution\", \"status\": \"status\", \"checksum\": \"checksum\",\"assigneeLogin\": \"login\"},"
- +
- "{\"key\": \"key2\", \"manualSeverity\": false}]",
- out.getBuffer().toString(), true);
- }
-
- private static class PreviousIssueFunction implements PreviousIssueHelper.Function<PreviousIssue, PreviousIssue> {
- @Override
- public PreviousIssue apply(PreviousIssue from) {
- return from;
- }
- }
-
- @Test
- public void readIssues() {
- StringWriter out = new StringWriter();
- PreviousIssueHelper helper = PreviousIssueHelper.create(out);
- StringReader reader = new StringReader(
- "[{\"key\": \"key1\", \"componentKey\": \"key\", \"ruleKey\": \"rulekey\", \"ruleRepo\": \"repokey\", \"line\": 2,\"message\": \"message\", " +
- "\"severity\": \"severity\", \"manualSeverity\": true, \"resolution\": \"resolution\", \"status\": \"status\", \"checksum\": \"checksum\",\"assigneeLogin\": \"login\"},"
- +
- "{\"key\": \"key2\"}]");
-
- Iterator<PreviousIssue> iterator = helper.getIssues(reader).iterator();
- PreviousIssue issue1 = iterator.next();
- assertThat(iterator.hasNext()).isTrue();
- PreviousIssue issue2 = iterator.next();
- assertThat(iterator.hasNext()).isFalse();
-
- assertThat(issue1.key()).isEqualTo("key1");
- assertThat(issue1.componentKey()).isEqualTo("key");
- assertThat(issue1.ruleRepo()).isEqualTo("repokey");
- assertThat(issue1.ruleKey()).isEqualTo("rulekey");
- assertThat(issue1.line()).isEqualTo(2);
- assertThat(issue1.message()).isEqualTo("message");
- assertThat(issue1.severity()).isEqualTo("severity");
- assertThat(issue1.isManualSeverity()).isTrue();
- assertThat(issue1.resolution()).isEqualTo("resolution");
- assertThat(issue1.status()).isEqualTo("status");
- assertThat(issue1.checksum()).isEqualTo("checksum");
- assertThat(issue1.assigneeLogin()).isEqualTo("login");
-
- assertThat(issue2.key()).isEqualTo("key2");
- helper.close();
- }
-
-}