aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-batch-protocol/src
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2015-02-25 22:22:20 +0100
committerSimon Brandhof <simon.brandhof@sonarsource.com>2015-03-02 11:02:08 +0100
commitaf3d0b3c6b555616b3f6207620dd92360a653996 (patch)
tree3f48b9d5324e89e40590a7b67c5cf514ef54839e /sonar-batch-protocol/src
parent4ea0dd1c85069c253e4dbdc1b7c6e203b5beb082 (diff)
downloadsonarqube-af3d0b3c6b555616b3f6207620dd92360a653996.tar.gz
sonarqube-af3d0b3c6b555616b3f6207620dd92360a653996.zip
Refactor table ANALYSIS_REPORTS because of MySQL packet size limitation
* do not store report zip in table ANALYSIS_REPORTS but in FS dir {home}/data/analysis * do not store snapshot id in table but in protobuf report
Diffstat (limited to 'sonar-batch-protocol/src')
-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.java770
-rw-r--r--sonar-batch-protocol/src/main/gen-java/org/sonar/batch/protocol/output/BatchReport.java660
-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/output/BatchReportReader.java (renamed from sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/output/BatchOutputReader.java)5
-rw-r--r--sonar-batch-protocol/src/main/protobuf/batch_report.proto3
-rw-r--r--sonar-batch-protocol/src/test/java/org/sonar/batch/protocol/output/BatchReportReaderTest.java (renamed from sonar-batch-protocol/src/test/java/org/sonar/batch/protocol/output/BatchOutputReaderTest.java)4
7 files changed, 770 insertions, 884 deletions
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 bc9d704a4f2..f9cd2f3ea34 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
index 5e35e980038..464e4d9bb03 100644
--- 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
@@ -4,102 +4,88 @@
package org.sonar.batch.protocol.input;
public final class BatchInput {
- private BatchInput() {
- }
-
+ private BatchInput() {}
public static void registerAllExtensions(
- com.google.protobuf.ExtensionRegistry registry) {
+ com.google.protobuf.ExtensionRegistry registry) {
}
-
public interface ServerIssueOrBuilder extends
- // @@protoc_insertion_point(interface_extends:ServerIssue)
- com.google.protobuf.MessageOrBuilder {
+ // @@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();
+ 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();
+ 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();
+ 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();
+ 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();
+ getRuleKeyBytes();
/**
* <code>optional int32 line = 6;</code>
*/
boolean hasLine();
-
/**
* <code>optional int32 line = 6;</code>
*/
@@ -109,23 +95,20 @@ public final class BatchInput {
* <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();
+ getMsgBytes();
/**
* <code>optional .Severity severity = 8;</code>
*/
boolean hasSeverity();
-
/**
* <code>optional .Severity severity = 8;</code>
*/
@@ -135,7 +118,6 @@ public final class BatchInput {
* <code>optional bool manual_severity = 9;</code>
*/
boolean hasManualSeverity();
-
/**
* <code>optional bool manual_severity = 9;</code>
*/
@@ -145,71 +127,62 @@ public final class BatchInput {
* <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();
+ 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();
+ 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();
+ 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();
+ getAssigneeLoginBytes();
/**
* <code>optional int64 creation_date = 14;</code>
*/
boolean hasCreationDate();
-
/**
* <code>optional int64 creation_date = 14;</code>
*/
@@ -219,21 +192,17 @@ public final class BatchInput {
* Protobuf type {@code ServerIssue}
*/
public static final class ServerIssue extends
- com.google.protobuf.GeneratedMessage implements
- // @@protoc_insertion_point(message_implements:ServerIssue)
- ServerIssueOrBuilder {
+ 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 ServerIssue(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final ServerIssue defaultInstance;
-
public static ServerIssue getDefaultInstance() {
return defaultInstance;
}
@@ -243,21 +212,19 @@ public final class BatchInput {
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
-
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
+ getUnknownFields() {
return this.unknownFields;
}
-
private ServerIssue(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder();
+ com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
@@ -268,7 +235,7 @@ public final class BatchInput {
break;
default: {
if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
+ extensionRegistry, tag)) {
done = true;
}
break;
@@ -365,34 +332,33 @@ public final class BatchInput {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
+ e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
-
public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
+ getDescriptor() {
return org.sonar.batch.protocol.input.BatchInput.internal_static_ServerIssue_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
+ 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);
+ .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(
+ 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);
- }
- };
+ return new ServerIssue(input, extensionRegistry);
+ }
+ };
@java.lang.Override
public com.google.protobuf.Parser<ServerIssue> getParserForType() {
@@ -402,14 +368,12 @@ public final class BatchInput {
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>
*/
@@ -418,8 +382,8 @@ public final class BatchInput {
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
key_ = s;
@@ -427,17 +391,16 @@ public final class BatchInput {
return s;
}
}
-
/**
* <code>optional string key = 1;</code>
*/
public com.google.protobuf.ByteString
- getKeyBytes() {
+ getKeyBytes() {
java.lang.Object ref = key_;
if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
key_ = b;
return b;
} else {
@@ -447,14 +410,12 @@ public final class BatchInput {
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>
*/
@@ -463,8 +424,8 @@ public final class BatchInput {
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
moduleKey_ = s;
@@ -472,17 +433,16 @@ public final class BatchInput {
return s;
}
}
-
/**
* <code>optional string module_key = 2;</code>
*/
public com.google.protobuf.ByteString
- getModuleKeyBytes() {
+ 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);
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
moduleKey_ = b;
return b;
} else {
@@ -492,14 +452,12 @@ public final class BatchInput {
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>
*/
@@ -508,8 +466,8 @@ public final class BatchInput {
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
path_ = s;
@@ -517,17 +475,16 @@ public final class BatchInput {
return s;
}
}
-
/**
* <code>optional string path = 3;</code>
*/
public com.google.protobuf.ByteString
- getPathBytes() {
+ getPathBytes() {
java.lang.Object ref = path_;
if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
path_ = b;
return b;
} else {
@@ -537,14 +494,12 @@ public final class BatchInput {
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>
*/
@@ -553,8 +508,8 @@ public final class BatchInput {
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
ruleRepository_ = s;
@@ -562,17 +517,16 @@ public final class BatchInput {
return s;
}
}
-
/**
* <code>optional string rule_repository = 4;</code>
*/
public com.google.protobuf.ByteString
- getRuleRepositoryBytes() {
+ getRuleRepositoryBytes() {
java.lang.Object ref = ruleRepository_;
if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
ruleRepository_ = b;
return b;
} else {
@@ -582,14 +536,12 @@ public final class BatchInput {
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>
*/
@@ -598,8 +550,8 @@ public final class BatchInput {
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
ruleKey_ = s;
@@ -607,17 +559,16 @@ public final class BatchInput {
return s;
}
}
-
/**
* <code>optional string rule_key = 5;</code>
*/
public com.google.protobuf.ByteString
- getRuleKeyBytes() {
+ getRuleKeyBytes() {
java.lang.Object ref = ruleKey_;
if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
ruleKey_ = b;
return b;
} else {
@@ -627,14 +578,12 @@ public final class BatchInput {
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>
*/
@@ -644,14 +593,12 @@ public final class BatchInput {
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>
*/
@@ -660,8 +607,8 @@ public final class BatchInput {
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
msg_ = s;
@@ -669,17 +616,16 @@ public final class BatchInput {
return s;
}
}
-
/**
* <code>optional string msg = 7;</code>
*/
public com.google.protobuf.ByteString
- getMsgBytes() {
+ getMsgBytes() {
java.lang.Object ref = msg_;
if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
msg_ = b;
return b;
} else {
@@ -689,14 +635,12 @@ public final class BatchInput {
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>
*/
@@ -706,14 +650,12 @@ public final class BatchInput {
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>
*/
@@ -723,14 +665,12 @@ public final class BatchInput {
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>
*/
@@ -739,8 +679,8 @@ public final class BatchInput {
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
resolution_ = s;
@@ -748,17 +688,16 @@ public final class BatchInput {
return s;
}
}
-
/**
* <code>optional string resolution = 10;</code>
*/
public com.google.protobuf.ByteString
- getResolutionBytes() {
+ getResolutionBytes() {
java.lang.Object ref = resolution_;
if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
resolution_ = b;
return b;
} else {
@@ -768,14 +707,12 @@ public final class BatchInput {
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>
*/
@@ -784,8 +721,8 @@ public final class BatchInput {
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
status_ = s;
@@ -793,17 +730,16 @@ public final class BatchInput {
return s;
}
}
-
/**
* <code>optional string status = 11;</code>
*/
public com.google.protobuf.ByteString
- getStatusBytes() {
+ getStatusBytes() {
java.lang.Object ref = status_;
if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
status_ = b;
return b;
} else {
@@ -813,14 +749,12 @@ public final class BatchInput {
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>
*/
@@ -829,8 +763,8 @@ public final class BatchInput {
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
checksum_ = s;
@@ -838,17 +772,16 @@ public final class BatchInput {
return s;
}
}
-
/**
* <code>optional string checksum = 12;</code>
*/
public com.google.protobuf.ByteString
- getChecksumBytes() {
+ getChecksumBytes() {
java.lang.Object ref = checksum_;
if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
checksum_ = b;
return b;
} else {
@@ -858,14 +791,12 @@ public final class BatchInput {
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>
*/
@@ -874,8 +805,8 @@ public final class BatchInput {
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
assigneeLogin_ = s;
@@ -883,17 +814,16 @@ public final class BatchInput {
return s;
}
}
-
/**
* <code>optional string assignee_login = 13;</code>
*/
public com.google.protobuf.ByteString
- getAssigneeLoginBytes() {
+ 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);
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
assigneeLogin_ = b;
return b;
} else {
@@ -903,14 +833,12 @@ public final class BatchInput {
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>
*/
@@ -934,22 +862,18 @@ public final class BatchInput {
assigneeLogin_ = "";
creationDate_ = 0L;
}
-
private byte memoizedIsInitialized = -1;
-
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1)
- return true;
- if (isInitialized == 0)
- return false;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
+ throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, getKeyBytes());
@@ -997,11 +921,9 @@ public final class BatchInput {
}
private int memoizedSerializedSize = -1;
-
public int getSerializedSize() {
int size = memoizedSerializedSize;
- if (size != -1)
- return size;
+ if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
@@ -1066,115 +988,95 @@ public final class BatchInput {
}
private static final long serialVersionUID = 0L;
-
@java.lang.Override
protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
+ throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static org.sonar.batch.protocol.input.BatchInput.ServerIssue parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
-
public static org.sonar.batch.protocol.input.BatchInput.ServerIssue parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
-
public static org.sonar.batch.protocol.input.BatchInput.ServerIssue parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
+ 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 {
+ 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 {
+ 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 {
+ 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 {
+ 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 {
+ 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 {
+ 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 {
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
- public static Builder newBuilder() {
- return Builder.create();
- }
-
- public Builder newBuilderForType() {
- return newBuilder();
- }
-
+ public static Builder newBuilder() { return Builder.create(); }
+ public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.sonar.batch.protocol.input.BatchInput.ServerIssue prototype) {
return newBuilder().mergeFrom(prototype);
}
-
- public Builder toBuilder() {
- return newBuilder(this);
- }
+ public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
-
/**
* Protobuf type {@code 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 {
+ 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() {
+ getDescriptor() {
return org.sonar.batch.protocol.input.BatchInput.internal_static_ServerIssue_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
+ 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);
+ .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()
@@ -1183,16 +1085,14 @@ public final class BatchInput {
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
-
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
-
private static Builder create() {
return new Builder();
}
@@ -1235,7 +1135,7 @@ public final class BatchInput {
}
public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
+ getDescriptorForType() {
return org.sonar.batch.protocol.input.BatchInput.internal_static_ServerIssue_descriptor;
}
@@ -1318,7 +1218,7 @@ public final class BatchInput {
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);
+ return mergeFrom((org.sonar.batch.protocol.input.BatchInput.ServerIssue)other);
} else {
super.mergeFrom(other);
return this;
@@ -1326,8 +1226,7 @@ public final class BatchInput {
}
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 == org.sonar.batch.protocol.input.BatchInput.ServerIssue.getDefaultInstance()) return this;
if (other.hasKey()) {
bitField0_ |= 0x00000001;
key_ = other.key_;
@@ -1399,9 +1298,9 @@ public final class BatchInput {
}
public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
org.sonar.batch.protocol.input.BatchInput.ServerIssue parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
@@ -1415,18 +1314,15 @@ public final class BatchInput {
}
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>
*/
@@ -1434,7 +1330,7 @@ public final class BatchInput {
java.lang.Object ref = key_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
+ (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
key_ = s;
@@ -1444,38 +1340,35 @@ public final class BatchInput {
return (java.lang.String) ref;
}
}
-
/**
* <code>optional string key = 1;</code>
*/
public com.google.protobuf.ByteString
- getKeyBytes() {
+ getKeyBytes() {
java.lang.Object ref = key_;
if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
key_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
-
/**
* <code>optional string key = 1;</code>
*/
public Builder setKey(
- java.lang.String value) {
+ java.lang.String value) {
if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000001;
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000001;
key_ = value;
onChanged();
return this;
}
-
/**
* <code>optional string key = 1;</code>
*/
@@ -1485,30 +1378,27 @@ public final class BatchInput {
onChanged();
return this;
}
-
/**
* <code>optional string key = 1;</code>
*/
public Builder setKeyBytes(
- com.google.protobuf.ByteString value) {
+ com.google.protobuf.ByteString value) {
if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000001;
+ 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>
*/
@@ -1516,7 +1406,7 @@ public final class BatchInput {
java.lang.Object ref = moduleKey_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
+ (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
moduleKey_ = s;
@@ -1526,38 +1416,35 @@ public final class BatchInput {
return (java.lang.String) ref;
}
}
-
/**
* <code>optional string module_key = 2;</code>
*/
public com.google.protobuf.ByteString
- getModuleKeyBytes() {
+ getModuleKeyBytes() {
java.lang.Object ref = moduleKey_;
if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
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) {
+ java.lang.String value) {
if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000002;
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000002;
moduleKey_ = value;
onChanged();
return this;
}
-
/**
* <code>optional string module_key = 2;</code>
*/
@@ -1567,30 +1454,27 @@ public final class BatchInput {
onChanged();
return this;
}
-
/**
* <code>optional string module_key = 2;</code>
*/
public Builder setModuleKeyBytes(
- com.google.protobuf.ByteString value) {
+ com.google.protobuf.ByteString value) {
if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000002;
+ 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>
*/
@@ -1598,7 +1482,7 @@ public final class BatchInput {
java.lang.Object ref = path_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
+ (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
path_ = s;
@@ -1608,38 +1492,35 @@ public final class BatchInput {
return (java.lang.String) ref;
}
}
-
/**
* <code>optional string path = 3;</code>
*/
public com.google.protobuf.ByteString
- getPathBytes() {
+ getPathBytes() {
java.lang.Object ref = path_;
if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
path_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
-
/**
* <code>optional string path = 3;</code>
*/
public Builder setPath(
- java.lang.String value) {
+ java.lang.String value) {
if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000004;
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000004;
path_ = value;
onChanged();
return this;
}
-
/**
* <code>optional string path = 3;</code>
*/
@@ -1649,30 +1530,27 @@ public final class BatchInput {
onChanged();
return this;
}
-
/**
* <code>optional string path = 3;</code>
*/
public Builder setPathBytes(
- com.google.protobuf.ByteString value) {
+ com.google.protobuf.ByteString value) {
if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000004;
+ 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>
*/
@@ -1680,7 +1558,7 @@ public final class BatchInput {
java.lang.Object ref = ruleRepository_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
+ (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
ruleRepository_ = s;
@@ -1690,38 +1568,35 @@ public final class BatchInput {
return (java.lang.String) ref;
}
}
-
/**
* <code>optional string rule_repository = 4;</code>
*/
public com.google.protobuf.ByteString
- getRuleRepositoryBytes() {
+ getRuleRepositoryBytes() {
java.lang.Object ref = ruleRepository_;
if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
ruleRepository_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
-
/**
* <code>optional string rule_repository = 4;</code>
*/
public Builder setRuleRepository(
- java.lang.String value) {
+ java.lang.String value) {
if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000008;
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000008;
ruleRepository_ = value;
onChanged();
return this;
}
-
/**
* <code>optional string rule_repository = 4;</code>
*/
@@ -1731,30 +1606,27 @@ public final class BatchInput {
onChanged();
return this;
}
-
/**
* <code>optional string rule_repository = 4;</code>
*/
public Builder setRuleRepositoryBytes(
- com.google.protobuf.ByteString value) {
+ com.google.protobuf.ByteString value) {
if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000008;
+ 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>
*/
@@ -1762,7 +1634,7 @@ public final class BatchInput {
java.lang.Object ref = ruleKey_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
+ (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
ruleKey_ = s;
@@ -1772,38 +1644,35 @@ public final class BatchInput {
return (java.lang.String) ref;
}
}
-
/**
* <code>optional string rule_key = 5;</code>
*/
public com.google.protobuf.ByteString
- getRuleKeyBytes() {
+ getRuleKeyBytes() {
java.lang.Object ref = ruleKey_;
if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
ruleKey_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
-
/**
* <code>optional string rule_key = 5;</code>
*/
public Builder setRuleKey(
- java.lang.String value) {
+ java.lang.String value) {
if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000010;
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000010;
ruleKey_ = value;
onChanged();
return this;
}
-
/**
* <code>optional string rule_key = 5;</code>
*/
@@ -1813,37 +1682,33 @@ public final class BatchInput {
onChanged();
return this;
}
-
/**
* <code>optional string rule_key = 5;</code>
*/
public Builder setRuleKeyBytes(
- com.google.protobuf.ByteString value) {
+ com.google.protobuf.ByteString value) {
if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000010;
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000010;
ruleKey_ = value;
onChanged();
return this;
}
- private int line_;
-
+ 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>
*/
@@ -1853,7 +1718,6 @@ public final class BatchInput {
onChanged();
return this;
}
-
/**
* <code>optional int32 line = 6;</code>
*/
@@ -1865,14 +1729,12 @@ public final class BatchInput {
}
private java.lang.Object msg_ = "";
-
/**
* <code>optional string msg = 7;</code>
*/
public boolean hasMsg() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
-
/**
* <code>optional string msg = 7;</code>
*/
@@ -1880,7 +1742,7 @@ public final class BatchInput {
java.lang.Object ref = msg_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
+ (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
msg_ = s;
@@ -1890,38 +1752,35 @@ public final class BatchInput {
return (java.lang.String) ref;
}
}
-
/**
* <code>optional string msg = 7;</code>
*/
public com.google.protobuf.ByteString
- getMsgBytes() {
+ getMsgBytes() {
java.lang.Object ref = msg_;
if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
msg_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
-
/**
* <code>optional string msg = 7;</code>
*/
public Builder setMsg(
- java.lang.String value) {
+ java.lang.String value) {
if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000040;
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000040;
msg_ = value;
onChanged();
return this;
}
-
/**
* <code>optional string msg = 7;</code>
*/
@@ -1931,37 +1790,33 @@ public final class BatchInput {
onChanged();
return this;
}
-
/**
* <code>optional string msg = 7;</code>
*/
public Builder setMsgBytes(
- com.google.protobuf.ByteString value) {
+ com.google.protobuf.ByteString value) {
if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000040;
+ 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>
*/
@@ -1974,7 +1829,6 @@ public final class BatchInput {
onChanged();
return this;
}
-
/**
* <code>optional .Severity severity = 8;</code>
*/
@@ -1985,22 +1839,19 @@ public final class BatchInput {
return this;
}
- private boolean manualSeverity_;
-
+ 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>
*/
@@ -2010,7 +1861,6 @@ public final class BatchInput {
onChanged();
return this;
}
-
/**
* <code>optional bool manual_severity = 9;</code>
*/
@@ -2022,14 +1872,12 @@ public final class BatchInput {
}
private java.lang.Object resolution_ = "";
-
/**
* <code>optional string resolution = 10;</code>
*/
public boolean hasResolution() {
return ((bitField0_ & 0x00000200) == 0x00000200);
}
-
/**
* <code>optional string resolution = 10;</code>
*/
@@ -2037,7 +1885,7 @@ public final class BatchInput {
java.lang.Object ref = resolution_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
+ (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
resolution_ = s;
@@ -2047,38 +1895,35 @@ public final class BatchInput {
return (java.lang.String) ref;
}
}
-
/**
* <code>optional string resolution = 10;</code>
*/
public com.google.protobuf.ByteString
- getResolutionBytes() {
+ getResolutionBytes() {
java.lang.Object ref = resolution_;
if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
resolution_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
-
/**
* <code>optional string resolution = 10;</code>
*/
public Builder setResolution(
- java.lang.String value) {
+ java.lang.String value) {
if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000200;
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000200;
resolution_ = value;
onChanged();
return this;
}
-
/**
* <code>optional string resolution = 10;</code>
*/
@@ -2088,30 +1933,27 @@ public final class BatchInput {
onChanged();
return this;
}
-
/**
* <code>optional string resolution = 10;</code>
*/
public Builder setResolutionBytes(
- com.google.protobuf.ByteString value) {
+ com.google.protobuf.ByteString value) {
if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000200;
+ 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>
*/
@@ -2119,7 +1961,7 @@ public final class BatchInput {
java.lang.Object ref = status_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
+ (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
status_ = s;
@@ -2129,38 +1971,35 @@ public final class BatchInput {
return (java.lang.String) ref;
}
}
-
/**
* <code>optional string status = 11;</code>
*/
public com.google.protobuf.ByteString
- getStatusBytes() {
+ getStatusBytes() {
java.lang.Object ref = status_;
if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
status_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
-
/**
* <code>optional string status = 11;</code>
*/
public Builder setStatus(
- java.lang.String value) {
+ java.lang.String value) {
if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000400;
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000400;
status_ = value;
onChanged();
return this;
}
-
/**
* <code>optional string status = 11;</code>
*/
@@ -2170,30 +2009,27 @@ public final class BatchInput {
onChanged();
return this;
}
-
/**
* <code>optional string status = 11;</code>
*/
public Builder setStatusBytes(
- com.google.protobuf.ByteString value) {
+ com.google.protobuf.ByteString value) {
if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000400;
+ 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>
*/
@@ -2201,7 +2037,7 @@ public final class BatchInput {
java.lang.Object ref = checksum_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
+ (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
checksum_ = s;
@@ -2211,38 +2047,35 @@ public final class BatchInput {
return (java.lang.String) ref;
}
}
-
/**
* <code>optional string checksum = 12;</code>
*/
public com.google.protobuf.ByteString
- getChecksumBytes() {
+ getChecksumBytes() {
java.lang.Object ref = checksum_;
if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
checksum_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
-
/**
* <code>optional string checksum = 12;</code>
*/
public Builder setChecksum(
- java.lang.String value) {
+ java.lang.String value) {
if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000800;
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000800;
checksum_ = value;
onChanged();
return this;
}
-
/**
* <code>optional string checksum = 12;</code>
*/
@@ -2252,30 +2085,27 @@ public final class BatchInput {
onChanged();
return this;
}
-
/**
* <code>optional string checksum = 12;</code>
*/
public Builder setChecksumBytes(
- com.google.protobuf.ByteString value) {
+ com.google.protobuf.ByteString value) {
if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000800;
+ 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>
*/
@@ -2283,7 +2113,7 @@ public final class BatchInput {
java.lang.Object ref = assigneeLogin_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
+ (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
assigneeLogin_ = s;
@@ -2293,38 +2123,35 @@ public final class BatchInput {
return (java.lang.String) ref;
}
}
-
/**
* <code>optional string assignee_login = 13;</code>
*/
public com.google.protobuf.ByteString
- getAssigneeLoginBytes() {
+ getAssigneeLoginBytes() {
java.lang.Object ref = assigneeLogin_;
if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
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) {
+ java.lang.String value) {
if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00001000;
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00001000;
assigneeLogin_ = value;
onChanged();
return this;
}
-
/**
* <code>optional string assignee_login = 13;</code>
*/
@@ -2334,37 +2161,33 @@ public final class BatchInput {
onChanged();
return this;
}
-
/**
* <code>optional string assignee_login = 13;</code>
*/
public Builder setAssigneeLoginBytes(
- com.google.protobuf.ByteString value) {
+ com.google.protobuf.ByteString value) {
if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00001000;
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00001000;
assigneeLogin_ = value;
onChanged();
return this;
}
- private long creationDate_;
-
+ 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>
*/
@@ -2374,7 +2197,6 @@ public final class BatchInput {
onChanged();
return this;
}
-
/**
* <code>optional int64 creation_date = 14;</code>
*/
@@ -2396,47 +2218,49 @@ public final class BatchInput {
// @@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;
+ 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() {
+ getDescriptor() {
return descriptor;
}
-
- private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
+ private static com.google.protobuf.Descriptors.FileDescriptor
+ descriptor;
static {
java.lang.String[] descriptorData = {
"\n\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"
+ "\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;
- }
- };
+ new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
+ public com.google.protobuf.ExtensionRegistry assignDescriptors(
+ com.google.protobuf.Descriptors.FileDescriptor root) {
+ descriptor = root;
+ return null;
+ }
+ };
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
- org.sonar.batch.protocol.Constants.getDescriptor(),
+ org.sonar.batch.protocol.Constants.getDescriptor(),
}, assigner);
internal_static_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",});
+ new java.lang.String[] { "Key", "ModuleKey", "Path", "RuleRepository", "RuleKey", "Line", "Msg", "Severity", "ManualSeverity", "Resolution", "Status", "Checksum", "AssigneeLogin", "CreationDate", });
org.sonar.batch.protocol.Constants.getDescriptor();
}
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 8e5ca2c921c..c3d15bf144e 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 com.google.protobuf.MessageOrBuilder {
+ public interface MetadataOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:Metadata)
+ com.google.protobuf.MessageOrBuilder {
- // optional int64 analysis_date = 1;
/**
* <code>optional int64 analysis_date = 1;</code>
*/
@@ -21,7 +21,6 @@ public final class BatchReport {
*/
long getAnalysisDate();
- // optional string project_key = 2;
/**
* <code>optional string project_key = 2;</code>
*/
@@ -36,7 +35,6 @@ public final class BatchReport {
com.google.protobuf.ByteString
getProjectKeyBytes();
- // optional int32 root_component_ref = 3;
/**
* <code>optional int32 root_component_ref = 3;</code>
*/
@@ -45,13 +43,31 @@ public final class BatchReport {
* <code>optional int32 root_component_ref = 3;</code>
*/
int getRootComponentRef();
+
+ /**
+ * <code>optional int64 snapshot_id = 4;</code>
+ *
+ * <pre>
+ * temporary field used during development of computation stack
+ * </pre>
+ */
+ boolean hasSnapshotId();
+ /**
+ * <code>optional int64 snapshot_id = 4;</code>
+ *
+ * <pre>
+ * temporary field used during development of computation stack
+ * </pre>
+ */
+ long getSnapshotId();
}
/**
* Protobuf type {@code Metadata}
*/
public static final class Metadata extends
- com.google.protobuf.GeneratedMessage
- implements MetadataOrBuilder {
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:Metadata)
+ MetadataOrBuilder {
// Use Metadata.newBuilder() to construct.
private Metadata(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
@@ -103,8 +119,9 @@ public final class BatchReport {
break;
}
case 18: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
- projectKey_ = input.readBytes();
+ projectKey_ = bs;
break;
}
case 24: {
@@ -112,6 +129,11 @@ public final class BatchReport {
rootComponentRef_ = input.readInt32();
break;
}
+ case 32: {
+ bitField0_ |= 0x00000008;
+ snapshotId_ = input.readInt64();
+ break;
+ }
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -152,7 +174,6 @@ public final class BatchReport {
}
private int bitField0_;
- // optional int64 analysis_date = 1;
public static final int ANALYSIS_DATE_FIELD_NUMBER = 1;
private long analysisDate_;
/**
@@ -168,7 +189,6 @@ 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_;
/**
@@ -211,7 +231,6 @@ public final class BatchReport {
}
}
- // optional int32 root_component_ref = 3;
public static final int ROOT_COMPONENT_REF_FIELD_NUMBER = 3;
private int rootComponentRef_;
/**
@@ -227,15 +246,40 @@ public final class BatchReport {
return rootComponentRef_;
}
+ public static final int SNAPSHOT_ID_FIELD_NUMBER = 4;
+ private long snapshotId_;
+ /**
+ * <code>optional int64 snapshot_id = 4;</code>
+ *
+ * <pre>
+ * temporary field used during development of computation stack
+ * </pre>
+ */
+ public boolean hasSnapshotId() {
+ return ((bitField0_ & 0x00000008) == 0x00000008);
+ }
+ /**
+ * <code>optional int64 snapshot_id = 4;</code>
+ *
+ * <pre>
+ * temporary field used during development of computation stack
+ * </pre>
+ */
+ public long getSnapshotId() {
+ return snapshotId_;
+ }
+
private void initFields() {
analysisDate_ = 0L;
projectKey_ = "";
rootComponentRef_ = 0;
+ snapshotId_ = 0L;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
@@ -253,6 +297,9 @@ public final class BatchReport {
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeInt32(3, rootComponentRef_);
}
+ if (((bitField0_ & 0x00000008) == 0x00000008)) {
+ output.writeInt64(4, snapshotId_);
+ }
getUnknownFields().writeTo(output);
}
@@ -274,6 +321,10 @@ public final class BatchReport {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(3, rootComponentRef_);
}
+ if (((bitField0_ & 0x00000008) == 0x00000008)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt64Size(4, snapshotId_);
+ }
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
@@ -356,8 +407,9 @@ public final class BatchReport {
* Protobuf type {@code Metadata}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder>
- implements org.sonar.batch.protocol.output.BatchReport.MetadataOrBuilder {
+ com.google.protobuf.GeneratedMessage.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:Metadata)
+ 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;
@@ -396,6 +448,8 @@ public final class BatchReport {
bitField0_ = (bitField0_ & ~0x00000002);
rootComponentRef_ = 0;
bitField0_ = (bitField0_ & ~0x00000004);
+ snapshotId_ = 0L;
+ bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
@@ -436,6 +490,10 @@ public final class BatchReport {
to_bitField0_ |= 0x00000004;
}
result.rootComponentRef_ = rootComponentRef_;
+ if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
+ to_bitField0_ |= 0x00000008;
+ }
+ result.snapshotId_ = snapshotId_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
@@ -463,6 +521,9 @@ public final class BatchReport {
if (other.hasRootComponentRef()) {
setRootComponentRef(other.getRootComponentRef());
}
+ if (other.hasSnapshotId()) {
+ setSnapshotId(other.getSnapshotId());
+ }
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
@@ -490,7 +551,6 @@ public final class BatchReport {
}
private int bitField0_;
- // optional int64 analysis_date = 1;
private long analysisDate_ ;
/**
* <code>optional int64 analysis_date = 1;</code>
@@ -523,7 +583,6 @@ public final class BatchReport {
return this;
}
- // optional string project_key = 2;
private java.lang.Object projectKey_ = "";
/**
* <code>optional string project_key = 2;</code>
@@ -537,9 +596,12 @@ public final class BatchReport {
public java.lang.String getProjectKey() {
java.lang.Object ref = projectKey_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- projectKey_ = s;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ projectKey_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
@@ -597,7 +659,6 @@ public final class BatchReport {
return this;
}
- // optional int32 root_component_ref = 3;
private int rootComponentRef_ ;
/**
* <code>optional int32 root_component_ref = 3;</code>
@@ -630,6 +691,54 @@ public final class BatchReport {
return this;
}
+ private long snapshotId_ ;
+ /**
+ * <code>optional int64 snapshot_id = 4;</code>
+ *
+ * <pre>
+ * temporary field used during development of computation stack
+ * </pre>
+ */
+ public boolean hasSnapshotId() {
+ return ((bitField0_ & 0x00000008) == 0x00000008);
+ }
+ /**
+ * <code>optional int64 snapshot_id = 4;</code>
+ *
+ * <pre>
+ * temporary field used during development of computation stack
+ * </pre>
+ */
+ public long getSnapshotId() {
+ return snapshotId_;
+ }
+ /**
+ * <code>optional int64 snapshot_id = 4;</code>
+ *
+ * <pre>
+ * temporary field used during development of computation stack
+ * </pre>
+ */
+ public Builder setSnapshotId(long value) {
+ bitField0_ |= 0x00000008;
+ snapshotId_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>optional int64 snapshot_id = 4;</code>
+ *
+ * <pre>
+ * temporary field used during development of computation stack
+ * </pre>
+ */
+ public Builder clearSnapshotId() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ snapshotId_ = 0L;
+ onChanged();
+ return this;
+ }
+
// @@protoc_insertion_point(builder_scope:Metadata)
}
@@ -641,10 +750,10 @@ public final class BatchReport {
// @@protoc_insertion_point(class_scope:Metadata)
}
- public interface ComponentOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
+ public interface ComponentOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:Component)
+ com.google.protobuf.MessageOrBuilder {
- // optional int32 ref = 1;
/**
* <code>optional int32 ref = 1;</code>
*/
@@ -654,7 +763,6 @@ public final class BatchReport {
*/
int getRef();
- // optional string path = 2;
/**
* <code>optional string path = 2;</code>
*/
@@ -669,7 +777,6 @@ public final class BatchReport {
com.google.protobuf.ByteString
getPathBytes();
- // optional string name = 3;
/**
* <code>optional string name = 3;</code>
*/
@@ -684,7 +791,6 @@ public final class BatchReport {
com.google.protobuf.ByteString
getNameBytes();
- // optional .ComponentType type = 4;
/**
* <code>optional .ComponentType type = 4;</code>
*/
@@ -694,7 +800,6 @@ public final class BatchReport {
*/
org.sonar.batch.protocol.Constants.ComponentType getType();
- // optional bool is_test = 5;
/**
* <code>optional bool is_test = 5;</code>
*/
@@ -704,7 +809,6 @@ public final class BatchReport {
*/
boolean getIsTest();
- // optional string language = 6;
/**
* <code>optional string language = 6;</code>
*/
@@ -719,7 +823,6 @@ 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>
*/
@@ -733,7 +836,6 @@ public final class BatchReport {
*/
int getChildRefs(int index);
- // optional int32 snapshot_id = 8;
/**
* <code>optional int32 snapshot_id = 8;</code>
*
@@ -751,7 +853,6 @@ public final class BatchReport {
*/
int getSnapshotId();
- // optional string uuid = 9;
/**
* <code>optional string uuid = 9;</code>
*/
@@ -770,8 +871,9 @@ public final class BatchReport {
* Protobuf type {@code Component}
*/
public static final class Component extends
- com.google.protobuf.GeneratedMessage
- implements ComponentOrBuilder {
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:Component)
+ ComponentOrBuilder {
// Use Component.newBuilder() to construct.
private Component(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
@@ -823,13 +925,15 @@ public final class BatchReport {
break;
}
case 18: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
- path_ = input.readBytes();
+ path_ = bs;
break;
}
case 26: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000004;
- name_ = input.readBytes();
+ name_ = bs;
break;
}
case 32: {
@@ -849,8 +953,9 @@ public final class BatchReport {
break;
}
case 50: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000020;
- language_ = input.readBytes();
+ language_ = bs;
break;
}
case 56: {
@@ -880,8 +985,9 @@ public final class BatchReport {
break;
}
case 74: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000080;
- uuid_ = input.readBytes();
+ uuid_ = bs;
break;
}
}
@@ -927,7 +1033,6 @@ public final class BatchReport {
}
private int bitField0_;
- // optional int32 ref = 1;
public static final int REF_FIELD_NUMBER = 1;
private int ref_;
/**
@@ -943,7 +1048,6 @@ public final class BatchReport {
return ref_;
}
- // optional string path = 2;
public static final int PATH_FIELD_NUMBER = 2;
private java.lang.Object path_;
/**
@@ -986,7 +1090,6 @@ public final class BatchReport {
}
}
- // optional string name = 3;
public static final int NAME_FIELD_NUMBER = 3;
private java.lang.Object name_;
/**
@@ -1029,7 +1132,6 @@ public final class BatchReport {
}
}
- // optional .ComponentType type = 4;
public static final int TYPE_FIELD_NUMBER = 4;
private org.sonar.batch.protocol.Constants.ComponentType type_;
/**
@@ -1045,7 +1147,6 @@ public final class BatchReport {
return type_;
}
- // optional bool is_test = 5;
public static final int IS_TEST_FIELD_NUMBER = 5;
private boolean isTest_;
/**
@@ -1061,7 +1162,6 @@ public final class BatchReport {
return isTest_;
}
- // optional string language = 6;
public static final int LANGUAGE_FIELD_NUMBER = 6;
private java.lang.Object language_;
/**
@@ -1104,7 +1204,6 @@ 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_;
/**
@@ -1128,7 +1227,6 @@ 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_;
/**
@@ -1152,7 +1250,6 @@ public final class BatchReport {
return snapshotId_;
}
- // optional string uuid = 9;
public static final int UUID_FIELD_NUMBER = 9;
private java.lang.Object uuid_;
/**
@@ -1209,7 +1306,8 @@ public final class BatchReport {
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
@@ -1386,8 +1484,9 @@ public final class BatchReport {
* Protobuf type {@code Component}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder>
- implements org.sonar.batch.protocol.output.BatchReport.ComponentOrBuilder {
+ com.google.protobuf.GeneratedMessage.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:Component)
+ 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;
@@ -1588,7 +1687,6 @@ public final class BatchReport {
}
private int bitField0_;
- // optional int32 ref = 1;
private int ref_ ;
/**
* <code>optional int32 ref = 1;</code>
@@ -1621,7 +1719,6 @@ public final class BatchReport {
return this;
}
- // optional string path = 2;
private java.lang.Object path_ = "";
/**
* <code>optional string path = 2;</code>
@@ -1635,9 +1732,12 @@ public final class BatchReport {
public java.lang.String getPath() {
java.lang.Object ref = path_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- path_ = s;
+ 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;
@@ -1695,7 +1795,6 @@ public final class BatchReport {
return this;
}
- // optional string name = 3;
private java.lang.Object name_ = "";
/**
* <code>optional string name = 3;</code>
@@ -1709,9 +1808,12 @@ public final class BatchReport {
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- name_ = s;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ name_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
@@ -1769,7 +1871,6 @@ 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>
@@ -1805,7 +1906,6 @@ public final class BatchReport {
return this;
}
- // optional bool is_test = 5;
private boolean isTest_ ;
/**
* <code>optional bool is_test = 5;</code>
@@ -1838,7 +1938,6 @@ public final class BatchReport {
return this;
}
- // optional string language = 6;
private java.lang.Object language_ = "";
/**
* <code>optional string language = 6;</code>
@@ -1852,9 +1951,12 @@ public final class BatchReport {
public java.lang.String getLanguage() {
java.lang.Object ref = language_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- language_ = s;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ language_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
@@ -1912,7 +2014,6 @@ 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)) {
@@ -1964,7 +2065,8 @@ public final class BatchReport {
public Builder addAllChildRefs(
java.lang.Iterable<? extends java.lang.Integer> values) {
ensureChildRefsIsMutable();
- super.addAll(values, childRefs_);
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, childRefs_);
onChanged();
return this;
}
@@ -1978,7 +2080,6 @@ public final class BatchReport {
return this;
}
- // optional int32 snapshot_id = 8;
private int snapshotId_ ;
/**
* <code>optional int32 snapshot_id = 8;</code>
@@ -2027,7 +2128,6 @@ public final class BatchReport {
return this;
}
- // optional string uuid = 9;
private java.lang.Object uuid_ = "";
/**
* <code>optional string uuid = 9;</code>
@@ -2041,9 +2141,12 @@ public final class BatchReport {
public java.lang.String getUuid() {
java.lang.Object ref = uuid_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- uuid_ = s;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ uuid_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
@@ -2112,10 +2215,10 @@ public final class BatchReport {
// @@protoc_insertion_point(class_scope:Component)
}
- public interface IssueOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
+ public interface IssueOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:Issue)
+ com.google.protobuf.MessageOrBuilder {
- // optional string rule_repository = 1;
/**
* <code>optional string rule_repository = 1;</code>
*/
@@ -2130,7 +2233,6 @@ public final class BatchReport {
com.google.protobuf.ByteString
getRuleRepositoryBytes();
- // optional string rule_key = 2;
/**
* <code>optional string rule_key = 2;</code>
*/
@@ -2145,7 +2247,6 @@ public final class BatchReport {
com.google.protobuf.ByteString
getRuleKeyBytes();
- // optional int32 line = 3;
/**
* <code>optional int32 line = 3;</code>
*/
@@ -2155,7 +2256,6 @@ public final class BatchReport {
*/
int getLine();
- // optional string msg = 4;
/**
* <code>optional string msg = 4;</code>
*/
@@ -2170,7 +2270,6 @@ public final class BatchReport {
com.google.protobuf.ByteString
getMsgBytes();
- // optional .Severity severity = 5;
/**
* <code>optional .Severity severity = 5;</code>
*/
@@ -2180,12 +2279,11 @@ public final class BatchReport {
*/
org.sonar.batch.protocol.Constants.Severity getSeverity();
- // repeated string tags = 6;
/**
* <code>repeated string tags = 6;</code>
*/
- java.util.List<java.lang.String>
- getTagsList();
+ com.google.protobuf.ProtocolStringList
+ getTagsList();
/**
* <code>repeated string tags = 6;</code>
*/
@@ -2200,7 +2298,6 @@ 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>
*
@@ -2218,7 +2315,6 @@ public final class BatchReport {
*/
double getEffortToFix();
- // optional bool is_new = 8;
/**
* <code>optional bool is_new = 8;</code>
*/
@@ -2228,7 +2324,6 @@ public final class BatchReport {
*/
boolean getIsNew();
- // optional string uuid = 9;
/**
* <code>optional string uuid = 9;</code>
*/
@@ -2243,7 +2338,6 @@ public final class BatchReport {
com.google.protobuf.ByteString
getUuidBytes();
- // optional int64 debt_in_minutes = 10;
/**
* <code>optional int64 debt_in_minutes = 10;</code>
*/
@@ -2253,7 +2347,6 @@ public final class BatchReport {
*/
long getDebtInMinutes();
- // optional string resolution = 11;
/**
* <code>optional string resolution = 11;</code>
*/
@@ -2268,7 +2361,6 @@ public final class BatchReport {
com.google.protobuf.ByteString
getResolutionBytes();
- // optional string status = 12;
/**
* <code>optional string status = 12;</code>
*/
@@ -2283,7 +2375,6 @@ public final class BatchReport {
com.google.protobuf.ByteString
getStatusBytes();
- // optional string checksum = 13;
/**
* <code>optional string checksum = 13;</code>
*/
@@ -2298,7 +2389,6 @@ public final class BatchReport {
com.google.protobuf.ByteString
getChecksumBytes();
- // optional bool manual_severity = 14;
/**
* <code>optional bool manual_severity = 14;</code>
*/
@@ -2308,7 +2398,6 @@ public final class BatchReport {
*/
boolean getManualSeverity();
- // optional string reporter = 15;
/**
* <code>optional string reporter = 15;</code>
*/
@@ -2323,7 +2412,6 @@ public final class BatchReport {
com.google.protobuf.ByteString
getReporterBytes();
- // optional string assignee = 16;
/**
* <code>optional string assignee = 16;</code>
*/
@@ -2338,7 +2426,6 @@ public final class BatchReport {
com.google.protobuf.ByteString
getAssigneeBytes();
- // optional string action_plan_key = 17;
/**
* <code>optional string action_plan_key = 17;</code>
*/
@@ -2353,7 +2440,6 @@ public final class BatchReport {
com.google.protobuf.ByteString
getActionPlanKeyBytes();
- // optional string attributes = 18;
/**
* <code>optional string attributes = 18;</code>
*/
@@ -2368,7 +2454,6 @@ public final class BatchReport {
com.google.protobuf.ByteString
getAttributesBytes();
- // optional string author_login = 19;
/**
* <code>optional string author_login = 19;</code>
*/
@@ -2383,7 +2468,6 @@ public final class BatchReport {
com.google.protobuf.ByteString
getAuthorLoginBytes();
- // optional int64 creation_date = 20;
/**
* <code>optional int64 creation_date = 20;</code>
*/
@@ -2393,7 +2477,6 @@ public final class BatchReport {
*/
long getCreationDate();
- // optional int64 close_date = 21;
/**
* <code>optional int64 close_date = 21;</code>
*/
@@ -2403,7 +2486,6 @@ public final class BatchReport {
*/
long getCloseDate();
- // optional int64 update_date = 22;
/**
* <code>optional int64 update_date = 22;</code>
*/
@@ -2413,7 +2495,6 @@ public final class BatchReport {
*/
long getUpdateDate();
- // optional int64 selected_at = 23;
/**
* <code>optional int64 selected_at = 23;</code>
*/
@@ -2423,7 +2504,6 @@ public final class BatchReport {
*/
long getSelectedAt();
- // optional string diff_fields = 24;
/**
* <code>optional string diff_fields = 24;</code>
*/
@@ -2438,7 +2518,6 @@ public final class BatchReport {
com.google.protobuf.ByteString
getDiffFieldsBytes();
- // optional bool is_changed = 25;
/**
* <code>optional bool is_changed = 25;</code>
*/
@@ -2448,7 +2527,6 @@ public final class BatchReport {
*/
boolean getIsChanged();
- // optional bool must_send_notification = 26;
/**
* <code>optional bool must_send_notification = 26;</code>
*/
@@ -2462,8 +2540,9 @@ public final class BatchReport {
* Protobuf type {@code Issue}
*/
public static final class Issue extends
- com.google.protobuf.GeneratedMessage
- implements IssueOrBuilder {
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:Issue)
+ IssueOrBuilder {
// Use Issue.newBuilder() to construct.
private Issue(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
@@ -2510,13 +2589,15 @@ public final class BatchReport {
break;
}
case 10: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
- ruleRepository_ = input.readBytes();
+ ruleRepository_ = bs;
break;
}
case 18: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
- ruleKey_ = input.readBytes();
+ ruleKey_ = bs;
break;
}
case 24: {
@@ -2525,8 +2606,9 @@ public final class BatchReport {
break;
}
case 34: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000008;
- msg_ = input.readBytes();
+ msg_ = bs;
break;
}
case 40: {
@@ -2541,11 +2623,12 @@ 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(input.readBytes());
+ tags_.add(bs);
break;
}
case 57: {
@@ -2559,8 +2642,9 @@ public final class BatchReport {
break;
}
case 74: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000080;
- uuid_ = input.readBytes();
+ uuid_ = bs;
break;
}
case 80: {
@@ -2569,18 +2653,21 @@ public final class BatchReport {
break;
}
case 90: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000200;
- resolution_ = input.readBytes();
+ resolution_ = bs;
break;
}
case 98: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000400;
- status_ = input.readBytes();
+ status_ = bs;
break;
}
case 106: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000800;
- checksum_ = input.readBytes();
+ checksum_ = bs;
break;
}
case 112: {
@@ -2589,28 +2676,33 @@ public final class BatchReport {
break;
}
case 122: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00002000;
- reporter_ = input.readBytes();
+ reporter_ = bs;
break;
}
case 130: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00004000;
- assignee_ = input.readBytes();
+ assignee_ = bs;
break;
}
case 138: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00008000;
- actionPlanKey_ = input.readBytes();
+ actionPlanKey_ = bs;
break;
}
case 146: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00010000;
- attributes_ = input.readBytes();
+ attributes_ = bs;
break;
}
case 154: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00020000;
- authorLogin_ = input.readBytes();
+ authorLogin_ = bs;
break;
}
case 160: {
@@ -2634,8 +2726,9 @@ public final class BatchReport {
break;
}
case 194: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00400000;
- diffFields_ = input.readBytes();
+ diffFields_ = bs;
break;
}
case 200: {
@@ -2657,7 +2750,7 @@ public final class BatchReport {
e.getMessage()).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
- tags_ = new com.google.protobuf.UnmodifiableLazyStringList(tags_);
+ tags_ = tags_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
@@ -2691,7 +2784,6 @@ 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_;
/**
@@ -2734,7 +2826,6 @@ public final class BatchReport {
}
}
- // optional string rule_key = 2;
public static final int RULE_KEY_FIELD_NUMBER = 2;
private java.lang.Object ruleKey_;
/**
@@ -2777,7 +2868,6 @@ public final class BatchReport {
}
}
- // optional int32 line = 3;
public static final int LINE_FIELD_NUMBER = 3;
private int line_;
/**
@@ -2793,7 +2883,6 @@ public final class BatchReport {
return line_;
}
- // optional string msg = 4;
public static final int MSG_FIELD_NUMBER = 4;
private java.lang.Object msg_;
/**
@@ -2836,7 +2925,6 @@ public final class BatchReport {
}
}
- // optional .Severity severity = 5;
public static final int SEVERITY_FIELD_NUMBER = 5;
private org.sonar.batch.protocol.Constants.Severity severity_;
/**
@@ -2852,13 +2940,12 @@ 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 java.util.List<java.lang.String>
+ public com.google.protobuf.ProtocolStringList
getTagsList() {
return tags_;
}
@@ -2882,7 +2969,6 @@ 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_;
/**
@@ -2906,7 +2992,6 @@ public final class BatchReport {
return effortToFix_;
}
- // optional bool is_new = 8;
public static final int IS_NEW_FIELD_NUMBER = 8;
private boolean isNew_;
/**
@@ -2922,7 +3007,6 @@ public final class BatchReport {
return isNew_;
}
- // optional string uuid = 9;
public static final int UUID_FIELD_NUMBER = 9;
private java.lang.Object uuid_;
/**
@@ -2965,7 +3049,6 @@ public final class BatchReport {
}
}
- // optional int64 debt_in_minutes = 10;
public static final int DEBT_IN_MINUTES_FIELD_NUMBER = 10;
private long debtInMinutes_;
/**
@@ -2981,7 +3064,6 @@ public final class BatchReport {
return debtInMinutes_;
}
- // optional string resolution = 11;
public static final int RESOLUTION_FIELD_NUMBER = 11;
private java.lang.Object resolution_;
/**
@@ -3024,7 +3106,6 @@ public final class BatchReport {
}
}
- // optional string status = 12;
public static final int STATUS_FIELD_NUMBER = 12;
private java.lang.Object status_;
/**
@@ -3067,7 +3148,6 @@ public final class BatchReport {
}
}
- // optional string checksum = 13;
public static final int CHECKSUM_FIELD_NUMBER = 13;
private java.lang.Object checksum_;
/**
@@ -3110,7 +3190,6 @@ public final class BatchReport {
}
}
- // optional bool manual_severity = 14;
public static final int MANUAL_SEVERITY_FIELD_NUMBER = 14;
private boolean manualSeverity_;
/**
@@ -3126,7 +3205,6 @@ public final class BatchReport {
return manualSeverity_;
}
- // optional string reporter = 15;
public static final int REPORTER_FIELD_NUMBER = 15;
private java.lang.Object reporter_;
/**
@@ -3169,7 +3247,6 @@ public final class BatchReport {
}
}
- // optional string assignee = 16;
public static final int ASSIGNEE_FIELD_NUMBER = 16;
private java.lang.Object assignee_;
/**
@@ -3212,7 +3289,6 @@ 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_;
/**
@@ -3255,7 +3331,6 @@ public final class BatchReport {
}
}
- // optional string attributes = 18;
public static final int ATTRIBUTES_FIELD_NUMBER = 18;
private java.lang.Object attributes_;
/**
@@ -3298,7 +3373,6 @@ public final class BatchReport {
}
}
- // optional string author_login = 19;
public static final int AUTHOR_LOGIN_FIELD_NUMBER = 19;
private java.lang.Object authorLogin_;
/**
@@ -3341,7 +3415,6 @@ public final class BatchReport {
}
}
- // optional int64 creation_date = 20;
public static final int CREATION_DATE_FIELD_NUMBER = 20;
private long creationDate_;
/**
@@ -3357,7 +3430,6 @@ public final class BatchReport {
return creationDate_;
}
- // optional int64 close_date = 21;
public static final int CLOSE_DATE_FIELD_NUMBER = 21;
private long closeDate_;
/**
@@ -3373,7 +3445,6 @@ public final class BatchReport {
return closeDate_;
}
- // optional int64 update_date = 22;
public static final int UPDATE_DATE_FIELD_NUMBER = 22;
private long updateDate_;
/**
@@ -3389,7 +3460,6 @@ public final class BatchReport {
return updateDate_;
}
- // optional int64 selected_at = 23;
public static final int SELECTED_AT_FIELD_NUMBER = 23;
private long selectedAt_;
/**
@@ -3405,7 +3475,6 @@ 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_;
/**
@@ -3448,7 +3517,6 @@ public final class BatchReport {
}
}
- // optional bool is_changed = 25;
public static final int IS_CHANGED_FIELD_NUMBER = 25;
private boolean isChanged_;
/**
@@ -3464,7 +3532,6 @@ 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_;
/**
@@ -3511,7 +3578,8 @@ public final class BatchReport {
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
@@ -3798,8 +3866,9 @@ public final class BatchReport {
* Protobuf type {@code Issue}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder>
- implements org.sonar.batch.protocol.output.BatchReport.IssueOrBuilder {
+ com.google.protobuf.GeneratedMessage.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:Issue)
+ 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;
@@ -3933,8 +4002,7 @@ public final class BatchReport {
}
result.severity_ = severity_;
if (((bitField0_ & 0x00000020) == 0x00000020)) {
- tags_ = new com.google.protobuf.UnmodifiableLazyStringList(
- tags_);
+ tags_ = tags_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000020);
}
result.tags_ = tags_;
@@ -4172,7 +4240,6 @@ public final class BatchReport {
}
private int bitField0_;
- // optional string rule_repository = 1;
private java.lang.Object ruleRepository_ = "";
/**
* <code>optional string rule_repository = 1;</code>
@@ -4186,9 +4253,12 @@ public final class BatchReport {
public java.lang.String getRuleRepository() {
java.lang.Object ref = ruleRepository_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- ruleRepository_ = s;
+ 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;
@@ -4246,7 +4316,6 @@ public final class BatchReport {
return this;
}
- // optional string rule_key = 2;
private java.lang.Object ruleKey_ = "";
/**
* <code>optional string rule_key = 2;</code>
@@ -4260,9 +4329,12 @@ public final class BatchReport {
public java.lang.String getRuleKey() {
java.lang.Object ref = ruleKey_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- ruleKey_ = s;
+ 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;
@@ -4320,7 +4392,6 @@ public final class BatchReport {
return this;
}
- // optional int32 line = 3;
private int line_ ;
/**
* <code>optional int32 line = 3;</code>
@@ -4353,7 +4424,6 @@ public final class BatchReport {
return this;
}
- // optional string msg = 4;
private java.lang.Object msg_ = "";
/**
* <code>optional string msg = 4;</code>
@@ -4367,9 +4437,12 @@ public final class BatchReport {
public java.lang.String getMsg() {
java.lang.Object ref = msg_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- msg_ = s;
+ 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;
@@ -4427,7 +4500,6 @@ 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>
@@ -4463,7 +4535,6 @@ 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)) {
@@ -4474,9 +4545,9 @@ public final class BatchReport {
/**
* <code>repeated string tags = 6;</code>
*/
- public java.util.List<java.lang.String>
+ public com.google.protobuf.ProtocolStringList
getTagsList() {
- return java.util.Collections.unmodifiableList(tags_);
+ return tags_.getUnmodifiableView();
}
/**
* <code>repeated string tags = 6;</code>
@@ -4529,7 +4600,8 @@ public final class BatchReport {
public Builder addAllTags(
java.lang.Iterable<java.lang.String> values) {
ensureTagsIsMutable();
- super.addAll(values, tags_);
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, tags_);
onChanged();
return this;
}
@@ -4556,7 +4628,6 @@ public final class BatchReport {
return this;
}
- // optional double effort_to_fix = 7;
private double effortToFix_ ;
/**
* <code>optional double effort_to_fix = 7;</code>
@@ -4605,7 +4676,6 @@ public final class BatchReport {
return this;
}
- // optional bool is_new = 8;
private boolean isNew_ ;
/**
* <code>optional bool is_new = 8;</code>
@@ -4638,7 +4708,6 @@ public final class BatchReport {
return this;
}
- // optional string uuid = 9;
private java.lang.Object uuid_ = "";
/**
* <code>optional string uuid = 9;</code>
@@ -4652,9 +4721,12 @@ public final class BatchReport {
public java.lang.String getUuid() {
java.lang.Object ref = uuid_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- uuid_ = s;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ uuid_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
@@ -4712,7 +4784,6 @@ public final class BatchReport {
return this;
}
- // optional int64 debt_in_minutes = 10;
private long debtInMinutes_ ;
/**
* <code>optional int64 debt_in_minutes = 10;</code>
@@ -4745,7 +4816,6 @@ public final class BatchReport {
return this;
}
- // optional string resolution = 11;
private java.lang.Object resolution_ = "";
/**
* <code>optional string resolution = 11;</code>
@@ -4759,9 +4829,12 @@ public final class BatchReport {
public java.lang.String getResolution() {
java.lang.Object ref = resolution_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- resolution_ = s;
+ 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;
@@ -4819,7 +4892,6 @@ public final class BatchReport {
return this;
}
- // optional string status = 12;
private java.lang.Object status_ = "";
/**
* <code>optional string status = 12;</code>
@@ -4833,9 +4905,12 @@ public final class BatchReport {
public java.lang.String getStatus() {
java.lang.Object ref = status_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- status_ = s;
+ 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;
@@ -4893,7 +4968,6 @@ public final class BatchReport {
return this;
}
- // optional string checksum = 13;
private java.lang.Object checksum_ = "";
/**
* <code>optional string checksum = 13;</code>
@@ -4907,9 +4981,12 @@ public final class BatchReport {
public java.lang.String getChecksum() {
java.lang.Object ref = checksum_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- checksum_ = s;
+ 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;
@@ -4967,7 +5044,6 @@ public final class BatchReport {
return this;
}
- // optional bool manual_severity = 14;
private boolean manualSeverity_ ;
/**
* <code>optional bool manual_severity = 14;</code>
@@ -5000,7 +5076,6 @@ public final class BatchReport {
return this;
}
- // optional string reporter = 15;
private java.lang.Object reporter_ = "";
/**
* <code>optional string reporter = 15;</code>
@@ -5014,9 +5089,12 @@ public final class BatchReport {
public java.lang.String getReporter() {
java.lang.Object ref = reporter_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- reporter_ = s;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ reporter_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
@@ -5074,7 +5152,6 @@ public final class BatchReport {
return this;
}
- // optional string assignee = 16;
private java.lang.Object assignee_ = "";
/**
* <code>optional string assignee = 16;</code>
@@ -5088,9 +5165,12 @@ public final class BatchReport {
public java.lang.String getAssignee() {
java.lang.Object ref = assignee_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- assignee_ = s;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ assignee_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
@@ -5148,7 +5228,6 @@ 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>
@@ -5162,9 +5241,12 @@ public final class BatchReport {
public java.lang.String getActionPlanKey() {
java.lang.Object ref = actionPlanKey_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- actionPlanKey_ = s;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ actionPlanKey_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
@@ -5222,7 +5304,6 @@ public final class BatchReport {
return this;
}
- // optional string attributes = 18;
private java.lang.Object attributes_ = "";
/**
* <code>optional string attributes = 18;</code>
@@ -5236,9 +5317,12 @@ public final class BatchReport {
public java.lang.String getAttributes() {
java.lang.Object ref = attributes_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- attributes_ = s;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ attributes_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
@@ -5296,7 +5380,6 @@ public final class BatchReport {
return this;
}
- // optional string author_login = 19;
private java.lang.Object authorLogin_ = "";
/**
* <code>optional string author_login = 19;</code>
@@ -5310,9 +5393,12 @@ public final class BatchReport {
public java.lang.String getAuthorLogin() {
java.lang.Object ref = authorLogin_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- authorLogin_ = s;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ authorLogin_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
@@ -5370,7 +5456,6 @@ public final class BatchReport {
return this;
}
- // optional int64 creation_date = 20;
private long creationDate_ ;
/**
* <code>optional int64 creation_date = 20;</code>
@@ -5403,7 +5488,6 @@ public final class BatchReport {
return this;
}
- // optional int64 close_date = 21;
private long closeDate_ ;
/**
* <code>optional int64 close_date = 21;</code>
@@ -5436,7 +5520,6 @@ public final class BatchReport {
return this;
}
- // optional int64 update_date = 22;
private long updateDate_ ;
/**
* <code>optional int64 update_date = 22;</code>
@@ -5469,7 +5552,6 @@ public final class BatchReport {
return this;
}
- // optional int64 selected_at = 23;
private long selectedAt_ ;
/**
* <code>optional int64 selected_at = 23;</code>
@@ -5502,7 +5584,6 @@ public final class BatchReport {
return this;
}
- // optional string diff_fields = 24;
private java.lang.Object diffFields_ = "";
/**
* <code>optional string diff_fields = 24;</code>
@@ -5516,9 +5597,12 @@ public final class BatchReport {
public java.lang.String getDiffFields() {
java.lang.Object ref = diffFields_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- diffFields_ = s;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ diffFields_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
@@ -5576,7 +5660,6 @@ public final class BatchReport {
return this;
}
- // optional bool is_changed = 25;
private boolean isChanged_ ;
/**
* <code>optional bool is_changed = 25;</code>
@@ -5609,7 +5692,6 @@ public final class BatchReport {
return this;
}
- // optional bool must_send_notification = 26;
private boolean mustSendNotification_ ;
/**
* <code>optional bool must_send_notification = 26;</code>
@@ -5653,10 +5735,10 @@ public final class BatchReport {
// @@protoc_insertion_point(class_scope:Issue)
}
- public interface IssuesOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
+ public interface IssuesOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:Issues)
+ com.google.protobuf.MessageOrBuilder {
- // optional int32 component_ref = 1;
/**
* <code>optional int32 component_ref = 1;</code>
*/
@@ -5666,7 +5748,6 @@ public final class BatchReport {
*/
int getComponentRef();
- // repeated .Issue list = 2;
/**
* <code>repeated .Issue list = 2;</code>
*/
@@ -5695,8 +5776,9 @@ public final class BatchReport {
* Protobuf type {@code Issues}
*/
public static final class Issues extends
- com.google.protobuf.GeneratedMessage
- implements IssuesOrBuilder {
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:Issues)
+ IssuesOrBuilder {
// Use Issues.newBuilder() to construct.
private Issues(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
@@ -5798,7 +5880,6 @@ public final class BatchReport {
}
private int bitField0_;
- // optional int32 component_ref = 1;
public static final int COMPONENT_REF_FIELD_NUMBER = 1;
private int componentRef_;
/**
@@ -5814,7 +5895,6 @@ 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_;
/**
@@ -5857,7 +5937,8 @@ public final class BatchReport {
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
@@ -5971,8 +6052,9 @@ public final class BatchReport {
* Protobuf type {@code Issues}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder>
- implements org.sonar.batch.protocol.output.BatchReport.IssuesOrBuilder {
+ com.google.protobuf.GeneratedMessage.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:Issues)
+ 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;
@@ -6127,7 +6209,6 @@ public final class BatchReport {
}
private int bitField0_;
- // optional int32 component_ref = 1;
private int componentRef_ ;
/**
* <code>optional int32 component_ref = 1;</code>
@@ -6160,7 +6241,6 @@ 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() {
@@ -6302,7 +6382,8 @@ public final class BatchReport {
java.lang.Iterable<? extends org.sonar.batch.protocol.output.BatchReport.Issue> values) {
if (listBuilder_ == null) {
ensureListIsMutable();
- super.addAll(values, list_);
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, list_);
onChanged();
} else {
listBuilder_.addAllMessages(values);
@@ -6411,22 +6492,22 @@ public final class BatchReport {
// @@protoc_insertion_point(class_scope:Issues)
}
- private static com.google.protobuf.Descriptors.Descriptor
+ private static final com.google.protobuf.Descriptors.Descriptor
internal_static_Metadata_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_Metadata_fieldAccessorTable;
- private static com.google.protobuf.Descriptors.Descriptor
+ private static final com.google.protobuf.Descriptors.Descriptor
internal_static_Component_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_Component_fieldAccessorTable;
- private static com.google.protobuf.Descriptors.Descriptor
+ private static final com.google.protobuf.Descriptors.Descriptor
internal_static_Issue_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_Issue_fieldAccessorTable;
- private static com.google.protobuf.Descriptors.Descriptor
+ private static final com.google.protobuf.Descriptors.Descriptor
internal_static_Issues_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
@@ -6440,68 +6521,69 @@ public final class BatchReport {
descriptor;
static {
java.lang.String[] descriptorData = {
- "\n\022batch_report.proto\032\017constants.proto\"R\n" +
+ "\n\022batch_report.proto\032\017constants.proto\"g\n" +
"\010Metadata\022\025\n\ranalysis_date\030\001 \001(\003\022\023\n\013proj" +
"ect_key\030\002 \001(\t\022\032\n\022root_component_ref\030\003 \001(" +
- "\005\"\260\001\n\tComponent\022\013\n\003ref\030\001 \001(\005\022\014\n\004path\030\002 \001" +
- "(\t\022\014\n\004name\030\003 \001(\t\022\034\n\004type\030\004 \001(\0162\016.Compone" +
- "ntType\022\017\n\007is_test\030\005 \001(\010\022\020\n\010language\030\006 \001(" +
- "\t\022\026\n\nchild_refs\030\007 \003(\005B\002\020\001\022\023\n\013snapshot_id" +
- "\030\010 \001(\005\022\014\n\004uuid\030\t \001(\t\"\232\004\n\005Issue\022\027\n\017rule_r" +
- "epository\030\001 \001(\t\022\020\n\010rule_key\030\002 \001(\t\022\014\n\004lin" +
- "e\030\003 \001(\005\022\013\n\003msg\030\004 \001(\t\022\033\n\010severity\030\005 \001(\0162\t",
- ".Severity\022\014\n\004tags\030\006 \003(\t\022\025\n\reffort_to_fix" +
- "\030\007 \001(\001\022\016\n\006is_new\030\010 \001(\010\022\014\n\004uuid\030\t \001(\t\022\027\n\017" +
- "debt_in_minutes\030\n \001(\003\022\022\n\nresolution\030\013 \001(" +
- "\t\022\016\n\006status\030\014 \001(\t\022\020\n\010checksum\030\r \001(\t\022\027\n\017m" +
- "anual_severity\030\016 \001(\010\022\020\n\010reporter\030\017 \001(\t\022\020" +
- "\n\010assignee\030\020 \001(\t\022\027\n\017action_plan_key\030\021 \001(" +
- "\t\022\022\n\nattributes\030\022 \001(\t\022\024\n\014author_login\030\023 " +
- "\001(\t\022\025\n\rcreation_date\030\024 \001(\003\022\022\n\nclose_date" +
- "\030\025 \001(\003\022\023\n\013update_date\030\026 \001(\003\022\023\n\013selected_" +
- "at\030\027 \001(\003\022\023\n\013diff_fields\030\030 \001(\t\022\022\n\nis_chan",
- "ged\030\031 \001(\010\022\036\n\026must_send_notification\030\032 \001(" +
- "\010\"5\n\006Issues\022\025\n\rcomponent_ref\030\001 \001(\005\022\024\n\004li" +
- "st\030\002 \003(\0132\006.IssueB#\n\037org.sonar.batch.prot" +
- "ocol.outputH\001"
+ "\005\022\023\n\013snapshot_id\030\004 \001(\003\"\260\001\n\tComponent\022\013\n\003" +
+ "ref\030\001 \001(\005\022\014\n\004path\030\002 \001(\t\022\014\n\004name\030\003 \001(\t\022\034\n" +
+ "\004type\030\004 \001(\0162\016.ComponentType\022\017\n\007is_test\030\005" +
+ " \001(\010\022\020\n\010language\030\006 \001(\t\022\026\n\nchild_refs\030\007 \003" +
+ "(\005B\002\020\001\022\023\n\013snapshot_id\030\010 \001(\005\022\014\n\004uuid\030\t \001(" +
+ "\t\"\232\004\n\005Issue\022\027\n\017rule_repository\030\001 \001(\t\022\020\n\010" +
+ "rule_key\030\002 \001(\t\022\014\n\004line\030\003 \001(\005\022\013\n\003msg\030\004 \001(",
+ "\t\022\033\n\010severity\030\005 \001(\0162\t.Severity\022\014\n\004tags\030\006" +
+ " \003(\t\022\025\n\reffort_to_fix\030\007 \001(\001\022\016\n\006is_new\030\010 " +
+ "\001(\010\022\014\n\004uuid\030\t \001(\t\022\027\n\017debt_in_minutes\030\n \001" +
+ "(\003\022\022\n\nresolution\030\013 \001(\t\022\016\n\006status\030\014 \001(\t\022\020" +
+ "\n\010checksum\030\r \001(\t\022\027\n\017manual_severity\030\016 \001(" +
+ "\010\022\020\n\010reporter\030\017 \001(\t\022\020\n\010assignee\030\020 \001(\t\022\027\n" +
+ "\017action_plan_key\030\021 \001(\t\022\022\n\nattributes\030\022 \001" +
+ "(\t\022\024\n\014author_login\030\023 \001(\t\022\025\n\rcreation_dat" +
+ "e\030\024 \001(\003\022\022\n\nclose_date\030\025 \001(\003\022\023\n\013update_da" +
+ "te\030\026 \001(\003\022\023\n\013selected_at\030\027 \001(\003\022\023\n\013diff_fi",
+ "elds\030\030 \001(\t\022\022\n\nis_changed\030\031 \001(\010\022\036\n\026must_s" +
+ "end_notification\030\032 \001(\010\"5\n\006Issues\022\025\n\rcomp" +
+ "onent_ref\030\001 \001(\005\022\024\n\004list\030\002 \003(\0132\006.IssueB#\n" +
+ "\037org.sonar.batch.protocol.outputH\001"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
- new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
- public com.google.protobuf.ExtensionRegistry assignDescriptors(
- com.google.protobuf.Descriptors.FileDescriptor root) {
- descriptor = root;
- 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;
- }
- };
+ 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_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", "SnapshotId", });
+ 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 523344bac28..a1b40ec8fbf 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 com.google.protobuf.MessageOrBuilder {
+ public interface LineOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:org.sonar.server.source.db.Line)
+ com.google.protobuf.MessageOrBuilder {
- // optional int32 line = 1;
/**
* <code>optional int32 line = 1;</code>
*/
@@ -21,7 +21,6 @@ public final class FileSourceDb {
*/
int getLine();
- // optional string source = 2;
/**
* <code>optional string source = 2;</code>
*/
@@ -36,7 +35,6 @@ public final class FileSourceDb {
com.google.protobuf.ByteString
getSourceBytes();
- // optional string scm_revision = 3;
/**
* <code>optional string scm_revision = 3;</code>
*
@@ -63,7 +61,6 @@ public final class FileSourceDb {
com.google.protobuf.ByteString
getScmRevisionBytes();
- // optional string scm_author = 4;
/**
* <code>optional string scm_author = 4;</code>
*/
@@ -78,7 +75,6 @@ public final class FileSourceDb {
com.google.protobuf.ByteString
getScmAuthorBytes();
- // optional int64 scm_date = 5;
/**
* <code>optional int64 scm_date = 5;</code>
*/
@@ -88,7 +84,6 @@ public final class FileSourceDb {
*/
long getScmDate();
- // optional int32 ut_line_hits = 6;
/**
* <code>optional int32 ut_line_hits = 6;</code>
*
@@ -106,7 +101,6 @@ public final class FileSourceDb {
*/
int getUtLineHits();
- // optional int32 ut_conditions = 7;
/**
* <code>optional int32 ut_conditions = 7;</code>
*/
@@ -116,7 +110,6 @@ public final class FileSourceDb {
*/
int getUtConditions();
- // optional int32 ut_covered_conditions = 8;
/**
* <code>optional int32 ut_covered_conditions = 8;</code>
*/
@@ -126,7 +119,6 @@ public final class FileSourceDb {
*/
int getUtCoveredConditions();
- // optional int32 it_line_hits = 9;
/**
* <code>optional int32 it_line_hits = 9;</code>
*
@@ -144,7 +136,6 @@ public final class FileSourceDb {
*/
int getItLineHits();
- // optional int32 it_conditions = 10;
/**
* <code>optional int32 it_conditions = 10;</code>
*/
@@ -154,7 +145,6 @@ public final class FileSourceDb {
*/
int getItConditions();
- // optional int32 it_covered_conditions = 11;
/**
* <code>optional int32 it_covered_conditions = 11;</code>
*/
@@ -164,7 +154,6 @@ public final class FileSourceDb {
*/
int getItCoveredConditions();
- // optional int32 overall_line_hits = 12;
/**
* <code>optional int32 overall_line_hits = 12;</code>
*
@@ -182,7 +171,6 @@ public final class FileSourceDb {
*/
int getOverallLineHits();
- // optional int32 overall_conditions = 13;
/**
* <code>optional int32 overall_conditions = 13;</code>
*/
@@ -192,7 +180,6 @@ public final class FileSourceDb {
*/
int getOverallConditions();
- // optional int32 overall_covered_conditions = 14;
/**
* <code>optional int32 overall_covered_conditions = 14;</code>
*/
@@ -202,7 +189,6 @@ public final class FileSourceDb {
*/
int getOverallCoveredConditions();
- // optional string highlighting = 15;
/**
* <code>optional string highlighting = 15;</code>
*/
@@ -217,7 +203,6 @@ public final class FileSourceDb {
com.google.protobuf.ByteString
getHighlightingBytes();
- // optional string symbols = 16;
/**
* <code>optional string symbols = 16;</code>
*/
@@ -232,7 +217,6 @@ public final class FileSourceDb {
com.google.protobuf.ByteString
getSymbolsBytes();
- // repeated int32 duplications = 17 [packed = true];
/**
* <code>repeated int32 duplications = 17 [packed = true];</code>
*/
@@ -250,8 +234,9 @@ public final class FileSourceDb {
* Protobuf type {@code org.sonar.server.source.db.Line}
*/
public static final class Line extends
- com.google.protobuf.GeneratedMessage
- implements LineOrBuilder {
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:org.sonar.server.source.db.Line)
+ LineOrBuilder {
// Use Line.newBuilder() to construct.
private Line(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
@@ -303,18 +288,21 @@ public final class FileSourceDb {
break;
}
case 18: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
- source_ = input.readBytes();
+ source_ = bs;
break;
}
case 26: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000004;
- scmRevision_ = input.readBytes();
+ scmRevision_ = bs;
break;
}
case 34: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000008;
- scmAuthor_ = input.readBytes();
+ scmAuthor_ = bs;
break;
}
case 40: {
@@ -368,13 +356,15 @@ public final class FileSourceDb {
break;
}
case 122: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00004000;
- highlighting_ = input.readBytes();
+ highlighting_ = bs;
break;
}
case 130: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00008000;
- symbols_ = input.readBytes();
+ symbols_ = bs;
break;
}
case 136: {
@@ -441,7 +431,6 @@ public final class FileSourceDb {
}
private int bitField0_;
- // optional int32 line = 1;
public static final int LINE_FIELD_NUMBER = 1;
private int line_;
/**
@@ -457,7 +446,6 @@ public final class FileSourceDb {
return line_;
}
- // optional string source = 2;
public static final int SOURCE_FIELD_NUMBER = 2;
private java.lang.Object source_;
/**
@@ -500,7 +488,6 @@ public final class FileSourceDb {
}
}
- // optional string scm_revision = 3;
public static final int SCM_REVISION_FIELD_NUMBER = 3;
private java.lang.Object scmRevision_;
/**
@@ -555,7 +542,6 @@ public final class FileSourceDb {
}
}
- // optional string scm_author = 4;
public static final int SCM_AUTHOR_FIELD_NUMBER = 4;
private java.lang.Object scmAuthor_;
/**
@@ -598,7 +584,6 @@ public final class FileSourceDb {
}
}
- // optional int64 scm_date = 5;
public static final int SCM_DATE_FIELD_NUMBER = 5;
private long scmDate_;
/**
@@ -614,7 +599,6 @@ 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_;
/**
@@ -638,7 +622,6 @@ public final class FileSourceDb {
return utLineHits_;
}
- // optional int32 ut_conditions = 7;
public static final int UT_CONDITIONS_FIELD_NUMBER = 7;
private int utConditions_;
/**
@@ -654,7 +637,6 @@ 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_;
/**
@@ -670,7 +652,6 @@ 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_;
/**
@@ -694,7 +675,6 @@ public final class FileSourceDb {
return itLineHits_;
}
- // optional int32 it_conditions = 10;
public static final int IT_CONDITIONS_FIELD_NUMBER = 10;
private int itConditions_;
/**
@@ -710,7 +690,6 @@ 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_;
/**
@@ -726,7 +705,6 @@ 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_;
/**
@@ -750,7 +728,6 @@ public final class FileSourceDb {
return overallLineHits_;
}
- // optional int32 overall_conditions = 13;
public static final int OVERALL_CONDITIONS_FIELD_NUMBER = 13;
private int overallConditions_;
/**
@@ -766,7 +743,6 @@ 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_;
/**
@@ -782,7 +758,6 @@ public final class FileSourceDb {
return overallCoveredConditions_;
}
- // optional string highlighting = 15;
public static final int HIGHLIGHTING_FIELD_NUMBER = 15;
private java.lang.Object highlighting_;
/**
@@ -825,7 +800,6 @@ public final class FileSourceDb {
}
}
- // optional string symbols = 16;
public static final int SYMBOLS_FIELD_NUMBER = 16;
private java.lang.Object symbols_;
/**
@@ -868,7 +842,6 @@ 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_;
/**
@@ -914,7 +887,8 @@ public final class FileSourceDb {
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
@@ -1147,8 +1121,9 @@ 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 org.sonar.server.source.db.FileSourceDb.LineOrBuilder {
+ 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 {
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;
@@ -1423,7 +1398,6 @@ public final class FileSourceDb {
}
private int bitField0_;
- // optional int32 line = 1;
private int line_ ;
/**
* <code>optional int32 line = 1;</code>
@@ -1456,7 +1430,6 @@ public final class FileSourceDb {
return this;
}
- // optional string source = 2;
private java.lang.Object source_ = "";
/**
* <code>optional string source = 2;</code>
@@ -1470,9 +1443,12 @@ public final class FileSourceDb {
public java.lang.String getSource() {
java.lang.Object ref = source_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- source_ = s;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ source_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
@@ -1530,7 +1506,6 @@ public final class FileSourceDb {
return this;
}
- // optional string scm_revision = 3;
private java.lang.Object scmRevision_ = "";
/**
* <code>optional string scm_revision = 3;</code>
@@ -1552,9 +1527,12 @@ public final class FileSourceDb {
public java.lang.String getScmRevision() {
java.lang.Object ref = scmRevision_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- scmRevision_ = s;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ scmRevision_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
@@ -1628,7 +1606,6 @@ public final class FileSourceDb {
return this;
}
- // optional string scm_author = 4;
private java.lang.Object scmAuthor_ = "";
/**
* <code>optional string scm_author = 4;</code>
@@ -1642,9 +1619,12 @@ public final class FileSourceDb {
public java.lang.String getScmAuthor() {
java.lang.Object ref = scmAuthor_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- scmAuthor_ = s;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ scmAuthor_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
@@ -1702,7 +1682,6 @@ public final class FileSourceDb {
return this;
}
- // optional int64 scm_date = 5;
private long scmDate_ ;
/**
* <code>optional int64 scm_date = 5;</code>
@@ -1735,7 +1714,6 @@ public final class FileSourceDb {
return this;
}
- // optional int32 ut_line_hits = 6;
private int utLineHits_ ;
/**
* <code>optional int32 ut_line_hits = 6;</code>
@@ -1784,7 +1762,6 @@ public final class FileSourceDb {
return this;
}
- // optional int32 ut_conditions = 7;
private int utConditions_ ;
/**
* <code>optional int32 ut_conditions = 7;</code>
@@ -1817,7 +1794,6 @@ public final class FileSourceDb {
return this;
}
- // optional int32 ut_covered_conditions = 8;
private int utCoveredConditions_ ;
/**
* <code>optional int32 ut_covered_conditions = 8;</code>
@@ -1850,7 +1826,6 @@ public final class FileSourceDb {
return this;
}
- // optional int32 it_line_hits = 9;
private int itLineHits_ ;
/**
* <code>optional int32 it_line_hits = 9;</code>
@@ -1899,7 +1874,6 @@ public final class FileSourceDb {
return this;
}
- // optional int32 it_conditions = 10;
private int itConditions_ ;
/**
* <code>optional int32 it_conditions = 10;</code>
@@ -1932,7 +1906,6 @@ public final class FileSourceDb {
return this;
}
- // optional int32 it_covered_conditions = 11;
private int itCoveredConditions_ ;
/**
* <code>optional int32 it_covered_conditions = 11;</code>
@@ -1965,7 +1938,6 @@ public final class FileSourceDb {
return this;
}
- // optional int32 overall_line_hits = 12;
private int overallLineHits_ ;
/**
* <code>optional int32 overall_line_hits = 12;</code>
@@ -2014,7 +1986,6 @@ public final class FileSourceDb {
return this;
}
- // optional int32 overall_conditions = 13;
private int overallConditions_ ;
/**
* <code>optional int32 overall_conditions = 13;</code>
@@ -2047,7 +2018,6 @@ public final class FileSourceDb {
return this;
}
- // optional int32 overall_covered_conditions = 14;
private int overallCoveredConditions_ ;
/**
* <code>optional int32 overall_covered_conditions = 14;</code>
@@ -2080,7 +2050,6 @@ public final class FileSourceDb {
return this;
}
- // optional string highlighting = 15;
private java.lang.Object highlighting_ = "";
/**
* <code>optional string highlighting = 15;</code>
@@ -2094,9 +2063,12 @@ public final class FileSourceDb {
public java.lang.String getHighlighting() {
java.lang.Object ref = highlighting_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- highlighting_ = s;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ highlighting_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
@@ -2154,7 +2126,6 @@ public final class FileSourceDb {
return this;
}
- // optional string symbols = 16;
private java.lang.Object symbols_ = "";
/**
* <code>optional string symbols = 16;</code>
@@ -2168,9 +2139,12 @@ public final class FileSourceDb {
public java.lang.String getSymbols() {
java.lang.Object ref = symbols_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- symbols_ = s;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ symbols_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
@@ -2228,7 +2202,6 @@ 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)) {
@@ -2280,7 +2253,8 @@ public final class FileSourceDb {
public Builder addAllDuplications(
java.lang.Iterable<? extends java.lang.Integer> values) {
ensureDuplicationsIsMutable();
- super.addAll(values, duplications_);
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, duplications_);
onChanged();
return this;
}
@@ -2305,10 +2279,10 @@ public final class FileSourceDb {
// @@protoc_insertion_point(class_scope:org.sonar.server.source.db.Line)
}
- public interface DataOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
+ public interface DataOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:org.sonar.server.source.db.Data)
+ com.google.protobuf.MessageOrBuilder {
- // repeated .org.sonar.server.source.db.Line lines = 1;
/**
* <code>repeated .org.sonar.server.source.db.Line lines = 1;</code>
*/
@@ -2337,8 +2311,9 @@ public final class FileSourceDb {
* Protobuf type {@code org.sonar.server.source.db.Data}
*/
public static final class Data extends
- com.google.protobuf.GeneratedMessage
- implements DataOrBuilder {
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:org.sonar.server.source.db.Data)
+ DataOrBuilder {
// Use Data.newBuilder() to construct.
private Data(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
@@ -2434,7 +2409,6 @@ 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_;
/**
@@ -2476,7 +2450,8 @@ public final class FileSourceDb {
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
@@ -2583,8 +2558,9 @@ 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 org.sonar.server.source.db.FileSourceDb.DataOrBuilder {
+ 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 {
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;
@@ -2728,7 +2704,6 @@ 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() {
@@ -2870,7 +2845,8 @@ public final class FileSourceDb {
java.lang.Iterable<? extends org.sonar.server.source.db.FileSourceDb.Line> values) {
if (linesBuilder_ == null) {
ensureLinesIsMutable();
- super.addAll(values, lines_);
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, lines_);
onChanged();
} else {
linesBuilder_.addAllMessages(values);
@@ -2979,12 +2955,12 @@ public final class FileSourceDb {
// @@protoc_insertion_point(class_scope:org.sonar.server.source.db.Data)
}
- private static com.google.protobuf.Descriptors.Descriptor
+ private static final 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 com.google.protobuf.Descriptors.Descriptor
+ private static final com.google.protobuf.Descriptors.Descriptor
internal_static_org_sonar_server_source_db_Data_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
@@ -3013,29 +2989,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;
- 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;
- }
- };
+ 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[] {
}, 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/output/BatchOutputReader.java b/sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/output/BatchReportReader.java
index 28c50041c82..872aa277e5d 100644
--- a/sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/output/BatchOutputReader.java
+++ b/sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/output/BatchReportReader.java
@@ -22,14 +22,15 @@ package org.sonar.batch.protocol.output;
import org.sonar.batch.protocol.ProtobufUtil;
import javax.annotation.CheckForNull;
+
import java.io.File;
import java.util.Collections;
-public class BatchOutputReader {
+public class BatchReportReader {
private final FileStructure fileStructure;
- public BatchOutputReader(File dir) {
+ public BatchReportReader(File dir) {
this.fileStructure = new FileStructure(dir);
}
diff --git a/sonar-batch-protocol/src/main/protobuf/batch_report.proto b/sonar-batch-protocol/src/main/protobuf/batch_report.proto
index d1acbfe00a3..af3f2dc1f37 100644
--- a/sonar-batch-protocol/src/main/protobuf/batch_report.proto
+++ b/sonar-batch-protocol/src/main/protobuf/batch_report.proto
@@ -42,6 +42,9 @@ message Metadata {
optional int64 analysis_date = 1;
optional string project_key = 2;
optional int32 root_component_ref = 3;
+
+ // temporary field used during development of computation stack
+ optional int64 snapshot_id = 4;
}
message Component {
diff --git a/sonar-batch-protocol/src/test/java/org/sonar/batch/protocol/output/BatchOutputReaderTest.java b/sonar-batch-protocol/src/test/java/org/sonar/batch/protocol/output/BatchReportReaderTest.java
index c9fc72df6c7..0be09049e68 100644
--- a/sonar-batch-protocol/src/test/java/org/sonar/batch/protocol/output/BatchOutputReaderTest.java
+++ b/sonar-batch-protocol/src/test/java/org/sonar/batch/protocol/output/BatchReportReaderTest.java
@@ -28,7 +28,7 @@ import java.util.Arrays;
import static org.assertj.core.api.Assertions.assertThat;
-public class BatchOutputReaderTest {
+public class BatchReportReaderTest {
@Rule
public TemporaryFolder temp = new TemporaryFolder();
@@ -39,7 +39,7 @@ public class BatchOutputReaderTest {
initFiles(dir);
- BatchOutputReader reader = new BatchOutputReader(dir);
+ BatchReportReader reader = new BatchReportReader(dir);
assertThat(reader.readMetadata().getAnalysisDate()).isEqualTo(15000000L);
assertThat(reader.readComponentIssues(1)).hasSize(1);
assertThat(reader.readComponentIssues(200)).isEmpty();