aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-batch-protocol/src
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2015-02-03 23:06:45 +0100
committerSimon Brandhof <simon.brandhof@sonarsource.com>2015-02-10 14:05:59 +0100
commit605a62f9e0342e63b55b50e76db3260dee1ef748 (patch)
tree798721d3f9b4af5df1eda911f37353a317deab44 /sonar-batch-protocol/src
parente1104eb967ad973c40ac2ae7f50732aaef0cc734 (diff)
downloadsonarqube-605a62f9e0342e63b55b50e76db3260dee1ef748.tar.gz
sonarqube-605a62f9e0342e63b55b50e76db3260dee1ef748.zip
SONAR-2570 compress db table FILE_SOURCES
Diffstat (limited to 'sonar-batch-protocol/src')
-rw-r--r--sonar-batch-protocol/src/main/gen-java/org/sonar/server/source/db/FileSourceDb.java3008
-rw-r--r--sonar-batch-protocol/src/main/protobuf/file_source_db.proto72
2 files changed, 3080 insertions, 0 deletions
diff --git a/sonar-batch-protocol/src/main/gen-java/org/sonar/server/source/db/FileSourceDb.java b/sonar-batch-protocol/src/main/gen-java/org/sonar/server/source/db/FileSourceDb.java
new file mode 100644
index 00000000000..f3f9db893b2
--- /dev/null
+++ b/sonar-batch-protocol/src/main/gen-java/org/sonar/server/source/db/FileSourceDb.java
@@ -0,0 +1,3008 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: file_source_db.proto
+
+package org.sonar.server.source.db;
+
+public final class FileSourceDb {
+ private FileSourceDb() {}
+ 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 testing
+ * </pre>
+ */
+ boolean hasUtLineHits();
+ /**
+ * <code>optional int32 ut_line_hits = 6;</code>
+ *
+ * <pre>
+ * unit testing
+ * </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 testing
+ * </pre>
+ */
+ boolean hasItLineHits();
+ /**
+ * <code>optional int32 it_line_hits = 9;</code>
+ *
+ * <pre>
+ * integration testing
+ * </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 testing
+ * </pre>
+ */
+ boolean hasOverallLineHits();
+ /**
+ * <code>optional int32 overall_line_hits = 12;</code>
+ *
+ * <pre>
+ * overall testing
+ * </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 duplications = 17;</code>
+ */
+ java.util.List<java.lang.Integer> getDuplicationsList();
+ /**
+ * <code>repeated int32 duplications = 17;</code>
+ */
+ int getDuplicationsCount();
+ /**
+ * <code>repeated int32 duplications = 17;</code>
+ */
+ int getDuplications(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)) {
+ duplications_ = new java.util.ArrayList<java.lang.Integer>();
+ mutable_bitField0_ |= 0x00010000;
+ }
+ duplications_.add(input.readInt32());
+ break;
+ }
+ case 138: {
+ int length = input.readRawVarint32();
+ int limit = input.pushLimit(length);
+ if (!((mutable_bitField0_ & 0x00010000) == 0x00010000) && input.getBytesUntilLimit() > 0) {
+ duplications_ = new java.util.ArrayList<java.lang.Integer>();
+ mutable_bitField0_ |= 0x00010000;
+ }
+ while (input.getBytesUntilLimit() > 0) {
+ duplications_.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)) {
+ duplications_ = java.util.Collections.unmodifiableList(duplications_);
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.sonar.server.source.db.FileSourceDb.internal_static_org_sonar_server_source_db_Line_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.sonar.server.source.db.FileSourceDb.internal_static_org_sonar_server_source_db_Line_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.sonar.server.source.db.FileSourceDb.Line.class, org.sonar.server.source.db.FileSourceDb.Line.Builder.class);
+ }
+
+ 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 testing
+ * </pre>
+ */
+ public boolean hasUtLineHits() {
+ return ((bitField0_ & 0x00000020) == 0x00000020);
+ }
+ /**
+ * <code>optional int32 ut_line_hits = 6;</code>
+ *
+ * <pre>
+ * unit testing
+ * </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 testing
+ * </pre>
+ */
+ public boolean hasItLineHits() {
+ return ((bitField0_ & 0x00000100) == 0x00000100);
+ }
+ /**
+ * <code>optional int32 it_line_hits = 9;</code>
+ *
+ * <pre>
+ * integration testing
+ * </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 testing
+ * </pre>
+ */
+ public boolean hasOverallLineHits() {
+ return ((bitField0_ & 0x00000800) == 0x00000800);
+ }
+ /**
+ * <code>optional int32 overall_line_hits = 12;</code>
+ *
+ * <pre>
+ * overall testing
+ * </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 DUPLICATIONS_FIELD_NUMBER = 17;
+ private java.util.List<java.lang.Integer> duplications_;
+ /**
+ * <code>repeated int32 duplications = 17;</code>
+ */
+ public java.util.List<java.lang.Integer>
+ getDuplicationsList() {
+ return duplications_;
+ }
+ /**
+ * <code>repeated int32 duplications = 17;</code>
+ */
+ public int getDuplicationsCount() {
+ return duplications_.size();
+ }
+ /**
+ * <code>repeated int32 duplications = 17;</code>
+ */
+ public int getDuplications(int index) {
+ return duplications_.get(index);
+ }
+
+ 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_ = "";
+ duplications_ = 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());
+ }
+ for (int i = 0; i < duplications_.size(); i++) {
+ output.writeInt32(17, duplications_.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 < duplications_.size(); i++) {
+ dataSize += com.google.protobuf.CodedOutputStream
+ .computeInt32SizeNoTag(duplications_.get(i));
+ }
+ size += dataSize;
+ size += 2 * getDuplicationsList().size();
+ }
+ 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.server.source.db.FileSourceDb.Line parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.sonar.server.source.db.FileSourceDb.Line parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.sonar.server.source.db.FileSourceDb.Line parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.sonar.server.source.db.FileSourceDb.Line parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.sonar.server.source.db.FileSourceDb.Line parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+ public static org.sonar.server.source.db.FileSourceDb.Line parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+ public static org.sonar.server.source.db.FileSourceDb.Line parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input);
+ }
+ public static org.sonar.server.source.db.FileSourceDb.Line parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ }
+ public static org.sonar.server.source.db.FileSourceDb.Line parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+ public static org.sonar.server.source.db.FileSourceDb.Line parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+
+ public static Builder newBuilder() { return Builder.create(); }
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder(org.sonar.server.source.db.FileSourceDb.Line prototype) {
+ return newBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() { return newBuilder(this); }
+
+ @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.server.source.db.FileSourceDb.LineOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.sonar.server.source.db.FileSourceDb.internal_static_org_sonar_server_source_db_Line_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.sonar.server.source.db.FileSourceDb.internal_static_org_sonar_server_source_db_Line_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.sonar.server.source.db.FileSourceDb.Line.class, org.sonar.server.source.db.FileSourceDb.Line.Builder.class);
+ }
+
+ // Construct using org.sonar.server.source.db.FileSourceDb.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);
+ duplications_ = 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.server.source.db.FileSourceDb.internal_static_org_sonar_server_source_db_Line_descriptor;
+ }
+
+ public org.sonar.server.source.db.FileSourceDb.Line getDefaultInstanceForType() {
+ return org.sonar.server.source.db.FileSourceDb.Line.getDefaultInstance();
+ }
+
+ public org.sonar.server.source.db.FileSourceDb.Line build() {
+ org.sonar.server.source.db.FileSourceDb.Line result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ public org.sonar.server.source.db.FileSourceDb.Line buildPartial() {
+ org.sonar.server.source.db.FileSourceDb.Line result = new org.sonar.server.source.db.FileSourceDb.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)) {
+ duplications_ = java.util.Collections.unmodifiableList(duplications_);
+ bitField0_ = (bitField0_ & ~0x00010000);
+ }
+ result.duplications_ = duplications_;
+ result.bitField0_ = to_bitField0_;
+ onBuilt();
+ return result;
+ }
+
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof org.sonar.server.source.db.FileSourceDb.Line) {
+ return mergeFrom((org.sonar.server.source.db.FileSourceDb.Line)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(org.sonar.server.source.db.FileSourceDb.Line other) {
+ if (other == org.sonar.server.source.db.FileSourceDb.Line.getDefaultInstance()) return this;
+ if (other.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.duplications_.isEmpty()) {
+ if (duplications_.isEmpty()) {
+ duplications_ = other.duplications_;
+ bitField0_ = (bitField0_ & ~0x00010000);
+ } else {
+ ensureDuplicationsIsMutable();
+ duplications_.addAll(other.duplications_);
+ }
+ 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.server.source.db.FileSourceDb.Line parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (org.sonar.server.source.db.FileSourceDb.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 testing
+ * </pre>
+ */
+ public boolean hasUtLineHits() {
+ return ((bitField0_ & 0x00000020) == 0x00000020);
+ }
+ /**
+ * <code>optional int32 ut_line_hits = 6;</code>
+ *
+ * <pre>
+ * unit testing
+ * </pre>
+ */
+ public int getUtLineHits() {
+ return utLineHits_;
+ }
+ /**
+ * <code>optional int32 ut_line_hits = 6;</code>
+ *
+ * <pre>
+ * unit testing
+ * </pre>
+ */
+ public Builder setUtLineHits(int value) {
+ bitField0_ |= 0x00000020;
+ utLineHits_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>optional int32 ut_line_hits = 6;</code>
+ *
+ * <pre>
+ * unit testing
+ * </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 testing
+ * </pre>
+ */
+ public boolean hasItLineHits() {
+ return ((bitField0_ & 0x00000100) == 0x00000100);
+ }
+ /**
+ * <code>optional int32 it_line_hits = 9;</code>
+ *
+ * <pre>
+ * integration testing
+ * </pre>
+ */
+ public int getItLineHits() {
+ return itLineHits_;
+ }
+ /**
+ * <code>optional int32 it_line_hits = 9;</code>
+ *
+ * <pre>
+ * integration testing
+ * </pre>
+ */
+ public Builder setItLineHits(int value) {
+ bitField0_ |= 0x00000100;
+ itLineHits_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>optional int32 it_line_hits = 9;</code>
+ *
+ * <pre>
+ * integration testing
+ * </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 testing
+ * </pre>
+ */
+ public boolean hasOverallLineHits() {
+ return ((bitField0_ & 0x00000800) == 0x00000800);
+ }
+ /**
+ * <code>optional int32 overall_line_hits = 12;</code>
+ *
+ * <pre>
+ * overall testing
+ * </pre>
+ */
+ public int getOverallLineHits() {
+ return overallLineHits_;
+ }
+ /**
+ * <code>optional int32 overall_line_hits = 12;</code>
+ *
+ * <pre>
+ * overall testing
+ * </pre>
+ */
+ public Builder setOverallLineHits(int value) {
+ bitField0_ |= 0x00000800;
+ overallLineHits_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>optional int32 overall_line_hits = 12;</code>
+ *
+ * <pre>
+ * overall testing
+ * </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> duplications_ = java.util.Collections.emptyList();
+ private void ensureDuplicationsIsMutable() {
+ if (!((bitField0_ & 0x00010000) == 0x00010000)) {
+ duplications_ = new java.util.ArrayList<java.lang.Integer>(duplications_);
+ bitField0_ |= 0x00010000;
+ }
+ }
+ /**
+ * <code>repeated int32 duplications = 17;</code>
+ */
+ public java.util.List<java.lang.Integer>
+ getDuplicationsList() {
+ return java.util.Collections.unmodifiableList(duplications_);
+ }
+ /**
+ * <code>repeated int32 duplications = 17;</code>
+ */
+ public int getDuplicationsCount() {
+ return duplications_.size();
+ }
+ /**
+ * <code>repeated int32 duplications = 17;</code>
+ */
+ public int getDuplications(int index) {
+ return duplications_.get(index);
+ }
+ /**
+ * <code>repeated int32 duplications = 17;</code>
+ */
+ public Builder setDuplications(
+ int index, int value) {
+ ensureDuplicationsIsMutable();
+ duplications_.set(index, value);
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>repeated int32 duplications = 17;</code>
+ */
+ public Builder addDuplications(int value) {
+ ensureDuplicationsIsMutable();
+ duplications_.add(value);
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>repeated int32 duplications = 17;</code>
+ */
+ public Builder addAllDuplications(
+ java.lang.Iterable<? extends java.lang.Integer> values) {
+ ensureDuplicationsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, duplications_);
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>repeated int32 duplications = 17;</code>
+ */
+ public Builder clearDuplications() {
+ duplications_ = 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.server.source.db.FileSourceDb.Line>
+ getLinesList();
+ /**
+ * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code>
+ */
+ org.sonar.server.source.db.FileSourceDb.Line getLines(int index);
+ /**
+ * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code>
+ */
+ int getLinesCount();
+ /**
+ * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code>
+ */
+ java.util.List<? extends org.sonar.server.source.db.FileSourceDb.LineOrBuilder>
+ getLinesOrBuilderList();
+ /**
+ * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code>
+ */
+ org.sonar.server.source.db.FileSourceDb.LineOrBuilder getLinesOrBuilder(
+ int index);
+ }
+ /**
+ * Protobuf type {@code org.sonar.server.source.db.Data}
+ */
+ public static final class Data extends
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:org.sonar.server.source.db.Data)
+ DataOrBuilder {
+ // 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.server.source.db.FileSourceDb.Line>();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ lines_.add(input.readMessage(org.sonar.server.source.db.FileSourceDb.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.server.source.db.FileSourceDb.internal_static_org_sonar_server_source_db_Data_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.sonar.server.source.db.FileSourceDb.internal_static_org_sonar_server_source_db_Data_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.sonar.server.source.db.FileSourceDb.Data.class, org.sonar.server.source.db.FileSourceDb.Data.Builder.class);
+ }
+
+ 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.server.source.db.FileSourceDb.Line> lines_;
+ /**
+ * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code>
+ */
+ public java.util.List<org.sonar.server.source.db.FileSourceDb.Line> getLinesList() {
+ return lines_;
+ }
+ /**
+ * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code>
+ */
+ public java.util.List<? extends org.sonar.server.source.db.FileSourceDb.LineOrBuilder>
+ getLinesOrBuilderList() {
+ return lines_;
+ }
+ /**
+ * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code>
+ */
+ public int getLinesCount() {
+ return lines_.size();
+ }
+ /**
+ * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code>
+ */
+ public org.sonar.server.source.db.FileSourceDb.Line getLines(int index) {
+ return lines_.get(index);
+ }
+ /**
+ * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code>
+ */
+ public org.sonar.server.source.db.FileSourceDb.LineOrBuilder getLinesOrBuilder(
+ int index) {
+ 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.server.source.db.FileSourceDb.Data parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.sonar.server.source.db.FileSourceDb.Data parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.sonar.server.source.db.FileSourceDb.Data parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.sonar.server.source.db.FileSourceDb.Data parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.sonar.server.source.db.FileSourceDb.Data parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+ public static org.sonar.server.source.db.FileSourceDb.Data parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+ public static org.sonar.server.source.db.FileSourceDb.Data parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input);
+ }
+ public static org.sonar.server.source.db.FileSourceDb.Data parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ }
+ public static org.sonar.server.source.db.FileSourceDb.Data parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+ public static org.sonar.server.source.db.FileSourceDb.Data parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+
+ public static Builder newBuilder() { return Builder.create(); }
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder(org.sonar.server.source.db.FileSourceDb.Data prototype) {
+ return newBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() { return newBuilder(this); }
+
+ @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}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:org.sonar.server.source.db.Data)
+ org.sonar.server.source.db.FileSourceDb.DataOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.sonar.server.source.db.FileSourceDb.internal_static_org_sonar_server_source_db_Data_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.sonar.server.source.db.FileSourceDb.internal_static_org_sonar_server_source_db_Data_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.sonar.server.source.db.FileSourceDb.Data.class, org.sonar.server.source.db.FileSourceDb.Data.Builder.class);
+ }
+
+ // Construct using org.sonar.server.source.db.FileSourceDb.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.server.source.db.FileSourceDb.internal_static_org_sonar_server_source_db_Data_descriptor;
+ }
+
+ public org.sonar.server.source.db.FileSourceDb.Data getDefaultInstanceForType() {
+ return org.sonar.server.source.db.FileSourceDb.Data.getDefaultInstance();
+ }
+
+ public org.sonar.server.source.db.FileSourceDb.Data build() {
+ org.sonar.server.source.db.FileSourceDb.Data result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ public org.sonar.server.source.db.FileSourceDb.Data buildPartial() {
+ org.sonar.server.source.db.FileSourceDb.Data result = new org.sonar.server.source.db.FileSourceDb.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.server.source.db.FileSourceDb.Data) {
+ return mergeFrom((org.sonar.server.source.db.FileSourceDb.Data)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(org.sonar.server.source.db.FileSourceDb.Data other) {
+ if (other == org.sonar.server.source.db.FileSourceDb.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.server.source.db.FileSourceDb.Data parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (org.sonar.server.source.db.FileSourceDb.Data) e.getUnfinishedMessage();
+ throw e;
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+ private int bitField0_;
+
+ private java.util.List<org.sonar.server.source.db.FileSourceDb.Line> lines_ =
+ java.util.Collections.emptyList();
+ private void ensureLinesIsMutable() {
+ if (!((bitField0_ & 0x00000001) == 0x00000001)) {
+ lines_ = new java.util.ArrayList<org.sonar.server.source.db.FileSourceDb.Line>(lines_);
+ bitField0_ |= 0x00000001;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilder<
+ org.sonar.server.source.db.FileSourceDb.Line, org.sonar.server.source.db.FileSourceDb.Line.Builder, org.sonar.server.source.db.FileSourceDb.LineOrBuilder> linesBuilder_;
+
+ /**
+ * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code>
+ */
+ public java.util.List<org.sonar.server.source.db.FileSourceDb.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.server.source.db.FileSourceDb.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.server.source.db.FileSourceDb.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.server.source.db.FileSourceDb.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.server.source.db.FileSourceDb.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.server.source.db.FileSourceDb.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.server.source.db.FileSourceDb.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.server.source.db.FileSourceDb.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.server.source.db.FileSourceDb.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.server.source.db.FileSourceDb.Line.Builder getLinesBuilder(
+ int index) {
+ return getLinesFieldBuilder().getBuilder(index);
+ }
+ /**
+ * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code>
+ */
+ public org.sonar.server.source.db.FileSourceDb.LineOrBuilder getLinesOrBuilder(
+ int index) {
+ 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.server.source.db.FileSourceDb.LineOrBuilder>
+ getLinesOrBuilderList() {
+ if (linesBuilder_ != null) {
+ return linesBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(lines_);
+ }
+ }
+ /**
+ * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code>
+ */
+ public org.sonar.server.source.db.FileSourceDb.Line.Builder addLinesBuilder() {
+ return getLinesFieldBuilder().addBuilder(
+ org.sonar.server.source.db.FileSourceDb.Line.getDefaultInstance());
+ }
+ /**
+ * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code>
+ */
+ public org.sonar.server.source.db.FileSourceDb.Line.Builder addLinesBuilder(
+ int index) {
+ return getLinesFieldBuilder().addBuilder(
+ index, org.sonar.server.source.db.FileSourceDb.Line.getDefaultInstance());
+ }
+ /**
+ * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code>
+ */
+ public java.util.List<org.sonar.server.source.db.FileSourceDb.Line.Builder>
+ getLinesBuilderList() {
+ return getLinesFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilder<
+ org.sonar.server.source.db.FileSourceDb.Line, org.sonar.server.source.db.FileSourceDb.Line.Builder, org.sonar.server.source.db.FileSourceDb.LineOrBuilder>
+ getLinesFieldBuilder() {
+ if (linesBuilder_ == null) {
+ linesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
+ org.sonar.server.source.db.FileSourceDb.Line, org.sonar.server.source.db.FileSourceDb.Line.Builder, org.sonar.server.source.db.FileSourceDb.LineOrBuilder>(
+ lines_,
+ ((bitField0_ & 0x00000001) == 0x00000001),
+ getParentForChildren(),
+ isClean());
+ 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)
+ }
+
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_org_sonar_server_source_db_Line_descriptor;
+ private static
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_org_sonar_server_source_db_Line_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_org_sonar_server_source_db_Data_descriptor;
+ private static
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_org_sonar_server_source_db_Data_fieldAccessorTable;
+
+ public static com.google.protobuf.Descriptors.FileDescriptor
+ getDescriptor() {
+ return descriptor;
+ }
+ private static com.google.protobuf.Descriptors.FileDescriptor
+ descriptor;
+ static {
+ java.lang.String[] descriptorData = {
+ "\n\024file_source_db.proto\022\032org.sonar.server" +
+ ".source.db\"\220\003\n\004Line\022\014\n\004line\030\001 \001(\005\022\016\n\006sou" +
+ "rce\030\002 \001(\t\022\024\n\014scm_revision\030\003 \001(\t\022\022\n\nscm_a" +
+ "uthor\030\004 \001(\t\022\020\n\010scm_date\030\005 \001(\003\022\024\n\014ut_line" +
+ "_hits\030\006 \001(\005\022\025\n\rut_conditions\030\007 \001(\005\022\035\n\025ut" +
+ "_covered_conditions\030\010 \001(\005\022\024\n\014it_line_hit" +
+ "s\030\t \001(\005\022\025\n\rit_conditions\030\n \001(\005\022\035\n\025it_cov" +
+ "ered_conditions\030\013 \001(\005\022\031\n\021overall_line_hi" +
+ "ts\030\014 \001(\005\022\032\n\022overall_conditions\030\r \001(\005\022\"\n\032" +
+ "overall_covered_conditions\030\016 \001(\005\022\024\n\014high",
+ "lighting\030\017 \001(\t\022\017\n\007symbols\030\020 \001(\t\022\024\n\014dupli" +
+ "cations\030\021 \003(\005\"7\n\004Data\022/\n\005lines\030\001 \003(\0132 .o" +
+ "rg.sonar.server.source.db.LineB\002H\001"
+ };
+ com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
+ new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
+ public com.google.protobuf.ExtensionRegistry assignDescriptors(
+ com.google.protobuf.Descriptors.FileDescriptor root) {
+ descriptor = root;
+ return null;
+ }
+ };
+ com.google.protobuf.Descriptors.FileDescriptor
+ .internalBuildGeneratedFileFrom(descriptorData,
+ new com.google.protobuf.Descriptors.FileDescriptor[] {
+ }, assigner);
+ internal_static_org_sonar_server_source_db_Line_descriptor =
+ getDescriptor().getMessageTypes().get(0);
+ internal_static_org_sonar_server_source_db_Line_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_org_sonar_server_source_db_Line_descriptor,
+ new java.lang.String[] { "Line", "Source", "ScmRevision", "ScmAuthor", "ScmDate", "UtLineHits", "UtConditions", "UtCoveredConditions", "ItLineHits", "ItConditions", "ItCoveredConditions", "OverallLineHits", "OverallConditions", "OverallCoveredConditions", "Highlighting", "Symbols", "Duplications", });
+ internal_static_org_sonar_server_source_db_Data_descriptor =
+ getDescriptor().getMessageTypes().get(1);
+ internal_static_org_sonar_server_source_db_Data_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_org_sonar_server_source_db_Data_descriptor,
+ new java.lang.String[] { "Lines", });
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/sonar-batch-protocol/src/main/protobuf/file_source_db.proto b/sonar-batch-protocol/src/main/protobuf/file_source_db.proto
new file mode 100644
index 00000000000..bdb0b877949
--- /dev/null
+++ b/sonar-batch-protocol/src/main/protobuf/file_source_db.proto
@@ -0,0 +1,72 @@
+/*
+ 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.
+*/
+
+/*
+Notes
+
+ - "required" fields are not used as recommended by Google to keep forward-compatibility:
+ https://developers.google.com/protocol-buffers/docs/proto#simple
+
+ - the related Java files are not generated during build. Indeed the existing protoc maven
+ plugins require protobuf to be installed on boxes. That means that generated Java files
+ are updated and committed for each change (see src/main/gen-java).
+*/
+
+// structure of db column FILE_SOURCES.BINARY_DATA
+
+// Temporarily in sonar-batch-protocol as this db table
+// is still fed on batch-side. However generated sources
+// are already in correct package
+
+package org.sonar.server.source.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 duplications = 17;
+}
+
+message Data {
+ repeated Line lines = 1;
+}