diff options
author | Julien Lancelot <julien.lancelot@sonarsource.com> | 2015-03-11 08:31:47 +0100 |
---|---|---|
committer | Julien Lancelot <julien.lancelot@sonarsource.com> | 2015-03-12 16:06:20 +0100 |
commit | c613bf937e87f7c97b5a04690d8045bac1259af8 (patch) | |
tree | 3dc6d356dce17e362eb3111812579878f0da4cd7 /sonar-batch-protocol | |
parent | 4ad73a8ade0de8d42b34480d387e77156017929c (diff) | |
download | sonarqube-c613bf937e87f7c97b5a04690d8045bac1259af8.tar.gz sonarqube-c613bf937e87f7c97b5a04690d8045bac1259af8.zip |
SONAR-6262 Persist links in compute stack
Diffstat (limited to 'sonar-batch-protocol')
6 files changed, 3905 insertions, 1814 deletions
diff --git a/sonar-batch-protocol/src/main/gen-java/org/sonar/batch/protocol/Constants.java b/sonar-batch-protocol/src/main/gen-java/org/sonar/batch/protocol/Constants.java index bc9d704a4f2..91df158ede1 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 @@ -4,15 +4,18 @@ package org.sonar.batch.protocol; public final class Constants { - private Constants() {} + private Constants() { + } + public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { + com.google.protobuf.ExtensionRegistry registry) { } + /** * Protobuf enum {@code Severity} */ public enum Severity - implements com.google.protobuf.ProtocolMessageEnum { + implements com.google.protobuf.ProtocolMessageEnum { /** * <code>INFO = 0;</code> */ @@ -32,8 +35,7 @@ public final class Constants { /** * <code>BLOCKER = 4;</code> */ - BLOCKER(4, 4), - ; + BLOCKER(4, 4), ; /** * <code>INFO = 0;</code> @@ -56,49 +58,58 @@ public final class Constants { */ public static final int BLOCKER_VALUE = 4; - - public final int getNumber() { return value; } + public final int getNumber() { + return value; + } public static Severity valueOf(int value) { switch (value) { - case 0: return INFO; - case 1: return MINOR; - case 2: return MAJOR; - case 3: return CRITICAL; - case 4: return BLOCKER; - default: return null; + case 0: + return INFO; + case 1: + return MINOR; + case 2: + return MAJOR; + case 3: + return CRITICAL; + case 4: + return BLOCKER; + default: + return null; } } public static com.google.protobuf.Internal.EnumLiteMap<Severity> - internalGetValueMap() { + internalGetValueMap() { return internalValueMap; } - private static com.google.protobuf.Internal.EnumLiteMap<Severity> - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap<Severity>() { - public Severity findValueByNumber(int number) { - return Severity.valueOf(number); - } - }; + + private static com.google.protobuf.Internal.EnumLiteMap<Severity> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap<Severity>() { + public Severity findValueByNumber(int number) { + return Severity.valueOf(number); + } + }; public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + getValueDescriptor() { return getDescriptor().getValues().get(index); } + public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + getDescriptorForType() { return getDescriptor(); } + public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + getDescriptor() { return org.sonar.batch.protocol.Constants.getDescriptor().getEnumTypes().get(0); } private static final Severity[] VALUES = values(); public static Severity valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); @@ -121,7 +132,7 @@ public final class Constants { * Protobuf enum {@code ComponentType} */ public enum ComponentType - implements com.google.protobuf.ProtocolMessageEnum { + implements com.google.protobuf.ProtocolMessageEnum { /** * <code>PROJECT = 0;</code> */ @@ -145,8 +156,7 @@ public final class Constants { /** * <code>SUBVIEW = 5;</code> */ - SUBVIEW(5, 5), - ; + SUBVIEW(5, 5), ; /** * <code>PROJECT = 0;</code> @@ -173,50 +183,60 @@ public final class Constants { */ public static final int SUBVIEW_VALUE = 5; - - public final int getNumber() { return value; } + public final int getNumber() { + return value; + } public static ComponentType valueOf(int value) { switch (value) { - case 0: return PROJECT; - case 1: return MODULE; - case 2: return DIRECTORY; - case 3: return FILE; - case 4: return VIEW; - case 5: return SUBVIEW; - default: return null; + case 0: + return PROJECT; + case 1: + return MODULE; + case 2: + return DIRECTORY; + case 3: + return FILE; + case 4: + return VIEW; + case 5: + return SUBVIEW; + default: + return null; } } public static com.google.protobuf.Internal.EnumLiteMap<ComponentType> - internalGetValueMap() { + internalGetValueMap() { return internalValueMap; } - private static com.google.protobuf.Internal.EnumLiteMap<ComponentType> - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap<ComponentType>() { - public ComponentType findValueByNumber(int number) { - return ComponentType.valueOf(number); - } - }; + + private static com.google.protobuf.Internal.EnumLiteMap<ComponentType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap<ComponentType>() { + public ComponentType findValueByNumber(int number) { + return ComponentType.valueOf(number); + } + }; public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + getValueDescriptor() { return getDescriptor().getValues().get(index); } + public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + getDescriptorForType() { return getDescriptor(); } + public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + getDescriptor() { return org.sonar.batch.protocol.Constants.getDescriptor().getEnumTypes().get(1); } private static final ComponentType[] VALUES = values(); public static ComponentType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); @@ -235,26 +255,143 @@ public final class Constants { // @@protoc_insertion_point(enum_scope:ComponentType) } + /** + * Protobuf enum {@code ComponentLinkType} + */ + public enum ComponentLinkType + implements com.google.protobuf.ProtocolMessageEnum { + /** + * <code>HOME = 0;</code> + */ + HOME(0, 0), + /** + * <code>SCM = 1;</code> + */ + SCM(1, 1), + /** + * <code>SCM_DEV = 2;</code> + */ + SCM_DEV(2, 2), + /** + * <code>ISSUE = 3;</code> + */ + ISSUE(3, 3), + /** + * <code>CI = 4;</code> + */ + CI(4, 4), ; - public static com.google.protobuf.Descriptors.FileDescriptor + /** + * <code>HOME = 0;</code> + */ + public static final int HOME_VALUE = 0; + /** + * <code>SCM = 1;</code> + */ + public static final int SCM_VALUE = 1; + /** + * <code>SCM_DEV = 2;</code> + */ + public static final int SCM_DEV_VALUE = 2; + /** + * <code>ISSUE = 3;</code> + */ + public static final int ISSUE_VALUE = 3; + /** + * <code>CI = 4;</code> + */ + public static final int CI_VALUE = 4; + + public final int getNumber() { + return value; + } + + public static ComponentLinkType valueOf(int value) { + switch (value) { + case 0: + return HOME; + case 1: + return SCM; + case 2: + return SCM_DEV; + case 3: + return ISSUE; + case 4: + return CI; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap<ComponentLinkType> + internalGetValueMap() { + return internalValueMap; + } + + private static com.google.protobuf.Internal.EnumLiteMap<ComponentLinkType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap<ComponentLinkType>() { + public ComponentLinkType findValueByNumber(int number) { + return ComponentLinkType.valueOf(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(index); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return org.sonar.batch.protocol.Constants.getDescriptor().getEnumTypes().get(2); + } + + private static final ComponentLinkType[] VALUES = values(); + + public static ComponentLinkType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + return VALUES[desc.getIndex()]; + } + + private final int index; + private final int value; + + private ComponentLinkType(int index, int value) { + this.index = index; + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:ComponentLinkType) + } + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n\017constants.proto*E\n\010Severity\022\010\n\004INFO\020\000\022" + - "\t\n\005MINOR\020\001\022\t\n\005MAJOR\020\002\022\014\n\010CRITICAL\020\003\022\013\n\007B" + - "LOCKER\020\004*X\n\rComponentType\022\013\n\007PROJECT\020\000\022\n" + - "\n\006MODULE\020\001\022\r\n\tDIRECTORY\020\002\022\010\n\004FILE\020\003\022\010\n\004V" + - "IEW\020\004\022\013\n\007SUBVIEW\020\005B\034\n\030org.sonar.batch.pr" + - "otocolH\001" + "\t\n\005MINOR\020\001\022\t\n\005MAJOR\020\002\022\014\n\010CRITICAL\020\003\022\013\n\007B" + + "LOCKER\020\004*X\n\rComponentType\022\013\n\007PROJECT\020\000\022\n" + + "\n\006MODULE\020\001\022\r\n\tDIRECTORY\020\002\022\010\n\004FILE\020\003\022\010\n\004V" + + "IEW\020\004\022\013\n\007SUBVIEW\020\005*F\n\021ComponentLinkType\022" + + "\010\n\004HOME\020\000\022\007\n\003SCM\020\001\022\013\n\007SCM_DEV\020\002\022\t\n\005ISSUE" + + "\020\003\022\006\n\002CI\020\004B\034\n\030org.sonar.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) { + com.google.protobuf.Descriptors.FileDescriptor root) { descriptor = root; return null; } 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 6ecbcc83d31..5e35e980038 100644 --- a/sonar-batch-protocol/src/main/gen-java/org/sonar/batch/protocol/input/BatchInput.java +++ b/sonar-batch-protocol/src/main/gen-java/org/sonar/batch/protocol/input/BatchInput.java @@ -4,198 +4,212 @@ package org.sonar.batch.protocol.input; public final class BatchInput { - private BatchInput() {} + private BatchInput() { + } + public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { + com.google.protobuf.ExtensionRegistry registry) { } - public interface ServerIssueOrBuilder - extends com.google.protobuf.MessageOrBuilder { - // optional string key = 1; + public interface ServerIssueOrBuilder extends + // @@protoc_insertion_point(interface_extends:ServerIssue) + com.google.protobuf.MessageOrBuilder { + /** * <code>optional string key = 1;</code> */ boolean hasKey(); + /** * <code>optional string key = 1;</code> */ java.lang.String getKey(); + /** * <code>optional string key = 1;</code> */ com.google.protobuf.ByteString - getKeyBytes(); + getKeyBytes(); - // optional string module_key = 2; /** * <code>optional string module_key = 2;</code> */ boolean hasModuleKey(); + /** * <code>optional string module_key = 2;</code> */ java.lang.String getModuleKey(); + /** * <code>optional string module_key = 2;</code> */ com.google.protobuf.ByteString - getModuleKeyBytes(); + getModuleKeyBytes(); - // optional string path = 3; /** * <code>optional string path = 3;</code> */ boolean hasPath(); + /** * <code>optional string path = 3;</code> */ java.lang.String getPath(); + /** * <code>optional string path = 3;</code> */ com.google.protobuf.ByteString - getPathBytes(); + getPathBytes(); - // optional string rule_repository = 4; /** * <code>optional string rule_repository = 4;</code> */ boolean hasRuleRepository(); + /** * <code>optional string rule_repository = 4;</code> */ java.lang.String getRuleRepository(); + /** * <code>optional string rule_repository = 4;</code> */ com.google.protobuf.ByteString - getRuleRepositoryBytes(); + getRuleRepositoryBytes(); - // optional string rule_key = 5; /** * <code>optional string rule_key = 5;</code> */ boolean hasRuleKey(); + /** * <code>optional string rule_key = 5;</code> */ java.lang.String getRuleKey(); + /** * <code>optional string rule_key = 5;</code> */ com.google.protobuf.ByteString - getRuleKeyBytes(); + getRuleKeyBytes(); - // optional int32 line = 6; /** * <code>optional int32 line = 6;</code> */ boolean hasLine(); + /** * <code>optional int32 line = 6;</code> */ int getLine(); - // optional string msg = 7; /** * <code>optional string msg = 7;</code> */ boolean hasMsg(); + /** * <code>optional string msg = 7;</code> */ java.lang.String getMsg(); + /** * <code>optional string msg = 7;</code> */ com.google.protobuf.ByteString - getMsgBytes(); + getMsgBytes(); - // optional .Severity severity = 8; /** * <code>optional .Severity severity = 8;</code> */ boolean hasSeverity(); + /** * <code>optional .Severity severity = 8;</code> */ org.sonar.batch.protocol.Constants.Severity getSeverity(); - // optional bool manual_severity = 9; /** * <code>optional bool manual_severity = 9;</code> */ boolean hasManualSeverity(); + /** * <code>optional bool manual_severity = 9;</code> */ boolean getManualSeverity(); - // optional string resolution = 10; /** * <code>optional string resolution = 10;</code> */ boolean hasResolution(); + /** * <code>optional string resolution = 10;</code> */ java.lang.String getResolution(); + /** * <code>optional string resolution = 10;</code> */ com.google.protobuf.ByteString - getResolutionBytes(); + getResolutionBytes(); - // optional string status = 11; /** * <code>optional string status = 11;</code> */ boolean hasStatus(); + /** * <code>optional string status = 11;</code> */ java.lang.String getStatus(); + /** * <code>optional string status = 11;</code> */ com.google.protobuf.ByteString - getStatusBytes(); + getStatusBytes(); - // optional string checksum = 12; /** * <code>optional string checksum = 12;</code> */ boolean hasChecksum(); + /** * <code>optional string checksum = 12;</code> */ java.lang.String getChecksum(); + /** * <code>optional string checksum = 12;</code> */ com.google.protobuf.ByteString - getChecksumBytes(); + getChecksumBytes(); - // optional string assignee_login = 13; /** * <code>optional string assignee_login = 13;</code> */ boolean hasAssigneeLogin(); + /** * <code>optional string assignee_login = 13;</code> */ java.lang.String getAssigneeLogin(); + /** * <code>optional string assignee_login = 13;</code> */ com.google.protobuf.ByteString - getAssigneeLoginBytes(); + getAssigneeLoginBytes(); - // optional int64 creation_date = 14; /** * <code>optional int64 creation_date = 14;</code> */ boolean hasCreationDate(); + /** * <code>optional int64 creation_date = 14;</code> */ @@ -205,16 +219,21 @@ 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); this.unknownFields = builder.getUnknownFields(); } - private ServerIssue(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + + private ServerIssue(boolean noInit) { + this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } private static final ServerIssue defaultInstance; + public static ServerIssue getDefaultInstance() { return defaultInstance; } @@ -224,19 +243,21 @@ public final class BatchInput { } private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + getUnknownFields() { return this.unknownFields; } + private ServerIssue( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); + com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { @@ -247,34 +268,39 @@ public final class BatchInput { break; default: { if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { + extensionRegistry, tag)) { done = true; } 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: { @@ -283,8 +309,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: { @@ -304,23 +331,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: { @@ -334,33 +365,34 @@ public final class BatchInput { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); + e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } + public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + getDescriptor() { return org.sonar.batch.protocol.input.BatchInput.internal_static_ServerIssue_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { + internalGetFieldAccessorTable() { return org.sonar.batch.protocol.input.BatchInput.internal_static_ServerIssue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.batch.protocol.input.BatchInput.ServerIssue.class, org.sonar.batch.protocol.input.BatchInput.ServerIssue.Builder.class); + .ensureFieldAccessorsInitialized( + org.sonar.batch.protocol.input.BatchInput.ServerIssue.class, org.sonar.batch.protocol.input.BatchInput.ServerIssue.Builder.class); } public static com.google.protobuf.Parser<ServerIssue> PARSER = - new com.google.protobuf.AbstractParser<ServerIssue>() { - public ServerIssue parsePartialFrom( + new com.google.protobuf.AbstractParser<ServerIssue>() { + public ServerIssue parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ServerIssue(input, extensionRegistry); - } - }; + return new ServerIssue(input, extensionRegistry); + } + }; @java.lang.Override public com.google.protobuf.Parser<ServerIssue> getParserForType() { @@ -368,15 +400,16 @@ public final class BatchInput { } private int bitField0_; - // optional string key = 1; public static final int KEY_FIELD_NUMBER = 1; private java.lang.Object key_; + /** * <code>optional string key = 1;</code> */ public boolean hasKey() { return ((bitField0_ & 0x00000001) == 0x00000001); } + /** * <code>optional string key = 1;</code> */ @@ -385,8 +418,8 @@ public final class BatchInput { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { key_ = s; @@ -394,16 +427,17 @@ public final class BatchInput { return s; } } + /** * <code>optional string key = 1;</code> */ public com.google.protobuf.ByteString - getKeyBytes() { + getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); key_ = b; return b; } else { @@ -411,15 +445,16 @@ public final class BatchInput { } } - // optional string module_key = 2; public static final int MODULE_KEY_FIELD_NUMBER = 2; private java.lang.Object moduleKey_; + /** * <code>optional string module_key = 2;</code> */ public boolean hasModuleKey() { return ((bitField0_ & 0x00000002) == 0x00000002); } + /** * <code>optional string module_key = 2;</code> */ @@ -428,8 +463,8 @@ public final class BatchInput { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { moduleKey_ = s; @@ -437,16 +472,17 @@ public final class BatchInput { return s; } } + /** * <code>optional string module_key = 2;</code> */ public com.google.protobuf.ByteString - getModuleKeyBytes() { + getModuleKeyBytes() { java.lang.Object ref = moduleKey_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); moduleKey_ = b; return b; } else { @@ -454,15 +490,16 @@ public final class BatchInput { } } - // optional string path = 3; public static final int PATH_FIELD_NUMBER = 3; private java.lang.Object path_; + /** * <code>optional string path = 3;</code> */ public boolean hasPath() { return ((bitField0_ & 0x00000004) == 0x00000004); } + /** * <code>optional string path = 3;</code> */ @@ -471,8 +508,8 @@ public final class BatchInput { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { path_ = s; @@ -480,16 +517,17 @@ public final class BatchInput { return s; } } + /** * <code>optional string path = 3;</code> */ public com.google.protobuf.ByteString - getPathBytes() { + getPathBytes() { java.lang.Object ref = path_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); path_ = b; return b; } else { @@ -497,15 +535,16 @@ public final class BatchInput { } } - // optional string rule_repository = 4; public static final int RULE_REPOSITORY_FIELD_NUMBER = 4; private java.lang.Object ruleRepository_; + /** * <code>optional string rule_repository = 4;</code> */ public boolean hasRuleRepository() { return ((bitField0_ & 0x00000008) == 0x00000008); } + /** * <code>optional string rule_repository = 4;</code> */ @@ -514,8 +553,8 @@ public final class BatchInput { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { ruleRepository_ = s; @@ -523,16 +562,17 @@ public final class BatchInput { return s; } } + /** * <code>optional string rule_repository = 4;</code> */ public com.google.protobuf.ByteString - getRuleRepositoryBytes() { + getRuleRepositoryBytes() { java.lang.Object ref = ruleRepository_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); ruleRepository_ = b; return b; } else { @@ -540,15 +580,16 @@ public final class BatchInput { } } - // optional string rule_key = 5; public static final int RULE_KEY_FIELD_NUMBER = 5; private java.lang.Object ruleKey_; + /** * <code>optional string rule_key = 5;</code> */ public boolean hasRuleKey() { return ((bitField0_ & 0x00000010) == 0x00000010); } + /** * <code>optional string rule_key = 5;</code> */ @@ -557,8 +598,8 @@ public final class BatchInput { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { ruleKey_ = s; @@ -566,16 +607,17 @@ public final class BatchInput { return s; } } + /** * <code>optional string rule_key = 5;</code> */ public com.google.protobuf.ByteString - getRuleKeyBytes() { + getRuleKeyBytes() { java.lang.Object ref = ruleKey_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); ruleKey_ = b; return b; } else { @@ -583,15 +625,16 @@ public final class BatchInput { } } - // optional int32 line = 6; public static final int LINE_FIELD_NUMBER = 6; private int line_; + /** * <code>optional int32 line = 6;</code> */ public boolean hasLine() { return ((bitField0_ & 0x00000020) == 0x00000020); } + /** * <code>optional int32 line = 6;</code> */ @@ -599,15 +642,16 @@ public final class BatchInput { return line_; } - // optional string msg = 7; public static final int MSG_FIELD_NUMBER = 7; private java.lang.Object msg_; + /** * <code>optional string msg = 7;</code> */ public boolean hasMsg() { return ((bitField0_ & 0x00000040) == 0x00000040); } + /** * <code>optional string msg = 7;</code> */ @@ -616,8 +660,8 @@ public final class BatchInput { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { msg_ = s; @@ -625,16 +669,17 @@ public final class BatchInput { return s; } } + /** * <code>optional string msg = 7;</code> */ public com.google.protobuf.ByteString - getMsgBytes() { + getMsgBytes() { java.lang.Object ref = msg_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); msg_ = b; return b; } else { @@ -642,15 +687,16 @@ public final class BatchInput { } } - // optional .Severity severity = 8; public static final int SEVERITY_FIELD_NUMBER = 8; private org.sonar.batch.protocol.Constants.Severity severity_; + /** * <code>optional .Severity severity = 8;</code> */ public boolean hasSeverity() { return ((bitField0_ & 0x00000080) == 0x00000080); } + /** * <code>optional .Severity severity = 8;</code> */ @@ -658,15 +704,16 @@ public final class BatchInput { return severity_; } - // optional bool manual_severity = 9; public static final int MANUAL_SEVERITY_FIELD_NUMBER = 9; private boolean manualSeverity_; + /** * <code>optional bool manual_severity = 9;</code> */ public boolean hasManualSeverity() { return ((bitField0_ & 0x00000100) == 0x00000100); } + /** * <code>optional bool manual_severity = 9;</code> */ @@ -674,15 +721,16 @@ public final class BatchInput { return manualSeverity_; } - // optional string resolution = 10; public static final int RESOLUTION_FIELD_NUMBER = 10; private java.lang.Object resolution_; + /** * <code>optional string resolution = 10;</code> */ public boolean hasResolution() { return ((bitField0_ & 0x00000200) == 0x00000200); } + /** * <code>optional string resolution = 10;</code> */ @@ -691,8 +739,8 @@ public final class BatchInput { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { resolution_ = s; @@ -700,16 +748,17 @@ public final class BatchInput { return s; } } + /** * <code>optional string resolution = 10;</code> */ public com.google.protobuf.ByteString - getResolutionBytes() { + getResolutionBytes() { java.lang.Object ref = resolution_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resolution_ = b; return b; } else { @@ -717,15 +766,16 @@ public final class BatchInput { } } - // optional string status = 11; public static final int STATUS_FIELD_NUMBER = 11; private java.lang.Object status_; + /** * <code>optional string status = 11;</code> */ public boolean hasStatus() { return ((bitField0_ & 0x00000400) == 0x00000400); } + /** * <code>optional string status = 11;</code> */ @@ -734,8 +784,8 @@ public final class BatchInput { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { status_ = s; @@ -743,16 +793,17 @@ public final class BatchInput { return s; } } + /** * <code>optional string status = 11;</code> */ public com.google.protobuf.ByteString - getStatusBytes() { + getStatusBytes() { java.lang.Object ref = status_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); status_ = b; return b; } else { @@ -760,15 +811,16 @@ public final class BatchInput { } } - // optional string checksum = 12; public static final int CHECKSUM_FIELD_NUMBER = 12; private java.lang.Object checksum_; + /** * <code>optional string checksum = 12;</code> */ public boolean hasChecksum() { return ((bitField0_ & 0x00000800) == 0x00000800); } + /** * <code>optional string checksum = 12;</code> */ @@ -777,8 +829,8 @@ public final class BatchInput { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { checksum_ = s; @@ -786,16 +838,17 @@ public final class BatchInput { return s; } } + /** * <code>optional string checksum = 12;</code> */ public com.google.protobuf.ByteString - getChecksumBytes() { + getChecksumBytes() { java.lang.Object ref = checksum_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); checksum_ = b; return b; } else { @@ -803,15 +856,16 @@ public final class BatchInput { } } - // optional string assignee_login = 13; public static final int ASSIGNEE_LOGIN_FIELD_NUMBER = 13; private java.lang.Object assigneeLogin_; + /** * <code>optional string assignee_login = 13;</code> */ public boolean hasAssigneeLogin() { return ((bitField0_ & 0x00001000) == 0x00001000); } + /** * <code>optional string assignee_login = 13;</code> */ @@ -820,8 +874,8 @@ public final class BatchInput { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { assigneeLogin_ = s; @@ -829,16 +883,17 @@ public final class BatchInput { return s; } } + /** * <code>optional string assignee_login = 13;</code> */ public com.google.protobuf.ByteString - getAssigneeLoginBytes() { + getAssigneeLoginBytes() { java.lang.Object ref = assigneeLogin_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); assigneeLogin_ = b; return b; } else { @@ -846,15 +901,16 @@ public final class BatchInput { } } - // optional int64 creation_date = 14; public static final int CREATION_DATE_FIELD_NUMBER = 14; private long creationDate_; + /** * <code>optional int64 creation_date = 14;</code> */ public boolean hasCreationDate() { return ((bitField0_ & 0x00002000) == 0x00002000); } + /** * <code>optional int64 creation_date = 14;</code> */ @@ -878,17 +934,22 @@ public final class BatchInput { assigneeLogin_ = ""; creationDate_ = 0L; } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getKeyBytes()); @@ -936,9 +997,11 @@ public final class BatchInput { } private int memoizedSerializedSize = -1; + public int getSerializedSize() { int size = memoizedSerializedSize; - if (size != -1) return size; + if (size != -1) + return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { @@ -1003,94 +1066,115 @@ public final class BatchInput { } private static final long serialVersionUID = 0L; + @java.lang.Override protected java.lang.Object writeReplace() - throws java.io.ObjectStreamException { + throws java.io.ObjectStreamException { return super.writeReplace(); } public static org.sonar.batch.protocol.input.BatchInput.ServerIssue parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static org.sonar.batch.protocol.input.BatchInput.ServerIssue parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static org.sonar.batch.protocol.input.BatchInput.ServerIssue parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static org.sonar.batch.protocol.input.BatchInput.ServerIssue parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static org.sonar.batch.protocol.input.BatchInput.ServerIssue parseFrom(java.io.InputStream input) - throws java.io.IOException { + throws java.io.IOException { return PARSER.parseFrom(input); } + public static org.sonar.batch.protocol.input.BatchInput.ServerIssue parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } + public static org.sonar.batch.protocol.input.BatchInput.ServerIssue parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { + throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } + public static org.sonar.batch.protocol.input.BatchInput.ServerIssue parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } + public static org.sonar.batch.protocol.input.BatchInput.ServerIssue parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { return PARSER.parseFrom(input); } + public static org.sonar.batch.protocol.input.BatchInput.ServerIssue parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return Builder.create(); + } + + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder(org.sonar.batch.protocol.input.BatchInput.ServerIssue prototype) { return newBuilder().mergeFrom(prototype); } - public Builder toBuilder() { return newBuilder(this); } + + public Builder toBuilder() { + return newBuilder(this); + } @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } + /** * Protobuf type {@code ServerIssue} */ public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder<Builder> - implements org.sonar.batch.protocol.input.BatchInput.ServerIssueOrBuilder { + com.google.protobuf.GeneratedMessage.Builder<Builder> implements + // @@protoc_insertion_point(builder_implements:ServerIssue) + org.sonar.batch.protocol.input.BatchInput.ServerIssueOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + getDescriptor() { return org.sonar.batch.protocol.input.BatchInput.internal_static_ServerIssue_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { + internalGetFieldAccessorTable() { return org.sonar.batch.protocol.input.BatchInput.internal_static_ServerIssue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.batch.protocol.input.BatchInput.ServerIssue.class, org.sonar.batch.protocol.input.BatchInput.ServerIssue.Builder.class); + .ensureFieldAccessorsInitialized( + org.sonar.batch.protocol.input.BatchInput.ServerIssue.class, org.sonar.batch.protocol.input.BatchInput.ServerIssue.Builder.class); } // Construct using org.sonar.batch.protocol.input.BatchInput.ServerIssue.newBuilder() @@ -1099,14 +1183,16 @@ public final class BatchInput { } private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } + private static Builder create() { return new Builder(); } @@ -1149,7 +1235,7 @@ public final class BatchInput { } public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { + getDescriptorForType() { return org.sonar.batch.protocol.input.BatchInput.internal_static_ServerIssue_descriptor; } @@ -1232,7 +1318,7 @@ public final class BatchInput { public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.sonar.batch.protocol.input.BatchInput.ServerIssue) { - return mergeFrom((org.sonar.batch.protocol.input.BatchInput.ServerIssue)other); + return mergeFrom((org.sonar.batch.protocol.input.BatchInput.ServerIssue) other); } else { super.mergeFrom(other); return this; @@ -1240,7 +1326,8 @@ public final class BatchInput { } public Builder mergeFrom(org.sonar.batch.protocol.input.BatchInput.ServerIssue other) { - if (other == org.sonar.batch.protocol.input.BatchInput.ServerIssue.getDefaultInstance()) return this; + if (other == org.sonar.batch.protocol.input.BatchInput.ServerIssue.getDefaultInstance()) + return this; if (other.hasKey()) { bitField0_ |= 0x00000001; key_ = other.key_; @@ -1312,9 +1399,9 @@ public final class BatchInput { } public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { org.sonar.batch.protocol.input.BatchInput.ServerIssue parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); @@ -1328,59 +1415,67 @@ public final class BatchInput { } return this; } + private int bitField0_; - // optional string key = 1; private java.lang.Object key_ = ""; + /** * <code>optional string key = 1;</code> */ public boolean hasKey() { return ((bitField0_ & 0x00000001) == 0x00000001); } + /** * <code>optional string key = 1;</code> */ public java.lang.String getKey() { java.lang.Object ref = key_; if (!(ref instanceof java.lang.String)) { - 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; } } + /** * <code>optional string key = 1;</code> */ public com.google.protobuf.ByteString - getKeyBytes() { + getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); key_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } + /** * <code>optional string key = 1;</code> */ public Builder setKey( - java.lang.String value) { + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; key_ = value; onChanged(); return this; } + /** * <code>optional string key = 1;</code> */ @@ -1390,71 +1485,79 @@ public final class BatchInput { onChanged(); return this; } + /** * <code>optional string key = 1;</code> */ public Builder setKeyBytes( - com.google.protobuf.ByteString value) { + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; key_ = value; onChanged(); return this; } - // optional string module_key = 2; private java.lang.Object moduleKey_ = ""; + /** * <code>optional string module_key = 2;</code> */ public boolean hasModuleKey() { return ((bitField0_ & 0x00000002) == 0x00000002); } + /** * <code>optional string module_key = 2;</code> */ public java.lang.String getModuleKey() { java.lang.Object ref = moduleKey_; if (!(ref instanceof java.lang.String)) { - 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; } } + /** * <code>optional string module_key = 2;</code> */ public com.google.protobuf.ByteString - getModuleKeyBytes() { + getModuleKeyBytes() { java.lang.Object ref = moduleKey_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); moduleKey_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } + /** * <code>optional string module_key = 2;</code> */ public Builder setModuleKey( - java.lang.String value) { + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; moduleKey_ = value; onChanged(); return this; } + /** * <code>optional string module_key = 2;</code> */ @@ -1464,71 +1567,79 @@ public final class BatchInput { onChanged(); return this; } + /** * <code>optional string module_key = 2;</code> */ public Builder setModuleKeyBytes( - com.google.protobuf.ByteString value) { + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; moduleKey_ = value; onChanged(); return this; } - // optional string path = 3; private java.lang.Object path_ = ""; + /** * <code>optional string path = 3;</code> */ public boolean hasPath() { return ((bitField0_ & 0x00000004) == 0x00000004); } + /** * <code>optional string path = 3;</code> */ public java.lang.String getPath() { java.lang.Object ref = path_; if (!(ref instanceof java.lang.String)) { - 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; } } + /** * <code>optional string path = 3;</code> */ public com.google.protobuf.ByteString - getPathBytes() { + getPathBytes() { java.lang.Object ref = path_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); path_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } + /** * <code>optional string path = 3;</code> */ public Builder setPath( - java.lang.String value) { + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; path_ = value; onChanged(); return this; } + /** * <code>optional string path = 3;</code> */ @@ -1538,71 +1649,79 @@ public final class BatchInput { onChanged(); return this; } + /** * <code>optional string path = 3;</code> */ public Builder setPathBytes( - com.google.protobuf.ByteString value) { + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; path_ = value; onChanged(); return this; } - // optional string rule_repository = 4; private java.lang.Object ruleRepository_ = ""; + /** * <code>optional string rule_repository = 4;</code> */ public boolean hasRuleRepository() { return ((bitField0_ & 0x00000008) == 0x00000008); } + /** * <code>optional string rule_repository = 4;</code> */ public java.lang.String getRuleRepository() { java.lang.Object ref = ruleRepository_; if (!(ref instanceof java.lang.String)) { - 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; } } + /** * <code>optional string rule_repository = 4;</code> */ public com.google.protobuf.ByteString - getRuleRepositoryBytes() { + getRuleRepositoryBytes() { java.lang.Object ref = ruleRepository_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); ruleRepository_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } + /** * <code>optional string rule_repository = 4;</code> */ public Builder setRuleRepository( - java.lang.String value) { + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; ruleRepository_ = value; onChanged(); return this; } + /** * <code>optional string rule_repository = 4;</code> */ @@ -1612,71 +1731,79 @@ public final class BatchInput { onChanged(); return this; } + /** * <code>optional string rule_repository = 4;</code> */ public Builder setRuleRepositoryBytes( - com.google.protobuf.ByteString value) { + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; ruleRepository_ = value; onChanged(); return this; } - // optional string rule_key = 5; private java.lang.Object ruleKey_ = ""; + /** * <code>optional string rule_key = 5;</code> */ public boolean hasRuleKey() { return ((bitField0_ & 0x00000010) == 0x00000010); } + /** * <code>optional string rule_key = 5;</code> */ public java.lang.String getRuleKey() { java.lang.Object ref = ruleKey_; if (!(ref instanceof java.lang.String)) { - 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; } } + /** * <code>optional string rule_key = 5;</code> */ public com.google.protobuf.ByteString - getRuleKeyBytes() { + getRuleKeyBytes() { java.lang.Object ref = ruleKey_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); ruleKey_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } + /** * <code>optional string rule_key = 5;</code> */ public Builder setRuleKey( - java.lang.String value) { + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; ruleKey_ = value; onChanged(); return this; } + /** * <code>optional string rule_key = 5;</code> */ @@ -1686,34 +1813,37 @@ public final class BatchInput { onChanged(); return this; } + /** * <code>optional string rule_key = 5;</code> */ public Builder setRuleKeyBytes( - com.google.protobuf.ByteString value) { + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; ruleKey_ = value; onChanged(); return this; } - // optional int32 line = 6; - private int line_ ; + private int line_; + /** * <code>optional int32 line = 6;</code> */ public boolean hasLine() { return ((bitField0_ & 0x00000020) == 0x00000020); } + /** * <code>optional int32 line = 6;</code> */ public int getLine() { return line_; } + /** * <code>optional int32 line = 6;</code> */ @@ -1723,6 +1853,7 @@ public final class BatchInput { onChanged(); return this; } + /** * <code>optional int32 line = 6;</code> */ @@ -1733,57 +1864,64 @@ public final class BatchInput { return this; } - // optional string msg = 7; private java.lang.Object msg_ = ""; + /** * <code>optional string msg = 7;</code> */ public boolean hasMsg() { return ((bitField0_ & 0x00000040) == 0x00000040); } + /** * <code>optional string msg = 7;</code> */ public java.lang.String getMsg() { java.lang.Object ref = msg_; if (!(ref instanceof java.lang.String)) { - 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; } } + /** * <code>optional string msg = 7;</code> */ public com.google.protobuf.ByteString - getMsgBytes() { + getMsgBytes() { java.lang.Object ref = msg_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); msg_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } + /** * <code>optional string msg = 7;</code> */ public Builder setMsg( - java.lang.String value) { + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000040; + throw new NullPointerException(); + } + bitField0_ |= 0x00000040; msg_ = value; onChanged(); return this; } + /** * <code>optional string msg = 7;</code> */ @@ -1793,34 +1931,37 @@ public final class BatchInput { onChanged(); return this; } + /** * <code>optional string msg = 7;</code> */ public Builder setMsgBytes( - com.google.protobuf.ByteString value) { + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000040; + throw new NullPointerException(); + } + bitField0_ |= 0x00000040; msg_ = value; onChanged(); return this; } - // optional .Severity severity = 8; private org.sonar.batch.protocol.Constants.Severity severity_ = org.sonar.batch.protocol.Constants.Severity.INFO; + /** * <code>optional .Severity severity = 8;</code> */ public boolean hasSeverity() { return ((bitField0_ & 0x00000080) == 0x00000080); } + /** * <code>optional .Severity severity = 8;</code> */ public org.sonar.batch.protocol.Constants.Severity getSeverity() { return severity_; } + /** * <code>optional .Severity severity = 8;</code> */ @@ -1833,6 +1974,7 @@ public final class BatchInput { onChanged(); return this; } + /** * <code>optional .Severity severity = 8;</code> */ @@ -1843,20 +1985,22 @@ public final class BatchInput { return this; } - // optional bool manual_severity = 9; - private boolean manualSeverity_ ; + private boolean manualSeverity_; + /** * <code>optional bool manual_severity = 9;</code> */ public boolean hasManualSeverity() { return ((bitField0_ & 0x00000100) == 0x00000100); } + /** * <code>optional bool manual_severity = 9;</code> */ public boolean getManualSeverity() { return manualSeverity_; } + /** * <code>optional bool manual_severity = 9;</code> */ @@ -1866,6 +2010,7 @@ public final class BatchInput { onChanged(); return this; } + /** * <code>optional bool manual_severity = 9;</code> */ @@ -1876,57 +2021,64 @@ public final class BatchInput { return this; } - // optional string resolution = 10; private java.lang.Object resolution_ = ""; + /** * <code>optional string resolution = 10;</code> */ public boolean hasResolution() { return ((bitField0_ & 0x00000200) == 0x00000200); } + /** * <code>optional string resolution = 10;</code> */ public java.lang.String getResolution() { java.lang.Object ref = resolution_; if (!(ref instanceof java.lang.String)) { - 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; } } + /** * <code>optional string resolution = 10;</code> */ public com.google.protobuf.ByteString - getResolutionBytes() { + getResolutionBytes() { java.lang.Object ref = resolution_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resolution_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } + /** * <code>optional string resolution = 10;</code> */ public Builder setResolution( - java.lang.String value) { + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000200; + throw new NullPointerException(); + } + bitField0_ |= 0x00000200; resolution_ = value; onChanged(); return this; } + /** * <code>optional string resolution = 10;</code> */ @@ -1936,71 +2088,79 @@ public final class BatchInput { onChanged(); return this; } + /** * <code>optional string resolution = 10;</code> */ public Builder setResolutionBytes( - com.google.protobuf.ByteString value) { + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000200; + throw new NullPointerException(); + } + bitField0_ |= 0x00000200; resolution_ = value; onChanged(); return this; } - // optional string status = 11; private java.lang.Object status_ = ""; + /** * <code>optional string status = 11;</code> */ public boolean hasStatus() { return ((bitField0_ & 0x00000400) == 0x00000400); } + /** * <code>optional string status = 11;</code> */ public java.lang.String getStatus() { java.lang.Object ref = status_; if (!(ref instanceof java.lang.String)) { - 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; } } + /** * <code>optional string status = 11;</code> */ public com.google.protobuf.ByteString - getStatusBytes() { + getStatusBytes() { java.lang.Object ref = status_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); status_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } + /** * <code>optional string status = 11;</code> */ public Builder setStatus( - java.lang.String value) { + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000400; + throw new NullPointerException(); + } + bitField0_ |= 0x00000400; status_ = value; onChanged(); return this; } + /** * <code>optional string status = 11;</code> */ @@ -2010,71 +2170,79 @@ public final class BatchInput { onChanged(); return this; } + /** * <code>optional string status = 11;</code> */ public Builder setStatusBytes( - com.google.protobuf.ByteString value) { + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000400; + throw new NullPointerException(); + } + bitField0_ |= 0x00000400; status_ = value; onChanged(); return this; } - // optional string checksum = 12; private java.lang.Object checksum_ = ""; + /** * <code>optional string checksum = 12;</code> */ public boolean hasChecksum() { return ((bitField0_ & 0x00000800) == 0x00000800); } + /** * <code>optional string checksum = 12;</code> */ public java.lang.String getChecksum() { java.lang.Object ref = checksum_; if (!(ref instanceof java.lang.String)) { - 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; } } + /** * <code>optional string checksum = 12;</code> */ public com.google.protobuf.ByteString - getChecksumBytes() { + getChecksumBytes() { java.lang.Object ref = checksum_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); checksum_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } + /** * <code>optional string checksum = 12;</code> */ public Builder setChecksum( - java.lang.String value) { + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000800; + throw new NullPointerException(); + } + bitField0_ |= 0x00000800; checksum_ = value; onChanged(); return this; } + /** * <code>optional string checksum = 12;</code> */ @@ -2084,71 +2252,79 @@ public final class BatchInput { onChanged(); return this; } + /** * <code>optional string checksum = 12;</code> */ public Builder setChecksumBytes( - com.google.protobuf.ByteString value) { + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000800; + throw new NullPointerException(); + } + bitField0_ |= 0x00000800; checksum_ = value; onChanged(); return this; } - // optional string assignee_login = 13; private java.lang.Object assigneeLogin_ = ""; + /** * <code>optional string assignee_login = 13;</code> */ public boolean hasAssigneeLogin() { return ((bitField0_ & 0x00001000) == 0x00001000); } + /** * <code>optional string assignee_login = 13;</code> */ public java.lang.String getAssigneeLogin() { java.lang.Object ref = assigneeLogin_; if (!(ref instanceof java.lang.String)) { - 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; } } + /** * <code>optional string assignee_login = 13;</code> */ public com.google.protobuf.ByteString - getAssigneeLoginBytes() { + getAssigneeLoginBytes() { java.lang.Object ref = assigneeLogin_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); assigneeLogin_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } + /** * <code>optional string assignee_login = 13;</code> */ public Builder setAssigneeLogin( - java.lang.String value) { + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00001000; + throw new NullPointerException(); + } + bitField0_ |= 0x00001000; assigneeLogin_ = value; onChanged(); return this; } + /** * <code>optional string assignee_login = 13;</code> */ @@ -2158,34 +2334,37 @@ public final class BatchInput { onChanged(); return this; } + /** * <code>optional string assignee_login = 13;</code> */ public Builder setAssigneeLoginBytes( - com.google.protobuf.ByteString value) { + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00001000; + throw new NullPointerException(); + } + bitField0_ |= 0x00001000; assigneeLogin_ = value; onChanged(); return this; } - // optional int64 creation_date = 14; - private long creationDate_ ; + private long creationDate_; + /** * <code>optional int64 creation_date = 14;</code> */ public boolean hasCreationDate() { return ((bitField0_ & 0x00002000) == 0x00002000); } + /** * <code>optional int64 creation_date = 14;</code> */ public long getCreationDate() { return creationDate_; } + /** * <code>optional int64 creation_date = 14;</code> */ @@ -2195,6 +2374,7 @@ public final class BatchInput { onChanged(); return this; } + /** * <code>optional int64 creation_date = 14;</code> */ @@ -2216,49 +2396,48 @@ public final class BatchInput { // @@protoc_insertion_point(class_scope:ServerIssue) } - private static com.google.protobuf.Descriptors.Descriptor - internal_static_ServerIssue_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_ServerIssue_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_ServerIssue_descriptor; + private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_ServerIssue_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { + getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n\021batch_input.proto\032\017constants.proto\"\235\002\n" + - "\013ServerIssue\022\013\n\003key\030\001 \001(\t\022\022\n\nmodule_key\030" + - "\002 \001(\t\022\014\n\004path\030\003 \001(\t\022\027\n\017rule_repository\030\004" + - " \001(\t\022\020\n\010rule_key\030\005 \001(\t\022\014\n\004line\030\006 \001(\005\022\013\n\003" + - "msg\030\007 \001(\t\022\033\n\010severity\030\010 \001(\0162\t.Severity\022\027" + - "\n\017manual_severity\030\t \001(\010\022\022\n\nresolution\030\n " + - "\001(\t\022\016\n\006status\030\013 \001(\t\022\020\n\010checksum\030\014 \001(\t\022\026\n" + - "\016assignee_login\030\r \001(\t\022\025\n\rcreation_date\030\016" + - " \001(\003B\"\n\036org.sonar.batch.protocol.inputH\001" + "\013ServerIssue\022\013\n\003key\030\001 \001(\t\022\022\n\nmodule_key\030" + + "\002 \001(\t\022\014\n\004path\030\003 \001(\t\022\027\n\017rule_repository\030\004" + + " \001(\t\022\020\n\010rule_key\030\005 \001(\t\022\014\n\004line\030\006 \001(\005\022\013\n\003" + + "msg\030\007 \001(\t\022\033\n\010severity\030\010 \001(\0162\t.Severity\022\027" + + "\n\017manual_severity\030\t \001(\010\022\022\n\nresolution\030\n " + + "\001(\t\022\016\n\006status\030\013 \001(\t\022\020\n\010checksum\030\014 \001(\t\022\026\n" + + "\016assignee_login\030\r \001(\t\022\025\n\rcreation_date\030\016" + + " \001(\003B\"\n\036org.sonar.batch.protocol.inputH\001" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { + 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; } }; com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - org.sonar.batch.protocol.Constants.getDescriptor(), + org.sonar.batch.protocol.Constants.getDescriptor(), }, assigner); + internal_static_ServerIssue_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_ServerIssue_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_ServerIssue_descriptor, + new java.lang.String[] {"Key", "ModuleKey", "Path", "RuleRepository", "RuleKey", "Line", "Msg", "Severity", "ManualSeverity", "Resolution", "Status", "Checksum", + "AssigneeLogin", "CreationDate",}); + org.sonar.batch.protocol.Constants.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/sonar-batch-protocol/src/main/gen-java/org/sonar/batch/protocol/output/BatchReport.java b/sonar-batch-protocol/src/main/gen-java/org/sonar/batch/protocol/output/BatchReport.java index c2d7821b918..7a41c5dbbc3 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 @@ -4,49 +4,53 @@ package org.sonar.batch.protocol.output; public final class BatchReport { - private BatchReport() {} + private BatchReport() { + } + public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { + com.google.protobuf.ExtensionRegistry registry) { } - public interface MetadataOrBuilder - extends com.google.protobuf.MessageOrBuilder { - // optional int64 analysis_date = 1; + public interface MetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:Metadata) + com.google.protobuf.MessageOrBuilder { + /** * <code>optional int64 analysis_date = 1;</code> */ boolean hasAnalysisDate(); + /** * <code>optional int64 analysis_date = 1;</code> */ long getAnalysisDate(); - // optional string project_key = 2; /** * <code>optional string project_key = 2;</code> */ boolean hasProjectKey(); + /** * <code>optional string project_key = 2;</code> */ java.lang.String getProjectKey(); + /** * <code>optional string project_key = 2;</code> */ com.google.protobuf.ByteString - getProjectKeyBytes(); + getProjectKeyBytes(); - // optional int32 root_component_ref = 3; /** * <code>optional int32 root_component_ref = 3;</code> */ boolean hasRootComponentRef(); + /** * <code>optional int32 root_component_ref = 3;</code> */ int getRootComponentRef(); - // optional int64 snapshot_id = 4; /** * <code>optional int64 snapshot_id = 4;</code> * @@ -55,6 +59,7 @@ public final class BatchReport { * </pre> */ boolean hasSnapshotId(); + /** * <code>optional int64 snapshot_id = 4;</code> * @@ -64,11 +69,11 @@ public final class BatchReport { */ long getSnapshotId(); - // optional int32 deleted_components_count = 5; /** * <code>optional int32 deleted_components_count = 5;</code> */ boolean hasDeletedComponentsCount(); + /** * <code>optional int32 deleted_components_count = 5;</code> */ @@ -78,16 +83,21 @@ 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); this.unknownFields = builder.getUnknownFields(); } - private Metadata(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + + private Metadata(boolean noInit) { + this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } private static final Metadata defaultInstance; + public static Metadata getDefaultInstance() { return defaultInstance; } @@ -97,19 +107,21 @@ public final class BatchReport { } private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + getUnknownFields() { return this.unknownFields; } + private Metadata( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); + com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { @@ -120,7 +132,7 @@ public final class BatchReport { break; default: { if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { + extensionRegistry, tag)) { done = true; } break; @@ -131,8 +143,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: { @@ -156,33 +169,34 @@ public final class BatchReport { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); + e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } + public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + getDescriptor() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Metadata_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { + internalGetFieldAccessorTable() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Metadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.batch.protocol.output.BatchReport.Metadata.class, org.sonar.batch.protocol.output.BatchReport.Metadata.Builder.class); + .ensureFieldAccessorsInitialized( + org.sonar.batch.protocol.output.BatchReport.Metadata.class, org.sonar.batch.protocol.output.BatchReport.Metadata.Builder.class); } public static com.google.protobuf.Parser<Metadata> PARSER = - new com.google.protobuf.AbstractParser<Metadata>() { - public Metadata parsePartialFrom( + new com.google.protobuf.AbstractParser<Metadata>() { + public Metadata parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Metadata(input, extensionRegistry); - } - }; + return new Metadata(input, extensionRegistry); + } + }; @java.lang.Override public com.google.protobuf.Parser<Metadata> getParserForType() { @@ -190,15 +204,16 @@ public final class BatchReport { } private int bitField0_; - // optional int64 analysis_date = 1; public static final int ANALYSIS_DATE_FIELD_NUMBER = 1; private long analysisDate_; + /** * <code>optional int64 analysis_date = 1;</code> */ public boolean hasAnalysisDate() { return ((bitField0_ & 0x00000001) == 0x00000001); } + /** * <code>optional int64 analysis_date = 1;</code> */ @@ -206,15 +221,16 @@ 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_; + /** * <code>optional string project_key = 2;</code> */ public boolean hasProjectKey() { return ((bitField0_ & 0x00000002) == 0x00000002); } + /** * <code>optional string project_key = 2;</code> */ @@ -223,8 +239,8 @@ public final class BatchReport { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { projectKey_ = s; @@ -232,16 +248,17 @@ public final class BatchReport { return s; } } + /** * <code>optional string project_key = 2;</code> */ public com.google.protobuf.ByteString - getProjectKeyBytes() { + getProjectKeyBytes() { java.lang.Object ref = projectKey_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectKey_ = b; return b; } else { @@ -249,15 +266,16 @@ public final class BatchReport { } } - // optional int32 root_component_ref = 3; public static final int ROOT_COMPONENT_REF_FIELD_NUMBER = 3; private int rootComponentRef_; + /** * <code>optional int32 root_component_ref = 3;</code> */ public boolean hasRootComponentRef() { return ((bitField0_ & 0x00000004) == 0x00000004); } + /** * <code>optional int32 root_component_ref = 3;</code> */ @@ -265,9 +283,9 @@ public final class BatchReport { return rootComponentRef_; } - // optional int64 snapshot_id = 4; public static final int SNAPSHOT_ID_FIELD_NUMBER = 4; private long snapshotId_; + /** * <code>optional int64 snapshot_id = 4;</code> * @@ -278,6 +296,7 @@ public final class BatchReport { public boolean hasSnapshotId() { return ((bitField0_ & 0x00000008) == 0x00000008); } + /** * <code>optional int64 snapshot_id = 4;</code> * @@ -289,15 +308,16 @@ 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_; + /** * <code>optional int32 deleted_components_count = 5;</code> */ public boolean hasDeletedComponentsCount() { return ((bitField0_ & 0x00000010) == 0x00000010); } + /** * <code>optional int32 deleted_components_count = 5;</code> */ @@ -312,17 +332,22 @@ public final class BatchReport { snapshotId_ = 0L; deletedComponentsCount_ = 0; } + 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; } public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt64(1, analysisDate_); @@ -343,9 +368,11 @@ public final class BatchReport { } private int memoizedSerializedSize = -1; + public int getSerializedSize() { int size = memoizedSerializedSize; - if (size != -1) return size; + if (size != -1) + return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { @@ -374,94 +401,115 @@ public final class BatchReport { } private static final long serialVersionUID = 0L; + @java.lang.Override protected java.lang.Object writeReplace() - throws java.io.ObjectStreamException { + throws java.io.ObjectStreamException { return super.writeReplace(); } public static org.sonar.batch.protocol.output.BatchReport.Metadata parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static org.sonar.batch.protocol.output.BatchReport.Metadata parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static org.sonar.batch.protocol.output.BatchReport.Metadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static org.sonar.batch.protocol.output.BatchReport.Metadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static org.sonar.batch.protocol.output.BatchReport.Metadata parseFrom(java.io.InputStream input) - throws java.io.IOException { + throws java.io.IOException { return PARSER.parseFrom(input); } + public static org.sonar.batch.protocol.output.BatchReport.Metadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } + public static org.sonar.batch.protocol.output.BatchReport.Metadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { + throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } + public static org.sonar.batch.protocol.output.BatchReport.Metadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } + public static org.sonar.batch.protocol.output.BatchReport.Metadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { return PARSER.parseFrom(input); } + public static org.sonar.batch.protocol.output.BatchReport.Metadata parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return Builder.create(); + } + + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder(org.sonar.batch.protocol.output.BatchReport.Metadata prototype) { return newBuilder().mergeFrom(prototype); } - public Builder toBuilder() { return newBuilder(this); } + + public Builder toBuilder() { + return newBuilder(this); + } @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } + /** * Protobuf type {@code Metadata} */ public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder<Builder> - implements org.sonar.batch.protocol.output.BatchReport.MetadataOrBuilder { + com.google.protobuf.GeneratedMessage.Builder<Builder> implements + // @@protoc_insertion_point(builder_implements:Metadata) + org.sonar.batch.protocol.output.BatchReport.MetadataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + getDescriptor() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Metadata_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { + internalGetFieldAccessorTable() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Metadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.batch.protocol.output.BatchReport.Metadata.class, org.sonar.batch.protocol.output.BatchReport.Metadata.Builder.class); + .ensureFieldAccessorsInitialized( + org.sonar.batch.protocol.output.BatchReport.Metadata.class, org.sonar.batch.protocol.output.BatchReport.Metadata.Builder.class); } // Construct using org.sonar.batch.protocol.output.BatchReport.Metadata.newBuilder() @@ -470,14 +518,16 @@ public final class BatchReport { } private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } + private static Builder create() { return new Builder(); } @@ -502,7 +552,7 @@ public final class BatchReport { } public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { + getDescriptorForType() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Metadata_descriptor; } @@ -549,7 +599,7 @@ public final class BatchReport { public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.sonar.batch.protocol.output.BatchReport.Metadata) { - return mergeFrom((org.sonar.batch.protocol.output.BatchReport.Metadata)other); + return mergeFrom((org.sonar.batch.protocol.output.BatchReport.Metadata) other); } else { super.mergeFrom(other); return this; @@ -557,7 +607,8 @@ public final class BatchReport { } public Builder mergeFrom(org.sonar.batch.protocol.output.BatchReport.Metadata other) { - if (other == org.sonar.batch.protocol.output.BatchReport.Metadata.getDefaultInstance()) return this; + if (other == org.sonar.batch.protocol.output.BatchReport.Metadata.getDefaultInstance()) + return this; if (other.hasAnalysisDate()) { setAnalysisDate(other.getAnalysisDate()); } @@ -584,9 +635,9 @@ public final class BatchReport { } public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { org.sonar.batch.protocol.output.BatchReport.Metadata parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); @@ -600,22 +651,25 @@ public final class BatchReport { } return this; } + private int bitField0_; - // optional int64 analysis_date = 1; - private long analysisDate_ ; + private long analysisDate_; + /** * <code>optional int64 analysis_date = 1;</code> */ public boolean hasAnalysisDate() { return ((bitField0_ & 0x00000001) == 0x00000001); } + /** * <code>optional int64 analysis_date = 1;</code> */ public long getAnalysisDate() { return analysisDate_; } + /** * <code>optional int64 analysis_date = 1;</code> */ @@ -625,6 +679,7 @@ public final class BatchReport { onChanged(); return this; } + /** * <code>optional int64 analysis_date = 1;</code> */ @@ -635,57 +690,64 @@ public final class BatchReport { return this; } - // optional string project_key = 2; private java.lang.Object projectKey_ = ""; + /** * <code>optional string project_key = 2;</code> */ public boolean hasProjectKey() { return ((bitField0_ & 0x00000002) == 0x00000002); } + /** * <code>optional string project_key = 2;</code> */ 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; } } + /** * <code>optional string project_key = 2;</code> */ public com.google.protobuf.ByteString - getProjectKeyBytes() { + getProjectKeyBytes() { java.lang.Object ref = projectKey_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectKey_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } + /** * <code>optional string project_key = 2;</code> */ public Builder setProjectKey( - java.lang.String value) { + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; projectKey_ = value; onChanged(); return this; } + /** * <code>optional string project_key = 2;</code> */ @@ -695,34 +757,37 @@ public final class BatchReport { onChanged(); return this; } + /** * <code>optional string project_key = 2;</code> */ public Builder setProjectKeyBytes( - com.google.protobuf.ByteString value) { + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; projectKey_ = value; onChanged(); return this; } - // optional int32 root_component_ref = 3; - private int rootComponentRef_ ; + private int rootComponentRef_; + /** * <code>optional int32 root_component_ref = 3;</code> */ public boolean hasRootComponentRef() { return ((bitField0_ & 0x00000004) == 0x00000004); } + /** * <code>optional int32 root_component_ref = 3;</code> */ public int getRootComponentRef() { return rootComponentRef_; } + /** * <code>optional int32 root_component_ref = 3;</code> */ @@ -732,6 +797,7 @@ public final class BatchReport { onChanged(); return this; } + /** * <code>optional int32 root_component_ref = 3;</code> */ @@ -742,8 +808,8 @@ public final class BatchReport { return this; } - // optional int64 snapshot_id = 4; - private long snapshotId_ ; + private long snapshotId_; + /** * <code>optional int64 snapshot_id = 4;</code> * @@ -754,6 +820,7 @@ public final class BatchReport { public boolean hasSnapshotId() { return ((bitField0_ & 0x00000008) == 0x00000008); } + /** * <code>optional int64 snapshot_id = 4;</code> * @@ -764,6 +831,7 @@ public final class BatchReport { public long getSnapshotId() { return snapshotId_; } + /** * <code>optional int64 snapshot_id = 4;</code> * @@ -777,6 +845,7 @@ public final class BatchReport { onChanged(); return this; } + /** * <code>optional int64 snapshot_id = 4;</code> * @@ -791,20 +860,22 @@ public final class BatchReport { return this; } - // optional int32 deleted_components_count = 5; - private int deletedComponentsCount_ ; + private int deletedComponentsCount_; + /** * <code>optional int32 deleted_components_count = 5;</code> */ public boolean hasDeletedComponentsCount() { return ((bitField0_ & 0x00000010) == 0x00000010); } + /** * <code>optional int32 deleted_components_count = 5;</code> */ public int getDeletedComponentsCount() { return deletedComponentsCount_; } + /** * <code>optional int32 deleted_components_count = 5;</code> */ @@ -814,6 +885,7 @@ public final class BatchReport { onChanged(); return this; } + /** * <code>optional int32 deleted_components_count = 5;</code> */ @@ -835,99 +907,749 @@ public final class BatchReport { // @@protoc_insertion_point(class_scope:Metadata) } - public interface ComponentOrBuilder - extends com.google.protobuf.MessageOrBuilder { + public interface ComponentLinkOrBuilder extends + // @@protoc_insertion_point(interface_extends:ComponentLink) + com.google.protobuf.MessageOrBuilder { + + /** + * <code>optional .ComponentLinkType type = 1;</code> + */ + boolean hasType(); + + /** + * <code>optional .ComponentLinkType type = 1;</code> + */ + org.sonar.batch.protocol.Constants.ComponentLinkType getType(); + + /** + * <code>optional string href = 2;</code> + */ + boolean hasHref(); + + /** + * <code>optional string href = 2;</code> + */ + java.lang.String getHref(); + + /** + * <code>optional string href = 2;</code> + */ + com.google.protobuf.ByteString + getHrefBytes(); + } + /** + * Protobuf type {@code ComponentLink} + */ + public static final class ComponentLink extends + 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); + this.unknownFields = builder.getUnknownFields(); + } + + private ComponentLink(boolean noInit) { + this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + + private static final ComponentLink defaultInstance; + + public static ComponentLink getDefaultInstance() { + return defaultInstance; + } + + public ComponentLink getDefaultInstanceForType() { + return defaultInstance; + } + + private final com.google.protobuf.UnknownFieldSet unknownFields; + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + + private ComponentLink( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + int rawValue = input.readEnum(); + org.sonar.batch.protocol.Constants.ComponentLinkType value = org.sonar.batch.protocol.Constants.ComponentLinkType.valueOf(rawValue); + if (value == null) { + unknownFields.mergeVarintField(1, rawValue); + } else { + bitField0_ |= 0x00000001; + type_ = value; + } + break; + } + case 18: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000002; + href_ = bs; + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.sonar.batch.protocol.output.BatchReport.internal_static_ComponentLink_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.sonar.batch.protocol.output.BatchReport.internal_static_ComponentLink_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.sonar.batch.protocol.output.BatchReport.ComponentLink.class, org.sonar.batch.protocol.output.BatchReport.ComponentLink.Builder.class); + } + + public static com.google.protobuf.Parser<ComponentLink> PARSER = + new com.google.protobuf.AbstractParser<ComponentLink>() { + public ComponentLink parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ComponentLink(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser<ComponentLink> getParserForType() { + return PARSER; + } + + private int bitField0_; + public static final int TYPE_FIELD_NUMBER = 1; + private org.sonar.batch.protocol.Constants.ComponentLinkType type_; + + /** + * <code>optional .ComponentLinkType type = 1;</code> + */ + public boolean hasType() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + + /** + * <code>optional .ComponentLinkType type = 1;</code> + */ + public org.sonar.batch.protocol.Constants.ComponentLinkType getType() { + return type_; + } + + public static final int HREF_FIELD_NUMBER = 2; + private java.lang.Object href_; + + /** + * <code>optional string href = 2;</code> + */ + public boolean hasHref() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + + /** + * <code>optional string href = 2;</code> + */ + public java.lang.String getHref() { + java.lang.Object ref = href_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + href_ = s; + } + return s; + } + } + + /** + * <code>optional string href = 2;</code> + */ + public com.google.protobuf.ByteString + getHrefBytes() { + java.lang.Object ref = href_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + href_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private void initFields() { + type_ = org.sonar.batch.protocol.Constants.ComponentLinkType.HOME; + href_ = ""; + } + + private byte memoizedIsInitialized = -1; + + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeEnum(1, type_.getNumber()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeBytes(2, getHrefBytes()); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) + return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, type_.getNumber()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, getHrefBytes()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static org.sonar.batch.protocol.output.BatchReport.ComponentLink parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.sonar.batch.protocol.output.BatchReport.ComponentLink parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.sonar.batch.protocol.output.BatchReport.ComponentLink parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.sonar.batch.protocol.output.BatchReport.ComponentLink parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.sonar.batch.protocol.output.BatchReport.ComponentLink parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + + public static org.sonar.batch.protocol.output.BatchReport.ComponentLink parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public static org.sonar.batch.protocol.output.BatchReport.ComponentLink parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + + public static org.sonar.batch.protocol.output.BatchReport.ComponentLink parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + + public static org.sonar.batch.protocol.output.BatchReport.ComponentLink parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + + public static org.sonar.batch.protocol.output.BatchReport.ComponentLink parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public static Builder newBuilder() { + return Builder.create(); + } + + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder(org.sonar.batch.protocol.output.BatchReport.ComponentLink prototype) { + return newBuilder().mergeFrom(prototype); + } + + public Builder toBuilder() { + return newBuilder(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * Protobuf type {@code ComponentLink} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder<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; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.sonar.batch.protocol.output.BatchReport.internal_static_ComponentLink_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.sonar.batch.protocol.output.BatchReport.ComponentLink.class, org.sonar.batch.protocol.output.BatchReport.ComponentLink.Builder.class); + } + + // Construct using org.sonar.batch.protocol.output.BatchReport.ComponentLink.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + type_ = org.sonar.batch.protocol.Constants.ComponentLinkType.HOME; + bitField0_ = (bitField0_ & ~0x00000001); + href_ = ""; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.sonar.batch.protocol.output.BatchReport.internal_static_ComponentLink_descriptor; + } + + public org.sonar.batch.protocol.output.BatchReport.ComponentLink getDefaultInstanceForType() { + return org.sonar.batch.protocol.output.BatchReport.ComponentLink.getDefaultInstance(); + } + + public org.sonar.batch.protocol.output.BatchReport.ComponentLink build() { + org.sonar.batch.protocol.output.BatchReport.ComponentLink result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.sonar.batch.protocol.output.BatchReport.ComponentLink buildPartial() { + org.sonar.batch.protocol.output.BatchReport.ComponentLink result = new org.sonar.batch.protocol.output.BatchReport.ComponentLink(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.type_ = type_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.href_ = href_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.sonar.batch.protocol.output.BatchReport.ComponentLink) { + return mergeFrom((org.sonar.batch.protocol.output.BatchReport.ComponentLink) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.sonar.batch.protocol.output.BatchReport.ComponentLink other) { + if (other == org.sonar.batch.protocol.output.BatchReport.ComponentLink.getDefaultInstance()) + return this; + if (other.hasType()) { + setType(other.getType()); + } + if (other.hasHref()) { + bitField0_ |= 0x00000002; + href_ = other.href_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.sonar.batch.protocol.output.BatchReport.ComponentLink parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.sonar.batch.protocol.output.BatchReport.ComponentLink) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private org.sonar.batch.protocol.Constants.ComponentLinkType type_ = org.sonar.batch.protocol.Constants.ComponentLinkType.HOME; + + /** + * <code>optional .ComponentLinkType type = 1;</code> + */ + public boolean hasType() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + + /** + * <code>optional .ComponentLinkType type = 1;</code> + */ + public org.sonar.batch.protocol.Constants.ComponentLinkType getType() { + return type_; + } + + /** + * <code>optional .ComponentLinkType type = 1;</code> + */ + public Builder setType(org.sonar.batch.protocol.Constants.ComponentLinkType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + type_ = value; + onChanged(); + return this; + } + + /** + * <code>optional .ComponentLinkType type = 1;</code> + */ + public Builder clearType() { + bitField0_ = (bitField0_ & ~0x00000001); + type_ = org.sonar.batch.protocol.Constants.ComponentLinkType.HOME; + onChanged(); + return this; + } + + private java.lang.Object href_ = ""; + + /** + * <code>optional string href = 2;</code> + */ + public boolean hasHref() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + + /** + * <code>optional string href = 2;</code> + */ + public java.lang.String getHref() { + java.lang.Object ref = href_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + href_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * <code>optional string href = 2;</code> + */ + public com.google.protobuf.ByteString + getHrefBytes() { + java.lang.Object ref = href_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + href_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * <code>optional string href = 2;</code> + */ + public Builder setHref( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + href_ = value; + onChanged(); + return this; + } + + /** + * <code>optional string href = 2;</code> + */ + public Builder clearHref() { + bitField0_ = (bitField0_ & ~0x00000002); + href_ = getDefaultInstance().getHref(); + onChanged(); + return this; + } + + /** + * <code>optional string href = 2;</code> + */ + public Builder setHrefBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + href_ = value; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:ComponentLink) + } + + static { + defaultInstance = new ComponentLink(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:ComponentLink) + } + + public interface ComponentOrBuilder extends + // @@protoc_insertion_point(interface_extends:Component) + com.google.protobuf.MessageOrBuilder { - // optional int32 ref = 1; /** * <code>optional int32 ref = 1;</code> */ boolean hasRef(); + /** * <code>optional int32 ref = 1;</code> */ int getRef(); - // optional string path = 2; /** * <code>optional string path = 2;</code> */ boolean hasPath(); + /** * <code>optional string path = 2;</code> */ java.lang.String getPath(); + /** * <code>optional string path = 2;</code> */ com.google.protobuf.ByteString - getPathBytes(); + getPathBytes(); - // optional string name = 3; /** * <code>optional string name = 3;</code> */ boolean hasName(); + /** * <code>optional string name = 3;</code> */ java.lang.String getName(); + /** * <code>optional string name = 3;</code> */ com.google.protobuf.ByteString - getNameBytes(); + getNameBytes(); - // optional .ComponentType type = 4; /** * <code>optional .ComponentType type = 4;</code> */ boolean hasType(); + /** * <code>optional .ComponentType type = 4;</code> */ org.sonar.batch.protocol.Constants.ComponentType getType(); - // optional bool is_test = 5; /** * <code>optional bool is_test = 5;</code> */ boolean hasIsTest(); + /** * <code>optional bool is_test = 5;</code> */ boolean getIsTest(); - // optional string language = 6; /** * <code>optional string language = 6;</code> */ boolean hasLanguage(); + /** * <code>optional string language = 6;</code> */ java.lang.String getLanguage(); + /** * <code>optional string language = 6;</code> */ com.google.protobuf.ByteString - getLanguageBytes(); + getLanguageBytes(); - // repeated int32 child_refs = 7 [packed = true]; /** * <code>repeated int32 child_refs = 7 [packed = true];</code> */ java.util.List<java.lang.Integer> getChildRefsList(); + /** * <code>repeated int32 child_refs = 7 [packed = true];</code> */ int getChildRefsCount(); + /** * <code>repeated int32 child_refs = 7 [packed = true];</code> */ int getChildRefs(int index); - // optional int32 snapshot_id = 8; + /** + * <code>repeated .ComponentLink links = 10;</code> + */ + java.util.List<org.sonar.batch.protocol.output.BatchReport.ComponentLink> + getLinksList(); + + /** + * <code>repeated .ComponentLink links = 10;</code> + */ + org.sonar.batch.protocol.output.BatchReport.ComponentLink getLinks(int index); + + /** + * <code>repeated .ComponentLink links = 10;</code> + */ + int getLinksCount(); + + /** + * <code>repeated .ComponentLink links = 10;</code> + */ + java.util.List<? extends org.sonar.batch.protocol.output.BatchReport.ComponentLinkOrBuilder> + getLinksOrBuilderList(); + + /** + * <code>repeated .ComponentLink links = 10;</code> + */ + org.sonar.batch.protocol.output.BatchReport.ComponentLinkOrBuilder getLinksOrBuilder( + int index); + /** * <code>optional int32 snapshot_id = 8;</code> * @@ -936,6 +1658,7 @@ public final class BatchReport { * </pre> */ boolean hasSnapshotId(); + /** * <code>optional int32 snapshot_id = 8;</code> * @@ -945,35 +1668,41 @@ public final class BatchReport { */ int getSnapshotId(); - // optional string uuid = 9; /** * <code>optional string uuid = 9;</code> */ boolean hasUuid(); + /** * <code>optional string uuid = 9;</code> */ java.lang.String getUuid(); + /** * <code>optional string uuid = 9;</code> */ com.google.protobuf.ByteString - getUuidBytes(); + getUuidBytes(); } /** * 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); this.unknownFields = builder.getUnknownFields(); } - private Component(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + + private Component(boolean noInit) { + this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } private static final Component defaultInstance; + public static Component getDefaultInstance() { return defaultInstance; } @@ -983,19 +1712,21 @@ public final class BatchReport { } private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + getUnknownFields() { return this.unknownFields; } + private Component( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); + com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { @@ -1006,7 +1737,7 @@ public final class BatchReport { break; default: { if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { + extensionRegistry, tag)) { done = true; } break; @@ -1017,13 +1748,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: { @@ -1043,8 +1776,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: { @@ -1074,8 +1808,17 @@ public final class BatchReport { break; } case 74: { + com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000080; - uuid_ = input.readBytes(); + uuid_ = bs; + break; + } + case 82: { + if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) { + links_ = new java.util.ArrayList<org.sonar.batch.protocol.output.BatchReport.ComponentLink>(); + mutable_bitField0_ |= 0x00000080; + } + links_.add(input.readMessage(org.sonar.batch.protocol.output.BatchReport.ComponentLink.PARSER, extensionRegistry)); break; } } @@ -1084,36 +1827,40 @@ public final class BatchReport { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); + e.getMessage()).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) { childRefs_ = java.util.Collections.unmodifiableList(childRefs_); } + if (((mutable_bitField0_ & 0x00000080) == 0x00000080)) { + links_ = java.util.Collections.unmodifiableList(links_); + } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } + public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + getDescriptor() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Component_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { + internalGetFieldAccessorTable() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Component_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.batch.protocol.output.BatchReport.Component.class, org.sonar.batch.protocol.output.BatchReport.Component.Builder.class); + .ensureFieldAccessorsInitialized( + org.sonar.batch.protocol.output.BatchReport.Component.class, org.sonar.batch.protocol.output.BatchReport.Component.Builder.class); } public static com.google.protobuf.Parser<Component> PARSER = - new com.google.protobuf.AbstractParser<Component>() { - public Component parsePartialFrom( + new com.google.protobuf.AbstractParser<Component>() { + public Component parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Component(input, extensionRegistry); - } - }; + return new Component(input, extensionRegistry); + } + }; @java.lang.Override public com.google.protobuf.Parser<Component> getParserForType() { @@ -1121,15 +1868,16 @@ public final class BatchReport { } private int bitField0_; - // optional int32 ref = 1; public static final int REF_FIELD_NUMBER = 1; private int ref_; + /** * <code>optional int32 ref = 1;</code> */ public boolean hasRef() { return ((bitField0_ & 0x00000001) == 0x00000001); } + /** * <code>optional int32 ref = 1;</code> */ @@ -1137,15 +1885,16 @@ public final class BatchReport { return ref_; } - // optional string path = 2; public static final int PATH_FIELD_NUMBER = 2; private java.lang.Object path_; + /** * <code>optional string path = 2;</code> */ public boolean hasPath() { return ((bitField0_ & 0x00000002) == 0x00000002); } + /** * <code>optional string path = 2;</code> */ @@ -1154,8 +1903,8 @@ public final class BatchReport { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { path_ = s; @@ -1163,16 +1912,17 @@ public final class BatchReport { return s; } } + /** * <code>optional string path = 2;</code> */ public com.google.protobuf.ByteString - getPathBytes() { + getPathBytes() { java.lang.Object ref = path_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); path_ = b; return b; } else { @@ -1180,15 +1930,16 @@ public final class BatchReport { } } - // optional string name = 3; public static final int NAME_FIELD_NUMBER = 3; private java.lang.Object name_; + /** * <code>optional string name = 3;</code> */ public boolean hasName() { return ((bitField0_ & 0x00000004) == 0x00000004); } + /** * <code>optional string name = 3;</code> */ @@ -1197,8 +1948,8 @@ public final class BatchReport { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { name_ = s; @@ -1206,16 +1957,17 @@ public final class BatchReport { return s; } } + /** * <code>optional string name = 3;</code> */ public com.google.protobuf.ByteString - getNameBytes() { + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1223,15 +1975,16 @@ public final class BatchReport { } } - // optional .ComponentType type = 4; public static final int TYPE_FIELD_NUMBER = 4; private org.sonar.batch.protocol.Constants.ComponentType type_; + /** * <code>optional .ComponentType type = 4;</code> */ public boolean hasType() { return ((bitField0_ & 0x00000008) == 0x00000008); } + /** * <code>optional .ComponentType type = 4;</code> */ @@ -1239,15 +1992,16 @@ public final class BatchReport { return type_; } - // optional bool is_test = 5; public static final int IS_TEST_FIELD_NUMBER = 5; private boolean isTest_; + /** * <code>optional bool is_test = 5;</code> */ public boolean hasIsTest() { return ((bitField0_ & 0x00000010) == 0x00000010); } + /** * <code>optional bool is_test = 5;</code> */ @@ -1255,15 +2009,16 @@ public final class BatchReport { return isTest_; } - // optional string language = 6; public static final int LANGUAGE_FIELD_NUMBER = 6; private java.lang.Object language_; + /** * <code>optional string language = 6;</code> */ public boolean hasLanguage() { return ((bitField0_ & 0x00000020) == 0x00000020); } + /** * <code>optional string language = 6;</code> */ @@ -1272,8 +2027,8 @@ public final class BatchReport { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { language_ = s; @@ -1281,16 +2036,17 @@ public final class BatchReport { return s; } } + /** * <code>optional string language = 6;</code> */ public com.google.protobuf.ByteString - getLanguageBytes() { + getLanguageBytes() { java.lang.Object ref = language_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); language_ = b; return b; } else { @@ -1298,33 +2054,76 @@ public final class BatchReport { } } - // repeated int32 child_refs = 7 [packed = true]; public static final int CHILD_REFS_FIELD_NUMBER = 7; private java.util.List<java.lang.Integer> childRefs_; + /** * <code>repeated int32 child_refs = 7 [packed = true];</code> */ public java.util.List<java.lang.Integer> - getChildRefsList() { + getChildRefsList() { return childRefs_; } + /** * <code>repeated int32 child_refs = 7 [packed = true];</code> */ public int getChildRefsCount() { return childRefs_.size(); } + /** * <code>repeated int32 child_refs = 7 [packed = true];</code> */ public int getChildRefs(int index) { return childRefs_.get(index); } + private int childRefsMemoizedSerializedSize = -1; - // optional int32 snapshot_id = 8; + public static final int LINKS_FIELD_NUMBER = 10; + private java.util.List<org.sonar.batch.protocol.output.BatchReport.ComponentLink> links_; + + /** + * <code>repeated .ComponentLink links = 10;</code> + */ + public java.util.List<org.sonar.batch.protocol.output.BatchReport.ComponentLink> getLinksList() { + return links_; + } + + /** + * <code>repeated .ComponentLink links = 10;</code> + */ + public java.util.List<? extends org.sonar.batch.protocol.output.BatchReport.ComponentLinkOrBuilder> + getLinksOrBuilderList() { + return links_; + } + + /** + * <code>repeated .ComponentLink links = 10;</code> + */ + public int getLinksCount() { + return links_.size(); + } + + /** + * <code>repeated .ComponentLink links = 10;</code> + */ + public org.sonar.batch.protocol.output.BatchReport.ComponentLink getLinks(int index) { + return links_.get(index); + } + + /** + * <code>repeated .ComponentLink links = 10;</code> + */ + public org.sonar.batch.protocol.output.BatchReport.ComponentLinkOrBuilder getLinksOrBuilder( + int index) { + return links_.get(index); + } + public static final int SNAPSHOT_ID_FIELD_NUMBER = 8; private int snapshotId_; + /** * <code>optional int32 snapshot_id = 8;</code> * @@ -1335,6 +2134,7 @@ public final class BatchReport { public boolean hasSnapshotId() { return ((bitField0_ & 0x00000040) == 0x00000040); } + /** * <code>optional int32 snapshot_id = 8;</code> * @@ -1346,15 +2146,16 @@ public final class BatchReport { return snapshotId_; } - // optional string uuid = 9; public static final int UUID_FIELD_NUMBER = 9; private java.lang.Object uuid_; + /** * <code>optional string uuid = 9;</code> */ public boolean hasUuid() { return ((bitField0_ & 0x00000080) == 0x00000080); } + /** * <code>optional string uuid = 9;</code> */ @@ -1363,8 +2164,8 @@ public final class BatchReport { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { uuid_ = s; @@ -1372,16 +2173,17 @@ public final class BatchReport { return s; } } + /** * <code>optional string uuid = 9;</code> */ public com.google.protobuf.ByteString - getUuidBytes() { + getUuidBytes() { java.lang.Object ref = uuid_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uuid_ = b; return b; } else { @@ -1397,20 +2199,26 @@ public final class BatchReport { isTest_ = false; language_ = ""; childRefs_ = java.util.Collections.emptyList(); + links_ = java.util.Collections.emptyList(); snapshotId_ = 0; uuid_ = ""; } + 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; } public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt32(1, ref_); @@ -1443,13 +2251,18 @@ public final class BatchReport { if (((bitField0_ & 0x00000080) == 0x00000080)) { output.writeBytes(9, getUuidBytes()); } + for (int i = 0; i < links_.size(); i++) { + output.writeMessage(10, links_.get(i)); + } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; + public int getSerializedSize() { int size = memoizedSerializedSize; - if (size != -1) return size; + if (size != -1) + return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { @@ -1486,7 +2299,7 @@ public final class BatchReport { if (!getChildRefsList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); + .computeInt32SizeNoTag(dataSize); } childRefsMemoizedSerializedSize = dataSize; } @@ -1498,100 +2311,125 @@ public final class BatchReport { size += com.google.protobuf.CodedOutputStream .computeBytesSize(9, getUuidBytes()); } + for (int i = 0; i < links_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, links_.get(i)); + } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; + @java.lang.Override protected java.lang.Object writeReplace() - throws java.io.ObjectStreamException { + throws java.io.ObjectStreamException { return super.writeReplace(); } public static org.sonar.batch.protocol.output.BatchReport.Component parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static org.sonar.batch.protocol.output.BatchReport.Component parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static org.sonar.batch.protocol.output.BatchReport.Component parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static org.sonar.batch.protocol.output.BatchReport.Component parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static org.sonar.batch.protocol.output.BatchReport.Component parseFrom(java.io.InputStream input) - throws java.io.IOException { + throws java.io.IOException { return PARSER.parseFrom(input); } + public static org.sonar.batch.protocol.output.BatchReport.Component parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } + public static org.sonar.batch.protocol.output.BatchReport.Component parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { + throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } + public static org.sonar.batch.protocol.output.BatchReport.Component parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } + public static org.sonar.batch.protocol.output.BatchReport.Component parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { return PARSER.parseFrom(input); } + public static org.sonar.batch.protocol.output.BatchReport.Component parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return Builder.create(); + } + + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder(org.sonar.batch.protocol.output.BatchReport.Component prototype) { return newBuilder().mergeFrom(prototype); } - public Builder toBuilder() { return newBuilder(this); } + + public Builder toBuilder() { + return newBuilder(this); + } @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } + /** * Protobuf type {@code Component} */ public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder<Builder> - implements org.sonar.batch.protocol.output.BatchReport.ComponentOrBuilder { + com.google.protobuf.GeneratedMessage.Builder<Builder> implements + // @@protoc_insertion_point(builder_implements:Component) + org.sonar.batch.protocol.output.BatchReport.ComponentOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + getDescriptor() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Component_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { + internalGetFieldAccessorTable() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Component_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.batch.protocol.output.BatchReport.Component.class, org.sonar.batch.protocol.output.BatchReport.Component.Builder.class); + .ensureFieldAccessorsInitialized( + org.sonar.batch.protocol.output.BatchReport.Component.class, org.sonar.batch.protocol.output.BatchReport.Component.Builder.class); } // Construct using org.sonar.batch.protocol.output.BatchReport.Component.newBuilder() @@ -1600,14 +2438,17 @@ public final class BatchReport { } private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + getLinksFieldBuilder(); } } + private static Builder create() { return new Builder(); } @@ -1628,10 +2469,16 @@ public final class BatchReport { bitField0_ = (bitField0_ & ~0x00000020); childRefs_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); + if (linksBuilder_ == null) { + links_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + } else { + linksBuilder_.clear(); + } snapshotId_ = 0; - bitField0_ = (bitField0_ & ~0x00000080); - uuid_ = ""; bitField0_ = (bitField0_ & ~0x00000100); + uuid_ = ""; + bitField0_ = (bitField0_ & ~0x00000200); return this; } @@ -1640,7 +2487,7 @@ public final class BatchReport { } public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { + getDescriptorForType() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Component_descriptor; } @@ -1689,11 +2536,20 @@ public final class BatchReport { bitField0_ = (bitField0_ & ~0x00000040); } result.childRefs_ = childRefs_; - if (((from_bitField0_ & 0x00000080) == 0x00000080)) { + if (linksBuilder_ == null) { + if (((bitField0_ & 0x00000080) == 0x00000080)) { + links_ = java.util.Collections.unmodifiableList(links_); + bitField0_ = (bitField0_ & ~0x00000080); + } + result.links_ = links_; + } else { + result.links_ = linksBuilder_.build(); + } + if (((from_bitField0_ & 0x00000100) == 0x00000100)) { to_bitField0_ |= 0x00000040; } result.snapshotId_ = snapshotId_; - if (((from_bitField0_ & 0x00000100) == 0x00000100)) { + if (((from_bitField0_ & 0x00000200) == 0x00000200)) { to_bitField0_ |= 0x00000080; } result.uuid_ = uuid_; @@ -1704,7 +2560,7 @@ public final class BatchReport { public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.sonar.batch.protocol.output.BatchReport.Component) { - return mergeFrom((org.sonar.batch.protocol.output.BatchReport.Component)other); + return mergeFrom((org.sonar.batch.protocol.output.BatchReport.Component) other); } else { super.mergeFrom(other); return this; @@ -1712,7 +2568,8 @@ public final class BatchReport { } public Builder mergeFrom(org.sonar.batch.protocol.output.BatchReport.Component other) { - if (other == org.sonar.batch.protocol.output.BatchReport.Component.getDefaultInstance()) return this; + if (other == org.sonar.batch.protocol.output.BatchReport.Component.getDefaultInstance()) + return this; if (other.hasRef()) { setRef(other.getRef()); } @@ -1747,11 +2604,37 @@ public final class BatchReport { } onChanged(); } + if (linksBuilder_ == null) { + if (!other.links_.isEmpty()) { + if (links_.isEmpty()) { + links_ = other.links_; + bitField0_ = (bitField0_ & ~0x00000080); + } else { + ensureLinksIsMutable(); + links_.addAll(other.links_); + } + onChanged(); + } + } else { + if (!other.links_.isEmpty()) { + if (linksBuilder_.isEmpty()) { + linksBuilder_.dispose(); + linksBuilder_ = null; + links_ = other.links_; + bitField0_ = (bitField0_ & ~0x00000080); + linksBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getLinksFieldBuilder() : null; + } else { + linksBuilder_.addAllMessages(other.links_); + } + } + } if (other.hasSnapshotId()) { setSnapshotId(other.getSnapshotId()); } if (other.hasUuid()) { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; uuid_ = other.uuid_; onChanged(); } @@ -1764,9 +2647,9 @@ public final class BatchReport { } public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { org.sonar.batch.protocol.output.BatchReport.Component parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); @@ -1780,22 +2663,25 @@ public final class BatchReport { } return this; } + private int bitField0_; - // optional int32 ref = 1; - private int ref_ ; + private int ref_; + /** * <code>optional int32 ref = 1;</code> */ public boolean hasRef() { return ((bitField0_ & 0x00000001) == 0x00000001); } + /** * <code>optional int32 ref = 1;</code> */ public int getRef() { return ref_; } + /** * <code>optional int32 ref = 1;</code> */ @@ -1805,6 +2691,7 @@ public final class BatchReport { onChanged(); return this; } + /** * <code>optional int32 ref = 1;</code> */ @@ -1815,57 +2702,64 @@ public final class BatchReport { return this; } - // optional string path = 2; private java.lang.Object path_ = ""; + /** * <code>optional string path = 2;</code> */ public boolean hasPath() { return ((bitField0_ & 0x00000002) == 0x00000002); } + /** * <code>optional string path = 2;</code> */ 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; } } + /** * <code>optional string path = 2;</code> */ public com.google.protobuf.ByteString - getPathBytes() { + getPathBytes() { java.lang.Object ref = path_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); path_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } + /** * <code>optional string path = 2;</code> */ public Builder setPath( - java.lang.String value) { + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; path_ = value; onChanged(); return this; } + /** * <code>optional string path = 2;</code> */ @@ -1875,71 +2769,79 @@ public final class BatchReport { onChanged(); return this; } + /** * <code>optional string path = 2;</code> */ public Builder setPathBytes( - com.google.protobuf.ByteString value) { + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; path_ = value; onChanged(); return this; } - // optional string name = 3; private java.lang.Object name_ = ""; + /** * <code>optional string name = 3;</code> */ public boolean hasName() { return ((bitField0_ & 0x00000004) == 0x00000004); } + /** * <code>optional string name = 3;</code> */ 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; } } + /** * <code>optional string name = 3;</code> */ public com.google.protobuf.ByteString - getNameBytes() { + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } + /** * <code>optional string name = 3;</code> */ public Builder setName( - java.lang.String value) { + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; name_ = value; onChanged(); return this; } + /** * <code>optional string name = 3;</code> */ @@ -1949,34 +2851,37 @@ public final class BatchReport { onChanged(); return this; } + /** * <code>optional string name = 3;</code> */ public Builder setNameBytes( - com.google.protobuf.ByteString value) { + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; name_ = value; onChanged(); return this; } - // optional .ComponentType type = 4; private org.sonar.batch.protocol.Constants.ComponentType type_ = org.sonar.batch.protocol.Constants.ComponentType.PROJECT; + /** * <code>optional .ComponentType type = 4;</code> */ public boolean hasType() { return ((bitField0_ & 0x00000008) == 0x00000008); } + /** * <code>optional .ComponentType type = 4;</code> */ public org.sonar.batch.protocol.Constants.ComponentType getType() { return type_; } + /** * <code>optional .ComponentType type = 4;</code> */ @@ -1989,6 +2894,7 @@ public final class BatchReport { onChanged(); return this; } + /** * <code>optional .ComponentType type = 4;</code> */ @@ -1999,20 +2905,22 @@ public final class BatchReport { return this; } - // optional bool is_test = 5; - private boolean isTest_ ; + private boolean isTest_; + /** * <code>optional bool is_test = 5;</code> */ public boolean hasIsTest() { return ((bitField0_ & 0x00000010) == 0x00000010); } + /** * <code>optional bool is_test = 5;</code> */ public boolean getIsTest() { return isTest_; } + /** * <code>optional bool is_test = 5;</code> */ @@ -2022,6 +2930,7 @@ public final class BatchReport { onChanged(); return this; } + /** * <code>optional bool is_test = 5;</code> */ @@ -2032,57 +2941,64 @@ public final class BatchReport { return this; } - // optional string language = 6; private java.lang.Object language_ = ""; + /** * <code>optional string language = 6;</code> */ public boolean hasLanguage() { return ((bitField0_ & 0x00000020) == 0x00000020); } + /** * <code>optional string language = 6;</code> */ 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; } } + /** * <code>optional string language = 6;</code> */ public com.google.protobuf.ByteString - getLanguageBytes() { + getLanguageBytes() { java.lang.Object ref = language_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); language_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } + /** * <code>optional string language = 6;</code> */ public Builder setLanguage( - java.lang.String value) { + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; language_ = value; onChanged(); return this; } + /** * <code>optional string language = 6;</code> */ @@ -2092,57 +3008,63 @@ public final class BatchReport { onChanged(); return this; } + /** * <code>optional string language = 6;</code> */ public Builder setLanguageBytes( - com.google.protobuf.ByteString value) { + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; language_ = value; onChanged(); return this; } - // repeated int32 child_refs = 7 [packed = true]; private java.util.List<java.lang.Integer> childRefs_ = java.util.Collections.emptyList(); + private void ensureChildRefsIsMutable() { if (!((bitField0_ & 0x00000040) == 0x00000040)) { childRefs_ = new java.util.ArrayList<java.lang.Integer>(childRefs_); bitField0_ |= 0x00000040; - } + } } + /** * <code>repeated int32 child_refs = 7 [packed = true];</code> */ public java.util.List<java.lang.Integer> - getChildRefsList() { + getChildRefsList() { return java.util.Collections.unmodifiableList(childRefs_); } + /** * <code>repeated int32 child_refs = 7 [packed = true];</code> */ public int getChildRefsCount() { return childRefs_.size(); } + /** * <code>repeated int32 child_refs = 7 [packed = true];</code> */ public int getChildRefs(int index) { return childRefs_.get(index); } + /** * <code>repeated int32 child_refs = 7 [packed = true];</code> */ public Builder setChildRefs( - int index, int value) { + int index, int value) { ensureChildRefsIsMutable(); childRefs_.set(index, value); onChanged(); return this; } + /** * <code>repeated int32 child_refs = 7 [packed = true];</code> */ @@ -2152,16 +3074,19 @@ public final class BatchReport { onChanged(); return this; } + /** * <code>repeated int32 child_refs = 7 [packed = true];</code> */ public Builder addAllChildRefs( - java.lang.Iterable<? extends java.lang.Integer> values) { + java.lang.Iterable<? extends java.lang.Integer> values) { ensureChildRefsIsMutable(); - super.addAll(values, childRefs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, childRefs_); onChanged(); return this; } + /** * <code>repeated int32 child_refs = 7 [packed = true];</code> */ @@ -2172,8 +3097,267 @@ public final class BatchReport { return this; } - // optional int32 snapshot_id = 8; - private int snapshotId_ ; + private java.util.List<org.sonar.batch.protocol.output.BatchReport.ComponentLink> links_ = + java.util.Collections.emptyList(); + + private void ensureLinksIsMutable() { + if (!((bitField0_ & 0x00000080) == 0x00000080)) { + links_ = new java.util.ArrayList<org.sonar.batch.protocol.output.BatchReport.ComponentLink>(links_); + bitField0_ |= 0x00000080; + } + } + + private com.google.protobuf.RepeatedFieldBuilder<org.sonar.batch.protocol.output.BatchReport.ComponentLink, org.sonar.batch.protocol.output.BatchReport.ComponentLink.Builder, org.sonar.batch.protocol.output.BatchReport.ComponentLinkOrBuilder> linksBuilder_; + + /** + * <code>repeated .ComponentLink links = 10;</code> + */ + public java.util.List<org.sonar.batch.protocol.output.BatchReport.ComponentLink> getLinksList() { + if (linksBuilder_ == null) { + return java.util.Collections.unmodifiableList(links_); + } else { + return linksBuilder_.getMessageList(); + } + } + + /** + * <code>repeated .ComponentLink links = 10;</code> + */ + public int getLinksCount() { + if (linksBuilder_ == null) { + return links_.size(); + } else { + return linksBuilder_.getCount(); + } + } + + /** + * <code>repeated .ComponentLink links = 10;</code> + */ + public org.sonar.batch.protocol.output.BatchReport.ComponentLink getLinks(int index) { + if (linksBuilder_ == null) { + return links_.get(index); + } else { + return linksBuilder_.getMessage(index); + } + } + + /** + * <code>repeated .ComponentLink links = 10;</code> + */ + public Builder setLinks( + int index, org.sonar.batch.protocol.output.BatchReport.ComponentLink value) { + if (linksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLinksIsMutable(); + links_.set(index, value); + onChanged(); + } else { + linksBuilder_.setMessage(index, value); + } + return this; + } + + /** + * <code>repeated .ComponentLink links = 10;</code> + */ + public Builder setLinks( + int index, org.sonar.batch.protocol.output.BatchReport.ComponentLink.Builder builderForValue) { + if (linksBuilder_ == null) { + ensureLinksIsMutable(); + links_.set(index, builderForValue.build()); + onChanged(); + } else { + linksBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * <code>repeated .ComponentLink links = 10;</code> + */ + public Builder addLinks(org.sonar.batch.protocol.output.BatchReport.ComponentLink value) { + if (linksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLinksIsMutable(); + links_.add(value); + onChanged(); + } else { + linksBuilder_.addMessage(value); + } + return this; + } + + /** + * <code>repeated .ComponentLink links = 10;</code> + */ + public Builder addLinks( + int index, org.sonar.batch.protocol.output.BatchReport.ComponentLink value) { + if (linksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLinksIsMutable(); + links_.add(index, value); + onChanged(); + } else { + linksBuilder_.addMessage(index, value); + } + return this; + } + + /** + * <code>repeated .ComponentLink links = 10;</code> + */ + public Builder addLinks( + org.sonar.batch.protocol.output.BatchReport.ComponentLink.Builder builderForValue) { + if (linksBuilder_ == null) { + ensureLinksIsMutable(); + links_.add(builderForValue.build()); + onChanged(); + } else { + linksBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * <code>repeated .ComponentLink links = 10;</code> + */ + public Builder addLinks( + int index, org.sonar.batch.protocol.output.BatchReport.ComponentLink.Builder builderForValue) { + if (linksBuilder_ == null) { + ensureLinksIsMutable(); + links_.add(index, builderForValue.build()); + onChanged(); + } else { + linksBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * <code>repeated .ComponentLink links = 10;</code> + */ + public Builder addAllLinks( + java.lang.Iterable<? extends org.sonar.batch.protocol.output.BatchReport.ComponentLink> values) { + if (linksBuilder_ == null) { + ensureLinksIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, links_); + onChanged(); + } else { + linksBuilder_.addAllMessages(values); + } + return this; + } + + /** + * <code>repeated .ComponentLink links = 10;</code> + */ + public Builder clearLinks() { + if (linksBuilder_ == null) { + links_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + } else { + linksBuilder_.clear(); + } + return this; + } + + /** + * <code>repeated .ComponentLink links = 10;</code> + */ + public Builder removeLinks(int index) { + if (linksBuilder_ == null) { + ensureLinksIsMutable(); + links_.remove(index); + onChanged(); + } else { + linksBuilder_.remove(index); + } + return this; + } + + /** + * <code>repeated .ComponentLink links = 10;</code> + */ + public org.sonar.batch.protocol.output.BatchReport.ComponentLink.Builder getLinksBuilder( + int index) { + return getLinksFieldBuilder().getBuilder(index); + } + + /** + * <code>repeated .ComponentLink links = 10;</code> + */ + public org.sonar.batch.protocol.output.BatchReport.ComponentLinkOrBuilder getLinksOrBuilder( + int index) { + if (linksBuilder_ == null) { + return links_.get(index); + } else { + return linksBuilder_.getMessageOrBuilder(index); + } + } + + /** + * <code>repeated .ComponentLink links = 10;</code> + */ + public java.util.List<? extends org.sonar.batch.protocol.output.BatchReport.ComponentLinkOrBuilder> + getLinksOrBuilderList() { + if (linksBuilder_ != null) { + return linksBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(links_); + } + } + + /** + * <code>repeated .ComponentLink links = 10;</code> + */ + public org.sonar.batch.protocol.output.BatchReport.ComponentLink.Builder addLinksBuilder() { + return getLinksFieldBuilder().addBuilder( + org.sonar.batch.protocol.output.BatchReport.ComponentLink.getDefaultInstance()); + } + + /** + * <code>repeated .ComponentLink links = 10;</code> + */ + public org.sonar.batch.protocol.output.BatchReport.ComponentLink.Builder addLinksBuilder( + int index) { + return getLinksFieldBuilder().addBuilder( + index, org.sonar.batch.protocol.output.BatchReport.ComponentLink.getDefaultInstance()); + } + + /** + * <code>repeated .ComponentLink links = 10;</code> + */ + public java.util.List<org.sonar.batch.protocol.output.BatchReport.ComponentLink.Builder> + getLinksBuilderList() { + return getLinksFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + org.sonar.batch.protocol.output.BatchReport.ComponentLink, org.sonar.batch.protocol.output.BatchReport.ComponentLink.Builder, org.sonar.batch.protocol.output.BatchReport.ComponentLinkOrBuilder> + getLinksFieldBuilder() { + if (linksBuilder_ == null) { + linksBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + org.sonar.batch.protocol.output.BatchReport.ComponentLink, org.sonar.batch.protocol.output.BatchReport.ComponentLink.Builder, org.sonar.batch.protocol.output.BatchReport.ComponentLinkOrBuilder>( + links_, + ((bitField0_ & 0x00000080) == 0x00000080), + getParentForChildren(), + isClean()); + links_ = null; + } + return linksBuilder_; + } + + private int snapshotId_; + /** * <code>optional int32 snapshot_id = 8;</code> * @@ -2182,8 +3366,9 @@ public final class BatchReport { * </pre> */ public boolean hasSnapshotId() { - return ((bitField0_ & 0x00000080) == 0x00000080); + return ((bitField0_ & 0x00000100) == 0x00000100); } + /** * <code>optional int32 snapshot_id = 8;</code> * @@ -2194,6 +3379,7 @@ public final class BatchReport { public int getSnapshotId() { return snapshotId_; } + /** * <code>optional int32 snapshot_id = 8;</code> * @@ -2202,11 +3388,12 @@ public final class BatchReport { * </pre> */ public Builder setSnapshotId(int value) { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; snapshotId_ = value; onChanged(); return this; } + /** * <code>optional int32 snapshot_id = 8;</code> * @@ -2215,81 +3402,89 @@ public final class BatchReport { * </pre> */ public Builder clearSnapshotId() { - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); snapshotId_ = 0; onChanged(); return this; } - // optional string uuid = 9; private java.lang.Object uuid_ = ""; + /** * <code>optional string uuid = 9;</code> */ public boolean hasUuid() { - return ((bitField0_ & 0x00000100) == 0x00000100); + return ((bitField0_ & 0x00000200) == 0x00000200); } + /** * <code>optional string uuid = 9;</code> */ 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; } } + /** * <code>optional string uuid = 9;</code> */ public com.google.protobuf.ByteString - getUuidBytes() { + getUuidBytes() { java.lang.Object ref = uuid_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uuid_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } + /** * <code>optional string uuid = 9;</code> */ public Builder setUuid( - java.lang.String value) { + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000100; + throw new NullPointerException(); + } + bitField0_ |= 0x00000200; uuid_ = value; onChanged(); return this; } + /** * <code>optional string uuid = 9;</code> */ public Builder clearUuid() { - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000200); uuid_ = getDefaultInstance().getUuid(); onChanged(); return this; } + /** * <code>optional string uuid = 9;</code> */ public Builder setUuidBytes( - com.google.protobuf.ByteString value) { + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000100; + throw new NullPointerException(); + } + bitField0_ |= 0x00000200; uuid_ = value; onChanged(); return this; @@ -2306,95 +3501,100 @@ public final class BatchReport { // @@protoc_insertion_point(class_scope:Component) } - public interface IssueOrBuilder - extends com.google.protobuf.MessageOrBuilder { + public interface IssueOrBuilder extends + // @@protoc_insertion_point(interface_extends:Issue) + com.google.protobuf.MessageOrBuilder { - // optional string rule_repository = 1; /** * <code>optional string rule_repository = 1;</code> */ boolean hasRuleRepository(); + /** * <code>optional string rule_repository = 1;</code> */ java.lang.String getRuleRepository(); + /** * <code>optional string rule_repository = 1;</code> */ com.google.protobuf.ByteString - getRuleRepositoryBytes(); + getRuleRepositoryBytes(); - // optional string rule_key = 2; /** * <code>optional string rule_key = 2;</code> */ boolean hasRuleKey(); + /** * <code>optional string rule_key = 2;</code> */ java.lang.String getRuleKey(); + /** * <code>optional string rule_key = 2;</code> */ com.google.protobuf.ByteString - getRuleKeyBytes(); + getRuleKeyBytes(); - // optional int32 line = 3; /** * <code>optional int32 line = 3;</code> */ boolean hasLine(); + /** * <code>optional int32 line = 3;</code> */ int getLine(); - // optional string msg = 4; /** * <code>optional string msg = 4;</code> */ boolean hasMsg(); + /** * <code>optional string msg = 4;</code> */ java.lang.String getMsg(); + /** * <code>optional string msg = 4;</code> */ com.google.protobuf.ByteString - getMsgBytes(); + getMsgBytes(); - // optional .Severity severity = 5; /** * <code>optional .Severity severity = 5;</code> */ boolean hasSeverity(); + /** * <code>optional .Severity severity = 5;</code> */ org.sonar.batch.protocol.Constants.Severity getSeverity(); - // repeated string tags = 6; /** * <code>repeated string tags = 6;</code> */ - java.util.List<java.lang.String> - getTagsList(); + com.google.protobuf.ProtocolStringList + getTagsList(); + /** * <code>repeated string tags = 6;</code> */ int getTagsCount(); + /** * <code>repeated string tags = 6;</code> */ java.lang.String getTags(int index); + /** * <code>repeated string tags = 6;</code> */ com.google.protobuf.ByteString - getTagsBytes(int index); + getTagsBytes(int index); - // optional double effort_to_fix = 7; /** * <code>optional double effort_to_fix = 7;</code> * @@ -2403,6 +3603,7 @@ public final class BatchReport { * </pre> */ boolean hasEffortToFix(); + /** * <code>optional double effort_to_fix = 7;</code> * @@ -2412,241 +3613,251 @@ public final class BatchReport { */ double getEffortToFix(); - // optional bool is_new = 8; /** * <code>optional bool is_new = 8;</code> */ boolean hasIsNew(); + /** * <code>optional bool is_new = 8;</code> */ boolean getIsNew(); - // optional string uuid = 9; /** * <code>optional string uuid = 9;</code> */ boolean hasUuid(); + /** * <code>optional string uuid = 9;</code> */ java.lang.String getUuid(); + /** * <code>optional string uuid = 9;</code> */ com.google.protobuf.ByteString - getUuidBytes(); + getUuidBytes(); - // optional int64 debt_in_minutes = 10; /** * <code>optional int64 debt_in_minutes = 10;</code> */ boolean hasDebtInMinutes(); + /** * <code>optional int64 debt_in_minutes = 10;</code> */ long getDebtInMinutes(); - // optional string resolution = 11; /** * <code>optional string resolution = 11;</code> */ boolean hasResolution(); + /** * <code>optional string resolution = 11;</code> */ java.lang.String getResolution(); + /** * <code>optional string resolution = 11;</code> */ com.google.protobuf.ByteString - getResolutionBytes(); + getResolutionBytes(); - // optional string status = 12; /** * <code>optional string status = 12;</code> */ boolean hasStatus(); + /** * <code>optional string status = 12;</code> */ java.lang.String getStatus(); + /** * <code>optional string status = 12;</code> */ com.google.protobuf.ByteString - getStatusBytes(); + getStatusBytes(); - // optional string checksum = 13; /** * <code>optional string checksum = 13;</code> */ boolean hasChecksum(); + /** * <code>optional string checksum = 13;</code> */ java.lang.String getChecksum(); + /** * <code>optional string checksum = 13;</code> */ com.google.protobuf.ByteString - getChecksumBytes(); + getChecksumBytes(); - // optional bool manual_severity = 14; /** * <code>optional bool manual_severity = 14;</code> */ boolean hasManualSeverity(); + /** * <code>optional bool manual_severity = 14;</code> */ boolean getManualSeverity(); - // optional string reporter = 15; /** * <code>optional string reporter = 15;</code> */ boolean hasReporter(); + /** * <code>optional string reporter = 15;</code> */ java.lang.String getReporter(); + /** * <code>optional string reporter = 15;</code> */ com.google.protobuf.ByteString - getReporterBytes(); + getReporterBytes(); - // optional string assignee = 16; /** * <code>optional string assignee = 16;</code> */ boolean hasAssignee(); + /** * <code>optional string assignee = 16;</code> */ java.lang.String getAssignee(); + /** * <code>optional string assignee = 16;</code> */ com.google.protobuf.ByteString - getAssigneeBytes(); + getAssigneeBytes(); - // optional string action_plan_key = 17; /** * <code>optional string action_plan_key = 17;</code> */ boolean hasActionPlanKey(); + /** * <code>optional string action_plan_key = 17;</code> */ java.lang.String getActionPlanKey(); + /** * <code>optional string action_plan_key = 17;</code> */ com.google.protobuf.ByteString - getActionPlanKeyBytes(); + getActionPlanKeyBytes(); - // optional string attributes = 18; /** * <code>optional string attributes = 18;</code> */ boolean hasAttributes(); + /** * <code>optional string attributes = 18;</code> */ java.lang.String getAttributes(); + /** * <code>optional string attributes = 18;</code> */ com.google.protobuf.ByteString - getAttributesBytes(); + getAttributesBytes(); - // optional string author_login = 19; /** * <code>optional string author_login = 19;</code> */ boolean hasAuthorLogin(); + /** * <code>optional string author_login = 19;</code> */ java.lang.String getAuthorLogin(); + /** * <code>optional string author_login = 19;</code> */ com.google.protobuf.ByteString - getAuthorLoginBytes(); + getAuthorLoginBytes(); - // optional int64 creation_date = 20; /** * <code>optional int64 creation_date = 20;</code> */ boolean hasCreationDate(); + /** * <code>optional int64 creation_date = 20;</code> */ long getCreationDate(); - // optional int64 close_date = 21; /** * <code>optional int64 close_date = 21;</code> */ boolean hasCloseDate(); + /** * <code>optional int64 close_date = 21;</code> */ long getCloseDate(); - // optional int64 update_date = 22; /** * <code>optional int64 update_date = 22;</code> */ boolean hasUpdateDate(); + /** * <code>optional int64 update_date = 22;</code> */ long getUpdateDate(); - // optional int64 selected_at = 23; /** * <code>optional int64 selected_at = 23;</code> */ boolean hasSelectedAt(); + /** * <code>optional int64 selected_at = 23;</code> */ long getSelectedAt(); - // optional string diff_fields = 24; /** * <code>optional string diff_fields = 24;</code> */ boolean hasDiffFields(); + /** * <code>optional string diff_fields = 24;</code> */ java.lang.String getDiffFields(); + /** * <code>optional string diff_fields = 24;</code> */ com.google.protobuf.ByteString - getDiffFieldsBytes(); + getDiffFieldsBytes(); - // optional bool is_changed = 25; /** * <code>optional bool is_changed = 25;</code> */ boolean hasIsChanged(); + /** * <code>optional bool is_changed = 25;</code> */ boolean getIsChanged(); - // optional bool must_send_notification = 26; /** * <code>optional bool must_send_notification = 26;</code> */ boolean hasMustSendNotification(); + /** * <code>optional bool must_send_notification = 26;</code> */ @@ -2656,16 +3867,21 @@ 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); this.unknownFields = builder.getUnknownFields(); } - private Issue(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + + private Issue(boolean noInit) { + this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } private static final Issue defaultInstance; + public static Issue getDefaultInstance() { return defaultInstance; } @@ -2675,19 +3891,21 @@ public final class BatchReport { } private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + getUnknownFields() { return this.unknownFields; } + private Issue( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); + com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { @@ -2698,19 +3916,21 @@ public final class BatchReport { break; default: { if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { + extensionRegistry, tag)) { done = true; } 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: { @@ -2719,8 +3939,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: { @@ -2735,11 +3956,12 @@ public final class BatchReport { break; } case 50: { + com.google.protobuf.ByteString bs = input.readBytes(); if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { tags_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000020; } - tags_.add(input.readBytes()); + tags_.add(bs); break; } case 57: { @@ -2753,8 +3975,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: { @@ -2763,18 +3986,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: { @@ -2783,28 +4009,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: { @@ -2828,8 +4059,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: { @@ -2848,36 +4080,37 @@ public final class BatchReport { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); + e.getMessage()).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) { - tags_ = new com.google.protobuf.UnmodifiableLazyStringList(tags_); + tags_ = tags_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } + public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + getDescriptor() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Issue_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { + internalGetFieldAccessorTable() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Issue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.batch.protocol.output.BatchReport.Issue.class, org.sonar.batch.protocol.output.BatchReport.Issue.Builder.class); + .ensureFieldAccessorsInitialized( + org.sonar.batch.protocol.output.BatchReport.Issue.class, org.sonar.batch.protocol.output.BatchReport.Issue.Builder.class); } public static com.google.protobuf.Parser<Issue> PARSER = - new com.google.protobuf.AbstractParser<Issue>() { - public Issue parsePartialFrom( + new com.google.protobuf.AbstractParser<Issue>() { + public Issue parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Issue(input, extensionRegistry); - } - }; + return new Issue(input, extensionRegistry); + } + }; @java.lang.Override public com.google.protobuf.Parser<Issue> getParserForType() { @@ -2885,15 +4118,16 @@ 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_; + /** * <code>optional string rule_repository = 1;</code> */ public boolean hasRuleRepository() { return ((bitField0_ & 0x00000001) == 0x00000001); } + /** * <code>optional string rule_repository = 1;</code> */ @@ -2902,8 +4136,8 @@ public final class BatchReport { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { ruleRepository_ = s; @@ -2911,16 +4145,17 @@ public final class BatchReport { return s; } } + /** * <code>optional string rule_repository = 1;</code> */ public com.google.protobuf.ByteString - getRuleRepositoryBytes() { + getRuleRepositoryBytes() { java.lang.Object ref = ruleRepository_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); ruleRepository_ = b; return b; } else { @@ -2928,15 +4163,16 @@ public final class BatchReport { } } - // optional string rule_key = 2; public static final int RULE_KEY_FIELD_NUMBER = 2; private java.lang.Object ruleKey_; + /** * <code>optional string rule_key = 2;</code> */ public boolean hasRuleKey() { return ((bitField0_ & 0x00000002) == 0x00000002); } + /** * <code>optional string rule_key = 2;</code> */ @@ -2945,8 +4181,8 @@ public final class BatchReport { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { ruleKey_ = s; @@ -2954,16 +4190,17 @@ public final class BatchReport { return s; } } + /** * <code>optional string rule_key = 2;</code> */ public com.google.protobuf.ByteString - getRuleKeyBytes() { + getRuleKeyBytes() { java.lang.Object ref = ruleKey_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); ruleKey_ = b; return b; } else { @@ -2971,15 +4208,16 @@ public final class BatchReport { } } - // optional int32 line = 3; public static final int LINE_FIELD_NUMBER = 3; private int line_; + /** * <code>optional int32 line = 3;</code> */ public boolean hasLine() { return ((bitField0_ & 0x00000004) == 0x00000004); } + /** * <code>optional int32 line = 3;</code> */ @@ -2987,15 +4225,16 @@ public final class BatchReport { return line_; } - // optional string msg = 4; public static final int MSG_FIELD_NUMBER = 4; private java.lang.Object msg_; + /** * <code>optional string msg = 4;</code> */ public boolean hasMsg() { return ((bitField0_ & 0x00000008) == 0x00000008); } + /** * <code>optional string msg = 4;</code> */ @@ -3004,8 +4243,8 @@ public final class BatchReport { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { msg_ = s; @@ -3013,16 +4252,17 @@ public final class BatchReport { return s; } } + /** * <code>optional string msg = 4;</code> */ public com.google.protobuf.ByteString - getMsgBytes() { + getMsgBytes() { java.lang.Object ref = msg_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); msg_ = b; return b; } else { @@ -3030,15 +4270,16 @@ public final class BatchReport { } } - // optional .Severity severity = 5; public static final int SEVERITY_FIELD_NUMBER = 5; private org.sonar.batch.protocol.Constants.Severity severity_; + /** * <code>optional .Severity severity = 5;</code> */ public boolean hasSeverity() { return ((bitField0_ & 0x00000010) == 0x00000010); } + /** * <code>optional .Severity severity = 5;</code> */ @@ -3046,39 +4287,42 @@ public final class BatchReport { return severity_; } - // repeated string tags = 6; public static final int TAGS_FIELD_NUMBER = 6; private com.google.protobuf.LazyStringList tags_; + /** * <code>repeated string tags = 6;</code> */ - public java.util.List<java.lang.String> - getTagsList() { + public com.google.protobuf.ProtocolStringList + getTagsList() { return tags_; } + /** * <code>repeated string tags = 6;</code> */ public int getTagsCount() { return tags_.size(); } + /** * <code>repeated string tags = 6;</code> */ public java.lang.String getTags(int index) { return tags_.get(index); } + /** * <code>repeated string tags = 6;</code> */ public com.google.protobuf.ByteString - getTagsBytes(int index) { + getTagsBytes(int index) { return tags_.getByteString(index); } - // optional double effort_to_fix = 7; public static final int EFFORT_TO_FIX_FIELD_NUMBER = 7; private double effortToFix_; + /** * <code>optional double effort_to_fix = 7;</code> * @@ -3089,6 +4333,7 @@ public final class BatchReport { public boolean hasEffortToFix() { return ((bitField0_ & 0x00000020) == 0x00000020); } + /** * <code>optional double effort_to_fix = 7;</code> * @@ -3100,15 +4345,16 @@ public final class BatchReport { return effortToFix_; } - // optional bool is_new = 8; public static final int IS_NEW_FIELD_NUMBER = 8; private boolean isNew_; + /** * <code>optional bool is_new = 8;</code> */ public boolean hasIsNew() { return ((bitField0_ & 0x00000040) == 0x00000040); } + /** * <code>optional bool is_new = 8;</code> */ @@ -3116,15 +4362,16 @@ public final class BatchReport { return isNew_; } - // optional string uuid = 9; public static final int UUID_FIELD_NUMBER = 9; private java.lang.Object uuid_; + /** * <code>optional string uuid = 9;</code> */ public boolean hasUuid() { return ((bitField0_ & 0x00000080) == 0x00000080); } + /** * <code>optional string uuid = 9;</code> */ @@ -3133,8 +4380,8 @@ public final class BatchReport { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { uuid_ = s; @@ -3142,16 +4389,17 @@ public final class BatchReport { return s; } } + /** * <code>optional string uuid = 9;</code> */ public com.google.protobuf.ByteString - getUuidBytes() { + getUuidBytes() { java.lang.Object ref = uuid_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uuid_ = b; return b; } else { @@ -3159,15 +4407,16 @@ public final class BatchReport { } } - // optional int64 debt_in_minutes = 10; public static final int DEBT_IN_MINUTES_FIELD_NUMBER = 10; private long debtInMinutes_; + /** * <code>optional int64 debt_in_minutes = 10;</code> */ public boolean hasDebtInMinutes() { return ((bitField0_ & 0x00000100) == 0x00000100); } + /** * <code>optional int64 debt_in_minutes = 10;</code> */ @@ -3175,15 +4424,16 @@ public final class BatchReport { return debtInMinutes_; } - // optional string resolution = 11; public static final int RESOLUTION_FIELD_NUMBER = 11; private java.lang.Object resolution_; + /** * <code>optional string resolution = 11;</code> */ public boolean hasResolution() { return ((bitField0_ & 0x00000200) == 0x00000200); } + /** * <code>optional string resolution = 11;</code> */ @@ -3192,8 +4442,8 @@ public final class BatchReport { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { resolution_ = s; @@ -3201,16 +4451,17 @@ public final class BatchReport { return s; } } + /** * <code>optional string resolution = 11;</code> */ public com.google.protobuf.ByteString - getResolutionBytes() { + getResolutionBytes() { java.lang.Object ref = resolution_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resolution_ = b; return b; } else { @@ -3218,15 +4469,16 @@ public final class BatchReport { } } - // optional string status = 12; public static final int STATUS_FIELD_NUMBER = 12; private java.lang.Object status_; + /** * <code>optional string status = 12;</code> */ public boolean hasStatus() { return ((bitField0_ & 0x00000400) == 0x00000400); } + /** * <code>optional string status = 12;</code> */ @@ -3235,8 +4487,8 @@ public final class BatchReport { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { status_ = s; @@ -3244,16 +4496,17 @@ public final class BatchReport { return s; } } + /** * <code>optional string status = 12;</code> */ public com.google.protobuf.ByteString - getStatusBytes() { + getStatusBytes() { java.lang.Object ref = status_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); status_ = b; return b; } else { @@ -3261,15 +4514,16 @@ public final class BatchReport { } } - // optional string checksum = 13; public static final int CHECKSUM_FIELD_NUMBER = 13; private java.lang.Object checksum_; + /** * <code>optional string checksum = 13;</code> */ public boolean hasChecksum() { return ((bitField0_ & 0x00000800) == 0x00000800); } + /** * <code>optional string checksum = 13;</code> */ @@ -3278,8 +4532,8 @@ public final class BatchReport { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { checksum_ = s; @@ -3287,16 +4541,17 @@ public final class BatchReport { return s; } } + /** * <code>optional string checksum = 13;</code> */ public com.google.protobuf.ByteString - getChecksumBytes() { + getChecksumBytes() { java.lang.Object ref = checksum_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); checksum_ = b; return b; } else { @@ -3304,15 +4559,16 @@ public final class BatchReport { } } - // optional bool manual_severity = 14; public static final int MANUAL_SEVERITY_FIELD_NUMBER = 14; private boolean manualSeverity_; + /** * <code>optional bool manual_severity = 14;</code> */ public boolean hasManualSeverity() { return ((bitField0_ & 0x00001000) == 0x00001000); } + /** * <code>optional bool manual_severity = 14;</code> */ @@ -3320,15 +4576,16 @@ public final class BatchReport { return manualSeverity_; } - // optional string reporter = 15; public static final int REPORTER_FIELD_NUMBER = 15; private java.lang.Object reporter_; + /** * <code>optional string reporter = 15;</code> */ public boolean hasReporter() { return ((bitField0_ & 0x00002000) == 0x00002000); } + /** * <code>optional string reporter = 15;</code> */ @@ -3337,8 +4594,8 @@ public final class BatchReport { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { reporter_ = s; @@ -3346,16 +4603,17 @@ public final class BatchReport { return s; } } + /** * <code>optional string reporter = 15;</code> */ public com.google.protobuf.ByteString - getReporterBytes() { + getReporterBytes() { java.lang.Object ref = reporter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); reporter_ = b; return b; } else { @@ -3363,15 +4621,16 @@ public final class BatchReport { } } - // optional string assignee = 16; public static final int ASSIGNEE_FIELD_NUMBER = 16; private java.lang.Object assignee_; + /** * <code>optional string assignee = 16;</code> */ public boolean hasAssignee() { return ((bitField0_ & 0x00004000) == 0x00004000); } + /** * <code>optional string assignee = 16;</code> */ @@ -3380,8 +4639,8 @@ public final class BatchReport { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { assignee_ = s; @@ -3389,16 +4648,17 @@ public final class BatchReport { return s; } } + /** * <code>optional string assignee = 16;</code> */ public com.google.protobuf.ByteString - getAssigneeBytes() { + getAssigneeBytes() { java.lang.Object ref = assignee_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); assignee_ = b; return b; } else { @@ -3406,15 +4666,16 @@ 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_; + /** * <code>optional string action_plan_key = 17;</code> */ public boolean hasActionPlanKey() { return ((bitField0_ & 0x00008000) == 0x00008000); } + /** * <code>optional string action_plan_key = 17;</code> */ @@ -3423,8 +4684,8 @@ public final class BatchReport { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { actionPlanKey_ = s; @@ -3432,16 +4693,17 @@ public final class BatchReport { return s; } } + /** * <code>optional string action_plan_key = 17;</code> */ public com.google.protobuf.ByteString - getActionPlanKeyBytes() { + getActionPlanKeyBytes() { java.lang.Object ref = actionPlanKey_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); actionPlanKey_ = b; return b; } else { @@ -3449,15 +4711,16 @@ public final class BatchReport { } } - // optional string attributes = 18; public static final int ATTRIBUTES_FIELD_NUMBER = 18; private java.lang.Object attributes_; + /** * <code>optional string attributes = 18;</code> */ public boolean hasAttributes() { return ((bitField0_ & 0x00010000) == 0x00010000); } + /** * <code>optional string attributes = 18;</code> */ @@ -3466,8 +4729,8 @@ public final class BatchReport { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { attributes_ = s; @@ -3475,16 +4738,17 @@ public final class BatchReport { return s; } } + /** * <code>optional string attributes = 18;</code> */ public com.google.protobuf.ByteString - getAttributesBytes() { + getAttributesBytes() { java.lang.Object ref = attributes_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); attributes_ = b; return b; } else { @@ -3492,15 +4756,16 @@ public final class BatchReport { } } - // optional string author_login = 19; public static final int AUTHOR_LOGIN_FIELD_NUMBER = 19; private java.lang.Object authorLogin_; + /** * <code>optional string author_login = 19;</code> */ public boolean hasAuthorLogin() { return ((bitField0_ & 0x00020000) == 0x00020000); } + /** * <code>optional string author_login = 19;</code> */ @@ -3509,8 +4774,8 @@ public final class BatchReport { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { authorLogin_ = s; @@ -3518,16 +4783,17 @@ public final class BatchReport { return s; } } + /** * <code>optional string author_login = 19;</code> */ public com.google.protobuf.ByteString - getAuthorLoginBytes() { + getAuthorLoginBytes() { java.lang.Object ref = authorLogin_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); authorLogin_ = b; return b; } else { @@ -3535,15 +4801,16 @@ public final class BatchReport { } } - // optional int64 creation_date = 20; public static final int CREATION_DATE_FIELD_NUMBER = 20; private long creationDate_; + /** * <code>optional int64 creation_date = 20;</code> */ public boolean hasCreationDate() { return ((bitField0_ & 0x00040000) == 0x00040000); } + /** * <code>optional int64 creation_date = 20;</code> */ @@ -3551,15 +4818,16 @@ public final class BatchReport { return creationDate_; } - // optional int64 close_date = 21; public static final int CLOSE_DATE_FIELD_NUMBER = 21; private long closeDate_; + /** * <code>optional int64 close_date = 21;</code> */ public boolean hasCloseDate() { return ((bitField0_ & 0x00080000) == 0x00080000); } + /** * <code>optional int64 close_date = 21;</code> */ @@ -3567,15 +4835,16 @@ public final class BatchReport { return closeDate_; } - // optional int64 update_date = 22; public static final int UPDATE_DATE_FIELD_NUMBER = 22; private long updateDate_; + /** * <code>optional int64 update_date = 22;</code> */ public boolean hasUpdateDate() { return ((bitField0_ & 0x00100000) == 0x00100000); } + /** * <code>optional int64 update_date = 22;</code> */ @@ -3583,15 +4852,16 @@ public final class BatchReport { return updateDate_; } - // optional int64 selected_at = 23; public static final int SELECTED_AT_FIELD_NUMBER = 23; private long selectedAt_; + /** * <code>optional int64 selected_at = 23;</code> */ public boolean hasSelectedAt() { return ((bitField0_ & 0x00200000) == 0x00200000); } + /** * <code>optional int64 selected_at = 23;</code> */ @@ -3599,15 +4869,16 @@ 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_; + /** * <code>optional string diff_fields = 24;</code> */ public boolean hasDiffFields() { return ((bitField0_ & 0x00400000) == 0x00400000); } + /** * <code>optional string diff_fields = 24;</code> */ @@ -3616,8 +4887,8 @@ public final class BatchReport { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { diffFields_ = s; @@ -3625,16 +4896,17 @@ public final class BatchReport { return s; } } + /** * <code>optional string diff_fields = 24;</code> */ public com.google.protobuf.ByteString - getDiffFieldsBytes() { + getDiffFieldsBytes() { java.lang.Object ref = diffFields_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); diffFields_ = b; return b; } else { @@ -3642,15 +4914,16 @@ public final class BatchReport { } } - // optional bool is_changed = 25; public static final int IS_CHANGED_FIELD_NUMBER = 25; private boolean isChanged_; + /** * <code>optional bool is_changed = 25;</code> */ public boolean hasIsChanged() { return ((bitField0_ & 0x00800000) == 0x00800000); } + /** * <code>optional bool is_changed = 25;</code> */ @@ -3658,15 +4931,16 @@ 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_; + /** * <code>optional bool must_send_notification = 26;</code> */ public boolean hasMustSendNotification() { return ((bitField0_ & 0x01000000) == 0x01000000); } + /** * <code>optional bool must_send_notification = 26;</code> */ @@ -3702,17 +4976,22 @@ public final class BatchReport { isChanged_ = false; mustSendNotification_ = false; } + 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; } public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getRuleRepositoryBytes()); @@ -3796,9 +5075,11 @@ public final class BatchReport { } private int memoizedSerializedSize = -1; + public int getSerializedSize() { int size = memoizedSerializedSize; - if (size != -1) return size; + if (size != -1) + return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { @@ -3916,94 +5197,115 @@ public final class BatchReport { } private static final long serialVersionUID = 0L; + @java.lang.Override protected java.lang.Object writeReplace() - throws java.io.ObjectStreamException { + throws java.io.ObjectStreamException { return super.writeReplace(); } public static org.sonar.batch.protocol.output.BatchReport.Issue parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static org.sonar.batch.protocol.output.BatchReport.Issue parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static org.sonar.batch.protocol.output.BatchReport.Issue parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static org.sonar.batch.protocol.output.BatchReport.Issue parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static org.sonar.batch.protocol.output.BatchReport.Issue parseFrom(java.io.InputStream input) - throws java.io.IOException { + throws java.io.IOException { return PARSER.parseFrom(input); } + public static org.sonar.batch.protocol.output.BatchReport.Issue parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } + public static org.sonar.batch.protocol.output.BatchReport.Issue parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { + throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } + public static org.sonar.batch.protocol.output.BatchReport.Issue parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } + public static org.sonar.batch.protocol.output.BatchReport.Issue parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { return PARSER.parseFrom(input); } + public static org.sonar.batch.protocol.output.BatchReport.Issue parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return Builder.create(); + } + + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder(org.sonar.batch.protocol.output.BatchReport.Issue prototype) { return newBuilder().mergeFrom(prototype); } - public Builder toBuilder() { return newBuilder(this); } + + public Builder toBuilder() { + return newBuilder(this); + } @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } + /** * Protobuf type {@code Issue} */ public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder<Builder> - implements org.sonar.batch.protocol.output.BatchReport.IssueOrBuilder { + com.google.protobuf.GeneratedMessage.Builder<Builder> implements + // @@protoc_insertion_point(builder_implements:Issue) + org.sonar.batch.protocol.output.BatchReport.IssueOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + getDescriptor() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Issue_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { + internalGetFieldAccessorTable() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Issue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.batch.protocol.output.BatchReport.Issue.class, org.sonar.batch.protocol.output.BatchReport.Issue.Builder.class); + .ensureFieldAccessorsInitialized( + org.sonar.batch.protocol.output.BatchReport.Issue.class, org.sonar.batch.protocol.output.BatchReport.Issue.Builder.class); } // Construct using org.sonar.batch.protocol.output.BatchReport.Issue.newBuilder() @@ -4012,14 +5314,16 @@ public final class BatchReport { } private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } + private static Builder create() { return new Builder(); } @@ -4086,7 +5390,7 @@ public final class BatchReport { } public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { + getDescriptorForType() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Issue_descriptor; } @@ -4127,8 +5431,7 @@ public final class BatchReport { } result.severity_ = severity_; if (((bitField0_ & 0x00000020) == 0x00000020)) { - tags_ = new com.google.protobuf.UnmodifiableLazyStringList( - tags_); + tags_ = tags_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000020); } result.tags_ = tags_; @@ -4219,7 +5522,7 @@ public final class BatchReport { public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.sonar.batch.protocol.output.BatchReport.Issue) { - return mergeFrom((org.sonar.batch.protocol.output.BatchReport.Issue)other); + return mergeFrom((org.sonar.batch.protocol.output.BatchReport.Issue) other); } else { super.mergeFrom(other); return this; @@ -4227,7 +5530,8 @@ public final class BatchReport { } public Builder mergeFrom(org.sonar.batch.protocol.output.BatchReport.Issue other) { - if (other == org.sonar.batch.protocol.output.BatchReport.Issue.getDefaultInstance()) return this; + if (other == org.sonar.batch.protocol.output.BatchReport.Issue.getDefaultInstance()) + return this; if (other.hasRuleRepository()) { bitField0_ |= 0x00000001; ruleRepository_ = other.ruleRepository_; @@ -4348,9 +5652,9 @@ public final class BatchReport { } public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { org.sonar.batch.protocol.output.BatchReport.Issue parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); @@ -4364,59 +5668,67 @@ public final class BatchReport { } return this; } + private int bitField0_; - // optional string rule_repository = 1; private java.lang.Object ruleRepository_ = ""; + /** * <code>optional string rule_repository = 1;</code> */ public boolean hasRuleRepository() { return ((bitField0_ & 0x00000001) == 0x00000001); } + /** * <code>optional string rule_repository = 1;</code> */ 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; } } + /** * <code>optional string rule_repository = 1;</code> */ public com.google.protobuf.ByteString - getRuleRepositoryBytes() { + getRuleRepositoryBytes() { java.lang.Object ref = ruleRepository_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); ruleRepository_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } + /** * <code>optional string rule_repository = 1;</code> */ public Builder setRuleRepository( - java.lang.String value) { + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; ruleRepository_ = value; onChanged(); return this; } + /** * <code>optional string rule_repository = 1;</code> */ @@ -4426,71 +5738,79 @@ public final class BatchReport { onChanged(); return this; } + /** * <code>optional string rule_repository = 1;</code> */ public Builder setRuleRepositoryBytes( - com.google.protobuf.ByteString value) { + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; ruleRepository_ = value; onChanged(); return this; } - // optional string rule_key = 2; private java.lang.Object ruleKey_ = ""; + /** * <code>optional string rule_key = 2;</code> */ public boolean hasRuleKey() { return ((bitField0_ & 0x00000002) == 0x00000002); } + /** * <code>optional string rule_key = 2;</code> */ 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; } } + /** * <code>optional string rule_key = 2;</code> */ public com.google.protobuf.ByteString - getRuleKeyBytes() { + getRuleKeyBytes() { java.lang.Object ref = ruleKey_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); ruleKey_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } + /** * <code>optional string rule_key = 2;</code> */ public Builder setRuleKey( - java.lang.String value) { + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; ruleKey_ = value; onChanged(); return this; } + /** * <code>optional string rule_key = 2;</code> */ @@ -4500,34 +5820,37 @@ public final class BatchReport { onChanged(); return this; } + /** * <code>optional string rule_key = 2;</code> */ public Builder setRuleKeyBytes( - com.google.protobuf.ByteString value) { + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; ruleKey_ = value; onChanged(); return this; } - // optional int32 line = 3; - private int line_ ; + private int line_; + /** * <code>optional int32 line = 3;</code> */ public boolean hasLine() { return ((bitField0_ & 0x00000004) == 0x00000004); } + /** * <code>optional int32 line = 3;</code> */ public int getLine() { return line_; } + /** * <code>optional int32 line = 3;</code> */ @@ -4537,6 +5860,7 @@ public final class BatchReport { onChanged(); return this; } + /** * <code>optional int32 line = 3;</code> */ @@ -4547,57 +5871,64 @@ public final class BatchReport { return this; } - // optional string msg = 4; private java.lang.Object msg_ = ""; + /** * <code>optional string msg = 4;</code> */ public boolean hasMsg() { return ((bitField0_ & 0x00000008) == 0x00000008); } + /** * <code>optional string msg = 4;</code> */ 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; } } + /** * <code>optional string msg = 4;</code> */ public com.google.protobuf.ByteString - getMsgBytes() { + getMsgBytes() { java.lang.Object ref = msg_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); msg_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } + /** * <code>optional string msg = 4;</code> */ public Builder setMsg( - java.lang.String value) { + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; msg_ = value; onChanged(); return this; } + /** * <code>optional string msg = 4;</code> */ @@ -4607,34 +5938,37 @@ public final class BatchReport { onChanged(); return this; } + /** * <code>optional string msg = 4;</code> */ public Builder setMsgBytes( - com.google.protobuf.ByteString value) { + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; msg_ = value; onChanged(); return this; } - // optional .Severity severity = 5; private org.sonar.batch.protocol.Constants.Severity severity_ = org.sonar.batch.protocol.Constants.Severity.INFO; + /** * <code>optional .Severity severity = 5;</code> */ public boolean hasSeverity() { return ((bitField0_ & 0x00000010) == 0x00000010); } + /** * <code>optional .Severity severity = 5;</code> */ public org.sonar.batch.protocol.Constants.Severity getSeverity() { return severity_; } + /** * <code>optional .Severity severity = 5;</code> */ @@ -4647,6 +5981,7 @@ public final class BatchReport { onChanged(); return this; } + /** * <code>optional .Severity severity = 5;</code> */ @@ -4657,76 +5992,85 @@ public final class BatchReport { return this; } - // repeated string tags = 6; private com.google.protobuf.LazyStringList tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureTagsIsMutable() { if (!((bitField0_ & 0x00000020) == 0x00000020)) { tags_ = new com.google.protobuf.LazyStringArrayList(tags_); bitField0_ |= 0x00000020; - } + } } + /** * <code>repeated string tags = 6;</code> */ - public java.util.List<java.lang.String> - getTagsList() { - return java.util.Collections.unmodifiableList(tags_); + public com.google.protobuf.ProtocolStringList + getTagsList() { + return tags_.getUnmodifiableView(); } + /** * <code>repeated string tags = 6;</code> */ public int getTagsCount() { return tags_.size(); } + /** * <code>repeated string tags = 6;</code> */ public java.lang.String getTags(int index) { return tags_.get(index); } + /** * <code>repeated string tags = 6;</code> */ public com.google.protobuf.ByteString - getTagsBytes(int index) { + getTagsBytes(int index) { return tags_.getByteString(index); } + /** * <code>repeated string tags = 6;</code> */ public Builder setTags( - int index, java.lang.String value) { + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureTagsIsMutable(); + throw new NullPointerException(); + } + ensureTagsIsMutable(); tags_.set(index, value); onChanged(); return this; } + /** * <code>repeated string tags = 6;</code> */ public Builder addTags( - java.lang.String value) { + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureTagsIsMutable(); + throw new NullPointerException(); + } + ensureTagsIsMutable(); tags_.add(value); onChanged(); return this; } + /** * <code>repeated string tags = 6;</code> */ public Builder addAllTags( - java.lang.Iterable<java.lang.String> values) { + java.lang.Iterable<java.lang.String> values) { ensureTagsIsMutable(); - super.addAll(values, tags_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, tags_); onChanged(); return this; } + /** * <code>repeated string tags = 6;</code> */ @@ -4736,22 +6080,23 @@ public final class BatchReport { onChanged(); return this; } + /** * <code>repeated string tags = 6;</code> */ public Builder addTagsBytes( - com.google.protobuf.ByteString value) { + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - ensureTagsIsMutable(); + throw new NullPointerException(); + } + ensureTagsIsMutable(); tags_.add(value); onChanged(); return this; } - // optional double effort_to_fix = 7; - private double effortToFix_ ; + private double effortToFix_; + /** * <code>optional double effort_to_fix = 7;</code> * @@ -4762,6 +6107,7 @@ public final class BatchReport { public boolean hasEffortToFix() { return ((bitField0_ & 0x00000040) == 0x00000040); } + /** * <code>optional double effort_to_fix = 7;</code> * @@ -4772,6 +6118,7 @@ public final class BatchReport { public double getEffortToFix() { return effortToFix_; } + /** * <code>optional double effort_to_fix = 7;</code> * @@ -4785,6 +6132,7 @@ public final class BatchReport { onChanged(); return this; } + /** * <code>optional double effort_to_fix = 7;</code> * @@ -4799,20 +6147,22 @@ public final class BatchReport { return this; } - // optional bool is_new = 8; - private boolean isNew_ ; + private boolean isNew_; + /** * <code>optional bool is_new = 8;</code> */ public boolean hasIsNew() { return ((bitField0_ & 0x00000080) == 0x00000080); } + /** * <code>optional bool is_new = 8;</code> */ public boolean getIsNew() { return isNew_; } + /** * <code>optional bool is_new = 8;</code> */ @@ -4822,6 +6172,7 @@ public final class BatchReport { onChanged(); return this; } + /** * <code>optional bool is_new = 8;</code> */ @@ -4832,57 +6183,64 @@ public final class BatchReport { return this; } - // optional string uuid = 9; private java.lang.Object uuid_ = ""; + /** * <code>optional string uuid = 9;</code> */ public boolean hasUuid() { return ((bitField0_ & 0x00000100) == 0x00000100); } + /** * <code>optional string uuid = 9;</code> */ 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; } } + /** * <code>optional string uuid = 9;</code> */ public com.google.protobuf.ByteString - getUuidBytes() { + getUuidBytes() { java.lang.Object ref = uuid_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uuid_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } + /** * <code>optional string uuid = 9;</code> */ public Builder setUuid( - java.lang.String value) { + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000100; + throw new NullPointerException(); + } + bitField0_ |= 0x00000100; uuid_ = value; onChanged(); return this; } + /** * <code>optional string uuid = 9;</code> */ @@ -4892,34 +6250,37 @@ public final class BatchReport { onChanged(); return this; } + /** * <code>optional string uuid = 9;</code> */ public Builder setUuidBytes( - com.google.protobuf.ByteString value) { + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000100; + throw new NullPointerException(); + } + bitField0_ |= 0x00000100; uuid_ = value; onChanged(); return this; } - // optional int64 debt_in_minutes = 10; - private long debtInMinutes_ ; + private long debtInMinutes_; + /** * <code>optional int64 debt_in_minutes = 10;</code> */ public boolean hasDebtInMinutes() { return ((bitField0_ & 0x00000200) == 0x00000200); } + /** * <code>optional int64 debt_in_minutes = 10;</code> */ public long getDebtInMinutes() { return debtInMinutes_; } + /** * <code>optional int64 debt_in_minutes = 10;</code> */ @@ -4929,6 +6290,7 @@ public final class BatchReport { onChanged(); return this; } + /** * <code>optional int64 debt_in_minutes = 10;</code> */ @@ -4939,57 +6301,64 @@ public final class BatchReport { return this; } - // optional string resolution = 11; private java.lang.Object resolution_ = ""; + /** * <code>optional string resolution = 11;</code> */ public boolean hasResolution() { return ((bitField0_ & 0x00000400) == 0x00000400); } + /** * <code>optional string resolution = 11;</code> */ 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; } } + /** * <code>optional string resolution = 11;</code> */ public com.google.protobuf.ByteString - getResolutionBytes() { + getResolutionBytes() { java.lang.Object ref = resolution_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resolution_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } + /** * <code>optional string resolution = 11;</code> */ public Builder setResolution( - java.lang.String value) { + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000400; + throw new NullPointerException(); + } + bitField0_ |= 0x00000400; resolution_ = value; onChanged(); return this; } + /** * <code>optional string resolution = 11;</code> */ @@ -4999,71 +6368,79 @@ public final class BatchReport { onChanged(); return this; } + /** * <code>optional string resolution = 11;</code> */ public Builder setResolutionBytes( - com.google.protobuf.ByteString value) { + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000400; + throw new NullPointerException(); + } + bitField0_ |= 0x00000400; resolution_ = value; onChanged(); return this; } - // optional string status = 12; private java.lang.Object status_ = ""; + /** * <code>optional string status = 12;</code> */ public boolean hasStatus() { return ((bitField0_ & 0x00000800) == 0x00000800); } + /** * <code>optional string status = 12;</code> */ 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; } } + /** * <code>optional string status = 12;</code> */ public com.google.protobuf.ByteString - getStatusBytes() { + getStatusBytes() { java.lang.Object ref = status_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); status_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } + /** * <code>optional string status = 12;</code> */ public Builder setStatus( - java.lang.String value) { + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000800; + throw new NullPointerException(); + } + bitField0_ |= 0x00000800; status_ = value; onChanged(); return this; } + /** * <code>optional string status = 12;</code> */ @@ -5073,71 +6450,79 @@ public final class BatchReport { onChanged(); return this; } + /** * <code>optional string status = 12;</code> */ public Builder setStatusBytes( - com.google.protobuf.ByteString value) { + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000800; + throw new NullPointerException(); + } + bitField0_ |= 0x00000800; status_ = value; onChanged(); return this; } - // optional string checksum = 13; private java.lang.Object checksum_ = ""; + /** * <code>optional string checksum = 13;</code> */ public boolean hasChecksum() { return ((bitField0_ & 0x00001000) == 0x00001000); } + /** * <code>optional string checksum = 13;</code> */ 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; } } + /** * <code>optional string checksum = 13;</code> */ public com.google.protobuf.ByteString - getChecksumBytes() { + getChecksumBytes() { java.lang.Object ref = checksum_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); checksum_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } + /** * <code>optional string checksum = 13;</code> */ public Builder setChecksum( - java.lang.String value) { + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00001000; + throw new NullPointerException(); + } + bitField0_ |= 0x00001000; checksum_ = value; onChanged(); return this; } + /** * <code>optional string checksum = 13;</code> */ @@ -5147,34 +6532,37 @@ public final class BatchReport { onChanged(); return this; } + /** * <code>optional string checksum = 13;</code> */ public Builder setChecksumBytes( - com.google.protobuf.ByteString value) { + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00001000; + throw new NullPointerException(); + } + bitField0_ |= 0x00001000; checksum_ = value; onChanged(); return this; } - // optional bool manual_severity = 14; - private boolean manualSeverity_ ; + private boolean manualSeverity_; + /** * <code>optional bool manual_severity = 14;</code> */ public boolean hasManualSeverity() { return ((bitField0_ & 0x00002000) == 0x00002000); } + /** * <code>optional bool manual_severity = 14;</code> */ public boolean getManualSeverity() { return manualSeverity_; } + /** * <code>optional bool manual_severity = 14;</code> */ @@ -5184,6 +6572,7 @@ public final class BatchReport { onChanged(); return this; } + /** * <code>optional bool manual_severity = 14;</code> */ @@ -5194,57 +6583,64 @@ public final class BatchReport { return this; } - // optional string reporter = 15; private java.lang.Object reporter_ = ""; + /** * <code>optional string reporter = 15;</code> */ public boolean hasReporter() { return ((bitField0_ & 0x00004000) == 0x00004000); } + /** * <code>optional string reporter = 15;</code> */ 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; } } + /** * <code>optional string reporter = 15;</code> */ public com.google.protobuf.ByteString - getReporterBytes() { + getReporterBytes() { java.lang.Object ref = reporter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); reporter_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } + /** * <code>optional string reporter = 15;</code> */ public Builder setReporter( - java.lang.String value) { + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00004000; + throw new NullPointerException(); + } + bitField0_ |= 0x00004000; reporter_ = value; onChanged(); return this; } + /** * <code>optional string reporter = 15;</code> */ @@ -5254,71 +6650,79 @@ public final class BatchReport { onChanged(); return this; } + /** * <code>optional string reporter = 15;</code> */ public Builder setReporterBytes( - com.google.protobuf.ByteString value) { + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00004000; + throw new NullPointerException(); + } + bitField0_ |= 0x00004000; reporter_ = value; onChanged(); return this; } - // optional string assignee = 16; private java.lang.Object assignee_ = ""; + /** * <code>optional string assignee = 16;</code> */ public boolean hasAssignee() { return ((bitField0_ & 0x00008000) == 0x00008000); } + /** * <code>optional string assignee = 16;</code> */ 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; } } + /** * <code>optional string assignee = 16;</code> */ public com.google.protobuf.ByteString - getAssigneeBytes() { + getAssigneeBytes() { java.lang.Object ref = assignee_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); assignee_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } + /** * <code>optional string assignee = 16;</code> */ public Builder setAssignee( - java.lang.String value) { + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00008000; + throw new NullPointerException(); + } + bitField0_ |= 0x00008000; assignee_ = value; onChanged(); return this; } + /** * <code>optional string assignee = 16;</code> */ @@ -5328,71 +6732,79 @@ public final class BatchReport { onChanged(); return this; } + /** * <code>optional string assignee = 16;</code> */ public Builder setAssigneeBytes( - com.google.protobuf.ByteString value) { + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00008000; + throw new NullPointerException(); + } + bitField0_ |= 0x00008000; assignee_ = value; onChanged(); return this; } - // optional string action_plan_key = 17; private java.lang.Object actionPlanKey_ = ""; + /** * <code>optional string action_plan_key = 17;</code> */ public boolean hasActionPlanKey() { return ((bitField0_ & 0x00010000) == 0x00010000); } + /** * <code>optional string action_plan_key = 17;</code> */ 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; } } + /** * <code>optional string action_plan_key = 17;</code> */ public com.google.protobuf.ByteString - getActionPlanKeyBytes() { + getActionPlanKeyBytes() { java.lang.Object ref = actionPlanKey_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); actionPlanKey_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } + /** * <code>optional string action_plan_key = 17;</code> */ public Builder setActionPlanKey( - java.lang.String value) { + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00010000; + throw new NullPointerException(); + } + bitField0_ |= 0x00010000; actionPlanKey_ = value; onChanged(); return this; } + /** * <code>optional string action_plan_key = 17;</code> */ @@ -5402,71 +6814,79 @@ public final class BatchReport { onChanged(); return this; } + /** * <code>optional string action_plan_key = 17;</code> */ public Builder setActionPlanKeyBytes( - com.google.protobuf.ByteString value) { + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00010000; + throw new NullPointerException(); + } + bitField0_ |= 0x00010000; actionPlanKey_ = value; onChanged(); return this; } - // optional string attributes = 18; private java.lang.Object attributes_ = ""; + /** * <code>optional string attributes = 18;</code> */ public boolean hasAttributes() { return ((bitField0_ & 0x00020000) == 0x00020000); } + /** * <code>optional string attributes = 18;</code> */ 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; } } + /** * <code>optional string attributes = 18;</code> */ public com.google.protobuf.ByteString - getAttributesBytes() { + getAttributesBytes() { java.lang.Object ref = attributes_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); attributes_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } + /** * <code>optional string attributes = 18;</code> */ public Builder setAttributes( - java.lang.String value) { + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00020000; + throw new NullPointerException(); + } + bitField0_ |= 0x00020000; attributes_ = value; onChanged(); return this; } + /** * <code>optional string attributes = 18;</code> */ @@ -5476,71 +6896,79 @@ public final class BatchReport { onChanged(); return this; } + /** * <code>optional string attributes = 18;</code> */ public Builder setAttributesBytes( - com.google.protobuf.ByteString value) { + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00020000; + throw new NullPointerException(); + } + bitField0_ |= 0x00020000; attributes_ = value; onChanged(); return this; } - // optional string author_login = 19; private java.lang.Object authorLogin_ = ""; + /** * <code>optional string author_login = 19;</code> */ public boolean hasAuthorLogin() { return ((bitField0_ & 0x00040000) == 0x00040000); } + /** * <code>optional string author_login = 19;</code> */ 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; } } + /** * <code>optional string author_login = 19;</code> */ public com.google.protobuf.ByteString - getAuthorLoginBytes() { + getAuthorLoginBytes() { java.lang.Object ref = authorLogin_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); authorLogin_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } + /** * <code>optional string author_login = 19;</code> */ public Builder setAuthorLogin( - java.lang.String value) { + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00040000; + throw new NullPointerException(); + } + bitField0_ |= 0x00040000; authorLogin_ = value; onChanged(); return this; } + /** * <code>optional string author_login = 19;</code> */ @@ -5550,34 +6978,37 @@ public final class BatchReport { onChanged(); return this; } + /** * <code>optional string author_login = 19;</code> */ public Builder setAuthorLoginBytes( - com.google.protobuf.ByteString value) { + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00040000; + throw new NullPointerException(); + } + bitField0_ |= 0x00040000; authorLogin_ = value; onChanged(); return this; } - // optional int64 creation_date = 20; - private long creationDate_ ; + private long creationDate_; + /** * <code>optional int64 creation_date = 20;</code> */ public boolean hasCreationDate() { return ((bitField0_ & 0x00080000) == 0x00080000); } + /** * <code>optional int64 creation_date = 20;</code> */ public long getCreationDate() { return creationDate_; } + /** * <code>optional int64 creation_date = 20;</code> */ @@ -5587,6 +7018,7 @@ public final class BatchReport { onChanged(); return this; } + /** * <code>optional int64 creation_date = 20;</code> */ @@ -5597,20 +7029,22 @@ public final class BatchReport { return this; } - // optional int64 close_date = 21; - private long closeDate_ ; + private long closeDate_; + /** * <code>optional int64 close_date = 21;</code> */ public boolean hasCloseDate() { return ((bitField0_ & 0x00100000) == 0x00100000); } + /** * <code>optional int64 close_date = 21;</code> */ public long getCloseDate() { return closeDate_; } + /** * <code>optional int64 close_date = 21;</code> */ @@ -5620,6 +7054,7 @@ public final class BatchReport { onChanged(); return this; } + /** * <code>optional int64 close_date = 21;</code> */ @@ -5630,20 +7065,22 @@ public final class BatchReport { return this; } - // optional int64 update_date = 22; - private long updateDate_ ; + private long updateDate_; + /** * <code>optional int64 update_date = 22;</code> */ public boolean hasUpdateDate() { return ((bitField0_ & 0x00200000) == 0x00200000); } + /** * <code>optional int64 update_date = 22;</code> */ public long getUpdateDate() { return updateDate_; } + /** * <code>optional int64 update_date = 22;</code> */ @@ -5653,6 +7090,7 @@ public final class BatchReport { onChanged(); return this; } + /** * <code>optional int64 update_date = 22;</code> */ @@ -5663,20 +7101,22 @@ public final class BatchReport { return this; } - // optional int64 selected_at = 23; - private long selectedAt_ ; + private long selectedAt_; + /** * <code>optional int64 selected_at = 23;</code> */ public boolean hasSelectedAt() { return ((bitField0_ & 0x00400000) == 0x00400000); } + /** * <code>optional int64 selected_at = 23;</code> */ public long getSelectedAt() { return selectedAt_; } + /** * <code>optional int64 selected_at = 23;</code> */ @@ -5686,6 +7126,7 @@ public final class BatchReport { onChanged(); return this; } + /** * <code>optional int64 selected_at = 23;</code> */ @@ -5696,57 +7137,64 @@ public final class BatchReport { return this; } - // optional string diff_fields = 24; private java.lang.Object diffFields_ = ""; + /** * <code>optional string diff_fields = 24;</code> */ public boolean hasDiffFields() { return ((bitField0_ & 0x00800000) == 0x00800000); } + /** * <code>optional string diff_fields = 24;</code> */ 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; } } + /** * <code>optional string diff_fields = 24;</code> */ public com.google.protobuf.ByteString - getDiffFieldsBytes() { + getDiffFieldsBytes() { java.lang.Object ref = diffFields_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); diffFields_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } + /** * <code>optional string diff_fields = 24;</code> */ public Builder setDiffFields( - java.lang.String value) { + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00800000; + throw new NullPointerException(); + } + bitField0_ |= 0x00800000; diffFields_ = value; onChanged(); return this; } + /** * <code>optional string diff_fields = 24;</code> */ @@ -5756,34 +7204,37 @@ public final class BatchReport { onChanged(); return this; } + /** * <code>optional string diff_fields = 24;</code> */ public Builder setDiffFieldsBytes( - com.google.protobuf.ByteString value) { + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00800000; + throw new NullPointerException(); + } + bitField0_ |= 0x00800000; diffFields_ = value; onChanged(); return this; } - // optional bool is_changed = 25; - private boolean isChanged_ ; + private boolean isChanged_; + /** * <code>optional bool is_changed = 25;</code> */ public boolean hasIsChanged() { return ((bitField0_ & 0x01000000) == 0x01000000); } + /** * <code>optional bool is_changed = 25;</code> */ public boolean getIsChanged() { return isChanged_; } + /** * <code>optional bool is_changed = 25;</code> */ @@ -5793,6 +7244,7 @@ public final class BatchReport { onChanged(); return this; } + /** * <code>optional bool is_changed = 25;</code> */ @@ -5803,20 +7255,22 @@ public final class BatchReport { return this; } - // optional bool must_send_notification = 26; - private boolean mustSendNotification_ ; + private boolean mustSendNotification_; + /** * <code>optional bool must_send_notification = 26;</code> */ public boolean hasMustSendNotification() { return ((bitField0_ & 0x02000000) == 0x02000000); } + /** * <code>optional bool must_send_notification = 26;</code> */ public boolean getMustSendNotification() { return mustSendNotification_; } + /** * <code>optional bool must_send_notification = 26;</code> */ @@ -5826,6 +7280,7 @@ public final class BatchReport { onChanged(); return this; } + /** * <code>optional bool must_send_notification = 26;</code> */ @@ -5847,45 +7302,48 @@ public final class BatchReport { // @@protoc_insertion_point(class_scope:Issue) } - public interface IssuesOrBuilder - extends com.google.protobuf.MessageOrBuilder { + public interface IssuesOrBuilder extends + // @@protoc_insertion_point(interface_extends:Issues) + com.google.protobuf.MessageOrBuilder { - // optional int32 component_ref = 1; /** * <code>optional int32 component_ref = 1;</code> */ boolean hasComponentRef(); + /** * <code>optional int32 component_ref = 1;</code> */ int getComponentRef(); - // repeated .Issue list = 2; /** * <code>repeated .Issue list = 2;</code> */ - java.util.List<org.sonar.batch.protocol.output.BatchReport.Issue> - getListList(); + java.util.List<org.sonar.batch.protocol.output.BatchReport.Issue> + getListList(); + /** * <code>repeated .Issue list = 2;</code> */ org.sonar.batch.protocol.output.BatchReport.Issue getList(int index); + /** * <code>repeated .Issue list = 2;</code> */ int getListCount(); + /** * <code>repeated .Issue list = 2;</code> */ - java.util.List<? extends org.sonar.batch.protocol.output.BatchReport.IssueOrBuilder> - getListOrBuilderList(); + java.util.List<? extends org.sonar.batch.protocol.output.BatchReport.IssueOrBuilder> + getListOrBuilderList(); + /** * <code>repeated .Issue list = 2;</code> */ org.sonar.batch.protocol.output.BatchReport.IssueOrBuilder getListOrBuilder( - int index); + int index); - // optional string component_uuid = 3; /** * <code>optional string component_uuid = 3;</code> * @@ -5894,6 +7352,7 @@ public final class BatchReport { * </pre> */ boolean hasComponentUuid(); + /** * <code>optional string component_uuid = 3;</code> * @@ -5902,6 +7361,7 @@ public final class BatchReport { * </pre> */ java.lang.String getComponentUuid(); + /** * <code>optional string component_uuid = 3;</code> * @@ -5910,22 +7370,27 @@ public final class BatchReport { * </pre> */ com.google.protobuf.ByteString - getComponentUuidBytes(); + getComponentUuidBytes(); } /** * 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); this.unknownFields = builder.getUnknownFields(); } - private Issues(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + + private Issues(boolean noInit) { + this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } private static final Issues defaultInstance; + public static Issues getDefaultInstance() { return defaultInstance; } @@ -5935,19 +7400,21 @@ public final class BatchReport { } private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + getUnknownFields() { return this.unknownFields; } + private Issues( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); + com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { @@ -5958,7 +7425,7 @@ public final class BatchReport { break; default: { if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { + extensionRegistry, tag)) { done = true; } break; @@ -5977,8 +7444,9 @@ public final class BatchReport { break; } case 26: { + com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; - componentUuid_ = input.readBytes(); + componentUuid_ = bs; break; } } @@ -5987,7 +7455,7 @@ public final class BatchReport { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); + e.getMessage()).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { list_ = java.util.Collections.unmodifiableList(list_); @@ -5996,27 +7464,28 @@ public final class BatchReport { makeExtensionsImmutable(); } } + public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + getDescriptor() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Issues_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { + internalGetFieldAccessorTable() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Issues_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.batch.protocol.output.BatchReport.Issues.class, org.sonar.batch.protocol.output.BatchReport.Issues.Builder.class); + .ensureFieldAccessorsInitialized( + org.sonar.batch.protocol.output.BatchReport.Issues.class, org.sonar.batch.protocol.output.BatchReport.Issues.Builder.class); } public static com.google.protobuf.Parser<Issues> PARSER = - new com.google.protobuf.AbstractParser<Issues>() { - public Issues parsePartialFrom( + new com.google.protobuf.AbstractParser<Issues>() { + public Issues parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Issues(input, extensionRegistry); - } - }; + return new Issues(input, extensionRegistry); + } + }; @java.lang.Override public com.google.protobuf.Parser<Issues> getParserForType() { @@ -6024,15 +7493,16 @@ public final class BatchReport { } private int bitField0_; - // optional int32 component_ref = 1; public static final int COMPONENT_REF_FIELD_NUMBER = 1; private int componentRef_; + /** * <code>optional int32 component_ref = 1;</code> */ public boolean hasComponentRef() { return ((bitField0_ & 0x00000001) == 0x00000001); } + /** * <code>optional int32 component_ref = 1;</code> */ @@ -6040,45 +7510,49 @@ public final class BatchReport { return componentRef_; } - // repeated .Issue list = 2; public static final int LIST_FIELD_NUMBER = 2; private java.util.List<org.sonar.batch.protocol.output.BatchReport.Issue> list_; + /** * <code>repeated .Issue list = 2;</code> */ public java.util.List<org.sonar.batch.protocol.output.BatchReport.Issue> getListList() { return list_; } + /** * <code>repeated .Issue list = 2;</code> */ - public java.util.List<? extends org.sonar.batch.protocol.output.BatchReport.IssueOrBuilder> - getListOrBuilderList() { + public java.util.List<? extends org.sonar.batch.protocol.output.BatchReport.IssueOrBuilder> + getListOrBuilderList() { return list_; } + /** * <code>repeated .Issue list = 2;</code> */ public int getListCount() { return list_.size(); } + /** * <code>repeated .Issue list = 2;</code> */ public org.sonar.batch.protocol.output.BatchReport.Issue getList(int index) { return list_.get(index); } + /** * <code>repeated .Issue list = 2;</code> */ public org.sonar.batch.protocol.output.BatchReport.IssueOrBuilder getListOrBuilder( - int index) { + int index) { return list_.get(index); } - // optional string component_uuid = 3; public static final int COMPONENT_UUID_FIELD_NUMBER = 3; private java.lang.Object componentUuid_; + /** * <code>optional string component_uuid = 3;</code> * @@ -6089,6 +7563,7 @@ public final class BatchReport { public boolean hasComponentUuid() { return ((bitField0_ & 0x00000002) == 0x00000002); } + /** * <code>optional string component_uuid = 3;</code> * @@ -6101,8 +7576,8 @@ public final class BatchReport { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { componentUuid_ = s; @@ -6110,6 +7585,7 @@ public final class BatchReport { return s; } } + /** * <code>optional string component_uuid = 3;</code> * @@ -6118,12 +7594,12 @@ public final class BatchReport { * </pre> */ public com.google.protobuf.ByteString - getComponentUuidBytes() { + getComponentUuidBytes() { java.lang.Object ref = componentUuid_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); componentUuid_ = b; return b; } else { @@ -6136,17 +7612,22 @@ public final class BatchReport { list_ = java.util.Collections.emptyList(); componentUuid_ = ""; } + 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; } public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt32(1, componentRef_); @@ -6161,9 +7642,11 @@ public final class BatchReport { } private int memoizedSerializedSize = -1; + public int getSerializedSize() { int size = memoizedSerializedSize; - if (size != -1) return size; + if (size != -1) + return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { @@ -6184,94 +7667,115 @@ public final class BatchReport { } private static final long serialVersionUID = 0L; + @java.lang.Override protected java.lang.Object writeReplace() - throws java.io.ObjectStreamException { + throws java.io.ObjectStreamException { return super.writeReplace(); } public static org.sonar.batch.protocol.output.BatchReport.Issues parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static org.sonar.batch.protocol.output.BatchReport.Issues parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static org.sonar.batch.protocol.output.BatchReport.Issues parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static org.sonar.batch.protocol.output.BatchReport.Issues parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static org.sonar.batch.protocol.output.BatchReport.Issues parseFrom(java.io.InputStream input) - throws java.io.IOException { + throws java.io.IOException { return PARSER.parseFrom(input); } + public static org.sonar.batch.protocol.output.BatchReport.Issues parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } + public static org.sonar.batch.protocol.output.BatchReport.Issues parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { + throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } + public static org.sonar.batch.protocol.output.BatchReport.Issues parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } + public static org.sonar.batch.protocol.output.BatchReport.Issues parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { return PARSER.parseFrom(input); } + public static org.sonar.batch.protocol.output.BatchReport.Issues parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return Builder.create(); + } + + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder(org.sonar.batch.protocol.output.BatchReport.Issues prototype) { return newBuilder().mergeFrom(prototype); } - public Builder toBuilder() { return newBuilder(this); } + + public Builder toBuilder() { + return newBuilder(this); + } @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } + /** * Protobuf type {@code Issues} */ public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder<Builder> - implements org.sonar.batch.protocol.output.BatchReport.IssuesOrBuilder { + com.google.protobuf.GeneratedMessage.Builder<Builder> implements + // @@protoc_insertion_point(builder_implements:Issues) + org.sonar.batch.protocol.output.BatchReport.IssuesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + getDescriptor() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Issues_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { + internalGetFieldAccessorTable() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Issues_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.batch.protocol.output.BatchReport.Issues.class, org.sonar.batch.protocol.output.BatchReport.Issues.Builder.class); + .ensureFieldAccessorsInitialized( + org.sonar.batch.protocol.output.BatchReport.Issues.class, org.sonar.batch.protocol.output.BatchReport.Issues.Builder.class); } // Construct using org.sonar.batch.protocol.output.BatchReport.Issues.newBuilder() @@ -6280,15 +7784,17 @@ public final class BatchReport { } private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getListFieldBuilder(); } } + private static Builder create() { return new Builder(); } @@ -6313,7 +7819,7 @@ public final class BatchReport { } public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { + getDescriptorForType() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Issues_descriptor; } @@ -6357,7 +7863,7 @@ public final class BatchReport { public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.sonar.batch.protocol.output.BatchReport.Issues) { - return mergeFrom((org.sonar.batch.protocol.output.BatchReport.Issues)other); + return mergeFrom((org.sonar.batch.protocol.output.BatchReport.Issues) other); } else { super.mergeFrom(other); return this; @@ -6365,7 +7871,8 @@ public final class BatchReport { } public Builder mergeFrom(org.sonar.batch.protocol.output.BatchReport.Issues other) { - if (other == org.sonar.batch.protocol.output.BatchReport.Issues.getDefaultInstance()) return this; + if (other == org.sonar.batch.protocol.output.BatchReport.Issues.getDefaultInstance()) + return this; if (other.hasComponentRef()) { setComponentRef(other.getComponentRef()); } @@ -6387,9 +7894,9 @@ public final class BatchReport { listBuilder_ = null; list_ = other.list_; bitField0_ = (bitField0_ & ~0x00000002); - listBuilder_ = + listBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getListFieldBuilder() : null; + getListFieldBuilder() : null; } else { listBuilder_.addAllMessages(other.list_); } @@ -6409,9 +7916,9 @@ public final class BatchReport { } public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { org.sonar.batch.protocol.output.BatchReport.Issues parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); @@ -6425,22 +7932,25 @@ public final class BatchReport { } return this; } + private int bitField0_; - // optional int32 component_ref = 1; - private int componentRef_ ; + private int componentRef_; + /** * <code>optional int32 component_ref = 1;</code> */ public boolean hasComponentRef() { return ((bitField0_ & 0x00000001) == 0x00000001); } + /** * <code>optional int32 component_ref = 1;</code> */ public int getComponentRef() { return componentRef_; } + /** * <code>optional int32 component_ref = 1;</code> */ @@ -6450,6 +7960,7 @@ public final class BatchReport { onChanged(); return this; } + /** * <code>optional int32 component_ref = 1;</code> */ @@ -6460,18 +7971,17 @@ public final class BatchReport { return this; } - // repeated .Issue list = 2; private java.util.List<org.sonar.batch.protocol.output.BatchReport.Issue> list_ = java.util.Collections.emptyList(); + private void ensureListIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { list_ = new java.util.ArrayList<org.sonar.batch.protocol.output.BatchReport.Issue>(list_); bitField0_ |= 0x00000002; - } + } } - private com.google.protobuf.RepeatedFieldBuilder< - org.sonar.batch.protocol.output.BatchReport.Issue, org.sonar.batch.protocol.output.BatchReport.Issue.Builder, org.sonar.batch.protocol.output.BatchReport.IssueOrBuilder> listBuilder_; + private com.google.protobuf.RepeatedFieldBuilder<org.sonar.batch.protocol.output.BatchReport.Issue, org.sonar.batch.protocol.output.BatchReport.Issue.Builder, org.sonar.batch.protocol.output.BatchReport.IssueOrBuilder> listBuilder_; /** * <code>repeated .Issue list = 2;</code> @@ -6483,6 +7993,7 @@ public final class BatchReport { return listBuilder_.getMessageList(); } } + /** * <code>repeated .Issue list = 2;</code> */ @@ -6493,6 +8004,7 @@ public final class BatchReport { return listBuilder_.getCount(); } } + /** * <code>repeated .Issue list = 2;</code> */ @@ -6503,11 +8015,12 @@ public final class BatchReport { return listBuilder_.getMessage(index); } } + /** * <code>repeated .Issue list = 2;</code> */ public Builder setList( - int index, org.sonar.batch.protocol.output.BatchReport.Issue value) { + int index, org.sonar.batch.protocol.output.BatchReport.Issue value) { if (listBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6520,11 +8033,12 @@ public final class BatchReport { } return this; } + /** * <code>repeated .Issue list = 2;</code> */ public Builder setList( - int index, org.sonar.batch.protocol.output.BatchReport.Issue.Builder builderForValue) { + int index, org.sonar.batch.protocol.output.BatchReport.Issue.Builder builderForValue) { if (listBuilder_ == null) { ensureListIsMutable(); list_.set(index, builderForValue.build()); @@ -6534,6 +8048,7 @@ public final class BatchReport { } return this; } + /** * <code>repeated .Issue list = 2;</code> */ @@ -6550,11 +8065,12 @@ public final class BatchReport { } return this; } + /** * <code>repeated .Issue list = 2;</code> */ public Builder addList( - int index, org.sonar.batch.protocol.output.BatchReport.Issue value) { + int index, org.sonar.batch.protocol.output.BatchReport.Issue value) { if (listBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6567,11 +8083,12 @@ public final class BatchReport { } return this; } + /** * <code>repeated .Issue list = 2;</code> */ public Builder addList( - org.sonar.batch.protocol.output.BatchReport.Issue.Builder builderForValue) { + org.sonar.batch.protocol.output.BatchReport.Issue.Builder builderForValue) { if (listBuilder_ == null) { ensureListIsMutable(); list_.add(builderForValue.build()); @@ -6581,11 +8098,12 @@ public final class BatchReport { } return this; } + /** * <code>repeated .Issue list = 2;</code> */ public Builder addList( - int index, org.sonar.batch.protocol.output.BatchReport.Issue.Builder builderForValue) { + int index, org.sonar.batch.protocol.output.BatchReport.Issue.Builder builderForValue) { if (listBuilder_ == null) { ensureListIsMutable(); list_.add(index, builderForValue.build()); @@ -6595,20 +8113,23 @@ public final class BatchReport { } return this; } + /** * <code>repeated .Issue list = 2;</code> */ public Builder addAllList( - java.lang.Iterable<? extends org.sonar.batch.protocol.output.BatchReport.Issue> values) { + java.lang.Iterable<? extends org.sonar.batch.protocol.output.BatchReport.Issue> values) { if (listBuilder_ == null) { ensureListIsMutable(); - super.addAll(values, list_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, list_); onChanged(); } else { listBuilder_.addAllMessages(values); } return this; } + /** * <code>repeated .Issue list = 2;</code> */ @@ -6622,6 +8143,7 @@ public final class BatchReport { } return this; } + /** * <code>repeated .Issue list = 2;</code> */ @@ -6635,73 +8157,81 @@ public final class BatchReport { } return this; } + /** * <code>repeated .Issue list = 2;</code> */ public org.sonar.batch.protocol.output.BatchReport.Issue.Builder getListBuilder( - int index) { + int index) { return getListFieldBuilder().getBuilder(index); } + /** * <code>repeated .Issue list = 2;</code> */ public org.sonar.batch.protocol.output.BatchReport.IssueOrBuilder getListOrBuilder( - int index) { + int index) { if (listBuilder_ == null) { - return list_.get(index); } else { + return list_.get(index); + } else { return listBuilder_.getMessageOrBuilder(index); } } + /** * <code>repeated .Issue list = 2;</code> */ - public java.util.List<? extends org.sonar.batch.protocol.output.BatchReport.IssueOrBuilder> - getListOrBuilderList() { + public java.util.List<? extends org.sonar.batch.protocol.output.BatchReport.IssueOrBuilder> + getListOrBuilderList() { if (listBuilder_ != null) { return listBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(list_); } } + /** * <code>repeated .Issue list = 2;</code> */ public org.sonar.batch.protocol.output.BatchReport.Issue.Builder addListBuilder() { return getListFieldBuilder().addBuilder( - org.sonar.batch.protocol.output.BatchReport.Issue.getDefaultInstance()); + org.sonar.batch.protocol.output.BatchReport.Issue.getDefaultInstance()); } + /** * <code>repeated .Issue list = 2;</code> */ public org.sonar.batch.protocol.output.BatchReport.Issue.Builder addListBuilder( - int index) { + int index) { return getListFieldBuilder().addBuilder( - index, org.sonar.batch.protocol.output.BatchReport.Issue.getDefaultInstance()); + index, org.sonar.batch.protocol.output.BatchReport.Issue.getDefaultInstance()); } + /** * <code>repeated .Issue list = 2;</code> */ - public java.util.List<org.sonar.batch.protocol.output.BatchReport.Issue.Builder> - getListBuilderList() { + public java.util.List<org.sonar.batch.protocol.output.BatchReport.Issue.Builder> + getListBuilderList() { return getListFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilder< - org.sonar.batch.protocol.output.BatchReport.Issue, org.sonar.batch.protocol.output.BatchReport.Issue.Builder, org.sonar.batch.protocol.output.BatchReport.IssueOrBuilder> - getListFieldBuilder() { + org.sonar.batch.protocol.output.BatchReport.Issue, org.sonar.batch.protocol.output.BatchReport.Issue.Builder, org.sonar.batch.protocol.output.BatchReport.IssueOrBuilder> + getListFieldBuilder() { if (listBuilder_ == null) { listBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - org.sonar.batch.protocol.output.BatchReport.Issue, org.sonar.batch.protocol.output.BatchReport.Issue.Builder, org.sonar.batch.protocol.output.BatchReport.IssueOrBuilder>( - list_, - ((bitField0_ & 0x00000002) == 0x00000002), - getParentForChildren(), - isClean()); + org.sonar.batch.protocol.output.BatchReport.Issue, org.sonar.batch.protocol.output.BatchReport.Issue.Builder, org.sonar.batch.protocol.output.BatchReport.IssueOrBuilder>( + list_, + ((bitField0_ & 0x00000002) == 0x00000002), + getParentForChildren(), + isClean()); list_ = null; } return listBuilder_; } - // optional string component_uuid = 3; private java.lang.Object componentUuid_ = ""; + /** * <code>optional string component_uuid = 3;</code> * @@ -6712,6 +8242,7 @@ public final class BatchReport { public boolean hasComponentUuid() { return ((bitField0_ & 0x00000004) == 0x00000004); } + /** * <code>optional string component_uuid = 3;</code> * @@ -6722,14 +8253,18 @@ 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; } } + /** * <code>optional string component_uuid = 3;</code> * @@ -6738,18 +8273,19 @@ public final class BatchReport { * </pre> */ public com.google.protobuf.ByteString - getComponentUuidBytes() { + getComponentUuidBytes() { java.lang.Object ref = componentUuid_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); componentUuid_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } + /** * <code>optional string component_uuid = 3;</code> * @@ -6758,15 +8294,16 @@ public final class BatchReport { * </pre> */ public Builder setComponentUuid( - java.lang.String value) { + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; componentUuid_ = value; onChanged(); return this; } + /** * <code>optional string component_uuid = 3;</code> * @@ -6780,6 +8317,7 @@ public final class BatchReport { onChanged(); return this; } + /** * <code>optional string component_uuid = 3;</code> * @@ -6788,11 +8326,11 @@ public final class BatchReport { * </pre> */ public Builder setComponentUuidBytes( - com.google.protobuf.ByteString value) { + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; componentUuid_ = value; onChanged(); return this; @@ -6809,99 +8347,100 @@ public final class BatchReport { // @@protoc_insertion_point(class_scope:Issues) } - private static 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 - internal_static_Component_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_Component_fieldAccessorTable; - private static 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 - internal_static_Issues_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_Issues_fieldAccessorTable; + 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 final com.google.protobuf.Descriptors.Descriptor internal_static_ComponentLink_descriptor; + private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_ComponentLink_fieldAccessorTable; + 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 final com.google.protobuf.Descriptors.Descriptor internal_static_Issue_descriptor; + private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Issue_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_Issues_descriptor; + private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Issues_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { + getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n\022batch_report.proto\032\017constants.proto\"\211\001" + - "\n\010Metadata\022\025\n\ranalysis_date\030\001 \001(\003\022\023\n\013pro" + - "ject_key\030\002 \001(\t\022\032\n\022root_component_ref\030\003 \001" + - "(\005\022\023\n\013snapshot_id\030\004 \001(\003\022 \n\030deleted_compo" + - "nents_count\030\005 \001(\005\"\260\001\n\tComponent\022\013\n\003ref\030\001" + - " \001(\005\022\014\n\004path\030\002 \001(\t\022\014\n\004name\030\003 \001(\t\022\034\n\004type" + - "\030\004 \001(\0162\016.ComponentType\022\017\n\007is_test\030\005 \001(\010\022" + - "\020\n\010language\030\006 \001(\t\022\026\n\nchild_refs\030\007 \003(\005B\002\020" + - "\001\022\023\n\013snapshot_id\030\010 \001(\005\022\014\n\004uuid\030\t \001(\t\"\232\004\n" + - "\005Issue\022\027\n\017rule_repository\030\001 \001(\t\022\020\n\010rule_", - "key\030\002 \001(\t\022\014\n\004line\030\003 \001(\005\022\013\n\003msg\030\004 \001(\t\022\033\n\010" + - "severity\030\005 \001(\0162\t.Severity\022\014\n\004tags\030\006 \003(\t\022" + - "\025\n\reffort_to_fix\030\007 \001(\001\022\016\n\006is_new\030\010 \001(\010\022\014" + - "\n\004uuid\030\t \001(\t\022\027\n\017debt_in_minutes\030\n \001(\003\022\022\n" + - "\nresolution\030\013 \001(\t\022\016\n\006status\030\014 \001(\t\022\020\n\010che" + - "cksum\030\r \001(\t\022\027\n\017manual_severity\030\016 \001(\010\022\020\n\010" + - "reporter\030\017 \001(\t\022\020\n\010assignee\030\020 \001(\t\022\027\n\017acti" + - "on_plan_key\030\021 \001(\t\022\022\n\nattributes\030\022 \001(\t\022\024\n" + - "\014author_login\030\023 \001(\t\022\025\n\rcreation_date\030\024 \001" + - "(\003\022\022\n\nclose_date\030\025 \001(\003\022\023\n\013update_date\030\026 ", - "\001(\003\022\023\n\013selected_at\030\027 \001(\003\022\023\n\013diff_fields\030" + - "\030 \001(\t\022\022\n\nis_changed\030\031 \001(\010\022\036\n\026must_send_n" + - "otification\030\032 \001(\010\"M\n\006Issues\022\025\n\rcomponent" + - "_ref\030\001 \001(\005\022\024\n\004list\030\002 \003(\0132\006.Issue\022\026\n\016comp" + - "onent_uuid\030\003 \001(\tB#\n\037org.sonar.batch.prot" + - "ocol.outputH\001" + "\n\010Metadata\022\025\n\ranalysis_date\030\001 \001(\003\022\023\n\013pro" + + "ject_key\030\002 \001(\t\022\032\n\022root_component_ref\030\003 \001" + + "(\005\022\023\n\013snapshot_id\030\004 \001(\003\022 \n\030deleted_compo" + + "nents_count\030\005 \001(\005\"?\n\rComponentLink\022 \n\004ty" + + "pe\030\001 \001(\0162\022.ComponentLinkType\022\014\n\004href\030\002 \001" + + "(\t\"\317\001\n\tComponent\022\013\n\003ref\030\001 \001(\005\022\014\n\004path\030\002 " + + "\001(\t\022\014\n\004name\030\003 \001(\t\022\034\n\004type\030\004 \001(\0162\016.Compon" + + "entType\022\017\n\007is_test\030\005 \001(\010\022\020\n\010language\030\006 \001" + + "(\t\022\026\n\nchild_refs\030\007 \003(\005B\002\020\001\022\035\n\005links\030\n \003(", + "\0132\016.ComponentLink\022\023\n\013snapshot_id\030\010 \001(\005\022\014" + + "\n\004uuid\030\t \001(\t\"\232\004\n\005Issue\022\027\n\017rule_repositor" + + "y\030\001 \001(\t\022\020\n\010rule_key\030\002 \001(\t\022\014\n\004line\030\003 \001(\005\022" + + "\013\n\003msg\030\004 \001(\t\022\033\n\010severity\030\005 \001(\0162\t.Severit" + + "y\022\014\n\004tags\030\006 \003(\t\022\025\n\reffort_to_fix\030\007 \001(\001\022\016" + + "\n\006is_new\030\010 \001(\010\022\014\n\004uuid\030\t \001(\t\022\027\n\017debt_in_" + + "minutes\030\n \001(\003\022\022\n\nresolution\030\013 \001(\t\022\016\n\006sta" + + "tus\030\014 \001(\t\022\020\n\010checksum\030\r \001(\t\022\027\n\017manual_se" + + "verity\030\016 \001(\010\022\020\n\010reporter\030\017 \001(\t\022\020\n\010assign" + + "ee\030\020 \001(\t\022\027\n\017action_plan_key\030\021 \001(\t\022\022\n\natt", + "ributes\030\022 \001(\t\022\024\n\014author_login\030\023 \001(\t\022\025\n\rc" + + "reation_date\030\024 \001(\003\022\022\n\nclose_date\030\025 \001(\003\022\023" + + "\n\013update_date\030\026 \001(\003\022\023\n\013selected_at\030\027 \001(\003" + + "\022\023\n\013diff_fields\030\030 \001(\t\022\022\n\nis_changed\030\031 \001(" + + "\010\022\036\n\026must_send_notification\030\032 \001(\010\"M\n\006Iss" + + "ues\022\025\n\rcomponent_ref\030\001 \001(\005\022\024\n\004list\030\002 \003(\013" + + "2\006.Issue\022\026\n\016component_uuid\030\003 \001(\tB#\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) { + com.google.protobuf.Descriptors.FileDescriptor root) { descriptor = root; - internal_static_Metadata_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_Metadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_Metadata_descriptor, - new java.lang.String[] { "AnalysisDate", "ProjectKey", "RootComponentRef", "SnapshotId", "DeletedComponentsCount", }); - internal_static_Component_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_Component_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_Component_descriptor, - new java.lang.String[] { "Ref", "Path", "Name", "Type", "IsTest", "Language", "ChildRefs", "SnapshotId", "Uuid", }); - internal_static_Issue_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_Issue_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_Issue_descriptor, - new java.lang.String[] { "RuleRepository", "RuleKey", "Line", "Msg", "Severity", "Tags", "EffortToFix", "IsNew", "Uuid", "DebtInMinutes", "Resolution", "Status", "Checksum", "ManualSeverity", "Reporter", "Assignee", "ActionPlanKey", "Attributes", "AuthorLogin", "CreationDate", "CloseDate", "UpdateDate", "SelectedAt", "DiffFields", "IsChanged", "MustSendNotification", }); - internal_static_Issues_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_Issues_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_Issues_descriptor, - new java.lang.String[] { "ComponentRef", "List", "ComponentUuid", }); return null; } }; com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - org.sonar.batch.protocol.Constants.getDescriptor(), + org.sonar.batch.protocol.Constants.getDescriptor(), }, assigner); + internal_static_Metadata_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_Metadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_Metadata_descriptor, + new java.lang.String[] {"AnalysisDate", "ProjectKey", "RootComponentRef", "SnapshotId", "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_Component_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_Component_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_Component_descriptor, + new java.lang.String[] {"Ref", "Path", "Name", "Type", "IsTest", "Language", "ChildRefs", "Links", "SnapshotId", "Uuid",}); + internal_static_Issue_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_Issue_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_Issue_descriptor, + new java.lang.String[] {"RuleRepository", "RuleKey", "Line", "Msg", "Severity", "Tags", "EffortToFix", "IsNew", "Uuid", "DebtInMinutes", "Resolution", "Status", + "Checksum", "ManualSeverity", "Reporter", "Assignee", "ActionPlanKey", "Attributes", "AuthorLogin", "CreationDate", "CloseDate", "UpdateDate", "SelectedAt", + "DiffFields", "IsChanged", "MustSendNotification",}); + internal_static_Issues_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_Issues_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_Issues_descriptor, + new java.lang.String[] {"ComponentRef", "List", "ComponentUuid",}); + org.sonar.batch.protocol.Constants.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/sonar-batch-protocol/src/main/gen-java/org/sonar/server/source/db/FileSourceDb.java b/sonar-batch-protocol/src/main/gen-java/org/sonar/server/source/db/FileSourceDb.java index 523344bac28..13609283ec4 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 @@ -4,39 +4,43 @@ package org.sonar.server.source.db; public final class FileSourceDb { - private FileSourceDb() {} + private FileSourceDb() { + } + public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { + com.google.protobuf.ExtensionRegistry registry) { } - public interface LineOrBuilder - extends com.google.protobuf.MessageOrBuilder { - // optional int32 line = 1; + public interface LineOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.sonar.server.source.db.Line) + com.google.protobuf.MessageOrBuilder { + /** * <code>optional int32 line = 1;</code> */ boolean hasLine(); + /** * <code>optional int32 line = 1;</code> */ int getLine(); - // optional string source = 2; /** * <code>optional string source = 2;</code> */ boolean hasSource(); + /** * <code>optional string source = 2;</code> */ java.lang.String getSource(); + /** * <code>optional string source = 2;</code> */ com.google.protobuf.ByteString - getSourceBytes(); + getSourceBytes(); - // optional string scm_revision = 3; /** * <code>optional string scm_revision = 3;</code> * @@ -45,6 +49,7 @@ public final class FileSourceDb { * </pre> */ boolean hasScmRevision(); + /** * <code>optional string scm_revision = 3;</code> * @@ -53,6 +58,7 @@ public final class FileSourceDb { * </pre> */ java.lang.String getScmRevision(); + /** * <code>optional string scm_revision = 3;</code> * @@ -61,34 +67,34 @@ public final class FileSourceDb { * </pre> */ com.google.protobuf.ByteString - getScmRevisionBytes(); + getScmRevisionBytes(); - // optional string scm_author = 4; /** * <code>optional string scm_author = 4;</code> */ boolean hasScmAuthor(); + /** * <code>optional string scm_author = 4;</code> */ java.lang.String getScmAuthor(); + /** * <code>optional string scm_author = 4;</code> */ com.google.protobuf.ByteString - getScmAuthorBytes(); + getScmAuthorBytes(); - // optional int64 scm_date = 5; /** * <code>optional int64 scm_date = 5;</code> */ boolean hasScmDate(); + /** * <code>optional int64 scm_date = 5;</code> */ long getScmDate(); - // optional int32 ut_line_hits = 6; /** * <code>optional int32 ut_line_hits = 6;</code> * @@ -97,6 +103,7 @@ public final class FileSourceDb { * </pre> */ boolean hasUtLineHits(); + /** * <code>optional int32 ut_line_hits = 6;</code> * @@ -106,27 +113,26 @@ public final class FileSourceDb { */ int getUtLineHits(); - // optional int32 ut_conditions = 7; /** * <code>optional int32 ut_conditions = 7;</code> */ boolean hasUtConditions(); + /** * <code>optional int32 ut_conditions = 7;</code> */ int getUtConditions(); - // optional int32 ut_covered_conditions = 8; /** * <code>optional int32 ut_covered_conditions = 8;</code> */ boolean hasUtCoveredConditions(); + /** * <code>optional int32 ut_covered_conditions = 8;</code> */ int getUtCoveredConditions(); - // optional int32 it_line_hits = 9; /** * <code>optional int32 it_line_hits = 9;</code> * @@ -135,6 +141,7 @@ public final class FileSourceDb { * </pre> */ boolean hasItLineHits(); + /** * <code>optional int32 it_line_hits = 9;</code> * @@ -144,27 +151,26 @@ public final class FileSourceDb { */ int getItLineHits(); - // optional int32 it_conditions = 10; /** * <code>optional int32 it_conditions = 10;</code> */ boolean hasItConditions(); + /** * <code>optional int32 it_conditions = 10;</code> */ int getItConditions(); - // optional int32 it_covered_conditions = 11; /** * <code>optional int32 it_covered_conditions = 11;</code> */ boolean hasItCoveredConditions(); + /** * <code>optional int32 it_covered_conditions = 11;</code> */ int getItCoveredConditions(); - // optional int32 overall_line_hits = 12; /** * <code>optional int32 overall_line_hits = 12;</code> * @@ -173,6 +179,7 @@ public final class FileSourceDb { * </pre> */ boolean hasOverallLineHits(); + /** * <code>optional int32 overall_line_hits = 12;</code> * @@ -182,65 +189,68 @@ public final class FileSourceDb { */ int getOverallLineHits(); - // optional int32 overall_conditions = 13; /** * <code>optional int32 overall_conditions = 13;</code> */ boolean hasOverallConditions(); + /** * <code>optional int32 overall_conditions = 13;</code> */ int getOverallConditions(); - // optional int32 overall_covered_conditions = 14; /** * <code>optional int32 overall_covered_conditions = 14;</code> */ boolean hasOverallCoveredConditions(); + /** * <code>optional int32 overall_covered_conditions = 14;</code> */ int getOverallCoveredConditions(); - // optional string highlighting = 15; /** * <code>optional string highlighting = 15;</code> */ boolean hasHighlighting(); + /** * <code>optional string highlighting = 15;</code> */ java.lang.String getHighlighting(); + /** * <code>optional string highlighting = 15;</code> */ com.google.protobuf.ByteString - getHighlightingBytes(); + getHighlightingBytes(); - // optional string symbols = 16; /** * <code>optional string symbols = 16;</code> */ boolean hasSymbols(); + /** * <code>optional string symbols = 16;</code> */ java.lang.String getSymbols(); + /** * <code>optional string symbols = 16;</code> */ com.google.protobuf.ByteString - getSymbolsBytes(); + getSymbolsBytes(); - // repeated int32 duplications = 17 [packed = true]; /** * <code>repeated int32 duplications = 17 [packed = true];</code> */ java.util.List<java.lang.Integer> getDuplicationsList(); + /** * <code>repeated int32 duplications = 17 [packed = true];</code> */ int getDuplicationsCount(); + /** * <code>repeated int32 duplications = 17 [packed = true];</code> */ @@ -250,16 +260,21 @@ 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); this.unknownFields = builder.getUnknownFields(); } - private Line(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + + private Line(boolean noInit) { + this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } private static final Line defaultInstance; + public static Line getDefaultInstance() { return defaultInstance; } @@ -269,19 +284,21 @@ public final class FileSourceDb { } private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + getUnknownFields() { return this.unknownFields; } + private Line( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); + com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { @@ -292,7 +309,7 @@ public final class FileSourceDb { break; default: { if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { + extensionRegistry, tag)) { done = true; } break; @@ -303,18 +320,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 +388,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: { @@ -404,7 +426,7 @@ public final class FileSourceDb { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); + e.getMessage()).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00010000) == 0x00010000)) { duplications_ = java.util.Collections.unmodifiableList(duplications_); @@ -413,27 +435,28 @@ public final class FileSourceDb { makeExtensionsImmutable(); } } + public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + getDescriptor() { return org.sonar.server.source.db.FileSourceDb.internal_static_org_sonar_server_source_db_Line_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { + internalGetFieldAccessorTable() { return org.sonar.server.source.db.FileSourceDb.internal_static_org_sonar_server_source_db_Line_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.server.source.db.FileSourceDb.Line.class, org.sonar.server.source.db.FileSourceDb.Line.Builder.class); + .ensureFieldAccessorsInitialized( + org.sonar.server.source.db.FileSourceDb.Line.class, org.sonar.server.source.db.FileSourceDb.Line.Builder.class); } public static com.google.protobuf.Parser<Line> PARSER = - new com.google.protobuf.AbstractParser<Line>() { - public Line parsePartialFrom( + new com.google.protobuf.AbstractParser<Line>() { + public Line parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Line(input, extensionRegistry); - } - }; + return new Line(input, extensionRegistry); + } + }; @java.lang.Override public com.google.protobuf.Parser<Line> getParserForType() { @@ -441,15 +464,16 @@ public final class FileSourceDb { } private int bitField0_; - // optional int32 line = 1; public static final int LINE_FIELD_NUMBER = 1; private int line_; + /** * <code>optional int32 line = 1;</code> */ public boolean hasLine() { return ((bitField0_ & 0x00000001) == 0x00000001); } + /** * <code>optional int32 line = 1;</code> */ @@ -457,15 +481,16 @@ public final class FileSourceDb { return line_; } - // optional string source = 2; public static final int SOURCE_FIELD_NUMBER = 2; private java.lang.Object source_; + /** * <code>optional string source = 2;</code> */ public boolean hasSource() { return ((bitField0_ & 0x00000002) == 0x00000002); } + /** * <code>optional string source = 2;</code> */ @@ -474,8 +499,8 @@ public final class FileSourceDb { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { source_ = s; @@ -483,16 +508,17 @@ public final class FileSourceDb { return s; } } + /** * <code>optional string source = 2;</code> */ public com.google.protobuf.ByteString - getSourceBytes() { + getSourceBytes() { java.lang.Object ref = source_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); source_ = b; return b; } else { @@ -500,9 +526,9 @@ public final class FileSourceDb { } } - // optional string scm_revision = 3; public static final int SCM_REVISION_FIELD_NUMBER = 3; private java.lang.Object scmRevision_; + /** * <code>optional string scm_revision = 3;</code> * @@ -513,6 +539,7 @@ public final class FileSourceDb { public boolean hasScmRevision() { return ((bitField0_ & 0x00000004) == 0x00000004); } + /** * <code>optional string scm_revision = 3;</code> * @@ -525,8 +552,8 @@ public final class FileSourceDb { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { scmRevision_ = s; @@ -534,6 +561,7 @@ public final class FileSourceDb { return s; } } + /** * <code>optional string scm_revision = 3;</code> * @@ -542,12 +570,12 @@ public final class FileSourceDb { * </pre> */ public com.google.protobuf.ByteString - getScmRevisionBytes() { + getScmRevisionBytes() { java.lang.Object ref = scmRevision_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); scmRevision_ = b; return b; } else { @@ -555,15 +583,16 @@ public final class FileSourceDb { } } - // optional string scm_author = 4; public static final int SCM_AUTHOR_FIELD_NUMBER = 4; private java.lang.Object scmAuthor_; + /** * <code>optional string scm_author = 4;</code> */ public boolean hasScmAuthor() { return ((bitField0_ & 0x00000008) == 0x00000008); } + /** * <code>optional string scm_author = 4;</code> */ @@ -572,8 +601,8 @@ public final class FileSourceDb { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { scmAuthor_ = s; @@ -581,16 +610,17 @@ public final class FileSourceDb { return s; } } + /** * <code>optional string scm_author = 4;</code> */ public com.google.protobuf.ByteString - getScmAuthorBytes() { + getScmAuthorBytes() { java.lang.Object ref = scmAuthor_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); scmAuthor_ = b; return b; } else { @@ -598,15 +628,16 @@ public final class FileSourceDb { } } - // optional int64 scm_date = 5; public static final int SCM_DATE_FIELD_NUMBER = 5; private long scmDate_; + /** * <code>optional int64 scm_date = 5;</code> */ public boolean hasScmDate() { return ((bitField0_ & 0x00000010) == 0x00000010); } + /** * <code>optional int64 scm_date = 5;</code> */ @@ -614,9 +645,9 @@ 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_; + /** * <code>optional int32 ut_line_hits = 6;</code> * @@ -627,6 +658,7 @@ public final class FileSourceDb { public boolean hasUtLineHits() { return ((bitField0_ & 0x00000020) == 0x00000020); } + /** * <code>optional int32 ut_line_hits = 6;</code> * @@ -638,15 +670,16 @@ public final class FileSourceDb { return utLineHits_; } - // optional int32 ut_conditions = 7; public static final int UT_CONDITIONS_FIELD_NUMBER = 7; private int utConditions_; + /** * <code>optional int32 ut_conditions = 7;</code> */ public boolean hasUtConditions() { return ((bitField0_ & 0x00000040) == 0x00000040); } + /** * <code>optional int32 ut_conditions = 7;</code> */ @@ -654,15 +687,16 @@ 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_; + /** * <code>optional int32 ut_covered_conditions = 8;</code> */ public boolean hasUtCoveredConditions() { return ((bitField0_ & 0x00000080) == 0x00000080); } + /** * <code>optional int32 ut_covered_conditions = 8;</code> */ @@ -670,9 +704,9 @@ 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_; + /** * <code>optional int32 it_line_hits = 9;</code> * @@ -683,6 +717,7 @@ public final class FileSourceDb { public boolean hasItLineHits() { return ((bitField0_ & 0x00000100) == 0x00000100); } + /** * <code>optional int32 it_line_hits = 9;</code> * @@ -694,15 +729,16 @@ public final class FileSourceDb { return itLineHits_; } - // optional int32 it_conditions = 10; public static final int IT_CONDITIONS_FIELD_NUMBER = 10; private int itConditions_; + /** * <code>optional int32 it_conditions = 10;</code> */ public boolean hasItConditions() { return ((bitField0_ & 0x00000200) == 0x00000200); } + /** * <code>optional int32 it_conditions = 10;</code> */ @@ -710,15 +746,16 @@ 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_; + /** * <code>optional int32 it_covered_conditions = 11;</code> */ public boolean hasItCoveredConditions() { return ((bitField0_ & 0x00000400) == 0x00000400); } + /** * <code>optional int32 it_covered_conditions = 11;</code> */ @@ -726,9 +763,9 @@ 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_; + /** * <code>optional int32 overall_line_hits = 12;</code> * @@ -739,6 +776,7 @@ public final class FileSourceDb { public boolean hasOverallLineHits() { return ((bitField0_ & 0x00000800) == 0x00000800); } + /** * <code>optional int32 overall_line_hits = 12;</code> * @@ -750,15 +788,16 @@ public final class FileSourceDb { return overallLineHits_; } - // optional int32 overall_conditions = 13; public static final int OVERALL_CONDITIONS_FIELD_NUMBER = 13; private int overallConditions_; + /** * <code>optional int32 overall_conditions = 13;</code> */ public boolean hasOverallConditions() { return ((bitField0_ & 0x00001000) == 0x00001000); } + /** * <code>optional int32 overall_conditions = 13;</code> */ @@ -766,15 +805,16 @@ 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_; + /** * <code>optional int32 overall_covered_conditions = 14;</code> */ public boolean hasOverallCoveredConditions() { return ((bitField0_ & 0x00002000) == 0x00002000); } + /** * <code>optional int32 overall_covered_conditions = 14;</code> */ @@ -782,15 +822,16 @@ public final class FileSourceDb { return overallCoveredConditions_; } - // optional string highlighting = 15; public static final int HIGHLIGHTING_FIELD_NUMBER = 15; private java.lang.Object highlighting_; + /** * <code>optional string highlighting = 15;</code> */ public boolean hasHighlighting() { return ((bitField0_ & 0x00004000) == 0x00004000); } + /** * <code>optional string highlighting = 15;</code> */ @@ -799,8 +840,8 @@ public final class FileSourceDb { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { highlighting_ = s; @@ -808,16 +849,17 @@ public final class FileSourceDb { return s; } } + /** * <code>optional string highlighting = 15;</code> */ public com.google.protobuf.ByteString - getHighlightingBytes() { + getHighlightingBytes() { java.lang.Object ref = highlighting_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); highlighting_ = b; return b; } else { @@ -825,15 +867,16 @@ public final class FileSourceDb { } } - // optional string symbols = 16; public static final int SYMBOLS_FIELD_NUMBER = 16; private java.lang.Object symbols_; + /** * <code>optional string symbols = 16;</code> */ public boolean hasSymbols() { return ((bitField0_ & 0x00008000) == 0x00008000); } + /** * <code>optional string symbols = 16;</code> */ @@ -842,8 +885,8 @@ public final class FileSourceDb { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { symbols_ = s; @@ -851,16 +894,17 @@ public final class FileSourceDb { return s; } } + /** * <code>optional string symbols = 16;</code> */ public com.google.protobuf.ByteString - getSymbolsBytes() { + getSymbolsBytes() { java.lang.Object ref = symbols_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); symbols_ = b; return b; } else { @@ -868,28 +912,31 @@ public final class FileSourceDb { } } - // repeated int32 duplications = 17 [packed = true]; public static final int DUPLICATIONS_FIELD_NUMBER = 17; private java.util.List<java.lang.Integer> duplications_; + /** * <code>repeated int32 duplications = 17 [packed = true];</code> */ public java.util.List<java.lang.Integer> - getDuplicationsList() { + getDuplicationsList() { return duplications_; } + /** * <code>repeated int32 duplications = 17 [packed = true];</code> */ public int getDuplicationsCount() { return duplications_.size(); } + /** * <code>repeated int32 duplications = 17 [packed = true];</code> */ public int getDuplications(int index) { return duplications_.get(index); } + private int duplicationsMemoizedSerializedSize = -1; private void initFields() { @@ -911,17 +958,22 @@ public final class FileSourceDb { symbols_ = ""; duplications_ = java.util.Collections.emptyList(); } + 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; } public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt32(1, line_); @@ -982,9 +1034,11 @@ public final class FileSourceDb { } private int memoizedSerializedSize = -1; + public int getSerializedSize() { int size = memoizedSerializedSize; - if (size != -1) return size; + if (size != -1) + return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { @@ -1061,7 +1115,7 @@ public final class FileSourceDb { if (!getDuplicationsList().isEmpty()) { size += 2; size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); + .computeInt32SizeNoTag(dataSize); } duplicationsMemoizedSerializedSize = dataSize; } @@ -1071,94 +1125,115 @@ public final class FileSourceDb { } private static final long serialVersionUID = 0L; + @java.lang.Override protected java.lang.Object writeReplace() - throws java.io.ObjectStreamException { + throws java.io.ObjectStreamException { return super.writeReplace(); } public static org.sonar.server.source.db.FileSourceDb.Line parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static org.sonar.server.source.db.FileSourceDb.Line parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static org.sonar.server.source.db.FileSourceDb.Line parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static org.sonar.server.source.db.FileSourceDb.Line parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static org.sonar.server.source.db.FileSourceDb.Line parseFrom(java.io.InputStream input) - throws java.io.IOException { + throws java.io.IOException { return PARSER.parseFrom(input); } + public static org.sonar.server.source.db.FileSourceDb.Line parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } + public static org.sonar.server.source.db.FileSourceDb.Line parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { + throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } + public static org.sonar.server.source.db.FileSourceDb.Line parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } + public static org.sonar.server.source.db.FileSourceDb.Line parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { return PARSER.parseFrom(input); } + public static org.sonar.server.source.db.FileSourceDb.Line parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return Builder.create(); + } + + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder(org.sonar.server.source.db.FileSourceDb.Line prototype) { return newBuilder().mergeFrom(prototype); } - public Builder toBuilder() { return newBuilder(this); } + + public Builder toBuilder() { + return newBuilder(this); + } @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } + /** * Protobuf type {@code org.sonar.server.source.db.Line} */ public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder<Builder> - implements org.sonar.server.source.db.FileSourceDb.LineOrBuilder { + com.google.protobuf.GeneratedMessage.Builder<Builder> implements + // @@protoc_insertion_point(builder_implements:org.sonar.server.source.db.Line) + org.sonar.server.source.db.FileSourceDb.LineOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + getDescriptor() { return org.sonar.server.source.db.FileSourceDb.internal_static_org_sonar_server_source_db_Line_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { + internalGetFieldAccessorTable() { return org.sonar.server.source.db.FileSourceDb.internal_static_org_sonar_server_source_db_Line_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.server.source.db.FileSourceDb.Line.class, org.sonar.server.source.db.FileSourceDb.Line.Builder.class); + .ensureFieldAccessorsInitialized( + org.sonar.server.source.db.FileSourceDb.Line.class, org.sonar.server.source.db.FileSourceDb.Line.Builder.class); } // Construct using org.sonar.server.source.db.FileSourceDb.Line.newBuilder() @@ -1167,14 +1242,16 @@ public final class FileSourceDb { } private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } + private static Builder create() { return new Builder(); } @@ -1223,7 +1300,7 @@ public final class FileSourceDb { } public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { + getDescriptorForType() { return org.sonar.server.source.db.FileSourceDb.internal_static_org_sonar_server_source_db_Line_descriptor; } @@ -1319,7 +1396,7 @@ public final class FileSourceDb { public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.sonar.server.source.db.FileSourceDb.Line) { - return mergeFrom((org.sonar.server.source.db.FileSourceDb.Line)other); + return mergeFrom((org.sonar.server.source.db.FileSourceDb.Line) other); } else { super.mergeFrom(other); return this; @@ -1327,7 +1404,8 @@ public final class FileSourceDb { } public Builder mergeFrom(org.sonar.server.source.db.FileSourceDb.Line other) { - if (other == org.sonar.server.source.db.FileSourceDb.Line.getDefaultInstance()) return this; + if (other == org.sonar.server.source.db.FileSourceDb.Line.getDefaultInstance()) + return this; if (other.hasLine()) { setLine(other.getLine()); } @@ -1405,9 +1483,9 @@ public final class FileSourceDb { } public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { org.sonar.server.source.db.FileSourceDb.Line parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); @@ -1421,22 +1499,25 @@ public final class FileSourceDb { } return this; } + private int bitField0_; - // optional int32 line = 1; - private int line_ ; + private int line_; + /** * <code>optional int32 line = 1;</code> */ public boolean hasLine() { return ((bitField0_ & 0x00000001) == 0x00000001); } + /** * <code>optional int32 line = 1;</code> */ public int getLine() { return line_; } + /** * <code>optional int32 line = 1;</code> */ @@ -1446,6 +1527,7 @@ public final class FileSourceDb { onChanged(); return this; } + /** * <code>optional int32 line = 1;</code> */ @@ -1456,57 +1538,64 @@ public final class FileSourceDb { return this; } - // optional string source = 2; private java.lang.Object source_ = ""; + /** * <code>optional string source = 2;</code> */ public boolean hasSource() { return ((bitField0_ & 0x00000002) == 0x00000002); } + /** * <code>optional string source = 2;</code> */ 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; } } + /** * <code>optional string source = 2;</code> */ public com.google.protobuf.ByteString - getSourceBytes() { + getSourceBytes() { java.lang.Object ref = source_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); source_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } + /** * <code>optional string source = 2;</code> */ public Builder setSource( - java.lang.String value) { + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; source_ = value; onChanged(); return this; } + /** * <code>optional string source = 2;</code> */ @@ -1516,22 +1605,23 @@ public final class FileSourceDb { onChanged(); return this; } + /** * <code>optional string source = 2;</code> */ public Builder setSourceBytes( - com.google.protobuf.ByteString value) { + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; source_ = value; onChanged(); return this; } - // optional string scm_revision = 3; private java.lang.Object scmRevision_ = ""; + /** * <code>optional string scm_revision = 3;</code> * @@ -1542,6 +1632,7 @@ public final class FileSourceDb { public boolean hasScmRevision() { return ((bitField0_ & 0x00000004) == 0x00000004); } + /** * <code>optional string scm_revision = 3;</code> * @@ -1552,14 +1643,18 @@ 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; } } + /** * <code>optional string scm_revision = 3;</code> * @@ -1568,18 +1663,19 @@ public final class FileSourceDb { * </pre> */ public com.google.protobuf.ByteString - getScmRevisionBytes() { + getScmRevisionBytes() { java.lang.Object ref = scmRevision_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); scmRevision_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } + /** * <code>optional string scm_revision = 3;</code> * @@ -1588,15 +1684,16 @@ public final class FileSourceDb { * </pre> */ public Builder setScmRevision( - java.lang.String value) { + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; scmRevision_ = value; onChanged(); return this; } + /** * <code>optional string scm_revision = 3;</code> * @@ -1610,6 +1707,7 @@ public final class FileSourceDb { onChanged(); return this; } + /** * <code>optional string scm_revision = 3;</code> * @@ -1618,67 +1716,74 @@ public final class FileSourceDb { * </pre> */ public Builder setScmRevisionBytes( - com.google.protobuf.ByteString value) { + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; scmRevision_ = value; onChanged(); return this; } - // optional string scm_author = 4; private java.lang.Object scmAuthor_ = ""; + /** * <code>optional string scm_author = 4;</code> */ public boolean hasScmAuthor() { return ((bitField0_ & 0x00000008) == 0x00000008); } + /** * <code>optional string scm_author = 4;</code> */ 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; } } + /** * <code>optional string scm_author = 4;</code> */ public com.google.protobuf.ByteString - getScmAuthorBytes() { + getScmAuthorBytes() { java.lang.Object ref = scmAuthor_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); scmAuthor_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } + /** * <code>optional string scm_author = 4;</code> */ public Builder setScmAuthor( - java.lang.String value) { + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; scmAuthor_ = value; onChanged(); return this; } + /** * <code>optional string scm_author = 4;</code> */ @@ -1688,34 +1793,37 @@ public final class FileSourceDb { onChanged(); return this; } + /** * <code>optional string scm_author = 4;</code> */ public Builder setScmAuthorBytes( - com.google.protobuf.ByteString value) { + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; scmAuthor_ = value; onChanged(); return this; } - // optional int64 scm_date = 5; - private long scmDate_ ; + private long scmDate_; + /** * <code>optional int64 scm_date = 5;</code> */ public boolean hasScmDate() { return ((bitField0_ & 0x00000010) == 0x00000010); } + /** * <code>optional int64 scm_date = 5;</code> */ public long getScmDate() { return scmDate_; } + /** * <code>optional int64 scm_date = 5;</code> */ @@ -1725,6 +1833,7 @@ public final class FileSourceDb { onChanged(); return this; } + /** * <code>optional int64 scm_date = 5;</code> */ @@ -1735,8 +1844,8 @@ public final class FileSourceDb { return this; } - // optional int32 ut_line_hits = 6; - private int utLineHits_ ; + private int utLineHits_; + /** * <code>optional int32 ut_line_hits = 6;</code> * @@ -1747,6 +1856,7 @@ public final class FileSourceDb { public boolean hasUtLineHits() { return ((bitField0_ & 0x00000020) == 0x00000020); } + /** * <code>optional int32 ut_line_hits = 6;</code> * @@ -1757,6 +1867,7 @@ public final class FileSourceDb { public int getUtLineHits() { return utLineHits_; } + /** * <code>optional int32 ut_line_hits = 6;</code> * @@ -1770,6 +1881,7 @@ public final class FileSourceDb { onChanged(); return this; } + /** * <code>optional int32 ut_line_hits = 6;</code> * @@ -1784,20 +1896,22 @@ public final class FileSourceDb { return this; } - // optional int32 ut_conditions = 7; - private int utConditions_ ; + private int utConditions_; + /** * <code>optional int32 ut_conditions = 7;</code> */ public boolean hasUtConditions() { return ((bitField0_ & 0x00000040) == 0x00000040); } + /** * <code>optional int32 ut_conditions = 7;</code> */ public int getUtConditions() { return utConditions_; } + /** * <code>optional int32 ut_conditions = 7;</code> */ @@ -1807,6 +1921,7 @@ public final class FileSourceDb { onChanged(); return this; } + /** * <code>optional int32 ut_conditions = 7;</code> */ @@ -1817,20 +1932,22 @@ public final class FileSourceDb { return this; } - // optional int32 ut_covered_conditions = 8; - private int utCoveredConditions_ ; + private int utCoveredConditions_; + /** * <code>optional int32 ut_covered_conditions = 8;</code> */ public boolean hasUtCoveredConditions() { return ((bitField0_ & 0x00000080) == 0x00000080); } + /** * <code>optional int32 ut_covered_conditions = 8;</code> */ public int getUtCoveredConditions() { return utCoveredConditions_; } + /** * <code>optional int32 ut_covered_conditions = 8;</code> */ @@ -1840,6 +1957,7 @@ public final class FileSourceDb { onChanged(); return this; } + /** * <code>optional int32 ut_covered_conditions = 8;</code> */ @@ -1850,8 +1968,8 @@ public final class FileSourceDb { return this; } - // optional int32 it_line_hits = 9; - private int itLineHits_ ; + private int itLineHits_; + /** * <code>optional int32 it_line_hits = 9;</code> * @@ -1862,6 +1980,7 @@ public final class FileSourceDb { public boolean hasItLineHits() { return ((bitField0_ & 0x00000100) == 0x00000100); } + /** * <code>optional int32 it_line_hits = 9;</code> * @@ -1872,6 +1991,7 @@ public final class FileSourceDb { public int getItLineHits() { return itLineHits_; } + /** * <code>optional int32 it_line_hits = 9;</code> * @@ -1885,6 +2005,7 @@ public final class FileSourceDb { onChanged(); return this; } + /** * <code>optional int32 it_line_hits = 9;</code> * @@ -1899,20 +2020,22 @@ public final class FileSourceDb { return this; } - // optional int32 it_conditions = 10; - private int itConditions_ ; + private int itConditions_; + /** * <code>optional int32 it_conditions = 10;</code> */ public boolean hasItConditions() { return ((bitField0_ & 0x00000200) == 0x00000200); } + /** * <code>optional int32 it_conditions = 10;</code> */ public int getItConditions() { return itConditions_; } + /** * <code>optional int32 it_conditions = 10;</code> */ @@ -1922,6 +2045,7 @@ public final class FileSourceDb { onChanged(); return this; } + /** * <code>optional int32 it_conditions = 10;</code> */ @@ -1932,20 +2056,22 @@ public final class FileSourceDb { return this; } - // optional int32 it_covered_conditions = 11; - private int itCoveredConditions_ ; + private int itCoveredConditions_; + /** * <code>optional int32 it_covered_conditions = 11;</code> */ public boolean hasItCoveredConditions() { return ((bitField0_ & 0x00000400) == 0x00000400); } + /** * <code>optional int32 it_covered_conditions = 11;</code> */ public int getItCoveredConditions() { return itCoveredConditions_; } + /** * <code>optional int32 it_covered_conditions = 11;</code> */ @@ -1955,6 +2081,7 @@ public final class FileSourceDb { onChanged(); return this; } + /** * <code>optional int32 it_covered_conditions = 11;</code> */ @@ -1965,8 +2092,8 @@ public final class FileSourceDb { return this; } - // optional int32 overall_line_hits = 12; - private int overallLineHits_ ; + private int overallLineHits_; + /** * <code>optional int32 overall_line_hits = 12;</code> * @@ -1977,6 +2104,7 @@ public final class FileSourceDb { public boolean hasOverallLineHits() { return ((bitField0_ & 0x00000800) == 0x00000800); } + /** * <code>optional int32 overall_line_hits = 12;</code> * @@ -1987,6 +2115,7 @@ public final class FileSourceDb { public int getOverallLineHits() { return overallLineHits_; } + /** * <code>optional int32 overall_line_hits = 12;</code> * @@ -2000,6 +2129,7 @@ public final class FileSourceDb { onChanged(); return this; } + /** * <code>optional int32 overall_line_hits = 12;</code> * @@ -2014,20 +2144,22 @@ public final class FileSourceDb { return this; } - // optional int32 overall_conditions = 13; - private int overallConditions_ ; + private int overallConditions_; + /** * <code>optional int32 overall_conditions = 13;</code> */ public boolean hasOverallConditions() { return ((bitField0_ & 0x00001000) == 0x00001000); } + /** * <code>optional int32 overall_conditions = 13;</code> */ public int getOverallConditions() { return overallConditions_; } + /** * <code>optional int32 overall_conditions = 13;</code> */ @@ -2037,6 +2169,7 @@ public final class FileSourceDb { onChanged(); return this; } + /** * <code>optional int32 overall_conditions = 13;</code> */ @@ -2047,20 +2180,22 @@ public final class FileSourceDb { return this; } - // optional int32 overall_covered_conditions = 14; - private int overallCoveredConditions_ ; + private int overallCoveredConditions_; + /** * <code>optional int32 overall_covered_conditions = 14;</code> */ public boolean hasOverallCoveredConditions() { return ((bitField0_ & 0x00002000) == 0x00002000); } + /** * <code>optional int32 overall_covered_conditions = 14;</code> */ public int getOverallCoveredConditions() { return overallCoveredConditions_; } + /** * <code>optional int32 overall_covered_conditions = 14;</code> */ @@ -2070,6 +2205,7 @@ public final class FileSourceDb { onChanged(); return this; } + /** * <code>optional int32 overall_covered_conditions = 14;</code> */ @@ -2080,57 +2216,64 @@ public final class FileSourceDb { return this; } - // optional string highlighting = 15; private java.lang.Object highlighting_ = ""; + /** * <code>optional string highlighting = 15;</code> */ public boolean hasHighlighting() { return ((bitField0_ & 0x00004000) == 0x00004000); } + /** * <code>optional string highlighting = 15;</code> */ 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; } } + /** * <code>optional string highlighting = 15;</code> */ public com.google.protobuf.ByteString - getHighlightingBytes() { + getHighlightingBytes() { java.lang.Object ref = highlighting_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); highlighting_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } + /** * <code>optional string highlighting = 15;</code> */ public Builder setHighlighting( - java.lang.String value) { + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00004000; + throw new NullPointerException(); + } + bitField0_ |= 0x00004000; highlighting_ = value; onChanged(); return this; } + /** * <code>optional string highlighting = 15;</code> */ @@ -2140,71 +2283,79 @@ public final class FileSourceDb { onChanged(); return this; } + /** * <code>optional string highlighting = 15;</code> */ public Builder setHighlightingBytes( - com.google.protobuf.ByteString value) { + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00004000; + throw new NullPointerException(); + } + bitField0_ |= 0x00004000; highlighting_ = value; onChanged(); return this; } - // optional string symbols = 16; private java.lang.Object symbols_ = ""; + /** * <code>optional string symbols = 16;</code> */ public boolean hasSymbols() { return ((bitField0_ & 0x00008000) == 0x00008000); } + /** * <code>optional string symbols = 16;</code> */ 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; } } + /** * <code>optional string symbols = 16;</code> */ public com.google.protobuf.ByteString - getSymbolsBytes() { + getSymbolsBytes() { java.lang.Object ref = symbols_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); symbols_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } + /** * <code>optional string symbols = 16;</code> */ public Builder setSymbols( - java.lang.String value) { + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00008000; + throw new NullPointerException(); + } + bitField0_ |= 0x00008000; symbols_ = value; onChanged(); return this; } + /** * <code>optional string symbols = 16;</code> */ @@ -2214,57 +2365,63 @@ public final class FileSourceDb { onChanged(); return this; } + /** * <code>optional string symbols = 16;</code> */ public Builder setSymbolsBytes( - com.google.protobuf.ByteString value) { + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00008000; + throw new NullPointerException(); + } + bitField0_ |= 0x00008000; symbols_ = value; onChanged(); return this; } - // repeated int32 duplications = 17 [packed = true]; private java.util.List<java.lang.Integer> duplications_ = java.util.Collections.emptyList(); + private void ensureDuplicationsIsMutable() { if (!((bitField0_ & 0x00010000) == 0x00010000)) { duplications_ = new java.util.ArrayList<java.lang.Integer>(duplications_); bitField0_ |= 0x00010000; - } + } } + /** * <code>repeated int32 duplications = 17 [packed = true];</code> */ public java.util.List<java.lang.Integer> - getDuplicationsList() { + getDuplicationsList() { return java.util.Collections.unmodifiableList(duplications_); } + /** * <code>repeated int32 duplications = 17 [packed = true];</code> */ public int getDuplicationsCount() { return duplications_.size(); } + /** * <code>repeated int32 duplications = 17 [packed = true];</code> */ public int getDuplications(int index) { return duplications_.get(index); } + /** * <code>repeated int32 duplications = 17 [packed = true];</code> */ public Builder setDuplications( - int index, int value) { + int index, int value) { ensureDuplicationsIsMutable(); duplications_.set(index, value); onChanged(); return this; } + /** * <code>repeated int32 duplications = 17 [packed = true];</code> */ @@ -2274,16 +2431,19 @@ public final class FileSourceDb { onChanged(); return this; } + /** * <code>repeated int32 duplications = 17 [packed = true];</code> */ public Builder addAllDuplications( - java.lang.Iterable<? extends java.lang.Integer> values) { + java.lang.Iterable<? extends java.lang.Integer> values) { ensureDuplicationsIsMutable(); - super.addAll(values, duplications_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, duplications_); onChanged(); return this; } + /** * <code>repeated int32 duplications = 17 [packed = true];</code> */ @@ -2305,48 +2465,57 @@ public final class FileSourceDb { // @@protoc_insertion_point(class_scope:org.sonar.server.source.db.Line) } - public interface DataOrBuilder - extends com.google.protobuf.MessageOrBuilder { + public interface DataOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.sonar.server.source.db.Data) + com.google.protobuf.MessageOrBuilder { - // repeated .org.sonar.server.source.db.Line lines = 1; /** * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code> */ - java.util.List<org.sonar.server.source.db.FileSourceDb.Line> - getLinesList(); + java.util.List<org.sonar.server.source.db.FileSourceDb.Line> + getLinesList(); + /** * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code> */ org.sonar.server.source.db.FileSourceDb.Line getLines(int index); + /** * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code> */ int getLinesCount(); + /** * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code> */ - java.util.List<? extends org.sonar.server.source.db.FileSourceDb.LineOrBuilder> - getLinesOrBuilderList(); + java.util.List<? extends org.sonar.server.source.db.FileSourceDb.LineOrBuilder> + getLinesOrBuilderList(); + /** * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code> */ org.sonar.server.source.db.FileSourceDb.LineOrBuilder getLinesOrBuilder( - int index); + int index); } /** * 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); this.unknownFields = builder.getUnknownFields(); } - private Data(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + + private Data(boolean noInit) { + this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } private static final Data defaultInstance; + public static Data getDefaultInstance() { return defaultInstance; } @@ -2356,19 +2525,21 @@ public final class FileSourceDb { } private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + getUnknownFields() { return this.unknownFields; } + private Data( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); + com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { @@ -2379,7 +2550,7 @@ public final class FileSourceDb { break; default: { if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { + extensionRegistry, tag)) { done = true; } break; @@ -2398,7 +2569,7 @@ public final class FileSourceDb { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); + e.getMessage()).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { lines_ = java.util.Collections.unmodifiableList(lines_); @@ -2407,83 +2578,93 @@ public final class FileSourceDb { makeExtensionsImmutable(); } } + public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + getDescriptor() { return org.sonar.server.source.db.FileSourceDb.internal_static_org_sonar_server_source_db_Data_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { + internalGetFieldAccessorTable() { return org.sonar.server.source.db.FileSourceDb.internal_static_org_sonar_server_source_db_Data_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.server.source.db.FileSourceDb.Data.class, org.sonar.server.source.db.FileSourceDb.Data.Builder.class); + .ensureFieldAccessorsInitialized( + org.sonar.server.source.db.FileSourceDb.Data.class, org.sonar.server.source.db.FileSourceDb.Data.Builder.class); } public static com.google.protobuf.Parser<Data> PARSER = - new com.google.protobuf.AbstractParser<Data>() { - public Data parsePartialFrom( + new com.google.protobuf.AbstractParser<Data>() { + public Data parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Data(input, extensionRegistry); - } - }; + return new Data(input, extensionRegistry); + } + }; @java.lang.Override public com.google.protobuf.Parser<Data> getParserForType() { return PARSER; } - // repeated .org.sonar.server.source.db.Line lines = 1; public static final int LINES_FIELD_NUMBER = 1; private java.util.List<org.sonar.server.source.db.FileSourceDb.Line> lines_; + /** * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code> */ public java.util.List<org.sonar.server.source.db.FileSourceDb.Line> getLinesList() { return lines_; } + /** * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code> */ - public java.util.List<? extends org.sonar.server.source.db.FileSourceDb.LineOrBuilder> - getLinesOrBuilderList() { + public java.util.List<? extends org.sonar.server.source.db.FileSourceDb.LineOrBuilder> + getLinesOrBuilderList() { return lines_; } + /** * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code> */ public int getLinesCount() { return lines_.size(); } + /** * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code> */ public org.sonar.server.source.db.FileSourceDb.Line getLines(int index) { return lines_.get(index); } + /** * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code> */ public org.sonar.server.source.db.FileSourceDb.LineOrBuilder getLinesOrBuilder( - int index) { + int index) { return lines_.get(index); } private void initFields() { lines_ = java.util.Collections.emptyList(); } + 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; } public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + throws java.io.IOException { getSerializedSize(); for (int i = 0; i < lines_.size(); i++) { output.writeMessage(1, lines_.get(i)); @@ -2492,9 +2673,11 @@ public final class FileSourceDb { } private int memoizedSerializedSize = -1; + public int getSerializedSize() { int size = memoizedSerializedSize; - if (size != -1) return size; + if (size != -1) + return size; size = 0; for (int i = 0; i < lines_.size(); i++) { @@ -2507,94 +2690,115 @@ public final class FileSourceDb { } private static final long serialVersionUID = 0L; + @java.lang.Override protected java.lang.Object writeReplace() - throws java.io.ObjectStreamException { + throws java.io.ObjectStreamException { return super.writeReplace(); } public static org.sonar.server.source.db.FileSourceDb.Data parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static org.sonar.server.source.db.FileSourceDb.Data parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static org.sonar.server.source.db.FileSourceDb.Data parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static org.sonar.server.source.db.FileSourceDb.Data parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static org.sonar.server.source.db.FileSourceDb.Data parseFrom(java.io.InputStream input) - throws java.io.IOException { + throws java.io.IOException { return PARSER.parseFrom(input); } + public static org.sonar.server.source.db.FileSourceDb.Data parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } + public static org.sonar.server.source.db.FileSourceDb.Data parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { + throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } + public static org.sonar.server.source.db.FileSourceDb.Data parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } + public static org.sonar.server.source.db.FileSourceDb.Data parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { return PARSER.parseFrom(input); } + public static org.sonar.server.source.db.FileSourceDb.Data parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return Builder.create(); + } + + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder(org.sonar.server.source.db.FileSourceDb.Data prototype) { return newBuilder().mergeFrom(prototype); } - public Builder toBuilder() { return newBuilder(this); } + + public Builder toBuilder() { + return newBuilder(this); + } @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } + /** * Protobuf type {@code org.sonar.server.source.db.Data} */ public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder<Builder> - implements org.sonar.server.source.db.FileSourceDb.DataOrBuilder { + com.google.protobuf.GeneratedMessage.Builder<Builder> implements + // @@protoc_insertion_point(builder_implements:org.sonar.server.source.db.Data) + org.sonar.server.source.db.FileSourceDb.DataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + getDescriptor() { return org.sonar.server.source.db.FileSourceDb.internal_static_org_sonar_server_source_db_Data_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { + internalGetFieldAccessorTable() { return org.sonar.server.source.db.FileSourceDb.internal_static_org_sonar_server_source_db_Data_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.server.source.db.FileSourceDb.Data.class, org.sonar.server.source.db.FileSourceDb.Data.Builder.class); + .ensureFieldAccessorsInitialized( + org.sonar.server.source.db.FileSourceDb.Data.class, org.sonar.server.source.db.FileSourceDb.Data.Builder.class); } // Construct using org.sonar.server.source.db.FileSourceDb.Data.newBuilder() @@ -2603,15 +2807,17 @@ public final class FileSourceDb { } private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getLinesFieldBuilder(); } } + private static Builder create() { return new Builder(); } @@ -2632,7 +2838,7 @@ public final class FileSourceDb { } public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { + getDescriptorForType() { return org.sonar.server.source.db.FileSourceDb.internal_static_org_sonar_server_source_db_Data_descriptor; } @@ -2666,7 +2872,7 @@ public final class FileSourceDb { public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.sonar.server.source.db.FileSourceDb.Data) { - return mergeFrom((org.sonar.server.source.db.FileSourceDb.Data)other); + return mergeFrom((org.sonar.server.source.db.FileSourceDb.Data) other); } else { super.mergeFrom(other); return this; @@ -2674,7 +2880,8 @@ public final class FileSourceDb { } public Builder mergeFrom(org.sonar.server.source.db.FileSourceDb.Data other) { - if (other == org.sonar.server.source.db.FileSourceDb.Data.getDefaultInstance()) return this; + if (other == org.sonar.server.source.db.FileSourceDb.Data.getDefaultInstance()) + return this; if (linesBuilder_ == null) { if (!other.lines_.isEmpty()) { if (lines_.isEmpty()) { @@ -2693,9 +2900,9 @@ public final class FileSourceDb { linesBuilder_ = null; lines_ = other.lines_; bitField0_ = (bitField0_ & ~0x00000001); - linesBuilder_ = + linesBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getLinesFieldBuilder() : null; + getLinesFieldBuilder() : null; } else { linesBuilder_.addAllMessages(other.lines_); } @@ -2710,9 +2917,9 @@ public final class FileSourceDb { } public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { org.sonar.server.source.db.FileSourceDb.Data parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); @@ -2726,20 +2933,20 @@ public final class FileSourceDb { } return this; } + private int bitField0_; - // repeated .org.sonar.server.source.db.Line lines = 1; private java.util.List<org.sonar.server.source.db.FileSourceDb.Line> lines_ = java.util.Collections.emptyList(); + private void ensureLinesIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { lines_ = new java.util.ArrayList<org.sonar.server.source.db.FileSourceDb.Line>(lines_); bitField0_ |= 0x00000001; - } + } } - private com.google.protobuf.RepeatedFieldBuilder< - org.sonar.server.source.db.FileSourceDb.Line, org.sonar.server.source.db.FileSourceDb.Line.Builder, org.sonar.server.source.db.FileSourceDb.LineOrBuilder> linesBuilder_; + private com.google.protobuf.RepeatedFieldBuilder<org.sonar.server.source.db.FileSourceDb.Line, org.sonar.server.source.db.FileSourceDb.Line.Builder, org.sonar.server.source.db.FileSourceDb.LineOrBuilder> linesBuilder_; /** * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code> @@ -2751,6 +2958,7 @@ public final class FileSourceDb { return linesBuilder_.getMessageList(); } } + /** * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code> */ @@ -2761,6 +2969,7 @@ public final class FileSourceDb { return linesBuilder_.getCount(); } } + /** * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code> */ @@ -2771,11 +2980,12 @@ public final class FileSourceDb { return linesBuilder_.getMessage(index); } } + /** * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code> */ public Builder setLines( - int index, org.sonar.server.source.db.FileSourceDb.Line value) { + int index, org.sonar.server.source.db.FileSourceDb.Line value) { if (linesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2788,11 +2998,12 @@ public final class FileSourceDb { } return this; } + /** * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code> */ public Builder setLines( - int index, org.sonar.server.source.db.FileSourceDb.Line.Builder builderForValue) { + int index, org.sonar.server.source.db.FileSourceDb.Line.Builder builderForValue) { if (linesBuilder_ == null) { ensureLinesIsMutable(); lines_.set(index, builderForValue.build()); @@ -2802,6 +3013,7 @@ public final class FileSourceDb { } return this; } + /** * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code> */ @@ -2818,11 +3030,12 @@ public final class FileSourceDb { } return this; } + /** * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code> */ public Builder addLines( - int index, org.sonar.server.source.db.FileSourceDb.Line value) { + int index, org.sonar.server.source.db.FileSourceDb.Line value) { if (linesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2835,11 +3048,12 @@ public final class FileSourceDb { } return this; } + /** * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code> */ public Builder addLines( - org.sonar.server.source.db.FileSourceDb.Line.Builder builderForValue) { + org.sonar.server.source.db.FileSourceDb.Line.Builder builderForValue) { if (linesBuilder_ == null) { ensureLinesIsMutable(); lines_.add(builderForValue.build()); @@ -2849,11 +3063,12 @@ public final class FileSourceDb { } return this; } + /** * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code> */ public Builder addLines( - int index, org.sonar.server.source.db.FileSourceDb.Line.Builder builderForValue) { + int index, org.sonar.server.source.db.FileSourceDb.Line.Builder builderForValue) { if (linesBuilder_ == null) { ensureLinesIsMutable(); lines_.add(index, builderForValue.build()); @@ -2863,20 +3078,23 @@ public final class FileSourceDb { } return this; } + /** * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code> */ public Builder addAllLines( - java.lang.Iterable<? extends org.sonar.server.source.db.FileSourceDb.Line> values) { + java.lang.Iterable<? extends org.sonar.server.source.db.FileSourceDb.Line> values) { if (linesBuilder_ == null) { ensureLinesIsMutable(); - super.addAll(values, lines_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, lines_); onChanged(); } else { linesBuilder_.addAllMessages(values); } return this; } + /** * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code> */ @@ -2890,6 +3108,7 @@ public final class FileSourceDb { } return this; } + /** * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code> */ @@ -2903,66 +3122,74 @@ public final class FileSourceDb { } return this; } + /** * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code> */ public org.sonar.server.source.db.FileSourceDb.Line.Builder getLinesBuilder( - int index) { + int index) { return getLinesFieldBuilder().getBuilder(index); } + /** * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code> */ public org.sonar.server.source.db.FileSourceDb.LineOrBuilder getLinesOrBuilder( - int index) { + int index) { if (linesBuilder_ == null) { - return lines_.get(index); } else { + return lines_.get(index); + } else { return linesBuilder_.getMessageOrBuilder(index); } } + /** * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code> */ - public java.util.List<? extends org.sonar.server.source.db.FileSourceDb.LineOrBuilder> - getLinesOrBuilderList() { + public java.util.List<? extends org.sonar.server.source.db.FileSourceDb.LineOrBuilder> + getLinesOrBuilderList() { if (linesBuilder_ != null) { return linesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(lines_); } } + /** * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code> */ public org.sonar.server.source.db.FileSourceDb.Line.Builder addLinesBuilder() { return getLinesFieldBuilder().addBuilder( - org.sonar.server.source.db.FileSourceDb.Line.getDefaultInstance()); + org.sonar.server.source.db.FileSourceDb.Line.getDefaultInstance()); } + /** * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code> */ public org.sonar.server.source.db.FileSourceDb.Line.Builder addLinesBuilder( - int index) { + int index) { return getLinesFieldBuilder().addBuilder( - index, org.sonar.server.source.db.FileSourceDb.Line.getDefaultInstance()); + index, org.sonar.server.source.db.FileSourceDb.Line.getDefaultInstance()); } + /** * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code> */ - public java.util.List<org.sonar.server.source.db.FileSourceDb.Line.Builder> - getLinesBuilderList() { + public java.util.List<org.sonar.server.source.db.FileSourceDb.Line.Builder> + getLinesBuilderList() { return getLinesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilder< - org.sonar.server.source.db.FileSourceDb.Line, org.sonar.server.source.db.FileSourceDb.Line.Builder, org.sonar.server.source.db.FileSourceDb.LineOrBuilder> - getLinesFieldBuilder() { + org.sonar.server.source.db.FileSourceDb.Line, org.sonar.server.source.db.FileSourceDb.Line.Builder, org.sonar.server.source.db.FileSourceDb.LineOrBuilder> + getLinesFieldBuilder() { if (linesBuilder_ == null) { linesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - org.sonar.server.source.db.FileSourceDb.Line, org.sonar.server.source.db.FileSourceDb.Line.Builder, org.sonar.server.source.db.FileSourceDb.LineOrBuilder>( - lines_, - ((bitField0_ & 0x00000001) == 0x00000001), - getParentForChildren(), - isClean()); + org.sonar.server.source.db.FileSourceDb.Line, org.sonar.server.source.db.FileSourceDb.Line.Builder, org.sonar.server.source.db.FileSourceDb.LineOrBuilder>( + lines_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); lines_ = null; } return linesBuilder_; @@ -2979,56 +3206,38 @@ public final class FileSourceDb { // @@protoc_insertion_point(class_scope:org.sonar.server.source.db.Data) } - private static com.google.protobuf.Descriptors.Descriptor - internal_static_org_sonar_server_source_db_Line_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_org_sonar_server_source_db_Line_fieldAccessorTable; - private static 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 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 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; public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { + getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n\024file_source_db.proto\022\032org.sonar.server" + - ".source.db\"\224\003\n\004Line\022\014\n\004line\030\001 \001(\005\022\016\n\006sou" + - "rce\030\002 \001(\t\022\024\n\014scm_revision\030\003 \001(\t\022\022\n\nscm_a" + - "uthor\030\004 \001(\t\022\020\n\010scm_date\030\005 \001(\003\022\024\n\014ut_line" + - "_hits\030\006 \001(\005\022\025\n\rut_conditions\030\007 \001(\005\022\035\n\025ut" + - "_covered_conditions\030\010 \001(\005\022\024\n\014it_line_hit" + - "s\030\t \001(\005\022\025\n\rit_conditions\030\n \001(\005\022\035\n\025it_cov" + - "ered_conditions\030\013 \001(\005\022\031\n\021overall_line_hi" + - "ts\030\014 \001(\005\022\032\n\022overall_conditions\030\r \001(\005\022\"\n\032" + - "overall_covered_conditions\030\016 \001(\005\022\024\n\014high", + ".source.db\"\224\003\n\004Line\022\014\n\004line\030\001 \001(\005\022\016\n\006sou" + + "rce\030\002 \001(\t\022\024\n\014scm_revision\030\003 \001(\t\022\022\n\nscm_a" + + "uthor\030\004 \001(\t\022\020\n\010scm_date\030\005 \001(\003\022\024\n\014ut_line" + + "_hits\030\006 \001(\005\022\025\n\rut_conditions\030\007 \001(\005\022\035\n\025ut" + + "_covered_conditions\030\010 \001(\005\022\024\n\014it_line_hit" + + "s\030\t \001(\005\022\025\n\rit_conditions\030\n \001(\005\022\035\n\025it_cov" + + "ered_conditions\030\013 \001(\005\022\031\n\021overall_line_hi" + + "ts\030\014 \001(\005\022\032\n\022overall_conditions\030\r \001(\005\022\"\n\032" + + "overall_covered_conditions\030\016 \001(\005\022\024\n\014high", "lighting\030\017 \001(\t\022\017\n\007symbols\030\020 \001(\t\022\030\n\014dupli" + - "cations\030\021 \003(\005B\002\020\001\"7\n\004Data\022/\n\005lines\030\001 \003(\013" + - "2 .org.sonar.server.source.db.LineB\002H\001" + "cations\030\021 \003(\005B\002\020\001\"7\n\004Data\022/\n\005lines\030\001 \003(\013" + + "2 .org.sonar.server.source.db.LineB\002H\001" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { + com.google.protobuf.Descriptors.FileDescriptor root) { descriptor = root; - internal_static_org_sonar_server_source_db_Line_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_org_sonar_server_source_db_Line_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_org_sonar_server_source_db_Line_descriptor, - new java.lang.String[] { "Line", "Source", "ScmRevision", "ScmAuthor", "ScmDate", "UtLineHits", "UtConditions", "UtCoveredConditions", "ItLineHits", "ItConditions", "ItCoveredConditions", "OverallLineHits", "OverallConditions", "OverallCoveredConditions", "Highlighting", "Symbols", "Duplications", }); - internal_static_org_sonar_server_source_db_Data_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_org_sonar_server_source_db_Data_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_org_sonar_server_source_db_Data_descriptor, - new java.lang.String[] { "Lines", }); return null; } }; @@ -3036,6 +3245,19 @@ public final class FileSourceDb { .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { }, assigner); + internal_static_org_sonar_server_source_db_Line_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_org_sonar_server_source_db_Line_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_org_sonar_server_source_db_Line_descriptor, + new java.lang.String[] {"Line", "Source", "ScmRevision", "ScmAuthor", "ScmDate", "UtLineHits", "UtConditions", "UtCoveredConditions", "ItLineHits", "ItConditions", + "ItCoveredConditions", "OverallLineHits", "OverallConditions", "OverallCoveredConditions", "Highlighting", "Symbols", "Duplications",}); + internal_static_org_sonar_server_source_db_Data_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_org_sonar_server_source_db_Data_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_org_sonar_server_source_db_Data_descriptor, + new java.lang.String[] {"Lines",}); } // @@protoc_insertion_point(outer_class_scope) diff --git a/sonar-batch-protocol/src/main/protobuf/batch_report.proto b/sonar-batch-protocol/src/main/protobuf/batch_report.proto index 546f33f86fb..58ba5c532d4 100644 --- a/sonar-batch-protocol/src/main/protobuf/batch_report.proto +++ b/sonar-batch-protocol/src/main/protobuf/batch_report.proto @@ -48,6 +48,11 @@ message Metadata { optional int32 deleted_components_count = 5; } +message ComponentLink { + optional ComponentLinkType type = 1; + optional string href = 2; +} + message Component { optional int32 ref = 1; optional string path = 2; @@ -56,6 +61,7 @@ message Component { optional bool is_test = 5; optional string language = 6; repeated int32 child_refs = 7 [packed=true]; + repeated ComponentLink links = 10; // temporary fields during development of computation stack optional int32 snapshot_id = 8; diff --git a/sonar-batch-protocol/src/main/protobuf/constants.proto b/sonar-batch-protocol/src/main/protobuf/constants.proto index 3cbc886accd..e4e06eb0570 100644 --- a/sonar-batch-protocol/src/main/protobuf/constants.proto +++ b/sonar-batch-protocol/src/main/protobuf/constants.proto @@ -37,3 +37,11 @@ enum ComponentType { VIEW = 4; SUBVIEW = 5; } + +enum ComponentLinkType { + HOME = 0; + SCM = 1; + SCM_DEV = 2; + ISSUE = 3; + CI = 4; +} |