From 861a0409e84d60e82da9faa47c685021d0b25f76 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Lievremont Date: Tue, 5 May 2015 09:55:17 +0200 Subject: [PATCH] Fix protobuf merge --- .../org/sonar/batch/protocol/Constants.java | 14 +- .../batch/protocol/input/BatchInput.java | 326 +--- .../batch/protocol/output/BatchReport.java | 1733 ++++++++--------- .../sonar/server/source/db/FileSourceDb.java | 356 ++-- 4 files changed, 1094 insertions(+), 1335 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 f1c8fc0bb72..33b9bbc4363 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 @@ -793,13 +793,13 @@ public final class Constants { ".batch.protocolH\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 c22a567e468..a0a3e900e68 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 @@ -8,10 +8,10 @@ public final class BatchInput { public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { } - public interface ServerIssueOrBuilder - extends com.google.protobuf.MessageOrBuilder { + public interface ServerIssueOrBuilder extends + // @@protoc_insertion_point(interface_extends:ServerIssue) + com.google.protobuf.MessageOrBuilder { - // optional string key = 1; /** * optional string key = 1; */ @@ -26,7 +26,6 @@ public final class BatchInput { com.google.protobuf.ByteString getKeyBytes(); - // optional string module_key = 2; /** * optional string module_key = 2; */ @@ -41,7 +40,6 @@ public final class BatchInput { com.google.protobuf.ByteString getModuleKeyBytes(); - // optional string path = 3; /** * optional string path = 3; */ @@ -56,7 +54,6 @@ public final class BatchInput { com.google.protobuf.ByteString getPathBytes(); - // optional string rule_repository = 4; /** * optional string rule_repository = 4; */ @@ -71,7 +68,6 @@ public final class BatchInput { com.google.protobuf.ByteString getRuleRepositoryBytes(); - // optional string rule_key = 5; /** * optional string rule_key = 5; */ @@ -86,7 +82,6 @@ public final class BatchInput { com.google.protobuf.ByteString getRuleKeyBytes(); - // optional int32 line = 6; /** * optional int32 line = 6; */ @@ -96,7 +91,6 @@ public final class BatchInput { */ int getLine(); - // optional string msg = 7; /** * optional string msg = 7; */ @@ -111,7 +105,6 @@ public final class BatchInput { com.google.protobuf.ByteString getMsgBytes(); - // optional .Severity severity = 8; /** * optional .Severity severity = 8; */ @@ -121,7 +114,6 @@ public final class BatchInput { */ org.sonar.batch.protocol.Constants.Severity getSeverity(); - // optional bool manual_severity = 9; /** * optional bool manual_severity = 9; */ @@ -131,7 +123,6 @@ public final class BatchInput { */ boolean getManualSeverity(); - // optional string resolution = 10; /** * optional string resolution = 10; */ @@ -146,7 +137,6 @@ public final class BatchInput { com.google.protobuf.ByteString getResolutionBytes(); - // optional string status = 11; /** * optional string status = 11; */ @@ -161,7 +151,6 @@ public final class BatchInput { com.google.protobuf.ByteString getStatusBytes(); - // optional string checksum = 12; /** * optional string checksum = 12; */ @@ -176,7 +165,6 @@ public final class BatchInput { com.google.protobuf.ByteString getChecksumBytes(); - // optional string assignee_login = 13; /** * optional string assignee_login = 13; */ @@ -191,7 +179,6 @@ public final class BatchInput { com.google.protobuf.ByteString getAssigneeLoginBytes(); - // optional int64 creation_date = 14; /** * optional int64 creation_date = 14; */ @@ -205,8 +192,9 @@ public final class BatchInput { * Protobuf type {@code ServerIssue} */ public static final class ServerIssue extends - com.google.protobuf.GeneratedMessage - implements 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); @@ -219,7 +207,6 @@ public final class BatchInput { return defaultInstance; } - @Override public ServerIssue getDefaultInstanceForType() { return defaultInstance; } @@ -254,28 +241,33 @@ public final class BatchInput { break; } case 10: { + com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; - key_ = input.readBytes(); + key_ = bs; break; } case 18: { + com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; - moduleKey_ = input.readBytes(); + moduleKey_ = bs; break; } case 26: { + com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000004; - path_ = input.readBytes(); + path_ = bs; break; } case 34: { + com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000008; - ruleRepository_ = input.readBytes(); + ruleRepository_ = bs; break; } case 42: { + com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000010; - ruleKey_ = input.readBytes(); + ruleKey_ = bs; break; } case 48: { @@ -284,8 +276,9 @@ public final class BatchInput { break; } case 58: { + com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000040; - msg_ = input.readBytes(); + msg_ = bs; break; } case 64: { @@ -305,23 +298,27 @@ public final class BatchInput { break; } case 82: { + com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000200; - resolution_ = input.readBytes(); + resolution_ = bs; break; } case 90: { + com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000400; - status_ = input.readBytes(); + status_ = bs; break; } case 98: { + com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000800; - checksum_ = input.readBytes(); + checksum_ = bs; break; } case 106: { + com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00001000; - assigneeLogin_ = input.readBytes(); + assigneeLogin_ = bs; break; } case 112: { @@ -346,7 +343,6 @@ public final class BatchInput { return org.sonar.batch.protocol.input.BatchInput.internal_static_ServerIssue_descriptor; } - @Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.sonar.batch.protocol.input.BatchInput.internal_static_ServerIssue_fieldAccessorTable @@ -370,20 +366,17 @@ public final class BatchInput { } private int bitField0_; - // optional string key = 1; public static final int KEY_FIELD_NUMBER = 1; private java.lang.Object key_; /** * optional string key = 1; */ - @Override public boolean hasKey() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional string key = 1; */ - @Override public java.lang.String getKey() { java.lang.Object ref = key_; if (ref instanceof java.lang.String) { @@ -401,7 +394,6 @@ public final class BatchInput { /** * optional string key = 1; */ - @Override public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; @@ -416,20 +408,17 @@ public final class BatchInput { } } - // optional string module_key = 2; public static final int MODULE_KEY_FIELD_NUMBER = 2; private java.lang.Object moduleKey_; /** * optional string module_key = 2; */ - @Override public boolean hasModuleKey() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional string module_key = 2; */ - @Override public java.lang.String getModuleKey() { java.lang.Object ref = moduleKey_; if (ref instanceof java.lang.String) { @@ -447,7 +436,6 @@ public final class BatchInput { /** * optional string module_key = 2; */ - @Override public com.google.protobuf.ByteString getModuleKeyBytes() { java.lang.Object ref = moduleKey_; @@ -462,20 +450,17 @@ public final class BatchInput { } } - // optional string path = 3; public static final int PATH_FIELD_NUMBER = 3; private java.lang.Object path_; /** * optional string path = 3; */ - @Override public boolean hasPath() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional string path = 3; */ - @Override public java.lang.String getPath() { java.lang.Object ref = path_; if (ref instanceof java.lang.String) { @@ -493,7 +478,6 @@ public final class BatchInput { /** * optional string path = 3; */ - @Override public com.google.protobuf.ByteString getPathBytes() { java.lang.Object ref = path_; @@ -508,20 +492,17 @@ public final class BatchInput { } } - // optional string rule_repository = 4; public static final int RULE_REPOSITORY_FIELD_NUMBER = 4; private java.lang.Object ruleRepository_; /** * optional string rule_repository = 4; */ - @Override public boolean hasRuleRepository() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional string rule_repository = 4; */ - @Override public java.lang.String getRuleRepository() { java.lang.Object ref = ruleRepository_; if (ref instanceof java.lang.String) { @@ -539,7 +520,6 @@ public final class BatchInput { /** * optional string rule_repository = 4; */ - @Override public com.google.protobuf.ByteString getRuleRepositoryBytes() { java.lang.Object ref = ruleRepository_; @@ -554,20 +534,17 @@ public final class BatchInput { } } - // optional string rule_key = 5; public static final int RULE_KEY_FIELD_NUMBER = 5; private java.lang.Object ruleKey_; /** * optional string rule_key = 5; */ - @Override public boolean hasRuleKey() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional string rule_key = 5; */ - @Override public java.lang.String getRuleKey() { java.lang.Object ref = ruleKey_; if (ref instanceof java.lang.String) { @@ -585,7 +562,6 @@ public final class BatchInput { /** * optional string rule_key = 5; */ - @Override public com.google.protobuf.ByteString getRuleKeyBytes() { java.lang.Object ref = ruleKey_; @@ -600,38 +576,32 @@ public final class BatchInput { } } - // optional int32 line = 6; public static final int LINE_FIELD_NUMBER = 6; private int line_; /** * optional int32 line = 6; */ - @Override public boolean hasLine() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional int32 line = 6; */ - @Override public int getLine() { return line_; } - // optional string msg = 7; public static final int MSG_FIELD_NUMBER = 7; private java.lang.Object msg_; /** * optional string msg = 7; */ - @Override public boolean hasMsg() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * optional string msg = 7; */ - @Override public java.lang.String getMsg() { java.lang.Object ref = msg_; if (ref instanceof java.lang.String) { @@ -649,7 +619,6 @@ public final class BatchInput { /** * optional string msg = 7; */ - @Override public com.google.protobuf.ByteString getMsgBytes() { java.lang.Object ref = msg_; @@ -664,56 +633,47 @@ public final class BatchInput { } } - // optional .Severity severity = 8; public static final int SEVERITY_FIELD_NUMBER = 8; private org.sonar.batch.protocol.Constants.Severity severity_; /** * optional .Severity severity = 8; */ - @Override public boolean hasSeverity() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * optional .Severity severity = 8; */ - @Override public org.sonar.batch.protocol.Constants.Severity getSeverity() { return severity_; } - // optional bool manual_severity = 9; public static final int MANUAL_SEVERITY_FIELD_NUMBER = 9; private boolean manualSeverity_; /** * optional bool manual_severity = 9; */ - @Override public boolean hasManualSeverity() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * optional bool manual_severity = 9; */ - @Override public boolean getManualSeverity() { return manualSeverity_; } - // optional string resolution = 10; public static final int RESOLUTION_FIELD_NUMBER = 10; private java.lang.Object resolution_; /** * optional string resolution = 10; */ - @Override public boolean hasResolution() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * optional string resolution = 10; */ - @Override public java.lang.String getResolution() { java.lang.Object ref = resolution_; if (ref instanceof java.lang.String) { @@ -731,7 +691,6 @@ public final class BatchInput { /** * optional string resolution = 10; */ - @Override public com.google.protobuf.ByteString getResolutionBytes() { java.lang.Object ref = resolution_; @@ -746,20 +705,17 @@ public final class BatchInput { } } - // optional string status = 11; public static final int STATUS_FIELD_NUMBER = 11; private java.lang.Object status_; /** * optional string status = 11; */ - @Override public boolean hasStatus() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** * optional string status = 11; */ - @Override public java.lang.String getStatus() { java.lang.Object ref = status_; if (ref instanceof java.lang.String) { @@ -777,7 +733,6 @@ public final class BatchInput { /** * optional string status = 11; */ - @Override public com.google.protobuf.ByteString getStatusBytes() { java.lang.Object ref = status_; @@ -792,20 +747,17 @@ public final class BatchInput { } } - // optional string checksum = 12; public static final int CHECKSUM_FIELD_NUMBER = 12; private java.lang.Object checksum_; /** * optional string checksum = 12; */ - @Override public boolean hasChecksum() { return ((bitField0_ & 0x00000800) == 0x00000800); } /** * optional string checksum = 12; */ - @Override public java.lang.String getChecksum() { java.lang.Object ref = checksum_; if (ref instanceof java.lang.String) { @@ -823,7 +775,6 @@ public final class BatchInput { /** * optional string checksum = 12; */ - @Override public com.google.protobuf.ByteString getChecksumBytes() { java.lang.Object ref = checksum_; @@ -838,20 +789,17 @@ public final class BatchInput { } } - // optional string assignee_login = 13; public static final int ASSIGNEE_LOGIN_FIELD_NUMBER = 13; private java.lang.Object assigneeLogin_; /** * optional string assignee_login = 13; */ - @Override public boolean hasAssigneeLogin() { return ((bitField0_ & 0x00001000) == 0x00001000); } /** * optional string assignee_login = 13; */ - @Override public java.lang.String getAssigneeLogin() { java.lang.Object ref = assigneeLogin_; if (ref instanceof java.lang.String) { @@ -869,7 +817,6 @@ public final class BatchInput { /** * optional string assignee_login = 13; */ - @Override public com.google.protobuf.ByteString getAssigneeLoginBytes() { java.lang.Object ref = assigneeLogin_; @@ -884,20 +831,17 @@ public final class BatchInput { } } - // optional int64 creation_date = 14; public static final int CREATION_DATE_FIELD_NUMBER = 14; private long creationDate_; /** * optional int64 creation_date = 14; */ - @Override public boolean hasCreationDate() { return ((bitField0_ & 0x00002000) == 0x00002000); } /** * optional int64 creation_date = 14; */ - @Override public long getCreationDate() { return creationDate_; } @@ -919,16 +863,15 @@ public final class BatchInput { creationDate_ = 0L; } private byte memoizedIsInitialized = -1; - @Override 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; } - @Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); @@ -978,7 +921,6 @@ public final class BatchInput { } private int memoizedSerializedSize = -1; - @Override public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; @@ -1106,12 +1048,10 @@ public final class BatchInput { } public static Builder newBuilder() { return Builder.create(); } - @Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(org.sonar.batch.protocol.input.BatchInput.ServerIssue prototype) { return newBuilder().mergeFrom(prototype); } - @Override public Builder toBuilder() { return newBuilder(this); } @java.lang.Override @@ -1124,14 +1064,14 @@ public final class BatchInput { * Protobuf type {@code ServerIssue} */ public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.sonar.batch.protocol.input.BatchInput.ServerIssueOrBuilder { + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:ServerIssue) + org.sonar.batch.protocol.input.BatchInput.ServerIssueOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.sonar.batch.protocol.input.BatchInput.internal_static_ServerIssue_descriptor; } - @Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.sonar.batch.protocol.input.BatchInput.internal_static_ServerIssue_fieldAccessorTable @@ -1157,7 +1097,6 @@ public final class BatchInput { return new Builder(); } - @Override public Builder clear() { super.clear(); key_ = ""; @@ -1191,23 +1130,19 @@ public final class BatchInput { return this; } - @Override public Builder clone() { return create().mergeFrom(buildPartial()); } - @Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.sonar.batch.protocol.input.BatchInput.internal_static_ServerIssue_descriptor; } - @Override public org.sonar.batch.protocol.input.BatchInput.ServerIssue getDefaultInstanceForType() { return org.sonar.batch.protocol.input.BatchInput.ServerIssue.getDefaultInstance(); } - @Override public org.sonar.batch.protocol.input.BatchInput.ServerIssue build() { org.sonar.batch.protocol.input.BatchInput.ServerIssue result = buildPartial(); if (!result.isInitialized()) { @@ -1216,7 +1151,6 @@ public final class BatchInput { return result; } - @Override public org.sonar.batch.protocol.input.BatchInput.ServerIssue buildPartial() { org.sonar.batch.protocol.input.BatchInput.ServerIssue result = new org.sonar.batch.protocol.input.BatchInput.ServerIssue(this); int from_bitField0_ = bitField0_; @@ -1282,7 +1216,6 @@ public final class BatchInput { return result; } - @Override 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); @@ -1360,12 +1293,10 @@ public final class BatchInput { return this; } - @Override public final boolean isInitialized() { return true; } - @Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1385,25 +1316,25 @@ public final class BatchInput { } private int bitField0_; - // optional string key = 1; private java.lang.Object key_ = ""; /** * optional string key = 1; */ - @Override public boolean hasKey() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional string key = 1; */ - @Override public java.lang.String getKey() { java.lang.Object ref = key_; if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - key_ = s; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + key_ = s; + } return s; } else { return (java.lang.String) ref; @@ -1412,7 +1343,6 @@ public final class BatchInput { /** * optional string key = 1; */ - @Override public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; @@ -1462,25 +1392,25 @@ public final class BatchInput { return this; } - // optional string module_key = 2; private java.lang.Object moduleKey_ = ""; /** * optional string module_key = 2; */ - @Override public boolean hasModuleKey() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional string module_key = 2; */ - @Override public java.lang.String getModuleKey() { java.lang.Object ref = moduleKey_; if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - moduleKey_ = s; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + moduleKey_ = s; + } return s; } else { return (java.lang.String) ref; @@ -1489,7 +1419,6 @@ public final class BatchInput { /** * optional string module_key = 2; */ - @Override public com.google.protobuf.ByteString getModuleKeyBytes() { java.lang.Object ref = moduleKey_; @@ -1539,25 +1468,25 @@ public final class BatchInput { return this; } - // optional string path = 3; private java.lang.Object path_ = ""; /** * optional string path = 3; */ - @Override public boolean hasPath() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional string path = 3; */ - @Override 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; @@ -1566,7 +1495,6 @@ public final class BatchInput { /** * optional string path = 3; */ - @Override public com.google.protobuf.ByteString getPathBytes() { java.lang.Object ref = path_; @@ -1616,25 +1544,25 @@ public final class BatchInput { return this; } - // optional string rule_repository = 4; private java.lang.Object ruleRepository_ = ""; /** * optional string rule_repository = 4; */ - @Override public boolean hasRuleRepository() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional string rule_repository = 4; */ - @Override 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; @@ -1643,7 +1571,6 @@ public final class BatchInput { /** * optional string rule_repository = 4; */ - @Override public com.google.protobuf.ByteString getRuleRepositoryBytes() { java.lang.Object ref = ruleRepository_; @@ -1693,25 +1620,25 @@ public final class BatchInput { return this; } - // optional string rule_key = 5; private java.lang.Object ruleKey_ = ""; /** * optional string rule_key = 5; */ - @Override public boolean hasRuleKey() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional string rule_key = 5; */ - @Override 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; @@ -1720,7 +1647,6 @@ public final class BatchInput { /** * optional string rule_key = 5; */ - @Override public com.google.protobuf.ByteString getRuleKeyBytes() { java.lang.Object ref = ruleKey_; @@ -1770,19 +1696,16 @@ public final class BatchInput { return this; } - // optional int32 line = 6; private int line_ ; /** * optional int32 line = 6; */ - @Override public boolean hasLine() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional int32 line = 6; */ - @Override public int getLine() { return line_; } @@ -1805,25 +1728,25 @@ public final class BatchInput { return this; } - // optional string msg = 7; private java.lang.Object msg_ = ""; /** * optional string msg = 7; */ - @Override public boolean hasMsg() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * optional string msg = 7; */ - @Override 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; @@ -1832,7 +1755,6 @@ public final class BatchInput { /** * optional string msg = 7; */ - @Override public com.google.protobuf.ByteString getMsgBytes() { java.lang.Object ref = msg_; @@ -1882,19 +1804,16 @@ public final class BatchInput { return this; } - // optional .Severity severity = 8; private org.sonar.batch.protocol.Constants.Severity severity_ = org.sonar.batch.protocol.Constants.Severity.INFO; /** * optional .Severity severity = 8; */ - @Override public boolean hasSeverity() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * optional .Severity severity = 8; */ - @Override public org.sonar.batch.protocol.Constants.Severity getSeverity() { return severity_; } @@ -1920,19 +1839,16 @@ public final class BatchInput { return this; } - // optional bool manual_severity = 9; private boolean manualSeverity_ ; /** * optional bool manual_severity = 9; */ - @Override public boolean hasManualSeverity() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * optional bool manual_severity = 9; */ - @Override public boolean getManualSeverity() { return manualSeverity_; } @@ -1955,25 +1871,25 @@ public final class BatchInput { return this; } - // optional string resolution = 10; private java.lang.Object resolution_ = ""; /** * optional string resolution = 10; */ - @Override public boolean hasResolution() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * optional string resolution = 10; */ - @Override 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; @@ -1982,7 +1898,6 @@ public final class BatchInput { /** * optional string resolution = 10; */ - @Override public com.google.protobuf.ByteString getResolutionBytes() { java.lang.Object ref = resolution_; @@ -2032,25 +1947,25 @@ public final class BatchInput { return this; } - // optional string status = 11; private java.lang.Object status_ = ""; /** * optional string status = 11; */ - @Override public boolean hasStatus() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** * optional string status = 11; */ - @Override 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; @@ -2059,7 +1974,6 @@ public final class BatchInput { /** * optional string status = 11; */ - @Override public com.google.protobuf.ByteString getStatusBytes() { java.lang.Object ref = status_; @@ -2109,25 +2023,25 @@ public final class BatchInput { return this; } - // optional string checksum = 12; private java.lang.Object checksum_ = ""; /** * optional string checksum = 12; */ - @Override public boolean hasChecksum() { return ((bitField0_ & 0x00000800) == 0x00000800); } /** * optional string checksum = 12; */ - @Override 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; @@ -2136,7 +2050,6 @@ public final class BatchInput { /** * optional string checksum = 12; */ - @Override public com.google.protobuf.ByteString getChecksumBytes() { java.lang.Object ref = checksum_; @@ -2186,25 +2099,25 @@ public final class BatchInput { return this; } - // optional string assignee_login = 13; private java.lang.Object assigneeLogin_ = ""; /** * optional string assignee_login = 13; */ - @Override public boolean hasAssigneeLogin() { return ((bitField0_ & 0x00001000) == 0x00001000); } /** * optional string assignee_login = 13; */ - @Override public java.lang.String getAssigneeLogin() { java.lang.Object ref = assigneeLogin_; if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - assigneeLogin_ = s; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + assigneeLogin_ = s; + } return s; } else { return (java.lang.String) ref; @@ -2213,7 +2126,6 @@ public final class BatchInput { /** * optional string assignee_login = 13; */ - @Override public com.google.protobuf.ByteString getAssigneeLoginBytes() { java.lang.Object ref = assigneeLogin_; @@ -2263,19 +2175,16 @@ public final class BatchInput { return this; } - // optional int64 creation_date = 14; private long creationDate_ ; /** * optional int64 creation_date = 14; */ - @Override public boolean hasCreationDate() { return ((bitField0_ & 0x00002000) == 0x00002000); } /** * optional int64 creation_date = 14; */ - @Override public long getCreationDate() { return creationDate_; } @@ -2309,9 +2218,6 @@ public final class BatchInput { // @@protoc_insertion_point(class_scope:ServerIssue) } -<<<<<<< HEAD - private static com.google.protobuf.Descriptors.Descriptor -======= public interface UserOrBuilder extends // @@protoc_insertion_point(interface_extends:User) com.google.protobuf.MessageOrBuilder { @@ -2363,7 +2269,6 @@ public final class BatchInput { return defaultInstance; } - @Override public User getDefaultInstanceForType() { return defaultInstance; } @@ -2426,7 +2331,6 @@ public final class BatchInput { return org.sonar.batch.protocol.input.BatchInput.internal_static_User_descriptor; } - @Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.sonar.batch.protocol.input.BatchInput.internal_static_User_fieldAccessorTable @@ -2455,14 +2359,12 @@ public final class BatchInput { /** * optional string login = 1; */ - @Override public boolean hasLogin() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional string login = 1; */ - @Override public java.lang.String getLogin() { java.lang.Object ref = login_; if (ref instanceof java.lang.String) { @@ -2480,7 +2382,6 @@ public final class BatchInput { /** * optional string login = 1; */ - @Override public com.google.protobuf.ByteString getLoginBytes() { java.lang.Object ref = login_; @@ -2500,14 +2401,12 @@ public final class BatchInput { /** * optional string name = 2; */ - @Override public boolean hasName() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional string name = 2; */ - @Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { @@ -2525,7 +2424,6 @@ public final class BatchInput { /** * optional string name = 2; */ - @Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -2545,7 +2443,6 @@ public final class BatchInput { name_ = ""; } private byte memoizedIsInitialized = -1; - @Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -2555,7 +2452,6 @@ public final class BatchInput { return true; } - @Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); @@ -2569,7 +2465,6 @@ public final class BatchInput { } private int memoizedSerializedSize = -1; - @Override public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; @@ -2649,12 +2544,10 @@ public final class BatchInput { } public static Builder newBuilder() { return Builder.create(); } - @Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(org.sonar.batch.protocol.input.BatchInput.User prototype) { return newBuilder().mergeFrom(prototype); } - @Override public Builder toBuilder() { return newBuilder(this); } @java.lang.Override @@ -2675,7 +2568,6 @@ public final class BatchInput { return org.sonar.batch.protocol.input.BatchInput.internal_static_User_descriptor; } - @Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.sonar.batch.protocol.input.BatchInput.internal_static_User_fieldAccessorTable @@ -2701,7 +2593,6 @@ public final class BatchInput { return new Builder(); } - @Override public Builder clear() { super.clear(); login_ = ""; @@ -2711,23 +2602,19 @@ public final class BatchInput { return this; } - @Override public Builder clone() { return create().mergeFrom(buildPartial()); } - @Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.sonar.batch.protocol.input.BatchInput.internal_static_User_descriptor; } - @Override public org.sonar.batch.protocol.input.BatchInput.User getDefaultInstanceForType() { return org.sonar.batch.protocol.input.BatchInput.User.getDefaultInstance(); } - @Override public org.sonar.batch.protocol.input.BatchInput.User build() { org.sonar.batch.protocol.input.BatchInput.User result = buildPartial(); if (!result.isInitialized()) { @@ -2736,7 +2623,6 @@ public final class BatchInput { return result; } - @Override public org.sonar.batch.protocol.input.BatchInput.User buildPartial() { org.sonar.batch.protocol.input.BatchInput.User result = new org.sonar.batch.protocol.input.BatchInput.User(this); int from_bitField0_ = bitField0_; @@ -2754,7 +2640,6 @@ public final class BatchInput { return result; } - @Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.sonar.batch.protocol.input.BatchInput.User) { return mergeFrom((org.sonar.batch.protocol.input.BatchInput.User)other); @@ -2780,12 +2665,10 @@ public final class BatchInput { return this; } - @Override public final boolean isInitialized() { return true; } - @Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -2809,14 +2692,12 @@ public final class BatchInput { /** * optional string login = 1; */ - @Override public boolean hasLogin() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional string login = 1; */ - @Override public java.lang.String getLogin() { java.lang.Object ref = login_; if (!(ref instanceof java.lang.String)) { @@ -2834,7 +2715,6 @@ public final class BatchInput { /** * optional string login = 1; */ - @Override public com.google.protobuf.ByteString getLoginBytes() { java.lang.Object ref = login_; @@ -2888,14 +2768,12 @@ public final class BatchInput { /** * optional string name = 2; */ - @Override public boolean hasName() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional string name = 2; */ - @Override public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { @@ -2913,7 +2791,6 @@ public final class BatchInput { /** * optional string name = 2; */ - @Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -3005,20 +2882,13 @@ public final class BatchInput { "\tB\"\n\036org.sonar.batch.protocol.inputH\001" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { - @Override - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - 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", }); - 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/output/BatchReport.java b/sonar-batch-protocol/src/main/gen-java/org/sonar/batch/protocol/output/BatchReport.java index 847f2297961..981a8877125 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; /** * optional int64 analysis_date = 1; */ @@ -21,7 +21,6 @@ public final class BatchReport { */ long getAnalysisDate(); - // optional string project_key = 2; /** * optional string project_key = 2; */ @@ -36,7 +35,6 @@ public final class BatchReport { com.google.protobuf.ByteString getProjectKeyBytes(); - // optional string branch = 6; /** * optional string branch = 6; */ @@ -51,7 +49,6 @@ public final class BatchReport { com.google.protobuf.ByteString getBranchBytes(); - // optional int32 root_component_ref = 3; /** * optional int32 root_component_ref = 3; */ @@ -61,7 +58,6 @@ public final class BatchReport { */ int getRootComponentRef(); - // optional int64 snapshot_id = 4; /** * optional int64 snapshot_id = 4; * @@ -79,7 +75,6 @@ public final class BatchReport { */ long getSnapshotId(); - // optional int32 deleted_components_count = 5; /** * optional int32 deleted_components_count = 5; */ @@ -93,8 +88,9 @@ public final class BatchReport { * 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); @@ -146,8 +142,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: { @@ -166,8 +163,9 @@ public final class BatchReport { break; } case 50: { + com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000004; - branch_ = input.readBytes(); + branch_ = bs; break; } } @@ -210,7 +208,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_; /** @@ -226,7 +223,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_; /** @@ -269,7 +265,6 @@ public final class BatchReport { } } - // optional string branch = 6; public static final int BRANCH_FIELD_NUMBER = 6; private java.lang.Object branch_; /** @@ -312,7 +307,6 @@ public final class BatchReport { } } - // optional int32 root_component_ref = 3; public static final int ROOT_COMPONENT_REF_FIELD_NUMBER = 3; private int rootComponentRef_; /** @@ -328,7 +322,6 @@ public final class BatchReport { return rootComponentRef_; } - // optional int64 snapshot_id = 4; public static final int SNAPSHOT_ID_FIELD_NUMBER = 4; private long snapshotId_; /** @@ -352,7 +345,6 @@ public final class BatchReport { return snapshotId_; } - // optional int32 deleted_components_count = 5; public static final int DELETED_COMPONENTS_COUNT_FIELD_NUMBER = 5; private int deletedComponentsCount_; /** @@ -379,7 +371,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; @@ -521,8 +514,9 @@ public final class BatchReport { * Protobuf type {@code Metadata} */ public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.sonar.batch.protocol.output.BatchReport.MetadataOrBuilder { + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:Metadata) + org.sonar.batch.protocol.output.BatchReport.MetadataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Metadata_descriptor; @@ -684,7 +678,6 @@ public final class BatchReport { } private int bitField0_; - // optional int64 analysis_date = 1; private long analysisDate_ ; /** * optional int64 analysis_date = 1; @@ -717,7 +710,6 @@ public final class BatchReport { return this; } - // optional string project_key = 2; private java.lang.Object projectKey_ = ""; /** * optional string project_key = 2; @@ -731,9 +723,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; @@ -791,7 +786,6 @@ public final class BatchReport { return this; } - // optional string branch = 6; private java.lang.Object branch_ = ""; /** * optional string branch = 6; @@ -805,9 +799,12 @@ public final class BatchReport { public java.lang.String getBranch() { java.lang.Object ref = branch_; if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - branch_ = s; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + branch_ = s; + } return s; } else { return (java.lang.String) ref; @@ -865,7 +862,6 @@ public final class BatchReport { return this; } - // optional int32 root_component_ref = 3; private int rootComponentRef_ ; /** * optional int32 root_component_ref = 3; @@ -898,7 +894,6 @@ public final class BatchReport { return this; } - // optional int64 snapshot_id = 4; private long snapshotId_ ; /** * optional int64 snapshot_id = 4; @@ -947,7 +942,6 @@ public final class BatchReport { return this; } - // optional int32 deleted_components_count = 5; private int deletedComponentsCount_ ; /** * optional int32 deleted_components_count = 5; @@ -991,10 +985,10 @@ public final class BatchReport { // @@protoc_insertion_point(class_scope:Metadata) } - public interface ComponentLinkOrBuilder - extends com.google.protobuf.MessageOrBuilder { + public interface ComponentLinkOrBuilder extends + // @@protoc_insertion_point(interface_extends:ComponentLink) + com.google.protobuf.MessageOrBuilder { - // optional .ComponentLinkType type = 1; /** * optional .ComponentLinkType type = 1; */ @@ -1004,7 +998,6 @@ public final class BatchReport { */ org.sonar.batch.protocol.Constants.ComponentLinkType getType(); - // optional string href = 2; /** * optional string href = 2; */ @@ -1023,8 +1016,9 @@ public final class BatchReport { * Protobuf type {@code ComponentLink} */ public static final class ComponentLink extends - com.google.protobuf.GeneratedMessage - implements ComponentLinkOrBuilder { + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:ComponentLink) + ComponentLinkOrBuilder { // Use ComponentLink.newBuilder() to construct. private ComponentLink(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); @@ -1082,8 +1076,9 @@ public final class BatchReport { break; } case 18: { + com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; - href_ = input.readBytes(); + href_ = bs; break; } } @@ -1126,7 +1121,6 @@ public final class BatchReport { } private int bitField0_; - // optional .ComponentLinkType type = 1; public static final int TYPE_FIELD_NUMBER = 1; private org.sonar.batch.protocol.Constants.ComponentLinkType type_; /** @@ -1142,7 +1136,6 @@ public final class BatchReport { return type_; } - // optional string href = 2; public static final int HREF_FIELD_NUMBER = 2; private java.lang.Object href_; /** @@ -1192,7 +1185,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; @@ -1306,8 +1300,9 @@ public final class BatchReport { * Protobuf type {@code ComponentLink} */ public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.sonar.batch.protocol.output.BatchReport.ComponentLinkOrBuilder { + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:ComponentLink) + org.sonar.batch.protocol.output.BatchReport.ComponentLinkOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.sonar.batch.protocol.output.BatchReport.internal_static_ComponentLink_descriptor; @@ -1431,7 +1426,6 @@ public final class BatchReport { } private int bitField0_; - // optional .ComponentLinkType type = 1; private org.sonar.batch.protocol.Constants.ComponentLinkType type_ = org.sonar.batch.protocol.Constants.ComponentLinkType.HOME; /** * optional .ComponentLinkType type = 1; @@ -1467,7 +1461,6 @@ public final class BatchReport { return this; } - // optional string href = 2; private java.lang.Object href_ = ""; /** * optional string href = 2; @@ -1481,9 +1474,12 @@ public final class BatchReport { public java.lang.String getHref() { java.lang.Object ref = href_; if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - href_ = s; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + href_ = s; + } return s; } else { return (java.lang.String) ref; @@ -1552,10 +1548,10 @@ public final class BatchReport { // @@protoc_insertion_point(class_scope:ComponentLink) } - public interface EventOrBuilder - extends com.google.protobuf.MessageOrBuilder { + public interface EventOrBuilder extends + // @@protoc_insertion_point(interface_extends:Event) + com.google.protobuf.MessageOrBuilder { - // optional int32 component_ref = 1; /** * optional int32 component_ref = 1; */ @@ -1565,7 +1561,6 @@ public final class BatchReport { */ int getComponentRef(); - // optional string name = 2; /** * optional string name = 2; */ @@ -1580,7 +1575,6 @@ public final class BatchReport { com.google.protobuf.ByteString getNameBytes(); - // optional string description = 3; /** * optional string description = 3; */ @@ -1595,7 +1589,6 @@ public final class BatchReport { com.google.protobuf.ByteString getDescriptionBytes(); - // optional .EventCategory category = 4; /** * optional .EventCategory category = 4; */ @@ -1605,7 +1598,6 @@ public final class BatchReport { */ org.sonar.batch.protocol.Constants.EventCategory getCategory(); - // optional string event_data = 5; /** * optional string event_data = 5; */ @@ -1628,8 +1620,9 @@ public final class BatchReport { * */ public static final class Event extends - com.google.protobuf.GeneratedMessage - implements EventOrBuilder { + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:Event) + EventOrBuilder { // Use Event.newBuilder() to construct. private Event(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); @@ -1681,13 +1674,15 @@ public final class BatchReport { break; } case 18: { + com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; - name_ = input.readBytes(); + name_ = bs; break; } case 26: { + com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000004; - description_ = input.readBytes(); + description_ = bs; break; } case 32: { @@ -1702,8 +1697,9 @@ public final class BatchReport { break; } case 42: { + com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000010; - eventData_ = input.readBytes(); + eventData_ = bs; break; } } @@ -1746,7 +1742,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_; /** @@ -1762,7 +1757,6 @@ public final class BatchReport { return componentRef_; } - // optional string name = 2; public static final int NAME_FIELD_NUMBER = 2; private java.lang.Object name_; /** @@ -1805,7 +1799,6 @@ public final class BatchReport { } } - // optional string description = 3; public static final int DESCRIPTION_FIELD_NUMBER = 3; private java.lang.Object description_; /** @@ -1848,7 +1841,6 @@ public final class BatchReport { } } - // optional .EventCategory category = 4; public static final int CATEGORY_FIELD_NUMBER = 4; private org.sonar.batch.protocol.Constants.EventCategory category_; /** @@ -1864,7 +1856,6 @@ public final class BatchReport { return category_; } - // optional string event_data = 5; public static final int EVENT_DATA_FIELD_NUMBER = 5; private java.lang.Object eventData_; /** @@ -1917,7 +1908,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; @@ -2056,8 +2048,9 @@ public final class BatchReport { * */ public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.sonar.batch.protocol.output.BatchReport.EventOrBuilder { + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:Event) + org.sonar.batch.protocol.output.BatchReport.EventOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Event_descriptor; @@ -2212,7 +2205,6 @@ public final class BatchReport { } private int bitField0_; - // optional int32 component_ref = 1; private int componentRef_ ; /** * optional int32 component_ref = 1; @@ -2245,7 +2237,6 @@ public final class BatchReport { return this; } - // optional string name = 2; private java.lang.Object name_ = ""; /** * optional string name = 2; @@ -2259,9 +2250,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; @@ -2319,7 +2313,6 @@ public final class BatchReport { return this; } - // optional string description = 3; private java.lang.Object description_ = ""; /** * optional string description = 3; @@ -2333,9 +2326,12 @@ public final class BatchReport { public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - description_ = s; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + description_ = s; + } return s; } else { return (java.lang.String) ref; @@ -2393,7 +2389,6 @@ public final class BatchReport { return this; } - // optional .EventCategory category = 4; private org.sonar.batch.protocol.Constants.EventCategory category_ = org.sonar.batch.protocol.Constants.EventCategory.ALERT; /** * optional .EventCategory category = 4; @@ -2429,7 +2424,6 @@ public final class BatchReport { return this; } - // optional string event_data = 5; private java.lang.Object eventData_ = ""; /** * optional string event_data = 5; @@ -2443,9 +2437,12 @@ public final class BatchReport { public java.lang.String getEventData() { java.lang.Object ref = eventData_; if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - eventData_ = s; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + eventData_ = s; + } return s; } else { return (java.lang.String) ref; @@ -2514,10 +2511,10 @@ public final class BatchReport { // @@protoc_insertion_point(class_scope:Event) } - 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; /** * optional int32 ref = 1; */ @@ -2527,7 +2524,6 @@ public final class BatchReport { */ int getRef(); - // optional string path = 2; /** * optional string path = 2; */ @@ -2542,7 +2538,6 @@ public final class BatchReport { com.google.protobuf.ByteString getPathBytes(); - // optional string name = 3; /** * optional string name = 3; */ @@ -2557,7 +2552,6 @@ public final class BatchReport { com.google.protobuf.ByteString getNameBytes(); - // optional .ComponentType type = 4; /** * optional .ComponentType type = 4; */ @@ -2567,7 +2561,6 @@ public final class BatchReport { */ org.sonar.batch.protocol.Constants.ComponentType getType(); - // optional bool is_test = 5; /** * optional bool is_test = 5; */ @@ -2577,7 +2570,6 @@ public final class BatchReport { */ boolean getIsTest(); - // optional string language = 6; /** * optional string language = 6; */ @@ -2592,7 +2584,6 @@ public final class BatchReport { com.google.protobuf.ByteString getLanguageBytes(); - // repeated int32 child_ref = 7 [packed = true]; /** * repeated int32 child_ref = 7 [packed = true]; */ @@ -2606,7 +2597,6 @@ public final class BatchReport { */ int getChildRef(int index); - // repeated .ComponentLink link = 10; /** * repeated .ComponentLink link = 10; */ @@ -2631,7 +2621,6 @@ public final class BatchReport { org.sonar.batch.protocol.output.BatchReport.ComponentLinkOrBuilder getLinkOrBuilder( int index); - // optional string version = 12; /** * optional string version = 12; * @@ -2658,7 +2647,6 @@ public final class BatchReport { com.google.protobuf.ByteString getVersionBytes(); - // optional string key = 14; /** * optional string key = 14; * @@ -2685,7 +2673,6 @@ public final class BatchReport { com.google.protobuf.ByteString getKeyBytes(); - // optional int32 lines = 15; /** * optional int32 lines = 15; * @@ -2703,7 +2690,6 @@ public final class BatchReport { */ int getLines(); - // optional int64 id = 13; /** * optional int64 id = 13; * @@ -2721,7 +2707,6 @@ public final class BatchReport { */ long getId(); - // optional int64 snapshot_id = 8; /** * optional int64 snapshot_id = 8; */ @@ -2731,7 +2716,6 @@ public final class BatchReport { */ long getSnapshotId(); - // optional string uuid = 9; /** * optional string uuid = 9; */ @@ -2746,7 +2730,6 @@ public final class BatchReport { com.google.protobuf.ByteString getUuidBytes(); - // repeated .Event event = 11; /** * repeated .Event event = 11; */ @@ -2775,8 +2758,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); @@ -2828,13 +2812,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: { @@ -2854,8 +2840,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: { @@ -2885,8 +2872,9 @@ public final class BatchReport { break; } case 74: { + com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000800; - uuid_ = input.readBytes(); + uuid_ = bs; break; } case 82: { @@ -2906,8 +2894,9 @@ public final class BatchReport { break; } case 98: { + com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000040; - version_ = input.readBytes(); + version_ = bs; break; } case 104: { @@ -2916,8 +2905,9 @@ public final class BatchReport { break; } case 114: { + com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000080; - key_ = input.readBytes(); + key_ = bs; break; } case 120: { @@ -2974,7 +2964,6 @@ public final class BatchReport { } private int bitField0_; - // optional int32 ref = 1; public static final int REF_FIELD_NUMBER = 1; private int ref_; /** @@ -2990,7 +2979,6 @@ public final class BatchReport { return ref_; } - // optional string path = 2; public static final int PATH_FIELD_NUMBER = 2; private java.lang.Object path_; /** @@ -3033,7 +3021,6 @@ public final class BatchReport { } } - // optional string name = 3; public static final int NAME_FIELD_NUMBER = 3; private java.lang.Object name_; /** @@ -3076,7 +3063,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_; /** @@ -3092,7 +3078,6 @@ public final class BatchReport { return type_; } - // optional bool is_test = 5; public static final int IS_TEST_FIELD_NUMBER = 5; private boolean isTest_; /** @@ -3108,7 +3093,6 @@ public final class BatchReport { return isTest_; } - // optional string language = 6; public static final int LANGUAGE_FIELD_NUMBER = 6; private java.lang.Object language_; /** @@ -3151,7 +3135,6 @@ public final class BatchReport { } } - // repeated int32 child_ref = 7 [packed = true]; public static final int CHILD_REF_FIELD_NUMBER = 7; private java.util.List childRef_; /** @@ -3175,7 +3158,6 @@ public final class BatchReport { } private int childRefMemoizedSerializedSize = -1; - // repeated .ComponentLink link = 10; public static final int LINK_FIELD_NUMBER = 10; private java.util.List link_; /** @@ -3211,7 +3193,6 @@ public final class BatchReport { return link_.get(index); } - // optional string version = 12; public static final int VERSION_FIELD_NUMBER = 12; private java.lang.Object version_; /** @@ -3266,7 +3247,6 @@ public final class BatchReport { } } - // optional string key = 14; public static final int KEY_FIELD_NUMBER = 14; private java.lang.Object key_; /** @@ -3321,7 +3301,6 @@ public final class BatchReport { } } - // optional int32 lines = 15; public static final int LINES_FIELD_NUMBER = 15; private int lines_; /** @@ -3345,7 +3324,6 @@ public final class BatchReport { return lines_; } - // optional int64 id = 13; public static final int ID_FIELD_NUMBER = 13; private long id_; /** @@ -3369,7 +3347,6 @@ public final class BatchReport { return id_; } - // optional int64 snapshot_id = 8; public static final int SNAPSHOT_ID_FIELD_NUMBER = 8; private long snapshotId_; /** @@ -3385,7 +3362,6 @@ public final class BatchReport { return snapshotId_; } - // optional string uuid = 9; public static final int UUID_FIELD_NUMBER = 9; private java.lang.Object uuid_; /** @@ -3428,7 +3404,6 @@ public final class BatchReport { } } - // repeated .Event event = 11; public static final int EVENT_FIELD_NUMBER = 11; private java.util.List event_; /** @@ -3484,7 +3459,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; @@ -3703,8 +3679,9 @@ public final class BatchReport { * Protobuf type {@code Component} */ public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.sonar.batch.protocol.output.BatchReport.ComponentOrBuilder { + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:Component) + org.sonar.batch.protocol.output.BatchReport.ComponentOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Component_descriptor; @@ -4029,7 +4006,6 @@ public final class BatchReport { } private int bitField0_; - // optional int32 ref = 1; private int ref_ ; /** * optional int32 ref = 1; @@ -4062,7 +4038,6 @@ public final class BatchReport { return this; } - // optional string path = 2; private java.lang.Object path_ = ""; /** * optional string path = 2; @@ -4076,9 +4051,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; @@ -4136,7 +4114,6 @@ public final class BatchReport { return this; } - // optional string name = 3; private java.lang.Object name_ = ""; /** * optional string name = 3; @@ -4150,9 +4127,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; @@ -4210,7 +4190,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; /** * optional .ComponentType type = 4; @@ -4246,7 +4225,6 @@ public final class BatchReport { return this; } - // optional bool is_test = 5; private boolean isTest_ ; /** * optional bool is_test = 5; @@ -4279,7 +4257,6 @@ public final class BatchReport { return this; } - // optional string language = 6; private java.lang.Object language_ = ""; /** * optional string language = 6; @@ -4293,9 +4270,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; @@ -4353,7 +4333,6 @@ public final class BatchReport { return this; } - // repeated int32 child_ref = 7 [packed = true]; private java.util.List childRef_ = java.util.Collections.emptyList(); private void ensureChildRefIsMutable() { if (!((bitField0_ & 0x00000040) == 0x00000040)) { @@ -4405,7 +4384,8 @@ public final class BatchReport { public Builder addAllChildRef( java.lang.Iterable values) { ensureChildRefIsMutable(); - super.addAll(values, childRef_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, childRef_); onChanged(); return this; } @@ -4419,7 +4399,6 @@ public final class BatchReport { return this; } - // repeated .ComponentLink link = 10; private java.util.List link_ = java.util.Collections.emptyList(); private void ensureLinkIsMutable() { @@ -4561,7 +4540,8 @@ public final class BatchReport { java.lang.Iterable values) { if (linkBuilder_ == null) { ensureLinkIsMutable(); - super.addAll(values, link_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, link_); onChanged(); } else { linkBuilder_.addAllMessages(values); @@ -4659,7 +4639,6 @@ public final class BatchReport { return linkBuilder_; } - // optional string version = 12; private java.lang.Object version_ = ""; /** * optional string version = 12; @@ -4681,9 +4660,12 @@ public final class BatchReport { public java.lang.String getVersion() { java.lang.Object ref = version_; if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - version_ = s; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + version_ = s; + } return s; } else { return (java.lang.String) ref; @@ -4757,7 +4739,6 @@ public final class BatchReport { return this; } - // optional string key = 14; private java.lang.Object key_ = ""; /** * optional string key = 14; @@ -4779,9 +4760,12 @@ public final class BatchReport { public java.lang.String getKey() { java.lang.Object ref = key_; if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - key_ = s; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + key_ = s; + } return s; } else { return (java.lang.String) ref; @@ -4855,7 +4839,6 @@ public final class BatchReport { return this; } - // optional int32 lines = 15; private int lines_ ; /** * optional int32 lines = 15; @@ -4904,7 +4887,6 @@ public final class BatchReport { return this; } - // optional int64 id = 13; private long id_ ; /** * optional int64 id = 13; @@ -4953,7 +4935,6 @@ public final class BatchReport { return this; } - // optional int64 snapshot_id = 8; private long snapshotId_ ; /** * optional int64 snapshot_id = 8; @@ -4986,7 +4967,6 @@ public final class BatchReport { return this; } - // optional string uuid = 9; private java.lang.Object uuid_ = ""; /** * optional string uuid = 9; @@ -5000,9 +4980,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; @@ -5060,7 +5043,6 @@ public final class BatchReport { return this; } - // repeated .Event event = 11; private java.util.List event_ = java.util.Collections.emptyList(); private void ensureEventIsMutable() { @@ -5202,7 +5184,8 @@ public final class BatchReport { java.lang.Iterable values) { if (eventBuilder_ == null) { ensureEventIsMutable(); - super.addAll(values, event_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, event_); onChanged(); } else { eventBuilder_.addAllMessages(values); @@ -5311,10 +5294,10 @@ public final class BatchReport { // @@protoc_insertion_point(class_scope:Component) } - public interface MeasureOrBuilder - extends com.google.protobuf.MessageOrBuilder { + public interface MeasureOrBuilder extends + // @@protoc_insertion_point(interface_extends:Measure) + com.google.protobuf.MessageOrBuilder { - // optional .MeasureValueType value_type = 1; /** * optional .MeasureValueType value_type = 1; */ @@ -5324,7 +5307,6 @@ public final class BatchReport { */ org.sonar.batch.protocol.Constants.MeasureValueType getValueType(); - // optional bool boolean_value = 2; /** * optional bool boolean_value = 2; * @@ -5342,7 +5324,6 @@ public final class BatchReport { */ boolean getBooleanValue(); - // optional int32 int_value = 3; /** * optional int32 int_value = 3; */ @@ -5352,7 +5333,6 @@ public final class BatchReport { */ int getIntValue(); - // optional int64 long_value = 4; /** * optional int64 long_value = 4; */ @@ -5362,7 +5342,6 @@ public final class BatchReport { */ long getLongValue(); - // optional double double_value = 5; /** * optional double double_value = 5; */ @@ -5372,7 +5351,6 @@ public final class BatchReport { */ double getDoubleValue(); - // optional string string_value = 6; /** * optional string string_value = 6; */ @@ -5387,7 +5365,6 @@ public final class BatchReport { com.google.protobuf.ByteString getStringValueBytes(); - // optional string metric_key = 7; /** * optional string metric_key = 7; */ @@ -5402,7 +5379,6 @@ public final class BatchReport { com.google.protobuf.ByteString getMetricKeyBytes(); - // optional string description = 9; /** * optional string description = 9; * @@ -5429,7 +5405,6 @@ public final class BatchReport { com.google.protobuf.ByteString getDescriptionBytes(); - // optional string rule_key = 10; /** * optional string rule_key = 10; */ @@ -5444,7 +5419,6 @@ public final class BatchReport { com.google.protobuf.ByteString getRuleKeyBytes(); - // optional .Severity severity = 11; /** * optional .Severity severity = 11; */ @@ -5454,7 +5428,6 @@ public final class BatchReport { */ org.sonar.batch.protocol.Constants.Severity getSeverity(); - // optional string alert_status = 12; /** * optional string alert_status = 12; */ @@ -5469,7 +5442,6 @@ public final class BatchReport { com.google.protobuf.ByteString getAlertStatusBytes(); - // optional string alert_text = 13; /** * optional string alert_text = 13; */ @@ -5484,7 +5456,6 @@ public final class BatchReport { com.google.protobuf.ByteString getAlertTextBytes(); - // optional double variation_value_1 = 14; /** * optional double variation_value_1 = 14; */ @@ -5494,7 +5465,6 @@ public final class BatchReport { */ double getVariationValue1(); - // optional double variation_value_2 = 15; /** * optional double variation_value_2 = 15; */ @@ -5504,7 +5474,6 @@ public final class BatchReport { */ double getVariationValue2(); - // optional double variation_value_3 = 16; /** * optional double variation_value_3 = 16; */ @@ -5514,7 +5483,6 @@ public final class BatchReport { */ double getVariationValue3(); - // optional double variation_value_4 = 17; /** * optional double variation_value_4 = 17; */ @@ -5524,7 +5492,6 @@ public final class BatchReport { */ double getVariationValue4(); - // optional double variation_value_5 = 18; /** * optional double variation_value_5 = 18; */ @@ -5534,7 +5501,6 @@ public final class BatchReport { */ double getVariationValue5(); - // optional int32 characteric_id = 19; /** * optional int32 characteric_id = 19; */ @@ -5544,7 +5510,6 @@ public final class BatchReport { */ int getCharactericId(); - // optional int32 person_id = 20; /** * optional int32 person_id = 20; */ @@ -5558,8 +5523,9 @@ public final class BatchReport { * Protobuf type {@code Measure} */ public static final class Measure extends - com.google.protobuf.GeneratedMessage - implements MeasureOrBuilder { + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:Measure) + MeasureOrBuilder { // Use Measure.newBuilder() to construct. private Measure(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); @@ -5637,23 +5603,27 @@ public final class BatchReport { break; } case 50: { + com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000020; - stringValue_ = input.readBytes(); + stringValue_ = bs; break; } case 58: { + com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000040; - metricKey_ = input.readBytes(); + metricKey_ = bs; break; } case 74: { + com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000080; - description_ = input.readBytes(); + description_ = bs; break; } case 82: { + com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000100; - ruleKey_ = input.readBytes(); + ruleKey_ = bs; break; } case 88: { @@ -5668,13 +5638,15 @@ public final class BatchReport { break; } case 98: { + com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000400; - alertStatus_ = input.readBytes(); + alertStatus_ = bs; break; } case 106: { + com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000800; - alertText_ = input.readBytes(); + alertText_ = bs; break; } case 113: { @@ -5752,7 +5724,6 @@ public final class BatchReport { } private int bitField0_; - // optional .MeasureValueType value_type = 1; public static final int VALUE_TYPE_FIELD_NUMBER = 1; private org.sonar.batch.protocol.Constants.MeasureValueType valueType_; /** @@ -5768,7 +5739,6 @@ public final class BatchReport { return valueType_; } - // optional bool boolean_value = 2; public static final int BOOLEAN_VALUE_FIELD_NUMBER = 2; private boolean booleanValue_; /** @@ -5792,7 +5762,6 @@ public final class BatchReport { return booleanValue_; } - // optional int32 int_value = 3; public static final int INT_VALUE_FIELD_NUMBER = 3; private int intValue_; /** @@ -5808,7 +5777,6 @@ public final class BatchReport { return intValue_; } - // optional int64 long_value = 4; public static final int LONG_VALUE_FIELD_NUMBER = 4; private long longValue_; /** @@ -5824,7 +5792,6 @@ public final class BatchReport { return longValue_; } - // optional double double_value = 5; public static final int DOUBLE_VALUE_FIELD_NUMBER = 5; private double doubleValue_; /** @@ -5840,7 +5807,6 @@ public final class BatchReport { return doubleValue_; } - // optional string string_value = 6; public static final int STRING_VALUE_FIELD_NUMBER = 6; private java.lang.Object stringValue_; /** @@ -5883,7 +5849,6 @@ public final class BatchReport { } } - // optional string metric_key = 7; public static final int METRIC_KEY_FIELD_NUMBER = 7; private java.lang.Object metricKey_; /** @@ -5926,7 +5891,6 @@ public final class BatchReport { } } - // optional string description = 9; public static final int DESCRIPTION_FIELD_NUMBER = 9; private java.lang.Object description_; /** @@ -5981,7 +5945,6 @@ public final class BatchReport { } } - // optional string rule_key = 10; public static final int RULE_KEY_FIELD_NUMBER = 10; private java.lang.Object ruleKey_; /** @@ -6024,7 +5987,6 @@ public final class BatchReport { } } - // optional .Severity severity = 11; public static final int SEVERITY_FIELD_NUMBER = 11; private org.sonar.batch.protocol.Constants.Severity severity_; /** @@ -6040,7 +6002,6 @@ public final class BatchReport { return severity_; } - // optional string alert_status = 12; public static final int ALERT_STATUS_FIELD_NUMBER = 12; private java.lang.Object alertStatus_; /** @@ -6083,7 +6044,6 @@ public final class BatchReport { } } - // optional string alert_text = 13; public static final int ALERT_TEXT_FIELD_NUMBER = 13; private java.lang.Object alertText_; /** @@ -6126,7 +6086,6 @@ public final class BatchReport { } } - // optional double variation_value_1 = 14; public static final int VARIATION_VALUE_1_FIELD_NUMBER = 14; private double variationValue1_; /** @@ -6142,7 +6101,6 @@ public final class BatchReport { return variationValue1_; } - // optional double variation_value_2 = 15; public static final int VARIATION_VALUE_2_FIELD_NUMBER = 15; private double variationValue2_; /** @@ -6158,7 +6116,6 @@ public final class BatchReport { return variationValue2_; } - // optional double variation_value_3 = 16; public static final int VARIATION_VALUE_3_FIELD_NUMBER = 16; private double variationValue3_; /** @@ -6174,7 +6131,6 @@ public final class BatchReport { return variationValue3_; } - // optional double variation_value_4 = 17; public static final int VARIATION_VALUE_4_FIELD_NUMBER = 17; private double variationValue4_; /** @@ -6190,7 +6146,6 @@ public final class BatchReport { return variationValue4_; } - // optional double variation_value_5 = 18; public static final int VARIATION_VALUE_5_FIELD_NUMBER = 18; private double variationValue5_; /** @@ -6206,7 +6161,6 @@ public final class BatchReport { return variationValue5_; } - // optional int32 characteric_id = 19; public static final int CHARACTERIC_ID_FIELD_NUMBER = 19; private int charactericId_; /** @@ -6222,7 +6176,6 @@ public final class BatchReport { return charactericId_; } - // optional int32 person_id = 20; public static final int PERSON_ID_FIELD_NUMBER = 20; private int personId_; /** @@ -6262,7 +6215,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; @@ -6495,8 +6449,9 @@ public final class BatchReport { * Protobuf type {@code Measure} */ public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.sonar.batch.protocol.output.BatchReport.MeasureOrBuilder { + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:Measure) + org.sonar.batch.protocol.output.BatchReport.MeasureOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Measure_descriptor; @@ -6783,7 +6738,6 @@ public final class BatchReport { } private int bitField0_; - // optional .MeasureValueType value_type = 1; private org.sonar.batch.protocol.Constants.MeasureValueType valueType_ = org.sonar.batch.protocol.Constants.MeasureValueType.INT; /** * optional .MeasureValueType value_type = 1; @@ -6819,7 +6773,6 @@ public final class BatchReport { return this; } - // optional bool boolean_value = 2; private boolean booleanValue_ ; /** * optional bool boolean_value = 2; @@ -6868,7 +6821,6 @@ public final class BatchReport { return this; } - // optional int32 int_value = 3; private int intValue_ ; /** * optional int32 int_value = 3; @@ -6901,7 +6853,6 @@ public final class BatchReport { return this; } - // optional int64 long_value = 4; private long longValue_ ; /** * optional int64 long_value = 4; @@ -6934,7 +6885,6 @@ public final class BatchReport { return this; } - // optional double double_value = 5; private double doubleValue_ ; /** * optional double double_value = 5; @@ -6967,7 +6917,6 @@ public final class BatchReport { return this; } - // optional string string_value = 6; private java.lang.Object stringValue_ = ""; /** * optional string string_value = 6; @@ -6981,9 +6930,12 @@ public final class BatchReport { public java.lang.String getStringValue() { java.lang.Object ref = stringValue_; if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - stringValue_ = s; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + stringValue_ = s; + } return s; } else { return (java.lang.String) ref; @@ -7041,7 +6993,6 @@ public final class BatchReport { return this; } - // optional string metric_key = 7; private java.lang.Object metricKey_ = ""; /** * optional string metric_key = 7; @@ -7055,9 +7006,12 @@ public final class BatchReport { public java.lang.String getMetricKey() { java.lang.Object ref = metricKey_; if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - metricKey_ = s; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + metricKey_ = s; + } return s; } else { return (java.lang.String) ref; @@ -7115,7 +7069,6 @@ public final class BatchReport { return this; } - // optional string description = 9; private java.lang.Object description_ = ""; /** * optional string description = 9; @@ -7137,9 +7090,12 @@ public final class BatchReport { public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - description_ = s; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + description_ = s; + } return s; } else { return (java.lang.String) ref; @@ -7213,7 +7169,6 @@ public final class BatchReport { return this; } - // optional string rule_key = 10; private java.lang.Object ruleKey_ = ""; /** * optional string rule_key = 10; @@ -7227,9 +7182,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; @@ -7287,7 +7245,6 @@ public final class BatchReport { return this; } - // optional .Severity severity = 11; private org.sonar.batch.protocol.Constants.Severity severity_ = org.sonar.batch.protocol.Constants.Severity.INFO; /** * optional .Severity severity = 11; @@ -7323,7 +7280,6 @@ public final class BatchReport { return this; } - // optional string alert_status = 12; private java.lang.Object alertStatus_ = ""; /** * optional string alert_status = 12; @@ -7337,9 +7293,12 @@ public final class BatchReport { public java.lang.String getAlertStatus() { java.lang.Object ref = alertStatus_; if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - alertStatus_ = s; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + alertStatus_ = s; + } return s; } else { return (java.lang.String) ref; @@ -7397,7 +7356,6 @@ public final class BatchReport { return this; } - // optional string alert_text = 13; private java.lang.Object alertText_ = ""; /** * optional string alert_text = 13; @@ -7411,9 +7369,12 @@ public final class BatchReport { public java.lang.String getAlertText() { java.lang.Object ref = alertText_; if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - alertText_ = s; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + alertText_ = s; + } return s; } else { return (java.lang.String) ref; @@ -7471,7 +7432,6 @@ public final class BatchReport { return this; } - // optional double variation_value_1 = 14; private double variationValue1_ ; /** * optional double variation_value_1 = 14; @@ -7504,7 +7464,6 @@ public final class BatchReport { return this; } - // optional double variation_value_2 = 15; private double variationValue2_ ; /** * optional double variation_value_2 = 15; @@ -7537,7 +7496,6 @@ public final class BatchReport { return this; } - // optional double variation_value_3 = 16; private double variationValue3_ ; /** * optional double variation_value_3 = 16; @@ -7570,7 +7528,6 @@ public final class BatchReport { return this; } - // optional double variation_value_4 = 17; private double variationValue4_ ; /** * optional double variation_value_4 = 17; @@ -7603,7 +7560,6 @@ public final class BatchReport { return this; } - // optional double variation_value_5 = 18; private double variationValue5_ ; /** * optional double variation_value_5 = 18; @@ -7636,7 +7592,6 @@ public final class BatchReport { return this; } - // optional int32 characteric_id = 19; private int charactericId_ ; /** * optional int32 characteric_id = 19; @@ -7669,7 +7624,6 @@ public final class BatchReport { return this; } - // optional int32 person_id = 20; private int personId_ ; /** * optional int32 person_id = 20; @@ -7713,10 +7667,10 @@ public final class BatchReport { // @@protoc_insertion_point(class_scope:Measure) } - public interface MeasuresOrBuilder - extends com.google.protobuf.MessageOrBuilder { + public interface MeasuresOrBuilder extends + // @@protoc_insertion_point(interface_extends:Measures) + com.google.protobuf.MessageOrBuilder { - // optional int32 component_ref = 1; /** * optional int32 component_ref = 1; */ @@ -7726,7 +7680,6 @@ public final class BatchReport { */ int getComponentRef(); - // repeated .Measure measure = 2; /** * repeated .Measure measure = 2; */ @@ -7755,8 +7708,9 @@ public final class BatchReport { * Protobuf type {@code Measures} */ public static final class Measures extends - com.google.protobuf.GeneratedMessage - implements MeasuresOrBuilder { + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:Measures) + MeasuresOrBuilder { // Use Measures.newBuilder() to construct. private Measures(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); @@ -7858,7 +7812,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_; /** @@ -7874,7 +7827,6 @@ public final class BatchReport { return componentRef_; } - // repeated .Measure measure = 2; public static final int MEASURE_FIELD_NUMBER = 2; private java.util.List measure_; /** @@ -7917,7 +7869,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; @@ -8031,8 +7984,9 @@ public final class BatchReport { * Protobuf type {@code Measures} */ public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.sonar.batch.protocol.output.BatchReport.MeasuresOrBuilder { + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:Measures) + org.sonar.batch.protocol.output.BatchReport.MeasuresOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Measures_descriptor; @@ -8187,7 +8141,6 @@ public final class BatchReport { } private int bitField0_; - // optional int32 component_ref = 1; private int componentRef_ ; /** * optional int32 component_ref = 1; @@ -8220,7 +8173,6 @@ public final class BatchReport { return this; } - // repeated .Measure measure = 2; private java.util.List measure_ = java.util.Collections.emptyList(); private void ensureMeasureIsMutable() { @@ -8362,7 +8314,8 @@ public final class BatchReport { java.lang.Iterable values) { if (measureBuilder_ == null) { ensureMeasureIsMutable(); - super.addAll(values, measure_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, measure_); onChanged(); } else { measureBuilder_.addAllMessages(values); @@ -8471,10 +8424,10 @@ public final class BatchReport { // @@protoc_insertion_point(class_scope:Measures) } - 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; /** * optional string rule_repository = 1; */ @@ -8489,7 +8442,6 @@ public final class BatchReport { com.google.protobuf.ByteString getRuleRepositoryBytes(); - // optional string rule_key = 2; /** * optional string rule_key = 2; */ @@ -8504,7 +8456,6 @@ public final class BatchReport { com.google.protobuf.ByteString getRuleKeyBytes(); - // optional int32 line = 3; /** * optional int32 line = 3; */ @@ -8514,7 +8465,6 @@ public final class BatchReport { */ int getLine(); - // optional string msg = 4; /** * optional string msg = 4; */ @@ -8529,7 +8479,6 @@ public final class BatchReport { com.google.protobuf.ByteString getMsgBytes(); - // optional .Severity severity = 5; /** * optional .Severity severity = 5; */ @@ -8539,12 +8488,11 @@ public final class BatchReport { */ org.sonar.batch.protocol.Constants.Severity getSeverity(); - // repeated string tag = 6; /** * repeated string tag = 6; */ - java.util.List - getTagList(); + com.google.protobuf.ProtocolStringList + getTagList(); /** * repeated string tag = 6; */ @@ -8559,7 +8507,6 @@ public final class BatchReport { com.google.protobuf.ByteString getTagBytes(int index); - // optional double effort_to_fix = 7; /** * optional double effort_to_fix = 7; * @@ -8577,7 +8524,6 @@ public final class BatchReport { */ double getEffortToFix(); - // optional bool is_new = 8; /** * optional bool is_new = 8; */ @@ -8587,7 +8533,6 @@ public final class BatchReport { */ boolean getIsNew(); - // optional string uuid = 9; /** * optional string uuid = 9; */ @@ -8602,7 +8547,6 @@ public final class BatchReport { com.google.protobuf.ByteString getUuidBytes(); - // optional int64 debt_in_minutes = 10; /** * optional int64 debt_in_minutes = 10; */ @@ -8612,7 +8556,6 @@ public final class BatchReport { */ long getDebtInMinutes(); - // optional string resolution = 11; /** * optional string resolution = 11; */ @@ -8627,7 +8570,6 @@ public final class BatchReport { com.google.protobuf.ByteString getResolutionBytes(); - // optional string status = 12; /** * optional string status = 12; */ @@ -8642,7 +8584,6 @@ public final class BatchReport { com.google.protobuf.ByteString getStatusBytes(); - // optional string checksum = 13; /** * optional string checksum = 13; */ @@ -8657,7 +8598,6 @@ public final class BatchReport { com.google.protobuf.ByteString getChecksumBytes(); - // optional bool manual_severity = 14; /** * optional bool manual_severity = 14; */ @@ -8667,7 +8607,6 @@ public final class BatchReport { */ boolean getManualSeverity(); - // optional string reporter = 15; /** * optional string reporter = 15; */ @@ -8682,7 +8621,6 @@ public final class BatchReport { com.google.protobuf.ByteString getReporterBytes(); - // optional string assignee = 16; /** * optional string assignee = 16; */ @@ -8697,7 +8635,6 @@ public final class BatchReport { com.google.protobuf.ByteString getAssigneeBytes(); - // optional string action_plan_key = 17; /** * optional string action_plan_key = 17; */ @@ -8712,7 +8649,6 @@ public final class BatchReport { com.google.protobuf.ByteString getActionPlanKeyBytes(); - // optional string attributes = 18; /** * optional string attributes = 18; */ @@ -8727,7 +8663,6 @@ public final class BatchReport { com.google.protobuf.ByteString getAttributesBytes(); - // optional string author_login = 19; /** * optional string author_login = 19; */ @@ -8742,7 +8677,6 @@ public final class BatchReport { com.google.protobuf.ByteString getAuthorLoginBytes(); - // optional int64 creation_date = 20; /** * optional int64 creation_date = 20; */ @@ -8752,7 +8686,6 @@ public final class BatchReport { */ long getCreationDate(); - // optional int64 close_date = 21; /** * optional int64 close_date = 21; */ @@ -8762,7 +8695,6 @@ public final class BatchReport { */ long getCloseDate(); - // optional int64 update_date = 22; /** * optional int64 update_date = 22; */ @@ -8772,7 +8704,6 @@ public final class BatchReport { */ long getUpdateDate(); - // optional int64 selected_at = 23; /** * optional int64 selected_at = 23; */ @@ -8782,7 +8713,6 @@ public final class BatchReport { */ long getSelectedAt(); - // optional string diff_fields = 24; /** * optional string diff_fields = 24; */ @@ -8797,7 +8727,6 @@ public final class BatchReport { com.google.protobuf.ByteString getDiffFieldsBytes(); - // optional bool is_changed = 25; /** * optional bool is_changed = 25; */ @@ -8807,7 +8736,6 @@ public final class BatchReport { */ boolean getIsChanged(); - // optional bool must_send_notification = 26; /** * optional bool must_send_notification = 26; */ @@ -8821,8 +8749,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); @@ -8869,13 +8798,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: { @@ -8884,8 +8815,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: { @@ -8900,11 +8832,12 @@ public final class BatchReport { break; } case 50: { + com.google.protobuf.ByteString bs = input.readBytes(); if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { tag_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000020; } - tag_.add(input.readBytes()); + tag_.add(bs); break; } case 57: { @@ -8918,8 +8851,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: { @@ -8928,18 +8862,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: { @@ -8948,28 +8885,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: { @@ -8993,8 +8935,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: { @@ -9016,7 +8959,7 @@ public final class BatchReport { e.getMessage()).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) { - tag_ = new com.google.protobuf.UnmodifiableLazyStringList(tag_); + tag_ = tag_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); @@ -9050,7 +8993,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_; /** @@ -9093,7 +9035,6 @@ public final class BatchReport { } } - // optional string rule_key = 2; public static final int RULE_KEY_FIELD_NUMBER = 2; private java.lang.Object ruleKey_; /** @@ -9136,7 +9077,6 @@ public final class BatchReport { } } - // optional int32 line = 3; public static final int LINE_FIELD_NUMBER = 3; private int line_; /** @@ -9152,7 +9092,6 @@ public final class BatchReport { return line_; } - // optional string msg = 4; public static final int MSG_FIELD_NUMBER = 4; private java.lang.Object msg_; /** @@ -9195,7 +9134,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_; /** @@ -9211,13 +9149,12 @@ public final class BatchReport { return severity_; } - // repeated string tag = 6; public static final int TAG_FIELD_NUMBER = 6; private com.google.protobuf.LazyStringList tag_; /** * repeated string tag = 6; */ - public java.util.List + public com.google.protobuf.ProtocolStringList getTagList() { return tag_; } @@ -9241,7 +9178,6 @@ public final class BatchReport { return tag_.getByteString(index); } - // optional double effort_to_fix = 7; public static final int EFFORT_TO_FIX_FIELD_NUMBER = 7; private double effortToFix_; /** @@ -9265,7 +9201,6 @@ public final class BatchReport { return effortToFix_; } - // optional bool is_new = 8; public static final int IS_NEW_FIELD_NUMBER = 8; private boolean isNew_; /** @@ -9281,7 +9216,6 @@ public final class BatchReport { return isNew_; } - // optional string uuid = 9; public static final int UUID_FIELD_NUMBER = 9; private java.lang.Object uuid_; /** @@ -9324,7 +9258,6 @@ public final class BatchReport { } } - // optional int64 debt_in_minutes = 10; public static final int DEBT_IN_MINUTES_FIELD_NUMBER = 10; private long debtInMinutes_; /** @@ -9340,7 +9273,6 @@ public final class BatchReport { return debtInMinutes_; } - // optional string resolution = 11; public static final int RESOLUTION_FIELD_NUMBER = 11; private java.lang.Object resolution_; /** @@ -9383,7 +9315,6 @@ public final class BatchReport { } } - // optional string status = 12; public static final int STATUS_FIELD_NUMBER = 12; private java.lang.Object status_; /** @@ -9426,7 +9357,6 @@ public final class BatchReport { } } - // optional string checksum = 13; public static final int CHECKSUM_FIELD_NUMBER = 13; private java.lang.Object checksum_; /** @@ -9469,7 +9399,6 @@ public final class BatchReport { } } - // optional bool manual_severity = 14; public static final int MANUAL_SEVERITY_FIELD_NUMBER = 14; private boolean manualSeverity_; /** @@ -9485,7 +9414,6 @@ public final class BatchReport { return manualSeverity_; } - // optional string reporter = 15; public static final int REPORTER_FIELD_NUMBER = 15; private java.lang.Object reporter_; /** @@ -9528,7 +9456,6 @@ public final class BatchReport { } } - // optional string assignee = 16; public static final int ASSIGNEE_FIELD_NUMBER = 16; private java.lang.Object assignee_; /** @@ -9571,7 +9498,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_; /** @@ -9614,7 +9540,6 @@ public final class BatchReport { } } - // optional string attributes = 18; public static final int ATTRIBUTES_FIELD_NUMBER = 18; private java.lang.Object attributes_; /** @@ -9657,7 +9582,6 @@ public final class BatchReport { } } - // optional string author_login = 19; public static final int AUTHOR_LOGIN_FIELD_NUMBER = 19; private java.lang.Object authorLogin_; /** @@ -9700,7 +9624,6 @@ public final class BatchReport { } } - // optional int64 creation_date = 20; public static final int CREATION_DATE_FIELD_NUMBER = 20; private long creationDate_; /** @@ -9716,7 +9639,6 @@ public final class BatchReport { return creationDate_; } - // optional int64 close_date = 21; public static final int CLOSE_DATE_FIELD_NUMBER = 21; private long closeDate_; /** @@ -9732,7 +9654,6 @@ public final class BatchReport { return closeDate_; } - // optional int64 update_date = 22; public static final int UPDATE_DATE_FIELD_NUMBER = 22; private long updateDate_; /** @@ -9748,7 +9669,6 @@ public final class BatchReport { return updateDate_; } - // optional int64 selected_at = 23; public static final int SELECTED_AT_FIELD_NUMBER = 23; private long selectedAt_; /** @@ -9764,7 +9684,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_; /** @@ -9807,7 +9726,6 @@ public final class BatchReport { } } - // optional bool is_changed = 25; public static final int IS_CHANGED_FIELD_NUMBER = 25; private boolean isChanged_; /** @@ -9823,7 +9741,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_; /** @@ -9870,7 +9787,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; @@ -10157,8 +10075,9 @@ public final class BatchReport { * Protobuf type {@code Issue} */ public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.sonar.batch.protocol.output.BatchReport.IssueOrBuilder { + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:Issue) + org.sonar.batch.protocol.output.BatchReport.IssueOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Issue_descriptor; @@ -10292,8 +10211,7 @@ public final class BatchReport { } result.severity_ = severity_; if (((bitField0_ & 0x00000020) == 0x00000020)) { - tag_ = new com.google.protobuf.UnmodifiableLazyStringList( - tag_); + tag_ = tag_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000020); } result.tag_ = tag_; @@ -10531,7 +10449,6 @@ public final class BatchReport { } private int bitField0_; - // optional string rule_repository = 1; private java.lang.Object ruleRepository_ = ""; /** * optional string rule_repository = 1; @@ -10545,9 +10462,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; @@ -10605,7 +10525,6 @@ public final class BatchReport { return this; } - // optional string rule_key = 2; private java.lang.Object ruleKey_ = ""; /** * optional string rule_key = 2; @@ -10619,9 +10538,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; @@ -10679,7 +10601,6 @@ public final class BatchReport { return this; } - // optional int32 line = 3; private int line_ ; /** * optional int32 line = 3; @@ -10712,7 +10633,6 @@ public final class BatchReport { return this; } - // optional string msg = 4; private java.lang.Object msg_ = ""; /** * optional string msg = 4; @@ -10726,9 +10646,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; @@ -10786,7 +10709,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; /** * optional .Severity severity = 5; @@ -10822,7 +10744,6 @@ public final class BatchReport { return this; } - // repeated string tag = 6; private com.google.protobuf.LazyStringList tag_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureTagIsMutable() { if (!((bitField0_ & 0x00000020) == 0x00000020)) { @@ -10833,9 +10754,9 @@ public final class BatchReport { /** * repeated string tag = 6; */ - public java.util.List + public com.google.protobuf.ProtocolStringList getTagList() { - return java.util.Collections.unmodifiableList(tag_); + return tag_.getUnmodifiableView(); } /** * repeated string tag = 6; @@ -10888,7 +10809,8 @@ public final class BatchReport { public Builder addAllTag( java.lang.Iterable values) { ensureTagIsMutable(); - super.addAll(values, tag_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, tag_); onChanged(); return this; } @@ -10915,7 +10837,6 @@ public final class BatchReport { return this; } - // optional double effort_to_fix = 7; private double effortToFix_ ; /** * optional double effort_to_fix = 7; @@ -10964,7 +10885,6 @@ public final class BatchReport { return this; } - // optional bool is_new = 8; private boolean isNew_ ; /** * optional bool is_new = 8; @@ -10997,7 +10917,6 @@ public final class BatchReport { return this; } - // optional string uuid = 9; private java.lang.Object uuid_ = ""; /** * optional string uuid = 9; @@ -11011,9 +10930,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; @@ -11071,7 +10993,6 @@ public final class BatchReport { return this; } - // optional int64 debt_in_minutes = 10; private long debtInMinutes_ ; /** * optional int64 debt_in_minutes = 10; @@ -11104,7 +11025,6 @@ public final class BatchReport { return this; } - // optional string resolution = 11; private java.lang.Object resolution_ = ""; /** * optional string resolution = 11; @@ -11118,9 +11038,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; @@ -11178,7 +11101,6 @@ public final class BatchReport { return this; } - // optional string status = 12; private java.lang.Object status_ = ""; /** * optional string status = 12; @@ -11192,9 +11114,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; @@ -11252,7 +11177,6 @@ public final class BatchReport { return this; } - // optional string checksum = 13; private java.lang.Object checksum_ = ""; /** * optional string checksum = 13; @@ -11266,9 +11190,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; @@ -11326,7 +11253,6 @@ public final class BatchReport { return this; } - // optional bool manual_severity = 14; private boolean manualSeverity_ ; /** * optional bool manual_severity = 14; @@ -11359,7 +11285,6 @@ public final class BatchReport { return this; } - // optional string reporter = 15; private java.lang.Object reporter_ = ""; /** * optional string reporter = 15; @@ -11373,9 +11298,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; @@ -11433,7 +11361,6 @@ public final class BatchReport { return this; } - // optional string assignee = 16; private java.lang.Object assignee_ = ""; /** * optional string assignee = 16; @@ -11447,9 +11374,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; @@ -11507,7 +11437,6 @@ public final class BatchReport { return this; } - // optional string action_plan_key = 17; private java.lang.Object actionPlanKey_ = ""; /** * optional string action_plan_key = 17; @@ -11521,9 +11450,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; @@ -11581,7 +11513,6 @@ public final class BatchReport { return this; } - // optional string attributes = 18; private java.lang.Object attributes_ = ""; /** * optional string attributes = 18; @@ -11595,9 +11526,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; @@ -11655,7 +11589,6 @@ public final class BatchReport { return this; } - // optional string author_login = 19; private java.lang.Object authorLogin_ = ""; /** * optional string author_login = 19; @@ -11669,9 +11602,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; @@ -11729,7 +11665,6 @@ public final class BatchReport { return this; } - // optional int64 creation_date = 20; private long creationDate_ ; /** * optional int64 creation_date = 20; @@ -11762,7 +11697,6 @@ public final class BatchReport { return this; } - // optional int64 close_date = 21; private long closeDate_ ; /** * optional int64 close_date = 21; @@ -11795,7 +11729,6 @@ public final class BatchReport { return this; } - // optional int64 update_date = 22; private long updateDate_ ; /** * optional int64 update_date = 22; @@ -11828,7 +11761,6 @@ public final class BatchReport { return this; } - // optional int64 selected_at = 23; private long selectedAt_ ; /** * optional int64 selected_at = 23; @@ -11861,7 +11793,6 @@ public final class BatchReport { return this; } - // optional string diff_fields = 24; private java.lang.Object diffFields_ = ""; /** * optional string diff_fields = 24; @@ -11875,9 +11806,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; @@ -11935,7 +11869,6 @@ public final class BatchReport { return this; } - // optional bool is_changed = 25; private boolean isChanged_ ; /** * optional bool is_changed = 25; @@ -11968,7 +11901,6 @@ public final class BatchReport { return this; } - // optional bool must_send_notification = 26; private boolean mustSendNotification_ ; /** * optional bool must_send_notification = 26; @@ -12012,10 +11944,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; /** * optional int32 component_ref = 1; */ @@ -12025,7 +11957,6 @@ public final class BatchReport { */ int getComponentRef(); - // repeated .Issue issue = 2; /** * repeated .Issue issue = 2; */ @@ -12050,7 +11981,6 @@ public final class BatchReport { org.sonar.batch.protocol.output.BatchReport.IssueOrBuilder getIssueOrBuilder( int index); - // optional string component_uuid = 3; /** * optional string component_uuid = 3; * @@ -12081,8 +12011,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); @@ -12142,8 +12073,9 @@ public final class BatchReport { break; } case 26: { + com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; - componentUuid_ = input.readBytes(); + componentUuid_ = bs; break; } } @@ -12189,7 +12121,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_; /** @@ -12205,7 +12136,6 @@ public final class BatchReport { return componentRef_; } - // repeated .Issue issue = 2; public static final int ISSUE_FIELD_NUMBER = 2; private java.util.List issue_; /** @@ -12241,7 +12171,6 @@ public final class BatchReport { return issue_.get(index); } - // optional string component_uuid = 3; public static final int COMPONENT_UUID_FIELD_NUMBER = 3; private java.lang.Object componentUuid_; /** @@ -12304,7 +12233,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; @@ -12425,8 +12355,9 @@ public final class BatchReport { * Protobuf type {@code Issues} */ public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.sonar.batch.protocol.output.BatchReport.IssuesOrBuilder { + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:Issues) + org.sonar.batch.protocol.output.BatchReport.IssuesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Issues_descriptor; @@ -12592,7 +12523,6 @@ public final class BatchReport { } private int bitField0_; - // optional int32 component_ref = 1; private int componentRef_ ; /** * optional int32 component_ref = 1; @@ -12625,7 +12555,6 @@ public final class BatchReport { return this; } - // repeated .Issue issue = 2; private java.util.List issue_ = java.util.Collections.emptyList(); private void ensureIssueIsMutable() { @@ -12767,7 +12696,8 @@ public final class BatchReport { java.lang.Iterable values) { if (issueBuilder_ == null) { ensureIssueIsMutable(); - super.addAll(values, issue_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, issue_); onChanged(); } else { issueBuilder_.addAllMessages(values); @@ -12865,7 +12795,6 @@ public final class BatchReport { return issueBuilder_; } - // optional string component_uuid = 3; private java.lang.Object componentUuid_ = ""; /** * optional string component_uuid = 3; @@ -12887,9 +12816,12 @@ public final class BatchReport { public java.lang.String getComponentUuid() { java.lang.Object ref = componentUuid_; if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - componentUuid_ = s; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + componentUuid_ = s; + } return s; } else { return (java.lang.String) ref; @@ -12974,10 +12906,10 @@ public final class BatchReport { // @@protoc_insertion_point(class_scope:Issues) } - public interface ChangesetsOrBuilder - extends com.google.protobuf.MessageOrBuilder { + public interface ChangesetsOrBuilder extends + // @@protoc_insertion_point(interface_extends:Changesets) + com.google.protobuf.MessageOrBuilder { - // optional int32 component_ref = 1; /** * optional int32 component_ref = 1; */ @@ -12987,7 +12919,6 @@ public final class BatchReport { */ int getComponentRef(); - // repeated .Changesets.Changeset changeset = 2; /** * repeated .Changesets.Changeset changeset = 2; */ @@ -13012,7 +12943,6 @@ public final class BatchReport { org.sonar.batch.protocol.output.BatchReport.Changesets.ChangesetOrBuilder getChangesetOrBuilder( int index); - // repeated int32 changesetIndexByLine = 3 [packed = true]; /** * repeated int32 changesetIndexByLine = 3 [packed = true]; * @@ -13042,8 +12972,9 @@ public final class BatchReport { * Protobuf type {@code Changesets} */ public static final class Changesets extends - com.google.protobuf.GeneratedMessage - implements ChangesetsOrBuilder { + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:Changesets) + ChangesetsOrBuilder { // Use Changesets.newBuilder() to construct. private Changesets(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); @@ -13168,10 +13099,10 @@ public final class BatchReport { return PARSER; } - public interface ChangesetOrBuilder - extends com.google.protobuf.MessageOrBuilder { + public interface ChangesetOrBuilder extends + // @@protoc_insertion_point(interface_extends:Changesets.Changeset) + com.google.protobuf.MessageOrBuilder { - // optional string revision = 1; /** * optional string revision = 1; */ @@ -13186,7 +13117,6 @@ public final class BatchReport { com.google.protobuf.ByteString getRevisionBytes(); - // optional string author = 2; /** * optional string author = 2; */ @@ -13201,7 +13131,6 @@ public final class BatchReport { com.google.protobuf.ByteString getAuthorBytes(); - // optional int64 date = 3; /** * optional int64 date = 3; */ @@ -13215,8 +13144,9 @@ public final class BatchReport { * Protobuf type {@code Changesets.Changeset} */ public static final class Changeset extends - com.google.protobuf.GeneratedMessage - implements ChangesetOrBuilder { + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:Changesets.Changeset) + ChangesetOrBuilder { // Use Changeset.newBuilder() to construct. private Changeset(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); @@ -13263,13 +13193,15 @@ public final class BatchReport { break; } case 10: { + com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; - revision_ = input.readBytes(); + revision_ = bs; break; } case 18: { + com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; - author_ = input.readBytes(); + author_ = bs; break; } case 24: { @@ -13317,7 +13249,6 @@ public final class BatchReport { } private int bitField0_; - // optional string revision = 1; public static final int REVISION_FIELD_NUMBER = 1; private java.lang.Object revision_; /** @@ -13360,7 +13291,6 @@ public final class BatchReport { } } - // optional string author = 2; public static final int AUTHOR_FIELD_NUMBER = 2; private java.lang.Object author_; /** @@ -13403,7 +13333,6 @@ public final class BatchReport { } } - // optional int64 date = 3; public static final int DATE_FIELD_NUMBER = 3; private long date_; /** @@ -13427,7 +13356,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; @@ -13548,8 +13478,9 @@ public final class BatchReport { * Protobuf type {@code Changesets.Changeset} */ public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.sonar.batch.protocol.output.BatchReport.Changesets.ChangesetOrBuilder { + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:Changesets.Changeset) + org.sonar.batch.protocol.output.BatchReport.Changesets.ChangesetOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Changesets_Changeset_descriptor; @@ -13684,7 +13615,6 @@ public final class BatchReport { } private int bitField0_; - // optional string revision = 1; private java.lang.Object revision_ = ""; /** * optional string revision = 1; @@ -13698,9 +13628,12 @@ public final class BatchReport { public java.lang.String getRevision() { java.lang.Object ref = revision_; if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - revision_ = s; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + revision_ = s; + } return s; } else { return (java.lang.String) ref; @@ -13758,7 +13691,6 @@ public final class BatchReport { return this; } - // optional string author = 2; private java.lang.Object author_ = ""; /** * optional string author = 2; @@ -13772,9 +13704,12 @@ public final class BatchReport { public java.lang.String getAuthor() { java.lang.Object ref = author_; if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - author_ = s; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + author_ = s; + } return s; } else { return (java.lang.String) ref; @@ -13832,7 +13767,6 @@ public final class BatchReport { return this; } - // optional int64 date = 3; private long date_ ; /** * optional int64 date = 3; @@ -13877,7 +13811,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_; /** @@ -13893,7 +13826,6 @@ public final class BatchReport { return componentRef_; } - // repeated .Changesets.Changeset changeset = 2; public static final int CHANGESET_FIELD_NUMBER = 2; private java.util.List changeset_; /** @@ -13929,7 +13861,6 @@ public final class BatchReport { return changeset_.get(index); } - // repeated int32 changesetIndexByLine = 3 [packed = true]; public static final int CHANGESETINDEXBYLINE_FIELD_NUMBER = 3; private java.util.List changesetIndexByLine_; /** @@ -13973,7 +13904,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; @@ -14108,8 +14040,9 @@ public final class BatchReport { * Protobuf type {@code Changesets} */ public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.sonar.batch.protocol.output.BatchReport.ChangesetsOrBuilder { + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:Changesets) + org.sonar.batch.protocol.output.BatchReport.ChangesetsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Changesets_descriptor; @@ -14281,7 +14214,6 @@ public final class BatchReport { } private int bitField0_; - // optional int32 component_ref = 1; private int componentRef_ ; /** * optional int32 component_ref = 1; @@ -14314,7 +14246,6 @@ public final class BatchReport { return this; } - // repeated .Changesets.Changeset changeset = 2; private java.util.List changeset_ = java.util.Collections.emptyList(); private void ensureChangesetIsMutable() { @@ -14456,7 +14387,8 @@ public final class BatchReport { java.lang.Iterable values) { if (changesetBuilder_ == null) { ensureChangesetIsMutable(); - super.addAll(values, changeset_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, changeset_); onChanged(); } else { changesetBuilder_.addAllMessages(values); @@ -14554,7 +14486,6 @@ public final class BatchReport { return changesetBuilder_; } - // repeated int32 changesetIndexByLine = 3 [packed = true]; private java.util.List changesetIndexByLine_ = java.util.Collections.emptyList(); private void ensureChangesetIndexByLineIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { @@ -14630,7 +14561,8 @@ public final class BatchReport { public Builder addAllChangesetIndexByLine( java.lang.Iterable values) { ensureChangesetIndexByLineIsMutable(); - super.addAll(values, changesetIndexByLine_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, changesetIndexByLine_); onChanged(); return this; } @@ -14659,10 +14591,10 @@ public final class BatchReport { // @@protoc_insertion_point(class_scope:Changesets) } - public interface DuplicateOrBuilder - extends com.google.protobuf.MessageOrBuilder { + public interface DuplicateOrBuilder extends + // @@protoc_insertion_point(interface_extends:Duplicate) + com.google.protobuf.MessageOrBuilder { - // optional int32 other_file_ref = 1; /** * optional int32 other_file_ref = 1; * @@ -14680,7 +14612,6 @@ public final class BatchReport { */ int getOtherFileRef(); - // optional .Range range = 2; /** * optional .Range range = 2; */ @@ -14694,7 +14625,6 @@ public final class BatchReport { */ org.sonar.batch.protocol.output.BatchReport.RangeOrBuilder getRangeOrBuilder(); - // optional string other_file_key = 3; /** * optional string other_file_key = 3; * @@ -14725,8 +14655,9 @@ public final class BatchReport { * Protobuf type {@code Duplicate} */ public static final class Duplicate extends - com.google.protobuf.GeneratedMessage - implements DuplicateOrBuilder { + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:Duplicate) + DuplicateOrBuilder { // Use Duplicate.newBuilder() to construct. private Duplicate(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); @@ -14791,8 +14722,9 @@ public final class BatchReport { break; } case 26: { + com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000004; - otherFileKey_ = input.readBytes(); + otherFileKey_ = bs; break; } } @@ -14835,7 +14767,6 @@ public final class BatchReport { } private int bitField0_; - // optional int32 other_file_ref = 1; public static final int OTHER_FILE_REF_FIELD_NUMBER = 1; private int otherFileRef_; /** @@ -14859,7 +14790,6 @@ public final class BatchReport { return otherFileRef_; } - // optional .Range range = 2; public static final int RANGE_FIELD_NUMBER = 2; private org.sonar.batch.protocol.output.BatchReport.Range range_; /** @@ -14881,7 +14811,6 @@ public final class BatchReport { return range_; } - // optional string other_file_key = 3; public static final int OTHER_FILE_KEY_FIELD_NUMBER = 3; private java.lang.Object otherFileKey_; /** @@ -14944,7 +14873,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; @@ -15065,8 +14995,9 @@ public final class BatchReport { * Protobuf type {@code Duplicate} */ public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.sonar.batch.protocol.output.BatchReport.DuplicateOrBuilder { + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:Duplicate) + org.sonar.batch.protocol.output.BatchReport.DuplicateOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Duplicate_descriptor; @@ -15208,7 +15139,6 @@ public final class BatchReport { } private int bitField0_; - // optional int32 other_file_ref = 1; private int otherFileRef_ ; /** * optional int32 other_file_ref = 1; @@ -15257,7 +15187,6 @@ public final class BatchReport { return this; } - // optional .Range range = 2; private org.sonar.batch.protocol.output.BatchReport.Range range_ = org.sonar.batch.protocol.output.BatchReport.Range.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.sonar.batch.protocol.output.BatchReport.Range, org.sonar.batch.protocol.output.BatchReport.Range.Builder, org.sonar.batch.protocol.output.BatchReport.RangeOrBuilder> rangeBuilder_; @@ -15366,7 +15295,7 @@ public final class BatchReport { if (rangeBuilder_ == null) { rangeBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.sonar.batch.protocol.output.BatchReport.Range, org.sonar.batch.protocol.output.BatchReport.Range.Builder, org.sonar.batch.protocol.output.BatchReport.RangeOrBuilder>( - range_, + getRange(), getParentForChildren(), isClean()); range_ = null; @@ -15374,7 +15303,6 @@ public final class BatchReport { return rangeBuilder_; } - // optional string other_file_key = 3; private java.lang.Object otherFileKey_ = ""; /** * optional string other_file_key = 3; @@ -15396,9 +15324,12 @@ public final class BatchReport { public java.lang.String getOtherFileKey() { java.lang.Object ref = otherFileKey_; if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - otherFileKey_ = s; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + otherFileKey_ = s; + } return s; } else { return (java.lang.String) ref; @@ -15483,10 +15414,10 @@ public final class BatchReport { // @@protoc_insertion_point(class_scope:Duplicate) } - public interface DuplicationOrBuilder - extends com.google.protobuf.MessageOrBuilder { + public interface DuplicationOrBuilder extends + // @@protoc_insertion_point(interface_extends:Duplication) + com.google.protobuf.MessageOrBuilder { - // optional .Range origin_position = 1; /** * optional .Range origin_position = 1; * @@ -15512,7 +15443,6 @@ public final class BatchReport { */ org.sonar.batch.protocol.output.BatchReport.RangeOrBuilder getOriginPositionOrBuilder(); - // repeated .Duplicate duplicate = 2; /** * repeated .Duplicate duplicate = 2; */ @@ -15541,8 +15471,9 @@ public final class BatchReport { * Protobuf type {@code Duplication} */ public static final class Duplication extends - com.google.protobuf.GeneratedMessage - implements DuplicationOrBuilder { + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:Duplication) + DuplicationOrBuilder { // Use Duplication.newBuilder() to construct. private Duplication(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); @@ -15652,7 +15583,6 @@ public final class BatchReport { } private int bitField0_; - // optional .Range origin_position = 1; public static final int ORIGIN_POSITION_FIELD_NUMBER = 1; private org.sonar.batch.protocol.output.BatchReport.Range originPosition_; /** @@ -15686,7 +15616,6 @@ public final class BatchReport { return originPosition_; } - // repeated .Duplicate duplicate = 2; public static final int DUPLICATE_FIELD_NUMBER = 2; private java.util.List duplicate_; /** @@ -15729,7 +15658,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; @@ -15843,8 +15773,9 @@ public final class BatchReport { * Protobuf type {@code Duplication} */ public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.sonar.batch.protocol.output.BatchReport.DuplicationOrBuilder { + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:Duplication) + org.sonar.batch.protocol.output.BatchReport.DuplicationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Duplication_descriptor; @@ -16008,7 +15939,6 @@ public final class BatchReport { } private int bitField0_; - // optional .Range origin_position = 1; private org.sonar.batch.protocol.output.BatchReport.Range originPosition_ = org.sonar.batch.protocol.output.BatchReport.Range.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.sonar.batch.protocol.output.BatchReport.Range, org.sonar.batch.protocol.output.BatchReport.Range.Builder, org.sonar.batch.protocol.output.BatchReport.RangeOrBuilder> originPositionBuilder_; @@ -16153,7 +16083,7 @@ public final class BatchReport { if (originPositionBuilder_ == null) { originPositionBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.sonar.batch.protocol.output.BatchReport.Range, org.sonar.batch.protocol.output.BatchReport.Range.Builder, org.sonar.batch.protocol.output.BatchReport.RangeOrBuilder>( - originPosition_, + getOriginPosition(), getParentForChildren(), isClean()); originPosition_ = null; @@ -16161,7 +16091,6 @@ public final class BatchReport { return originPositionBuilder_; } - // repeated .Duplicate duplicate = 2; private java.util.List duplicate_ = java.util.Collections.emptyList(); private void ensureDuplicateIsMutable() { @@ -16303,7 +16232,8 @@ public final class BatchReport { java.lang.Iterable values) { if (duplicateBuilder_ == null) { ensureDuplicateIsMutable(); - super.addAll(values, duplicate_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, duplicate_); onChanged(); } else { duplicateBuilder_.addAllMessages(values); @@ -16412,10 +16342,10 @@ public final class BatchReport { // @@protoc_insertion_point(class_scope:Duplication) } - public interface DuplicationsOrBuilder - extends com.google.protobuf.MessageOrBuilder { + public interface DuplicationsOrBuilder extends + // @@protoc_insertion_point(interface_extends:Duplications) + com.google.protobuf.MessageOrBuilder { - // optional int32 component_ref = 1; /** * optional int32 component_ref = 1; */ @@ -16425,7 +16355,6 @@ public final class BatchReport { */ int getComponentRef(); - // repeated .Duplication duplication = 2; /** * repeated .Duplication duplication = 2; */ @@ -16454,8 +16383,9 @@ public final class BatchReport { * Protobuf type {@code Duplications} */ public static final class Duplications extends - com.google.protobuf.GeneratedMessage - implements DuplicationsOrBuilder { + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:Duplications) + DuplicationsOrBuilder { // Use Duplications.newBuilder() to construct. private Duplications(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); @@ -16557,7 +16487,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_; /** @@ -16573,7 +16502,6 @@ public final class BatchReport { return componentRef_; } - // repeated .Duplication duplication = 2; public static final int DUPLICATION_FIELD_NUMBER = 2; private java.util.List duplication_; /** @@ -16616,7 +16544,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; @@ -16730,8 +16659,9 @@ public final class BatchReport { * Protobuf type {@code Duplications} */ public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.sonar.batch.protocol.output.BatchReport.DuplicationsOrBuilder { + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:Duplications) + org.sonar.batch.protocol.output.BatchReport.DuplicationsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Duplications_descriptor; @@ -16886,7 +16816,6 @@ public final class BatchReport { } private int bitField0_; - // optional int32 component_ref = 1; private int componentRef_ ; /** * optional int32 component_ref = 1; @@ -16919,7 +16848,6 @@ public final class BatchReport { return this; } - // repeated .Duplication duplication = 2; private java.util.List duplication_ = java.util.Collections.emptyList(); private void ensureDuplicationIsMutable() { @@ -17061,7 +16989,8 @@ public final class BatchReport { java.lang.Iterable values) { if (duplicationBuilder_ == null) { ensureDuplicationIsMutable(); - super.addAll(values, duplication_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, duplication_); onChanged(); } else { duplicationBuilder_.addAllMessages(values); @@ -17170,10 +17099,10 @@ public final class BatchReport { // @@protoc_insertion_point(class_scope:Duplications) } - public interface RangeOrBuilder - extends com.google.protobuf.MessageOrBuilder { + public interface RangeOrBuilder extends + // @@protoc_insertion_point(interface_extends:Range) + com.google.protobuf.MessageOrBuilder { - // optional int32 start_line = 1; /** * optional int32 start_line = 1; * @@ -17191,7 +17120,6 @@ public final class BatchReport { */ int getStartLine(); - // optional int32 end_line = 2; /** * optional int32 end_line = 2; * @@ -17209,7 +17137,6 @@ public final class BatchReport { */ int getEndLine(); - // optional int32 start_offset = 3; /** * optional int32 start_offset = 3; * @@ -17227,7 +17154,6 @@ public final class BatchReport { */ int getStartOffset(); - // optional int32 end_offset = 4; /** * optional int32 end_offset = 4; * @@ -17253,8 +17179,9 @@ public final class BatchReport { * */ public static final class Range extends - com.google.protobuf.GeneratedMessage - implements RangeOrBuilder { + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:Range) + RangeOrBuilder { // Use Range.newBuilder() to construct. private Range(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); @@ -17360,7 +17287,6 @@ public final class BatchReport { } private int bitField0_; - // optional int32 start_line = 1; public static final int START_LINE_FIELD_NUMBER = 1; private int startLine_; /** @@ -17384,7 +17310,6 @@ public final class BatchReport { return startLine_; } - // optional int32 end_line = 2; public static final int END_LINE_FIELD_NUMBER = 2; private int endLine_; /** @@ -17408,7 +17333,6 @@ public final class BatchReport { return endLine_; } - // optional int32 start_offset = 3; public static final int START_OFFSET_FIELD_NUMBER = 3; private int startOffset_; /** @@ -17432,7 +17356,6 @@ public final class BatchReport { return startOffset_; } - // optional int32 end_offset = 4; public static final int END_OFFSET_FIELD_NUMBER = 4; private int endOffset_; /** @@ -17465,7 +17388,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; @@ -17597,8 +17521,9 @@ public final class BatchReport { * */ public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.sonar.batch.protocol.output.BatchReport.RangeOrBuilder { + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:Range) + org.sonar.batch.protocol.output.BatchReport.RangeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Range_descriptor; @@ -17738,7 +17663,6 @@ public final class BatchReport { } private int bitField0_; - // optional int32 start_line = 1; private int startLine_ ; /** * optional int32 start_line = 1; @@ -17787,7 +17711,6 @@ public final class BatchReport { return this; } - // optional int32 end_line = 2; private int endLine_ ; /** * optional int32 end_line = 2; @@ -17836,7 +17759,6 @@ public final class BatchReport { return this; } - // optional int32 start_offset = 3; private int startOffset_ ; /** * optional int32 start_offset = 3; @@ -17885,7 +17807,6 @@ public final class BatchReport { return this; } - // optional int32 end_offset = 4; private int endOffset_ ; /** * optional int32 end_offset = 4; @@ -17945,10 +17866,10 @@ public final class BatchReport { // @@protoc_insertion_point(class_scope:Range) } - public interface SymbolsOrBuilder - extends com.google.protobuf.MessageOrBuilder { + public interface SymbolsOrBuilder extends + // @@protoc_insertion_point(interface_extends:Symbols) + com.google.protobuf.MessageOrBuilder { - // optional int32 file_ref = 1; /** * optional int32 file_ref = 1; */ @@ -17958,7 +17879,6 @@ public final class BatchReport { */ int getFileRef(); - // repeated .Symbols.Symbol symbol = 2; /** * repeated .Symbols.Symbol symbol = 2; */ @@ -17987,8 +17907,9 @@ public final class BatchReport { * Protobuf type {@code Symbols} */ public static final class Symbols extends - com.google.protobuf.GeneratedMessage - implements SymbolsOrBuilder { + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:Symbols) + SymbolsOrBuilder { // Use Symbols.newBuilder() to construct. private Symbols(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); @@ -18089,10 +18010,10 @@ public final class BatchReport { return PARSER; } - public interface SymbolOrBuilder - extends com.google.protobuf.MessageOrBuilder { + public interface SymbolOrBuilder extends + // @@protoc_insertion_point(interface_extends:Symbols.Symbol) + com.google.protobuf.MessageOrBuilder { - // optional .Range declaration = 1; /** * optional .Range declaration = 1; */ @@ -18106,7 +18027,6 @@ public final class BatchReport { */ org.sonar.batch.protocol.output.BatchReport.RangeOrBuilder getDeclarationOrBuilder(); - // repeated .Range reference = 2; /** * repeated .Range reference = 2; */ @@ -18135,8 +18055,9 @@ public final class BatchReport { * Protobuf type {@code Symbols.Symbol} */ public static final class Symbol extends - com.google.protobuf.GeneratedMessage - implements SymbolOrBuilder { + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:Symbols.Symbol) + SymbolOrBuilder { // Use Symbol.newBuilder() to construct. private Symbol(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); @@ -18246,7 +18167,6 @@ public final class BatchReport { } private int bitField0_; - // optional .Range declaration = 1; public static final int DECLARATION_FIELD_NUMBER = 1; private org.sonar.batch.protocol.output.BatchReport.Range declaration_; /** @@ -18268,7 +18188,6 @@ public final class BatchReport { return declaration_; } - // repeated .Range reference = 2; public static final int REFERENCE_FIELD_NUMBER = 2; private java.util.List reference_; /** @@ -18311,7 +18230,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; @@ -18425,8 +18345,9 @@ public final class BatchReport { * Protobuf type {@code Symbols.Symbol} */ public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.sonar.batch.protocol.output.BatchReport.Symbols.SymbolOrBuilder { + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:Symbols.Symbol) + org.sonar.batch.protocol.output.BatchReport.Symbols.SymbolOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Symbols_Symbol_descriptor; @@ -18590,7 +18511,6 @@ public final class BatchReport { } private int bitField0_; - // optional .Range declaration = 1; private org.sonar.batch.protocol.output.BatchReport.Range declaration_ = org.sonar.batch.protocol.output.BatchReport.Range.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.sonar.batch.protocol.output.BatchReport.Range, org.sonar.batch.protocol.output.BatchReport.Range.Builder, org.sonar.batch.protocol.output.BatchReport.RangeOrBuilder> declarationBuilder_; @@ -18699,7 +18619,7 @@ public final class BatchReport { if (declarationBuilder_ == null) { declarationBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.sonar.batch.protocol.output.BatchReport.Range, org.sonar.batch.protocol.output.BatchReport.Range.Builder, org.sonar.batch.protocol.output.BatchReport.RangeOrBuilder>( - declaration_, + getDeclaration(), getParentForChildren(), isClean()); declaration_ = null; @@ -18707,7 +18627,6 @@ public final class BatchReport { return declarationBuilder_; } - // repeated .Range reference = 2; private java.util.List reference_ = java.util.Collections.emptyList(); private void ensureReferenceIsMutable() { @@ -18849,7 +18768,8 @@ public final class BatchReport { java.lang.Iterable values) { if (referenceBuilder_ == null) { ensureReferenceIsMutable(); - super.addAll(values, reference_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, reference_); onChanged(); } else { referenceBuilder_.addAllMessages(values); @@ -18959,7 +18879,6 @@ public final class BatchReport { } private int bitField0_; - // optional int32 file_ref = 1; public static final int FILE_REF_FIELD_NUMBER = 1; private int fileRef_; /** @@ -18975,7 +18894,6 @@ public final class BatchReport { return fileRef_; } - // repeated .Symbols.Symbol symbol = 2; public static final int SYMBOL_FIELD_NUMBER = 2; private java.util.List symbol_; /** @@ -19018,7 +18936,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; @@ -19132,8 +19051,9 @@ public final class BatchReport { * Protobuf type {@code Symbols} */ public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.sonar.batch.protocol.output.BatchReport.SymbolsOrBuilder { + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:Symbols) + org.sonar.batch.protocol.output.BatchReport.SymbolsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Symbols_descriptor; @@ -19288,7 +19208,6 @@ public final class BatchReport { } private int bitField0_; - // optional int32 file_ref = 1; private int fileRef_ ; /** * optional int32 file_ref = 1; @@ -19321,7 +19240,6 @@ public final class BatchReport { return this; } - // repeated .Symbols.Symbol symbol = 2; private java.util.List symbol_ = java.util.Collections.emptyList(); private void ensureSymbolIsMutable() { @@ -19463,7 +19381,8 @@ public final class BatchReport { java.lang.Iterable values) { if (symbolBuilder_ == null) { ensureSymbolIsMutable(); - super.addAll(values, symbol_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, symbol_); onChanged(); } else { symbolBuilder_.addAllMessages(values); @@ -19572,10 +19491,10 @@ public final class BatchReport { // @@protoc_insertion_point(class_scope:Symbols) } - public interface CoverageOrBuilder - extends com.google.protobuf.MessageOrBuilder { + public interface CoverageOrBuilder extends + // @@protoc_insertion_point(interface_extends:Coverage) + com.google.protobuf.MessageOrBuilder { - // optional int32 line = 1; /** * optional int32 line = 1; */ @@ -19585,7 +19504,6 @@ public final class BatchReport { */ int getLine(); - // optional int32 conditions = 2; /** * optional int32 conditions = 2; * @@ -19603,7 +19521,6 @@ public final class BatchReport { */ int getConditions(); - // optional bool ut_hits = 3; /** * optional bool ut_hits = 3; * @@ -19621,7 +19538,6 @@ public final class BatchReport { */ boolean getUtHits(); - // optional bool it_hits = 4; /** * optional bool it_hits = 4; * @@ -19639,7 +19555,6 @@ public final class BatchReport { */ boolean getItHits(); - // optional int32 ut_covered_conditions = 5; /** * optional int32 ut_covered_conditions = 5; * @@ -19657,7 +19572,6 @@ public final class BatchReport { */ int getUtCoveredConditions(); - // optional int32 it_covered_conditions = 6; /** * optional int32 it_covered_conditions = 6; * @@ -19675,7 +19589,6 @@ public final class BatchReport { */ int getItCoveredConditions(); - // optional int32 overall_covered_conditions = 7; /** * optional int32 overall_covered_conditions = 7; * @@ -19702,8 +19615,9 @@ public final class BatchReport { * */ public static final class Coverage extends - com.google.protobuf.GeneratedMessage - implements CoverageOrBuilder { + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:Coverage) + CoverageOrBuilder { // Use Coverage.newBuilder() to construct. private Coverage(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); @@ -19824,7 +19738,6 @@ public final class BatchReport { } private int bitField0_; - // optional int32 line = 1; public static final int LINE_FIELD_NUMBER = 1; private int line_; /** @@ -19840,7 +19753,6 @@ public final class BatchReport { return line_; } - // optional int32 conditions = 2; public static final int CONDITIONS_FIELD_NUMBER = 2; private int conditions_; /** @@ -19864,7 +19776,6 @@ public final class BatchReport { return conditions_; } - // optional bool ut_hits = 3; public static final int UT_HITS_FIELD_NUMBER = 3; private boolean utHits_; /** @@ -19888,7 +19799,6 @@ public final class BatchReport { return utHits_; } - // optional bool it_hits = 4; public static final int IT_HITS_FIELD_NUMBER = 4; private boolean itHits_; /** @@ -19912,7 +19822,6 @@ public final class BatchReport { return itHits_; } - // optional int32 ut_covered_conditions = 5; public static final int UT_COVERED_CONDITIONS_FIELD_NUMBER = 5; private int utCoveredConditions_; /** @@ -19936,7 +19845,6 @@ public final class BatchReport { return utCoveredConditions_; } - // optional int32 it_covered_conditions = 6; public static final int IT_COVERED_CONDITIONS_FIELD_NUMBER = 6; private int itCoveredConditions_; /** @@ -19960,7 +19868,6 @@ public final class BatchReport { return itCoveredConditions_; } - // optional int32 overall_covered_conditions = 7; public static final int OVERALL_COVERED_CONDITIONS_FIELD_NUMBER = 7; private int overallCoveredConditions_; /** @@ -19996,7 +19903,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; @@ -20150,8 +20058,9 @@ public final class BatchReport { * */ public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.sonar.batch.protocol.output.BatchReport.CoverageOrBuilder { + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:Coverage) + org.sonar.batch.protocol.output.BatchReport.CoverageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Coverage_descriptor; @@ -20318,7 +20227,6 @@ public final class BatchReport { } private int bitField0_; - // optional int32 line = 1; private int line_ ; /** * optional int32 line = 1; @@ -20351,7 +20259,6 @@ public final class BatchReport { return this; } - // optional int32 conditions = 2; private int conditions_ ; /** * optional int32 conditions = 2; @@ -20400,7 +20307,6 @@ public final class BatchReport { return this; } - // optional bool ut_hits = 3; private boolean utHits_ ; /** * optional bool ut_hits = 3; @@ -20449,7 +20355,6 @@ public final class BatchReport { return this; } - // optional bool it_hits = 4; private boolean itHits_ ; /** * optional bool it_hits = 4; @@ -20498,7 +20403,6 @@ public final class BatchReport { return this; } - // optional int32 ut_covered_conditions = 5; private int utCoveredConditions_ ; /** * optional int32 ut_covered_conditions = 5; @@ -20547,7 +20451,6 @@ public final class BatchReport { return this; } - // optional int32 it_covered_conditions = 6; private int itCoveredConditions_ ; /** * optional int32 it_covered_conditions = 6; @@ -20596,7 +20499,6 @@ public final class BatchReport { return this; } - // optional int32 overall_covered_conditions = 7; private int overallCoveredConditions_ ; /** * optional int32 overall_covered_conditions = 7; @@ -20656,10 +20558,10 @@ public final class BatchReport { // @@protoc_insertion_point(class_scope:Coverage) } - public interface SyntaxHighlightingOrBuilder - extends com.google.protobuf.MessageOrBuilder { + public interface SyntaxHighlightingOrBuilder extends + // @@protoc_insertion_point(interface_extends:SyntaxHighlighting) + com.google.protobuf.MessageOrBuilder { - // optional .Range range = 1; /** * optional .Range range = 1; */ @@ -20673,7 +20575,6 @@ public final class BatchReport { */ org.sonar.batch.protocol.output.BatchReport.RangeOrBuilder getRangeOrBuilder(); - // optional .HighlightingType type = 2; /** * optional .HighlightingType type = 2; */ @@ -20692,8 +20593,9 @@ public final class BatchReport { * */ public static final class SyntaxHighlighting extends - com.google.protobuf.GeneratedMessage - implements SyntaxHighlightingOrBuilder { + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:SyntaxHighlighting) + SyntaxHighlightingOrBuilder { // Use SyntaxHighlighting.newBuilder() to construct. private SyntaxHighlighting(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); @@ -20803,7 +20705,6 @@ public final class BatchReport { } private int bitField0_; - // optional .Range range = 1; public static final int RANGE_FIELD_NUMBER = 1; private org.sonar.batch.protocol.output.BatchReport.Range range_; /** @@ -20825,7 +20726,6 @@ public final class BatchReport { return range_; } - // optional .HighlightingType type = 2; public static final int TYPE_FIELD_NUMBER = 2; private org.sonar.batch.protocol.Constants.HighlightingType type_; /** @@ -20848,7 +20748,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; @@ -20967,8 +20868,9 @@ public final class BatchReport { * */ public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.sonar.batch.protocol.output.BatchReport.SyntaxHighlightingOrBuilder { + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:SyntaxHighlighting) + org.sonar.batch.protocol.output.BatchReport.SyntaxHighlightingOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.sonar.batch.protocol.output.BatchReport.internal_static_SyntaxHighlighting_descriptor; @@ -21099,7 +21001,6 @@ public final class BatchReport { } private int bitField0_; - // optional .Range range = 1; private org.sonar.batch.protocol.output.BatchReport.Range range_ = org.sonar.batch.protocol.output.BatchReport.Range.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.sonar.batch.protocol.output.BatchReport.Range, org.sonar.batch.protocol.output.BatchReport.Range.Builder, org.sonar.batch.protocol.output.BatchReport.RangeOrBuilder> rangeBuilder_; @@ -21208,7 +21109,7 @@ public final class BatchReport { if (rangeBuilder_ == null) { rangeBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.sonar.batch.protocol.output.BatchReport.Range, org.sonar.batch.protocol.output.BatchReport.Range.Builder, org.sonar.batch.protocol.output.BatchReport.RangeOrBuilder>( - range_, + getRange(), getParentForChildren(), isClean()); range_ = null; @@ -21216,7 +21117,6 @@ public final class BatchReport { return rangeBuilder_; } - // optional .HighlightingType type = 2; private org.sonar.batch.protocol.Constants.HighlightingType type_ = org.sonar.batch.protocol.Constants.HighlightingType.ANNOTATION; /** * optional .HighlightingType type = 2; @@ -21263,10 +21163,10 @@ public final class BatchReport { // @@protoc_insertion_point(class_scope:SyntaxHighlighting) } - public interface TestOrBuilder - extends com.google.protobuf.MessageOrBuilder { + public interface TestOrBuilder extends + // @@protoc_insertion_point(interface_extends:Test) + com.google.protobuf.MessageOrBuilder { - // optional string name = 1; /** * optional string name = 1; */ @@ -21281,7 +21181,6 @@ public final class BatchReport { com.google.protobuf.ByteString getNameBytes(); - // optional .TestStatus status = 2; /** * optional .TestStatus status = 2; */ @@ -21291,7 +21190,6 @@ public final class BatchReport { */ org.sonar.batch.protocol.Constants.TestStatus getStatus(); - // optional int64 duration_in_ms = 3; /** * optional int64 duration_in_ms = 3; */ @@ -21301,7 +21199,6 @@ public final class BatchReport { */ long getDurationInMs(); - // optional string stacktrace = 4; /** * optional string stacktrace = 4; */ @@ -21316,7 +21213,6 @@ public final class BatchReport { com.google.protobuf.ByteString getStacktraceBytes(); - // optional string msg = 5; /** * optional string msg = 5; */ @@ -21335,8 +21231,9 @@ public final class BatchReport { * Protobuf type {@code Test} */ public static final class Test extends - com.google.protobuf.GeneratedMessage - implements TestOrBuilder { + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:Test) + TestOrBuilder { // Use Test.newBuilder() to construct. private Test(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); @@ -21383,8 +21280,9 @@ public final class BatchReport { break; } case 10: { + com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; - name_ = input.readBytes(); + name_ = bs; break; } case 16: { @@ -21404,13 +21302,15 @@ public final class BatchReport { break; } case 34: { + com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000008; - stacktrace_ = input.readBytes(); + stacktrace_ = bs; break; } case 42: { + com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000010; - msg_ = input.readBytes(); + msg_ = bs; break; } } @@ -21453,7 +21353,6 @@ public final class BatchReport { } private int bitField0_; - // optional string name = 1; public static final int NAME_FIELD_NUMBER = 1; private java.lang.Object name_; /** @@ -21496,7 +21395,6 @@ public final class BatchReport { } } - // optional .TestStatus status = 2; public static final int STATUS_FIELD_NUMBER = 2; private org.sonar.batch.protocol.Constants.TestStatus status_; /** @@ -21512,7 +21410,6 @@ public final class BatchReport { return status_; } - // optional int64 duration_in_ms = 3; public static final int DURATION_IN_MS_FIELD_NUMBER = 3; private long durationInMs_; /** @@ -21528,7 +21425,6 @@ public final class BatchReport { return durationInMs_; } - // optional string stacktrace = 4; public static final int STACKTRACE_FIELD_NUMBER = 4; private java.lang.Object stacktrace_; /** @@ -21571,7 +21467,6 @@ public final class BatchReport { } } - // optional string msg = 5; public static final int MSG_FIELD_NUMBER = 5; private java.lang.Object msg_; /** @@ -21624,7 +21519,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; @@ -21759,8 +21655,9 @@ public final class BatchReport { * Protobuf type {@code Test} */ public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.sonar.batch.protocol.output.BatchReport.TestOrBuilder { + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:Test) + org.sonar.batch.protocol.output.BatchReport.TestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Test_descriptor; @@ -21915,7 +21812,6 @@ public final class BatchReport { } private int bitField0_; - // optional string name = 1; private java.lang.Object name_ = ""; /** * optional string name = 1; @@ -21929,9 +21825,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; @@ -21989,7 +21888,6 @@ public final class BatchReport { return this; } - // optional .TestStatus status = 2; private org.sonar.batch.protocol.Constants.TestStatus status_ = org.sonar.batch.protocol.Constants.TestStatus.OK; /** * optional .TestStatus status = 2; @@ -22025,7 +21923,6 @@ public final class BatchReport { return this; } - // optional int64 duration_in_ms = 3; private long durationInMs_ ; /** * optional int64 duration_in_ms = 3; @@ -22058,7 +21955,6 @@ public final class BatchReport { return this; } - // optional string stacktrace = 4; private java.lang.Object stacktrace_ = ""; /** * optional string stacktrace = 4; @@ -22072,9 +21968,12 @@ public final class BatchReport { public java.lang.String getStacktrace() { java.lang.Object ref = stacktrace_; if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - stacktrace_ = s; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + stacktrace_ = s; + } return s; } else { return (java.lang.String) ref; @@ -22132,7 +22031,6 @@ public final class BatchReport { return this; } - // optional string msg = 5; private java.lang.Object msg_ = ""; /** * optional string msg = 5; @@ -22146,9 +22044,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; @@ -22217,10 +22118,10 @@ public final class BatchReport { // @@protoc_insertion_point(class_scope:Test) } - public interface CoverageDetailOrBuilder - extends com.google.protobuf.MessageOrBuilder { + public interface CoverageDetailOrBuilder extends + // @@protoc_insertion_point(interface_extends:CoverageDetail) + com.google.protobuf.MessageOrBuilder { - // optional string test_name = 1; /** * optional string test_name = 1; */ @@ -22235,7 +22136,6 @@ public final class BatchReport { com.google.protobuf.ByteString getTestNameBytes(); - // repeated .CoverageDetail.CoveredFile covered_file = 2; /** * repeated .CoverageDetail.CoveredFile covered_file = 2; */ @@ -22264,8 +22164,9 @@ public final class BatchReport { * Protobuf type {@code CoverageDetail} */ public static final class CoverageDetail extends - com.google.protobuf.GeneratedMessage - implements CoverageDetailOrBuilder { + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:CoverageDetail) + CoverageDetailOrBuilder { // Use CoverageDetail.newBuilder() to construct. private CoverageDetail(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); @@ -22312,8 +22213,9 @@ public final class BatchReport { break; } case 10: { + com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; - testName_ = input.readBytes(); + testName_ = bs; break; } case 18: { @@ -22366,10 +22268,10 @@ public final class BatchReport { return PARSER; } - public interface CoveredFileOrBuilder - extends com.google.protobuf.MessageOrBuilder { + public interface CoveredFileOrBuilder extends + // @@protoc_insertion_point(interface_extends:CoverageDetail.CoveredFile) + com.google.protobuf.MessageOrBuilder { - // optional int32 file_ref = 1; /** * optional int32 file_ref = 1; */ @@ -22379,7 +22281,6 @@ public final class BatchReport { */ int getFileRef(); - // repeated int32 covered_line = 2 [packed = true]; /** * repeated int32 covered_line = 2 [packed = true]; */ @@ -22397,8 +22298,9 @@ public final class BatchReport { * Protobuf type {@code CoverageDetail.CoveredFile} */ public static final class CoveredFile extends - com.google.protobuf.GeneratedMessage - implements CoveredFileOrBuilder { + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:CoverageDetail.CoveredFile) + CoveredFileOrBuilder { // Use CoveredFile.newBuilder() to construct. private CoveredFile(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); @@ -22513,7 +22415,6 @@ public final class BatchReport { } private int bitField0_; - // optional int32 file_ref = 1; public static final int FILE_REF_FIELD_NUMBER = 1; private int fileRef_; /** @@ -22529,7 +22430,6 @@ public final class BatchReport { return fileRef_; } - // repeated int32 covered_line = 2 [packed = true]; public static final int COVERED_LINE_FIELD_NUMBER = 2; private java.util.List coveredLine_; /** @@ -22560,7 +22460,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; @@ -22688,8 +22589,9 @@ public final class BatchReport { * Protobuf type {@code CoverageDetail.CoveredFile} */ public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFileOrBuilder { + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:CoverageDetail.CoveredFile) + org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFileOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.sonar.batch.protocol.output.BatchReport.internal_static_CoverageDetail_CoveredFile_descriptor; @@ -22819,7 +22721,6 @@ public final class BatchReport { } private int bitField0_; - // optional int32 file_ref = 1; private int fileRef_ ; /** * optional int32 file_ref = 1; @@ -22852,7 +22753,6 @@ public final class BatchReport { return this; } - // repeated int32 covered_line = 2 [packed = true]; private java.util.List coveredLine_ = java.util.Collections.emptyList(); private void ensureCoveredLineIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { @@ -22904,7 +22804,8 @@ public final class BatchReport { public Builder addAllCoveredLine( java.lang.Iterable values) { ensureCoveredLineIsMutable(); - super.addAll(values, coveredLine_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, coveredLine_); onChanged(); return this; } @@ -22930,7 +22831,6 @@ public final class BatchReport { } private int bitField0_; - // optional string test_name = 1; public static final int TEST_NAME_FIELD_NUMBER = 1; private java.lang.Object testName_; /** @@ -22973,7 +22873,6 @@ public final class BatchReport { } } - // repeated .CoverageDetail.CoveredFile covered_file = 2; public static final int COVERED_FILE_FIELD_NUMBER = 2; private java.util.List coveredFile_; /** @@ -23016,7 +22915,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; @@ -23130,8 +23030,9 @@ public final class BatchReport { * Protobuf type {@code CoverageDetail} */ public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.sonar.batch.protocol.output.BatchReport.CoverageDetailOrBuilder { + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:CoverageDetail) + org.sonar.batch.protocol.output.BatchReport.CoverageDetailOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.sonar.batch.protocol.output.BatchReport.internal_static_CoverageDetail_descriptor; @@ -23288,7 +23189,6 @@ public final class BatchReport { } private int bitField0_; - // optional string test_name = 1; private java.lang.Object testName_ = ""; /** * optional string test_name = 1; @@ -23302,9 +23202,12 @@ public final class BatchReport { public java.lang.String getTestName() { java.lang.Object ref = testName_; if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - testName_ = s; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + testName_ = s; + } return s; } else { return (java.lang.String) ref; @@ -23362,7 +23265,6 @@ public final class BatchReport { return this; } - // repeated .CoverageDetail.CoveredFile covered_file = 2; private java.util.List coveredFile_ = java.util.Collections.emptyList(); private void ensureCoveredFileIsMutable() { @@ -23504,7 +23406,8 @@ public final class BatchReport { java.lang.Iterable values) { if (coveredFileBuilder_ == null) { ensureCoveredFileIsMutable(); - super.addAll(values, coveredFile_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, coveredFile_); onChanged(); } else { coveredFileBuilder_.addAllMessages(values); @@ -23613,10 +23516,10 @@ public final class BatchReport { // @@protoc_insertion_point(class_scope:CoverageDetail) } - public interface FileDependencyOrBuilder - extends com.google.protobuf.MessageOrBuilder { + public interface FileDependencyOrBuilder extends + // @@protoc_insertion_point(interface_extends:FileDependency) + com.google.protobuf.MessageOrBuilder { - // optional int32 to_file_ref = 1; /** * optional int32 to_file_ref = 1; */ @@ -23626,7 +23529,6 @@ public final class BatchReport { */ int getToFileRef(); - // optional int32 weight = 2; /** * optional int32 weight = 2; */ @@ -23640,8 +23542,9 @@ public final class BatchReport { * Protobuf type {@code FileDependency} */ public static final class FileDependency extends - com.google.protobuf.GeneratedMessage - implements FileDependencyOrBuilder { + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:FileDependency) + FileDependencyOrBuilder { // Use FileDependency.newBuilder() to construct. private FileDependency(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); @@ -23737,7 +23640,6 @@ public final class BatchReport { } private int bitField0_; - // optional int32 to_file_ref = 1; public static final int TO_FILE_REF_FIELD_NUMBER = 1; private int toFileRef_; /** @@ -23753,7 +23655,6 @@ public final class BatchReport { return toFileRef_; } - // optional int32 weight = 2; public static final int WEIGHT_FIELD_NUMBER = 2; private int weight_; /** @@ -23776,7 +23677,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; @@ -23890,8 +23792,9 @@ public final class BatchReport { * Protobuf type {@code FileDependency} */ public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.sonar.batch.protocol.output.BatchReport.FileDependencyOrBuilder { + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:FileDependency) + org.sonar.batch.protocol.output.BatchReport.FileDependencyOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.sonar.batch.protocol.output.BatchReport.internal_static_FileDependency_descriptor; @@ -24013,7 +23916,6 @@ public final class BatchReport { } private int bitField0_; - // optional int32 to_file_ref = 1; private int toFileRef_ ; /** * optional int32 to_file_ref = 1; @@ -24046,7 +23948,6 @@ public final class BatchReport { return this; } - // optional int32 weight = 2; private int weight_ ; /** * optional int32 weight = 2; @@ -24090,10 +23991,10 @@ public final class BatchReport { // @@protoc_insertion_point(class_scope:FileDependency) } - public interface ModuleDependenciesOrBuilder - extends com.google.protobuf.MessageOrBuilder { + public interface ModuleDependenciesOrBuilder extends + // @@protoc_insertion_point(interface_extends:ModuleDependencies) + com.google.protobuf.MessageOrBuilder { - // repeated .ModuleDependencies.ModuleDependency dep = 1; /** * repeated .ModuleDependencies.ModuleDependency dep = 1; */ @@ -24122,8 +24023,9 @@ public final class BatchReport { * Protobuf type {@code ModuleDependencies} */ public static final class ModuleDependencies extends - com.google.protobuf.GeneratedMessage - implements ModuleDependenciesOrBuilder { + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:ModuleDependencies) + ModuleDependenciesOrBuilder { // Use ModuleDependencies.newBuilder() to construct. private ModuleDependencies(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); @@ -24219,10 +24121,10 @@ public final class BatchReport { return PARSER; } - public interface ModuleDependencyOrBuilder - extends com.google.protobuf.MessageOrBuilder { + public interface ModuleDependencyOrBuilder extends + // @@protoc_insertion_point(interface_extends:ModuleDependencies.ModuleDependency) + com.google.protobuf.MessageOrBuilder { - // optional string key = 1; /** * optional string key = 1; */ @@ -24237,7 +24139,6 @@ public final class BatchReport { com.google.protobuf.ByteString getKeyBytes(); - // optional string version = 2; /** * optional string version = 2; */ @@ -24252,7 +24153,6 @@ public final class BatchReport { com.google.protobuf.ByteString getVersionBytes(); - // optional string scope = 3; /** * optional string scope = 3; */ @@ -24267,7 +24167,6 @@ public final class BatchReport { com.google.protobuf.ByteString getScopeBytes(); - // repeated .ModuleDependencies.ModuleDependency child = 4; /** * repeated .ModuleDependencies.ModuleDependency child = 4; */ @@ -24296,8 +24195,9 @@ public final class BatchReport { * Protobuf type {@code ModuleDependencies.ModuleDependency} */ public static final class ModuleDependency extends - com.google.protobuf.GeneratedMessage - implements ModuleDependencyOrBuilder { + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:ModuleDependencies.ModuleDependency) + ModuleDependencyOrBuilder { // Use ModuleDependency.newBuilder() to construct. private ModuleDependency(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); @@ -24344,18 +24244,21 @@ public final class BatchReport { break; } case 10: { + com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; - key_ = input.readBytes(); + key_ = bs; break; } case 18: { + com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; - version_ = input.readBytes(); + version_ = bs; break; } case 26: { + com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000004; - scope_ = input.readBytes(); + scope_ = bs; break; } case 34: { @@ -24409,7 +24312,6 @@ public final class BatchReport { } private int bitField0_; - // optional string key = 1; public static final int KEY_FIELD_NUMBER = 1; private java.lang.Object key_; /** @@ -24452,7 +24354,6 @@ public final class BatchReport { } } - // optional string version = 2; public static final int VERSION_FIELD_NUMBER = 2; private java.lang.Object version_; /** @@ -24495,7 +24396,6 @@ public final class BatchReport { } } - // optional string scope = 3; public static final int SCOPE_FIELD_NUMBER = 3; private java.lang.Object scope_; /** @@ -24538,7 +24438,6 @@ public final class BatchReport { } } - // repeated .ModuleDependencies.ModuleDependency child = 4; public static final int CHILD_FIELD_NUMBER = 4; private java.util.List child_; /** @@ -24583,7 +24482,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; @@ -24711,8 +24611,9 @@ public final class BatchReport { * Protobuf type {@code ModuleDependencies.ModuleDependency} */ public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.sonar.batch.protocol.output.BatchReport.ModuleDependencies.ModuleDependencyOrBuilder { + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:ModuleDependencies.ModuleDependency) + org.sonar.batch.protocol.output.BatchReport.ModuleDependencies.ModuleDependencyOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.sonar.batch.protocol.output.BatchReport.internal_static_ModuleDependencies_ModuleDependency_descriptor; @@ -24891,7 +24792,6 @@ public final class BatchReport { } private int bitField0_; - // optional string key = 1; private java.lang.Object key_ = ""; /** * optional string key = 1; @@ -24905,9 +24805,12 @@ public final class BatchReport { public java.lang.String getKey() { java.lang.Object ref = key_; if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - key_ = s; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + key_ = s; + } return s; } else { return (java.lang.String) ref; @@ -24965,7 +24868,6 @@ public final class BatchReport { return this; } - // optional string version = 2; private java.lang.Object version_ = ""; /** * optional string version = 2; @@ -24979,9 +24881,12 @@ public final class BatchReport { public java.lang.String getVersion() { java.lang.Object ref = version_; if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - version_ = s; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + version_ = s; + } return s; } else { return (java.lang.String) ref; @@ -25039,7 +24944,6 @@ public final class BatchReport { return this; } - // optional string scope = 3; private java.lang.Object scope_ = ""; /** * optional string scope = 3; @@ -25053,9 +24957,12 @@ public final class BatchReport { public java.lang.String getScope() { java.lang.Object ref = scope_; if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - scope_ = s; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + scope_ = s; + } return s; } else { return (java.lang.String) ref; @@ -25113,7 +25020,6 @@ public final class BatchReport { return this; } - // repeated .ModuleDependencies.ModuleDependency child = 4; private java.util.List child_ = java.util.Collections.emptyList(); private void ensureChildIsMutable() { @@ -25255,7 +25161,8 @@ public final class BatchReport { java.lang.Iterable values) { if (childBuilder_ == null) { ensureChildIsMutable(); - super.addAll(values, child_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, child_); onChanged(); } else { childBuilder_.addAllMessages(values); @@ -25364,7 +25271,6 @@ public final class BatchReport { // @@protoc_insertion_point(class_scope:ModuleDependencies.ModuleDependency) } - // repeated .ModuleDependencies.ModuleDependency dep = 1; public static final int DEP_FIELD_NUMBER = 1; private java.util.List dep_; /** @@ -25406,7 +25312,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; @@ -25513,8 +25420,9 @@ public final class BatchReport { * Protobuf type {@code ModuleDependencies} */ public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.sonar.batch.protocol.output.BatchReport.ModuleDependenciesOrBuilder { + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:ModuleDependencies) + org.sonar.batch.protocol.output.BatchReport.ModuleDependenciesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.sonar.batch.protocol.output.BatchReport.internal_static_ModuleDependencies_descriptor; @@ -25658,7 +25566,6 @@ public final class BatchReport { } private int bitField0_; - // repeated .ModuleDependencies.ModuleDependency dep = 1; private java.util.List dep_ = java.util.Collections.emptyList(); private void ensureDepIsMutable() { @@ -25800,7 +25707,8 @@ public final class BatchReport { java.lang.Iterable values) { if (depBuilder_ == null) { ensureDepIsMutable(); - super.addAll(values, dep_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, dep_); onChanged(); } else { depBuilder_.addAllMessages(values); @@ -25909,122 +25817,122 @@ public final class BatchReport { // @@protoc_insertion_point(class_scope:ModuleDependencies) } - 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_ComponentLink_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_ComponentLink_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor + private static final com.google.protobuf.Descriptors.Descriptor internal_static_Event_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Event_fieldAccessorTable; - private static 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_Measure_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Measure_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor + private static final com.google.protobuf.Descriptors.Descriptor internal_static_Measures_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Measures_fieldAccessorTable; - private static 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 internal_static_Issues_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor + private static final com.google.protobuf.Descriptors.Descriptor internal_static_Changesets_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Changesets_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor + private static final com.google.protobuf.Descriptors.Descriptor internal_static_Changesets_Changeset_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Changesets_Changeset_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor + private static final com.google.protobuf.Descriptors.Descriptor internal_static_Duplicate_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Duplicate_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor + private static final com.google.protobuf.Descriptors.Descriptor internal_static_Duplication_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Duplication_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor + private static final com.google.protobuf.Descriptors.Descriptor internal_static_Duplications_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Duplications_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor + private static final com.google.protobuf.Descriptors.Descriptor internal_static_Range_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Range_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor + private static final com.google.protobuf.Descriptors.Descriptor internal_static_Symbols_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Symbols_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor + private static final com.google.protobuf.Descriptors.Descriptor internal_static_Symbols_Symbol_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Symbols_Symbol_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor + private static final com.google.protobuf.Descriptors.Descriptor internal_static_Coverage_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Coverage_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor + private static final com.google.protobuf.Descriptors.Descriptor internal_static_SyntaxHighlighting_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_SyntaxHighlighting_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor + private static final com.google.protobuf.Descriptors.Descriptor internal_static_Test_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Test_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor + private static final com.google.protobuf.Descriptors.Descriptor internal_static_CoverageDetail_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_CoverageDetail_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor + private static final com.google.protobuf.Descriptors.Descriptor internal_static_CoverageDetail_CoveredFile_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_CoverageDetail_CoveredFile_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor + private static final com.google.protobuf.Descriptors.Descriptor internal_static_FileDependency_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_FileDependency_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor + private static final com.google.protobuf.Descriptors.Descriptor internal_static_ModuleDependencies_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_ModuleDependencies_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor + private static final com.google.protobuf.Descriptors.Descriptor internal_static_ModuleDependencies_ModuleDependency_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -26121,162 +26029,163 @@ public final class BatchReport { "ncyB#\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", "Branch", "RootComponentRef", "SnapshotId", "DeletedComponentsCount", }); - internal_static_ComponentLink_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_ComponentLink_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_ComponentLink_descriptor, - new java.lang.String[] { "Type", "Href", }); - internal_static_Event_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_Event_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_Event_descriptor, - new java.lang.String[] { "ComponentRef", "Name", "Description", "Category", "EventData", }); - internal_static_Component_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_Component_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_Component_descriptor, - new java.lang.String[] { "Ref", "Path", "Name", "Type", "IsTest", "Language", "ChildRef", "Link", "Version", "Key", "Lines", "Id", "SnapshotId", "Uuid", "Event", }); - internal_static_Measure_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_Measure_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_Measure_descriptor, - new java.lang.String[] { "ValueType", "BooleanValue", "IntValue", "LongValue", "DoubleValue", "StringValue", "MetricKey", "Description", "RuleKey", "Severity", "AlertStatus", "AlertText", "VariationValue1", "VariationValue2", "VariationValue3", "VariationValue4", "VariationValue5", "CharactericId", "PersonId", }); - internal_static_Measures_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_Measures_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_Measures_descriptor, - new java.lang.String[] { "ComponentRef", "Measure", }); - internal_static_Issue_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_Issue_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_Issue_descriptor, - new java.lang.String[] { "RuleRepository", "RuleKey", "Line", "Msg", "Severity", "Tag", "EffortToFix", "IsNew", "Uuid", "DebtInMinutes", "Resolution", "Status", "Checksum", "ManualSeverity", "Reporter", "Assignee", "ActionPlanKey", "Attributes", "AuthorLogin", "CreationDate", "CloseDate", "UpdateDate", "SelectedAt", "DiffFields", "IsChanged", "MustSendNotification", }); - internal_static_Issues_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_Issues_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_Issues_descriptor, - new java.lang.String[] { "ComponentRef", "Issue", "ComponentUuid", }); - internal_static_Changesets_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_Changesets_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_Changesets_descriptor, - new java.lang.String[] { "ComponentRef", "Changeset", "ChangesetIndexByLine", }); - internal_static_Changesets_Changeset_descriptor = - internal_static_Changesets_descriptor.getNestedTypes().get(0); - internal_static_Changesets_Changeset_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_Changesets_Changeset_descriptor, - new java.lang.String[] { "Revision", "Author", "Date", }); - internal_static_Duplicate_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_Duplicate_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_Duplicate_descriptor, - new java.lang.String[] { "OtherFileRef", "Range", "OtherFileKey", }); - internal_static_Duplication_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_Duplication_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_Duplication_descriptor, - new java.lang.String[] { "OriginPosition", "Duplicate", }); - internal_static_Duplications_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_Duplications_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_Duplications_descriptor, - new java.lang.String[] { "ComponentRef", "Duplication", }); - internal_static_Range_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_Range_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_Range_descriptor, - new java.lang.String[] { "StartLine", "EndLine", "StartOffset", "EndOffset", }); - internal_static_Symbols_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_Symbols_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_Symbols_descriptor, - new java.lang.String[] { "FileRef", "Symbol", }); - internal_static_Symbols_Symbol_descriptor = - internal_static_Symbols_descriptor.getNestedTypes().get(0); - internal_static_Symbols_Symbol_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_Symbols_Symbol_descriptor, - new java.lang.String[] { "Declaration", "Reference", }); - internal_static_Coverage_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_Coverage_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_Coverage_descriptor, - new java.lang.String[] { "Line", "Conditions", "UtHits", "ItHits", "UtCoveredConditions", "ItCoveredConditions", "OverallCoveredConditions", }); - internal_static_SyntaxHighlighting_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_SyntaxHighlighting_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_SyntaxHighlighting_descriptor, - new java.lang.String[] { "Range", "Type", }); - internal_static_Test_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_Test_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_Test_descriptor, - new java.lang.String[] { "Name", "Status", "DurationInMs", "Stacktrace", "Msg", }); - internal_static_CoverageDetail_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_CoverageDetail_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_CoverageDetail_descriptor, - new java.lang.String[] { "TestName", "CoveredFile", }); - internal_static_CoverageDetail_CoveredFile_descriptor = - internal_static_CoverageDetail_descriptor.getNestedTypes().get(0); - internal_static_CoverageDetail_CoveredFile_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_CoverageDetail_CoveredFile_descriptor, - new java.lang.String[] { "FileRef", "CoveredLine", }); - internal_static_FileDependency_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_FileDependency_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_FileDependency_descriptor, - new java.lang.String[] { "ToFileRef", "Weight", }); - internal_static_ModuleDependencies_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_ModuleDependencies_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_ModuleDependencies_descriptor, - new java.lang.String[] { "Dep", }); - internal_static_ModuleDependencies_ModuleDependency_descriptor = - internal_static_ModuleDependencies_descriptor.getNestedTypes().get(0); - internal_static_ModuleDependencies_ModuleDependency_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_ModuleDependencies_ModuleDependency_descriptor, - new java.lang.String[] { "Key", "Version", "Scope", "Child", }); - 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", "Branch", "RootComponentRef", "SnapshotId", "DeletedComponentsCount", }); + internal_static_ComponentLink_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_ComponentLink_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_ComponentLink_descriptor, + new java.lang.String[] { "Type", "Href", }); + internal_static_Event_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_Event_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_Event_descriptor, + new java.lang.String[] { "ComponentRef", "Name", "Description", "Category", "EventData", }); + internal_static_Component_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_Component_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_Component_descriptor, + new java.lang.String[] { "Ref", "Path", "Name", "Type", "IsTest", "Language", "ChildRef", "Link", "Version", "Key", "Lines", "Id", "SnapshotId", "Uuid", "Event", }); + internal_static_Measure_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_Measure_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_Measure_descriptor, + new java.lang.String[] { "ValueType", "BooleanValue", "IntValue", "LongValue", "DoubleValue", "StringValue", "MetricKey", "Description", "RuleKey", "Severity", "AlertStatus", "AlertText", "VariationValue1", "VariationValue2", "VariationValue3", "VariationValue4", "VariationValue5", "CharactericId", "PersonId", }); + internal_static_Measures_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_Measures_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_Measures_descriptor, + new java.lang.String[] { "ComponentRef", "Measure", }); + internal_static_Issue_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_Issue_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_Issue_descriptor, + new java.lang.String[] { "RuleRepository", "RuleKey", "Line", "Msg", "Severity", "Tag", "EffortToFix", "IsNew", "Uuid", "DebtInMinutes", "Resolution", "Status", "Checksum", "ManualSeverity", "Reporter", "Assignee", "ActionPlanKey", "Attributes", "AuthorLogin", "CreationDate", "CloseDate", "UpdateDate", "SelectedAt", "DiffFields", "IsChanged", "MustSendNotification", }); + internal_static_Issues_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_Issues_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_Issues_descriptor, + new java.lang.String[] { "ComponentRef", "Issue", "ComponentUuid", }); + internal_static_Changesets_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_Changesets_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_Changesets_descriptor, + new java.lang.String[] { "ComponentRef", "Changeset", "ChangesetIndexByLine", }); + internal_static_Changesets_Changeset_descriptor = + internal_static_Changesets_descriptor.getNestedTypes().get(0); + internal_static_Changesets_Changeset_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_Changesets_Changeset_descriptor, + new java.lang.String[] { "Revision", "Author", "Date", }); + internal_static_Duplicate_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_Duplicate_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_Duplicate_descriptor, + new java.lang.String[] { "OtherFileRef", "Range", "OtherFileKey", }); + internal_static_Duplication_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_Duplication_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_Duplication_descriptor, + new java.lang.String[] { "OriginPosition", "Duplicate", }); + internal_static_Duplications_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_Duplications_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_Duplications_descriptor, + new java.lang.String[] { "ComponentRef", "Duplication", }); + internal_static_Range_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_Range_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_Range_descriptor, + new java.lang.String[] { "StartLine", "EndLine", "StartOffset", "EndOffset", }); + internal_static_Symbols_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_Symbols_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_Symbols_descriptor, + new java.lang.String[] { "FileRef", "Symbol", }); + internal_static_Symbols_Symbol_descriptor = + internal_static_Symbols_descriptor.getNestedTypes().get(0); + internal_static_Symbols_Symbol_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_Symbols_Symbol_descriptor, + new java.lang.String[] { "Declaration", "Reference", }); + internal_static_Coverage_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_Coverage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_Coverage_descriptor, + new java.lang.String[] { "Line", "Conditions", "UtHits", "ItHits", "UtCoveredConditions", "ItCoveredConditions", "OverallCoveredConditions", }); + internal_static_SyntaxHighlighting_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_SyntaxHighlighting_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_SyntaxHighlighting_descriptor, + new java.lang.String[] { "Range", "Type", }); + internal_static_Test_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_Test_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_Test_descriptor, + new java.lang.String[] { "Name", "Status", "DurationInMs", "Stacktrace", "Msg", }); + internal_static_CoverageDetail_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_CoverageDetail_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_CoverageDetail_descriptor, + new java.lang.String[] { "TestName", "CoveredFile", }); + internal_static_CoverageDetail_CoveredFile_descriptor = + internal_static_CoverageDetail_descriptor.getNestedTypes().get(0); + internal_static_CoverageDetail_CoveredFile_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_CoverageDetail_CoveredFile_descriptor, + new java.lang.String[] { "FileRef", "CoveredLine", }); + internal_static_FileDependency_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_FileDependency_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_FileDependency_descriptor, + new java.lang.String[] { "ToFileRef", "Weight", }); + internal_static_ModuleDependencies_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_ModuleDependencies_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_ModuleDependencies_descriptor, + new java.lang.String[] { "Dep", }); + internal_static_ModuleDependencies_ModuleDependency_descriptor = + internal_static_ModuleDependencies_descriptor.getNestedTypes().get(0); + internal_static_ModuleDependencies_ModuleDependency_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_ModuleDependencies_ModuleDependency_descriptor, + new java.lang.String[] { "Key", "Version", "Scope", "Child", }); + 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 8427ac822a9..987acb9659f 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; /** * optional int32 line = 1; */ @@ -21,7 +21,6 @@ public final class FileSourceDb { */ int getLine(); - // optional string source = 2; /** * optional string source = 2; */ @@ -36,7 +35,6 @@ public final class FileSourceDb { com.google.protobuf.ByteString getSourceBytes(); - // optional string scm_revision = 3; /** * optional string scm_revision = 3; * @@ -63,7 +61,6 @@ public final class FileSourceDb { com.google.protobuf.ByteString getScmRevisionBytes(); - // optional string scm_author = 4; /** * optional string scm_author = 4; */ @@ -78,7 +75,6 @@ public final class FileSourceDb { com.google.protobuf.ByteString getScmAuthorBytes(); - // optional int64 scm_date = 5; /** * optional int64 scm_date = 5; */ @@ -88,7 +84,6 @@ public final class FileSourceDb { */ long getScmDate(); - // optional int32 ut_line_hits = 6; /** * optional int32 ut_line_hits = 6; * @@ -106,7 +101,6 @@ public final class FileSourceDb { */ int getUtLineHits(); - // optional int32 ut_conditions = 7; /** * optional int32 ut_conditions = 7; */ @@ -116,7 +110,6 @@ public final class FileSourceDb { */ int getUtConditions(); - // optional int32 ut_covered_conditions = 8; /** * optional int32 ut_covered_conditions = 8; */ @@ -126,7 +119,6 @@ public final class FileSourceDb { */ int getUtCoveredConditions(); - // optional int32 it_line_hits = 9; /** * optional int32 it_line_hits = 9; * @@ -144,7 +136,6 @@ public final class FileSourceDb { */ int getItLineHits(); - // optional int32 it_conditions = 10; /** * optional int32 it_conditions = 10; */ @@ -154,7 +145,6 @@ public final class FileSourceDb { */ int getItConditions(); - // optional int32 it_covered_conditions = 11; /** * optional int32 it_covered_conditions = 11; */ @@ -164,7 +154,6 @@ public final class FileSourceDb { */ int getItCoveredConditions(); - // optional int32 overall_line_hits = 12; /** * optional int32 overall_line_hits = 12; * @@ -182,7 +171,6 @@ public final class FileSourceDb { */ int getOverallLineHits(); - // optional int32 overall_conditions = 13; /** * optional int32 overall_conditions = 13; */ @@ -192,7 +180,6 @@ public final class FileSourceDb { */ int getOverallConditions(); - // optional int32 overall_covered_conditions = 14; /** * optional int32 overall_covered_conditions = 14; */ @@ -202,7 +189,6 @@ public final class FileSourceDb { */ int getOverallCoveredConditions(); - // optional string highlighting = 15; /** * optional string highlighting = 15; */ @@ -217,7 +203,6 @@ public final class FileSourceDb { com.google.protobuf.ByteString getHighlightingBytes(); - // optional string symbols = 16; /** * optional string symbols = 16; */ @@ -232,7 +217,6 @@ public final class FileSourceDb { com.google.protobuf.ByteString getSymbolsBytes(); - // repeated int32 duplication = 17 [packed = true]; /** * repeated int32 duplication = 17 [packed = true]; */ @@ -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 duplication = 17 [packed = true]; public static final int DUPLICATION_FIELD_NUMBER = 17; private java.util.List duplication_; /** @@ -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 - implements org.sonar.server.source.db.FileSourceDb.LineOrBuilder { + com.google.protobuf.GeneratedMessage.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_ ; /** * optional int32 line = 1; @@ -1456,7 +1430,6 @@ public final class FileSourceDb { return this; } - // optional string source = 2; private java.lang.Object source_ = ""; /** * optional string source = 2; @@ -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_ = ""; /** * optional string scm_revision = 3; @@ -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_ = ""; /** * optional string scm_author = 4; @@ -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_ ; /** * optional int64 scm_date = 5; @@ -1735,7 +1714,6 @@ public final class FileSourceDb { return this; } - // optional int32 ut_line_hits = 6; private int utLineHits_ ; /** * optional int32 ut_line_hits = 6; @@ -1784,7 +1762,6 @@ public final class FileSourceDb { return this; } - // optional int32 ut_conditions = 7; private int utConditions_ ; /** * optional int32 ut_conditions = 7; @@ -1817,7 +1794,6 @@ public final class FileSourceDb { return this; } - // optional int32 ut_covered_conditions = 8; private int utCoveredConditions_ ; /** * optional int32 ut_covered_conditions = 8; @@ -1850,7 +1826,6 @@ public final class FileSourceDb { return this; } - // optional int32 it_line_hits = 9; private int itLineHits_ ; /** * optional int32 it_line_hits = 9; @@ -1899,7 +1874,6 @@ public final class FileSourceDb { return this; } - // optional int32 it_conditions = 10; private int itConditions_ ; /** * optional int32 it_conditions = 10; @@ -1932,7 +1906,6 @@ public final class FileSourceDb { return this; } - // optional int32 it_covered_conditions = 11; private int itCoveredConditions_ ; /** * optional int32 it_covered_conditions = 11; @@ -1965,7 +1938,6 @@ public final class FileSourceDb { return this; } - // optional int32 overall_line_hits = 12; private int overallLineHits_ ; /** * optional int32 overall_line_hits = 12; @@ -2014,7 +1986,6 @@ public final class FileSourceDb { return this; } - // optional int32 overall_conditions = 13; private int overallConditions_ ; /** * optional int32 overall_conditions = 13; @@ -2047,7 +2018,6 @@ public final class FileSourceDb { return this; } - // optional int32 overall_covered_conditions = 14; private int overallCoveredConditions_ ; /** * optional int32 overall_covered_conditions = 14; @@ -2080,7 +2050,6 @@ public final class FileSourceDb { return this; } - // optional string highlighting = 15; private java.lang.Object highlighting_ = ""; /** * optional string highlighting = 15; @@ -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_ = ""; /** * optional string symbols = 16; @@ -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 duplication = 17 [packed = true]; private java.util.List duplication_ = java.util.Collections.emptyList(); private void ensureDuplicationIsMutable() { if (!((bitField0_ & 0x00010000) == 0x00010000)) { @@ -2280,7 +2253,8 @@ public final class FileSourceDb { public Builder addAllDuplication( java.lang.Iterable values) { ensureDuplicationIsMutable(); - super.addAll(values, duplication_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, duplication_); 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; /** * repeated .org.sonar.server.source.db.Line lines = 1; */ @@ -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 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 - implements org.sonar.server.source.db.FileSourceDb.DataOrBuilder { + com.google.protobuf.GeneratedMessage.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 lines_ = java.util.Collections.emptyList(); private void ensureLinesIsMutable() { @@ -2870,7 +2845,8 @@ public final class FileSourceDb { java.lang.Iterable values) { if (linesBuilder_ == null) { ensureLinesIsMutable(); - super.addAll(values, lines_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, lines_); onChanged(); } else { linesBuilder_.addAllMessages(values); @@ -2979,10 +2955,10 @@ public final class FileSourceDb { // @@protoc_insertion_point(class_scope:org.sonar.server.source.db.Data) } - public interface TestOrBuilder - extends com.google.protobuf.MessageOrBuilder { + public interface TestOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.sonar.server.source.db.Test) + com.google.protobuf.MessageOrBuilder { - // optional string uuid = 1; /** * optional string uuid = 1; */ @@ -2997,7 +2973,6 @@ public final class FileSourceDb { com.google.protobuf.ByteString getUuidBytes(); - // optional string name = 2; /** * optional string name = 2; */ @@ -3012,7 +2987,6 @@ public final class FileSourceDb { com.google.protobuf.ByteString getNameBytes(); - // optional .TestStatus status = 3; /** * optional .TestStatus status = 3; */ @@ -3022,7 +2996,6 @@ public final class FileSourceDb { */ org.sonar.batch.protocol.Constants.TestStatus getStatus(); - // optional int64 execution_time_ms = 4; /** * optional int64 execution_time_ms = 4; */ @@ -3032,7 +3005,6 @@ public final class FileSourceDb { */ long getExecutionTimeMs(); - // optional string stacktrace = 5; /** * optional string stacktrace = 5; */ @@ -3047,7 +3019,6 @@ public final class FileSourceDb { com.google.protobuf.ByteString getStacktraceBytes(); - // optional string msg = 6; /** * optional string msg = 6; */ @@ -3062,7 +3033,6 @@ public final class FileSourceDb { com.google.protobuf.ByteString getMsgBytes(); - // repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7; /** * repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7; */ @@ -3091,8 +3061,9 @@ public final class FileSourceDb { * Protobuf type {@code org.sonar.server.source.db.Test} */ public static final class Test extends - com.google.protobuf.GeneratedMessage - implements TestOrBuilder { + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:org.sonar.server.source.db.Test) + TestOrBuilder { // Use Test.newBuilder() to construct. private Test(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); @@ -3139,13 +3110,15 @@ public final class FileSourceDb { break; } case 10: { + com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; - uuid_ = input.readBytes(); + uuid_ = bs; break; } case 18: { + com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; - name_ = input.readBytes(); + name_ = bs; break; } case 24: { @@ -3165,13 +3138,15 @@ public final class FileSourceDb { break; } case 42: { + com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000010; - stacktrace_ = input.readBytes(); + stacktrace_ = bs; break; } case 50: { + com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000020; - msg_ = input.readBytes(); + msg_ = bs; break; } case 58: { @@ -3224,10 +3199,10 @@ public final class FileSourceDb { return PARSER; } - public interface CoveredFileOrBuilder - extends com.google.protobuf.MessageOrBuilder { + public interface CoveredFileOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.sonar.server.source.db.Test.CoveredFile) + com.google.protobuf.MessageOrBuilder { - // optional string file_uuid = 1; /** * optional string file_uuid = 1; */ @@ -3242,7 +3217,6 @@ public final class FileSourceDb { com.google.protobuf.ByteString getFileUuidBytes(); - // repeated int32 covered_line = 2 [packed = true]; /** * repeated int32 covered_line = 2 [packed = true]; */ @@ -3260,8 +3234,9 @@ public final class FileSourceDb { * Protobuf type {@code org.sonar.server.source.db.Test.CoveredFile} */ public static final class CoveredFile extends - com.google.protobuf.GeneratedMessage - implements CoveredFileOrBuilder { + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:org.sonar.server.source.db.Test.CoveredFile) + CoveredFileOrBuilder { // Use CoveredFile.newBuilder() to construct. private CoveredFile(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); @@ -3308,8 +3283,9 @@ public final class FileSourceDb { break; } case 10: { + com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; - fileUuid_ = input.readBytes(); + fileUuid_ = bs; break; } case 16: { @@ -3376,7 +3352,6 @@ public final class FileSourceDb { } private int bitField0_; - // optional string file_uuid = 1; public static final int FILE_UUID_FIELD_NUMBER = 1; private java.lang.Object fileUuid_; /** @@ -3419,7 +3394,6 @@ public final class FileSourceDb { } } - // repeated int32 covered_line = 2 [packed = true]; public static final int COVERED_LINE_FIELD_NUMBER = 2; private java.util.List coveredLine_; /** @@ -3450,7 +3424,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; @@ -3578,8 +3553,9 @@ public final class FileSourceDb { * Protobuf type {@code org.sonar.server.source.db.Test.CoveredFile} */ public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.sonar.server.source.db.FileSourceDb.Test.CoveredFileOrBuilder { + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:org.sonar.server.source.db.Test.CoveredFile) + org.sonar.server.source.db.FileSourceDb.Test.CoveredFileOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.sonar.server.source.db.FileSourceDb.internal_static_org_sonar_server_source_db_Test_CoveredFile_descriptor; @@ -3711,7 +3687,6 @@ public final class FileSourceDb { } private int bitField0_; - // optional string file_uuid = 1; private java.lang.Object fileUuid_ = ""; /** * optional string file_uuid = 1; @@ -3725,9 +3700,12 @@ public final class FileSourceDb { public java.lang.String getFileUuid() { java.lang.Object ref = fileUuid_; if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - fileUuid_ = s; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + fileUuid_ = s; + } return s; } else { return (java.lang.String) ref; @@ -3785,7 +3763,6 @@ public final class FileSourceDb { return this; } - // repeated int32 covered_line = 2 [packed = true]; private java.util.List coveredLine_ = java.util.Collections.emptyList(); private void ensureCoveredLineIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { @@ -3837,7 +3814,8 @@ public final class FileSourceDb { public Builder addAllCoveredLine( java.lang.Iterable values) { ensureCoveredLineIsMutable(); - super.addAll(values, coveredLine_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, coveredLine_); onChanged(); return this; } @@ -3863,7 +3841,6 @@ public final class FileSourceDb { } private int bitField0_; - // optional string uuid = 1; public static final int UUID_FIELD_NUMBER = 1; private java.lang.Object uuid_; /** @@ -3906,7 +3883,6 @@ public final class FileSourceDb { } } - // optional string name = 2; public static final int NAME_FIELD_NUMBER = 2; private java.lang.Object name_; /** @@ -3949,7 +3925,6 @@ public final class FileSourceDb { } } - // optional .TestStatus status = 3; public static final int STATUS_FIELD_NUMBER = 3; private org.sonar.batch.protocol.Constants.TestStatus status_; /** @@ -3965,7 +3940,6 @@ public final class FileSourceDb { return status_; } - // optional int64 execution_time_ms = 4; public static final int EXECUTION_TIME_MS_FIELD_NUMBER = 4; private long executionTimeMs_; /** @@ -3981,7 +3955,6 @@ public final class FileSourceDb { return executionTimeMs_; } - // optional string stacktrace = 5; public static final int STACKTRACE_FIELD_NUMBER = 5; private java.lang.Object stacktrace_; /** @@ -4024,7 +3997,6 @@ public final class FileSourceDb { } } - // optional string msg = 6; public static final int MSG_FIELD_NUMBER = 6; private java.lang.Object msg_; /** @@ -4067,7 +4039,6 @@ public final class FileSourceDb { } } - // repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7; public static final int COVERED_FILE_FIELD_NUMBER = 7; private java.util.List coveredFile_; /** @@ -4115,7 +4086,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; @@ -4264,8 +4236,9 @@ public final class FileSourceDb { * Protobuf type {@code org.sonar.server.source.db.Test} */ public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.sonar.server.source.db.FileSourceDb.TestOrBuilder { + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:org.sonar.server.source.db.Test) + org.sonar.server.source.db.FileSourceDb.TestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.sonar.server.source.db.FileSourceDb.internal_static_org_sonar_server_source_db_Test_descriptor; @@ -4473,7 +4446,6 @@ public final class FileSourceDb { } private int bitField0_; - // optional string uuid = 1; private java.lang.Object uuid_ = ""; /** * optional string uuid = 1; @@ -4487,9 +4459,12 @@ public final class FileSourceDb { 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; @@ -4547,7 +4522,6 @@ public final class FileSourceDb { return this; } - // optional string name = 2; private java.lang.Object name_ = ""; /** * optional string name = 2; @@ -4561,9 +4535,12 @@ public final class FileSourceDb { 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; @@ -4621,7 +4598,6 @@ public final class FileSourceDb { return this; } - // optional .TestStatus status = 3; private org.sonar.batch.protocol.Constants.TestStatus status_ = org.sonar.batch.protocol.Constants.TestStatus.OK; /** * optional .TestStatus status = 3; @@ -4657,7 +4633,6 @@ public final class FileSourceDb { return this; } - // optional int64 execution_time_ms = 4; private long executionTimeMs_ ; /** * optional int64 execution_time_ms = 4; @@ -4690,7 +4665,6 @@ public final class FileSourceDb { return this; } - // optional string stacktrace = 5; private java.lang.Object stacktrace_ = ""; /** * optional string stacktrace = 5; @@ -4704,9 +4678,12 @@ public final class FileSourceDb { public java.lang.String getStacktrace() { java.lang.Object ref = stacktrace_; if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - stacktrace_ = s; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + stacktrace_ = s; + } return s; } else { return (java.lang.String) ref; @@ -4764,7 +4741,6 @@ public final class FileSourceDb { return this; } - // optional string msg = 6; private java.lang.Object msg_ = ""; /** * optional string msg = 6; @@ -4778,9 +4754,12 @@ public final class FileSourceDb { 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; @@ -4838,7 +4817,6 @@ public final class FileSourceDb { return this; } - // repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7; private java.util.List coveredFile_ = java.util.Collections.emptyList(); private void ensureCoveredFileIsMutable() { @@ -4980,7 +4958,8 @@ public final class FileSourceDb { java.lang.Iterable values) { if (coveredFileBuilder_ == null) { ensureCoveredFileIsMutable(); - super.addAll(values, coveredFile_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, coveredFile_); onChanged(); } else { coveredFileBuilder_.addAllMessages(values); @@ -5089,22 +5068,22 @@ public final class FileSourceDb { // @@protoc_insertion_point(class_scope:org.sonar.server.source.db.Test) } - 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 internal_static_org_sonar_server_source_db_Data_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor + private static final com.google.protobuf.Descriptors.Descriptor internal_static_org_sonar_server_source_db_Test_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_org_sonar_server_source_db_Test_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor + private static final com.google.protobuf.Descriptors.Descriptor internal_static_org_sonar_server_source_db_Test_CoveredFile_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -5140,42 +5119,43 @@ public final class FileSourceDb { "\n\014covered_line\030\002 \003(\005B\002\020\001B\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", "Duplication", }); - 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", }); - internal_static_org_sonar_server_source_db_Test_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_org_sonar_server_source_db_Test_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_org_sonar_server_source_db_Test_descriptor, - new java.lang.String[] { "Uuid", "Name", "Status", "ExecutionTimeMs", "Stacktrace", "Msg", "CoveredFile", }); - internal_static_org_sonar_server_source_db_Test_CoveredFile_descriptor = - internal_static_org_sonar_server_source_db_Test_descriptor.getNestedTypes().get(0); - internal_static_org_sonar_server_source_db_Test_CoveredFile_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_org_sonar_server_source_db_Test_CoveredFile_descriptor, - new java.lang.String[] { "FileUuid", "CoveredLine", }); - 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_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", "Duplication", }); + 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", }); + internal_static_org_sonar_server_source_db_Test_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_org_sonar_server_source_db_Test_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_org_sonar_server_source_db_Test_descriptor, + new java.lang.String[] { "Uuid", "Name", "Status", "ExecutionTimeMs", "Stacktrace", "Msg", "CoveredFile", }); + internal_static_org_sonar_server_source_db_Test_CoveredFile_descriptor = + internal_static_org_sonar_server_source_db_Test_descriptor.getNestedTypes().get(0); + internal_static_org_sonar_server_source_db_Test_CoveredFile_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_org_sonar_server_source_db_Test_CoveredFile_descriptor, + new java.lang.String[] { "FileUuid", "CoveredLine", }); + org.sonar.batch.protocol.Constants.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) -- 2.39.5