aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-db
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2015-07-22 16:59:00 +0200
committerSimon Brandhof <simon.brandhof@sonarsource.com>2015-07-23 10:46:10 +0200
commit17af5360c394efb1c7e85817c7406ad9f3356b93 (patch)
tree314949a075e52f141df5a637088ac37546a763e8 /sonar-db
parent5e36720bed53fd3237cc34935c94a48a83fd25d4 (diff)
downloadsonarqube-17af5360c394efb1c7e85817c7406ad9f3356b93.tar.gz
sonarqube-17af5360c394efb1c7e85817c7406ad9f3356b93.zip
Move protobuf spec of table FILE_SOURCES.BINARY_DATA into sonar-db
Diffstat (limited to 'sonar-db')
-rw-r--r--sonar-db/pom.xml18
-rw-r--r--sonar-db/src/main/gen-java/org/sonar/db/FileSources.java5270
-rw-r--r--sonar-db/src/main/java/org/sonar/db/source/FileSourceDto.java45
-rw-r--r--sonar-db/src/main/java/org/sonar/db/version/v51/FeedFileSourcesBinaryData.java6
-rw-r--r--sonar-db/src/main/protobuf/file_sources.proto86
-rw-r--r--sonar-db/src/test/java/org/sonar/db/source/FileSourceDtoTest.java11
-rw-r--r--sonar-db/src/test/java/org/sonar/db/version/v51/FeedFileSourcesBinaryDataTest.java6
7 files changed, 5407 insertions, 35 deletions
diff --git a/sonar-db/pom.xml b/sonar-db/pom.xml
index 741e47caa35..a1977e527d3 100644
--- a/sonar-db/pom.xml
+++ b/sonar-db/pom.xml
@@ -124,6 +124,24 @@
<build>
<plugins>
<plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>build-helper-maven-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>add-source</id>
+ <phase>generate-sources</phase>
+ <goals>
+ <goal>add-source</goal>
+ </goals>
+ <configuration>
+ <sources>
+ <source>src/main/gen-java</source>
+ </sources>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
diff --git a/sonar-db/src/main/gen-java/org/sonar/db/FileSources.java b/sonar-db/src/main/gen-java/org/sonar/db/FileSources.java
new file mode 100644
index 00000000000..1d68bf01326
--- /dev/null
+++ b/sonar-db/src/main/gen-java/org/sonar/db/FileSources.java
@@ -0,0 +1,5270 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: file_sources.proto
+
+package org.sonar.db;
+
+public final class FileSources {
+ private FileSources() {}
+ public static void registerAllExtensions(
+ com.google.protobuf.ExtensionRegistry registry) {
+ }
+ public interface LineOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:org.sonar.server.source.db.Line)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * <code>optional int32 line = 1;</code>
+ */
+ boolean hasLine();
+ /**
+ * <code>optional int32 line = 1;</code>
+ */
+ int getLine();
+
+ /**
+ * <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();
+
+ /**
+ * <code>optional string scm_revision = 3;</code>
+ *
+ * <pre>
+ * SCM
+ * </pre>
+ */
+ boolean hasScmRevision();
+ /**
+ * <code>optional string scm_revision = 3;</code>
+ *
+ * <pre>
+ * SCM
+ * </pre>
+ */
+ java.lang.String getScmRevision();
+ /**
+ * <code>optional string scm_revision = 3;</code>
+ *
+ * <pre>
+ * SCM
+ * </pre>
+ */
+ com.google.protobuf.ByteString
+ getScmRevisionBytes();
+
+ /**
+ * <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();
+
+ /**
+ * <code>optional int64 scm_date = 5;</code>
+ */
+ boolean hasScmDate();
+ /**
+ * <code>optional int64 scm_date = 5;</code>
+ */
+ long getScmDate();
+
+ /**
+ * <code>optional int32 ut_line_hits = 6;</code>
+ *
+ * <pre>
+ * unit tests
+ * </pre>
+ */
+ boolean hasUtLineHits();
+ /**
+ * <code>optional int32 ut_line_hits = 6;</code>
+ *
+ * <pre>
+ * unit tests
+ * </pre>
+ */
+ int getUtLineHits();
+
+ /**
+ * <code>optional int32 ut_conditions = 7;</code>
+ */
+ boolean hasUtConditions();
+ /**
+ * <code>optional int32 ut_conditions = 7;</code>
+ */
+ int getUtConditions();
+
+ /**
+ * <code>optional int32 ut_covered_conditions = 8;</code>
+ */
+ boolean hasUtCoveredConditions();
+ /**
+ * <code>optional int32 ut_covered_conditions = 8;</code>
+ */
+ int getUtCoveredConditions();
+
+ /**
+ * <code>optional int32 it_line_hits = 9;</code>
+ *
+ * <pre>
+ * integration tests
+ * </pre>
+ */
+ boolean hasItLineHits();
+ /**
+ * <code>optional int32 it_line_hits = 9;</code>
+ *
+ * <pre>
+ * integration tests
+ * </pre>
+ */
+ int getItLineHits();
+
+ /**
+ * <code>optional int32 it_conditions = 10;</code>
+ */
+ boolean hasItConditions();
+ /**
+ * <code>optional int32 it_conditions = 10;</code>
+ */
+ int getItConditions();
+
+ /**
+ * <code>optional int32 it_covered_conditions = 11;</code>
+ */
+ boolean hasItCoveredConditions();
+ /**
+ * <code>optional int32 it_covered_conditions = 11;</code>
+ */
+ int getItCoveredConditions();
+
+ /**
+ * <code>optional int32 overall_line_hits = 12;</code>
+ *
+ * <pre>
+ * overall tests
+ * </pre>
+ */
+ boolean hasOverallLineHits();
+ /**
+ * <code>optional int32 overall_line_hits = 12;</code>
+ *
+ * <pre>
+ * overall tests
+ * </pre>
+ */
+ int getOverallLineHits();
+
+ /**
+ * <code>optional int32 overall_conditions = 13;</code>
+ */
+ boolean hasOverallConditions();
+ /**
+ * <code>optional int32 overall_conditions = 13;</code>
+ */
+ int getOverallConditions();
+
+ /**
+ * <code>optional int32 overall_covered_conditions = 14;</code>
+ */
+ boolean hasOverallCoveredConditions();
+ /**
+ * <code>optional int32 overall_covered_conditions = 14;</code>
+ */
+ int getOverallCoveredConditions();
+
+ /**
+ * <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();
+
+ /**
+ * <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();
+
+ /**
+ * <code>repeated int32 duplication = 17 [packed = true];</code>
+ */
+ java.util.List<java.lang.Integer> getDuplicationList();
+ /**
+ * <code>repeated int32 duplication = 17 [packed = true];</code>
+ */
+ int getDuplicationCount();
+ /**
+ * <code>repeated int32 duplication = 17 [packed = true];</code>
+ */
+ 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 {
+ // 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 static final Line defaultInstance;
+ public static Line getDefaultInstance() {
+ return defaultInstance;
+ }
+
+ public Line getDefaultInstanceForType() {
+ return defaultInstance;
+ }
+
+ private final com.google.protobuf.UnknownFieldSet unknownFields;
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private Line(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ initFields();
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!parseUnknownField(input, unknownFields,
+ extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 8: {
+ bitField0_ |= 0x00000001;
+ line_ = input.readInt32();
+ break;
+ }
+ case 18: {
+ com.google.protobuf.ByteString bs = input.readBytes();
+ bitField0_ |= 0x00000002;
+ source_ = bs;
+ break;
+ }
+ case 26: {
+ com.google.protobuf.ByteString bs = input.readBytes();
+ bitField0_ |= 0x00000004;
+ scmRevision_ = bs;
+ break;
+ }
+ case 34: {
+ com.google.protobuf.ByteString bs = input.readBytes();
+ bitField0_ |= 0x00000008;
+ scmAuthor_ = bs;
+ break;
+ }
+ case 40: {
+ bitField0_ |= 0x00000010;
+ scmDate_ = input.readInt64();
+ break;
+ }
+ case 48: {
+ bitField0_ |= 0x00000020;
+ utLineHits_ = input.readInt32();
+ break;
+ }
+ case 56: {
+ bitField0_ |= 0x00000040;
+ utConditions_ = input.readInt32();
+ break;
+ }
+ case 64: {
+ bitField0_ |= 0x00000080;
+ utCoveredConditions_ = input.readInt32();
+ break;
+ }
+ case 72: {
+ bitField0_ |= 0x00000100;
+ itLineHits_ = input.readInt32();
+ break;
+ }
+ case 80: {
+ bitField0_ |= 0x00000200;
+ itConditions_ = input.readInt32();
+ break;
+ }
+ case 88: {
+ bitField0_ |= 0x00000400;
+ itCoveredConditions_ = input.readInt32();
+ break;
+ }
+ case 96: {
+ bitField0_ |= 0x00000800;
+ overallLineHits_ = input.readInt32();
+ break;
+ }
+ case 104: {
+ bitField0_ |= 0x00001000;
+ overallConditions_ = input.readInt32();
+ break;
+ }
+ case 112: {
+ bitField0_ |= 0x00002000;
+ overallCoveredConditions_ = input.readInt32();
+ break;
+ }
+ case 122: {
+ com.google.protobuf.ByteString bs = input.readBytes();
+ bitField0_ |= 0x00004000;
+ highlighting_ = bs;
+ break;
+ }
+ case 130: {
+ com.google.protobuf.ByteString bs = input.readBytes();
+ bitField0_ |= 0x00008000;
+ symbols_ = bs;
+ break;
+ }
+ case 136: {
+ if (!((mutable_bitField0_ & 0x00010000) == 0x00010000)) {
+ duplication_ = new java.util.ArrayList<java.lang.Integer>();
+ mutable_bitField0_ |= 0x00010000;
+ }
+ duplication_.add(input.readInt32());
+ break;
+ }
+ case 138: {
+ int length = input.readRawVarint32();
+ int limit = input.pushLimit(length);
+ if (!((mutable_bitField0_ & 0x00010000) == 0x00010000) && input.getBytesUntilLimit() > 0) {
+ duplication_ = new java.util.ArrayList<java.lang.Integer>();
+ mutable_bitField0_ |= 0x00010000;
+ }
+ while (input.getBytesUntilLimit() > 0) {
+ duplication_.add(input.readInt32());
+ }
+ input.popLimit(limit);
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e.getMessage()).setUnfinishedMessage(this);
+ } finally {
+ if (((mutable_bitField0_ & 0x00010000) == 0x00010000)) {
+ duplication_ = java.util.Collections.unmodifiableList(duplication_);
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.sonar.db.FileSources.internal_static_org_sonar_server_source_db_Line_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.sonar.db.FileSources.internal_static_org_sonar_server_source_db_Line_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.sonar.db.FileSources.Line.class, org.sonar.db.FileSources.Line.Builder.class);
+ }
+
+ public static com.google.protobuf.Parser<Line> PARSER =
+ 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);
+ }
+ };
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<Line> getParserForType() {
+ return PARSER;
+ }
+
+ private int bitField0_;
+ 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>
+ */
+ public int getLine() {
+ return line_;
+ }
+
+ 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>
+ */
+ public java.lang.String getSource() {
+ java.lang.Object ref = source_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ source_ = s;
+ }
+ return s;
+ }
+ }
+ /**
+ * <code>optional string source = 2;</code>
+ */
+ public com.google.protobuf.ByteString
+ 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);
+ source_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int SCM_REVISION_FIELD_NUMBER = 3;
+ private java.lang.Object scmRevision_;
+ /**
+ * <code>optional string scm_revision = 3;</code>
+ *
+ * <pre>
+ * SCM
+ * </pre>
+ */
+ public boolean hasScmRevision() {
+ return ((bitField0_ & 0x00000004) == 0x00000004);
+ }
+ /**
+ * <code>optional string scm_revision = 3;</code>
+ *
+ * <pre>
+ * SCM
+ * </pre>
+ */
+ public java.lang.String getScmRevision() {
+ java.lang.Object ref = scmRevision_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ scmRevision_ = s;
+ }
+ return s;
+ }
+ }
+ /**
+ * <code>optional string scm_revision = 3;</code>
+ *
+ * <pre>
+ * SCM
+ * </pre>
+ */
+ public com.google.protobuf.ByteString
+ 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);
+ scmRevision_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ 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>
+ */
+ public java.lang.String getScmAuthor() {
+ java.lang.Object ref = scmAuthor_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ scmAuthor_ = s;
+ }
+ return s;
+ }
+ }
+ /**
+ * <code>optional string scm_author = 4;</code>
+ */
+ public com.google.protobuf.ByteString
+ 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);
+ scmAuthor_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ 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>
+ */
+ public long getScmDate() {
+ return scmDate_;
+ }
+
+ public static final int UT_LINE_HITS_FIELD_NUMBER = 6;
+ private int utLineHits_;
+ /**
+ * <code>optional int32 ut_line_hits = 6;</code>
+ *
+ * <pre>
+ * unit tests
+ * </pre>
+ */
+ public boolean hasUtLineHits() {
+ return ((bitField0_ & 0x00000020) == 0x00000020);
+ }
+ /**
+ * <code>optional int32 ut_line_hits = 6;</code>
+ *
+ * <pre>
+ * unit tests
+ * </pre>
+ */
+ public int getUtLineHits() {
+ return utLineHits_;
+ }
+
+ 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>
+ */
+ public int getUtConditions() {
+ return utConditions_;
+ }
+
+ 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>
+ */
+ public int getUtCoveredConditions() {
+ return utCoveredConditions_;
+ }
+
+ public static final int IT_LINE_HITS_FIELD_NUMBER = 9;
+ private int itLineHits_;
+ /**
+ * <code>optional int32 it_line_hits = 9;</code>
+ *
+ * <pre>
+ * integration tests
+ * </pre>
+ */
+ public boolean hasItLineHits() {
+ return ((bitField0_ & 0x00000100) == 0x00000100);
+ }
+ /**
+ * <code>optional int32 it_line_hits = 9;</code>
+ *
+ * <pre>
+ * integration tests
+ * </pre>
+ */
+ public int getItLineHits() {
+ return itLineHits_;
+ }
+
+ 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>
+ */
+ public int getItConditions() {
+ return itConditions_;
+ }
+
+ 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>
+ */
+ public int getItCoveredConditions() {
+ return itCoveredConditions_;
+ }
+
+ public static final int OVERALL_LINE_HITS_FIELD_NUMBER = 12;
+ private int overallLineHits_;
+ /**
+ * <code>optional int32 overall_line_hits = 12;</code>
+ *
+ * <pre>
+ * overall tests
+ * </pre>
+ */
+ public boolean hasOverallLineHits() {
+ return ((bitField0_ & 0x00000800) == 0x00000800);
+ }
+ /**
+ * <code>optional int32 overall_line_hits = 12;</code>
+ *
+ * <pre>
+ * overall tests
+ * </pre>
+ */
+ public int getOverallLineHits() {
+ return overallLineHits_;
+ }
+
+ 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>
+ */
+ public int getOverallConditions() {
+ return overallConditions_;
+ }
+
+ 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>
+ */
+ public int getOverallCoveredConditions() {
+ return overallCoveredConditions_;
+ }
+
+ 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>
+ */
+ public java.lang.String getHighlighting() {
+ java.lang.Object ref = highlighting_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ highlighting_ = s;
+ }
+ return s;
+ }
+ }
+ /**
+ * <code>optional string highlighting = 15;</code>
+ */
+ public com.google.protobuf.ByteString
+ 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);
+ highlighting_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ 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>
+ */
+ public java.lang.String getSymbols() {
+ java.lang.Object ref = symbols_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ symbols_ = s;
+ }
+ return s;
+ }
+ }
+ /**
+ * <code>optional string symbols = 16;</code>
+ */
+ public com.google.protobuf.ByteString
+ 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);
+ symbols_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int DUPLICATION_FIELD_NUMBER = 17;
+ private java.util.List<java.lang.Integer> duplication_;
+ /**
+ * <code>repeated int32 duplication = 17 [packed = true];</code>
+ */
+ public java.util.List<java.lang.Integer>
+ getDuplicationList() {
+ return duplication_;
+ }
+ /**
+ * <code>repeated int32 duplication = 17 [packed = true];</code>
+ */
+ public int getDuplicationCount() {
+ return duplication_.size();
+ }
+ /**
+ * <code>repeated int32 duplication = 17 [packed = true];</code>
+ */
+ public int getDuplication(int index) {
+ return duplication_.get(index);
+ }
+ private int duplicationMemoizedSerializedSize = -1;
+
+ private void initFields() {
+ line_ = 0;
+ source_ = "";
+ scmRevision_ = "";
+ scmAuthor_ = "";
+ scmDate_ = 0L;
+ utLineHits_ = 0;
+ utConditions_ = 0;
+ utCoveredConditions_ = 0;
+ itLineHits_ = 0;
+ itConditions_ = 0;
+ itCoveredConditions_ = 0;
+ overallLineHits_ = 0;
+ overallConditions_ = 0;
+ overallCoveredConditions_ = 0;
+ highlighting_ = "";
+ symbols_ = "";
+ 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;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ getSerializedSize();
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ output.writeInt32(1, line_);
+ }
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ output.writeBytes(2, getSourceBytes());
+ }
+ if (((bitField0_ & 0x00000004) == 0x00000004)) {
+ output.writeBytes(3, getScmRevisionBytes());
+ }
+ if (((bitField0_ & 0x00000008) == 0x00000008)) {
+ output.writeBytes(4, getScmAuthorBytes());
+ }
+ if (((bitField0_ & 0x00000010) == 0x00000010)) {
+ output.writeInt64(5, scmDate_);
+ }
+ if (((bitField0_ & 0x00000020) == 0x00000020)) {
+ output.writeInt32(6, utLineHits_);
+ }
+ if (((bitField0_ & 0x00000040) == 0x00000040)) {
+ output.writeInt32(7, utConditions_);
+ }
+ if (((bitField0_ & 0x00000080) == 0x00000080)) {
+ output.writeInt32(8, utCoveredConditions_);
+ }
+ if (((bitField0_ & 0x00000100) == 0x00000100)) {
+ output.writeInt32(9, itLineHits_);
+ }
+ if (((bitField0_ & 0x00000200) == 0x00000200)) {
+ output.writeInt32(10, itConditions_);
+ }
+ if (((bitField0_ & 0x00000400) == 0x00000400)) {
+ output.writeInt32(11, itCoveredConditions_);
+ }
+ if (((bitField0_ & 0x00000800) == 0x00000800)) {
+ output.writeInt32(12, overallLineHits_);
+ }
+ if (((bitField0_ & 0x00001000) == 0x00001000)) {
+ output.writeInt32(13, overallConditions_);
+ }
+ if (((bitField0_ & 0x00002000) == 0x00002000)) {
+ output.writeInt32(14, overallCoveredConditions_);
+ }
+ if (((bitField0_ & 0x00004000) == 0x00004000)) {
+ output.writeBytes(15, getHighlightingBytes());
+ }
+ if (((bitField0_ & 0x00008000) == 0x00008000)) {
+ output.writeBytes(16, getSymbolsBytes());
+ }
+ if (getDuplicationList().size() > 0) {
+ output.writeRawVarint32(138);
+ output.writeRawVarint32(duplicationMemoizedSerializedSize);
+ }
+ 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;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32Size(1, line_);
+ }
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBytesSize(2, getSourceBytes());
+ }
+ if (((bitField0_ & 0x00000004) == 0x00000004)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBytesSize(3, getScmRevisionBytes());
+ }
+ if (((bitField0_ & 0x00000008) == 0x00000008)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBytesSize(4, getScmAuthorBytes());
+ }
+ if (((bitField0_ & 0x00000010) == 0x00000010)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt64Size(5, scmDate_);
+ }
+ if (((bitField0_ & 0x00000020) == 0x00000020)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32Size(6, utLineHits_);
+ }
+ if (((bitField0_ & 0x00000040) == 0x00000040)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32Size(7, utConditions_);
+ }
+ if (((bitField0_ & 0x00000080) == 0x00000080)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32Size(8, utCoveredConditions_);
+ }
+ if (((bitField0_ & 0x00000100) == 0x00000100)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32Size(9, itLineHits_);
+ }
+ if (((bitField0_ & 0x00000200) == 0x00000200)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32Size(10, itConditions_);
+ }
+ if (((bitField0_ & 0x00000400) == 0x00000400)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32Size(11, itCoveredConditions_);
+ }
+ if (((bitField0_ & 0x00000800) == 0x00000800)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32Size(12, overallLineHits_);
+ }
+ if (((bitField0_ & 0x00001000) == 0x00001000)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32Size(13, overallConditions_);
+ }
+ if (((bitField0_ & 0x00002000) == 0x00002000)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32Size(14, overallCoveredConditions_);
+ }
+ if (((bitField0_ & 0x00004000) == 0x00004000)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBytesSize(15, getHighlightingBytes());
+ }
+ if (((bitField0_ & 0x00008000) == 0x00008000)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBytesSize(16, getSymbolsBytes());
+ }
+ {
+ int dataSize = 0;
+ for (int i = 0; i < duplication_.size(); i++) {
+ dataSize += com.google.protobuf.CodedOutputStream
+ .computeInt32SizeNoTag(duplication_.get(i));
+ }
+ size += dataSize;
+ if (!getDuplicationList().isEmpty()) {
+ size += 2;
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32SizeNoTag(dataSize);
+ }
+ duplicationMemoizedSerializedSize = dataSize;
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSerializedSize = size;
+ return size;
+ }
+
+ private static final long serialVersionUID = 0L;
+ @java.lang.Override
+ protected java.lang.Object writeReplace()
+ throws java.io.ObjectStreamException {
+ return super.writeReplace();
+ }
+
+ public static org.sonar.db.FileSources.Line parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.sonar.db.FileSources.Line parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.sonar.db.FileSources.Line parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.sonar.db.FileSources.Line parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.sonar.db.FileSources.Line parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+ public static org.sonar.db.FileSources.Line parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+ public static org.sonar.db.FileSources.Line parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input);
+ }
+ public static org.sonar.db.FileSources.Line parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ }
+ public static org.sonar.db.FileSources.Line parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+ public static org.sonar.db.FileSources.Line parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+
+ public static Builder newBuilder() { return Builder.create(); }
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder(org.sonar.db.FileSources.Line prototype) {
+ return newBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() { return newBuilder(this); }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code 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.db.FileSources.LineOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.sonar.db.FileSources.internal_static_org_sonar_server_source_db_Line_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.sonar.db.FileSources.internal_static_org_sonar_server_source_db_Line_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.sonar.db.FileSources.Line.class, org.sonar.db.FileSources.Line.Builder.class);
+ }
+
+ // Construct using org.sonar.db.FileSources.Line.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ }
+ }
+ private static Builder create() {
+ return new Builder();
+ }
+
+ public Builder clear() {
+ super.clear();
+ line_ = 0;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ source_ = "";
+ bitField0_ = (bitField0_ & ~0x00000002);
+ scmRevision_ = "";
+ bitField0_ = (bitField0_ & ~0x00000004);
+ scmAuthor_ = "";
+ bitField0_ = (bitField0_ & ~0x00000008);
+ scmDate_ = 0L;
+ bitField0_ = (bitField0_ & ~0x00000010);
+ utLineHits_ = 0;
+ bitField0_ = (bitField0_ & ~0x00000020);
+ utConditions_ = 0;
+ bitField0_ = (bitField0_ & ~0x00000040);
+ utCoveredConditions_ = 0;
+ bitField0_ = (bitField0_ & ~0x00000080);
+ itLineHits_ = 0;
+ bitField0_ = (bitField0_ & ~0x00000100);
+ itConditions_ = 0;
+ bitField0_ = (bitField0_ & ~0x00000200);
+ itCoveredConditions_ = 0;
+ bitField0_ = (bitField0_ & ~0x00000400);
+ overallLineHits_ = 0;
+ bitField0_ = (bitField0_ & ~0x00000800);
+ overallConditions_ = 0;
+ bitField0_ = (bitField0_ & ~0x00001000);
+ overallCoveredConditions_ = 0;
+ bitField0_ = (bitField0_ & ~0x00002000);
+ highlighting_ = "";
+ bitField0_ = (bitField0_ & ~0x00004000);
+ symbols_ = "";
+ bitField0_ = (bitField0_ & ~0x00008000);
+ duplication_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00010000);
+ return this;
+ }
+
+ public Builder clone() {
+ return create().mergeFrom(buildPartial());
+ }
+
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return org.sonar.db.FileSources.internal_static_org_sonar_server_source_db_Line_descriptor;
+ }
+
+ public org.sonar.db.FileSources.Line getDefaultInstanceForType() {
+ return org.sonar.db.FileSources.Line.getDefaultInstance();
+ }
+
+ public org.sonar.db.FileSources.Line build() {
+ org.sonar.db.FileSources.Line result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ public org.sonar.db.FileSources.Line buildPartial() {
+ org.sonar.db.FileSources.Line result = new org.sonar.db.FileSources.Line(this);
+ int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
+ to_bitField0_ |= 0x00000001;
+ }
+ result.line_ = line_;
+ if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
+ to_bitField0_ |= 0x00000002;
+ }
+ result.source_ = source_;
+ if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
+ to_bitField0_ |= 0x00000004;
+ }
+ result.scmRevision_ = scmRevision_;
+ if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
+ to_bitField0_ |= 0x00000008;
+ }
+ result.scmAuthor_ = scmAuthor_;
+ if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
+ to_bitField0_ |= 0x00000010;
+ }
+ result.scmDate_ = scmDate_;
+ if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
+ to_bitField0_ |= 0x00000020;
+ }
+ result.utLineHits_ = utLineHits_;
+ if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
+ to_bitField0_ |= 0x00000040;
+ }
+ result.utConditions_ = utConditions_;
+ if (((from_bitField0_ & 0x00000080) == 0x00000080)) {
+ to_bitField0_ |= 0x00000080;
+ }
+ result.utCoveredConditions_ = utCoveredConditions_;
+ if (((from_bitField0_ & 0x00000100) == 0x00000100)) {
+ to_bitField0_ |= 0x00000100;
+ }
+ result.itLineHits_ = itLineHits_;
+ if (((from_bitField0_ & 0x00000200) == 0x00000200)) {
+ to_bitField0_ |= 0x00000200;
+ }
+ result.itConditions_ = itConditions_;
+ if (((from_bitField0_ & 0x00000400) == 0x00000400)) {
+ to_bitField0_ |= 0x00000400;
+ }
+ result.itCoveredConditions_ = itCoveredConditions_;
+ if (((from_bitField0_ & 0x00000800) == 0x00000800)) {
+ to_bitField0_ |= 0x00000800;
+ }
+ result.overallLineHits_ = overallLineHits_;
+ if (((from_bitField0_ & 0x00001000) == 0x00001000)) {
+ to_bitField0_ |= 0x00001000;
+ }
+ result.overallConditions_ = overallConditions_;
+ if (((from_bitField0_ & 0x00002000) == 0x00002000)) {
+ to_bitField0_ |= 0x00002000;
+ }
+ result.overallCoveredConditions_ = overallCoveredConditions_;
+ if (((from_bitField0_ & 0x00004000) == 0x00004000)) {
+ to_bitField0_ |= 0x00004000;
+ }
+ result.highlighting_ = highlighting_;
+ if (((from_bitField0_ & 0x00008000) == 0x00008000)) {
+ to_bitField0_ |= 0x00008000;
+ }
+ result.symbols_ = symbols_;
+ if (((bitField0_ & 0x00010000) == 0x00010000)) {
+ duplication_ = java.util.Collections.unmodifiableList(duplication_);
+ bitField0_ = (bitField0_ & ~0x00010000);
+ }
+ result.duplication_ = duplication_;
+ result.bitField0_ = to_bitField0_;
+ onBuilt();
+ return result;
+ }
+
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof org.sonar.db.FileSources.Line) {
+ return mergeFrom((org.sonar.db.FileSources.Line)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(org.sonar.db.FileSources.Line other) {
+ if (other == org.sonar.db.FileSources.Line.getDefaultInstance()) return this;
+ if (other.hasLine()) {
+ setLine(other.getLine());
+ }
+ if (other.hasSource()) {
+ bitField0_ |= 0x00000002;
+ source_ = other.source_;
+ onChanged();
+ }
+ if (other.hasScmRevision()) {
+ bitField0_ |= 0x00000004;
+ scmRevision_ = other.scmRevision_;
+ onChanged();
+ }
+ if (other.hasScmAuthor()) {
+ bitField0_ |= 0x00000008;
+ scmAuthor_ = other.scmAuthor_;
+ onChanged();
+ }
+ if (other.hasScmDate()) {
+ setScmDate(other.getScmDate());
+ }
+ if (other.hasUtLineHits()) {
+ setUtLineHits(other.getUtLineHits());
+ }
+ if (other.hasUtConditions()) {
+ setUtConditions(other.getUtConditions());
+ }
+ if (other.hasUtCoveredConditions()) {
+ setUtCoveredConditions(other.getUtCoveredConditions());
+ }
+ if (other.hasItLineHits()) {
+ setItLineHits(other.getItLineHits());
+ }
+ if (other.hasItConditions()) {
+ setItConditions(other.getItConditions());
+ }
+ if (other.hasItCoveredConditions()) {
+ setItCoveredConditions(other.getItCoveredConditions());
+ }
+ if (other.hasOverallLineHits()) {
+ setOverallLineHits(other.getOverallLineHits());
+ }
+ if (other.hasOverallConditions()) {
+ setOverallConditions(other.getOverallConditions());
+ }
+ if (other.hasOverallCoveredConditions()) {
+ setOverallCoveredConditions(other.getOverallCoveredConditions());
+ }
+ if (other.hasHighlighting()) {
+ bitField0_ |= 0x00004000;
+ highlighting_ = other.highlighting_;
+ onChanged();
+ }
+ if (other.hasSymbols()) {
+ bitField0_ |= 0x00008000;
+ symbols_ = other.symbols_;
+ onChanged();
+ }
+ if (!other.duplication_.isEmpty()) {
+ if (duplication_.isEmpty()) {
+ duplication_ = other.duplication_;
+ bitField0_ = (bitField0_ & ~0x00010000);
+ } else {
+ ensureDuplicationIsMutable();
+ duplication_.addAll(other.duplication_);
+ }
+ onChanged();
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ return this;
+ }
+
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ org.sonar.db.FileSources.Line parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (org.sonar.db.FileSources.Line) e.getUnfinishedMessage();
+ throw e;
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+ private int bitField0_;
+
+ 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>
+ */
+ public Builder setLine(int value) {
+ bitField0_ |= 0x00000001;
+ line_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>optional int32 line = 1;</code>
+ */
+ public Builder clearLine() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ line_ = 0;
+ onChanged();
+ return this;
+ }
+
+ 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;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * <code>optional string source = 2;</code>
+ */
+ public com.google.protobuf.ByteString
+ getSourceBytes() {
+ java.lang.Object ref = source_;
+ if (ref instanceof String) {
+ 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) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000002;
+ source_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>optional string source = 2;</code>
+ */
+ public Builder clearSource() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ source_ = getDefaultInstance().getSource();
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>optional string source = 2;</code>
+ */
+ public Builder setSourceBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000002;
+ source_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object scmRevision_ = "";
+ /**
+ * <code>optional string scm_revision = 3;</code>
+ *
+ * <pre>
+ * SCM
+ * </pre>
+ */
+ public boolean hasScmRevision() {
+ return ((bitField0_ & 0x00000004) == 0x00000004);
+ }
+ /**
+ * <code>optional string scm_revision = 3;</code>
+ *
+ * <pre>
+ * SCM
+ * </pre>
+ */
+ 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;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * <code>optional string scm_revision = 3;</code>
+ *
+ * <pre>
+ * SCM
+ * </pre>
+ */
+ public com.google.protobuf.ByteString
+ getScmRevisionBytes() {
+ java.lang.Object ref = scmRevision_;
+ if (ref instanceof String) {
+ 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>
+ *
+ * <pre>
+ * SCM
+ * </pre>
+ */
+ public Builder setScmRevision(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000004;
+ scmRevision_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>optional string scm_revision = 3;</code>
+ *
+ * <pre>
+ * SCM
+ * </pre>
+ */
+ public Builder clearScmRevision() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ scmRevision_ = getDefaultInstance().getScmRevision();
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>optional string scm_revision = 3;</code>
+ *
+ * <pre>
+ * SCM
+ * </pre>
+ */
+ public Builder setScmRevisionBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000004;
+ scmRevision_ = value;
+ onChanged();
+ return this;
+ }
+
+ 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;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * <code>optional string scm_author = 4;</code>
+ */
+ public com.google.protobuf.ByteString
+ getScmAuthorBytes() {
+ java.lang.Object ref = scmAuthor_;
+ if (ref instanceof String) {
+ 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) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000008;
+ scmAuthor_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>optional string scm_author = 4;</code>
+ */
+ public Builder clearScmAuthor() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ scmAuthor_ = getDefaultInstance().getScmAuthor();
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>optional string scm_author = 4;</code>
+ */
+ public Builder setScmAuthorBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000008;
+ scmAuthor_ = value;
+ onChanged();
+ return this;
+ }
+
+ 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>
+ */
+ public Builder setScmDate(long value) {
+ bitField0_ |= 0x00000010;
+ scmDate_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>optional int64 scm_date = 5;</code>
+ */
+ public Builder clearScmDate() {
+ bitField0_ = (bitField0_ & ~0x00000010);
+ scmDate_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private int utLineHits_ ;
+ /**
+ * <code>optional int32 ut_line_hits = 6;</code>
+ *
+ * <pre>
+ * unit tests
+ * </pre>
+ */
+ public boolean hasUtLineHits() {
+ return ((bitField0_ & 0x00000020) == 0x00000020);
+ }
+ /**
+ * <code>optional int32 ut_line_hits = 6;</code>
+ *
+ * <pre>
+ * unit tests
+ * </pre>
+ */
+ public int getUtLineHits() {
+ return utLineHits_;
+ }
+ /**
+ * <code>optional int32 ut_line_hits = 6;</code>
+ *
+ * <pre>
+ * unit tests
+ * </pre>
+ */
+ public Builder setUtLineHits(int value) {
+ bitField0_ |= 0x00000020;
+ utLineHits_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>optional int32 ut_line_hits = 6;</code>
+ *
+ * <pre>
+ * unit tests
+ * </pre>
+ */
+ public Builder clearUtLineHits() {
+ bitField0_ = (bitField0_ & ~0x00000020);
+ utLineHits_ = 0;
+ onChanged();
+ return this;
+ }
+
+ 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>
+ */
+ public Builder setUtConditions(int value) {
+ bitField0_ |= 0x00000040;
+ utConditions_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>optional int32 ut_conditions = 7;</code>
+ */
+ public Builder clearUtConditions() {
+ bitField0_ = (bitField0_ & ~0x00000040);
+ utConditions_ = 0;
+ onChanged();
+ return this;
+ }
+
+ 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>
+ */
+ public Builder setUtCoveredConditions(int value) {
+ bitField0_ |= 0x00000080;
+ utCoveredConditions_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>optional int32 ut_covered_conditions = 8;</code>
+ */
+ public Builder clearUtCoveredConditions() {
+ bitField0_ = (bitField0_ & ~0x00000080);
+ utCoveredConditions_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int itLineHits_ ;
+ /**
+ * <code>optional int32 it_line_hits = 9;</code>
+ *
+ * <pre>
+ * integration tests
+ * </pre>
+ */
+ public boolean hasItLineHits() {
+ return ((bitField0_ & 0x00000100) == 0x00000100);
+ }
+ /**
+ * <code>optional int32 it_line_hits = 9;</code>
+ *
+ * <pre>
+ * integration tests
+ * </pre>
+ */
+ public int getItLineHits() {
+ return itLineHits_;
+ }
+ /**
+ * <code>optional int32 it_line_hits = 9;</code>
+ *
+ * <pre>
+ * integration tests
+ * </pre>
+ */
+ public Builder setItLineHits(int value) {
+ bitField0_ |= 0x00000100;
+ itLineHits_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>optional int32 it_line_hits = 9;</code>
+ *
+ * <pre>
+ * integration tests
+ * </pre>
+ */
+ public Builder clearItLineHits() {
+ bitField0_ = (bitField0_ & ~0x00000100);
+ itLineHits_ = 0;
+ onChanged();
+ return this;
+ }
+
+ 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>
+ */
+ public Builder setItConditions(int value) {
+ bitField0_ |= 0x00000200;
+ itConditions_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>optional int32 it_conditions = 10;</code>
+ */
+ public Builder clearItConditions() {
+ bitField0_ = (bitField0_ & ~0x00000200);
+ itConditions_ = 0;
+ onChanged();
+ return this;
+ }
+
+ 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>
+ */
+ public Builder setItCoveredConditions(int value) {
+ bitField0_ |= 0x00000400;
+ itCoveredConditions_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>optional int32 it_covered_conditions = 11;</code>
+ */
+ public Builder clearItCoveredConditions() {
+ bitField0_ = (bitField0_ & ~0x00000400);
+ itCoveredConditions_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int overallLineHits_ ;
+ /**
+ * <code>optional int32 overall_line_hits = 12;</code>
+ *
+ * <pre>
+ * overall tests
+ * </pre>
+ */
+ public boolean hasOverallLineHits() {
+ return ((bitField0_ & 0x00000800) == 0x00000800);
+ }
+ /**
+ * <code>optional int32 overall_line_hits = 12;</code>
+ *
+ * <pre>
+ * overall tests
+ * </pre>
+ */
+ public int getOverallLineHits() {
+ return overallLineHits_;
+ }
+ /**
+ * <code>optional int32 overall_line_hits = 12;</code>
+ *
+ * <pre>
+ * overall tests
+ * </pre>
+ */
+ public Builder setOverallLineHits(int value) {
+ bitField0_ |= 0x00000800;
+ overallLineHits_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>optional int32 overall_line_hits = 12;</code>
+ *
+ * <pre>
+ * overall tests
+ * </pre>
+ */
+ public Builder clearOverallLineHits() {
+ bitField0_ = (bitField0_ & ~0x00000800);
+ overallLineHits_ = 0;
+ onChanged();
+ return this;
+ }
+
+ 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>
+ */
+ public Builder setOverallConditions(int value) {
+ bitField0_ |= 0x00001000;
+ overallConditions_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>optional int32 overall_conditions = 13;</code>
+ */
+ public Builder clearOverallConditions() {
+ bitField0_ = (bitField0_ & ~0x00001000);
+ overallConditions_ = 0;
+ onChanged();
+ return this;
+ }
+
+ 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>
+ */
+ public Builder setOverallCoveredConditions(int value) {
+ bitField0_ |= 0x00002000;
+ overallCoveredConditions_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>optional int32 overall_covered_conditions = 14;</code>
+ */
+ public Builder clearOverallCoveredConditions() {
+ bitField0_ = (bitField0_ & ~0x00002000);
+ overallCoveredConditions_ = 0;
+ onChanged();
+ return this;
+ }
+
+ 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;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * <code>optional string highlighting = 15;</code>
+ */
+ public com.google.protobuf.ByteString
+ getHighlightingBytes() {
+ java.lang.Object ref = highlighting_;
+ if (ref instanceof String) {
+ 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) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00004000;
+ highlighting_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>optional string highlighting = 15;</code>
+ */
+ public Builder clearHighlighting() {
+ bitField0_ = (bitField0_ & ~0x00004000);
+ highlighting_ = getDefaultInstance().getHighlighting();
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>optional string highlighting = 15;</code>
+ */
+ public Builder setHighlightingBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00004000;
+ highlighting_ = value;
+ onChanged();
+ return this;
+ }
+
+ 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;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * <code>optional string symbols = 16;</code>
+ */
+ public com.google.protobuf.ByteString
+ getSymbolsBytes() {
+ java.lang.Object ref = symbols_;
+ if (ref instanceof String) {
+ 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) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00008000;
+ symbols_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>optional string symbols = 16;</code>
+ */
+ public Builder clearSymbols() {
+ bitField0_ = (bitField0_ & ~0x00008000);
+ symbols_ = getDefaultInstance().getSymbols();
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>optional string symbols = 16;</code>
+ */
+ public Builder setSymbolsBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00008000;
+ symbols_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.util.List<java.lang.Integer> duplication_ = java.util.Collections.emptyList();
+ private void ensureDuplicationIsMutable() {
+ if (!((bitField0_ & 0x00010000) == 0x00010000)) {
+ duplication_ = new java.util.ArrayList<java.lang.Integer>(duplication_);
+ bitField0_ |= 0x00010000;
+ }
+ }
+ /**
+ * <code>repeated int32 duplication = 17 [packed = true];</code>
+ */
+ public java.util.List<java.lang.Integer>
+ getDuplicationList() {
+ return java.util.Collections.unmodifiableList(duplication_);
+ }
+ /**
+ * <code>repeated int32 duplication = 17 [packed = true];</code>
+ */
+ public int getDuplicationCount() {
+ return duplication_.size();
+ }
+ /**
+ * <code>repeated int32 duplication = 17 [packed = true];</code>
+ */
+ public int getDuplication(int index) {
+ return duplication_.get(index);
+ }
+ /**
+ * <code>repeated int32 duplication = 17 [packed = true];</code>
+ */
+ public Builder setDuplication(
+ int index, int value) {
+ ensureDuplicationIsMutable();
+ duplication_.set(index, value);
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>repeated int32 duplication = 17 [packed = true];</code>
+ */
+ public Builder addDuplication(int value) {
+ ensureDuplicationIsMutable();
+ duplication_.add(value);
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>repeated int32 duplication = 17 [packed = true];</code>
+ */
+ public Builder addAllDuplication(
+ java.lang.Iterable<? extends java.lang.Integer> values) {
+ ensureDuplicationIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, duplication_);
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>repeated int32 duplication = 17 [packed = true];</code>
+ */
+ public Builder clearDuplication() {
+ duplication_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00010000);
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:org.sonar.server.source.db.Line)
+ }
+
+ static {
+ defaultInstance = new Line(true);
+ defaultInstance.initFields();
+ }
+
+ // @@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 {
+
+ /**
+ * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code>
+ */
+ java.util.List<org.sonar.db.FileSources.Line>
+ getLinesList();
+ /**
+ * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code>
+ */
+ org.sonar.db.FileSources.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.db.FileSources.LineOrBuilder>
+ getLinesOrBuilderList();
+ /**
+ * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code>
+ */
+ org.sonar.db.FileSources.LineOrBuilder getLinesOrBuilder(
+ int index);
+ }
+ /**
+ * Protobuf type {@code org.sonar.server.source.db.Data}
+ *
+ * <pre>
+ * TODO should be dropped as it prevents streaming
+ * </pre>
+ */
+ public static final class Data extends
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:org.sonar.server.source.db.Data)
+ DataOrBuilder {
+ // Use Data.newBuilder() to construct.
+ private Data(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ super(builder);
+ this.unknownFields = builder.getUnknownFields();
+ }
+ private Data(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
+
+ private static final Data defaultInstance;
+ public static Data getDefaultInstance() {
+ return defaultInstance;
+ }
+
+ public Data getDefaultInstanceForType() {
+ return defaultInstance;
+ }
+
+ private final com.google.protobuf.UnknownFieldSet unknownFields;
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private Data(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ initFields();
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!parseUnknownField(input, unknownFields,
+ extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 10: {
+ if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
+ lines_ = new java.util.ArrayList<org.sonar.db.FileSources.Line>();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ lines_.add(input.readMessage(org.sonar.db.FileSources.Line.PARSER, extensionRegistry));
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e.getMessage()).setUnfinishedMessage(this);
+ } finally {
+ if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
+ lines_ = java.util.Collections.unmodifiableList(lines_);
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.sonar.db.FileSources.internal_static_org_sonar_server_source_db_Data_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.sonar.db.FileSources.internal_static_org_sonar_server_source_db_Data_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.sonar.db.FileSources.Data.class, org.sonar.db.FileSources.Data.Builder.class);
+ }
+
+ public static com.google.protobuf.Parser<Data> PARSER =
+ 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);
+ }
+ };
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<Data> getParserForType() {
+ return PARSER;
+ }
+
+ public static final int LINES_FIELD_NUMBER = 1;
+ private java.util.List<org.sonar.db.FileSources.Line> lines_;
+ /**
+ * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code>
+ */
+ public java.util.List<org.sonar.db.FileSources.Line> getLinesList() {
+ return lines_;
+ }
+ /**
+ * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code>
+ */
+ public java.util.List<? extends org.sonar.db.FileSources.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.db.FileSources.Line getLines(int index) {
+ return lines_.get(index);
+ }
+ /**
+ * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code>
+ */
+ public org.sonar.db.FileSources.LineOrBuilder getLinesOrBuilder(
+ 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;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ getSerializedSize();
+ for (int i = 0; i < lines_.size(); i++) {
+ output.writeMessage(1, lines_.get(i));
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ private int memoizedSerializedSize = -1;
+ public int getSerializedSize() {
+ int size = memoizedSerializedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (int i = 0; i < lines_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, lines_.get(i));
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSerializedSize = size;
+ return size;
+ }
+
+ private static final long serialVersionUID = 0L;
+ @java.lang.Override
+ protected java.lang.Object writeReplace()
+ throws java.io.ObjectStreamException {
+ return super.writeReplace();
+ }
+
+ public static org.sonar.db.FileSources.Data parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.sonar.db.FileSources.Data parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.sonar.db.FileSources.Data parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.sonar.db.FileSources.Data parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.sonar.db.FileSources.Data parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+ public static org.sonar.db.FileSources.Data parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+ public static org.sonar.db.FileSources.Data parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input);
+ }
+ public static org.sonar.db.FileSources.Data parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ }
+ public static org.sonar.db.FileSources.Data parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+ public static org.sonar.db.FileSources.Data parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+
+ public static Builder newBuilder() { return Builder.create(); }
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder(org.sonar.db.FileSources.Data prototype) {
+ return newBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() { return newBuilder(this); }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code org.sonar.server.source.db.Data}
+ *
+ * <pre>
+ * TODO should be dropped as it prevents streaming
+ * </pre>
+ */
+ 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.db.FileSources.DataOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.sonar.db.FileSources.internal_static_org_sonar_server_source_db_Data_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.sonar.db.FileSources.internal_static_org_sonar_server_source_db_Data_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.sonar.db.FileSources.Data.class, org.sonar.db.FileSources.Data.Builder.class);
+ }
+
+ // Construct using org.sonar.db.FileSources.Data.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ 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();
+ }
+
+ public Builder clear() {
+ super.clear();
+ if (linesBuilder_ == null) {
+ lines_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ linesBuilder_.clear();
+ }
+ return this;
+ }
+
+ public Builder clone() {
+ return create().mergeFrom(buildPartial());
+ }
+
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return org.sonar.db.FileSources.internal_static_org_sonar_server_source_db_Data_descriptor;
+ }
+
+ public org.sonar.db.FileSources.Data getDefaultInstanceForType() {
+ return org.sonar.db.FileSources.Data.getDefaultInstance();
+ }
+
+ public org.sonar.db.FileSources.Data build() {
+ org.sonar.db.FileSources.Data result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ public org.sonar.db.FileSources.Data buildPartial() {
+ org.sonar.db.FileSources.Data result = new org.sonar.db.FileSources.Data(this);
+ int from_bitField0_ = bitField0_;
+ if (linesBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ lines_ = java.util.Collections.unmodifiableList(lines_);
+ bitField0_ = (bitField0_ & ~0x00000001);
+ }
+ result.lines_ = lines_;
+ } else {
+ result.lines_ = linesBuilder_.build();
+ }
+ onBuilt();
+ return result;
+ }
+
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof org.sonar.db.FileSources.Data) {
+ return mergeFrom((org.sonar.db.FileSources.Data)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(org.sonar.db.FileSources.Data other) {
+ if (other == org.sonar.db.FileSources.Data.getDefaultInstance()) return this;
+ if (linesBuilder_ == null) {
+ if (!other.lines_.isEmpty()) {
+ if (lines_.isEmpty()) {
+ lines_ = other.lines_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ ensureLinesIsMutable();
+ lines_.addAll(other.lines_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.lines_.isEmpty()) {
+ if (linesBuilder_.isEmpty()) {
+ linesBuilder_.dispose();
+ linesBuilder_ = null;
+ lines_ = other.lines_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ linesBuilder_ =
+ com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+ getLinesFieldBuilder() : null;
+ } else {
+ linesBuilder_.addAllMessages(other.lines_);
+ }
+ }
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ return this;
+ }
+
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ org.sonar.db.FileSources.Data parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (org.sonar.db.FileSources.Data) e.getUnfinishedMessage();
+ throw e;
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+ private int bitField0_;
+
+ private java.util.List<org.sonar.db.FileSources.Line> lines_ =
+ java.util.Collections.emptyList();
+ private void ensureLinesIsMutable() {
+ if (!((bitField0_ & 0x00000001) == 0x00000001)) {
+ lines_ = new java.util.ArrayList<org.sonar.db.FileSources.Line>(lines_);
+ bitField0_ |= 0x00000001;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilder<
+ org.sonar.db.FileSources.Line, org.sonar.db.FileSources.Line.Builder, org.sonar.db.FileSources.LineOrBuilder> linesBuilder_;
+
+ /**
+ * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code>
+ */
+ public java.util.List<org.sonar.db.FileSources.Line> getLinesList() {
+ if (linesBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(lines_);
+ } else {
+ return linesBuilder_.getMessageList();
+ }
+ }
+ /**
+ * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code>
+ */
+ public int getLinesCount() {
+ if (linesBuilder_ == null) {
+ return lines_.size();
+ } else {
+ return linesBuilder_.getCount();
+ }
+ }
+ /**
+ * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code>
+ */
+ public org.sonar.db.FileSources.Line getLines(int index) {
+ if (linesBuilder_ == null) {
+ return lines_.get(index);
+ } else {
+ return linesBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code>
+ */
+ public Builder setLines(
+ int index, org.sonar.db.FileSources.Line value) {
+ if (linesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureLinesIsMutable();
+ lines_.set(index, value);
+ onChanged();
+ } else {
+ linesBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code>
+ */
+ public Builder setLines(
+ int index, org.sonar.db.FileSources.Line.Builder builderForValue) {
+ if (linesBuilder_ == null) {
+ ensureLinesIsMutable();
+ lines_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ linesBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code>
+ */
+ public Builder addLines(org.sonar.db.FileSources.Line value) {
+ if (linesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureLinesIsMutable();
+ lines_.add(value);
+ onChanged();
+ } else {
+ linesBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code>
+ */
+ public Builder addLines(
+ int index, org.sonar.db.FileSources.Line value) {
+ if (linesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureLinesIsMutable();
+ lines_.add(index, value);
+ onChanged();
+ } else {
+ linesBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code>
+ */
+ public Builder addLines(
+ org.sonar.db.FileSources.Line.Builder builderForValue) {
+ if (linesBuilder_ == null) {
+ ensureLinesIsMutable();
+ lines_.add(builderForValue.build());
+ onChanged();
+ } else {
+ linesBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code>
+ */
+ public Builder addLines(
+ int index, org.sonar.db.FileSources.Line.Builder builderForValue) {
+ if (linesBuilder_ == null) {
+ ensureLinesIsMutable();
+ lines_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ linesBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code>
+ */
+ public Builder addAllLines(
+ java.lang.Iterable<? extends org.sonar.db.FileSources.Line> values) {
+ if (linesBuilder_ == null) {
+ ensureLinesIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, lines_);
+ onChanged();
+ } else {
+ linesBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code>
+ */
+ public Builder clearLines() {
+ if (linesBuilder_ == null) {
+ lines_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ linesBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code>
+ */
+ public Builder removeLines(int index) {
+ if (linesBuilder_ == null) {
+ ensureLinesIsMutable();
+ lines_.remove(index);
+ onChanged();
+ } else {
+ linesBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code>
+ */
+ public org.sonar.db.FileSources.Line.Builder getLinesBuilder(
+ int index) {
+ return getLinesFieldBuilder().getBuilder(index);
+ }
+ /**
+ * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code>
+ */
+ public org.sonar.db.FileSources.LineOrBuilder getLinesOrBuilder(
+ int index) {
+ if (linesBuilder_ == null) {
+ 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.db.FileSources.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.db.FileSources.Line.Builder addLinesBuilder() {
+ return getLinesFieldBuilder().addBuilder(
+ org.sonar.db.FileSources.Line.getDefaultInstance());
+ }
+ /**
+ * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code>
+ */
+ public org.sonar.db.FileSources.Line.Builder addLinesBuilder(
+ int index) {
+ return getLinesFieldBuilder().addBuilder(
+ index, org.sonar.db.FileSources.Line.getDefaultInstance());
+ }
+ /**
+ * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code>
+ */
+ public java.util.List<org.sonar.db.FileSources.Line.Builder>
+ getLinesBuilderList() {
+ return getLinesFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilder<
+ org.sonar.db.FileSources.Line, org.sonar.db.FileSources.Line.Builder, org.sonar.db.FileSources.LineOrBuilder>
+ getLinesFieldBuilder() {
+ if (linesBuilder_ == null) {
+ linesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
+ org.sonar.db.FileSources.Line, org.sonar.db.FileSources.Line.Builder, org.sonar.db.FileSources.LineOrBuilder>(
+ lines_,
+ ((bitField0_ & 0x00000001) == 0x00000001),
+ getParentForChildren(),
+ isClean());
+ lines_ = null;
+ }
+ return linesBuilder_;
+ }
+
+ // @@protoc_insertion_point(builder_scope:org.sonar.server.source.db.Data)
+ }
+
+ static {
+ defaultInstance = new Data(true);
+ defaultInstance.initFields();
+ }
+
+ // @@protoc_insertion_point(class_scope:org.sonar.server.source.db.Data)
+ }
+
+ public interface TestOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:org.sonar.server.source.db.Test)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * <code>optional string uuid = 1;</code>
+ */
+ boolean hasUuid();
+ /**
+ * <code>optional string uuid = 1;</code>
+ */
+ java.lang.String getUuid();
+ /**
+ * <code>optional string uuid = 1;</code>
+ */
+ com.google.protobuf.ByteString
+ getUuidBytes();
+
+ /**
+ * <code>optional string name = 2;</code>
+ */
+ boolean hasName();
+ /**
+ * <code>optional string name = 2;</code>
+ */
+ java.lang.String getName();
+ /**
+ * <code>optional string name = 2;</code>
+ */
+ com.google.protobuf.ByteString
+ getNameBytes();
+
+ /**
+ * <code>optional .org.sonar.server.source.db.Test.TestStatus status = 3;</code>
+ */
+ boolean hasStatus();
+ /**
+ * <code>optional .org.sonar.server.source.db.Test.TestStatus status = 3;</code>
+ */
+ org.sonar.db.FileSources.Test.TestStatus getStatus();
+
+ /**
+ * <code>optional int64 execution_time_ms = 4;</code>
+ */
+ boolean hasExecutionTimeMs();
+ /**
+ * <code>optional int64 execution_time_ms = 4;</code>
+ */
+ long getExecutionTimeMs();
+
+ /**
+ * <code>optional string stacktrace = 5;</code>
+ */
+ boolean hasStacktrace();
+ /**
+ * <code>optional string stacktrace = 5;</code>
+ */
+ java.lang.String getStacktrace();
+ /**
+ * <code>optional string stacktrace = 5;</code>
+ */
+ com.google.protobuf.ByteString
+ getStacktraceBytes();
+
+ /**
+ * <code>optional string msg = 6;</code>
+ */
+ boolean hasMsg();
+ /**
+ * <code>optional string msg = 6;</code>
+ */
+ java.lang.String getMsg();
+ /**
+ * <code>optional string msg = 6;</code>
+ */
+ com.google.protobuf.ByteString
+ getMsgBytes();
+
+ /**
+ * <code>repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7;</code>
+ */
+ java.util.List<org.sonar.db.FileSources.Test.CoveredFile>
+ getCoveredFileList();
+ /**
+ * <code>repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7;</code>
+ */
+ org.sonar.db.FileSources.Test.CoveredFile getCoveredFile(int index);
+ /**
+ * <code>repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7;</code>
+ */
+ int getCoveredFileCount();
+ /**
+ * <code>repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7;</code>
+ */
+ java.util.List<? extends org.sonar.db.FileSources.Test.CoveredFileOrBuilder>
+ getCoveredFileOrBuilderList();
+ /**
+ * <code>repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7;</code>
+ */
+ org.sonar.db.FileSources.Test.CoveredFileOrBuilder getCoveredFileOrBuilder(
+ int index);
+ }
+ /**
+ * Protobuf type {@code org.sonar.server.source.db.Test}
+ */
+ public static final class Test extends
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:org.sonar.server.source.db.Test)
+ TestOrBuilder {
+ // Use Test.newBuilder() to construct.
+ private Test(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ super(builder);
+ this.unknownFields = builder.getUnknownFields();
+ }
+ private Test(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
+
+ private static final Test defaultInstance;
+ public static Test getDefaultInstance() {
+ return defaultInstance;
+ }
+
+ public Test getDefaultInstanceForType() {
+ return defaultInstance;
+ }
+
+ private final com.google.protobuf.UnknownFieldSet unknownFields;
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private Test(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ initFields();
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!parseUnknownField(input, unknownFields,
+ extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 10: {
+ com.google.protobuf.ByteString bs = input.readBytes();
+ bitField0_ |= 0x00000001;
+ uuid_ = bs;
+ break;
+ }
+ case 18: {
+ com.google.protobuf.ByteString bs = input.readBytes();
+ bitField0_ |= 0x00000002;
+ name_ = bs;
+ break;
+ }
+ case 24: {
+ int rawValue = input.readEnum();
+ org.sonar.db.FileSources.Test.TestStatus value = org.sonar.db.FileSources.Test.TestStatus.valueOf(rawValue);
+ if (value == null) {
+ unknownFields.mergeVarintField(3, rawValue);
+ } else {
+ bitField0_ |= 0x00000004;
+ status_ = value;
+ }
+ break;
+ }
+ case 32: {
+ bitField0_ |= 0x00000008;
+ executionTimeMs_ = input.readInt64();
+ break;
+ }
+ case 42: {
+ com.google.protobuf.ByteString bs = input.readBytes();
+ bitField0_ |= 0x00000010;
+ stacktrace_ = bs;
+ break;
+ }
+ case 50: {
+ com.google.protobuf.ByteString bs = input.readBytes();
+ bitField0_ |= 0x00000020;
+ msg_ = bs;
+ break;
+ }
+ case 58: {
+ if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
+ coveredFile_ = new java.util.ArrayList<org.sonar.db.FileSources.Test.CoveredFile>();
+ mutable_bitField0_ |= 0x00000040;
+ }
+ coveredFile_.add(input.readMessage(org.sonar.db.FileSources.Test.CoveredFile.PARSER, extensionRegistry));
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e.getMessage()).setUnfinishedMessage(this);
+ } finally {
+ if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
+ coveredFile_ = java.util.Collections.unmodifiableList(coveredFile_);
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.sonar.db.FileSources.internal_static_org_sonar_server_source_db_Test_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.sonar.db.FileSources.internal_static_org_sonar_server_source_db_Test_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.sonar.db.FileSources.Test.class, org.sonar.db.FileSources.Test.Builder.class);
+ }
+
+ public static com.google.protobuf.Parser<Test> PARSER =
+ new com.google.protobuf.AbstractParser<Test>() {
+ public Test parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new Test(input, extensionRegistry);
+ }
+ };
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<Test> getParserForType() {
+ return PARSER;
+ }
+
+ /**
+ * Protobuf enum {@code org.sonar.server.source.db.Test.TestStatus}
+ */
+ public enum TestStatus
+ implements com.google.protobuf.ProtocolMessageEnum {
+ /**
+ * <code>OK = 1;</code>
+ */
+ OK(0, 1),
+ /**
+ * <code>FAILURE = 2;</code>
+ */
+ FAILURE(1, 2),
+ /**
+ * <code>ERROR = 3;</code>
+ */
+ ERROR(2, 3),
+ /**
+ * <code>SKIPPED = 4;</code>
+ */
+ SKIPPED(3, 4),
+ ;
+
+ /**
+ * <code>OK = 1;</code>
+ */
+ public static final int OK_VALUE = 1;
+ /**
+ * <code>FAILURE = 2;</code>
+ */
+ public static final int FAILURE_VALUE = 2;
+ /**
+ * <code>ERROR = 3;</code>
+ */
+ public static final int ERROR_VALUE = 3;
+ /**
+ * <code>SKIPPED = 4;</code>
+ */
+ public static final int SKIPPED_VALUE = 4;
+
+
+ public final int getNumber() { return value; }
+
+ public static TestStatus valueOf(int value) {
+ switch (value) {
+ case 1: return OK;
+ case 2: return FAILURE;
+ case 3: return ERROR;
+ case 4: return SKIPPED;
+ default: return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap<TestStatus>
+ internalGetValueMap() {
+ return internalValueMap;
+ }
+ private static com.google.protobuf.Internal.EnumLiteMap<TestStatus>
+ internalValueMap =
+ new com.google.protobuf.Internal.EnumLiteMap<TestStatus>() {
+ public TestStatus findValueByNumber(int number) {
+ return TestStatus.valueOf(number);
+ }
+ };
+
+ public final com.google.protobuf.Descriptors.EnumValueDescriptor
+ getValueDescriptor() {
+ return getDescriptor().getValues().get(index);
+ }
+ public final com.google.protobuf.Descriptors.EnumDescriptor
+ getDescriptorForType() {
+ return getDescriptor();
+ }
+ public static final com.google.protobuf.Descriptors.EnumDescriptor
+ getDescriptor() {
+ return org.sonar.db.FileSources.Test.getDescriptor().getEnumTypes().get(0);
+ }
+
+ private static final TestStatus[] VALUES = values();
+
+ public static TestStatus valueOf(
+ com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+ if (desc.getType() != getDescriptor()) {
+ throw new java.lang.IllegalArgumentException(
+ "EnumValueDescriptor is not for this type.");
+ }
+ return VALUES[desc.getIndex()];
+ }
+
+ private final int index;
+ private final int value;
+
+ private TestStatus(int index, int value) {
+ this.index = index;
+ this.value = value;
+ }
+
+ // @@protoc_insertion_point(enum_scope:org.sonar.server.source.db.Test.TestStatus)
+ }
+
+ public interface CoveredFileOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:org.sonar.server.source.db.Test.CoveredFile)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * <code>optional string file_uuid = 1;</code>
+ */
+ boolean hasFileUuid();
+ /**
+ * <code>optional string file_uuid = 1;</code>
+ */
+ java.lang.String getFileUuid();
+ /**
+ * <code>optional string file_uuid = 1;</code>
+ */
+ com.google.protobuf.ByteString
+ getFileUuidBytes();
+
+ /**
+ * <code>repeated int32 covered_line = 2 [packed = true];</code>
+ */
+ java.util.List<java.lang.Integer> getCoveredLineList();
+ /**
+ * <code>repeated int32 covered_line = 2 [packed = true];</code>
+ */
+ int getCoveredLineCount();
+ /**
+ * <code>repeated int32 covered_line = 2 [packed = true];</code>
+ */
+ int getCoveredLine(int index);
+ }
+ /**
+ * Protobuf type {@code org.sonar.server.source.db.Test.CoveredFile}
+ */
+ public static final class CoveredFile extends
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:org.sonar.server.source.db.Test.CoveredFile)
+ CoveredFileOrBuilder {
+ // Use CoveredFile.newBuilder() to construct.
+ private CoveredFile(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ super(builder);
+ this.unknownFields = builder.getUnknownFields();
+ }
+ private CoveredFile(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
+
+ private static final CoveredFile defaultInstance;
+ public static CoveredFile getDefaultInstance() {
+ return defaultInstance;
+ }
+
+ public CoveredFile getDefaultInstanceForType() {
+ return defaultInstance;
+ }
+
+ private final com.google.protobuf.UnknownFieldSet unknownFields;
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private CoveredFile(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ initFields();
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!parseUnknownField(input, unknownFields,
+ extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 10: {
+ com.google.protobuf.ByteString bs = input.readBytes();
+ bitField0_ |= 0x00000001;
+ fileUuid_ = bs;
+ break;
+ }
+ case 16: {
+ if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
+ coveredLine_ = new java.util.ArrayList<java.lang.Integer>();
+ mutable_bitField0_ |= 0x00000002;
+ }
+ coveredLine_.add(input.readInt32());
+ break;
+ }
+ case 18: {
+ int length = input.readRawVarint32();
+ int limit = input.pushLimit(length);
+ if (!((mutable_bitField0_ & 0x00000002) == 0x00000002) && input.getBytesUntilLimit() > 0) {
+ coveredLine_ = new java.util.ArrayList<java.lang.Integer>();
+ mutable_bitField0_ |= 0x00000002;
+ }
+ while (input.getBytesUntilLimit() > 0) {
+ coveredLine_.add(input.readInt32());
+ }
+ input.popLimit(limit);
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e.getMessage()).setUnfinishedMessage(this);
+ } finally {
+ if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
+ coveredLine_ = java.util.Collections.unmodifiableList(coveredLine_);
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.sonar.db.FileSources.internal_static_org_sonar_server_source_db_Test_CoveredFile_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.sonar.db.FileSources.internal_static_org_sonar_server_source_db_Test_CoveredFile_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.sonar.db.FileSources.Test.CoveredFile.class, org.sonar.db.FileSources.Test.CoveredFile.Builder.class);
+ }
+
+ public static com.google.protobuf.Parser<CoveredFile> PARSER =
+ new com.google.protobuf.AbstractParser<CoveredFile>() {
+ public CoveredFile parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new CoveredFile(input, extensionRegistry);
+ }
+ };
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<CoveredFile> getParserForType() {
+ return PARSER;
+ }
+
+ private int bitField0_;
+ public static final int FILE_UUID_FIELD_NUMBER = 1;
+ private java.lang.Object fileUuid_;
+ /**
+ * <code>optional string file_uuid = 1;</code>
+ */
+ public boolean hasFileUuid() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ /**
+ * <code>optional string file_uuid = 1;</code>
+ */
+ public java.lang.String getFileUuid() {
+ java.lang.Object ref = fileUuid_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ fileUuid_ = s;
+ }
+ return s;
+ }
+ }
+ /**
+ * <code>optional string file_uuid = 1;</code>
+ */
+ public com.google.protobuf.ByteString
+ getFileUuidBytes() {
+ java.lang.Object ref = fileUuid_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ fileUuid_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int COVERED_LINE_FIELD_NUMBER = 2;
+ private java.util.List<java.lang.Integer> coveredLine_;
+ /**
+ * <code>repeated int32 covered_line = 2 [packed = true];</code>
+ */
+ public java.util.List<java.lang.Integer>
+ getCoveredLineList() {
+ return coveredLine_;
+ }
+ /**
+ * <code>repeated int32 covered_line = 2 [packed = true];</code>
+ */
+ public int getCoveredLineCount() {
+ return coveredLine_.size();
+ }
+ /**
+ * <code>repeated int32 covered_line = 2 [packed = true];</code>
+ */
+ public int getCoveredLine(int index) {
+ return coveredLine_.get(index);
+ }
+ private int coveredLineMemoizedSerializedSize = -1;
+
+ private void initFields() {
+ fileUuid_ = "";
+ coveredLine_ = 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;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ getSerializedSize();
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ output.writeBytes(1, getFileUuidBytes());
+ }
+ if (getCoveredLineList().size() > 0) {
+ output.writeRawVarint32(18);
+ output.writeRawVarint32(coveredLineMemoizedSerializedSize);
+ }
+ for (int i = 0; i < coveredLine_.size(); i++) {
+ output.writeInt32NoTag(coveredLine_.get(i));
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ private int memoizedSerializedSize = -1;
+ public int getSerializedSize() {
+ int size = memoizedSerializedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBytesSize(1, getFileUuidBytes());
+ }
+ {
+ int dataSize = 0;
+ for (int i = 0; i < coveredLine_.size(); i++) {
+ dataSize += com.google.protobuf.CodedOutputStream
+ .computeInt32SizeNoTag(coveredLine_.get(i));
+ }
+ size += dataSize;
+ if (!getCoveredLineList().isEmpty()) {
+ size += 1;
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32SizeNoTag(dataSize);
+ }
+ coveredLineMemoizedSerializedSize = dataSize;
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSerializedSize = size;
+ return size;
+ }
+
+ private static final long serialVersionUID = 0L;
+ @java.lang.Override
+ protected java.lang.Object writeReplace()
+ throws java.io.ObjectStreamException {
+ return super.writeReplace();
+ }
+
+ public static org.sonar.db.FileSources.Test.CoveredFile parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.sonar.db.FileSources.Test.CoveredFile parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.sonar.db.FileSources.Test.CoveredFile parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.sonar.db.FileSources.Test.CoveredFile parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.sonar.db.FileSources.Test.CoveredFile parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+ public static org.sonar.db.FileSources.Test.CoveredFile parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+ public static org.sonar.db.FileSources.Test.CoveredFile parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input);
+ }
+ public static org.sonar.db.FileSources.Test.CoveredFile parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ }
+ public static org.sonar.db.FileSources.Test.CoveredFile parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+ public static org.sonar.db.FileSources.Test.CoveredFile parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+
+ public static Builder newBuilder() { return Builder.create(); }
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder(org.sonar.db.FileSources.Test.CoveredFile prototype) {
+ return newBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() { return newBuilder(this); }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code org.sonar.server.source.db.Test.CoveredFile}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:org.sonar.server.source.db.Test.CoveredFile)
+ org.sonar.db.FileSources.Test.CoveredFileOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.sonar.db.FileSources.internal_static_org_sonar_server_source_db_Test_CoveredFile_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.sonar.db.FileSources.internal_static_org_sonar_server_source_db_Test_CoveredFile_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.sonar.db.FileSources.Test.CoveredFile.class, org.sonar.db.FileSources.Test.CoveredFile.Builder.class);
+ }
+
+ // Construct using org.sonar.db.FileSources.Test.CoveredFile.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ }
+ }
+ private static Builder create() {
+ return new Builder();
+ }
+
+ public Builder clear() {
+ super.clear();
+ fileUuid_ = "";
+ bitField0_ = (bitField0_ & ~0x00000001);
+ coveredLine_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ return this;
+ }
+
+ public Builder clone() {
+ return create().mergeFrom(buildPartial());
+ }
+
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return org.sonar.db.FileSources.internal_static_org_sonar_server_source_db_Test_CoveredFile_descriptor;
+ }
+
+ public org.sonar.db.FileSources.Test.CoveredFile getDefaultInstanceForType() {
+ return org.sonar.db.FileSources.Test.CoveredFile.getDefaultInstance();
+ }
+
+ public org.sonar.db.FileSources.Test.CoveredFile build() {
+ org.sonar.db.FileSources.Test.CoveredFile result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ public org.sonar.db.FileSources.Test.CoveredFile buildPartial() {
+ org.sonar.db.FileSources.Test.CoveredFile result = new org.sonar.db.FileSources.Test.CoveredFile(this);
+ int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
+ to_bitField0_ |= 0x00000001;
+ }
+ result.fileUuid_ = fileUuid_;
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ coveredLine_ = java.util.Collections.unmodifiableList(coveredLine_);
+ bitField0_ = (bitField0_ & ~0x00000002);
+ }
+ result.coveredLine_ = coveredLine_;
+ result.bitField0_ = to_bitField0_;
+ onBuilt();
+ return result;
+ }
+
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof org.sonar.db.FileSources.Test.CoveredFile) {
+ return mergeFrom((org.sonar.db.FileSources.Test.CoveredFile)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(org.sonar.db.FileSources.Test.CoveredFile other) {
+ if (other == org.sonar.db.FileSources.Test.CoveredFile.getDefaultInstance()) return this;
+ if (other.hasFileUuid()) {
+ bitField0_ |= 0x00000001;
+ fileUuid_ = other.fileUuid_;
+ onChanged();
+ }
+ if (!other.coveredLine_.isEmpty()) {
+ if (coveredLine_.isEmpty()) {
+ coveredLine_ = other.coveredLine_;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ } else {
+ ensureCoveredLineIsMutable();
+ coveredLine_.addAll(other.coveredLine_);
+ }
+ onChanged();
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ return this;
+ }
+
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ org.sonar.db.FileSources.Test.CoveredFile parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (org.sonar.db.FileSources.Test.CoveredFile) e.getUnfinishedMessage();
+ throw e;
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+ private int bitField0_;
+
+ private java.lang.Object fileUuid_ = "";
+ /**
+ * <code>optional string file_uuid = 1;</code>
+ */
+ public boolean hasFileUuid() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ /**
+ * <code>optional string file_uuid = 1;</code>
+ */
+ public java.lang.String getFileUuid() {
+ java.lang.Object ref = fileUuid_;
+ 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()) {
+ fileUuid_ = s;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * <code>optional string file_uuid = 1;</code>
+ */
+ public com.google.protobuf.ByteString
+ getFileUuidBytes() {
+ java.lang.Object ref = fileUuid_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ fileUuid_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * <code>optional string file_uuid = 1;</code>
+ */
+ public Builder setFileUuid(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000001;
+ fileUuid_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>optional string file_uuid = 1;</code>
+ */
+ public Builder clearFileUuid() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ fileUuid_ = getDefaultInstance().getFileUuid();
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>optional string file_uuid = 1;</code>
+ */
+ public Builder setFileUuidBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000001;
+ fileUuid_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.util.List<java.lang.Integer> coveredLine_ = java.util.Collections.emptyList();
+ private void ensureCoveredLineIsMutable() {
+ if (!((bitField0_ & 0x00000002) == 0x00000002)) {
+ coveredLine_ = new java.util.ArrayList<java.lang.Integer>(coveredLine_);
+ bitField0_ |= 0x00000002;
+ }
+ }
+ /**
+ * <code>repeated int32 covered_line = 2 [packed = true];</code>
+ */
+ public java.util.List<java.lang.Integer>
+ getCoveredLineList() {
+ return java.util.Collections.unmodifiableList(coveredLine_);
+ }
+ /**
+ * <code>repeated int32 covered_line = 2 [packed = true];</code>
+ */
+ public int getCoveredLineCount() {
+ return coveredLine_.size();
+ }
+ /**
+ * <code>repeated int32 covered_line = 2 [packed = true];</code>
+ */
+ public int getCoveredLine(int index) {
+ return coveredLine_.get(index);
+ }
+ /**
+ * <code>repeated int32 covered_line = 2 [packed = true];</code>
+ */
+ public Builder setCoveredLine(
+ int index, int value) {
+ ensureCoveredLineIsMutable();
+ coveredLine_.set(index, value);
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>repeated int32 covered_line = 2 [packed = true];</code>
+ */
+ public Builder addCoveredLine(int value) {
+ ensureCoveredLineIsMutable();
+ coveredLine_.add(value);
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>repeated int32 covered_line = 2 [packed = true];</code>
+ */
+ public Builder addAllCoveredLine(
+ java.lang.Iterable<? extends java.lang.Integer> values) {
+ ensureCoveredLineIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, coveredLine_);
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>repeated int32 covered_line = 2 [packed = true];</code>
+ */
+ public Builder clearCoveredLine() {
+ coveredLine_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:org.sonar.server.source.db.Test.CoveredFile)
+ }
+
+ static {
+ defaultInstance = new CoveredFile(true);
+ defaultInstance.initFields();
+ }
+
+ // @@protoc_insertion_point(class_scope:org.sonar.server.source.db.Test.CoveredFile)
+ }
+
+ private int bitField0_;
+ public static final int UUID_FIELD_NUMBER = 1;
+ private java.lang.Object uuid_;
+ /**
+ * <code>optional string uuid = 1;</code>
+ */
+ public boolean hasUuid() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ /**
+ * <code>optional string uuid = 1;</code>
+ */
+ public java.lang.String getUuid() {
+ java.lang.Object ref = uuid_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ uuid_ = s;
+ }
+ return s;
+ }
+ }
+ /**
+ * <code>optional string uuid = 1;</code>
+ */
+ public com.google.protobuf.ByteString
+ 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);
+ uuid_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int NAME_FIELD_NUMBER = 2;
+ private java.lang.Object name_;
+ /**
+ * <code>optional string name = 2;</code>
+ */
+ public boolean hasName() {
+ return ((bitField0_ & 0x00000002) == 0x00000002);
+ }
+ /**
+ * <code>optional string name = 2;</code>
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ name_ = s;
+ }
+ return s;
+ }
+ }
+ /**
+ * <code>optional string name = 2;</code>
+ */
+ public com.google.protobuf.ByteString
+ 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);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int STATUS_FIELD_NUMBER = 3;
+ private org.sonar.db.FileSources.Test.TestStatus status_;
+ /**
+ * <code>optional .org.sonar.server.source.db.Test.TestStatus status = 3;</code>
+ */
+ public boolean hasStatus() {
+ return ((bitField0_ & 0x00000004) == 0x00000004);
+ }
+ /**
+ * <code>optional .org.sonar.server.source.db.Test.TestStatus status = 3;</code>
+ */
+ public org.sonar.db.FileSources.Test.TestStatus getStatus() {
+ return status_;
+ }
+
+ public static final int EXECUTION_TIME_MS_FIELD_NUMBER = 4;
+ private long executionTimeMs_;
+ /**
+ * <code>optional int64 execution_time_ms = 4;</code>
+ */
+ public boolean hasExecutionTimeMs() {
+ return ((bitField0_ & 0x00000008) == 0x00000008);
+ }
+ /**
+ * <code>optional int64 execution_time_ms = 4;</code>
+ */
+ public long getExecutionTimeMs() {
+ return executionTimeMs_;
+ }
+
+ public static final int STACKTRACE_FIELD_NUMBER = 5;
+ private java.lang.Object stacktrace_;
+ /**
+ * <code>optional string stacktrace = 5;</code>
+ */
+ public boolean hasStacktrace() {
+ return ((bitField0_ & 0x00000010) == 0x00000010);
+ }
+ /**
+ * <code>optional string stacktrace = 5;</code>
+ */
+ public java.lang.String getStacktrace() {
+ java.lang.Object ref = stacktrace_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ stacktrace_ = s;
+ }
+ return s;
+ }
+ }
+ /**
+ * <code>optional string stacktrace = 5;</code>
+ */
+ public com.google.protobuf.ByteString
+ getStacktraceBytes() {
+ java.lang.Object ref = stacktrace_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ stacktrace_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int MSG_FIELD_NUMBER = 6;
+ private java.lang.Object msg_;
+ /**
+ * <code>optional string msg = 6;</code>
+ */
+ public boolean hasMsg() {
+ return ((bitField0_ & 0x00000020) == 0x00000020);
+ }
+ /**
+ * <code>optional string msg = 6;</code>
+ */
+ public java.lang.String getMsg() {
+ java.lang.Object ref = msg_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ msg_ = s;
+ }
+ return s;
+ }
+ }
+ /**
+ * <code>optional string msg = 6;</code>
+ */
+ public com.google.protobuf.ByteString
+ getMsgBytes() {
+ java.lang.Object ref = msg_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ msg_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int COVERED_FILE_FIELD_NUMBER = 7;
+ private java.util.List<org.sonar.db.FileSources.Test.CoveredFile> coveredFile_;
+ /**
+ * <code>repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7;</code>
+ */
+ public java.util.List<org.sonar.db.FileSources.Test.CoveredFile> getCoveredFileList() {
+ return coveredFile_;
+ }
+ /**
+ * <code>repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7;</code>
+ */
+ public java.util.List<? extends org.sonar.db.FileSources.Test.CoveredFileOrBuilder>
+ getCoveredFileOrBuilderList() {
+ return coveredFile_;
+ }
+ /**
+ * <code>repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7;</code>
+ */
+ public int getCoveredFileCount() {
+ return coveredFile_.size();
+ }
+ /**
+ * <code>repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7;</code>
+ */
+ public org.sonar.db.FileSources.Test.CoveredFile getCoveredFile(int index) {
+ return coveredFile_.get(index);
+ }
+ /**
+ * <code>repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7;</code>
+ */
+ public org.sonar.db.FileSources.Test.CoveredFileOrBuilder getCoveredFileOrBuilder(
+ int index) {
+ return coveredFile_.get(index);
+ }
+
+ private void initFields() {
+ uuid_ = "";
+ name_ = "";
+ status_ = org.sonar.db.FileSources.Test.TestStatus.OK;
+ executionTimeMs_ = 0L;
+ stacktrace_ = "";
+ msg_ = "";
+ coveredFile_ = 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;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ getSerializedSize();
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ output.writeBytes(1, getUuidBytes());
+ }
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ output.writeBytes(2, getNameBytes());
+ }
+ if (((bitField0_ & 0x00000004) == 0x00000004)) {
+ output.writeEnum(3, status_.getNumber());
+ }
+ if (((bitField0_ & 0x00000008) == 0x00000008)) {
+ output.writeInt64(4, executionTimeMs_);
+ }
+ if (((bitField0_ & 0x00000010) == 0x00000010)) {
+ output.writeBytes(5, getStacktraceBytes());
+ }
+ if (((bitField0_ & 0x00000020) == 0x00000020)) {
+ output.writeBytes(6, getMsgBytes());
+ }
+ for (int i = 0; i < coveredFile_.size(); i++) {
+ output.writeMessage(7, coveredFile_.get(i));
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ private int memoizedSerializedSize = -1;
+ public int getSerializedSize() {
+ int size = memoizedSerializedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBytesSize(1, getUuidBytes());
+ }
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBytesSize(2, getNameBytes());
+ }
+ if (((bitField0_ & 0x00000004) == 0x00000004)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeEnumSize(3, status_.getNumber());
+ }
+ if (((bitField0_ & 0x00000008) == 0x00000008)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt64Size(4, executionTimeMs_);
+ }
+ if (((bitField0_ & 0x00000010) == 0x00000010)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBytesSize(5, getStacktraceBytes());
+ }
+ if (((bitField0_ & 0x00000020) == 0x00000020)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBytesSize(6, getMsgBytes());
+ }
+ for (int i = 0; i < coveredFile_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(7, coveredFile_.get(i));
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSerializedSize = size;
+ return size;
+ }
+
+ private static final long serialVersionUID = 0L;
+ @java.lang.Override
+ protected java.lang.Object writeReplace()
+ throws java.io.ObjectStreamException {
+ return super.writeReplace();
+ }
+
+ public static org.sonar.db.FileSources.Test parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.sonar.db.FileSources.Test parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.sonar.db.FileSources.Test parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.sonar.db.FileSources.Test parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.sonar.db.FileSources.Test parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+ public static org.sonar.db.FileSources.Test parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+ public static org.sonar.db.FileSources.Test parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input);
+ }
+ public static org.sonar.db.FileSources.Test parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ }
+ public static org.sonar.db.FileSources.Test parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+ public static org.sonar.db.FileSources.Test parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+
+ public static Builder newBuilder() { return Builder.create(); }
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder(org.sonar.db.FileSources.Test prototype) {
+ return newBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() { return newBuilder(this); }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code org.sonar.server.source.db.Test}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:org.sonar.server.source.db.Test)
+ org.sonar.db.FileSources.TestOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.sonar.db.FileSources.internal_static_org_sonar_server_source_db_Test_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.sonar.db.FileSources.internal_static_org_sonar_server_source_db_Test_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.sonar.db.FileSources.Test.class, org.sonar.db.FileSources.Test.Builder.class);
+ }
+
+ // Construct using org.sonar.db.FileSources.Test.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ getCoveredFileFieldBuilder();
+ }
+ }
+ private static Builder create() {
+ return new Builder();
+ }
+
+ public Builder clear() {
+ super.clear();
+ uuid_ = "";
+ bitField0_ = (bitField0_ & ~0x00000001);
+ name_ = "";
+ bitField0_ = (bitField0_ & ~0x00000002);
+ status_ = org.sonar.db.FileSources.Test.TestStatus.OK;
+ bitField0_ = (bitField0_ & ~0x00000004);
+ executionTimeMs_ = 0L;
+ bitField0_ = (bitField0_ & ~0x00000008);
+ stacktrace_ = "";
+ bitField0_ = (bitField0_ & ~0x00000010);
+ msg_ = "";
+ bitField0_ = (bitField0_ & ~0x00000020);
+ if (coveredFileBuilder_ == null) {
+ coveredFile_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000040);
+ } else {
+ coveredFileBuilder_.clear();
+ }
+ return this;
+ }
+
+ public Builder clone() {
+ return create().mergeFrom(buildPartial());
+ }
+
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return org.sonar.db.FileSources.internal_static_org_sonar_server_source_db_Test_descriptor;
+ }
+
+ public org.sonar.db.FileSources.Test getDefaultInstanceForType() {
+ return org.sonar.db.FileSources.Test.getDefaultInstance();
+ }
+
+ public org.sonar.db.FileSources.Test build() {
+ org.sonar.db.FileSources.Test result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ public org.sonar.db.FileSources.Test buildPartial() {
+ org.sonar.db.FileSources.Test result = new org.sonar.db.FileSources.Test(this);
+ int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
+ to_bitField0_ |= 0x00000001;
+ }
+ result.uuid_ = uuid_;
+ if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
+ to_bitField0_ |= 0x00000002;
+ }
+ result.name_ = name_;
+ if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
+ to_bitField0_ |= 0x00000004;
+ }
+ result.status_ = status_;
+ if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
+ to_bitField0_ |= 0x00000008;
+ }
+ result.executionTimeMs_ = executionTimeMs_;
+ if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
+ to_bitField0_ |= 0x00000010;
+ }
+ result.stacktrace_ = stacktrace_;
+ if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
+ to_bitField0_ |= 0x00000020;
+ }
+ result.msg_ = msg_;
+ if (coveredFileBuilder_ == null) {
+ if (((bitField0_ & 0x00000040) == 0x00000040)) {
+ coveredFile_ = java.util.Collections.unmodifiableList(coveredFile_);
+ bitField0_ = (bitField0_ & ~0x00000040);
+ }
+ result.coveredFile_ = coveredFile_;
+ } else {
+ result.coveredFile_ = coveredFileBuilder_.build();
+ }
+ result.bitField0_ = to_bitField0_;
+ onBuilt();
+ return result;
+ }
+
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof org.sonar.db.FileSources.Test) {
+ return mergeFrom((org.sonar.db.FileSources.Test)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(org.sonar.db.FileSources.Test other) {
+ if (other == org.sonar.db.FileSources.Test.getDefaultInstance()) return this;
+ if (other.hasUuid()) {
+ bitField0_ |= 0x00000001;
+ uuid_ = other.uuid_;
+ onChanged();
+ }
+ if (other.hasName()) {
+ bitField0_ |= 0x00000002;
+ name_ = other.name_;
+ onChanged();
+ }
+ if (other.hasStatus()) {
+ setStatus(other.getStatus());
+ }
+ if (other.hasExecutionTimeMs()) {
+ setExecutionTimeMs(other.getExecutionTimeMs());
+ }
+ if (other.hasStacktrace()) {
+ bitField0_ |= 0x00000010;
+ stacktrace_ = other.stacktrace_;
+ onChanged();
+ }
+ if (other.hasMsg()) {
+ bitField0_ |= 0x00000020;
+ msg_ = other.msg_;
+ onChanged();
+ }
+ if (coveredFileBuilder_ == null) {
+ if (!other.coveredFile_.isEmpty()) {
+ if (coveredFile_.isEmpty()) {
+ coveredFile_ = other.coveredFile_;
+ bitField0_ = (bitField0_ & ~0x00000040);
+ } else {
+ ensureCoveredFileIsMutable();
+ coveredFile_.addAll(other.coveredFile_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.coveredFile_.isEmpty()) {
+ if (coveredFileBuilder_.isEmpty()) {
+ coveredFileBuilder_.dispose();
+ coveredFileBuilder_ = null;
+ coveredFile_ = other.coveredFile_;
+ bitField0_ = (bitField0_ & ~0x00000040);
+ coveredFileBuilder_ =
+ com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+ getCoveredFileFieldBuilder() : null;
+ } else {
+ coveredFileBuilder_.addAllMessages(other.coveredFile_);
+ }
+ }
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ return this;
+ }
+
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ org.sonar.db.FileSources.Test parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (org.sonar.db.FileSources.Test) e.getUnfinishedMessage();
+ throw e;
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+ private int bitField0_;
+
+ private java.lang.Object uuid_ = "";
+ /**
+ * <code>optional string uuid = 1;</code>
+ */
+ public boolean hasUuid() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ /**
+ * <code>optional string uuid = 1;</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;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * <code>optional string uuid = 1;</code>
+ */
+ public com.google.protobuf.ByteString
+ getUuidBytes() {
+ java.lang.Object ref = uuid_;
+ if (ref instanceof String) {
+ 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 = 1;</code>
+ */
+ public Builder setUuid(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000001;
+ uuid_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>optional string uuid = 1;</code>
+ */
+ public Builder clearUuid() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ uuid_ = getDefaultInstance().getUuid();
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>optional string uuid = 1;</code>
+ */
+ public Builder setUuidBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000001;
+ uuid_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object name_ = "";
+ /**
+ * <code>optional string name = 2;</code>
+ */
+ public boolean hasName() {
+ return ((bitField0_ & 0x00000002) == 0x00000002);
+ }
+ /**
+ * <code>optional string name = 2;</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;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * <code>optional string name = 2;</code>
+ */
+ public com.google.protobuf.ByteString
+ getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof String) {
+ 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 = 2;</code>
+ */
+ public Builder setName(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000002;
+ name_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>optional string name = 2;</code>
+ */
+ public Builder clearName() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ name_ = getDefaultInstance().getName();
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>optional string name = 2;</code>
+ */
+ public Builder setNameBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000002;
+ name_ = value;
+ onChanged();
+ return this;
+ }
+
+ private org.sonar.db.FileSources.Test.TestStatus status_ = org.sonar.db.FileSources.Test.TestStatus.OK;
+ /**
+ * <code>optional .org.sonar.server.source.db.Test.TestStatus status = 3;</code>
+ */
+ public boolean hasStatus() {
+ return ((bitField0_ & 0x00000004) == 0x00000004);
+ }
+ /**
+ * <code>optional .org.sonar.server.source.db.Test.TestStatus status = 3;</code>
+ */
+ public org.sonar.db.FileSources.Test.TestStatus getStatus() {
+ return status_;
+ }
+ /**
+ * <code>optional .org.sonar.server.source.db.Test.TestStatus status = 3;</code>
+ */
+ public Builder setStatus(org.sonar.db.FileSources.Test.TestStatus value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000004;
+ status_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>optional .org.sonar.server.source.db.Test.TestStatus status = 3;</code>
+ */
+ public Builder clearStatus() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ status_ = org.sonar.db.FileSources.Test.TestStatus.OK;
+ onChanged();
+ return this;
+ }
+
+ private long executionTimeMs_ ;
+ /**
+ * <code>optional int64 execution_time_ms = 4;</code>
+ */
+ public boolean hasExecutionTimeMs() {
+ return ((bitField0_ & 0x00000008) == 0x00000008);
+ }
+ /**
+ * <code>optional int64 execution_time_ms = 4;</code>
+ */
+ public long getExecutionTimeMs() {
+ return executionTimeMs_;
+ }
+ /**
+ * <code>optional int64 execution_time_ms = 4;</code>
+ */
+ public Builder setExecutionTimeMs(long value) {
+ bitField0_ |= 0x00000008;
+ executionTimeMs_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>optional int64 execution_time_ms = 4;</code>
+ */
+ public Builder clearExecutionTimeMs() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ executionTimeMs_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object stacktrace_ = "";
+ /**
+ * <code>optional string stacktrace = 5;</code>
+ */
+ public boolean hasStacktrace() {
+ return ((bitField0_ & 0x00000010) == 0x00000010);
+ }
+ /**
+ * <code>optional string stacktrace = 5;</code>
+ */
+ public java.lang.String getStacktrace() {
+ java.lang.Object ref = stacktrace_;
+ 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()) {
+ stacktrace_ = s;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * <code>optional string stacktrace = 5;</code>
+ */
+ public com.google.protobuf.ByteString
+ getStacktraceBytes() {
+ java.lang.Object ref = stacktrace_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ stacktrace_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * <code>optional string stacktrace = 5;</code>
+ */
+ public Builder setStacktrace(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000010;
+ stacktrace_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>optional string stacktrace = 5;</code>
+ */
+ public Builder clearStacktrace() {
+ bitField0_ = (bitField0_ & ~0x00000010);
+ stacktrace_ = getDefaultInstance().getStacktrace();
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>optional string stacktrace = 5;</code>
+ */
+ public Builder setStacktraceBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000010;
+ stacktrace_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object msg_ = "";
+ /**
+ * <code>optional string msg = 6;</code>
+ */
+ public boolean hasMsg() {
+ return ((bitField0_ & 0x00000020) == 0x00000020);
+ }
+ /**
+ * <code>optional string msg = 6;</code>
+ */
+ public java.lang.String getMsg() {
+ java.lang.Object ref = msg_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ msg_ = s;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * <code>optional string msg = 6;</code>
+ */
+ public com.google.protobuf.ByteString
+ getMsgBytes() {
+ java.lang.Object ref = msg_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ msg_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * <code>optional string msg = 6;</code>
+ */
+ public Builder setMsg(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000020;
+ msg_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>optional string msg = 6;</code>
+ */
+ public Builder clearMsg() {
+ bitField0_ = (bitField0_ & ~0x00000020);
+ msg_ = getDefaultInstance().getMsg();
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>optional string msg = 6;</code>
+ */
+ public Builder setMsgBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000020;
+ msg_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.util.List<org.sonar.db.FileSources.Test.CoveredFile> coveredFile_ =
+ java.util.Collections.emptyList();
+ private void ensureCoveredFileIsMutable() {
+ if (!((bitField0_ & 0x00000040) == 0x00000040)) {
+ coveredFile_ = new java.util.ArrayList<org.sonar.db.FileSources.Test.CoveredFile>(coveredFile_);
+ bitField0_ |= 0x00000040;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilder<
+ org.sonar.db.FileSources.Test.CoveredFile, org.sonar.db.FileSources.Test.CoveredFile.Builder, org.sonar.db.FileSources.Test.CoveredFileOrBuilder> coveredFileBuilder_;
+
+ /**
+ * <code>repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7;</code>
+ */
+ public java.util.List<org.sonar.db.FileSources.Test.CoveredFile> getCoveredFileList() {
+ if (coveredFileBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(coveredFile_);
+ } else {
+ return coveredFileBuilder_.getMessageList();
+ }
+ }
+ /**
+ * <code>repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7;</code>
+ */
+ public int getCoveredFileCount() {
+ if (coveredFileBuilder_ == null) {
+ return coveredFile_.size();
+ } else {
+ return coveredFileBuilder_.getCount();
+ }
+ }
+ /**
+ * <code>repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7;</code>
+ */
+ public org.sonar.db.FileSources.Test.CoveredFile getCoveredFile(int index) {
+ if (coveredFileBuilder_ == null) {
+ return coveredFile_.get(index);
+ } else {
+ return coveredFileBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * <code>repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7;</code>
+ */
+ public Builder setCoveredFile(
+ int index, org.sonar.db.FileSources.Test.CoveredFile value) {
+ if (coveredFileBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureCoveredFileIsMutable();
+ coveredFile_.set(index, value);
+ onChanged();
+ } else {
+ coveredFileBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7;</code>
+ */
+ public Builder setCoveredFile(
+ int index, org.sonar.db.FileSources.Test.CoveredFile.Builder builderForValue) {
+ if (coveredFileBuilder_ == null) {
+ ensureCoveredFileIsMutable();
+ coveredFile_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ coveredFileBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7;</code>
+ */
+ public Builder addCoveredFile(org.sonar.db.FileSources.Test.CoveredFile value) {
+ if (coveredFileBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureCoveredFileIsMutable();
+ coveredFile_.add(value);
+ onChanged();
+ } else {
+ coveredFileBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7;</code>
+ */
+ public Builder addCoveredFile(
+ int index, org.sonar.db.FileSources.Test.CoveredFile value) {
+ if (coveredFileBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureCoveredFileIsMutable();
+ coveredFile_.add(index, value);
+ onChanged();
+ } else {
+ coveredFileBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7;</code>
+ */
+ public Builder addCoveredFile(
+ org.sonar.db.FileSources.Test.CoveredFile.Builder builderForValue) {
+ if (coveredFileBuilder_ == null) {
+ ensureCoveredFileIsMutable();
+ coveredFile_.add(builderForValue.build());
+ onChanged();
+ } else {
+ coveredFileBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7;</code>
+ */
+ public Builder addCoveredFile(
+ int index, org.sonar.db.FileSources.Test.CoveredFile.Builder builderForValue) {
+ if (coveredFileBuilder_ == null) {
+ ensureCoveredFileIsMutable();
+ coveredFile_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ coveredFileBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7;</code>
+ */
+ public Builder addAllCoveredFile(
+ java.lang.Iterable<? extends org.sonar.db.FileSources.Test.CoveredFile> values) {
+ if (coveredFileBuilder_ == null) {
+ ensureCoveredFileIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, coveredFile_);
+ onChanged();
+ } else {
+ coveredFileBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7;</code>
+ */
+ public Builder clearCoveredFile() {
+ if (coveredFileBuilder_ == null) {
+ coveredFile_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000040);
+ onChanged();
+ } else {
+ coveredFileBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7;</code>
+ */
+ public Builder removeCoveredFile(int index) {
+ if (coveredFileBuilder_ == null) {
+ ensureCoveredFileIsMutable();
+ coveredFile_.remove(index);
+ onChanged();
+ } else {
+ coveredFileBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7;</code>
+ */
+ public org.sonar.db.FileSources.Test.CoveredFile.Builder getCoveredFileBuilder(
+ int index) {
+ return getCoveredFileFieldBuilder().getBuilder(index);
+ }
+ /**
+ * <code>repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7;</code>
+ */
+ public org.sonar.db.FileSources.Test.CoveredFileOrBuilder getCoveredFileOrBuilder(
+ int index) {
+ if (coveredFileBuilder_ == null) {
+ return coveredFile_.get(index); } else {
+ return coveredFileBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * <code>repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7;</code>
+ */
+ public java.util.List<? extends org.sonar.db.FileSources.Test.CoveredFileOrBuilder>
+ getCoveredFileOrBuilderList() {
+ if (coveredFileBuilder_ != null) {
+ return coveredFileBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(coveredFile_);
+ }
+ }
+ /**
+ * <code>repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7;</code>
+ */
+ public org.sonar.db.FileSources.Test.CoveredFile.Builder addCoveredFileBuilder() {
+ return getCoveredFileFieldBuilder().addBuilder(
+ org.sonar.db.FileSources.Test.CoveredFile.getDefaultInstance());
+ }
+ /**
+ * <code>repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7;</code>
+ */
+ public org.sonar.db.FileSources.Test.CoveredFile.Builder addCoveredFileBuilder(
+ int index) {
+ return getCoveredFileFieldBuilder().addBuilder(
+ index, org.sonar.db.FileSources.Test.CoveredFile.getDefaultInstance());
+ }
+ /**
+ * <code>repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7;</code>
+ */
+ public java.util.List<org.sonar.db.FileSources.Test.CoveredFile.Builder>
+ getCoveredFileBuilderList() {
+ return getCoveredFileFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilder<
+ org.sonar.db.FileSources.Test.CoveredFile, org.sonar.db.FileSources.Test.CoveredFile.Builder, org.sonar.db.FileSources.Test.CoveredFileOrBuilder>
+ getCoveredFileFieldBuilder() {
+ if (coveredFileBuilder_ == null) {
+ coveredFileBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
+ org.sonar.db.FileSources.Test.CoveredFile, org.sonar.db.FileSources.Test.CoveredFile.Builder, org.sonar.db.FileSources.Test.CoveredFileOrBuilder>(
+ coveredFile_,
+ ((bitField0_ & 0x00000040) == 0x00000040),
+ getParentForChildren(),
+ isClean());
+ coveredFile_ = null;
+ }
+ return coveredFileBuilder_;
+ }
+
+ // @@protoc_insertion_point(builder_scope:org.sonar.server.source.db.Test)
+ }
+
+ static {
+ defaultInstance = new Test(true);
+ defaultInstance.initFields();
+ }
+
+ // @@protoc_insertion_point(class_scope:org.sonar.server.source.db.Test)
+ }
+
+ 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 final com.google.protobuf.Descriptors.Descriptor
+ internal_static_org_sonar_server_source_db_Test_descriptor;
+ private static
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_org_sonar_server_source_db_Test_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_org_sonar_server_source_db_Test_CoveredFile_descriptor;
+ private static
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_org_sonar_server_source_db_Test_CoveredFile_fieldAccessorTable;
+
+ public static com.google.protobuf.Descriptors.FileDescriptor
+ getDescriptor() {
+ return descriptor;
+ }
+ private static com.google.protobuf.Descriptors.FileDescriptor
+ descriptor;
+ static {
+ java.lang.String[] descriptorData = {
+ "\n\022file_sources.proto\022\032org.sonar.server.s" +
+ "ource.db\"\223\003\n\004Line\022\014\n\004line\030\001 \001(\005\022\016\n\006sourc" +
+ "e\030\002 \001(\t\022\024\n\014scm_revision\030\003 \001(\t\022\022\n\nscm_aut" +
+ "hor\030\004 \001(\t\022\020\n\010scm_date\030\005 \001(\003\022\024\n\014ut_line_h" +
+ "its\030\006 \001(\005\022\025\n\rut_conditions\030\007 \001(\005\022\035\n\025ut_c" +
+ "overed_conditions\030\010 \001(\005\022\024\n\014it_line_hits\030" +
+ "\t \001(\005\022\025\n\rit_conditions\030\n \001(\005\022\035\n\025it_cover" +
+ "ed_conditions\030\013 \001(\005\022\031\n\021overall_line_hits" +
+ "\030\014 \001(\005\022\032\n\022overall_conditions\030\r \001(\005\022\"\n\032ov" +
+ "erall_covered_conditions\030\016 \001(\005\022\024\n\014highli",
+ "ghting\030\017 \001(\t\022\017\n\007symbols\030\020 \001(\t\022\027\n\013duplica" +
+ "tion\030\021 \003(\005B\002\020\001\"7\n\004Data\022/\n\005lines\030\001 \003(\0132 ." +
+ "org.sonar.server.source.db.Line\"\326\002\n\004Test" +
+ "\022\014\n\004uuid\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\022;\n\006status\030\003" +
+ " \001(\0162+.org.sonar.server.source.db.Test.T" +
+ "estStatus\022\031\n\021execution_time_ms\030\004 \001(\003\022\022\n\n" +
+ "stacktrace\030\005 \001(\t\022\013\n\003msg\030\006 \001(\t\022B\n\014covered" +
+ "_file\030\007 \003(\0132,.org.sonar.server.source.db" +
+ ".Test.CoveredFile\032:\n\013CoveredFile\022\021\n\tfile" +
+ "_uuid\030\001 \001(\t\022\030\n\014covered_line\030\002 \003(\005B\002\020\001\"9\n",
+ "\nTestStatus\022\006\n\002OK\020\001\022\013\n\007FAILURE\020\002\022\t\n\005ERRO" +
+ "R\020\003\022\013\n\007SKIPPED\020\004B\020\n\014org.sonar.dbH\001"
+ };
+ com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
+ new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
+ public com.google.protobuf.ExtensionRegistry assignDescriptors(
+ com.google.protobuf.Descriptors.FileDescriptor root) {
+ descriptor = root;
+ return null;
+ }
+ };
+ com.google.protobuf.Descriptors.FileDescriptor
+ .internalBuildGeneratedFileFrom(descriptorData,
+ new com.google.protobuf.Descriptors.FileDescriptor[] {
+ }, assigner);
+ internal_static_org_sonar_server_source_db_Line_descriptor =
+ getDescriptor().getMessageTypes().get(0);
+ internal_static_org_sonar_server_source_db_Line_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_org_sonar_server_source_db_Line_descriptor,
+ new java.lang.String[] { "Line", "Source", "ScmRevision", "ScmAuthor", "ScmDate", "UtLineHits", "UtConditions", "UtCoveredConditions", "ItLineHits", "ItConditions", "ItCoveredConditions", "OverallLineHits", "OverallConditions", "OverallCoveredConditions", "Highlighting", "Symbols", "Duplication", });
+ internal_static_org_sonar_server_source_db_Data_descriptor =
+ getDescriptor().getMessageTypes().get(1);
+ internal_static_org_sonar_server_source_db_Data_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_org_sonar_server_source_db_Data_descriptor,
+ new java.lang.String[] { "Lines", });
+ internal_static_org_sonar_server_source_db_Test_descriptor =
+ getDescriptor().getMessageTypes().get(2);
+ internal_static_org_sonar_server_source_db_Test_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_org_sonar_server_source_db_Test_descriptor,
+ new java.lang.String[] { "Uuid", "Name", "Status", "ExecutionTimeMs", "Stacktrace", "Msg", "CoveredFile", });
+ internal_static_org_sonar_server_source_db_Test_CoveredFile_descriptor =
+ internal_static_org_sonar_server_source_db_Test_descriptor.getNestedTypes().get(0);
+ internal_static_org_sonar_server_source_db_Test_CoveredFile_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_org_sonar_server_source_db_Test_CoveredFile_descriptor,
+ new java.lang.String[] { "FileUuid", "CoveredLine", });
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/sonar-db/src/main/java/org/sonar/db/source/FileSourceDto.java b/sonar-db/src/main/java/org/sonar/db/source/FileSourceDto.java
index 0ac7561084f..997b1a68b51 100644
--- a/sonar-db/src/main/java/org/sonar/db/source/FileSourceDto.java
+++ b/sonar-db/src/main/java/org/sonar/db/source/FileSourceDto.java
@@ -30,8 +30,7 @@ import javax.annotation.Nullable;
import net.jpountz.lz4.LZ4BlockInputStream;
import net.jpountz.lz4.LZ4BlockOutputStream;
import org.apache.commons.io.IOUtils;
-import org.sonar.server.source.db.FileSourceDb;
-import org.sonar.server.source.db.FileSourceDb.Test;
+import org.sonar.db.FileSources;
public class FileSourceDto {
@@ -86,7 +85,7 @@ public class FileSourceDto {
return this;
}
- public static FileSourceDb.Data decodeSourceData(byte[] binaryData) {
+ public static FileSources.Data decodeSourceData(byte[] binaryData) {
// stream is always closed
return decodeSourceData(new ByteArrayInputStream(binaryData));
}
@@ -95,11 +94,11 @@ public class FileSourceDto {
* Decompress and deserialize content of column FILE_SOURCES.BINARY_DATA.
* The parameter "input" is always closed by this method.
*/
- public static FileSourceDb.Data decodeSourceData(InputStream binaryInput) {
+ public static FileSources.Data decodeSourceData(InputStream binaryInput) {
LZ4BlockInputStream lz4Input = null;
try {
lz4Input = new LZ4BlockInputStream(binaryInput);
- return FileSourceDb.Data.parseFrom(lz4Input);
+ return FileSources.Data.parseFrom(lz4Input);
} catch (IOException e) {
throw new IllegalStateException("Fail to decompress and deserialize source data", e);
} finally {
@@ -108,10 +107,10 @@ public class FileSourceDto {
}
/**
- * Serialize and compress protobuf message {@link org.sonar.server.source.db.FileSourceDb.Data}
+ * Serialize and compress protobuf message {@link org.sonar.db.FileSources.Data}
* in the column BINARY_DATA.
*/
- public static byte[] encodeSourceData(FileSourceDb.Data data) {
+ public static byte[] encodeSourceData(FileSources.Data data) {
ByteArrayOutputStream byteOutput = new ByteArrayOutputStream();
LZ4BlockOutputStream compressedOutput = new LZ4BlockOutputStream(byteOutput);
try {
@@ -125,7 +124,7 @@ public class FileSourceDto {
}
}
- public static List<Test> decodeTestData(byte[] binaryData) {
+ public static List<FileSources.Test> decodeTestData(byte[] binaryData) {
// stream is always closed
return decodeTestData(new ByteArrayInputStream(binaryData));
}
@@ -134,15 +133,15 @@ public class FileSourceDto {
* Decompress and deserialize content of column FILE_SOURCES.BINARY_DATA.
* The parameter "input" is always closed by this method.
*/
- public static List<Test> decodeTestData(InputStream binaryInput) {
+ public static List<FileSources.Test> decodeTestData(InputStream binaryInput) {
LZ4BlockInputStream lz4Input = null;
- List<Test> tests = new ArrayList<>();
+ List<FileSources.Test> tests = new ArrayList<>();
try {
lz4Input = new LZ4BlockInputStream(binaryInput);
- Test currentTest;
+ FileSources.Test currentTest;
do {
- currentTest = Test.parseDelimitedFrom(lz4Input);
+ currentTest = FileSources.Test.parseDelimitedFrom(lz4Input);
if (currentTest != null) {
tests.add(currentTest);
}
@@ -156,14 +155,14 @@ public class FileSourceDto {
}
/**
- * Serialize and compress protobuf message {@link org.sonar.server.source.db.FileSourceDb.Data}
+ * Serialize and compress protobuf message {@link org.sonar.db.FileSources.Data}
* in the column BINARY_DATA.
*/
- public static byte[] encodeTestData(List<Test> tests) {
+ public static byte[] encodeTestData(List<FileSources.Test> tests) {
ByteArrayOutputStream byteOutput = new ByteArrayOutputStream();
LZ4BlockOutputStream compressedOutput = new LZ4BlockOutputStream(byteOutput);
try {
- for (Test test : tests) {
+ for (FileSources.Test test : tests) {
test.writeDelimitedTo(compressedOutput);
}
compressedOutput.close();
@@ -176,14 +175,14 @@ public class FileSourceDto {
}
/**
- * Compressed value of serialized protobuf message {@link org.sonar.server.source.db.FileSourceDb.Data}
+ * Compressed value of serialized protobuf message {@link org.sonar.db.FileSources.Data}
*/
public byte[] getBinaryData() {
return binaryData;
}
/**
- * Set compressed value of the protobuf message {@link org.sonar.server.source.db.FileSourceDb.Data}
+ * Set compressed value of the protobuf message {@link org.sonar.db.FileSources.Data}
*/
public FileSourceDto setBinaryData(byte[] data) {
this.binaryData = data;
@@ -191,26 +190,26 @@ public class FileSourceDto {
}
/**
- * Compressed value of serialized protobuf message {@link org.sonar.server.source.db.FileSourceDb.Data}
+ * Compressed value of serialized protobuf message {@link org.sonar.db.FileSources.Data}
*/
- public FileSourceDb.Data getSourceData() {
+ public FileSources.Data getSourceData() {
return decodeSourceData(binaryData);
}
- public FileSourceDto setSourceData(FileSourceDb.Data data) {
+ public FileSourceDto setSourceData(FileSources.Data data) {
this.dataType = Type.SOURCE;
this.binaryData = encodeSourceData(data);
return this;
}
/**
- * Compressed value of serialized protobuf message {@link org.sonar.server.source.db.FileSourceDb.Data}
+ * Compressed value of serialized protobuf message {@link org.sonar.db.FileSources.Data}
*/
- public List<Test> getTestData() {
+ public List<FileSources.Test> getTestData() {
return decodeTestData(binaryData);
}
- public FileSourceDto setTestData(List<Test> data) {
+ public FileSourceDto setTestData(List<FileSources.Test> data) {
this.dataType = Type.TEST;
this.binaryData = encodeTestData(data);
return this;
diff --git a/sonar-db/src/main/java/org/sonar/db/version/v51/FeedFileSourcesBinaryData.java b/sonar-db/src/main/java/org/sonar/db/version/v51/FeedFileSourcesBinaryData.java
index 7e3d5e5ef74..3aa34c9ea96 100644
--- a/sonar-db/src/main/java/org/sonar/db/version/v51/FeedFileSourcesBinaryData.java
+++ b/sonar-db/src/main/java/org/sonar/db/version/v51/FeedFileSourcesBinaryData.java
@@ -38,7 +38,7 @@ import org.sonar.db.version.BaseDataChange;
import org.sonar.db.version.MassUpdate;
import org.sonar.db.version.Select;
import org.sonar.db.version.SqlStatement;
-import org.sonar.server.source.db.FileSourceDb;
+import org.sonar.db.FileSources;
public class FeedFileSourcesBinaryData extends BaseDataChange {
@@ -63,7 +63,7 @@ public class FeedFileSourcesBinaryData extends BaseDataChange {
}
private byte[] toBinary(Long fileSourceId, @Nullable String data) {
- FileSourceDb.Data.Builder dataBuilder = FileSourceDb.Data.newBuilder();
+ FileSources.Data.Builder dataBuilder = FileSources.Data.newBuilder();
CSVParser parser = null;
try {
if (data != null) {
@@ -74,7 +74,7 @@ public class FeedFileSourcesBinaryData extends BaseDataChange {
CSVRecord row = rows.next();
if (row.size() == 16) {
- FileSourceDb.Line.Builder lineBuilder = dataBuilder.addLinesBuilder();
+ FileSources.Line.Builder lineBuilder = dataBuilder.addLinesBuilder();
lineBuilder.setLine(line);
String s = row.get(0);
if (StringUtils.isNotEmpty(s)) {
diff --git a/sonar-db/src/main/protobuf/file_sources.proto b/sonar-db/src/main/protobuf/file_sources.proto
new file mode 100644
index 00000000000..feafa462ea4
--- /dev/null
+++ b/sonar-db/src/main/protobuf/file_sources.proto
@@ -0,0 +1,86 @@
+/*
+ SonarQube, open source software quality management tool.
+ Copyright (C) 2008-2015 SonarSource
+ mailto:contact AT sonarsource DOT com
+
+ SonarQube is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 3 of the License, or (at your option) any later version.
+
+ SonarQube is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public License
+ along with this program; if not, write to the Free Software Foundation,
+ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+*/
+
+// Structure of db column FILE_SOURCES.BINARY_DATA
+
+// Package must not be changed for backward-compatibility
+// with the DB rows inserted in DB before 5.2
+package org.sonar.server.source.db;
+
+// The java package can be changed without breaking compatibility.
+// it impacts only the generated Java code.
+option java_package = "org.sonar.db";
+option optimize_for = SPEED;
+
+message Line {
+ optional int32 line = 1;
+ optional string source = 2;
+
+ // SCM
+ optional string scm_revision = 3;
+ optional string scm_author = 4;
+ optional int64 scm_date = 5;
+
+ // unit tests
+ optional int32 ut_line_hits = 6;
+ optional int32 ut_conditions = 7;
+ optional int32 ut_covered_conditions = 8;
+
+ // integration tests
+ optional int32 it_line_hits = 9;
+ optional int32 it_conditions = 10;
+ optional int32 it_covered_conditions = 11;
+
+ // overall tests
+ optional int32 overall_line_hits = 12;
+ optional int32 overall_conditions = 13;
+ optional int32 overall_covered_conditions = 14;
+
+ optional string highlighting = 15;
+ optional string symbols = 16;
+ repeated int32 duplication = 17 [packed = true];
+}
+
+// TODO should be dropped as it prevents streaming
+message Data {
+ repeated Line lines = 1;
+}
+
+message Test {
+ optional string uuid = 1;
+ optional string name = 2;
+ optional TestStatus status = 3;
+ optional int64 execution_time_ms = 4;
+ optional string stacktrace = 5;
+ optional string msg = 6;
+ repeated CoveredFile covered_file = 7;
+
+ message CoveredFile {
+ optional string file_uuid = 1;
+ repeated int32 covered_line = 2 [packed = true];
+ }
+
+ enum TestStatus {
+ OK = 1;
+ FAILURE = 2;
+ ERROR = 3;
+ SKIPPED = 4;
+ }
+}
diff --git a/sonar-db/src/test/java/org/sonar/db/source/FileSourceDtoTest.java b/sonar-db/src/test/java/org/sonar/db/source/FileSourceDtoTest.java
index 34d78e12779..556de756446 100644
--- a/sonar-db/src/test/java/org/sonar/db/source/FileSourceDtoTest.java
+++ b/sonar-db/src/test/java/org/sonar/db/source/FileSourceDtoTest.java
@@ -23,7 +23,7 @@ package org.sonar.db.source;
import java.util.Arrays;
import java.util.List;
import org.junit.Test;
-import org.sonar.server.source.db.FileSourceDb;
+import org.sonar.db.FileSources;
import static org.assertj.core.api.Assertions.assertThat;
@@ -31,14 +31,13 @@ public class FileSourceDtoTest {
@Test
public void encode_and_decode_test_data() {
- List<FileSourceDb.Test> tests = Arrays.asList(
- FileSourceDb.Test.newBuilder()
+ List<FileSources.Test> tests = Arrays.asList(
+ FileSources.Test.newBuilder()
.setName("name#1")
.build(),
- FileSourceDb.Test.newBuilder()
+ FileSources.Test.newBuilder()
.setName("name#2")
- .build()
- );
+ .build());
FileSourceDto underTest = new FileSourceDto().setTestData(tests);
diff --git a/sonar-db/src/test/java/org/sonar/db/version/v51/FeedFileSourcesBinaryDataTest.java b/sonar-db/src/test/java/org/sonar/db/version/v51/FeedFileSourcesBinaryDataTest.java
index 2bf3bc23004..e9b433f9dee 100644
--- a/sonar-db/src/test/java/org/sonar/db/version/v51/FeedFileSourcesBinaryDataTest.java
+++ b/sonar-db/src/test/java/org/sonar/db/version/v51/FeedFileSourcesBinaryDataTest.java
@@ -30,9 +30,9 @@ import org.junit.Test;
import org.junit.rules.ExpectedException;
import org.sonar.api.utils.System2;
import org.sonar.db.DbTester;
+import org.sonar.db.FileSources;
import org.sonar.db.source.FileSourceDto;
import org.sonar.db.version.MigrationStep;
-import org.sonar.server.source.db.FileSourceDb;
import static org.assertj.core.api.Assertions.assertThat;
@@ -55,7 +55,7 @@ public class FeedFileSourcesBinaryDataTest {
assertThat(count).isEqualTo(3);
try (Connection connection = db.openConnection()) {
- FileSourceDb.Data data = selectData(connection, 1L);
+ FileSources.Data data = selectData(connection, 1L);
assertThat(data.getLinesCount()).isEqualTo(4);
assertThat(data.getLines(0).getScmRevision()).isEqualTo("aef12a");
@@ -80,7 +80,7 @@ public class FeedFileSourcesBinaryDataTest {
migration.execute();
}
- private FileSourceDb.Data selectData(Connection connection, long fileSourceId) throws SQLException {
+ private FileSources.Data selectData(Connection connection, long fileSourceId) throws SQLException {
PreparedStatement pstmt = connection.prepareStatement("select binary_data from file_sources where id=?");
ResultSet rs = null;
try {