diff options
author | Julien HENRY <julien.henry@sonarsource.com> | 2015-03-16 16:06:38 +0100 |
---|---|---|
committer | Julien HENRY <julien.henry@sonarsource.com> | 2015-03-16 16:06:38 +0100 |
commit | bf4a0225b21f6eebd60e05d1aa963a6b4007c13b (patch) | |
tree | a4b0b614f6e896222988d7ce61e671ebe2eab535 /sonar-batch-protocol | |
parent | 07018b840638267e75af62f13c34ee67a691f988 (diff) | |
download | sonarqube-bf4a0225b21f6eebd60e05d1aa963a6b4007c13b.tar.gz sonarqube-bf4a0225b21f6eebd60e05d1aa963a6b4007c13b.zip |
Apply naming convention for repeated protobuf attributes
Diffstat (limited to 'sonar-batch-protocol')
10 files changed, 2468 insertions, 3499 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 91df158ede1..bb13257ef3e 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,18 +4,15 @@ 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> */ @@ -35,7 +32,8 @@ public final class Constants { /** * <code>BLOCKER = 4;</code> */ - BLOCKER(4, 4), ; + BLOCKER(4, 4), + ; /** * <code>INFO = 0;</code> @@ -58,58 +56,49 @@ 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."); @@ -132,7 +121,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> */ @@ -156,7 +145,8 @@ public final class Constants { /** * <code>SUBVIEW = 5;</code> */ - SUBVIEW(5, 5), ; + SUBVIEW(5, 5), + ; /** * <code>PROJECT = 0;</code> @@ -183,60 +173,50 @@ 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."); @@ -259,7 +239,7 @@ public final class Constants { * Protobuf enum {@code ComponentLinkType} */ public enum ComponentLinkType - implements com.google.protobuf.ProtocolMessageEnum { + implements com.google.protobuf.ProtocolMessageEnum { /** * <code>HOME = 0;</code> */ @@ -279,7 +259,8 @@ public final class Constants { /** * <code>CI = 4;</code> */ - CI(4, 4), ; + CI(4, 4), + ; /** * <code>HOME = 0;</code> @@ -302,58 +283,49 @@ public final class Constants { */ public static final int CI_VALUE = 4; - public final int getNumber() { - return value; - } + + 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; + 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() { + 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); - } - }; + 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() { + 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(2); } private static final ComponentLinkType[] VALUES = values(); public static ComponentLinkType 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."); @@ -372,26 +344,27 @@ public final class Constants { // @@protoc_insertion_point(enum_scope:ComponentLinkType) } + 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\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\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" + "\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 5e35e980038..6ecbcc83d31 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,212 +4,198 @@ 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 { - public interface ServerIssueOrBuilder extends - // @@protoc_insertion_point(interface_extends:ServerIssue) - com.google.protobuf.MessageOrBuilder { - + // optional string key = 1; /** * <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> */ @@ -219,21 +205,16 @@ public final class BatchInput { * Protobuf type {@code ServerIssue} */ public static final class ServerIssue extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:ServerIssue) - ServerIssueOrBuilder { + com.google.protobuf.GeneratedMessage + implements ServerIssueOrBuilder { // Use ServerIssue.newBuilder() to construct. private ServerIssue(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } - - private ServerIssue(boolean noInit) { - this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } + private ServerIssue(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final ServerIssue defaultInstance; - public static ServerIssue getDefaultInstance() { return defaultInstance; } @@ -243,21 +224,19 @@ public final class BatchInput { } private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + getUnknownFields() { return this.unknownFields; } - private ServerIssue( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); + com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { @@ -268,39 +247,34 @@ 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_ = bs; + key_ = input.readBytes(); break; } case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; - moduleKey_ = bs; + moduleKey_ = input.readBytes(); break; } case 26: { - com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000004; - path_ = bs; + path_ = input.readBytes(); break; } case 34: { - com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000008; - ruleRepository_ = bs; + ruleRepository_ = input.readBytes(); break; } case 42: { - com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000010; - ruleKey_ = bs; + ruleKey_ = input.readBytes(); break; } case 48: { @@ -309,9 +283,8 @@ public final class BatchInput { break; } case 58: { - com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000040; - msg_ = bs; + msg_ = input.readBytes(); break; } case 64: { @@ -331,27 +304,23 @@ public final class BatchInput { break; } case 82: { - com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000200; - resolution_ = bs; + resolution_ = input.readBytes(); break; } case 90: { - com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000400; - status_ = bs; + status_ = input.readBytes(); break; } case 98: { - com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000800; - checksum_ = bs; + checksum_ = input.readBytes(); break; } case 106: { - com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00001000; - assigneeLogin_ = bs; + assigneeLogin_ = input.readBytes(); break; } case 112: { @@ -365,34 +334,33 @@ public final class BatchInput { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); + e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + getDescriptor() { return org.sonar.batch.protocol.input.BatchInput.internal_static_ServerIssue_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { + internalGetFieldAccessorTable() { return org.sonar.batch.protocol.input.BatchInput.internal_static_ServerIssue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.batch.protocol.input.BatchInput.ServerIssue.class, org.sonar.batch.protocol.input.BatchInput.ServerIssue.Builder.class); + .ensureFieldAccessorsInitialized( + org.sonar.batch.protocol.input.BatchInput.ServerIssue.class, org.sonar.batch.protocol.input.BatchInput.ServerIssue.Builder.class); } public static com.google.protobuf.Parser<ServerIssue> PARSER = - new com.google.protobuf.AbstractParser<ServerIssue>() { - public ServerIssue parsePartialFrom( + new com.google.protobuf.AbstractParser<ServerIssue>() { + public ServerIssue parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ServerIssue(input, extensionRegistry); - } - }; + return new ServerIssue(input, extensionRegistry); + } + }; @java.lang.Override public com.google.protobuf.Parser<ServerIssue> getParserForType() { @@ -400,16 +368,15 @@ 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> */ @@ -418,8 +385,8 @@ public final class BatchInput { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { key_ = s; @@ -427,17 +394,16 @@ public final class BatchInput { return s; } } - /** * <code>optional string key = 1;</code> */ public com.google.protobuf.ByteString - getKeyBytes() { + getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); key_ = b; return b; } else { @@ -445,16 +411,15 @@ 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> */ @@ -463,8 +428,8 @@ public final class BatchInput { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { moduleKey_ = s; @@ -472,17 +437,16 @@ public final class BatchInput { return s; } } - /** * <code>optional string module_key = 2;</code> */ public com.google.protobuf.ByteString - getModuleKeyBytes() { + getModuleKeyBytes() { java.lang.Object ref = moduleKey_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); moduleKey_ = b; return b; } else { @@ -490,16 +454,15 @@ 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> */ @@ -508,8 +471,8 @@ public final class BatchInput { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { path_ = s; @@ -517,17 +480,16 @@ public final class BatchInput { return s; } } - /** * <code>optional string path = 3;</code> */ public com.google.protobuf.ByteString - getPathBytes() { + getPathBytes() { java.lang.Object ref = path_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); path_ = b; return b; } else { @@ -535,16 +497,15 @@ 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> */ @@ -553,8 +514,8 @@ public final class BatchInput { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { ruleRepository_ = s; @@ -562,17 +523,16 @@ public final class BatchInput { return s; } } - /** * <code>optional string rule_repository = 4;</code> */ public com.google.protobuf.ByteString - getRuleRepositoryBytes() { + getRuleRepositoryBytes() { java.lang.Object ref = ruleRepository_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); ruleRepository_ = b; return b; } else { @@ -580,16 +540,15 @@ 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> */ @@ -598,8 +557,8 @@ public final class BatchInput { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { ruleKey_ = s; @@ -607,17 +566,16 @@ public final class BatchInput { return s; } } - /** * <code>optional string rule_key = 5;</code> */ public com.google.protobuf.ByteString - getRuleKeyBytes() { + getRuleKeyBytes() { java.lang.Object ref = ruleKey_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); ruleKey_ = b; return b; } else { @@ -625,16 +583,15 @@ 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> */ @@ -642,16 +599,15 @@ 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> */ @@ -660,8 +616,8 @@ public final class BatchInput { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { msg_ = s; @@ -669,17 +625,16 @@ public final class BatchInput { return s; } } - /** * <code>optional string msg = 7;</code> */ public com.google.protobuf.ByteString - getMsgBytes() { + getMsgBytes() { java.lang.Object ref = msg_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); msg_ = b; return b; } else { @@ -687,16 +642,15 @@ 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> */ @@ -704,16 +658,15 @@ 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> */ @@ -721,16 +674,15 @@ 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> */ @@ -739,8 +691,8 @@ public final class BatchInput { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { resolution_ = s; @@ -748,17 +700,16 @@ public final class BatchInput { return s; } } - /** * <code>optional string resolution = 10;</code> */ public com.google.protobuf.ByteString - getResolutionBytes() { + getResolutionBytes() { java.lang.Object ref = resolution_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resolution_ = b; return b; } else { @@ -766,16 +717,15 @@ 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> */ @@ -784,8 +734,8 @@ public final class BatchInput { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { status_ = s; @@ -793,17 +743,16 @@ public final class BatchInput { return s; } } - /** * <code>optional string status = 11;</code> */ public com.google.protobuf.ByteString - getStatusBytes() { + getStatusBytes() { java.lang.Object ref = status_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); status_ = b; return b; } else { @@ -811,16 +760,15 @@ 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> */ @@ -829,8 +777,8 @@ public final class BatchInput { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { checksum_ = s; @@ -838,17 +786,16 @@ public final class BatchInput { return s; } } - /** * <code>optional string checksum = 12;</code> */ public com.google.protobuf.ByteString - getChecksumBytes() { + getChecksumBytes() { java.lang.Object ref = checksum_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); checksum_ = b; return b; } else { @@ -856,16 +803,15 @@ 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> */ @@ -874,8 +820,8 @@ public final class BatchInput { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { assigneeLogin_ = s; @@ -883,17 +829,16 @@ public final class BatchInput { return s; } } - /** * <code>optional string assignee_login = 13;</code> */ public com.google.protobuf.ByteString - getAssigneeLoginBytes() { + getAssigneeLoginBytes() { java.lang.Object ref = assigneeLogin_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); assigneeLogin_ = b; return b; } else { @@ -901,16 +846,15 @@ 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> */ @@ -934,22 +878,17 @@ public final class BatchInput { assigneeLogin_ = ""; creationDate_ = 0L; } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) - return true; - if (isInitialized == 0) - return false; + if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getKeyBytes()); @@ -997,11 +936,9 @@ public final class BatchInput { } private int memoizedSerializedSize = -1; - public int getSerializedSize() { int size = memoizedSerializedSize; - if (size != -1) - return size; + if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { @@ -1066,115 +1003,94 @@ public final class BatchInput { } private static final long serialVersionUID = 0L; - @java.lang.Override protected java.lang.Object writeReplace() - throws java.io.ObjectStreamException { + throws java.io.ObjectStreamException { return super.writeReplace(); } public static org.sonar.batch.protocol.input.BatchInput.ServerIssue parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.sonar.batch.protocol.input.BatchInput.ServerIssue parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.sonar.batch.protocol.input.BatchInput.ServerIssue parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.sonar.batch.protocol.input.BatchInput.ServerIssue parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.sonar.batch.protocol.input.BatchInput.ServerIssue parseFrom(java.io.InputStream input) - throws java.io.IOException { + throws java.io.IOException { return PARSER.parseFrom(input); } - public static org.sonar.batch.protocol.input.BatchInput.ServerIssue parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } - public static org.sonar.batch.protocol.input.BatchInput.ServerIssue parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { + throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } - public static org.sonar.batch.protocol.input.BatchInput.ServerIssue parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } - public static org.sonar.batch.protocol.input.BatchInput.ServerIssue parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { return PARSER.parseFrom(input); } - public static org.sonar.batch.protocol.input.BatchInput.ServerIssue parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } - public static Builder newBuilder() { - return Builder.create(); - } - - public Builder newBuilderForType() { - return newBuilder(); - } - + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(org.sonar.batch.protocol.input.BatchInput.ServerIssue prototype) { return newBuilder().mergeFrom(prototype); } - - public Builder toBuilder() { - return newBuilder(this); - } + public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** * Protobuf type {@code ServerIssue} */ public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:ServerIssue) - org.sonar.batch.protocol.input.BatchInput.ServerIssueOrBuilder { + com.google.protobuf.GeneratedMessage.Builder<Builder> + implements org.sonar.batch.protocol.input.BatchInput.ServerIssueOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + getDescriptor() { return org.sonar.batch.protocol.input.BatchInput.internal_static_ServerIssue_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { + internalGetFieldAccessorTable() { return org.sonar.batch.protocol.input.BatchInput.internal_static_ServerIssue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.batch.protocol.input.BatchInput.ServerIssue.class, org.sonar.batch.protocol.input.BatchInput.ServerIssue.Builder.class); + .ensureFieldAccessorsInitialized( + org.sonar.batch.protocol.input.BatchInput.ServerIssue.class, org.sonar.batch.protocol.input.BatchInput.ServerIssue.Builder.class); } // Construct using org.sonar.batch.protocol.input.BatchInput.ServerIssue.newBuilder() @@ -1183,16 +1099,14 @@ public final class BatchInput { } private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } - private static Builder create() { return new Builder(); } @@ -1235,7 +1149,7 @@ public final class BatchInput { } public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { + getDescriptorForType() { return org.sonar.batch.protocol.input.BatchInput.internal_static_ServerIssue_descriptor; } @@ -1318,7 +1232,7 @@ public final class BatchInput { public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.sonar.batch.protocol.input.BatchInput.ServerIssue) { - return mergeFrom((org.sonar.batch.protocol.input.BatchInput.ServerIssue) other); + return mergeFrom((org.sonar.batch.protocol.input.BatchInput.ServerIssue)other); } else { super.mergeFrom(other); return this; @@ -1326,8 +1240,7 @@ public final class BatchInput { } public Builder mergeFrom(org.sonar.batch.protocol.input.BatchInput.ServerIssue other) { - if (other == org.sonar.batch.protocol.input.BatchInput.ServerIssue.getDefaultInstance()) - return this; + if (other == org.sonar.batch.protocol.input.BatchInput.ServerIssue.getDefaultInstance()) return this; if (other.hasKey()) { bitField0_ |= 0x00000001; key_ = other.key_; @@ -1399,9 +1312,9 @@ public final class BatchInput { } public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { org.sonar.batch.protocol.input.BatchInput.ServerIssue parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); @@ -1415,67 +1328,59 @@ 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)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - key_ = s; - } + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + 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> */ @@ -1485,79 +1390,71 @@ 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)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - moduleKey_ = s; - } + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + 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> */ @@ -1567,79 +1464,71 @@ 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)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - path_ = s; - } + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + path_ = s; return s; } else { return (java.lang.String) ref; } } - /** * <code>optional string path = 3;</code> */ public com.google.protobuf.ByteString - getPathBytes() { + getPathBytes() { java.lang.Object ref = path_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); path_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - /** * <code>optional string path = 3;</code> */ public Builder setPath( - java.lang.String value) { + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; path_ = value; onChanged(); return this; } - /** * <code>optional string path = 3;</code> */ @@ -1649,79 +1538,71 @@ 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)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - ruleRepository_ = s; - } + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + ruleRepository_ = s; return s; } else { return (java.lang.String) ref; } } - /** * <code>optional string rule_repository = 4;</code> */ public com.google.protobuf.ByteString - getRuleRepositoryBytes() { + getRuleRepositoryBytes() { java.lang.Object ref = ruleRepository_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); ruleRepository_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - /** * <code>optional string rule_repository = 4;</code> */ public Builder setRuleRepository( - java.lang.String value) { + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; ruleRepository_ = value; onChanged(); return this; } - /** * <code>optional string rule_repository = 4;</code> */ @@ -1731,79 +1612,71 @@ 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)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - ruleKey_ = s; - } + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + ruleKey_ = s; return s; } else { return (java.lang.String) ref; } } - /** * <code>optional string rule_key = 5;</code> */ public com.google.protobuf.ByteString - getRuleKeyBytes() { + getRuleKeyBytes() { java.lang.Object ref = ruleKey_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); ruleKey_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - /** * <code>optional string rule_key = 5;</code> */ public Builder setRuleKey( - java.lang.String value) { + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; ruleKey_ = value; onChanged(); return this; } - /** * <code>optional string rule_key = 5;</code> */ @@ -1813,37 +1686,34 @@ public final class BatchInput { onChanged(); return this; } - /** * <code>optional string rule_key = 5;</code> */ public Builder setRuleKeyBytes( - com.google.protobuf.ByteString value) { + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; ruleKey_ = value; onChanged(); return this; } - private int line_; - + // optional int32 line = 6; + private int line_ ; /** * <code>optional int32 line = 6;</code> */ public boolean hasLine() { return ((bitField0_ & 0x00000020) == 0x00000020); } - /** * <code>optional int32 line = 6;</code> */ public int getLine() { return line_; } - /** * <code>optional int32 line = 6;</code> */ @@ -1853,7 +1723,6 @@ public final class BatchInput { onChanged(); return this; } - /** * <code>optional int32 line = 6;</code> */ @@ -1864,64 +1733,57 @@ 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)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - msg_ = s; - } + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + msg_ = s; return s; } else { return (java.lang.String) ref; } } - /** * <code>optional string msg = 7;</code> */ public com.google.protobuf.ByteString - getMsgBytes() { + getMsgBytes() { java.lang.Object ref = msg_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); msg_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - /** * <code>optional string msg = 7;</code> */ public Builder setMsg( - java.lang.String value) { + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000040; + throw new NullPointerException(); + } + bitField0_ |= 0x00000040; msg_ = value; onChanged(); return this; } - /** * <code>optional string msg = 7;</code> */ @@ -1931,37 +1793,34 @@ 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> */ @@ -1974,7 +1833,6 @@ public final class BatchInput { onChanged(); return this; } - /** * <code>optional .Severity severity = 8;</code> */ @@ -1985,22 +1843,20 @@ public final class BatchInput { return this; } - private boolean manualSeverity_; - + // optional bool manual_severity = 9; + private boolean manualSeverity_ ; /** * <code>optional bool manual_severity = 9;</code> */ public boolean hasManualSeverity() { return ((bitField0_ & 0x00000100) == 0x00000100); } - /** * <code>optional bool manual_severity = 9;</code> */ public boolean getManualSeverity() { return manualSeverity_; } - /** * <code>optional bool manual_severity = 9;</code> */ @@ -2010,7 +1866,6 @@ public final class BatchInput { onChanged(); return this; } - /** * <code>optional bool manual_severity = 9;</code> */ @@ -2021,64 +1876,57 @@ 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)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - resolution_ = s; - } + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + resolution_ = s; return s; } else { return (java.lang.String) ref; } } - /** * <code>optional string resolution = 10;</code> */ public com.google.protobuf.ByteString - getResolutionBytes() { + getResolutionBytes() { java.lang.Object ref = resolution_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resolution_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - /** * <code>optional string resolution = 10;</code> */ public Builder setResolution( - java.lang.String value) { + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000200; + throw new NullPointerException(); + } + bitField0_ |= 0x00000200; resolution_ = value; onChanged(); return this; } - /** * <code>optional string resolution = 10;</code> */ @@ -2088,79 +1936,71 @@ 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)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - status_ = s; - } + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + status_ = s; return s; } else { return (java.lang.String) ref; } } - /** * <code>optional string status = 11;</code> */ public com.google.protobuf.ByteString - getStatusBytes() { + getStatusBytes() { java.lang.Object ref = status_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); status_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - /** * <code>optional string status = 11;</code> */ public Builder setStatus( - java.lang.String value) { + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000400; + throw new NullPointerException(); + } + bitField0_ |= 0x00000400; status_ = value; onChanged(); return this; } - /** * <code>optional string status = 11;</code> */ @@ -2170,79 +2010,71 @@ 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)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - checksum_ = s; - } + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + checksum_ = s; return s; } else { return (java.lang.String) ref; } } - /** * <code>optional string checksum = 12;</code> */ public com.google.protobuf.ByteString - getChecksumBytes() { + getChecksumBytes() { java.lang.Object ref = checksum_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); checksum_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - /** * <code>optional string checksum = 12;</code> */ public Builder setChecksum( - java.lang.String value) { + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000800; + throw new NullPointerException(); + } + bitField0_ |= 0x00000800; checksum_ = value; onChanged(); return this; } - /** * <code>optional string checksum = 12;</code> */ @@ -2252,79 +2084,71 @@ 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)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - assigneeLogin_ = s; - } + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + 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> */ @@ -2334,37 +2158,34 @@ public final class BatchInput { onChanged(); return this; } - /** * <code>optional string assignee_login = 13;</code> */ public Builder setAssigneeLoginBytes( - com.google.protobuf.ByteString value) { + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00001000; + throw new NullPointerException(); + } + bitField0_ |= 0x00001000; assigneeLogin_ = value; onChanged(); return this; } - private long creationDate_; - + // optional int64 creation_date = 14; + private long creationDate_ ; /** * <code>optional int64 creation_date = 14;</code> */ public boolean hasCreationDate() { return ((bitField0_ & 0x00002000) == 0x00002000); } - /** * <code>optional int64 creation_date = 14;</code> */ public long getCreationDate() { return creationDate_; } - /** * <code>optional int64 creation_date = 14;</code> */ @@ -2374,7 +2195,6 @@ public final class BatchInput { onChanged(); return this; } - /** * <code>optional int64 creation_date = 14;</code> */ @@ -2396,48 +2216,49 @@ public final class BatchInput { // @@protoc_insertion_point(class_scope:ServerIssue) } - private static final com.google.protobuf.Descriptors.Descriptor internal_static_ServerIssue_descriptor; - private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_ServerIssue_fieldAccessorTable; + private static 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 7a41c5dbbc3..c544e6f356b 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,53 +4,49 @@ 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 { - public interface MetadataOrBuilder extends - // @@protoc_insertion_point(interface_extends:Metadata) - com.google.protobuf.MessageOrBuilder { - + // optional int64 analysis_date = 1; /** * <code>optional int64 analysis_date = 1;</code> */ 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> * @@ -59,7 +55,6 @@ public final class BatchReport { * </pre> */ boolean hasSnapshotId(); - /** * <code>optional int64 snapshot_id = 4;</code> * @@ -69,11 +64,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> */ @@ -83,21 +78,16 @@ public final class BatchReport { * Protobuf type {@code Metadata} */ public static final class Metadata extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:Metadata) - MetadataOrBuilder { + com.google.protobuf.GeneratedMessage + implements MetadataOrBuilder { // Use Metadata.newBuilder() to construct. private Metadata(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); 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; } @@ -107,21 +97,19 @@ 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) { @@ -132,7 +120,7 @@ public final class BatchReport { break; default: { if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { + extensionRegistry, tag)) { done = true; } break; @@ -143,9 +131,8 @@ public final class BatchReport { break; } case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; - projectKey_ = bs; + projectKey_ = input.readBytes(); break; } case 24: { @@ -169,34 +156,33 @@ 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() { @@ -204,16 +190,15 @@ 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> */ @@ -221,16 +206,15 @@ 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> */ @@ -239,8 +223,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; @@ -248,17 +232,16 @@ 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 { @@ -266,16 +249,15 @@ 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> */ @@ -283,9 +265,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> * @@ -296,7 +278,6 @@ public final class BatchReport { public boolean hasSnapshotId() { return ((bitField0_ & 0x00000008) == 0x00000008); } - /** * <code>optional int64 snapshot_id = 4;</code> * @@ -308,16 +289,15 @@ 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> */ @@ -332,22 +312,17 @@ public final class BatchReport { snapshotId_ = 0L; deletedComponentsCount_ = 0; } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) - return true; - if (isInitialized == 0) - return false; + if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } 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_); @@ -368,11 +343,9 @@ 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)) { @@ -401,115 +374,94 @@ 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 - // @@protoc_insertion_point(builder_implements:Metadata) - org.sonar.batch.protocol.output.BatchReport.MetadataOrBuilder { + com.google.protobuf.GeneratedMessage.Builder<Builder> + implements org.sonar.batch.protocol.output.BatchReport.MetadataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + 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() @@ -518,16 +470,14 @@ 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(); } @@ -552,7 +502,7 @@ public final class BatchReport { } public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { + getDescriptorForType() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Metadata_descriptor; } @@ -599,7 +549,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; @@ -607,8 +557,7 @@ 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()); } @@ -635,9 +584,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); @@ -651,25 +600,22 @@ public final class BatchReport { } return this; } - private int bitField0_; - private long analysisDate_; - + // optional int64 analysis_date = 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> */ public long getAnalysisDate() { return analysisDate_; } - /** * <code>optional int64 analysis_date = 1;</code> */ @@ -679,7 +625,6 @@ public final class BatchReport { onChanged(); return this; } - /** * <code>optional int64 analysis_date = 1;</code> */ @@ -690,64 +635,57 @@ 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)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - projectKey_ = s; - } + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + projectKey_ = s; return s; } else { return (java.lang.String) ref; } } - /** * <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> */ @@ -757,37 +695,34 @@ 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; } - private int rootComponentRef_; - + // optional int32 root_component_ref = 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> */ public int getRootComponentRef() { return rootComponentRef_; } - /** * <code>optional int32 root_component_ref = 3;</code> */ @@ -797,7 +732,6 @@ public final class BatchReport { onChanged(); return this; } - /** * <code>optional int32 root_component_ref = 3;</code> */ @@ -808,8 +742,8 @@ public final class BatchReport { return this; } - private long snapshotId_; - + // optional int64 snapshot_id = 4; + private long snapshotId_ ; /** * <code>optional int64 snapshot_id = 4;</code> * @@ -820,7 +754,6 @@ public final class BatchReport { public boolean hasSnapshotId() { return ((bitField0_ & 0x00000008) == 0x00000008); } - /** * <code>optional int64 snapshot_id = 4;</code> * @@ -831,7 +764,6 @@ public final class BatchReport { public long getSnapshotId() { return snapshotId_; } - /** * <code>optional int64 snapshot_id = 4;</code> * @@ -845,7 +777,6 @@ public final class BatchReport { onChanged(); return this; } - /** * <code>optional int64 snapshot_id = 4;</code> * @@ -860,22 +791,20 @@ public final class BatchReport { return this; } - private int deletedComponentsCount_; - + // optional int32 deleted_components_count = 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> */ public int getDeletedComponentsCount() { return deletedComponentsCount_; } - /** * <code>optional int32 deleted_components_count = 5;</code> */ @@ -885,7 +814,6 @@ public final class BatchReport { onChanged(); return this; } - /** * <code>optional int32 deleted_components_count = 5;</code> */ @@ -907,55 +835,48 @@ public final class BatchReport { // @@protoc_insertion_point(class_scope:Metadata) } - public interface ComponentLinkOrBuilder extends - // @@protoc_insertion_point(interface_extends:ComponentLink) - com.google.protobuf.MessageOrBuilder { + public interface ComponentLinkOrBuilder + extends com.google.protobuf.MessageOrBuilder { + // optional .ComponentLinkType type = 1; /** * <code>optional .ComponentLinkType type = 1;</code> */ boolean hasType(); - /** * <code>optional .ComponentLinkType type = 1;</code> */ org.sonar.batch.protocol.Constants.ComponentLinkType getType(); + // optional string href = 2; /** * <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(); + getHrefBytes(); } /** * Protobuf type {@code ComponentLink} */ public static final class ComponentLink extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:ComponentLink) - ComponentLinkOrBuilder { + com.google.protobuf.GeneratedMessage + implements 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 ComponentLink(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final ComponentLink defaultInstance; - public static ComponentLink getDefaultInstance() { return defaultInstance; } @@ -965,21 +886,19 @@ 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 ComponentLink( - 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) { @@ -990,7 +909,7 @@ public final class BatchReport { break; default: { if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { + extensionRegistry, tag)) { done = true; } break; @@ -1007,9 +926,8 @@ public final class BatchReport { break; } case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; - href_ = bs; + href_ = input.readBytes(); break; } } @@ -1018,34 +936,33 @@ 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_ComponentLink_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { + 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); + .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( + 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); - } - }; + return new ComponentLink(input, extensionRegistry); + } + }; @java.lang.Override public com.google.protobuf.Parser<ComponentLink> getParserForType() { @@ -1053,16 +970,15 @@ public final class BatchReport { } private int bitField0_; + // optional .ComponentLinkType type = 1; public static final int TYPE_FIELD_NUMBER = 1; private org.sonar.batch.protocol.Constants.ComponentLinkType type_; - /** * <code>optional .ComponentLinkType type = 1;</code> */ public boolean hasType() { return ((bitField0_ & 0x00000001) == 0x00000001); } - /** * <code>optional .ComponentLinkType type = 1;</code> */ @@ -1070,16 +986,15 @@ public final class BatchReport { return type_; } + // optional string href = 2; 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> */ @@ -1088,8 +1003,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()) { href_ = s; @@ -1097,17 +1012,16 @@ public final class BatchReport { return s; } } - /** * <code>optional string href = 2;</code> */ public com.google.protobuf.ByteString - getHrefBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); href_ = b; return b; } else { @@ -1119,22 +1033,17 @@ public final class BatchReport { 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; + if (isInitialized != -1) return isInitialized == 1; 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.writeEnum(1, type_.getNumber()); @@ -1146,11 +1055,9 @@ 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)) { @@ -1167,115 +1074,94 @@ 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.ComponentLink 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.ComponentLink 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.ComponentLink 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.ComponentLink 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.ComponentLink 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.ComponentLink 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.ComponentLink 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.ComponentLink 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.ComponentLink 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.ComponentLink 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.ComponentLink 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 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 { + com.google.protobuf.GeneratedMessage.Builder<Builder> + implements org.sonar.batch.protocol.output.BatchReport.ComponentLinkOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + getDescriptor() { return org.sonar.batch.protocol.output.BatchReport.internal_static_ComponentLink_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { + 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); + .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() @@ -1284,16 +1170,14 @@ 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(); } @@ -1312,7 +1196,7 @@ public final class BatchReport { } public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { + getDescriptorForType() { return org.sonar.batch.protocol.output.BatchReport.internal_static_ComponentLink_descriptor; } @@ -1347,7 +1231,7 @@ public final class BatchReport { 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); + return mergeFrom((org.sonar.batch.protocol.output.BatchReport.ComponentLink)other); } else { super.mergeFrom(other); return this; @@ -1355,8 +1239,7 @@ public final class BatchReport { } 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 == org.sonar.batch.protocol.output.BatchReport.ComponentLink.getDefaultInstance()) return this; if (other.hasType()) { setType(other.getType()); } @@ -1374,9 +1257,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.ComponentLink parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); @@ -1390,25 +1273,22 @@ public final class BatchReport { } return this; } - private int bitField0_; + // optional .ComponentLinkType type = 1; 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> */ @@ -1421,7 +1301,6 @@ public final class BatchReport { onChanged(); return this; } - /** * <code>optional .ComponentLinkType type = 1;</code> */ @@ -1432,64 +1311,57 @@ public final class BatchReport { return this; } + // optional string href = 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)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - href_ = s; - } + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + href_ = s; return s; } else { return (java.lang.String) ref; } } - /** * <code>optional string href = 2;</code> */ public com.google.protobuf.ByteString - getHrefBytes() { + getHrefBytes() { java.lang.Object ref = href_; 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); href_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - /** * <code>optional string href = 2;</code> */ public Builder setHref( - java.lang.String value) { + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; href_ = value; onChanged(); return this; } - /** * <code>optional string href = 2;</code> */ @@ -1499,16 +1371,15 @@ public final class BatchReport { onChanged(); return this; } - /** * <code>optional string href = 2;</code> */ public Builder setHrefBytes( - com.google.protobuf.ByteString value) { + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; href_ = value; onChanged(); return this; @@ -1525,131 +1396,124 @@ public final class BatchReport { // @@protoc_insertion_point(class_scope:ComponentLink) } - public interface ComponentOrBuilder extends - // @@protoc_insertion_point(interface_extends:Component) - com.google.protobuf.MessageOrBuilder { + public interface ComponentOrBuilder + extends com.google.protobuf.MessageOrBuilder { + // optional int32 ref = 1; /** * <code>optional int32 ref = 1;</code> */ 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_ref = 7 [packed = true]; /** - * <code>repeated int32 child_refs = 7 [packed = true];</code> + * <code>repeated int32 child_ref = 7 [packed = true];</code> */ - java.util.List<java.lang.Integer> getChildRefsList(); - + java.util.List<java.lang.Integer> getChildRefList(); /** - * <code>repeated int32 child_refs = 7 [packed = true];</code> + * <code>repeated int32 child_ref = 7 [packed = true];</code> */ - int getChildRefsCount(); - + int getChildRefCount(); /** - * <code>repeated int32 child_refs = 7 [packed = true];</code> + * <code>repeated int32 child_ref = 7 [packed = true];</code> */ - int getChildRefs(int index); + int getChildRef(int index); + // repeated .ComponentLink link = 10; /** - * <code>repeated .ComponentLink links = 10;</code> + * <code>repeated .ComponentLink link = 10;</code> */ - java.util.List<org.sonar.batch.protocol.output.BatchReport.ComponentLink> - getLinksList(); - + java.util.List<org.sonar.batch.protocol.output.BatchReport.ComponentLink> + getLinkList(); /** - * <code>repeated .ComponentLink links = 10;</code> + * <code>repeated .ComponentLink link = 10;</code> */ - org.sonar.batch.protocol.output.BatchReport.ComponentLink getLinks(int index); - + org.sonar.batch.protocol.output.BatchReport.ComponentLink getLink(int index); /** - * <code>repeated .ComponentLink links = 10;</code> + * <code>repeated .ComponentLink link = 10;</code> */ - int getLinksCount(); - + int getLinkCount(); /** - * <code>repeated .ComponentLink links = 10;</code> + * <code>repeated .ComponentLink link = 10;</code> */ - java.util.List<? extends org.sonar.batch.protocol.output.BatchReport.ComponentLinkOrBuilder> - getLinksOrBuilderList(); - + java.util.List<? extends org.sonar.batch.protocol.output.BatchReport.ComponentLinkOrBuilder> + getLinkOrBuilderList(); /** - * <code>repeated .ComponentLink links = 10;</code> + * <code>repeated .ComponentLink link = 10;</code> */ - org.sonar.batch.protocol.output.BatchReport.ComponentLinkOrBuilder getLinksOrBuilder( - int index); + org.sonar.batch.protocol.output.BatchReport.ComponentLinkOrBuilder getLinkOrBuilder( + int index); + // optional int32 snapshot_id = 8; /** * <code>optional int32 snapshot_id = 8;</code> * @@ -1658,7 +1522,6 @@ public final class BatchReport { * </pre> */ boolean hasSnapshotId(); - /** * <code>optional int32 snapshot_id = 8;</code> * @@ -1668,41 +1531,35 @@ 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 - // @@protoc_insertion_point(message_implements:Component) - ComponentOrBuilder { + com.google.protobuf.GeneratedMessage + implements ComponentOrBuilder { // Use Component.newBuilder() to construct. private Component(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); 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; } @@ -1712,21 +1569,19 @@ 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) { @@ -1737,7 +1592,7 @@ public final class BatchReport { break; default: { if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { + extensionRegistry, tag)) { done = true; } break; @@ -1748,15 +1603,13 @@ public final class BatchReport { break; } case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; - path_ = bs; + path_ = input.readBytes(); break; } case 26: { - com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000004; - name_ = bs; + name_ = input.readBytes(); break; } case 32: { @@ -1776,28 +1629,27 @@ public final class BatchReport { break; } case 50: { - com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000020; - language_ = bs; + language_ = input.readBytes(); break; } case 56: { if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { - childRefs_ = new java.util.ArrayList<java.lang.Integer>(); + childRef_ = new java.util.ArrayList<java.lang.Integer>(); mutable_bitField0_ |= 0x00000040; } - childRefs_.add(input.readInt32()); + childRef_.add(input.readInt32()); break; } case 58: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000040) == 0x00000040) && input.getBytesUntilLimit() > 0) { - childRefs_ = new java.util.ArrayList<java.lang.Integer>(); + childRef_ = new java.util.ArrayList<java.lang.Integer>(); mutable_bitField0_ |= 0x00000040; } while (input.getBytesUntilLimit() > 0) { - childRefs_.add(input.readInt32()); + childRef_.add(input.readInt32()); } input.popLimit(limit); break; @@ -1808,17 +1660,16 @@ public final class BatchReport { break; } case 74: { - com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000080; - uuid_ = bs; + uuid_ = input.readBytes(); break; } case 82: { if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) { - links_ = new java.util.ArrayList<org.sonar.batch.protocol.output.BatchReport.ComponentLink>(); + link_ = 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)); + link_.add(input.readMessage(org.sonar.batch.protocol.output.BatchReport.ComponentLink.PARSER, extensionRegistry)); break; } } @@ -1827,40 +1678,39 @@ 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_); + childRef_ = java.util.Collections.unmodifiableList(childRef_); } if (((mutable_bitField0_ & 0x00000080) == 0x00000080)) { - links_ = java.util.Collections.unmodifiableList(links_); + link_ = java.util.Collections.unmodifiableList(link_); } 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() { @@ -1868,16 +1718,15 @@ 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> */ @@ -1885,16 +1734,15 @@ 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> */ @@ -1903,8 +1751,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; @@ -1912,17 +1760,16 @@ 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 { @@ -1930,16 +1777,15 @@ 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> */ @@ -1948,8 +1794,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; @@ -1957,17 +1803,16 @@ 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 { @@ -1975,16 +1820,15 @@ 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> */ @@ -1992,16 +1836,15 @@ 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> */ @@ -2009,16 +1852,15 @@ 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> */ @@ -2027,8 +1869,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; @@ -2036,17 +1878,16 @@ 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 { @@ -2054,76 +1895,69 @@ public final class BatchReport { } } - public static final int CHILD_REFS_FIELD_NUMBER = 7; - private java.util.List<java.lang.Integer> childRefs_; - + // repeated int32 child_ref = 7 [packed = true]; + public static final int CHILD_REF_FIELD_NUMBER = 7; + private java.util.List<java.lang.Integer> childRef_; /** - * <code>repeated int32 child_refs = 7 [packed = true];</code> + * <code>repeated int32 child_ref = 7 [packed = true];</code> */ public java.util.List<java.lang.Integer> - getChildRefsList() { - return childRefs_; + getChildRefList() { + return childRef_; } - /** - * <code>repeated int32 child_refs = 7 [packed = true];</code> + * <code>repeated int32 child_ref = 7 [packed = true];</code> */ - public int getChildRefsCount() { - return childRefs_.size(); + public int getChildRefCount() { + return childRef_.size(); } - /** - * <code>repeated int32 child_refs = 7 [packed = true];</code> + * <code>repeated int32 child_ref = 7 [packed = true];</code> */ - public int getChildRefs(int index) { - return childRefs_.get(index); + public int getChildRef(int index) { + return childRef_.get(index); } + private int childRefMemoizedSerializedSize = -1; - private int childRefsMemoizedSerializedSize = -1; - - public static final int LINKS_FIELD_NUMBER = 10; - private java.util.List<org.sonar.batch.protocol.output.BatchReport.ComponentLink> links_; - + // repeated .ComponentLink link = 10; + public static final int LINK_FIELD_NUMBER = 10; + private java.util.List<org.sonar.batch.protocol.output.BatchReport.ComponentLink> link_; /** - * <code>repeated .ComponentLink links = 10;</code> + * <code>repeated .ComponentLink link = 10;</code> */ - public java.util.List<org.sonar.batch.protocol.output.BatchReport.ComponentLink> getLinksList() { - return links_; + public java.util.List<org.sonar.batch.protocol.output.BatchReport.ComponentLink> getLinkList() { + return link_; } - /** - * <code>repeated .ComponentLink links = 10;</code> + * <code>repeated .ComponentLink link = 10;</code> */ - public java.util.List<? extends org.sonar.batch.protocol.output.BatchReport.ComponentLinkOrBuilder> - getLinksOrBuilderList() { - return links_; + public java.util.List<? extends org.sonar.batch.protocol.output.BatchReport.ComponentLinkOrBuilder> + getLinkOrBuilderList() { + return link_; } - /** - * <code>repeated .ComponentLink links = 10;</code> + * <code>repeated .ComponentLink link = 10;</code> */ - public int getLinksCount() { - return links_.size(); + public int getLinkCount() { + return link_.size(); } - /** - * <code>repeated .ComponentLink links = 10;</code> + * <code>repeated .ComponentLink link = 10;</code> */ - public org.sonar.batch.protocol.output.BatchReport.ComponentLink getLinks(int index) { - return links_.get(index); + public org.sonar.batch.protocol.output.BatchReport.ComponentLink getLink(int index) { + return link_.get(index); } - /** - * <code>repeated .ComponentLink links = 10;</code> + * <code>repeated .ComponentLink link = 10;</code> */ - public org.sonar.batch.protocol.output.BatchReport.ComponentLinkOrBuilder getLinksOrBuilder( - int index) { - return links_.get(index); + public org.sonar.batch.protocol.output.BatchReport.ComponentLinkOrBuilder getLinkOrBuilder( + int index) { + return link_.get(index); } + // optional int32 snapshot_id = 8; public static final int SNAPSHOT_ID_FIELD_NUMBER = 8; private int snapshotId_; - /** * <code>optional int32 snapshot_id = 8;</code> * @@ -2134,7 +1968,6 @@ public final class BatchReport { public boolean hasSnapshotId() { return ((bitField0_ & 0x00000040) == 0x00000040); } - /** * <code>optional int32 snapshot_id = 8;</code> * @@ -2146,16 +1979,15 @@ 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> */ @@ -2164,8 +1996,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; @@ -2173,17 +2005,16 @@ 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 { @@ -2198,27 +2029,22 @@ public final class BatchReport { type_ = org.sonar.batch.protocol.Constants.ComponentType.PROJECT; isTest_ = false; language_ = ""; - childRefs_ = java.util.Collections.emptyList(); - links_ = java.util.Collections.emptyList(); + childRef_ = java.util.Collections.emptyList(); + link_ = java.util.Collections.emptyList(); snapshotId_ = 0; uuid_ = ""; } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) - return true; - if (isInitialized == 0) - return false; + if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } 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_); @@ -2238,12 +2064,12 @@ public final class BatchReport { if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeBytes(6, getLanguageBytes()); } - if (getChildRefsList().size() > 0) { + if (getChildRefList().size() > 0) { output.writeRawVarint32(58); - output.writeRawVarint32(childRefsMemoizedSerializedSize); + output.writeRawVarint32(childRefMemoizedSerializedSize); } - for (int i = 0; i < childRefs_.size(); i++) { - output.writeInt32NoTag(childRefs_.get(i)); + for (int i = 0; i < childRef_.size(); i++) { + output.writeInt32NoTag(childRef_.get(i)); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeInt32(8, snapshotId_); @@ -2251,18 +2077,16 @@ 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)); + for (int i = 0; i < link_.size(); i++) { + output.writeMessage(10, link_.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)) { @@ -2291,17 +2115,17 @@ public final class BatchReport { } { int dataSize = 0; - for (int i = 0; i < childRefs_.size(); i++) { + for (int i = 0; i < childRef_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(childRefs_.get(i)); + .computeInt32SizeNoTag(childRef_.get(i)); } size += dataSize; - if (!getChildRefsList().isEmpty()) { + if (!getChildRefList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); + .computeInt32SizeNoTag(dataSize); } - childRefsMemoizedSerializedSize = dataSize; + childRefMemoizedSerializedSize = dataSize; } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream @@ -2311,9 +2135,9 @@ public final class BatchReport { size += com.google.protobuf.CodedOutputStream .computeBytesSize(9, getUuidBytes()); } - for (int i = 0; i < links_.size(); i++) { + for (int i = 0; i < link_.size(); i++) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, links_.get(i)); + .computeMessageSize(10, link_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; @@ -2321,115 +2145,94 @@ 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.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 - // @@protoc_insertion_point(builder_implements:Component) - org.sonar.batch.protocol.output.BatchReport.ComponentOrBuilder { + com.google.protobuf.GeneratedMessage.Builder<Builder> + implements org.sonar.batch.protocol.output.BatchReport.ComponentOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + 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() @@ -2438,17 +2241,15 @@ 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(); + getLinkFieldBuilder(); } } - private static Builder create() { return new Builder(); } @@ -2467,13 +2268,13 @@ public final class BatchReport { bitField0_ = (bitField0_ & ~0x00000010); language_ = ""; bitField0_ = (bitField0_ & ~0x00000020); - childRefs_ = java.util.Collections.emptyList(); + childRef_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); - if (linksBuilder_ == null) { - links_ = java.util.Collections.emptyList(); + if (linkBuilder_ == null) { + link_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000080); } else { - linksBuilder_.clear(); + linkBuilder_.clear(); } snapshotId_ = 0; bitField0_ = (bitField0_ & ~0x00000100); @@ -2487,7 +2288,7 @@ public final class BatchReport { } public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { + getDescriptorForType() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Component_descriptor; } @@ -2532,18 +2333,18 @@ public final class BatchReport { } result.language_ = language_; if (((bitField0_ & 0x00000040) == 0x00000040)) { - childRefs_ = java.util.Collections.unmodifiableList(childRefs_); + childRef_ = java.util.Collections.unmodifiableList(childRef_); bitField0_ = (bitField0_ & ~0x00000040); } - result.childRefs_ = childRefs_; - if (linksBuilder_ == null) { + result.childRef_ = childRef_; + if (linkBuilder_ == null) { if (((bitField0_ & 0x00000080) == 0x00000080)) { - links_ = java.util.Collections.unmodifiableList(links_); + link_ = java.util.Collections.unmodifiableList(link_); bitField0_ = (bitField0_ & ~0x00000080); } - result.links_ = links_; + result.link_ = link_; } else { - result.links_ = linksBuilder_.build(); + result.link_ = linkBuilder_.build(); } if (((from_bitField0_ & 0x00000100) == 0x00000100)) { to_bitField0_ |= 0x00000040; @@ -2560,7 +2361,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; @@ -2568,8 +2369,7 @@ 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()); } @@ -2594,39 +2394,39 @@ public final class BatchReport { language_ = other.language_; onChanged(); } - if (!other.childRefs_.isEmpty()) { - if (childRefs_.isEmpty()) { - childRefs_ = other.childRefs_; + if (!other.childRef_.isEmpty()) { + if (childRef_.isEmpty()) { + childRef_ = other.childRef_; bitField0_ = (bitField0_ & ~0x00000040); } else { - ensureChildRefsIsMutable(); - childRefs_.addAll(other.childRefs_); + ensureChildRefIsMutable(); + childRef_.addAll(other.childRef_); } onChanged(); } - if (linksBuilder_ == null) { - if (!other.links_.isEmpty()) { - if (links_.isEmpty()) { - links_ = other.links_; + if (linkBuilder_ == null) { + if (!other.link_.isEmpty()) { + if (link_.isEmpty()) { + link_ = other.link_; bitField0_ = (bitField0_ & ~0x00000080); } else { - ensureLinksIsMutable(); - links_.addAll(other.links_); + ensureLinkIsMutable(); + link_.addAll(other.link_); } onChanged(); } } else { - if (!other.links_.isEmpty()) { - if (linksBuilder_.isEmpty()) { - linksBuilder_.dispose(); - linksBuilder_ = null; - links_ = other.links_; + if (!other.link_.isEmpty()) { + if (linkBuilder_.isEmpty()) { + linkBuilder_.dispose(); + linkBuilder_ = null; + link_ = other.link_; bitField0_ = (bitField0_ & ~0x00000080); - linksBuilder_ = + linkBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getLinksFieldBuilder() : null; + getLinkFieldBuilder() : null; } else { - linksBuilder_.addAllMessages(other.links_); + linkBuilder_.addAllMessages(other.link_); } } } @@ -2647,9 +2447,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); @@ -2663,25 +2463,22 @@ public final class BatchReport { } return this; } - private int bitField0_; - private int ref_; - + // optional int32 ref = 1; + 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> */ @@ -2691,7 +2488,6 @@ public final class BatchReport { onChanged(); return this; } - /** * <code>optional int32 ref = 1;</code> */ @@ -2702,64 +2498,57 @@ 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)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - path_ = s; - } + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + path_ = s; return s; } else { return (java.lang.String) ref; } } - /** * <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> */ @@ -2769,79 +2558,71 @@ 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)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - name_ = s; - } + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + name_ = s; return s; } else { return (java.lang.String) ref; } } - /** * <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> */ @@ -2851,37 +2632,34 @@ 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> */ @@ -2894,7 +2672,6 @@ public final class BatchReport { onChanged(); return this; } - /** * <code>optional .ComponentType type = 4;</code> */ @@ -2905,22 +2682,20 @@ public final class BatchReport { return this; } - private boolean isTest_; - + // optional bool is_test = 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> */ public boolean getIsTest() { return isTest_; } - /** * <code>optional bool is_test = 5;</code> */ @@ -2930,7 +2705,6 @@ public final class BatchReport { onChanged(); return this; } - /** * <code>optional bool is_test = 5;</code> */ @@ -2941,64 +2715,57 @@ 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)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - language_ = s; - } + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + language_ = s; return s; } else { return (java.lang.String) ref; } } - /** * <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> */ @@ -3008,356 +2775,328 @@ 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; } - private java.util.List<java.lang.Integer> childRefs_ = java.util.Collections.emptyList(); - - private void ensureChildRefsIsMutable() { + // repeated int32 child_ref = 7 [packed = true]; + private java.util.List<java.lang.Integer> childRef_ = java.util.Collections.emptyList(); + private void ensureChildRefIsMutable() { if (!((bitField0_ & 0x00000040) == 0x00000040)) { - childRefs_ = new java.util.ArrayList<java.lang.Integer>(childRefs_); + childRef_ = new java.util.ArrayList<java.lang.Integer>(childRef_); bitField0_ |= 0x00000040; - } + } } - /** - * <code>repeated int32 child_refs = 7 [packed = true];</code> + * <code>repeated int32 child_ref = 7 [packed = true];</code> */ public java.util.List<java.lang.Integer> - getChildRefsList() { - return java.util.Collections.unmodifiableList(childRefs_); + getChildRefList() { + return java.util.Collections.unmodifiableList(childRef_); } - /** - * <code>repeated int32 child_refs = 7 [packed = true];</code> + * <code>repeated int32 child_ref = 7 [packed = true];</code> */ - public int getChildRefsCount() { - return childRefs_.size(); + public int getChildRefCount() { + return childRef_.size(); } - /** - * <code>repeated int32 child_refs = 7 [packed = true];</code> + * <code>repeated int32 child_ref = 7 [packed = true];</code> */ - public int getChildRefs(int index) { - return childRefs_.get(index); + public int getChildRef(int index) { + return childRef_.get(index); } - /** - * <code>repeated int32 child_refs = 7 [packed = true];</code> + * <code>repeated int32 child_ref = 7 [packed = true];</code> */ - public Builder setChildRefs( - int index, int value) { - ensureChildRefsIsMutable(); - childRefs_.set(index, value); + public Builder setChildRef( + int index, int value) { + ensureChildRefIsMutable(); + childRef_.set(index, value); onChanged(); return this; } - /** - * <code>repeated int32 child_refs = 7 [packed = true];</code> + * <code>repeated int32 child_ref = 7 [packed = true];</code> */ - public Builder addChildRefs(int value) { - ensureChildRefsIsMutable(); - childRefs_.add(value); + public Builder addChildRef(int value) { + ensureChildRefIsMutable(); + childRef_.add(value); onChanged(); return this; } - /** - * <code>repeated int32 child_refs = 7 [packed = true];</code> + * <code>repeated int32 child_ref = 7 [packed = true];</code> */ - public Builder addAllChildRefs( - java.lang.Iterable<? extends java.lang.Integer> values) { - ensureChildRefsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, childRefs_); + public Builder addAllChildRef( + java.lang.Iterable<? extends java.lang.Integer> values) { + ensureChildRefIsMutable(); + super.addAll(values, childRef_); onChanged(); return this; } - /** - * <code>repeated int32 child_refs = 7 [packed = true];</code> + * <code>repeated int32 child_ref = 7 [packed = true];</code> */ - public Builder clearChildRefs() { - childRefs_ = java.util.Collections.emptyList(); + public Builder clearChildRef() { + childRef_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } - private java.util.List<org.sonar.batch.protocol.output.BatchReport.ComponentLink> links_ = + // repeated .ComponentLink link = 10; + private java.util.List<org.sonar.batch.protocol.output.BatchReport.ComponentLink> link_ = java.util.Collections.emptyList(); - - private void ensureLinksIsMutable() { + private void ensureLinkIsMutable() { if (!((bitField0_ & 0x00000080) == 0x00000080)) { - links_ = new java.util.ArrayList<org.sonar.batch.protocol.output.BatchReport.ComponentLink>(links_); + link_ = new java.util.ArrayList<org.sonar.batch.protocol.output.BatchReport.ComponentLink>(link_); 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_; + 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> linkBuilder_; /** - * <code>repeated .ComponentLink links = 10;</code> + * <code>repeated .ComponentLink link = 10;</code> */ - public java.util.List<org.sonar.batch.protocol.output.BatchReport.ComponentLink> getLinksList() { - if (linksBuilder_ == null) { - return java.util.Collections.unmodifiableList(links_); + public java.util.List<org.sonar.batch.protocol.output.BatchReport.ComponentLink> getLinkList() { + if (linkBuilder_ == null) { + return java.util.Collections.unmodifiableList(link_); } else { - return linksBuilder_.getMessageList(); + return linkBuilder_.getMessageList(); } } - /** - * <code>repeated .ComponentLink links = 10;</code> + * <code>repeated .ComponentLink link = 10;</code> */ - public int getLinksCount() { - if (linksBuilder_ == null) { - return links_.size(); + public int getLinkCount() { + if (linkBuilder_ == null) { + return link_.size(); } else { - return linksBuilder_.getCount(); + return linkBuilder_.getCount(); } } - /** - * <code>repeated .ComponentLink links = 10;</code> + * <code>repeated .ComponentLink link = 10;</code> */ - public org.sonar.batch.protocol.output.BatchReport.ComponentLink getLinks(int index) { - if (linksBuilder_ == null) { - return links_.get(index); + public org.sonar.batch.protocol.output.BatchReport.ComponentLink getLink(int index) { + if (linkBuilder_ == null) { + return link_.get(index); } else { - return linksBuilder_.getMessage(index); + return linkBuilder_.getMessage(index); } } - /** - * <code>repeated .ComponentLink links = 10;</code> + * <code>repeated .ComponentLink link = 10;</code> */ - public Builder setLinks( - int index, org.sonar.batch.protocol.output.BatchReport.ComponentLink value) { - if (linksBuilder_ == null) { + public Builder setLink( + int index, org.sonar.batch.protocol.output.BatchReport.ComponentLink value) { + if (linkBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureLinksIsMutable(); - links_.set(index, value); + ensureLinkIsMutable(); + link_.set(index, value); onChanged(); } else { - linksBuilder_.setMessage(index, value); + linkBuilder_.setMessage(index, value); } return this; } - /** - * <code>repeated .ComponentLink links = 10;</code> + * <code>repeated .ComponentLink link = 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()); + public Builder setLink( + int index, org.sonar.batch.protocol.output.BatchReport.ComponentLink.Builder builderForValue) { + if (linkBuilder_ == null) { + ensureLinkIsMutable(); + link_.set(index, builderForValue.build()); onChanged(); } else { - linksBuilder_.setMessage(index, builderForValue.build()); + linkBuilder_.setMessage(index, builderForValue.build()); } return this; } - /** - * <code>repeated .ComponentLink links = 10;</code> + * <code>repeated .ComponentLink link = 10;</code> */ - public Builder addLinks(org.sonar.batch.protocol.output.BatchReport.ComponentLink value) { - if (linksBuilder_ == null) { + public Builder addLink(org.sonar.batch.protocol.output.BatchReport.ComponentLink value) { + if (linkBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureLinksIsMutable(); - links_.add(value); + ensureLinkIsMutable(); + link_.add(value); onChanged(); } else { - linksBuilder_.addMessage(value); + linkBuilder_.addMessage(value); } return this; } - /** - * <code>repeated .ComponentLink links = 10;</code> + * <code>repeated .ComponentLink link = 10;</code> */ - public Builder addLinks( - int index, org.sonar.batch.protocol.output.BatchReport.ComponentLink value) { - if (linksBuilder_ == null) { + public Builder addLink( + int index, org.sonar.batch.protocol.output.BatchReport.ComponentLink value) { + if (linkBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureLinksIsMutable(); - links_.add(index, value); + ensureLinkIsMutable(); + link_.add(index, value); onChanged(); } else { - linksBuilder_.addMessage(index, value); + linkBuilder_.addMessage(index, value); } return this; } - /** - * <code>repeated .ComponentLink links = 10;</code> + * <code>repeated .ComponentLink link = 10;</code> */ - public Builder addLinks( - org.sonar.batch.protocol.output.BatchReport.ComponentLink.Builder builderForValue) { - if (linksBuilder_ == null) { - ensureLinksIsMutable(); - links_.add(builderForValue.build()); + public Builder addLink( + org.sonar.batch.protocol.output.BatchReport.ComponentLink.Builder builderForValue) { + if (linkBuilder_ == null) { + ensureLinkIsMutable(); + link_.add(builderForValue.build()); onChanged(); } else { - linksBuilder_.addMessage(builderForValue.build()); + linkBuilder_.addMessage(builderForValue.build()); } return this; } - /** - * <code>repeated .ComponentLink links = 10;</code> + * <code>repeated .ComponentLink link = 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()); + public Builder addLink( + int index, org.sonar.batch.protocol.output.BatchReport.ComponentLink.Builder builderForValue) { + if (linkBuilder_ == null) { + ensureLinkIsMutable(); + link_.add(index, builderForValue.build()); onChanged(); } else { - linksBuilder_.addMessage(index, builderForValue.build()); + linkBuilder_.addMessage(index, builderForValue.build()); } return this; } - /** - * <code>repeated .ComponentLink links = 10;</code> + * <code>repeated .ComponentLink link = 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_); + public Builder addAllLink( + java.lang.Iterable<? extends org.sonar.batch.protocol.output.BatchReport.ComponentLink> values) { + if (linkBuilder_ == null) { + ensureLinkIsMutable(); + super.addAll(values, link_); onChanged(); } else { - linksBuilder_.addAllMessages(values); + linkBuilder_.addAllMessages(values); } return this; } - /** - * <code>repeated .ComponentLink links = 10;</code> + * <code>repeated .ComponentLink link = 10;</code> */ - public Builder clearLinks() { - if (linksBuilder_ == null) { - links_ = java.util.Collections.emptyList(); + public Builder clearLink() { + if (linkBuilder_ == null) { + link_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000080); onChanged(); } else { - linksBuilder_.clear(); + linkBuilder_.clear(); } return this; } - /** - * <code>repeated .ComponentLink links = 10;</code> + * <code>repeated .ComponentLink link = 10;</code> */ - public Builder removeLinks(int index) { - if (linksBuilder_ == null) { - ensureLinksIsMutable(); - links_.remove(index); + public Builder removeLink(int index) { + if (linkBuilder_ == null) { + ensureLinkIsMutable(); + link_.remove(index); onChanged(); } else { - linksBuilder_.remove(index); + linkBuilder_.remove(index); } return this; } - /** - * <code>repeated .ComponentLink links = 10;</code> + * <code>repeated .ComponentLink link = 10;</code> */ - public org.sonar.batch.protocol.output.BatchReport.ComponentLink.Builder getLinksBuilder( - int index) { - return getLinksFieldBuilder().getBuilder(index); + public org.sonar.batch.protocol.output.BatchReport.ComponentLink.Builder getLinkBuilder( + int index) { + return getLinkFieldBuilder().getBuilder(index); } - /** - * <code>repeated .ComponentLink links = 10;</code> + * <code>repeated .ComponentLink link = 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); + public org.sonar.batch.protocol.output.BatchReport.ComponentLinkOrBuilder getLinkOrBuilder( + int index) { + if (linkBuilder_ == null) { + return link_.get(index); } else { + return linkBuilder_.getMessageOrBuilder(index); } } - /** - * <code>repeated .ComponentLink links = 10;</code> + * <code>repeated .ComponentLink link = 10;</code> */ - public java.util.List<? extends org.sonar.batch.protocol.output.BatchReport.ComponentLinkOrBuilder> - getLinksOrBuilderList() { - if (linksBuilder_ != null) { - return linksBuilder_.getMessageOrBuilderList(); + public java.util.List<? extends org.sonar.batch.protocol.output.BatchReport.ComponentLinkOrBuilder> + getLinkOrBuilderList() { + if (linkBuilder_ != null) { + return linkBuilder_.getMessageOrBuilderList(); } else { - return java.util.Collections.unmodifiableList(links_); + return java.util.Collections.unmodifiableList(link_); } } - /** - * <code>repeated .ComponentLink links = 10;</code> + * <code>repeated .ComponentLink link = 10;</code> */ - public org.sonar.batch.protocol.output.BatchReport.ComponentLink.Builder addLinksBuilder() { - return getLinksFieldBuilder().addBuilder( - org.sonar.batch.protocol.output.BatchReport.ComponentLink.getDefaultInstance()); + public org.sonar.batch.protocol.output.BatchReport.ComponentLink.Builder addLinkBuilder() { + return getLinkFieldBuilder().addBuilder( + org.sonar.batch.protocol.output.BatchReport.ComponentLink.getDefaultInstance()); } - /** - * <code>repeated .ComponentLink links = 10;</code> + * <code>repeated .ComponentLink link = 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()); + public org.sonar.batch.protocol.output.BatchReport.ComponentLink.Builder addLinkBuilder( + int index) { + return getLinkFieldBuilder().addBuilder( + index, org.sonar.batch.protocol.output.BatchReport.ComponentLink.getDefaultInstance()); } - /** - * <code>repeated .ComponentLink links = 10;</code> + * <code>repeated .ComponentLink link = 10;</code> */ - public java.util.List<org.sonar.batch.protocol.output.BatchReport.ComponentLink.Builder> - getLinksBuilderList() { - return getLinksFieldBuilder().getBuilderList(); + public java.util.List<org.sonar.batch.protocol.output.BatchReport.ComponentLink.Builder> + getLinkBuilderList() { + return getLinkFieldBuilder().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; + org.sonar.batch.protocol.output.BatchReport.ComponentLink, org.sonar.batch.protocol.output.BatchReport.ComponentLink.Builder, org.sonar.batch.protocol.output.BatchReport.ComponentLinkOrBuilder> + getLinkFieldBuilder() { + if (linkBuilder_ == null) { + linkBuilder_ = 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>( + link_, + ((bitField0_ & 0x00000080) == 0x00000080), + getParentForChildren(), + isClean()); + link_ = null; } - return linksBuilder_; + return linkBuilder_; } - private int snapshotId_; - + // optional int32 snapshot_id = 8; + private int snapshotId_ ; /** * <code>optional int32 snapshot_id = 8;</code> * @@ -3368,7 +3107,6 @@ public final class BatchReport { public boolean hasSnapshotId() { return ((bitField0_ & 0x00000100) == 0x00000100); } - /** * <code>optional int32 snapshot_id = 8;</code> * @@ -3379,7 +3117,6 @@ public final class BatchReport { public int getSnapshotId() { return snapshotId_; } - /** * <code>optional int32 snapshot_id = 8;</code> * @@ -3393,7 +3130,6 @@ public final class BatchReport { onChanged(); return this; } - /** * <code>optional int32 snapshot_id = 8;</code> * @@ -3408,64 +3144,57 @@ 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_ & 0x00000200) == 0x00000200); } - /** * <code>optional string uuid = 9;</code> */ public java.lang.String getUuid() { java.lang.Object ref = uuid_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - uuid_ = s; - } + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + uuid_ = s; return s; } else { return (java.lang.String) ref; } } - /** * <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_ |= 0x00000200; + throw new NullPointerException(); + } + bitField0_ |= 0x00000200; uuid_ = value; onChanged(); return this; } - /** * <code>optional string uuid = 9;</code> */ @@ -3475,16 +3204,15 @@ 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_ |= 0x00000200; + throw new NullPointerException(); + } + bitField0_ |= 0x00000200; uuid_ = value; onChanged(); return this; @@ -3501,100 +3229,95 @@ public final class BatchReport { // @@protoc_insertion_point(class_scope:Component) } - public interface IssueOrBuilder extends - // @@protoc_insertion_point(interface_extends:Issue) - com.google.protobuf.MessageOrBuilder { + public interface IssueOrBuilder + extends com.google.protobuf.MessageOrBuilder { + // optional string rule_repository = 1; /** * <code>optional string rule_repository = 1;</code> */ 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 tag = 6; /** - * <code>repeated string tags = 6;</code> + * <code>repeated string tag = 6;</code> */ - com.google.protobuf.ProtocolStringList - getTagsList(); - + java.util.List<java.lang.String> + getTagList(); /** - * <code>repeated string tags = 6;</code> + * <code>repeated string tag = 6;</code> */ - int getTagsCount(); - + int getTagCount(); /** - * <code>repeated string tags = 6;</code> + * <code>repeated string tag = 6;</code> */ - java.lang.String getTags(int index); - + java.lang.String getTag(int index); /** - * <code>repeated string tags = 6;</code> + * <code>repeated string tag = 6;</code> */ com.google.protobuf.ByteString - getTagsBytes(int index); + getTagBytes(int index); + // optional double effort_to_fix = 7; /** * <code>optional double effort_to_fix = 7;</code> * @@ -3603,7 +3326,6 @@ public final class BatchReport { * </pre> */ boolean hasEffortToFix(); - /** * <code>optional double effort_to_fix = 7;</code> * @@ -3613,251 +3335,241 @@ 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> */ @@ -3867,21 +3579,16 @@ public final class BatchReport { * Protobuf type {@code Issue} */ public static final class Issue extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:Issue) - IssueOrBuilder { + com.google.protobuf.GeneratedMessage + implements IssueOrBuilder { // Use Issue.newBuilder() to construct. private Issue(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); 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; } @@ -3891,21 +3598,19 @@ 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) { @@ -3916,21 +3621,19 @@ 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_ = bs; + ruleRepository_ = input.readBytes(); break; } case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; - ruleKey_ = bs; + ruleKey_ = input.readBytes(); break; } case 24: { @@ -3939,9 +3642,8 @@ public final class BatchReport { break; } case 34: { - com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000008; - msg_ = bs; + msg_ = input.readBytes(); break; } case 40: { @@ -3956,12 +3658,11 @@ public final class BatchReport { break; } case 50: { - com.google.protobuf.ByteString bs = input.readBytes(); if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { - tags_ = new com.google.protobuf.LazyStringArrayList(); + tag_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000020; } - tags_.add(bs); + tag_.add(input.readBytes()); break; } case 57: { @@ -3975,9 +3676,8 @@ public final class BatchReport { break; } case 74: { - com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000080; - uuid_ = bs; + uuid_ = input.readBytes(); break; } case 80: { @@ -3986,21 +3686,18 @@ public final class BatchReport { break; } case 90: { - com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000200; - resolution_ = bs; + resolution_ = input.readBytes(); break; } case 98: { - com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000400; - status_ = bs; + status_ = input.readBytes(); break; } case 106: { - com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000800; - checksum_ = bs; + checksum_ = input.readBytes(); break; } case 112: { @@ -4009,33 +3706,28 @@ public final class BatchReport { break; } case 122: { - com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00002000; - reporter_ = bs; + reporter_ = input.readBytes(); break; } case 130: { - com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00004000; - assignee_ = bs; + assignee_ = input.readBytes(); break; } case 138: { - com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00008000; - actionPlanKey_ = bs; + actionPlanKey_ = input.readBytes(); break; } case 146: { - com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00010000; - attributes_ = bs; + attributes_ = input.readBytes(); break; } case 154: { - com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00020000; - authorLogin_ = bs; + authorLogin_ = input.readBytes(); break; } case 160: { @@ -4059,9 +3751,8 @@ public final class BatchReport { break; } case 194: { - com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00400000; - diffFields_ = bs; + diffFields_ = input.readBytes(); break; } case 200: { @@ -4080,37 +3771,36 @@ 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_ = tags_.getUnmodifiableView(); + tag_ = new com.google.protobuf.UnmodifiableLazyStringList(tag_); } 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() { @@ -4118,16 +3808,15 @@ 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> */ @@ -4136,8 +3825,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; @@ -4145,17 +3834,16 @@ 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 { @@ -4163,16 +3851,15 @@ 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> */ @@ -4181,8 +3868,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; @@ -4190,17 +3877,16 @@ 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 { @@ -4208,16 +3894,15 @@ 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> */ @@ -4225,16 +3910,15 @@ 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> */ @@ -4243,8 +3927,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; @@ -4252,17 +3936,16 @@ 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 { @@ -4270,16 +3953,15 @@ 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> */ @@ -4287,42 +3969,39 @@ public final class BatchReport { return severity_; } - public static final int TAGS_FIELD_NUMBER = 6; - private com.google.protobuf.LazyStringList tags_; - + // repeated string tag = 6; + public static final int TAG_FIELD_NUMBER = 6; + private com.google.protobuf.LazyStringList tag_; /** - * <code>repeated string tags = 6;</code> + * <code>repeated string tag = 6;</code> */ - public com.google.protobuf.ProtocolStringList - getTagsList() { - return tags_; + public java.util.List<java.lang.String> + getTagList() { + return tag_; } - /** - * <code>repeated string tags = 6;</code> + * <code>repeated string tag = 6;</code> */ - public int getTagsCount() { - return tags_.size(); + public int getTagCount() { + return tag_.size(); } - /** - * <code>repeated string tags = 6;</code> + * <code>repeated string tag = 6;</code> */ - public java.lang.String getTags(int index) { - return tags_.get(index); + public java.lang.String getTag(int index) { + return tag_.get(index); } - /** - * <code>repeated string tags = 6;</code> + * <code>repeated string tag = 6;</code> */ public com.google.protobuf.ByteString - getTagsBytes(int index) { - return tags_.getByteString(index); + getTagBytes(int index) { + return tag_.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> * @@ -4333,7 +4012,6 @@ public final class BatchReport { public boolean hasEffortToFix() { return ((bitField0_ & 0x00000020) == 0x00000020); } - /** * <code>optional double effort_to_fix = 7;</code> * @@ -4345,16 +4023,15 @@ 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> */ @@ -4362,16 +4039,15 @@ 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> */ @@ -4380,8 +4056,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; @@ -4389,17 +4065,16 @@ 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 { @@ -4407,16 +4082,15 @@ 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> */ @@ -4424,16 +4098,15 @@ 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> */ @@ -4442,8 +4115,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; @@ -4451,17 +4124,16 @@ 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 { @@ -4469,16 +4141,15 @@ 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> */ @@ -4487,8 +4158,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; @@ -4496,17 +4167,16 @@ 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 { @@ -4514,16 +4184,15 @@ 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> */ @@ -4532,8 +4201,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; @@ -4541,17 +4210,16 @@ 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 { @@ -4559,16 +4227,15 @@ 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> */ @@ -4576,16 +4243,15 @@ 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> */ @@ -4594,8 +4260,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; @@ -4603,17 +4269,16 @@ 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 { @@ -4621,16 +4286,15 @@ 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> */ @@ -4639,8 +4303,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; @@ -4648,17 +4312,16 @@ 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 { @@ -4666,16 +4329,15 @@ 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> */ @@ -4684,8 +4346,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; @@ -4693,17 +4355,16 @@ 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 { @@ -4711,16 +4372,15 @@ 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> */ @@ -4729,8 +4389,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; @@ -4738,17 +4398,16 @@ 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 { @@ -4756,16 +4415,15 @@ 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> */ @@ -4774,8 +4432,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; @@ -4783,17 +4441,16 @@ 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 { @@ -4801,16 +4458,15 @@ 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> */ @@ -4818,16 +4474,15 @@ 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> */ @@ -4835,16 +4490,15 @@ 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> */ @@ -4852,16 +4506,15 @@ 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> */ @@ -4869,16 +4522,15 @@ 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> */ @@ -4887,8 +4539,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; @@ -4896,17 +4548,16 @@ 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 { @@ -4914,16 +4565,15 @@ 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> */ @@ -4931,16 +4581,15 @@ 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> */ @@ -4954,7 +4603,7 @@ public final class BatchReport { line_ = 0; msg_ = ""; severity_ = org.sonar.batch.protocol.Constants.Severity.INFO; - tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + tag_ = com.google.protobuf.LazyStringArrayList.EMPTY; effortToFix_ = 0D; isNew_ = false; uuid_ = ""; @@ -4976,22 +4625,17 @@ public final class BatchReport { isChanged_ = false; mustSendNotification_ = false; } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) - return true; - if (isInitialized == 0) - return false; + if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } 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()); @@ -5008,8 +4652,8 @@ public final class BatchReport { if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeEnum(5, severity_.getNumber()); } - for (int i = 0; i < tags_.size(); i++) { - output.writeBytes(6, tags_.getByteString(i)); + for (int i = 0; i < tag_.size(); i++) { + output.writeBytes(6, tag_.getByteString(i)); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeDouble(7, effortToFix_); @@ -5075,11 +4719,9 @@ 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)) { @@ -5104,12 +4746,12 @@ public final class BatchReport { } { int dataSize = 0; - for (int i = 0; i < tags_.size(); i++) { + for (int i = 0; i < tag_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream - .computeBytesSizeNoTag(tags_.getByteString(i)); + .computeBytesSizeNoTag(tag_.getByteString(i)); } size += dataSize; - size += 1 * getTagsList().size(); + size += 1 * getTagList().size(); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream @@ -5197,115 +4839,94 @@ 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 - // @@protoc_insertion_point(builder_implements:Issue) - org.sonar.batch.protocol.output.BatchReport.IssueOrBuilder { + com.google.protobuf.GeneratedMessage.Builder<Builder> + implements org.sonar.batch.protocol.output.BatchReport.IssueOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + 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() @@ -5314,16 +4935,14 @@ 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(); } @@ -5340,7 +4959,7 @@ public final class BatchReport { bitField0_ = (bitField0_ & ~0x00000008); severity_ = org.sonar.batch.protocol.Constants.Severity.INFO; bitField0_ = (bitField0_ & ~0x00000010); - tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + tag_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000020); effortToFix_ = 0D; bitField0_ = (bitField0_ & ~0x00000040); @@ -5390,7 +5009,7 @@ public final class BatchReport { } public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { + getDescriptorForType() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Issue_descriptor; } @@ -5431,10 +5050,11 @@ public final class BatchReport { } result.severity_ = severity_; if (((bitField0_ & 0x00000020) == 0x00000020)) { - tags_ = tags_.getUnmodifiableView(); + tag_ = new com.google.protobuf.UnmodifiableLazyStringList( + tag_); bitField0_ = (bitField0_ & ~0x00000020); } - result.tags_ = tags_; + result.tag_ = tag_; if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000020; } @@ -5522,7 +5142,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; @@ -5530,8 +5150,7 @@ 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_; @@ -5553,13 +5172,13 @@ public final class BatchReport { if (other.hasSeverity()) { setSeverity(other.getSeverity()); } - if (!other.tags_.isEmpty()) { - if (tags_.isEmpty()) { - tags_ = other.tags_; + if (!other.tag_.isEmpty()) { + if (tag_.isEmpty()) { + tag_ = other.tag_; bitField0_ = (bitField0_ & ~0x00000020); } else { - ensureTagsIsMutable(); - tags_.addAll(other.tags_); + ensureTagIsMutable(); + tag_.addAll(other.tag_); } onChanged(); } @@ -5652,9 +5271,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); @@ -5668,67 +5287,59 @@ 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)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - ruleRepository_ = s; - } + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + ruleRepository_ = s; return s; } else { return (java.lang.String) ref; } } - /** * <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> */ @@ -5738,79 +5349,71 @@ 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)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - ruleKey_ = s; - } + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + ruleKey_ = s; return s; } else { return (java.lang.String) ref; } } - /** * <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> */ @@ -5820,37 +5423,34 @@ 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; } - private int line_; - + // optional int32 line = 3; + 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> */ @@ -5860,7 +5460,6 @@ public final class BatchReport { onChanged(); return this; } - /** * <code>optional int32 line = 3;</code> */ @@ -5871,64 +5470,57 @@ 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)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - msg_ = s; - } + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + msg_ = s; return s; } else { return (java.lang.String) ref; } } - /** * <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> */ @@ -5938,37 +5530,34 @@ 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> */ @@ -5981,7 +5570,6 @@ public final class BatchReport { onChanged(); return this; } - /** * <code>optional .Severity severity = 5;</code> */ @@ -5992,111 +5580,101 @@ public final class BatchReport { return this; } - private com.google.protobuf.LazyStringList tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureTagsIsMutable() { + // repeated string tag = 6; + private com.google.protobuf.LazyStringList tag_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureTagIsMutable() { if (!((bitField0_ & 0x00000020) == 0x00000020)) { - tags_ = new com.google.protobuf.LazyStringArrayList(tags_); + tag_ = new com.google.protobuf.LazyStringArrayList(tag_); bitField0_ |= 0x00000020; - } + } } - /** - * <code>repeated string tags = 6;</code> + * <code>repeated string tag = 6;</code> */ - public com.google.protobuf.ProtocolStringList - getTagsList() { - return tags_.getUnmodifiableView(); + public java.util.List<java.lang.String> + getTagList() { + return java.util.Collections.unmodifiableList(tag_); } - /** - * <code>repeated string tags = 6;</code> + * <code>repeated string tag = 6;</code> */ - public int getTagsCount() { - return tags_.size(); + public int getTagCount() { + return tag_.size(); } - /** - * <code>repeated string tags = 6;</code> + * <code>repeated string tag = 6;</code> */ - public java.lang.String getTags(int index) { - return tags_.get(index); + public java.lang.String getTag(int index) { + return tag_.get(index); } - /** - * <code>repeated string tags = 6;</code> + * <code>repeated string tag = 6;</code> */ public com.google.protobuf.ByteString - getTagsBytes(int index) { - return tags_.getByteString(index); + getTagBytes(int index) { + return tag_.getByteString(index); } - /** - * <code>repeated string tags = 6;</code> + * <code>repeated string tag = 6;</code> */ - public Builder setTags( - int index, java.lang.String value) { + public Builder setTag( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureTagsIsMutable(); - tags_.set(index, value); + throw new NullPointerException(); + } + ensureTagIsMutable(); + tag_.set(index, value); onChanged(); return this; } - /** - * <code>repeated string tags = 6;</code> + * <code>repeated string tag = 6;</code> */ - public Builder addTags( - java.lang.String value) { + public Builder addTag( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureTagsIsMutable(); - tags_.add(value); + throw new NullPointerException(); + } + ensureTagIsMutable(); + tag_.add(value); onChanged(); return this; } - /** - * <code>repeated string tags = 6;</code> + * <code>repeated string tag = 6;</code> */ - public Builder addAllTags( - java.lang.Iterable<java.lang.String> values) { - ensureTagsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, tags_); + public Builder addAllTag( + java.lang.Iterable<java.lang.String> values) { + ensureTagIsMutable(); + super.addAll(values, tag_); onChanged(); return this; } - /** - * <code>repeated string tags = 6;</code> + * <code>repeated string tag = 6;</code> */ - public Builder clearTags() { - tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + public Builder clearTag() { + tag_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } - /** - * <code>repeated string tags = 6;</code> + * <code>repeated string tag = 6;</code> */ - public Builder addTagsBytes( - com.google.protobuf.ByteString value) { + public Builder addTagBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - ensureTagsIsMutable(); - tags_.add(value); + throw new NullPointerException(); + } + ensureTagIsMutable(); + tag_.add(value); onChanged(); return this; } - private double effortToFix_; - + // optional double effort_to_fix = 7; + private double effortToFix_ ; /** * <code>optional double effort_to_fix = 7;</code> * @@ -6107,7 +5685,6 @@ public final class BatchReport { public boolean hasEffortToFix() { return ((bitField0_ & 0x00000040) == 0x00000040); } - /** * <code>optional double effort_to_fix = 7;</code> * @@ -6118,7 +5695,6 @@ public final class BatchReport { public double getEffortToFix() { return effortToFix_; } - /** * <code>optional double effort_to_fix = 7;</code> * @@ -6132,7 +5708,6 @@ public final class BatchReport { onChanged(); return this; } - /** * <code>optional double effort_to_fix = 7;</code> * @@ -6147,22 +5722,20 @@ public final class BatchReport { return this; } - private boolean isNew_; - + // optional bool is_new = 8; + 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> */ @@ -6172,7 +5745,6 @@ public final class BatchReport { onChanged(); return this; } - /** * <code>optional bool is_new = 8;</code> */ @@ -6183,64 +5755,57 @@ 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)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - uuid_ = s; - } + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + uuid_ = s; return s; } else { return (java.lang.String) ref; } } - /** * <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> */ @@ -6250,37 +5815,34 @@ 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; } - private long debtInMinutes_; - + // optional int64 debt_in_minutes = 10; + 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> */ @@ -6290,7 +5852,6 @@ public final class BatchReport { onChanged(); return this; } - /** * <code>optional int64 debt_in_minutes = 10;</code> */ @@ -6301,64 +5862,57 @@ 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)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - resolution_ = s; - } + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + resolution_ = s; return s; } else { return (java.lang.String) ref; } } - /** * <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> */ @@ -6368,79 +5922,71 @@ 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)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - status_ = s; - } + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + status_ = s; return s; } else { return (java.lang.String) ref; } } - /** * <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> */ @@ -6450,79 +5996,71 @@ 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)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - checksum_ = s; - } + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + checksum_ = s; return s; } else { return (java.lang.String) ref; } } - /** * <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> */ @@ -6532,37 +6070,34 @@ 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; } - private boolean manualSeverity_; - + // optional bool manual_severity = 14; + 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> */ @@ -6572,7 +6107,6 @@ public final class BatchReport { onChanged(); return this; } - /** * <code>optional bool manual_severity = 14;</code> */ @@ -6583,64 +6117,57 @@ 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)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - reporter_ = s; - } + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + reporter_ = s; return s; } else { return (java.lang.String) ref; } } - /** * <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> */ @@ -6650,79 +6177,71 @@ 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)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - assignee_ = s; - } + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + assignee_ = s; return s; } else { return (java.lang.String) ref; } } - /** * <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> */ @@ -6732,79 +6251,71 @@ 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)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - actionPlanKey_ = s; - } + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + actionPlanKey_ = s; return s; } else { return (java.lang.String) ref; } } - /** * <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> */ @@ -6814,79 +6325,71 @@ 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)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - attributes_ = s; - } + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + attributes_ = s; return s; } else { return (java.lang.String) ref; } } - /** * <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> */ @@ -6896,79 +6399,71 @@ 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)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - authorLogin_ = s; - } + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + authorLogin_ = s; return s; } else { return (java.lang.String) ref; } } - /** * <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> */ @@ -6978,37 +6473,34 @@ 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; } - private long creationDate_; - + // optional int64 creation_date = 20; + 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> */ @@ -7018,7 +6510,6 @@ public final class BatchReport { onChanged(); return this; } - /** * <code>optional int64 creation_date = 20;</code> */ @@ -7029,22 +6520,20 @@ public final class BatchReport { return this; } - private long closeDate_; - + // optional int64 close_date = 21; + 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> */ @@ -7054,7 +6543,6 @@ public final class BatchReport { onChanged(); return this; } - /** * <code>optional int64 close_date = 21;</code> */ @@ -7065,22 +6553,20 @@ public final class BatchReport { return this; } - private long updateDate_; - + // optional int64 update_date = 22; + 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> */ @@ -7090,7 +6576,6 @@ public final class BatchReport { onChanged(); return this; } - /** * <code>optional int64 update_date = 22;</code> */ @@ -7101,22 +6586,20 @@ public final class BatchReport { return this; } - private long selectedAt_; - + // optional int64 selected_at = 23; + 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> */ @@ -7126,7 +6609,6 @@ public final class BatchReport { onChanged(); return this; } - /** * <code>optional int64 selected_at = 23;</code> */ @@ -7137,64 +6619,57 @@ 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)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - diffFields_ = s; - } + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + diffFields_ = s; return s; } else { return (java.lang.String) ref; } } - /** * <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> */ @@ -7204,37 +6679,34 @@ 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; } - private boolean isChanged_; - + // optional bool is_changed = 25; + 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> */ @@ -7244,7 +6716,6 @@ public final class BatchReport { onChanged(); return this; } - /** * <code>optional bool is_changed = 25;</code> */ @@ -7255,22 +6726,20 @@ public final class BatchReport { return this; } - private boolean mustSendNotification_; - + // optional bool must_send_notification = 26; + 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> */ @@ -7280,7 +6749,6 @@ public final class BatchReport { onChanged(); return this; } - /** * <code>optional bool must_send_notification = 26;</code> */ @@ -7302,48 +6770,45 @@ public final class BatchReport { // @@protoc_insertion_point(class_scope:Issue) } - public interface IssuesOrBuilder extends - // @@protoc_insertion_point(interface_extends:Issues) - com.google.protobuf.MessageOrBuilder { + public interface IssuesOrBuilder + extends com.google.protobuf.MessageOrBuilder { + // optional int32 component_ref = 1; /** * <code>optional int32 component_ref = 1;</code> */ boolean hasComponentRef(); - /** * <code>optional int32 component_ref = 1;</code> */ int getComponentRef(); + // repeated .Issue issue = 2; /** - * <code>repeated .Issue list = 2;</code> + * <code>repeated .Issue issue = 2;</code> */ - java.util.List<org.sonar.batch.protocol.output.BatchReport.Issue> - getListList(); - + java.util.List<org.sonar.batch.protocol.output.BatchReport.Issue> + getIssueList(); /** - * <code>repeated .Issue list = 2;</code> + * <code>repeated .Issue issue = 2;</code> */ - org.sonar.batch.protocol.output.BatchReport.Issue getList(int index); - + org.sonar.batch.protocol.output.BatchReport.Issue getIssue(int index); /** - * <code>repeated .Issue list = 2;</code> + * <code>repeated .Issue issue = 2;</code> */ - int getListCount(); - + int getIssueCount(); /** - * <code>repeated .Issue list = 2;</code> + * <code>repeated .Issue issue = 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> + getIssueOrBuilderList(); /** - * <code>repeated .Issue list = 2;</code> + * <code>repeated .Issue issue = 2;</code> */ - org.sonar.batch.protocol.output.BatchReport.IssueOrBuilder getListOrBuilder( - int index); + org.sonar.batch.protocol.output.BatchReport.IssueOrBuilder getIssueOrBuilder( + int index); + // optional string component_uuid = 3; /** * <code>optional string component_uuid = 3;</code> * @@ -7352,7 +6817,6 @@ public final class BatchReport { * </pre> */ boolean hasComponentUuid(); - /** * <code>optional string component_uuid = 3;</code> * @@ -7361,7 +6825,6 @@ public final class BatchReport { * </pre> */ java.lang.String getComponentUuid(); - /** * <code>optional string component_uuid = 3;</code> * @@ -7370,27 +6833,22 @@ 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 - // @@protoc_insertion_point(message_implements:Issues) - IssuesOrBuilder { + com.google.protobuf.GeneratedMessage + implements IssuesOrBuilder { // Use Issues.newBuilder() to construct. private Issues(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); 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; } @@ -7400,21 +6858,19 @@ 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) { @@ -7425,7 +6881,7 @@ public final class BatchReport { break; default: { if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { + extensionRegistry, tag)) { done = true; } break; @@ -7437,16 +6893,15 @@ public final class BatchReport { } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - list_ = new java.util.ArrayList<org.sonar.batch.protocol.output.BatchReport.Issue>(); + issue_ = new java.util.ArrayList<org.sonar.batch.protocol.output.BatchReport.Issue>(); mutable_bitField0_ |= 0x00000002; } - list_.add(input.readMessage(org.sonar.batch.protocol.output.BatchReport.Issue.PARSER, extensionRegistry)); + issue_.add(input.readMessage(org.sonar.batch.protocol.output.BatchReport.Issue.PARSER, extensionRegistry)); break; } case 26: { - com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; - componentUuid_ = bs; + componentUuid_ = input.readBytes(); break; } } @@ -7455,37 +6910,36 @@ 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_); + issue_ = java.util.Collections.unmodifiableList(issue_); } this.unknownFields = unknownFields.build(); 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() { @@ -7493,16 +6947,15 @@ 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> */ @@ -7510,49 +6963,45 @@ public final class BatchReport { return componentRef_; } - public static final int LIST_FIELD_NUMBER = 2; - private java.util.List<org.sonar.batch.protocol.output.BatchReport.Issue> list_; - + // repeated .Issue issue = 2; + public static final int ISSUE_FIELD_NUMBER = 2; + private java.util.List<org.sonar.batch.protocol.output.BatchReport.Issue> issue_; /** - * <code>repeated .Issue list = 2;</code> + * <code>repeated .Issue issue = 2;</code> */ - public java.util.List<org.sonar.batch.protocol.output.BatchReport.Issue> getListList() { - return list_; + public java.util.List<org.sonar.batch.protocol.output.BatchReport.Issue> getIssueList() { + return issue_; } - /** - * <code>repeated .Issue list = 2;</code> + * <code>repeated .Issue issue = 2;</code> */ - public java.util.List<? extends org.sonar.batch.protocol.output.BatchReport.IssueOrBuilder> - getListOrBuilderList() { - return list_; + public java.util.List<? extends org.sonar.batch.protocol.output.BatchReport.IssueOrBuilder> + getIssueOrBuilderList() { + return issue_; } - /** - * <code>repeated .Issue list = 2;</code> + * <code>repeated .Issue issue = 2;</code> */ - public int getListCount() { - return list_.size(); + public int getIssueCount() { + return issue_.size(); } - /** - * <code>repeated .Issue list = 2;</code> + * <code>repeated .Issue issue = 2;</code> */ - public org.sonar.batch.protocol.output.BatchReport.Issue getList(int index) { - return list_.get(index); + public org.sonar.batch.protocol.output.BatchReport.Issue getIssue(int index) { + return issue_.get(index); } - /** - * <code>repeated .Issue list = 2;</code> + * <code>repeated .Issue issue = 2;</code> */ - public org.sonar.batch.protocol.output.BatchReport.IssueOrBuilder getListOrBuilder( - int index) { - return list_.get(index); + public org.sonar.batch.protocol.output.BatchReport.IssueOrBuilder getIssueOrBuilder( + int index) { + return issue_.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> * @@ -7563,7 +7012,6 @@ public final class BatchReport { public boolean hasComponentUuid() { return ((bitField0_ & 0x00000002) == 0x00000002); } - /** * <code>optional string component_uuid = 3;</code> * @@ -7576,8 +7024,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; @@ -7585,7 +7033,6 @@ public final class BatchReport { return s; } } - /** * <code>optional string component_uuid = 3;</code> * @@ -7594,12 +7041,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 { @@ -7609,31 +7056,26 @@ public final class BatchReport { private void initFields() { componentRef_ = 0; - list_ = java.util.Collections.emptyList(); + issue_ = java.util.Collections.emptyList(); componentUuid_ = ""; } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) - return true; - if (isInitialized == 0) - return false; + if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } 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_); } - for (int i = 0; i < list_.size(); i++) { - output.writeMessage(2, list_.get(i)); + for (int i = 0; i < issue_.size(); i++) { + output.writeMessage(2, issue_.get(i)); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(3, getComponentUuidBytes()); @@ -7642,20 +7084,18 @@ 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)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, componentRef_); } - for (int i = 0; i < list_.size(); i++) { + for (int i = 0; i < issue_.size(); i++) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, list_.get(i)); + .computeMessageSize(2, issue_.get(i)); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream @@ -7667,115 +7107,94 @@ 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 - // @@protoc_insertion_point(builder_implements:Issues) - org.sonar.batch.protocol.output.BatchReport.IssuesOrBuilder { + com.google.protobuf.GeneratedMessage.Builder<Builder> + implements org.sonar.batch.protocol.output.BatchReport.IssuesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + 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() @@ -7784,17 +7203,15 @@ 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(); + getIssueFieldBuilder(); } } - private static Builder create() { return new Builder(); } @@ -7803,11 +7220,11 @@ public final class BatchReport { super.clear(); componentRef_ = 0; bitField0_ = (bitField0_ & ~0x00000001); - if (listBuilder_ == null) { - list_ = java.util.Collections.emptyList(); + if (issueBuilder_ == null) { + issue_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { - listBuilder_.clear(); + issueBuilder_.clear(); } componentUuid_ = ""; bitField0_ = (bitField0_ & ~0x00000004); @@ -7819,7 +7236,7 @@ public final class BatchReport { } public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { + getDescriptorForType() { return org.sonar.batch.protocol.output.BatchReport.internal_static_Issues_descriptor; } @@ -7843,14 +7260,14 @@ public final class BatchReport { to_bitField0_ |= 0x00000001; } result.componentRef_ = componentRef_; - if (listBuilder_ == null) { + if (issueBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { - list_ = java.util.Collections.unmodifiableList(list_); + issue_ = java.util.Collections.unmodifiableList(issue_); bitField0_ = (bitField0_ & ~0x00000002); } - result.list_ = list_; + result.issue_ = issue_; } else { - result.list_ = listBuilder_.build(); + result.issue_ = issueBuilder_.build(); } if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000002; @@ -7863,7 +7280,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; @@ -7871,34 +7288,33 @@ 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()); } - if (listBuilder_ == null) { - if (!other.list_.isEmpty()) { - if (list_.isEmpty()) { - list_ = other.list_; + if (issueBuilder_ == null) { + if (!other.issue_.isEmpty()) { + if (issue_.isEmpty()) { + issue_ = other.issue_; bitField0_ = (bitField0_ & ~0x00000002); } else { - ensureListIsMutable(); - list_.addAll(other.list_); + ensureIssueIsMutable(); + issue_.addAll(other.issue_); } onChanged(); } } else { - if (!other.list_.isEmpty()) { - if (listBuilder_.isEmpty()) { - listBuilder_.dispose(); - listBuilder_ = null; - list_ = other.list_; + if (!other.issue_.isEmpty()) { + if (issueBuilder_.isEmpty()) { + issueBuilder_.dispose(); + issueBuilder_ = null; + issue_ = other.issue_; bitField0_ = (bitField0_ & ~0x00000002); - listBuilder_ = + issueBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getListFieldBuilder() : null; + getIssueFieldBuilder() : null; } else { - listBuilder_.addAllMessages(other.list_); + issueBuilder_.addAllMessages(other.issue_); } } } @@ -7916,9 +7332,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); @@ -7932,25 +7348,22 @@ public final class BatchReport { } return this; } - private int bitField0_; - private int componentRef_; - + // optional int32 component_ref = 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> */ public int getComponentRef() { return componentRef_; } - /** * <code>optional int32 component_ref = 1;</code> */ @@ -7960,7 +7373,6 @@ public final class BatchReport { onChanged(); return this; } - /** * <code>optional int32 component_ref = 1;</code> */ @@ -7971,267 +7383,248 @@ public final class BatchReport { return this; } - private java.util.List<org.sonar.batch.protocol.output.BatchReport.Issue> list_ = + // repeated .Issue issue = 2; + private java.util.List<org.sonar.batch.protocol.output.BatchReport.Issue> issue_ = java.util.Collections.emptyList(); - - private void ensureListIsMutable() { + private void ensureIssueIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { - list_ = new java.util.ArrayList<org.sonar.batch.protocol.output.BatchReport.Issue>(list_); + issue_ = new java.util.ArrayList<org.sonar.batch.protocol.output.BatchReport.Issue>(issue_); 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> issueBuilder_; /** - * <code>repeated .Issue list = 2;</code> + * <code>repeated .Issue issue = 2;</code> */ - public java.util.List<org.sonar.batch.protocol.output.BatchReport.Issue> getListList() { - if (listBuilder_ == null) { - return java.util.Collections.unmodifiableList(list_); + public java.util.List<org.sonar.batch.protocol.output.BatchReport.Issue> getIssueList() { + if (issueBuilder_ == null) { + return java.util.Collections.unmodifiableList(issue_); } else { - return listBuilder_.getMessageList(); + return issueBuilder_.getMessageList(); } } - /** - * <code>repeated .Issue list = 2;</code> + * <code>repeated .Issue issue = 2;</code> */ - public int getListCount() { - if (listBuilder_ == null) { - return list_.size(); + public int getIssueCount() { + if (issueBuilder_ == null) { + return issue_.size(); } else { - return listBuilder_.getCount(); + return issueBuilder_.getCount(); } } - /** - * <code>repeated .Issue list = 2;</code> + * <code>repeated .Issue issue = 2;</code> */ - public org.sonar.batch.protocol.output.BatchReport.Issue getList(int index) { - if (listBuilder_ == null) { - return list_.get(index); + public org.sonar.batch.protocol.output.BatchReport.Issue getIssue(int index) { + if (issueBuilder_ == null) { + return issue_.get(index); } else { - return listBuilder_.getMessage(index); + return issueBuilder_.getMessage(index); } } - /** - * <code>repeated .Issue list = 2;</code> + * <code>repeated .Issue issue = 2;</code> */ - public Builder setList( - int index, org.sonar.batch.protocol.output.BatchReport.Issue value) { - if (listBuilder_ == null) { + public Builder setIssue( + int index, org.sonar.batch.protocol.output.BatchReport.Issue value) { + if (issueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureListIsMutable(); - list_.set(index, value); + ensureIssueIsMutable(); + issue_.set(index, value); onChanged(); } else { - listBuilder_.setMessage(index, value); + issueBuilder_.setMessage(index, value); } return this; } - /** - * <code>repeated .Issue list = 2;</code> + * <code>repeated .Issue issue = 2;</code> */ - public Builder setList( - int index, org.sonar.batch.protocol.output.BatchReport.Issue.Builder builderForValue) { - if (listBuilder_ == null) { - ensureListIsMutable(); - list_.set(index, builderForValue.build()); + public Builder setIssue( + int index, org.sonar.batch.protocol.output.BatchReport.Issue.Builder builderForValue) { + if (issueBuilder_ == null) { + ensureIssueIsMutable(); + issue_.set(index, builderForValue.build()); onChanged(); } else { - listBuilder_.setMessage(index, builderForValue.build()); + issueBuilder_.setMessage(index, builderForValue.build()); } return this; } - /** - * <code>repeated .Issue list = 2;</code> + * <code>repeated .Issue issue = 2;</code> */ - public Builder addList(org.sonar.batch.protocol.output.BatchReport.Issue value) { - if (listBuilder_ == null) { + public Builder addIssue(org.sonar.batch.protocol.output.BatchReport.Issue value) { + if (issueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureListIsMutable(); - list_.add(value); + ensureIssueIsMutable(); + issue_.add(value); onChanged(); } else { - listBuilder_.addMessage(value); + issueBuilder_.addMessage(value); } return this; } - /** - * <code>repeated .Issue list = 2;</code> + * <code>repeated .Issue issue = 2;</code> */ - public Builder addList( - int index, org.sonar.batch.protocol.output.BatchReport.Issue value) { - if (listBuilder_ == null) { + public Builder addIssue( + int index, org.sonar.batch.protocol.output.BatchReport.Issue value) { + if (issueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureListIsMutable(); - list_.add(index, value); + ensureIssueIsMutable(); + issue_.add(index, value); onChanged(); } else { - listBuilder_.addMessage(index, value); + issueBuilder_.addMessage(index, value); } return this; } - /** - * <code>repeated .Issue list = 2;</code> + * <code>repeated .Issue issue = 2;</code> */ - public Builder addList( - org.sonar.batch.protocol.output.BatchReport.Issue.Builder builderForValue) { - if (listBuilder_ == null) { - ensureListIsMutable(); - list_.add(builderForValue.build()); + public Builder addIssue( + org.sonar.batch.protocol.output.BatchReport.Issue.Builder builderForValue) { + if (issueBuilder_ == null) { + ensureIssueIsMutable(); + issue_.add(builderForValue.build()); onChanged(); } else { - listBuilder_.addMessage(builderForValue.build()); + issueBuilder_.addMessage(builderForValue.build()); } return this; } - /** - * <code>repeated .Issue list = 2;</code> + * <code>repeated .Issue issue = 2;</code> */ - public Builder addList( - int index, org.sonar.batch.protocol.output.BatchReport.Issue.Builder builderForValue) { - if (listBuilder_ == null) { - ensureListIsMutable(); - list_.add(index, builderForValue.build()); + public Builder addIssue( + int index, org.sonar.batch.protocol.output.BatchReport.Issue.Builder builderForValue) { + if (issueBuilder_ == null) { + ensureIssueIsMutable(); + issue_.add(index, builderForValue.build()); onChanged(); } else { - listBuilder_.addMessage(index, builderForValue.build()); + issueBuilder_.addMessage(index, builderForValue.build()); } return this; } - /** - * <code>repeated .Issue list = 2;</code> + * <code>repeated .Issue issue = 2;</code> */ - public Builder addAllList( - java.lang.Iterable<? extends org.sonar.batch.protocol.output.BatchReport.Issue> values) { - if (listBuilder_ == null) { - ensureListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, list_); + public Builder addAllIssue( + java.lang.Iterable<? extends org.sonar.batch.protocol.output.BatchReport.Issue> values) { + if (issueBuilder_ == null) { + ensureIssueIsMutable(); + super.addAll(values, issue_); onChanged(); } else { - listBuilder_.addAllMessages(values); + issueBuilder_.addAllMessages(values); } return this; } - /** - * <code>repeated .Issue list = 2;</code> + * <code>repeated .Issue issue = 2;</code> */ - public Builder clearList() { - if (listBuilder_ == null) { - list_ = java.util.Collections.emptyList(); + public Builder clearIssue() { + if (issueBuilder_ == null) { + issue_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { - listBuilder_.clear(); + issueBuilder_.clear(); } return this; } - /** - * <code>repeated .Issue list = 2;</code> + * <code>repeated .Issue issue = 2;</code> */ - public Builder removeList(int index) { - if (listBuilder_ == null) { - ensureListIsMutable(); - list_.remove(index); + public Builder removeIssue(int index) { + if (issueBuilder_ == null) { + ensureIssueIsMutable(); + issue_.remove(index); onChanged(); } else { - listBuilder_.remove(index); + issueBuilder_.remove(index); } return this; } - /** - * <code>repeated .Issue list = 2;</code> + * <code>repeated .Issue issue = 2;</code> */ - public org.sonar.batch.protocol.output.BatchReport.Issue.Builder getListBuilder( - int index) { - return getListFieldBuilder().getBuilder(index); + public org.sonar.batch.protocol.output.BatchReport.Issue.Builder getIssueBuilder( + int index) { + return getIssueFieldBuilder().getBuilder(index); } - /** - * <code>repeated .Issue list = 2;</code> + * <code>repeated .Issue issue = 2;</code> */ - public org.sonar.batch.protocol.output.BatchReport.IssueOrBuilder getListOrBuilder( - int index) { - if (listBuilder_ == null) { - return list_.get(index); - } else { - return listBuilder_.getMessageOrBuilder(index); + public org.sonar.batch.protocol.output.BatchReport.IssueOrBuilder getIssueOrBuilder( + int index) { + if (issueBuilder_ == null) { + return issue_.get(index); } else { + return issueBuilder_.getMessageOrBuilder(index); } } - /** - * <code>repeated .Issue list = 2;</code> + * <code>repeated .Issue issue = 2;</code> */ - public java.util.List<? extends org.sonar.batch.protocol.output.BatchReport.IssueOrBuilder> - getListOrBuilderList() { - if (listBuilder_ != null) { - return listBuilder_.getMessageOrBuilderList(); + public java.util.List<? extends org.sonar.batch.protocol.output.BatchReport.IssueOrBuilder> + getIssueOrBuilderList() { + if (issueBuilder_ != null) { + return issueBuilder_.getMessageOrBuilderList(); } else { - return java.util.Collections.unmodifiableList(list_); + return java.util.Collections.unmodifiableList(issue_); } } - /** - * <code>repeated .Issue list = 2;</code> + * <code>repeated .Issue issue = 2;</code> */ - public org.sonar.batch.protocol.output.BatchReport.Issue.Builder addListBuilder() { - return getListFieldBuilder().addBuilder( - org.sonar.batch.protocol.output.BatchReport.Issue.getDefaultInstance()); + public org.sonar.batch.protocol.output.BatchReport.Issue.Builder addIssueBuilder() { + return getIssueFieldBuilder().addBuilder( + org.sonar.batch.protocol.output.BatchReport.Issue.getDefaultInstance()); } - /** - * <code>repeated .Issue list = 2;</code> + * <code>repeated .Issue issue = 2;</code> */ - public org.sonar.batch.protocol.output.BatchReport.Issue.Builder addListBuilder( - int index) { - return getListFieldBuilder().addBuilder( - index, org.sonar.batch.protocol.output.BatchReport.Issue.getDefaultInstance()); + public org.sonar.batch.protocol.output.BatchReport.Issue.Builder addIssueBuilder( + int index) { + return getIssueFieldBuilder().addBuilder( + index, org.sonar.batch.protocol.output.BatchReport.Issue.getDefaultInstance()); } - /** - * <code>repeated .Issue list = 2;</code> + * <code>repeated .Issue issue = 2;</code> */ - public java.util.List<org.sonar.batch.protocol.output.BatchReport.Issue.Builder> - getListBuilderList() { - return getListFieldBuilder().getBuilderList(); + public java.util.List<org.sonar.batch.protocol.output.BatchReport.Issue.Builder> + getIssueBuilderList() { + return getIssueFieldBuilder().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() { - 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()); - list_ = null; + org.sonar.batch.protocol.output.BatchReport.Issue, org.sonar.batch.protocol.output.BatchReport.Issue.Builder, org.sonar.batch.protocol.output.BatchReport.IssueOrBuilder> + getIssueFieldBuilder() { + if (issueBuilder_ == null) { + issueBuilder_ = 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>( + issue_, + ((bitField0_ & 0x00000002) == 0x00000002), + getParentForChildren(), + isClean()); + issue_ = null; } - return listBuilder_; + return issueBuilder_; } + // optional string component_uuid = 3; private java.lang.Object componentUuid_ = ""; - /** * <code>optional string component_uuid = 3;</code> * @@ -8242,7 +7635,6 @@ public final class BatchReport { public boolean hasComponentUuid() { return ((bitField0_ & 0x00000004) == 0x00000004); } - /** * <code>optional string component_uuid = 3;</code> * @@ -8253,18 +7645,14 @@ public final class BatchReport { public java.lang.String getComponentUuid() { java.lang.Object ref = componentUuid_; 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()) { - componentUuid_ = s; - } + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + componentUuid_ = s; return s; } else { return (java.lang.String) ref; } } - /** * <code>optional string component_uuid = 3;</code> * @@ -8273,19 +7661,18 @@ 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> * @@ -8294,16 +7681,15 @@ 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> * @@ -8317,7 +7703,6 @@ public final class BatchReport { onChanged(); return this; } - /** * <code>optional string component_uuid = 3;</code> * @@ -8326,11 +7711,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; @@ -8347,100 +7732,112 @@ public final class BatchReport { // @@protoc_insertion_point(class_scope:Issues) } - 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; + 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_ComponentLink_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_ComponentLink_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; 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\"?\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" + "\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\"\315\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\025\n\tchild_ref\030\007 \003(\005B\002\020\001\022\034\n\004link\030\n \003(\0132", + "\016.ComponentLink\022\023\n\013snapshot_id\030\010 \001(\005\022\014\n\004" + + "uuid\030\t \001(\t\"\231\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\010severity\030\005 \001(\0162\t.Severity\022" + + "\013\n\003tag\030\006 \003(\t\022\025\n\reffort_to_fix\030\007 \001(\001\022\016\n\006i" + + "s_new\030\010 \001(\010\022\014\n\004uuid\030\t \001(\t\022\027\n\017debt_in_min" + + "utes\030\n \001(\003\022\022\n\nresolution\030\013 \001(\t\022\016\n\006status" + + "\030\014 \001(\t\022\020\n\010checksum\030\r \001(\t\022\027\n\017manual_sever" + + "ity\030\016 \001(\010\022\020\n\010reporter\030\017 \001(\t\022\020\n\010assignee\030" + + "\020 \001(\t\022\027\n\017action_plan_key\030\021 \001(\t\022\022\n\nattrib", + "utes\030\022 \001(\t\022\024\n\014author_login\030\023 \001(\t\022\025\n\rcrea" + + "tion_date\030\024 \001(\003\022\022\n\nclose_date\030\025 \001(\003\022\023\n\013u" + + "pdate_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\"N\n\006Issues" + + "\022\025\n\rcomponent_ref\030\001 \001(\005\022\025\n\005issue\030\002 \003(\0132\006" + + ".Issue\022\026\n\016component_uuid\030\003 \001(\tB#\n\037org.so" + + "nar.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_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", "ChildRef", "Link", "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", "Tag", "EffortToFix", "IsNew", "Uuid", "DebtInMinutes", "Resolution", "Status", "Checksum", "ManualSeverity", "Reporter", "Assignee", "ActionPlanKey", "Attributes", "AuthorLogin", "CreationDate", "CloseDate", "UpdateDate", "SelectedAt", "DiffFields", "IsChanged", "MustSendNotification", }); + internal_static_Issues_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_Issues_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_Issues_descriptor, + new java.lang.String[] { "ComponentRef", "Issue", "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 13609283ec4..6603bc8ef05 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,43 +4,39 @@ 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 { - public interface LineOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.sonar.server.source.db.Line) - com.google.protobuf.MessageOrBuilder { - + // optional int32 line = 1; /** * <code>optional int32 line = 1;</code> */ 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> * @@ -49,7 +45,6 @@ public final class FileSourceDb { * </pre> */ boolean hasScmRevision(); - /** * <code>optional string scm_revision = 3;</code> * @@ -58,7 +53,6 @@ public final class FileSourceDb { * </pre> */ java.lang.String getScmRevision(); - /** * <code>optional string scm_revision = 3;</code> * @@ -67,34 +61,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> * @@ -103,7 +97,6 @@ public final class FileSourceDb { * </pre> */ boolean hasUtLineHits(); - /** * <code>optional int32 ut_line_hits = 6;</code> * @@ -113,26 +106,27 @@ 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> * @@ -141,7 +135,6 @@ public final class FileSourceDb { * </pre> */ boolean hasItLineHits(); - /** * <code>optional int32 it_line_hits = 9;</code> * @@ -151,26 +144,27 @@ 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> * @@ -179,7 +173,6 @@ public final class FileSourceDb { * </pre> */ boolean hasOverallLineHits(); - /** * <code>optional int32 overall_line_hits = 12;</code> * @@ -189,92 +182,84 @@ 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 duplication = 17 [packed = true]; /** - * <code>repeated int32 duplications = 17 [packed = true];</code> + * <code>repeated int32 duplication = 17 [packed = true];</code> */ - java.util.List<java.lang.Integer> getDuplicationsList(); - + java.util.List<java.lang.Integer> getDuplicationList(); /** - * <code>repeated int32 duplications = 17 [packed = true];</code> + * <code>repeated int32 duplication = 17 [packed = true];</code> */ - int getDuplicationsCount(); - + int getDuplicationCount(); /** - * <code>repeated int32 duplications = 17 [packed = true];</code> + * <code>repeated int32 duplication = 17 [packed = true];</code> */ - int getDuplications(int index); + int getDuplication(int index); } /** * Protobuf type {@code org.sonar.server.source.db.Line} */ public static final class Line extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:org.sonar.server.source.db.Line) - LineOrBuilder { + com.google.protobuf.GeneratedMessage + implements LineOrBuilder { // Use Line.newBuilder() to construct. private Line(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); 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; } @@ -284,21 +269,19 @@ 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) { @@ -309,7 +292,7 @@ public final class FileSourceDb { break; default: { if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { + extensionRegistry, tag)) { done = true; } break; @@ -320,21 +303,18 @@ public final class FileSourceDb { break; } case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; - source_ = bs; + source_ = input.readBytes(); break; } case 26: { - com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000004; - scmRevision_ = bs; + scmRevision_ = input.readBytes(); break; } case 34: { - com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000008; - scmAuthor_ = bs; + scmAuthor_ = input.readBytes(); break; } case 40: { @@ -388,34 +368,32 @@ public final class FileSourceDb { break; } case 122: { - com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00004000; - highlighting_ = bs; + highlighting_ = input.readBytes(); break; } case 130: { - com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00008000; - symbols_ = bs; + symbols_ = input.readBytes(); break; } case 136: { if (!((mutable_bitField0_ & 0x00010000) == 0x00010000)) { - duplications_ = new java.util.ArrayList<java.lang.Integer>(); + duplication_ = new java.util.ArrayList<java.lang.Integer>(); mutable_bitField0_ |= 0x00010000; } - duplications_.add(input.readInt32()); + duplication_.add(input.readInt32()); break; } case 138: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00010000) == 0x00010000) && input.getBytesUntilLimit() > 0) { - duplications_ = new java.util.ArrayList<java.lang.Integer>(); + duplication_ = new java.util.ArrayList<java.lang.Integer>(); mutable_bitField0_ |= 0x00010000; } while (input.getBytesUntilLimit() > 0) { - duplications_.add(input.readInt32()); + duplication_.add(input.readInt32()); } input.popLimit(limit); break; @@ -426,37 +404,36 @@ 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_); + duplication_ = java.util.Collections.unmodifiableList(duplication_); } this.unknownFields = unknownFields.build(); 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() { @@ -464,16 +441,15 @@ 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> */ @@ -481,16 +457,15 @@ 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> */ @@ -499,8 +474,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; @@ -508,17 +483,16 @@ 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 { @@ -526,9 +500,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> * @@ -539,7 +513,6 @@ public final class FileSourceDb { public boolean hasScmRevision() { return ((bitField0_ & 0x00000004) == 0x00000004); } - /** * <code>optional string scm_revision = 3;</code> * @@ -552,8 +525,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; @@ -561,7 +534,6 @@ public final class FileSourceDb { return s; } } - /** * <code>optional string scm_revision = 3;</code> * @@ -570,12 +542,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 { @@ -583,16 +555,15 @@ 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> */ @@ -601,8 +572,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; @@ -610,17 +581,16 @@ 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 { @@ -628,16 +598,15 @@ 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> */ @@ -645,9 +614,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> * @@ -658,7 +627,6 @@ public final class FileSourceDb { public boolean hasUtLineHits() { return ((bitField0_ & 0x00000020) == 0x00000020); } - /** * <code>optional int32 ut_line_hits = 6;</code> * @@ -670,16 +638,15 @@ 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> */ @@ -687,16 +654,15 @@ 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> */ @@ -704,9 +670,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> * @@ -717,7 +683,6 @@ public final class FileSourceDb { public boolean hasItLineHits() { return ((bitField0_ & 0x00000100) == 0x00000100); } - /** * <code>optional int32 it_line_hits = 9;</code> * @@ -729,16 +694,15 @@ 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> */ @@ -746,16 +710,15 @@ 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> */ @@ -763,9 +726,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> * @@ -776,7 +739,6 @@ public final class FileSourceDb { public boolean hasOverallLineHits() { return ((bitField0_ & 0x00000800) == 0x00000800); } - /** * <code>optional int32 overall_line_hits = 12;</code> * @@ -788,16 +750,15 @@ 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> */ @@ -805,16 +766,15 @@ 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> */ @@ -822,16 +782,15 @@ 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> */ @@ -840,8 +799,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; @@ -849,17 +808,16 @@ 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 { @@ -867,16 +825,15 @@ 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> */ @@ -885,8 +842,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; @@ -894,17 +851,16 @@ 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 { @@ -912,32 +868,29 @@ public final class FileSourceDb { } } - public static final int DUPLICATIONS_FIELD_NUMBER = 17; - private java.util.List<java.lang.Integer> duplications_; - + // repeated int32 duplication = 17 [packed = true]; + public static final int DUPLICATION_FIELD_NUMBER = 17; + private java.util.List<java.lang.Integer> duplication_; /** - * <code>repeated int32 duplications = 17 [packed = true];</code> + * <code>repeated int32 duplication = 17 [packed = true];</code> */ public java.util.List<java.lang.Integer> - getDuplicationsList() { - return duplications_; + getDuplicationList() { + return duplication_; } - /** - * <code>repeated int32 duplications = 17 [packed = true];</code> + * <code>repeated int32 duplication = 17 [packed = true];</code> */ - public int getDuplicationsCount() { - return duplications_.size(); + public int getDuplicationCount() { + return duplication_.size(); } - /** - * <code>repeated int32 duplications = 17 [packed = true];</code> + * <code>repeated int32 duplication = 17 [packed = true];</code> */ - public int getDuplications(int index) { - return duplications_.get(index); + public int getDuplication(int index) { + return duplication_.get(index); } - - private int duplicationsMemoizedSerializedSize = -1; + private int duplicationMemoizedSerializedSize = -1; private void initFields() { line_ = 0; @@ -956,24 +909,19 @@ public final class FileSourceDb { overallCoveredConditions_ = 0; highlighting_ = ""; symbols_ = ""; - duplications_ = java.util.Collections.emptyList(); + duplication_ = java.util.Collections.emptyList(); } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) - return true; - if (isInitialized == 0) - return false; + if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } 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_); @@ -1023,22 +971,20 @@ public final class FileSourceDb { if (((bitField0_ & 0x00008000) == 0x00008000)) { output.writeBytes(16, getSymbolsBytes()); } - if (getDuplicationsList().size() > 0) { + if (getDuplicationList().size() > 0) { output.writeRawVarint32(138); - output.writeRawVarint32(duplicationsMemoizedSerializedSize); + output.writeRawVarint32(duplicationMemoizedSerializedSize); } - for (int i = 0; i < duplications_.size(); i++) { - output.writeInt32NoTag(duplications_.get(i)); + for (int i = 0; i < duplication_.size(); i++) { + output.writeInt32NoTag(duplication_.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)) { @@ -1107,17 +1053,17 @@ public final class FileSourceDb { } { int dataSize = 0; - for (int i = 0; i < duplications_.size(); i++) { + for (int i = 0; i < duplication_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(duplications_.get(i)); + .computeInt32SizeNoTag(duplication_.get(i)); } size += dataSize; - if (!getDuplicationsList().isEmpty()) { + if (!getDuplicationList().isEmpty()) { size += 2; size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); + .computeInt32SizeNoTag(dataSize); } - duplicationsMemoizedSerializedSize = dataSize; + duplicationMemoizedSerializedSize = dataSize; } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; @@ -1125,115 +1071,94 @@ 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 - // @@protoc_insertion_point(builder_implements:org.sonar.server.source.db.Line) - org.sonar.server.source.db.FileSourceDb.LineOrBuilder { + com.google.protobuf.GeneratedMessage.Builder<Builder> + implements org.sonar.server.source.db.FileSourceDb.LineOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + 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() @@ -1242,16 +1167,14 @@ 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(); } @@ -1290,7 +1213,7 @@ public final class FileSourceDb { bitField0_ = (bitField0_ & ~0x00004000); symbols_ = ""; bitField0_ = (bitField0_ & ~0x00008000); - duplications_ = java.util.Collections.emptyList(); + duplication_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00010000); return this; } @@ -1300,7 +1223,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; } @@ -1385,10 +1308,10 @@ public final class FileSourceDb { } result.symbols_ = symbols_; if (((bitField0_ & 0x00010000) == 0x00010000)) { - duplications_ = java.util.Collections.unmodifiableList(duplications_); + duplication_ = java.util.Collections.unmodifiableList(duplication_); bitField0_ = (bitField0_ & ~0x00010000); } - result.duplications_ = duplications_; + result.duplication_ = duplication_; result.bitField0_ = to_bitField0_; onBuilt(); return result; @@ -1396,7 +1319,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; @@ -1404,8 +1327,7 @@ 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()); } @@ -1464,13 +1386,13 @@ public final class FileSourceDb { symbols_ = other.symbols_; onChanged(); } - if (!other.duplications_.isEmpty()) { - if (duplications_.isEmpty()) { - duplications_ = other.duplications_; + if (!other.duplication_.isEmpty()) { + if (duplication_.isEmpty()) { + duplication_ = other.duplication_; bitField0_ = (bitField0_ & ~0x00010000); } else { - ensureDuplicationsIsMutable(); - duplications_.addAll(other.duplications_); + ensureDuplicationIsMutable(); + duplication_.addAll(other.duplication_); } onChanged(); } @@ -1483,9 +1405,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); @@ -1499,25 +1421,22 @@ public final class FileSourceDb { } return this; } - private int bitField0_; - private int line_; - + // optional int32 line = 1; + 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> */ @@ -1527,7 +1446,6 @@ public final class FileSourceDb { onChanged(); return this; } - /** * <code>optional int32 line = 1;</code> */ @@ -1538,64 +1456,57 @@ 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)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - source_ = s; - } + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + source_ = s; return s; } else { return (java.lang.String) ref; } } - /** * <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> */ @@ -1605,23 +1516,22 @@ 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> * @@ -1632,7 +1542,6 @@ public final class FileSourceDb { public boolean hasScmRevision() { return ((bitField0_ & 0x00000004) == 0x00000004); } - /** * <code>optional string scm_revision = 3;</code> * @@ -1643,18 +1552,14 @@ public final class FileSourceDb { public java.lang.String getScmRevision() { java.lang.Object ref = scmRevision_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - scmRevision_ = s; - } + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + scmRevision_ = s; return s; } else { return (java.lang.String) ref; } } - /** * <code>optional string scm_revision = 3;</code> * @@ -1663,19 +1568,18 @@ 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> * @@ -1684,16 +1588,15 @@ 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> * @@ -1707,7 +1610,6 @@ public final class FileSourceDb { onChanged(); return this; } - /** * <code>optional string scm_revision = 3;</code> * @@ -1716,74 +1618,67 @@ 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)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - scmAuthor_ = s; - } + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + scmAuthor_ = s; return s; } else { return (java.lang.String) ref; } } - /** * <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> */ @@ -1793,37 +1688,34 @@ 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; } - private long scmDate_; - + // optional int64 scm_date = 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> */ public long getScmDate() { return scmDate_; } - /** * <code>optional int64 scm_date = 5;</code> */ @@ -1833,7 +1725,6 @@ public final class FileSourceDb { onChanged(); return this; } - /** * <code>optional int64 scm_date = 5;</code> */ @@ -1844,8 +1735,8 @@ public final class FileSourceDb { return this; } - private int utLineHits_; - + // optional int32 ut_line_hits = 6; + private int utLineHits_ ; /** * <code>optional int32 ut_line_hits = 6;</code> * @@ -1856,7 +1747,6 @@ public final class FileSourceDb { public boolean hasUtLineHits() { return ((bitField0_ & 0x00000020) == 0x00000020); } - /** * <code>optional int32 ut_line_hits = 6;</code> * @@ -1867,7 +1757,6 @@ public final class FileSourceDb { public int getUtLineHits() { return utLineHits_; } - /** * <code>optional int32 ut_line_hits = 6;</code> * @@ -1881,7 +1770,6 @@ public final class FileSourceDb { onChanged(); return this; } - /** * <code>optional int32 ut_line_hits = 6;</code> * @@ -1896,22 +1784,20 @@ public final class FileSourceDb { return this; } - private int utConditions_; - + // optional int32 ut_conditions = 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> */ public int getUtConditions() { return utConditions_; } - /** * <code>optional int32 ut_conditions = 7;</code> */ @@ -1921,7 +1807,6 @@ public final class FileSourceDb { onChanged(); return this; } - /** * <code>optional int32 ut_conditions = 7;</code> */ @@ -1932,22 +1817,20 @@ public final class FileSourceDb { return this; } - private int utCoveredConditions_; - + // optional int32 ut_covered_conditions = 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> */ public int getUtCoveredConditions() { return utCoveredConditions_; } - /** * <code>optional int32 ut_covered_conditions = 8;</code> */ @@ -1957,7 +1840,6 @@ public final class FileSourceDb { onChanged(); return this; } - /** * <code>optional int32 ut_covered_conditions = 8;</code> */ @@ -1968,8 +1850,8 @@ public final class FileSourceDb { return this; } - private int itLineHits_; - + // optional int32 it_line_hits = 9; + private int itLineHits_ ; /** * <code>optional int32 it_line_hits = 9;</code> * @@ -1980,7 +1862,6 @@ public final class FileSourceDb { public boolean hasItLineHits() { return ((bitField0_ & 0x00000100) == 0x00000100); } - /** * <code>optional int32 it_line_hits = 9;</code> * @@ -1991,7 +1872,6 @@ public final class FileSourceDb { public int getItLineHits() { return itLineHits_; } - /** * <code>optional int32 it_line_hits = 9;</code> * @@ -2005,7 +1885,6 @@ public final class FileSourceDb { onChanged(); return this; } - /** * <code>optional int32 it_line_hits = 9;</code> * @@ -2020,22 +1899,20 @@ public final class FileSourceDb { return this; } - private int itConditions_; - + // optional int32 it_conditions = 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> */ public int getItConditions() { return itConditions_; } - /** * <code>optional int32 it_conditions = 10;</code> */ @@ -2045,7 +1922,6 @@ public final class FileSourceDb { onChanged(); return this; } - /** * <code>optional int32 it_conditions = 10;</code> */ @@ -2056,22 +1932,20 @@ public final class FileSourceDb { return this; } - private int itCoveredConditions_; - + // optional int32 it_covered_conditions = 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> */ public int getItCoveredConditions() { return itCoveredConditions_; } - /** * <code>optional int32 it_covered_conditions = 11;</code> */ @@ -2081,7 +1955,6 @@ public final class FileSourceDb { onChanged(); return this; } - /** * <code>optional int32 it_covered_conditions = 11;</code> */ @@ -2092,8 +1965,8 @@ public final class FileSourceDb { return this; } - private int overallLineHits_; - + // optional int32 overall_line_hits = 12; + private int overallLineHits_ ; /** * <code>optional int32 overall_line_hits = 12;</code> * @@ -2104,7 +1977,6 @@ public final class FileSourceDb { public boolean hasOverallLineHits() { return ((bitField0_ & 0x00000800) == 0x00000800); } - /** * <code>optional int32 overall_line_hits = 12;</code> * @@ -2115,7 +1987,6 @@ public final class FileSourceDb { public int getOverallLineHits() { return overallLineHits_; } - /** * <code>optional int32 overall_line_hits = 12;</code> * @@ -2129,7 +2000,6 @@ public final class FileSourceDb { onChanged(); return this; } - /** * <code>optional int32 overall_line_hits = 12;</code> * @@ -2144,22 +2014,20 @@ public final class FileSourceDb { return this; } - private int overallConditions_; - + // optional int32 overall_conditions = 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> */ public int getOverallConditions() { return overallConditions_; } - /** * <code>optional int32 overall_conditions = 13;</code> */ @@ -2169,7 +2037,6 @@ public final class FileSourceDb { onChanged(); return this; } - /** * <code>optional int32 overall_conditions = 13;</code> */ @@ -2180,22 +2047,20 @@ public final class FileSourceDb { return this; } - private int overallCoveredConditions_; - + // optional int32 overall_covered_conditions = 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> */ public int getOverallCoveredConditions() { return overallCoveredConditions_; } - /** * <code>optional int32 overall_covered_conditions = 14;</code> */ @@ -2205,7 +2070,6 @@ public final class FileSourceDb { onChanged(); return this; } - /** * <code>optional int32 overall_covered_conditions = 14;</code> */ @@ -2216,64 +2080,57 @@ 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)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - highlighting_ = s; - } + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + highlighting_ = s; return s; } else { return (java.lang.String) ref; } } - /** * <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> */ @@ -2283,79 +2140,71 @@ 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)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - symbols_ = s; - } + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + symbols_ = s; return s; } else { return (java.lang.String) ref; } } - /** * <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> */ @@ -2365,90 +2214,81 @@ 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; } - private java.util.List<java.lang.Integer> duplications_ = java.util.Collections.emptyList(); - - private void ensureDuplicationsIsMutable() { + // repeated int32 duplication = 17 [packed = true]; + private java.util.List<java.lang.Integer> duplication_ = java.util.Collections.emptyList(); + private void ensureDuplicationIsMutable() { if (!((bitField0_ & 0x00010000) == 0x00010000)) { - duplications_ = new java.util.ArrayList<java.lang.Integer>(duplications_); + duplication_ = new java.util.ArrayList<java.lang.Integer>(duplication_); bitField0_ |= 0x00010000; - } + } } - /** - * <code>repeated int32 duplications = 17 [packed = true];</code> + * <code>repeated int32 duplication = 17 [packed = true];</code> */ public java.util.List<java.lang.Integer> - getDuplicationsList() { - return java.util.Collections.unmodifiableList(duplications_); + getDuplicationList() { + return java.util.Collections.unmodifiableList(duplication_); } - /** - * <code>repeated int32 duplications = 17 [packed = true];</code> + * <code>repeated int32 duplication = 17 [packed = true];</code> */ - public int getDuplicationsCount() { - return duplications_.size(); + public int getDuplicationCount() { + return duplication_.size(); } - /** - * <code>repeated int32 duplications = 17 [packed = true];</code> + * <code>repeated int32 duplication = 17 [packed = true];</code> */ - public int getDuplications(int index) { - return duplications_.get(index); + public int getDuplication(int index) { + return duplication_.get(index); } - /** - * <code>repeated int32 duplications = 17 [packed = true];</code> + * <code>repeated int32 duplication = 17 [packed = true];</code> */ - public Builder setDuplications( - int index, int value) { - ensureDuplicationsIsMutable(); - duplications_.set(index, value); + public Builder setDuplication( + int index, int value) { + ensureDuplicationIsMutable(); + duplication_.set(index, value); onChanged(); return this; } - /** - * <code>repeated int32 duplications = 17 [packed = true];</code> + * <code>repeated int32 duplication = 17 [packed = true];</code> */ - public Builder addDuplications(int value) { - ensureDuplicationsIsMutable(); - duplications_.add(value); + public Builder addDuplication(int value) { + ensureDuplicationIsMutable(); + duplication_.add(value); onChanged(); return this; } - /** - * <code>repeated int32 duplications = 17 [packed = true];</code> + * <code>repeated int32 duplication = 17 [packed = true];</code> */ - public Builder addAllDuplications( - java.lang.Iterable<? extends java.lang.Integer> values) { - ensureDuplicationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, duplications_); + public Builder addAllDuplication( + java.lang.Iterable<? extends java.lang.Integer> values) { + ensureDuplicationIsMutable(); + super.addAll(values, duplication_); onChanged(); return this; } - /** - * <code>repeated int32 duplications = 17 [packed = true];</code> + * <code>repeated int32 duplication = 17 [packed = true];</code> */ - public Builder clearDuplications() { - duplications_ = java.util.Collections.emptyList(); + public Builder clearDuplication() { + duplication_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00010000); onChanged(); return this; @@ -2465,57 +2305,48 @@ public final class FileSourceDb { // @@protoc_insertion_point(class_scope:org.sonar.server.source.db.Line) } - public interface DataOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.sonar.server.source.db.Data) - com.google.protobuf.MessageOrBuilder { + public interface DataOrBuilder + extends com.google.protobuf.MessageOrBuilder { + // repeated .org.sonar.server.source.db.Line lines = 1; /** * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code> */ - 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 - // @@protoc_insertion_point(message_implements:org.sonar.server.source.db.Data) - DataOrBuilder { + com.google.protobuf.GeneratedMessage + implements DataOrBuilder { // Use Data.newBuilder() to construct. private Data(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); 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; } @@ -2525,21 +2356,19 @@ 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) { @@ -2550,7 +2379,7 @@ public final class FileSourceDb { break; default: { if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { + extensionRegistry, tag)) { done = true; } break; @@ -2569,7 +2398,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_); @@ -2578,93 +2407,83 @@ 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 true; - if (isInitialized == 0) - return false; + if (isInitialized != -1) return isInitialized == 1; 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)); @@ -2673,11 +2492,9 @@ 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++) { @@ -2690,115 +2507,94 @@ 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 - // @@protoc_insertion_point(builder_implements:org.sonar.server.source.db.Data) - org.sonar.server.source.db.FileSourceDb.DataOrBuilder { + com.google.protobuf.GeneratedMessage.Builder<Builder> + implements org.sonar.server.source.db.FileSourceDb.DataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + 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() @@ -2807,17 +2603,15 @@ 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(); } @@ -2838,7 +2632,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; } @@ -2872,7 +2666,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; @@ -2880,8 +2674,7 @@ 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()) { @@ -2900,9 +2693,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_); } @@ -2917,9 +2710,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); @@ -2933,20 +2726,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> @@ -2958,7 +2751,6 @@ public final class FileSourceDb { return linesBuilder_.getMessageList(); } } - /** * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code> */ @@ -2969,7 +2761,6 @@ public final class FileSourceDb { return linesBuilder_.getCount(); } } - /** * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code> */ @@ -2980,12 +2771,11 @@ 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(); @@ -2998,12 +2788,11 @@ 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()); @@ -3013,7 +2802,6 @@ public final class FileSourceDb { } return this; } - /** * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code> */ @@ -3030,12 +2818,11 @@ 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(); @@ -3048,12 +2835,11 @@ 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()); @@ -3063,12 +2849,11 @@ 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()); @@ -3078,23 +2863,20 @@ 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(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, lines_); + super.addAll(values, lines_); onChanged(); } else { linesBuilder_.addAllMessages(values); } return this; } - /** * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code> */ @@ -3108,7 +2890,6 @@ public final class FileSourceDb { } return this; } - /** * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code> */ @@ -3122,74 +2903,66 @@ 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_; @@ -3206,38 +2979,56 @@ public final class FileSourceDb { // @@protoc_insertion_point(class_scope:org.sonar.server.source.db.Data) } - 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; + 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; 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", - "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" + ".source.db\"\223\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\027\n\013dupli" + + "cation\030\021 \003(\005B\002\020\001\"7\n\004Data\022/\n\005lines\030\001 \003(\0132" + + " .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", "Duplication", }); + internal_static_org_sonar_server_source_db_Data_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_org_sonar_server_source_db_Data_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_org_sonar_server_source_db_Data_descriptor, + new java.lang.String[] { "Lines", }); return null; } }; @@ -3245,19 +3036,6 @@ 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/java/org/sonar/batch/protocol/output/BatchReportReader.java b/sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/output/BatchReportReader.java index a2cee3bd75f..58807f83d40 100644 --- a/sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/output/BatchReportReader.java +++ b/sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/output/BatchReportReader.java @@ -55,7 +55,7 @@ public class BatchReportReader { if (file.exists() && file.isFile()) { // all the issues are loaded in memory BatchReport.Issues issues = ProtobufUtil.readFile(file, BatchReport.Issues.PARSER); - return issues.getListList(); + return issues.getIssueList(); } return Collections.emptyList(); } diff --git a/sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/output/BatchReportWriter.java b/sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/output/BatchReportWriter.java index 55ced1fa354..47f62c80b90 100644 --- a/sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/output/BatchReportWriter.java +++ b/sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/output/BatchReportWriter.java @@ -58,7 +58,7 @@ public class BatchReportWriter { public void writeComponentIssues(int componentRef, Iterable<BatchReport.Issue> issues) { BatchReport.Issues.Builder issuesBuilder = BatchReport.Issues.newBuilder(); issuesBuilder.setComponentRef(componentRef); - issuesBuilder.addAllList(issues); + issuesBuilder.addAllIssue(issues); File file = fileStructure.fileFor(FileStructure.Domain.ISSUES, componentRef); ProtobufUtil.writeToFile(issuesBuilder.build(), file); } @@ -71,7 +71,7 @@ public class BatchReportWriter { BatchReport.Issues.Builder issuesBuilder = BatchReport.Issues.newBuilder(); issuesBuilder.setComponentRef(componentRef); issuesBuilder.setComponentUuid(componentUuid); - issuesBuilder.addAllList(issues); + issuesBuilder.addAllIssue(issues); File file = fileStructure.fileFor(FileStructure.Domain.ISSUES_ON_DELETED, componentRef); ProtobufUtil.writeToFile(issuesBuilder.build(), file); } diff --git a/sonar-batch-protocol/src/main/protobuf/batch_report.proto b/sonar-batch-protocol/src/main/protobuf/batch_report.proto index 58ba5c532d4..e159bedf516 100644 --- a/sonar-batch-protocol/src/main/protobuf/batch_report.proto +++ b/sonar-batch-protocol/src/main/protobuf/batch_report.proto @@ -60,8 +60,8 @@ message Component { optional ComponentType type = 4; optional bool is_test = 5; optional string language = 6; - repeated int32 child_refs = 7 [packed=true]; - repeated ComponentLink links = 10; + repeated int32 child_ref = 7 [packed=true]; + repeated ComponentLink link = 10; // temporary fields during development of computation stack optional int32 snapshot_id = 8; @@ -74,7 +74,7 @@ message Issue { optional int32 line = 3; optional string msg = 4; optional Severity severity = 5; - repeated string tags = 6; + repeated string tag = 6; // temporary fields during development of computation stack optional double effort_to_fix = 7; @@ -101,7 +101,7 @@ message Issue { message Issues { optional int32 component_ref = 1; - repeated Issue list = 2; + repeated Issue issue = 2; // Temporary field for issues on deleted components optional string component_uuid = 3; diff --git a/sonar-batch-protocol/src/main/protobuf/file_source_db.proto b/sonar-batch-protocol/src/main/protobuf/file_source_db.proto index cc29e17ccdc..a0068fad2d7 100644 --- a/sonar-batch-protocol/src/main/protobuf/file_source_db.proto +++ b/sonar-batch-protocol/src/main/protobuf/file_source_db.proto @@ -64,7 +64,7 @@ message Line { optional string highlighting = 15; optional string symbols = 16; - repeated int32 duplications = 17 [packed=true]; + repeated int32 duplication = 17 [packed=true]; } message Data { diff --git a/sonar-batch-protocol/src/test/java/org/sonar/batch/protocol/output/BatchReportReaderTest.java b/sonar-batch-protocol/src/test/java/org/sonar/batch/protocol/output/BatchReportReaderTest.java index cee15cf1c65..45117e47999 100644 --- a/sonar-batch-protocol/src/test/java/org/sonar/batch/protocol/output/BatchReportReaderTest.java +++ b/sonar-batch-protocol/src/test/java/org/sonar/batch/protocol/output/BatchReportReaderTest.java @@ -50,7 +50,7 @@ public class BatchReportReaderTest { assertThat(reader.readComponent(1).getUuid()).isEqualTo("UUID_A"); Issues deletedComponentIssues = reader.readDeletedComponentIssues(1); assertThat(deletedComponentIssues.getComponentUuid()).isEqualTo("compUuid"); - assertThat(deletedComponentIssues.getListList()).hasSize(1); + assertThat(deletedComponentIssues.getIssueList()).hasSize(1); } @Test(expected = IllegalStateException.class) @@ -62,7 +62,7 @@ public class BatchReportReaderTest { } @Test(expected = IllegalStateException.class) - public void fail_if_missing_file_on_deleted_component() throws Exception { + public void fail_if_missing_file_on_deleted_component() throws Exception { File dir = temp.newFolder(); BatchReportReader reader = new BatchReportReader(dir); diff --git a/sonar-batch-protocol/src/test/java/org/sonar/batch/protocol/output/BatchReportWriterTest.java b/sonar-batch-protocol/src/test/java/org/sonar/batch/protocol/output/BatchReportWriterTest.java index a26ba76d58d..dd9b619687c 100644 --- a/sonar-batch-protocol/src/test/java/org/sonar/batch/protocol/output/BatchReportWriterTest.java +++ b/sonar-batch-protocol/src/test/java/org/sonar/batch/protocol/output/BatchReportWriterTest.java @@ -78,8 +78,8 @@ public class BatchReportWriterTest { .setUuid("UUID_A") .setType(Constants.ComponentType.FILE) .setIsTest(false) - .addChildRefs(5) - .addChildRefs(42); + .addChildRef(5) + .addChildRef(42); writer.writeComponent(component.build()); assertThat(writer.hasComponentData(FileStructure.Domain.COMPONENT, 1)).isTrue(); @@ -87,7 +87,7 @@ public class BatchReportWriterTest { assertThat(file).exists().isFile(); BatchReport.Component read = ProtobufUtil.readFile(file, BatchReport.Component.PARSER); assertThat(read.getRef()).isEqualTo(1); - assertThat(read.getChildRefsList()).containsOnly(5, 42); + assertThat(read.getChildRefList()).containsOnly(5, 42); assertThat(read.hasName()).isFalse(); assertThat(read.getIsTest()).isFalse(); assertThat(read.getUuid()).isEqualTo("UUID_A"); @@ -116,7 +116,7 @@ public class BatchReportWriterTest { BatchReport.Issues read = ProtobufUtil.readFile(file, BatchReport.Issues.PARSER); assertThat(read.getComponentRef()).isEqualTo(1); assertThat(read.hasComponentUuid()).isFalse(); - assertThat(read.getListCount()).isEqualTo(1); + assertThat(read.getIssueCount()).isEqualTo(1); } @Test @@ -142,6 +142,6 @@ public class BatchReportWriterTest { BatchReport.Issues read = ProtobufUtil.readFile(file, BatchReport.Issues.PARSER); assertThat(read.getComponentRef()).isEqualTo(1); assertThat(read.getComponentUuid()).isEqualTo("componentUuid"); - assertThat(read.getListCount()).isEqualTo(1); + assertThat(read.getIssueCount()).isEqualTo(1); } } |