summaryrefslogtreecommitdiffstats
path: root/sonar-batch-protocol
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-batch-protocol
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-batch-protocol')
-rw-r--r--sonar-batch-protocol/src/main/gen-java/org/sonar/server/source/db/FileSourceDb.java5262
-rw-r--r--sonar-batch-protocol/src/main/gen-java/org/sonar/server/source/db/FileSourceTestDb.java3434
-rw-r--r--sonar-batch-protocol/src/main/protobuf/file_source_db.proto95
3 files changed, 0 insertions, 8791 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
deleted file mode 100644
index afc771a998f..00000000000
--- a/sonar-batch-protocol/src/main/gen-java/org/sonar/server/source/db/FileSourceDb.java
+++ /dev/null
@@ -1,5262 +0,0 @@
-// 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 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.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 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.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);
- 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.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)) {
- 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.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.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.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 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.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)
- }
-
- 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.server.source.db.FileSourceDb.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.server.source.db.FileSourceDb.Test.CoveredFile>
- getCoveredFileList();
- /**
- * <code>repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7;</code>
- */
- org.sonar.server.source.db.FileSourceDb.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.server.source.db.FileSourceDb.Test.CoveredFileOrBuilder>
- getCoveredFileOrBuilderList();
- /**
- * <code>repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7;</code>
- */
- org.sonar.server.source.db.FileSourceDb.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.server.source.db.FileSourceDb.Test.TestStatus value = org.sonar.server.source.db.FileSourceDb.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.server.source.db.FileSourceDb.Test.CoveredFile>();
- mutable_bitField0_ |= 0x00000040;
- }
- coveredFile_.add(input.readMessage(org.sonar.server.source.db.FileSourceDb.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.server.source.db.FileSourceDb.internal_static_org_sonar_server_source_db_Test_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.sonar.server.source.db.FileSourceDb.internal_static_org_sonar_server_source_db_Test_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- org.sonar.server.source.db.FileSourceDb.Test.class, org.sonar.server.source.db.FileSourceDb.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.server.source.db.FileSourceDb.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.server.source.db.FileSourceDb.internal_static_org_sonar_server_source_db_Test_CoveredFile_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.sonar.server.source.db.FileSourceDb.internal_static_org_sonar_server_source_db_Test_CoveredFile_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- org.sonar.server.source.db.FileSourceDb.Test.CoveredFile.class, org.sonar.server.source.db.FileSourceDb.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.server.source.db.FileSourceDb.Test.CoveredFile parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.sonar.server.source.db.FileSourceDb.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.server.source.db.FileSourceDb.Test.CoveredFile parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.sonar.server.source.db.FileSourceDb.Test.CoveredFile 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.Test.CoveredFile parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
- public static org.sonar.server.source.db.FileSourceDb.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.server.source.db.FileSourceDb.Test.CoveredFile parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
- }
- public static org.sonar.server.source.db.FileSourceDb.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.server.source.db.FileSourceDb.Test.CoveredFile parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
- public static org.sonar.server.source.db.FileSourceDb.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.server.source.db.FileSourceDb.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.server.source.db.FileSourceDb.Test.CoveredFileOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.sonar.server.source.db.FileSourceDb.internal_static_org_sonar_server_source_db_Test_CoveredFile_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.sonar.server.source.db.FileSourceDb.internal_static_org_sonar_server_source_db_Test_CoveredFile_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- org.sonar.server.source.db.FileSourceDb.Test.CoveredFile.class, org.sonar.server.source.db.FileSourceDb.Test.CoveredFile.Builder.class);
- }
-
- // Construct using org.sonar.server.source.db.FileSourceDb.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.server.source.db.FileSourceDb.internal_static_org_sonar_server_source_db_Test_CoveredFile_descriptor;
- }
-
- public org.sonar.server.source.db.FileSourceDb.Test.CoveredFile getDefaultInstanceForType() {
- return org.sonar.server.source.db.FileSourceDb.Test.CoveredFile.getDefaultInstance();
- }
-
- public org.sonar.server.source.db.FileSourceDb.Test.CoveredFile build() {
- org.sonar.server.source.db.FileSourceDb.Test.CoveredFile result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- public org.sonar.server.source.db.FileSourceDb.Test.CoveredFile buildPartial() {
- org.sonar.server.source.db.FileSourceDb.Test.CoveredFile result = new org.sonar.server.source.db.FileSourceDb.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.server.source.db.FileSourceDb.Test.CoveredFile) {
- return mergeFrom((org.sonar.server.source.db.FileSourceDb.Test.CoveredFile)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(org.sonar.server.source.db.FileSourceDb.Test.CoveredFile other) {
- if (other == org.sonar.server.source.db.FileSourceDb.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.server.source.db.FileSourceDb.Test.CoveredFile parsedMessage = null;
- try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (org.sonar.server.source.db.FileSourceDb.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.server.source.db.FileSourceDb.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.server.source.db.FileSourceDb.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.server.source.db.FileSourceDb.Test.CoveredFile> coveredFile_;
- /**
- * <code>repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7;</code>
- */
- public java.util.List<org.sonar.server.source.db.FileSourceDb.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.server.source.db.FileSourceDb.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.server.source.db.FileSourceDb.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.server.source.db.FileSourceDb.Test.CoveredFileOrBuilder getCoveredFileOrBuilder(
- int index) {
- return coveredFile_.get(index);
- }
-
- private void initFields() {
- uuid_ = "";
- name_ = "";
- status_ = org.sonar.server.source.db.FileSourceDb.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.server.source.db.FileSourceDb.Test parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.sonar.server.source.db.FileSourceDb.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.server.source.db.FileSourceDb.Test parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.sonar.server.source.db.FileSourceDb.Test 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.Test parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
- public static org.sonar.server.source.db.FileSourceDb.Test 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.Test parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
- }
- public static org.sonar.server.source.db.FileSourceDb.Test 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.Test parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
- public static org.sonar.server.source.db.FileSourceDb.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.server.source.db.FileSourceDb.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.server.source.db.FileSourceDb.TestOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.sonar.server.source.db.FileSourceDb.internal_static_org_sonar_server_source_db_Test_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.sonar.server.source.db.FileSourceDb.internal_static_org_sonar_server_source_db_Test_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- org.sonar.server.source.db.FileSourceDb.Test.class, org.sonar.server.source.db.FileSourceDb.Test.Builder.class);
- }
-
- // Construct using org.sonar.server.source.db.FileSourceDb.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.server.source.db.FileSourceDb.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.server.source.db.FileSourceDb.internal_static_org_sonar_server_source_db_Test_descriptor;
- }
-
- public org.sonar.server.source.db.FileSourceDb.Test getDefaultInstanceForType() {
- return org.sonar.server.source.db.FileSourceDb.Test.getDefaultInstance();
- }
-
- public org.sonar.server.source.db.FileSourceDb.Test build() {
- org.sonar.server.source.db.FileSourceDb.Test result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- public org.sonar.server.source.db.FileSourceDb.Test buildPartial() {
- org.sonar.server.source.db.FileSourceDb.Test result = new org.sonar.server.source.db.FileSourceDb.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.server.source.db.FileSourceDb.Test) {
- return mergeFrom((org.sonar.server.source.db.FileSourceDb.Test)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(org.sonar.server.source.db.FileSourceDb.Test other) {
- if (other == org.sonar.server.source.db.FileSourceDb.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.server.source.db.FileSourceDb.Test parsedMessage = null;
- try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (org.sonar.server.source.db.FileSourceDb.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.server.source.db.FileSourceDb.Test.TestStatus status_ = org.sonar.server.source.db.FileSourceDb.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.server.source.db.FileSourceDb.Test.TestStatus getStatus() {
- return status_;
- }
- /**
- * <code>optional .org.sonar.server.source.db.Test.TestStatus status = 3;</code>
- */
- public Builder setStatus(org.sonar.server.source.db.FileSourceDb.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.server.source.db.FileSourceDb.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.server.source.db.FileSourceDb.Test.CoveredFile> coveredFile_ =
- java.util.Collections.emptyList();
- private void ensureCoveredFileIsMutable() {
- if (!((bitField0_ & 0x00000040) == 0x00000040)) {
- coveredFile_ = new java.util.ArrayList<org.sonar.server.source.db.FileSourceDb.Test.CoveredFile>(coveredFile_);
- bitField0_ |= 0x00000040;
- }
- }
-
- private com.google.protobuf.RepeatedFieldBuilder<
- org.sonar.server.source.db.FileSourceDb.Test.CoveredFile, org.sonar.server.source.db.FileSourceDb.Test.CoveredFile.Builder, org.sonar.server.source.db.FileSourceDb.Test.CoveredFileOrBuilder> coveredFileBuilder_;
-
- /**
- * <code>repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7;</code>
- */
- public java.util.List<org.sonar.server.source.db.FileSourceDb.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.server.source.db.FileSourceDb.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.server.source.db.FileSourceDb.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.server.source.db.FileSourceDb.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.server.source.db.FileSourceDb.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.server.source.db.FileSourceDb.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.server.source.db.FileSourceDb.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.server.source.db.FileSourceDb.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.server.source.db.FileSourceDb.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.server.source.db.FileSourceDb.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.server.source.db.FileSourceDb.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.server.source.db.FileSourceDb.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.server.source.db.FileSourceDb.Test.CoveredFile.Builder addCoveredFileBuilder() {
- return getCoveredFileFieldBuilder().addBuilder(
- org.sonar.server.source.db.FileSourceDb.Test.CoveredFile.getDefaultInstance());
- }
- /**
- * <code>repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7;</code>
- */
- public org.sonar.server.source.db.FileSourceDb.Test.CoveredFile.Builder addCoveredFileBuilder(
- int index) {
- return getCoveredFileFieldBuilder().addBuilder(
- index, org.sonar.server.source.db.FileSourceDb.Test.CoveredFile.getDefaultInstance());
- }
- /**
- * <code>repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7;</code>
- */
- public java.util.List<org.sonar.server.source.db.FileSourceDb.Test.CoveredFile.Builder>
- getCoveredFileBuilderList() {
- return getCoveredFileFieldBuilder().getBuilderList();
- }
- private com.google.protobuf.RepeatedFieldBuilder<
- org.sonar.server.source.db.FileSourceDb.Test.CoveredFile, org.sonar.server.source.db.FileSourceDb.Test.CoveredFile.Builder, org.sonar.server.source.db.FileSourceDb.Test.CoveredFileOrBuilder>
- getCoveredFileFieldBuilder() {
- if (coveredFileBuilder_ == null) {
- coveredFileBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
- org.sonar.server.source.db.FileSourceDb.Test.CoveredFile, org.sonar.server.source.db.FileSourceDb.Test.CoveredFile.Builder, org.sonar.server.source.db.FileSourceDb.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\024file_source_db.proto\022\032org.sonar.server" +
- ".source.db\"\223\003\n\004Line\022\014\n\004line\030\001 \001(\005\022\016\n\006sou" +
- "rce\030\002 \001(\t\022\024\n\014scm_revision\030\003 \001(\t\022\022\n\nscm_a" +
- "uthor\030\004 \001(\t\022\020\n\010scm_date\030\005 \001(\003\022\024\n\014ut_line" +
- "_hits\030\006 \001(\005\022\025\n\rut_conditions\030\007 \001(\005\022\035\n\025ut" +
- "_covered_conditions\030\010 \001(\005\022\024\n\014it_line_hit" +
- "s\030\t \001(\005\022\025\n\rit_conditions\030\n \001(\005\022\035\n\025it_cov" +
- "ered_conditions\030\013 \001(\005\022\031\n\021overall_line_hi" +
- "ts\030\014 \001(\005\022\032\n\022overall_conditions\030\r \001(\005\022\"\n\032" +
- "overall_covered_conditions\030\016 \001(\005\022\024\n\014high",
- "lighting\030\017 \001(\t\022\017\n\007symbols\030\020 \001(\t\022\027\n\013dupli" +
- "cation\030\021 \003(\005B\002\020\001\"7\n\004Data\022/\n\005lines\030\001 \003(\0132" +
- " .org.sonar.server.source.db.Line\"\326\002\n\004Te" +
- "st\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" +
- ".TestStatus\022\031\n\021execution_time_ms\030\004 \001(\003\022\022" +
- "\n\nstacktrace\030\005 \001(\t\022\013\n\003msg\030\006 \001(\t\022B\n\014cover" +
- "ed_file\030\007 \003(\0132,.org.sonar.server.source." +
- "db.Test.CoveredFile\032:\n\013CoveredFile\022\021\n\tfi" +
- "le_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\005ER" +
- "ROR\020\003\022\013\n\007SKIPPED\020\004B\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", "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-batch-protocol/src/main/gen-java/org/sonar/server/source/db/FileSourceTestDb.java b/sonar-batch-protocol/src/main/gen-java/org/sonar/server/source/db/FileSourceTestDb.java
deleted file mode 100644
index 3fbf75e74c1..00000000000
--- a/sonar-batch-protocol/src/main/gen-java/org/sonar/server/source/db/FileSourceTestDb.java
+++ /dev/null
@@ -1,3434 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: file_source_test_db.proto
-
-package org.sonar.server.source.db;
-
-public final class FileSourceTestDb {
- private FileSourceTestDb() {}
- public static void registerAllExtensions(
- com.google.protobuf.ExtensionRegistry registry) {
- }
- public interface TestOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
-
- // optional string uuid = 1;
- /**
- * <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();
-
- // optional string key = 2;
- /**
- * <code>optional string key = 2;</code>
- */
- boolean hasKey();
- /**
- * <code>optional string key = 2;</code>
- */
- java.lang.String getKey();
- /**
- * <code>optional string key = 2;</code>
- */
- com.google.protobuf.ByteString
- getKeyBytes();
-
- // optional string method_name = 3;
- /**
- * <code>optional string method_name = 3;</code>
- */
- boolean hasMethodName();
- /**
- * <code>optional string method_name = 3;</code>
- */
- java.lang.String getMethodName();
- /**
- * <code>optional string method_name = 3;</code>
- */
- com.google.protobuf.ByteString
- getMethodNameBytes();
-
- // optional string status = 4;
- /**
- * <code>optional string status = 4;</code>
- */
- boolean hasStatus();
- /**
- * <code>optional string status = 4;</code>
- */
- java.lang.String getStatus();
- /**
- * <code>optional string status = 4;</code>
- */
- com.google.protobuf.ByteString
- getStatusBytes();
-
- // optional string test_message = 5;
- /**
- * <code>optional string test_message = 5;</code>
- */
- boolean hasTestMessage();
- /**
- * <code>optional string test_message = 5;</code>
- */
- java.lang.String getTestMessage();
- /**
- * <code>optional string test_message = 5;</code>
- */
- com.google.protobuf.ByteString
- getTestMessageBytes();
-
- // optional string type = 6;
- /**
- * <code>optional string type = 6;</code>
- */
- boolean hasType();
- /**
- * <code>optional string type = 6;</code>
- */
- java.lang.String getType();
- /**
- * <code>optional string type = 6;</code>
- */
- com.google.protobuf.ByteString
- getTypeBytes();
-
- // repeated .org.sonar.server.source.db.Test.CoverageBlock coverage_block = 7;
- /**
- * <code>repeated .org.sonar.server.source.db.Test.CoverageBlock coverage_block = 7;</code>
- */
- java.util.List<org.sonar.server.source.db.FileSourceTestDb.Test.CoverageBlock>
- getCoverageBlockList();
- /**
- * <code>repeated .org.sonar.server.source.db.Test.CoverageBlock coverage_block = 7;</code>
- */
- org.sonar.server.source.db.FileSourceTestDb.Test.CoverageBlock getCoverageBlock(int index);
- /**
- * <code>repeated .org.sonar.server.source.db.Test.CoverageBlock coverage_block = 7;</code>
- */
- int getCoverageBlockCount();
- /**
- * <code>repeated .org.sonar.server.source.db.Test.CoverageBlock coverage_block = 7;</code>
- */
- java.util.List<? extends org.sonar.server.source.db.FileSourceTestDb.Test.CoverageBlockOrBuilder>
- getCoverageBlockOrBuilderList();
- /**
- * <code>repeated .org.sonar.server.source.db.Test.CoverageBlock coverage_block = 7;</code>
- */
- org.sonar.server.source.db.FileSourceTestDb.Test.CoverageBlockOrBuilder getCoverageBlockOrBuilder(
- int index);
- }
- /**
- * Protobuf type {@code org.sonar.server.source.db.Test}
- */
- public static final class Test extends
- com.google.protobuf.GeneratedMessage
- implements 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: {
- bitField0_ |= 0x00000001;
- uuid_ = input.readBytes();
- break;
- }
- case 18: {
- bitField0_ |= 0x00000002;
- key_ = input.readBytes();
- break;
- }
- case 26: {
- bitField0_ |= 0x00000004;
- methodName_ = input.readBytes();
- break;
- }
- case 34: {
- bitField0_ |= 0x00000008;
- status_ = input.readBytes();
- break;
- }
- case 42: {
- bitField0_ |= 0x00000010;
- testMessage_ = input.readBytes();
- break;
- }
- case 50: {
- bitField0_ |= 0x00000020;
- type_ = input.readBytes();
- break;
- }
- case 58: {
- if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
- coverageBlock_ = new java.util.ArrayList<>();
- mutable_bitField0_ |= 0x00000040;
- }
- coverageBlock_.add(input.readMessage(org.sonar.server.source.db.FileSourceTestDb.Test.CoverageBlock.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)) {
- coverageBlock_ = java.util.Collections.unmodifiableList(coverageBlock_);
- }
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.sonar.server.source.db.FileSourceTestDb.internal_static_org_sonar_server_source_db_Test_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.sonar.server.source.db.FileSourceTestDb.internal_static_org_sonar_server_source_db_Test_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- org.sonar.server.source.db.FileSourceTestDb.Test.class, org.sonar.server.source.db.FileSourceTestDb.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;
- }
-
- public interface CoverageBlockOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
-
- // optional string uuid = 1;
- /**
- * <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();
-
- // optional string key = 2;
- /**
- * <code>optional string key = 2;</code>
- *
- * <pre>
- *TODO TBE - should the key and long_name specified directly ?
- * </pre>
- */
- boolean hasKey();
- /**
- * <code>optional string key = 2;</code>
- *
- * <pre>
- *TODO TBE - should the key and long_name specified directly ?
- * </pre>
- */
- java.lang.String getKey();
- /**
- * <code>optional string key = 2;</code>
- *
- * <pre>
- *TODO TBE - should the key and long_name specified directly ?
- * </pre>
- */
- com.google.protobuf.ByteString
- getKeyBytes();
-
- // optional string long_name = 3;
- /**
- * <code>optional string long_name = 3;</code>
- */
- boolean hasLongName();
- /**
- * <code>optional string long_name = 3;</code>
- */
- java.lang.String getLongName();
- /**
- * <code>optional string long_name = 3;</code>
- */
- com.google.protobuf.ByteString
- getLongNameBytes();
-
- // repeated int32 lines = 4;
- /**
- * <code>repeated int32 lines = 4;</code>
- */
- java.util.List<java.lang.Integer> getLinesList();
- /**
- * <code>repeated int32 lines = 4;</code>
- */
- int getLinesCount();
- /**
- * <code>repeated int32 lines = 4;</code>
- */
- int getLines(int index);
-
- // optional int32 nb_covered_lines = 5;
- /**
- * <code>optional int32 nb_covered_lines = 5;</code>
- */
- boolean hasNbCoveredLines();
- /**
- * <code>optional int32 nb_covered_lines = 5;</code>
- */
- int getNbCoveredLines();
- }
- /**
- * Protobuf type {@code org.sonar.server.source.db.Test.CoverageBlock}
- */
- public static final class CoverageBlock extends
- com.google.protobuf.GeneratedMessage
- implements CoverageBlockOrBuilder {
- // Use CoverageBlock.newBuilder() to construct.
- private CoverageBlock(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
- super(builder);
- this.unknownFields = builder.getUnknownFields();
- }
- private CoverageBlock(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final CoverageBlock defaultInstance;
- public static CoverageBlock getDefaultInstance() {
- return defaultInstance;
- }
-
- public CoverageBlock getDefaultInstanceForType() {
- return defaultInstance;
- }
-
- private final com.google.protobuf.UnknownFieldSet unknownFields;
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private CoverageBlock(
- 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: {
- bitField0_ |= 0x00000001;
- uuid_ = input.readBytes();
- break;
- }
- case 18: {
- bitField0_ |= 0x00000002;
- key_ = input.readBytes();
- break;
- }
- case 26: {
- bitField0_ |= 0x00000004;
- longName_ = input.readBytes();
- break;
- }
- case 32: {
- if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
- lines_ = new java.util.ArrayList<>();
- mutable_bitField0_ |= 0x00000008;
- }
- lines_.add(input.readInt32());
- break;
- }
- case 34: {
- int length = input.readRawVarint32();
- int limit = input.pushLimit(length);
- if (!((mutable_bitField0_ & 0x00000008) == 0x00000008) && input.getBytesUntilLimit() > 0) {
- lines_ = new java.util.ArrayList<>();
- mutable_bitField0_ |= 0x00000008;
- }
- while (input.getBytesUntilLimit() > 0) {
- lines_.add(input.readInt32());
- }
- input.popLimit(limit);
- break;
- }
- case 40: {
- bitField0_ |= 0x00000008;
- nbCoveredLines_ = input.readInt32();
- 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_ & 0x00000008) == 0x00000008)) {
- 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.FileSourceTestDb.internal_static_org_sonar_server_source_db_Test_CoverageBlock_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.sonar.server.source.db.FileSourceTestDb.internal_static_org_sonar_server_source_db_Test_CoverageBlock_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- org.sonar.server.source.db.FileSourceTestDb.Test.CoverageBlock.class, org.sonar.server.source.db.FileSourceTestDb.Test.CoverageBlock.Builder.class);
- }
-
- public static com.google.protobuf.Parser<CoverageBlock> PARSER =
- new com.google.protobuf.AbstractParser<CoverageBlock>() {
- public CoverageBlock parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new CoverageBlock(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<CoverageBlock> getParserForType() {
- return PARSER;
- }
-
- private int bitField0_;
- // optional string uuid = 1;
- 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;
- }
- }
-
- // optional string key = 2;
- public static final int KEY_FIELD_NUMBER = 2;
- private java.lang.Object key_;
- /**
- * <code>optional string key = 2;</code>
- *
- * <pre>
- *TODO TBE - should the key and long_name specified directly ?
- * </pre>
- */
- public boolean hasKey() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- /**
- * <code>optional string key = 2;</code>
- *
- * <pre>
- *TODO TBE - should the key and long_name specified directly ?
- * </pre>
- */
- public java.lang.String getKey() {
- java.lang.Object ref = key_;
- 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()) {
- key_ = s;
- }
- return s;
- }
- }
- /**
- * <code>optional string key = 2;</code>
- *
- * <pre>
- *TODO TBE - should the key and long_name specified directly ?
- * </pre>
- */
- public com.google.protobuf.ByteString
- getKeyBytes() {
- java.lang.Object ref = key_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- key_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- // optional string long_name = 3;
- public static final int LONG_NAME_FIELD_NUMBER = 3;
- private java.lang.Object longName_;
- /**
- * <code>optional string long_name = 3;</code>
- */
- public boolean hasLongName() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
- }
- /**
- * <code>optional string long_name = 3;</code>
- */
- public java.lang.String getLongName() {
- java.lang.Object ref = longName_;
- 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()) {
- longName_ = s;
- }
- return s;
- }
- }
- /**
- * <code>optional string long_name = 3;</code>
- */
- public com.google.protobuf.ByteString
- getLongNameBytes() {
- java.lang.Object ref = longName_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- longName_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- // repeated int32 lines = 4;
- public static final int LINES_FIELD_NUMBER = 4;
- private java.util.List<java.lang.Integer> lines_;
- /**
- * <code>repeated int32 lines = 4;</code>
- */
- public java.util.List<java.lang.Integer>
- getLinesList() {
- return lines_;
- }
- /**
- * <code>repeated int32 lines = 4;</code>
- */
- public int getLinesCount() {
- return lines_.size();
- }
- /**
- * <code>repeated int32 lines = 4;</code>
- */
- public int getLines(int index) {
- return lines_.get(index);
- }
-
- // optional int32 nb_covered_lines = 5;
- public static final int NB_COVERED_LINES_FIELD_NUMBER = 5;
- private int nbCoveredLines_;
- /**
- * <code>optional int32 nb_covered_lines = 5;</code>
- */
- public boolean hasNbCoveredLines() {
- return ((bitField0_ & 0x00000008) == 0x00000008);
- }
- /**
- * <code>optional int32 nb_covered_lines = 5;</code>
- */
- public int getNbCoveredLines() {
- return nbCoveredLines_;
- }
-
- private void initFields() {
- uuid_ = "";
- key_ = "";
- longName_ = "";
- lines_ = java.util.Collections.emptyList();
- nbCoveredLines_ = 0;
- }
- private byte memoizedIsInitialized = -1;
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
-
- 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, getKeyBytes());
- }
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- output.writeBytes(3, getLongNameBytes());
- }
- for (int i = 0; i < lines_.size(); i++) {
- output.writeInt32(4, lines_.get(i));
- }
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
- output.writeInt32(5, nbCoveredLines_);
- }
- 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, getKeyBytes());
- }
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(3, getLongNameBytes());
- }
- {
- int dataSize = 0;
- for (int i = 0; i < lines_.size(); i++) {
- dataSize += com.google.protobuf.CodedOutputStream
- .computeInt32SizeNoTag(lines_.get(i));
- }
- size += dataSize;
- size += 1 * getLinesList().size();
- }
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(5, nbCoveredLines_);
- }
- 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.FileSourceTestDb.Test.CoverageBlock parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.sonar.server.source.db.FileSourceTestDb.Test.CoverageBlock 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.FileSourceTestDb.Test.CoverageBlock parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.sonar.server.source.db.FileSourceTestDb.Test.CoverageBlock 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.FileSourceTestDb.Test.CoverageBlock parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
- public static org.sonar.server.source.db.FileSourceTestDb.Test.CoverageBlock 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.FileSourceTestDb.Test.CoverageBlock parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
- }
- public static org.sonar.server.source.db.FileSourceTestDb.Test.CoverageBlock 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.FileSourceTestDb.Test.CoverageBlock parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
- public static org.sonar.server.source.db.FileSourceTestDb.Test.CoverageBlock 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.FileSourceTestDb.Test.CoverageBlock 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.CoverageBlock}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder>
- implements org.sonar.server.source.db.FileSourceTestDb.Test.CoverageBlockOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.sonar.server.source.db.FileSourceTestDb.internal_static_org_sonar_server_source_db_Test_CoverageBlock_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.sonar.server.source.db.FileSourceTestDb.internal_static_org_sonar_server_source_db_Test_CoverageBlock_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- org.sonar.server.source.db.FileSourceTestDb.Test.CoverageBlock.class, org.sonar.server.source.db.FileSourceTestDb.Test.CoverageBlock.Builder.class);
- }
-
- // Construct using org.sonar.server.source.db.FileSourceTestDb.Test.CoverageBlock.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();
- uuid_ = "";
- bitField0_ = (bitField0_ & ~0x00000001);
- key_ = "";
- bitField0_ = (bitField0_ & ~0x00000002);
- longName_ = "";
- bitField0_ = (bitField0_ & ~0x00000004);
- lines_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000008);
- nbCoveredLines_ = 0;
- bitField0_ = (bitField0_ & ~0x00000010);
- return this;
- }
-
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return org.sonar.server.source.db.FileSourceTestDb.internal_static_org_sonar_server_source_db_Test_CoverageBlock_descriptor;
- }
-
- public org.sonar.server.source.db.FileSourceTestDb.Test.CoverageBlock getDefaultInstanceForType() {
- return org.sonar.server.source.db.FileSourceTestDb.Test.CoverageBlock.getDefaultInstance();
- }
-
- public org.sonar.server.source.db.FileSourceTestDb.Test.CoverageBlock build() {
- org.sonar.server.source.db.FileSourceTestDb.Test.CoverageBlock result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- public org.sonar.server.source.db.FileSourceTestDb.Test.CoverageBlock buildPartial() {
- org.sonar.server.source.db.FileSourceTestDb.Test.CoverageBlock result = new org.sonar.server.source.db.FileSourceTestDb.Test.CoverageBlock(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.key_ = key_;
- if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
- to_bitField0_ |= 0x00000004;
- }
- result.longName_ = longName_;
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
- lines_ = java.util.Collections.unmodifiableList(lines_);
- bitField0_ = (bitField0_ & ~0x00000008);
- }
- result.lines_ = lines_;
- if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
- to_bitField0_ |= 0x00000008;
- }
- result.nbCoveredLines_ = nbCoveredLines_;
- result.bitField0_ = to_bitField0_;
- onBuilt();
- return result;
- }
-
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof org.sonar.server.source.db.FileSourceTestDb.Test.CoverageBlock) {
- return mergeFrom((org.sonar.server.source.db.FileSourceTestDb.Test.CoverageBlock)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(org.sonar.server.source.db.FileSourceTestDb.Test.CoverageBlock other) {
- if (other == org.sonar.server.source.db.FileSourceTestDb.Test.CoverageBlock.getDefaultInstance()) return this;
- if (other.hasUuid()) {
- bitField0_ |= 0x00000001;
- uuid_ = other.uuid_;
- onChanged();
- }
- if (other.hasKey()) {
- bitField0_ |= 0x00000002;
- key_ = other.key_;
- onChanged();
- }
- if (other.hasLongName()) {
- bitField0_ |= 0x00000004;
- longName_ = other.longName_;
- onChanged();
- }
- if (!other.lines_.isEmpty()) {
- if (lines_.isEmpty()) {
- lines_ = other.lines_;
- bitField0_ = (bitField0_ & ~0x00000008);
- } else {
- ensureLinesIsMutable();
- lines_.addAll(other.lines_);
- }
- onChanged();
- }
- if (other.hasNbCoveredLines()) {
- setNbCoveredLines(other.getNbCoveredLines());
- }
- 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.FileSourceTestDb.Test.CoverageBlock parsedMessage = null;
- try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (org.sonar.server.source.db.FileSourceTestDb.Test.CoverageBlock) e.getUnfinishedMessage();
- throw e;
- } finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
- return this;
- }
- private int bitField0_;
-
- // optional string uuid = 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)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- 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;
- }
-
- // optional string key = 2;
- private java.lang.Object key_ = "";
- /**
- * <code>optional string key = 2;</code>
- *
- * <pre>
- *TODO TBE - should the key and long_name specified directly ?
- * </pre>
- */
- public boolean hasKey() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- /**
- * <code>optional string key = 2;</code>
- *
- * <pre>
- *TODO TBE - should the key and long_name specified directly ?
- * </pre>
- */
- public java.lang.String getKey() {
- java.lang.Object ref = key_;
- if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- key_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * <code>optional string key = 2;</code>
- *
- * <pre>
- *TODO TBE - should the key and long_name specified directly ?
- * </pre>
- */
- public com.google.protobuf.ByteString
- getKeyBytes() {
- java.lang.Object ref = key_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- key_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * <code>optional string key = 2;</code>
- *
- * <pre>
- *TODO TBE - should the key and long_name specified directly ?
- * </pre>
- */
- public Builder setKey(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000002;
- key_ = value;
- onChanged();
- return this;
- }
- /**
- * <code>optional string key = 2;</code>
- *
- * <pre>
- *TODO TBE - should the key and long_name specified directly ?
- * </pre>
- */
- public Builder clearKey() {
- bitField0_ = (bitField0_ & ~0x00000002);
- key_ = getDefaultInstance().getKey();
- onChanged();
- return this;
- }
- /**
- * <code>optional string key = 2;</code>
- *
- * <pre>
- *TODO TBE - should the key and long_name specified directly ?
- * </pre>
- */
- public Builder setKeyBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000002;
- key_ = value;
- onChanged();
- return this;
- }
-
- // optional string long_name = 3;
- private java.lang.Object longName_ = "";
- /**
- * <code>optional string long_name = 3;</code>
- */
- public boolean hasLongName() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
- }
- /**
- * <code>optional string long_name = 3;</code>
- */
- public java.lang.String getLongName() {
- java.lang.Object ref = longName_;
- if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- longName_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * <code>optional string long_name = 3;</code>
- */
- public com.google.protobuf.ByteString
- getLongNameBytes() {
- java.lang.Object ref = longName_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- longName_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * <code>optional string long_name = 3;</code>
- */
- public Builder setLongName(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000004;
- longName_ = value;
- onChanged();
- return this;
- }
- /**
- * <code>optional string long_name = 3;</code>
- */
- public Builder clearLongName() {
- bitField0_ = (bitField0_ & ~0x00000004);
- longName_ = getDefaultInstance().getLongName();
- onChanged();
- return this;
- }
- /**
- * <code>optional string long_name = 3;</code>
- */
- public Builder setLongNameBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000004;
- longName_ = value;
- onChanged();
- return this;
- }
-
- // repeated int32 lines = 4;
- private java.util.List<java.lang.Integer> lines_ = java.util.Collections.emptyList();
- private void ensureLinesIsMutable() {
- if (!((bitField0_ & 0x00000008) == 0x00000008)) {
- lines_ = new java.util.ArrayList<>(lines_);
- bitField0_ |= 0x00000008;
- }
- }
- /**
- * <code>repeated int32 lines = 4;</code>
- */
- public java.util.List<java.lang.Integer>
- getLinesList() {
- return java.util.Collections.unmodifiableList(lines_);
- }
- /**
- * <code>repeated int32 lines = 4;</code>
- */
- public int getLinesCount() {
- return lines_.size();
- }
- /**
- * <code>repeated int32 lines = 4;</code>
- */
- public int getLines(int index) {
- return lines_.get(index);
- }
- /**
- * <code>repeated int32 lines = 4;</code>
- */
- public Builder setLines(
- int index, int value) {
- ensureLinesIsMutable();
- lines_.set(index, value);
- onChanged();
- return this;
- }
- /**
- * <code>repeated int32 lines = 4;</code>
- */
- public Builder addLines(int value) {
- ensureLinesIsMutable();
- lines_.add(value);
- onChanged();
- return this;
- }
- /**
- * <code>repeated int32 lines = 4;</code>
- */
- public Builder addAllLines(
- java.lang.Iterable<? extends java.lang.Integer> values) {
- ensureLinesIsMutable();
- super.addAll(values, lines_);
- onChanged();
- return this;
- }
- /**
- * <code>repeated int32 lines = 4;</code>
- */
- public Builder clearLines() {
- lines_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000008);
- onChanged();
- return this;
- }
-
- // optional int32 nb_covered_lines = 5;
- private int nbCoveredLines_ ;
- /**
- * <code>optional int32 nb_covered_lines = 5;</code>
- */
- public boolean hasNbCoveredLines() {
- return ((bitField0_ & 0x00000010) == 0x00000010);
- }
- /**
- * <code>optional int32 nb_covered_lines = 5;</code>
- */
- public int getNbCoveredLines() {
- return nbCoveredLines_;
- }
- /**
- * <code>optional int32 nb_covered_lines = 5;</code>
- */
- public Builder setNbCoveredLines(int value) {
- bitField0_ |= 0x00000010;
- nbCoveredLines_ = value;
- onChanged();
- return this;
- }
- /**
- * <code>optional int32 nb_covered_lines = 5;</code>
- */
- public Builder clearNbCoveredLines() {
- bitField0_ = (bitField0_ & ~0x00000010);
- nbCoveredLines_ = 0;
- onChanged();
- return this;
- }
-
- // @@protoc_insertion_point(builder_scope:org.sonar.server.source.db.Test.CoverageBlock)
- }
-
- static {
- defaultInstance = new CoverageBlock(true);
- defaultInstance.initFields();
- }
-
- // @@protoc_insertion_point(class_scope:org.sonar.server.source.db.Test.CoverageBlock)
- }
-
- private int bitField0_;
- // optional string uuid = 1;
- 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;
- }
- }
-
- // optional string key = 2;
- public static final int KEY_FIELD_NUMBER = 2;
- private java.lang.Object key_;
- /**
- * <code>optional string key = 2;</code>
- */
- public boolean hasKey() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- /**
- * <code>optional string key = 2;</code>
- */
- public java.lang.String getKey() {
- java.lang.Object ref = key_;
- 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()) {
- key_ = s;
- }
- return s;
- }
- }
- /**
- * <code>optional string key = 2;</code>
- */
- public com.google.protobuf.ByteString
- getKeyBytes() {
- java.lang.Object ref = key_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- key_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- // optional string method_name = 3;
- public static final int METHOD_NAME_FIELD_NUMBER = 3;
- private java.lang.Object methodName_;
- /**
- * <code>optional string method_name = 3;</code>
- */
- public boolean hasMethodName() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
- }
- /**
- * <code>optional string method_name = 3;</code>
- */
- public java.lang.String getMethodName() {
- java.lang.Object ref = methodName_;
- 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()) {
- methodName_ = s;
- }
- return s;
- }
- }
- /**
- * <code>optional string method_name = 3;</code>
- */
- public com.google.protobuf.ByteString
- getMethodNameBytes() {
- java.lang.Object ref = methodName_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- methodName_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- // optional string status = 4;
- public static final int STATUS_FIELD_NUMBER = 4;
- private java.lang.Object status_;
- /**
- * <code>optional string status = 4;</code>
- */
- public boolean hasStatus() {
- return ((bitField0_ & 0x00000008) == 0x00000008);
- }
- /**
- * <code>optional string status = 4;</code>
- */
- public java.lang.String getStatus() {
- java.lang.Object ref = status_;
- 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()) {
- status_ = s;
- }
- return s;
- }
- }
- /**
- * <code>optional string status = 4;</code>
- */
- public com.google.protobuf.ByteString
- getStatusBytes() {
- java.lang.Object ref = status_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- status_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- // optional string test_message = 5;
- public static final int TEST_MESSAGE_FIELD_NUMBER = 5;
- private java.lang.Object testMessage_;
- /**
- * <code>optional string test_message = 5;</code>
- */
- public boolean hasTestMessage() {
- return ((bitField0_ & 0x00000010) == 0x00000010);
- }
- /**
- * <code>optional string test_message = 5;</code>
- */
- public java.lang.String getTestMessage() {
- java.lang.Object ref = testMessage_;
- 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()) {
- testMessage_ = s;
- }
- return s;
- }
- }
- /**
- * <code>optional string test_message = 5;</code>
- */
- public com.google.protobuf.ByteString
- getTestMessageBytes() {
- java.lang.Object ref = testMessage_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- testMessage_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- // optional string type = 6;
- public static final int TYPE_FIELD_NUMBER = 6;
- private java.lang.Object type_;
- /**
- * <code>optional string type = 6;</code>
- */
- public boolean hasType() {
- return ((bitField0_ & 0x00000020) == 0x00000020);
- }
- /**
- * <code>optional string type = 6;</code>
- */
- public java.lang.String getType() {
- java.lang.Object ref = type_;
- 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()) {
- type_ = s;
- }
- return s;
- }
- }
- /**
- * <code>optional string type = 6;</code>
- */
- public com.google.protobuf.ByteString
- getTypeBytes() {
- java.lang.Object ref = type_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- type_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- // repeated .org.sonar.server.source.db.Test.CoverageBlock coverage_block = 7;
- public static final int COVERAGE_BLOCK_FIELD_NUMBER = 7;
- private java.util.List<org.sonar.server.source.db.FileSourceTestDb.Test.CoverageBlock> coverageBlock_;
- /**
- * <code>repeated .org.sonar.server.source.db.Test.CoverageBlock coverage_block = 7;</code>
- */
- public java.util.List<org.sonar.server.source.db.FileSourceTestDb.Test.CoverageBlock> getCoverageBlockList() {
- return coverageBlock_;
- }
- /**
- * <code>repeated .org.sonar.server.source.db.Test.CoverageBlock coverage_block = 7;</code>
- */
- public java.util.List<? extends org.sonar.server.source.db.FileSourceTestDb.Test.CoverageBlockOrBuilder>
- getCoverageBlockOrBuilderList() {
- return coverageBlock_;
- }
- /**
- * <code>repeated .org.sonar.server.source.db.Test.CoverageBlock coverage_block = 7;</code>
- */
- public int getCoverageBlockCount() {
- return coverageBlock_.size();
- }
- /**
- * <code>repeated .org.sonar.server.source.db.Test.CoverageBlock coverage_block = 7;</code>
- */
- public org.sonar.server.source.db.FileSourceTestDb.Test.CoverageBlock getCoverageBlock(int index) {
- return coverageBlock_.get(index);
- }
- /**
- * <code>repeated .org.sonar.server.source.db.Test.CoverageBlock coverage_block = 7;</code>
- */
- public org.sonar.server.source.db.FileSourceTestDb.Test.CoverageBlockOrBuilder getCoverageBlockOrBuilder(
- int index) {
- return coverageBlock_.get(index);
- }
-
- private void initFields() {
- uuid_ = "";
- key_ = "";
- methodName_ = "";
- status_ = "";
- testMessage_ = "";
- type_ = "";
- coverageBlock_ = java.util.Collections.emptyList();
- }
- private byte memoizedIsInitialized = -1;
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
-
- 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, getKeyBytes());
- }
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- output.writeBytes(3, getMethodNameBytes());
- }
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
- output.writeBytes(4, getStatusBytes());
- }
- if (((bitField0_ & 0x00000010) == 0x00000010)) {
- output.writeBytes(5, getTestMessageBytes());
- }
- if (((bitField0_ & 0x00000020) == 0x00000020)) {
- output.writeBytes(6, getTypeBytes());
- }
- for (int i = 0; i < coverageBlock_.size(); i++) {
- output.writeMessage(7, coverageBlock_.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, getKeyBytes());
- }
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(3, getMethodNameBytes());
- }
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(4, getStatusBytes());
- }
- if (((bitField0_ & 0x00000010) == 0x00000010)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(5, getTestMessageBytes());
- }
- if (((bitField0_ & 0x00000020) == 0x00000020)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(6, getTypeBytes());
- }
- for (int i = 0; i < coverageBlock_.size(); i++) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(7, coverageBlock_.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.FileSourceTestDb.Test parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.sonar.server.source.db.FileSourceTestDb.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.server.source.db.FileSourceTestDb.Test parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.sonar.server.source.db.FileSourceTestDb.Test 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.FileSourceTestDb.Test parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
- public static org.sonar.server.source.db.FileSourceTestDb.Test 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.FileSourceTestDb.Test parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
- }
- public static org.sonar.server.source.db.FileSourceTestDb.Test 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.FileSourceTestDb.Test parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
- public static org.sonar.server.source.db.FileSourceTestDb.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.server.source.db.FileSourceTestDb.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 org.sonar.server.source.db.FileSourceTestDb.TestOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.sonar.server.source.db.FileSourceTestDb.internal_static_org_sonar_server_source_db_Test_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.sonar.server.source.db.FileSourceTestDb.internal_static_org_sonar_server_source_db_Test_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- org.sonar.server.source.db.FileSourceTestDb.Test.class, org.sonar.server.source.db.FileSourceTestDb.Test.Builder.class);
- }
-
- // Construct using org.sonar.server.source.db.FileSourceTestDb.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) {
- getCoverageBlockFieldBuilder();
- }
- }
- private static Builder create() {
- return new Builder();
- }
-
- public Builder clear() {
- super.clear();
- uuid_ = "";
- bitField0_ = (bitField0_ & ~0x00000001);
- key_ = "";
- bitField0_ = (bitField0_ & ~0x00000002);
- methodName_ = "";
- bitField0_ = (bitField0_ & ~0x00000004);
- status_ = "";
- bitField0_ = (bitField0_ & ~0x00000008);
- testMessage_ = "";
- bitField0_ = (bitField0_ & ~0x00000010);
- type_ = "";
- bitField0_ = (bitField0_ & ~0x00000020);
- if (coverageBlockBuilder_ == null) {
- coverageBlock_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000040);
- } else {
- coverageBlockBuilder_.clear();
- }
- return this;
- }
-
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return org.sonar.server.source.db.FileSourceTestDb.internal_static_org_sonar_server_source_db_Test_descriptor;
- }
-
- public org.sonar.server.source.db.FileSourceTestDb.Test getDefaultInstanceForType() {
- return org.sonar.server.source.db.FileSourceTestDb.Test.getDefaultInstance();
- }
-
- public org.sonar.server.source.db.FileSourceTestDb.Test build() {
- org.sonar.server.source.db.FileSourceTestDb.Test result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- public org.sonar.server.source.db.FileSourceTestDb.Test buildPartial() {
- org.sonar.server.source.db.FileSourceTestDb.Test result = new org.sonar.server.source.db.FileSourceTestDb.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.key_ = key_;
- if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
- to_bitField0_ |= 0x00000004;
- }
- result.methodName_ = methodName_;
- if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
- to_bitField0_ |= 0x00000008;
- }
- result.status_ = status_;
- if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
- to_bitField0_ |= 0x00000010;
- }
- result.testMessage_ = testMessage_;
- if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
- to_bitField0_ |= 0x00000020;
- }
- result.type_ = type_;
- if (coverageBlockBuilder_ == null) {
- if (((bitField0_ & 0x00000040) == 0x00000040)) {
- coverageBlock_ = java.util.Collections.unmodifiableList(coverageBlock_);
- bitField0_ = (bitField0_ & ~0x00000040);
- }
- result.coverageBlock_ = coverageBlock_;
- } else {
- result.coverageBlock_ = coverageBlockBuilder_.build();
- }
- result.bitField0_ = to_bitField0_;
- onBuilt();
- return result;
- }
-
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof org.sonar.server.source.db.FileSourceTestDb.Test) {
- return mergeFrom((org.sonar.server.source.db.FileSourceTestDb.Test)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(org.sonar.server.source.db.FileSourceTestDb.Test other) {
- if (other == org.sonar.server.source.db.FileSourceTestDb.Test.getDefaultInstance()) return this;
- if (other.hasUuid()) {
- bitField0_ |= 0x00000001;
- uuid_ = other.uuid_;
- onChanged();
- }
- if (other.hasKey()) {
- bitField0_ |= 0x00000002;
- key_ = other.key_;
- onChanged();
- }
- if (other.hasMethodName()) {
- bitField0_ |= 0x00000004;
- methodName_ = other.methodName_;
- onChanged();
- }
- if (other.hasStatus()) {
- bitField0_ |= 0x00000008;
- status_ = other.status_;
- onChanged();
- }
- if (other.hasTestMessage()) {
- bitField0_ |= 0x00000010;
- testMessage_ = other.testMessage_;
- onChanged();
- }
- if (other.hasType()) {
- bitField0_ |= 0x00000020;
- type_ = other.type_;
- onChanged();
- }
- if (coverageBlockBuilder_ == null) {
- if (!other.coverageBlock_.isEmpty()) {
- if (coverageBlock_.isEmpty()) {
- coverageBlock_ = other.coverageBlock_;
- bitField0_ = (bitField0_ & ~0x00000040);
- } else {
- ensureCoverageBlockIsMutable();
- coverageBlock_.addAll(other.coverageBlock_);
- }
- onChanged();
- }
- } else {
- if (!other.coverageBlock_.isEmpty()) {
- if (coverageBlockBuilder_.isEmpty()) {
- coverageBlockBuilder_.dispose();
- coverageBlockBuilder_ = null;
- coverageBlock_ = other.coverageBlock_;
- bitField0_ = (bitField0_ & ~0x00000040);
- coverageBlockBuilder_ =
- com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
- getCoverageBlockFieldBuilder() : null;
- } else {
- coverageBlockBuilder_.addAllMessages(other.coverageBlock_);
- }
- }
- }
- 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.FileSourceTestDb.Test parsedMessage = null;
- try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (org.sonar.server.source.db.FileSourceTestDb.Test) e.getUnfinishedMessage();
- throw e;
- } finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
- return this;
- }
- private int bitField0_;
-
- // optional string uuid = 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)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- 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;
- }
-
- // optional string key = 2;
- private java.lang.Object key_ = "";
- /**
- * <code>optional string key = 2;</code>
- */
- public boolean hasKey() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- /**
- * <code>optional string key = 2;</code>
- */
- public java.lang.String getKey() {
- java.lang.Object ref = key_;
- if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- key_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * <code>optional string key = 2;</code>
- */
- public com.google.protobuf.ByteString
- getKeyBytes() {
- java.lang.Object ref = key_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- key_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * <code>optional string key = 2;</code>
- */
- public Builder setKey(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000002;
- key_ = value;
- onChanged();
- return this;
- }
- /**
- * <code>optional string key = 2;</code>
- */
- public Builder clearKey() {
- bitField0_ = (bitField0_ & ~0x00000002);
- key_ = getDefaultInstance().getKey();
- onChanged();
- return this;
- }
- /**
- * <code>optional string key = 2;</code>
- */
- public Builder setKeyBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000002;
- key_ = value;
- onChanged();
- return this;
- }
-
- // optional string method_name = 3;
- private java.lang.Object methodName_ = "";
- /**
- * <code>optional string method_name = 3;</code>
- */
- public boolean hasMethodName() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
- }
- /**
- * <code>optional string method_name = 3;</code>
- */
- public java.lang.String getMethodName() {
- java.lang.Object ref = methodName_;
- if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- methodName_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * <code>optional string method_name = 3;</code>
- */
- public com.google.protobuf.ByteString
- getMethodNameBytes() {
- java.lang.Object ref = methodName_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- methodName_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * <code>optional string method_name = 3;</code>
- */
- public Builder setMethodName(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000004;
- methodName_ = value;
- onChanged();
- return this;
- }
- /**
- * <code>optional string method_name = 3;</code>
- */
- public Builder clearMethodName() {
- bitField0_ = (bitField0_ & ~0x00000004);
- methodName_ = getDefaultInstance().getMethodName();
- onChanged();
- return this;
- }
- /**
- * <code>optional string method_name = 3;</code>
- */
- public Builder setMethodNameBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000004;
- methodName_ = value;
- onChanged();
- return this;
- }
-
- // optional string status = 4;
- private java.lang.Object status_ = "";
- /**
- * <code>optional string status = 4;</code>
- */
- public boolean hasStatus() {
- return ((bitField0_ & 0x00000008) == 0x00000008);
- }
- /**
- * <code>optional string status = 4;</code>
- */
- public java.lang.String getStatus() {
- java.lang.Object ref = status_;
- if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- status_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * <code>optional string status = 4;</code>
- */
- public com.google.protobuf.ByteString
- getStatusBytes() {
- java.lang.Object ref = status_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- status_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * <code>optional string status = 4;</code>
- */
- public Builder setStatus(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000008;
- status_ = value;
- onChanged();
- return this;
- }
- /**
- * <code>optional string status = 4;</code>
- */
- public Builder clearStatus() {
- bitField0_ = (bitField0_ & ~0x00000008);
- status_ = getDefaultInstance().getStatus();
- onChanged();
- return this;
- }
- /**
- * <code>optional string status = 4;</code>
- */
- public Builder setStatusBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000008;
- status_ = value;
- onChanged();
- return this;
- }
-
- // optional string test_message = 5;
- private java.lang.Object testMessage_ = "";
- /**
- * <code>optional string test_message = 5;</code>
- */
- public boolean hasTestMessage() {
- return ((bitField0_ & 0x00000010) == 0x00000010);
- }
- /**
- * <code>optional string test_message = 5;</code>
- */
- public java.lang.String getTestMessage() {
- java.lang.Object ref = testMessage_;
- if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- testMessage_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * <code>optional string test_message = 5;</code>
- */
- public com.google.protobuf.ByteString
- getTestMessageBytes() {
- java.lang.Object ref = testMessage_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- testMessage_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * <code>optional string test_message = 5;</code>
- */
- public Builder setTestMessage(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000010;
- testMessage_ = value;
- onChanged();
- return this;
- }
- /**
- * <code>optional string test_message = 5;</code>
- */
- public Builder clearTestMessage() {
- bitField0_ = (bitField0_ & ~0x00000010);
- testMessage_ = getDefaultInstance().getTestMessage();
- onChanged();
- return this;
- }
- /**
- * <code>optional string test_message = 5;</code>
- */
- public Builder setTestMessageBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000010;
- testMessage_ = value;
- onChanged();
- return this;
- }
-
- // optional string type = 6;
- private java.lang.Object type_ = "";
- /**
- * <code>optional string type = 6;</code>
- */
- public boolean hasType() {
- return ((bitField0_ & 0x00000020) == 0x00000020);
- }
- /**
- * <code>optional string type = 6;</code>
- */
- public java.lang.String getType() {
- java.lang.Object ref = type_;
- if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- type_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * <code>optional string type = 6;</code>
- */
- public com.google.protobuf.ByteString
- getTypeBytes() {
- java.lang.Object ref = type_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- type_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * <code>optional string type = 6;</code>
- */
- public Builder setType(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000020;
- type_ = value;
- onChanged();
- return this;
- }
- /**
- * <code>optional string type = 6;</code>
- */
- public Builder clearType() {
- bitField0_ = (bitField0_ & ~0x00000020);
- type_ = getDefaultInstance().getType();
- onChanged();
- return this;
- }
- /**
- * <code>optional string type = 6;</code>
- */
- public Builder setTypeBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000020;
- type_ = value;
- onChanged();
- return this;
- }
-
- // repeated .org.sonar.server.source.db.Test.CoverageBlock coverage_block = 7;
- private java.util.List<org.sonar.server.source.db.FileSourceTestDb.Test.CoverageBlock> coverageBlock_ =
- java.util.Collections.emptyList();
- private void ensureCoverageBlockIsMutable() {
- if (!((bitField0_ & 0x00000040) == 0x00000040)) {
- coverageBlock_ = new java.util.ArrayList<>(coverageBlock_);
- bitField0_ |= 0x00000040;
- }
- }
-
- private com.google.protobuf.RepeatedFieldBuilder<
- org.sonar.server.source.db.FileSourceTestDb.Test.CoverageBlock, org.sonar.server.source.db.FileSourceTestDb.Test.CoverageBlock.Builder, org.sonar.server.source.db.FileSourceTestDb.Test.CoverageBlockOrBuilder> coverageBlockBuilder_;
-
- /**
- * <code>repeated .org.sonar.server.source.db.Test.CoverageBlock coverage_block = 7;</code>
- */
- public java.util.List<org.sonar.server.source.db.FileSourceTestDb.Test.CoverageBlock> getCoverageBlockList() {
- if (coverageBlockBuilder_ == null) {
- return java.util.Collections.unmodifiableList(coverageBlock_);
- } else {
- return coverageBlockBuilder_.getMessageList();
- }
- }
- /**
- * <code>repeated .org.sonar.server.source.db.Test.CoverageBlock coverage_block = 7;</code>
- */
- public int getCoverageBlockCount() {
- if (coverageBlockBuilder_ == null) {
- return coverageBlock_.size();
- } else {
- return coverageBlockBuilder_.getCount();
- }
- }
- /**
- * <code>repeated .org.sonar.server.source.db.Test.CoverageBlock coverage_block = 7;</code>
- */
- public org.sonar.server.source.db.FileSourceTestDb.Test.CoverageBlock getCoverageBlock(int index) {
- if (coverageBlockBuilder_ == null) {
- return coverageBlock_.get(index);
- } else {
- return coverageBlockBuilder_.getMessage(index);
- }
- }
- /**
- * <code>repeated .org.sonar.server.source.db.Test.CoverageBlock coverage_block = 7;</code>
- */
- public Builder setCoverageBlock(
- int index, org.sonar.server.source.db.FileSourceTestDb.Test.CoverageBlock value) {
- if (coverageBlockBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureCoverageBlockIsMutable();
- coverageBlock_.set(index, value);
- onChanged();
- } else {
- coverageBlockBuilder_.setMessage(index, value);
- }
- return this;
- }
- /**
- * <code>repeated .org.sonar.server.source.db.Test.CoverageBlock coverage_block = 7;</code>
- */
- public Builder setCoverageBlock(
- int index, org.sonar.server.source.db.FileSourceTestDb.Test.CoverageBlock.Builder builderForValue) {
- if (coverageBlockBuilder_ == null) {
- ensureCoverageBlockIsMutable();
- coverageBlock_.set(index, builderForValue.build());
- onChanged();
- } else {
- coverageBlockBuilder_.setMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- * <code>repeated .org.sonar.server.source.db.Test.CoverageBlock coverage_block = 7;</code>
- */
- public Builder addCoverageBlock(org.sonar.server.source.db.FileSourceTestDb.Test.CoverageBlock value) {
- if (coverageBlockBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureCoverageBlockIsMutable();
- coverageBlock_.add(value);
- onChanged();
- } else {
- coverageBlockBuilder_.addMessage(value);
- }
- return this;
- }
- /**
- * <code>repeated .org.sonar.server.source.db.Test.CoverageBlock coverage_block = 7;</code>
- */
- public Builder addCoverageBlock(
- int index, org.sonar.server.source.db.FileSourceTestDb.Test.CoverageBlock value) {
- if (coverageBlockBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureCoverageBlockIsMutable();
- coverageBlock_.add(index, value);
- onChanged();
- } else {
- coverageBlockBuilder_.addMessage(index, value);
- }
- return this;
- }
- /**
- * <code>repeated .org.sonar.server.source.db.Test.CoverageBlock coverage_block = 7;</code>
- */
- public Builder addCoverageBlock(
- org.sonar.server.source.db.FileSourceTestDb.Test.CoverageBlock.Builder builderForValue) {
- if (coverageBlockBuilder_ == null) {
- ensureCoverageBlockIsMutable();
- coverageBlock_.add(builderForValue.build());
- onChanged();
- } else {
- coverageBlockBuilder_.addMessage(builderForValue.build());
- }
- return this;
- }
- /**
- * <code>repeated .org.sonar.server.source.db.Test.CoverageBlock coverage_block = 7;</code>
- */
- public Builder addCoverageBlock(
- int index, org.sonar.server.source.db.FileSourceTestDb.Test.CoverageBlock.Builder builderForValue) {
- if (coverageBlockBuilder_ == null) {
- ensureCoverageBlockIsMutable();
- coverageBlock_.add(index, builderForValue.build());
- onChanged();
- } else {
- coverageBlockBuilder_.addMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- * <code>repeated .org.sonar.server.source.db.Test.CoverageBlock coverage_block = 7;</code>
- */
- public Builder addAllCoverageBlock(
- java.lang.Iterable<? extends org.sonar.server.source.db.FileSourceTestDb.Test.CoverageBlock> values) {
- if (coverageBlockBuilder_ == null) {
- ensureCoverageBlockIsMutable();
- super.addAll(values, coverageBlock_);
- onChanged();
- } else {
- coverageBlockBuilder_.addAllMessages(values);
- }
- return this;
- }
- /**
- * <code>repeated .org.sonar.server.source.db.Test.CoverageBlock coverage_block = 7;</code>
- */
- public Builder clearCoverageBlock() {
- if (coverageBlockBuilder_ == null) {
- coverageBlock_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000040);
- onChanged();
- } else {
- coverageBlockBuilder_.clear();
- }
- return this;
- }
- /**
- * <code>repeated .org.sonar.server.source.db.Test.CoverageBlock coverage_block = 7;</code>
- */
- public Builder removeCoverageBlock(int index) {
- if (coverageBlockBuilder_ == null) {
- ensureCoverageBlockIsMutable();
- coverageBlock_.remove(index);
- onChanged();
- } else {
- coverageBlockBuilder_.remove(index);
- }
- return this;
- }
- /**
- * <code>repeated .org.sonar.server.source.db.Test.CoverageBlock coverage_block = 7;</code>
- */
- public org.sonar.server.source.db.FileSourceTestDb.Test.CoverageBlock.Builder getCoverageBlockBuilder(
- int index) {
- return getCoverageBlockFieldBuilder().getBuilder(index);
- }
- /**
- * <code>repeated .org.sonar.server.source.db.Test.CoverageBlock coverage_block = 7;</code>
- */
- public org.sonar.server.source.db.FileSourceTestDb.Test.CoverageBlockOrBuilder getCoverageBlockOrBuilder(
- int index) {
- if (coverageBlockBuilder_ == null) {
- return coverageBlock_.get(index); } else {
- return coverageBlockBuilder_.getMessageOrBuilder(index);
- }
- }
- /**
- * <code>repeated .org.sonar.server.source.db.Test.CoverageBlock coverage_block = 7;</code>
- */
- public java.util.List<? extends org.sonar.server.source.db.FileSourceTestDb.Test.CoverageBlockOrBuilder>
- getCoverageBlockOrBuilderList() {
- if (coverageBlockBuilder_ != null) {
- return coverageBlockBuilder_.getMessageOrBuilderList();
- } else {
- return java.util.Collections.unmodifiableList(coverageBlock_);
- }
- }
- /**
- * <code>repeated .org.sonar.server.source.db.Test.CoverageBlock coverage_block = 7;</code>
- */
- public org.sonar.server.source.db.FileSourceTestDb.Test.CoverageBlock.Builder addCoverageBlockBuilder() {
- return getCoverageBlockFieldBuilder().addBuilder(
- org.sonar.server.source.db.FileSourceTestDb.Test.CoverageBlock.getDefaultInstance());
- }
- /**
- * <code>repeated .org.sonar.server.source.db.Test.CoverageBlock coverage_block = 7;</code>
- */
- public org.sonar.server.source.db.FileSourceTestDb.Test.CoverageBlock.Builder addCoverageBlockBuilder(
- int index) {
- return getCoverageBlockFieldBuilder().addBuilder(
- index, org.sonar.server.source.db.FileSourceTestDb.Test.CoverageBlock.getDefaultInstance());
- }
- /**
- * <code>repeated .org.sonar.server.source.db.Test.CoverageBlock coverage_block = 7;</code>
- */
- public java.util.List<org.sonar.server.source.db.FileSourceTestDb.Test.CoverageBlock.Builder>
- getCoverageBlockBuilderList() {
- return getCoverageBlockFieldBuilder().getBuilderList();
- }
- private com.google.protobuf.RepeatedFieldBuilder<
- org.sonar.server.source.db.FileSourceTestDb.Test.CoverageBlock, org.sonar.server.source.db.FileSourceTestDb.Test.CoverageBlock.Builder, org.sonar.server.source.db.FileSourceTestDb.Test.CoverageBlockOrBuilder>
- getCoverageBlockFieldBuilder() {
- if (coverageBlockBuilder_ == null) {
- coverageBlockBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<>(
- coverageBlock_,
- ((bitField0_ & 0x00000040) == 0x00000040),
- getParentForChildren(),
- isClean());
- coverageBlock_ = null;
- }
- return coverageBlockBuilder_;
- }
-
- // @@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)
- }
-
- public interface TestsOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
-
- // repeated .org.sonar.server.source.db.Test test = 1;
- /**
- * <code>repeated .org.sonar.server.source.db.Test test = 1;</code>
- */
- java.util.List<org.sonar.server.source.db.FileSourceTestDb.Test>
- getTestList();
- /**
- * <code>repeated .org.sonar.server.source.db.Test test = 1;</code>
- */
- org.sonar.server.source.db.FileSourceTestDb.Test getTest(int index);
- /**
- * <code>repeated .org.sonar.server.source.db.Test test = 1;</code>
- */
- int getTestCount();
- /**
- * <code>repeated .org.sonar.server.source.db.Test test = 1;</code>
- */
- java.util.List<? extends org.sonar.server.source.db.FileSourceTestDb.TestOrBuilder>
- getTestOrBuilderList();
- /**
- * <code>repeated .org.sonar.server.source.db.Test test = 1;</code>
- */
- org.sonar.server.source.db.FileSourceTestDb.TestOrBuilder getTestOrBuilder(
- int index);
- }
- /**
- * Protobuf type {@code org.sonar.server.source.db.Tests}
- */
- public static final class Tests extends
- com.google.protobuf.GeneratedMessage
- implements TestsOrBuilder {
- // Use Tests.newBuilder() to construct.
- private Tests(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
- super(builder);
- this.unknownFields = builder.getUnknownFields();
- }
- private Tests(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final Tests defaultInstance;
- public static Tests getDefaultInstance() {
- return defaultInstance;
- }
-
- public Tests getDefaultInstanceForType() {
- return defaultInstance;
- }
-
- private final com.google.protobuf.UnknownFieldSet unknownFields;
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private Tests(
- 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)) {
- test_ = new java.util.ArrayList<>();
- mutable_bitField0_ |= 0x00000001;
- }
- test_.add(input.readMessage(org.sonar.server.source.db.FileSourceTestDb.Test.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)) {
- test_ = java.util.Collections.unmodifiableList(test_);
- }
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.sonar.server.source.db.FileSourceTestDb.internal_static_org_sonar_server_source_db_Tests_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.sonar.server.source.db.FileSourceTestDb.internal_static_org_sonar_server_source_db_Tests_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- org.sonar.server.source.db.FileSourceTestDb.Tests.class, org.sonar.server.source.db.FileSourceTestDb.Tests.Builder.class);
- }
-
- public static com.google.protobuf.Parser<Tests> PARSER =
- new com.google.protobuf.AbstractParser<Tests>() {
- public Tests parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new Tests(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<Tests> getParserForType() {
- return PARSER;
- }
-
- // repeated .org.sonar.server.source.db.Test test = 1;
- public static final int TEST_FIELD_NUMBER = 1;
- private java.util.List<org.sonar.server.source.db.FileSourceTestDb.Test> test_;
- /**
- * <code>repeated .org.sonar.server.source.db.Test test = 1;</code>
- */
- public java.util.List<org.sonar.server.source.db.FileSourceTestDb.Test> getTestList() {
- return test_;
- }
- /**
- * <code>repeated .org.sonar.server.source.db.Test test = 1;</code>
- */
- public java.util.List<? extends org.sonar.server.source.db.FileSourceTestDb.TestOrBuilder>
- getTestOrBuilderList() {
- return test_;
- }
- /**
- * <code>repeated .org.sonar.server.source.db.Test test = 1;</code>
- */
- public int getTestCount() {
- return test_.size();
- }
- /**
- * <code>repeated .org.sonar.server.source.db.Test test = 1;</code>
- */
- public org.sonar.server.source.db.FileSourceTestDb.Test getTest(int index) {
- return test_.get(index);
- }
- /**
- * <code>repeated .org.sonar.server.source.db.Test test = 1;</code>
- */
- public org.sonar.server.source.db.FileSourceTestDb.TestOrBuilder getTestOrBuilder(
- int index) {
- return test_.get(index);
- }
-
- private void initFields() {
- test_ = java.util.Collections.emptyList();
- }
- private byte memoizedIsInitialized = -1;
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- getSerializedSize();
- for (int i = 0; i < test_.size(); i++) {
- output.writeMessage(1, test_.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 < test_.size(); i++) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, test_.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.FileSourceTestDb.Tests parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.sonar.server.source.db.FileSourceTestDb.Tests 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.FileSourceTestDb.Tests parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.sonar.server.source.db.FileSourceTestDb.Tests 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.FileSourceTestDb.Tests parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
- public static org.sonar.server.source.db.FileSourceTestDb.Tests 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.FileSourceTestDb.Tests parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
- }
- public static org.sonar.server.source.db.FileSourceTestDb.Tests 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.FileSourceTestDb.Tests parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
- public static org.sonar.server.source.db.FileSourceTestDb.Tests 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.FileSourceTestDb.Tests 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.Tests}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder>
- implements org.sonar.server.source.db.FileSourceTestDb.TestsOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.sonar.server.source.db.FileSourceTestDb.internal_static_org_sonar_server_source_db_Tests_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.sonar.server.source.db.FileSourceTestDb.internal_static_org_sonar_server_source_db_Tests_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- org.sonar.server.source.db.FileSourceTestDb.Tests.class, org.sonar.server.source.db.FileSourceTestDb.Tests.Builder.class);
- }
-
- // Construct using org.sonar.server.source.db.FileSourceTestDb.Tests.newBuilder()
- private Builder() {
- maybeForceBuilderInitialization();
- }
-
- private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
- super(parent);
- maybeForceBuilderInitialization();
- }
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
- getTestFieldBuilder();
- }
- }
- private static Builder create() {
- return new Builder();
- }
-
- public Builder clear() {
- super.clear();
- if (testBuilder_ == null) {
- test_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000001);
- } else {
- testBuilder_.clear();
- }
- return this;
- }
-
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return org.sonar.server.source.db.FileSourceTestDb.internal_static_org_sonar_server_source_db_Tests_descriptor;
- }
-
- public org.sonar.server.source.db.FileSourceTestDb.Tests getDefaultInstanceForType() {
- return org.sonar.server.source.db.FileSourceTestDb.Tests.getDefaultInstance();
- }
-
- public org.sonar.server.source.db.FileSourceTestDb.Tests build() {
- org.sonar.server.source.db.FileSourceTestDb.Tests result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- public org.sonar.server.source.db.FileSourceTestDb.Tests buildPartial() {
- org.sonar.server.source.db.FileSourceTestDb.Tests result = new org.sonar.server.source.db.FileSourceTestDb.Tests(this);
- int from_bitField0_ = bitField0_;
- if (testBuilder_ == null) {
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- test_ = java.util.Collections.unmodifiableList(test_);
- bitField0_ = (bitField0_ & ~0x00000001);
- }
- result.test_ = test_;
- } else {
- result.test_ = testBuilder_.build();
- }
- onBuilt();
- return result;
- }
-
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof org.sonar.server.source.db.FileSourceTestDb.Tests) {
- return mergeFrom((org.sonar.server.source.db.FileSourceTestDb.Tests)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(org.sonar.server.source.db.FileSourceTestDb.Tests other) {
- if (other == org.sonar.server.source.db.FileSourceTestDb.Tests.getDefaultInstance()) return this;
- if (testBuilder_ == null) {
- if (!other.test_.isEmpty()) {
- if (test_.isEmpty()) {
- test_ = other.test_;
- bitField0_ = (bitField0_ & ~0x00000001);
- } else {
- ensureTestIsMutable();
- test_.addAll(other.test_);
- }
- onChanged();
- }
- } else {
- if (!other.test_.isEmpty()) {
- if (testBuilder_.isEmpty()) {
- testBuilder_.dispose();
- testBuilder_ = null;
- test_ = other.test_;
- bitField0_ = (bitField0_ & ~0x00000001);
- testBuilder_ =
- com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
- getTestFieldBuilder() : null;
- } else {
- testBuilder_.addAllMessages(other.test_);
- }
- }
- }
- 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.FileSourceTestDb.Tests parsedMessage = null;
- try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (org.sonar.server.source.db.FileSourceTestDb.Tests) e.getUnfinishedMessage();
- throw e;
- } finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
- return this;
- }
- private int bitField0_;
-
- // repeated .org.sonar.server.source.db.Test test = 1;
- private java.util.List<org.sonar.server.source.db.FileSourceTestDb.Test> test_ =
- java.util.Collections.emptyList();
- private void ensureTestIsMutable() {
- if (!((bitField0_ & 0x00000001) == 0x00000001)) {
- test_ = new java.util.ArrayList<>(test_);
- bitField0_ |= 0x00000001;
- }
- }
-
- private com.google.protobuf.RepeatedFieldBuilder<
- org.sonar.server.source.db.FileSourceTestDb.Test, org.sonar.server.source.db.FileSourceTestDb.Test.Builder, org.sonar.server.source.db.FileSourceTestDb.TestOrBuilder> testBuilder_;
-
- /**
- * <code>repeated .org.sonar.server.source.db.Test test = 1;</code>
- */
- public java.util.List<org.sonar.server.source.db.FileSourceTestDb.Test> getTestList() {
- if (testBuilder_ == null) {
- return java.util.Collections.unmodifiableList(test_);
- } else {
- return testBuilder_.getMessageList();
- }
- }
- /**
- * <code>repeated .org.sonar.server.source.db.Test test = 1;</code>
- */
- public int getTestCount() {
- if (testBuilder_ == null) {
- return test_.size();
- } else {
- return testBuilder_.getCount();
- }
- }
- /**
- * <code>repeated .org.sonar.server.source.db.Test test = 1;</code>
- */
- public org.sonar.server.source.db.FileSourceTestDb.Test getTest(int index) {
- if (testBuilder_ == null) {
- return test_.get(index);
- } else {
- return testBuilder_.getMessage(index);
- }
- }
- /**
- * <code>repeated .org.sonar.server.source.db.Test test = 1;</code>
- */
- public Builder setTest(
- int index, org.sonar.server.source.db.FileSourceTestDb.Test value) {
- if (testBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureTestIsMutable();
- test_.set(index, value);
- onChanged();
- } else {
- testBuilder_.setMessage(index, value);
- }
- return this;
- }
- /**
- * <code>repeated .org.sonar.server.source.db.Test test = 1;</code>
- */
- public Builder setTest(
- int index, org.sonar.server.source.db.FileSourceTestDb.Test.Builder builderForValue) {
- if (testBuilder_ == null) {
- ensureTestIsMutable();
- test_.set(index, builderForValue.build());
- onChanged();
- } else {
- testBuilder_.setMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- * <code>repeated .org.sonar.server.source.db.Test test = 1;</code>
- */
- public Builder addTest(org.sonar.server.source.db.FileSourceTestDb.Test value) {
- if (testBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureTestIsMutable();
- test_.add(value);
- onChanged();
- } else {
- testBuilder_.addMessage(value);
- }
- return this;
- }
- /**
- * <code>repeated .org.sonar.server.source.db.Test test = 1;</code>
- */
- public Builder addTest(
- int index, org.sonar.server.source.db.FileSourceTestDb.Test value) {
- if (testBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureTestIsMutable();
- test_.add(index, value);
- onChanged();
- } else {
- testBuilder_.addMessage(index, value);
- }
- return this;
- }
- /**
- * <code>repeated .org.sonar.server.source.db.Test test = 1;</code>
- */
- public Builder addTest(
- org.sonar.server.source.db.FileSourceTestDb.Test.Builder builderForValue) {
- if (testBuilder_ == null) {
- ensureTestIsMutable();
- test_.add(builderForValue.build());
- onChanged();
- } else {
- testBuilder_.addMessage(builderForValue.build());
- }
- return this;
- }
- /**
- * <code>repeated .org.sonar.server.source.db.Test test = 1;</code>
- */
- public Builder addTest(
- int index, org.sonar.server.source.db.FileSourceTestDb.Test.Builder builderForValue) {
- if (testBuilder_ == null) {
- ensureTestIsMutable();
- test_.add(index, builderForValue.build());
- onChanged();
- } else {
- testBuilder_.addMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- * <code>repeated .org.sonar.server.source.db.Test test = 1;</code>
- */
- public Builder addAllTest(
- java.lang.Iterable<? extends org.sonar.server.source.db.FileSourceTestDb.Test> values) {
- if (testBuilder_ == null) {
- ensureTestIsMutable();
- super.addAll(values, test_);
- onChanged();
- } else {
- testBuilder_.addAllMessages(values);
- }
- return this;
- }
- /**
- * <code>repeated .org.sonar.server.source.db.Test test = 1;</code>
- */
- public Builder clearTest() {
- if (testBuilder_ == null) {
- test_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000001);
- onChanged();
- } else {
- testBuilder_.clear();
- }
- return this;
- }
- /**
- * <code>repeated .org.sonar.server.source.db.Test test = 1;</code>
- */
- public Builder removeTest(int index) {
- if (testBuilder_ == null) {
- ensureTestIsMutable();
- test_.remove(index);
- onChanged();
- } else {
- testBuilder_.remove(index);
- }
- return this;
- }
- /**
- * <code>repeated .org.sonar.server.source.db.Test test = 1;</code>
- */
- public org.sonar.server.source.db.FileSourceTestDb.Test.Builder getTestBuilder(
- int index) {
- return getTestFieldBuilder().getBuilder(index);
- }
- /**
- * <code>repeated .org.sonar.server.source.db.Test test = 1;</code>
- */
- public org.sonar.server.source.db.FileSourceTestDb.TestOrBuilder getTestOrBuilder(
- int index) {
- if (testBuilder_ == null) {
- return test_.get(index); } else {
- return testBuilder_.getMessageOrBuilder(index);
- }
- }
- /**
- * <code>repeated .org.sonar.server.source.db.Test test = 1;</code>
- */
- public java.util.List<? extends org.sonar.server.source.db.FileSourceTestDb.TestOrBuilder>
- getTestOrBuilderList() {
- if (testBuilder_ != null) {
- return testBuilder_.getMessageOrBuilderList();
- } else {
- return java.util.Collections.unmodifiableList(test_);
- }
- }
- /**
- * <code>repeated .org.sonar.server.source.db.Test test = 1;</code>
- */
- public org.sonar.server.source.db.FileSourceTestDb.Test.Builder addTestBuilder() {
- return getTestFieldBuilder().addBuilder(
- org.sonar.server.source.db.FileSourceTestDb.Test.getDefaultInstance());
- }
- /**
- * <code>repeated .org.sonar.server.source.db.Test test = 1;</code>
- */
- public org.sonar.server.source.db.FileSourceTestDb.Test.Builder addTestBuilder(
- int index) {
- return getTestFieldBuilder().addBuilder(
- index, org.sonar.server.source.db.FileSourceTestDb.Test.getDefaultInstance());
- }
- /**
- * <code>repeated .org.sonar.server.source.db.Test test = 1;</code>
- */
- public java.util.List<org.sonar.server.source.db.FileSourceTestDb.Test.Builder>
- getTestBuilderList() {
- return getTestFieldBuilder().getBuilderList();
- }
- private com.google.protobuf.RepeatedFieldBuilder<
- org.sonar.server.source.db.FileSourceTestDb.Test, org.sonar.server.source.db.FileSourceTestDb.Test.Builder, org.sonar.server.source.db.FileSourceTestDb.TestOrBuilder>
- getTestFieldBuilder() {
- if (testBuilder_ == null) {
- testBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<>(
- test_,
- ((bitField0_ & 0x00000001) == 0x00000001),
- getParentForChildren(),
- isClean());
- test_ = null;
- }
- return testBuilder_;
- }
-
- // @@protoc_insertion_point(builder_scope:org.sonar.server.source.db.Tests)
- }
-
- static {
- defaultInstance = new Tests(true);
- defaultInstance.initFields();
- }
-
- // @@protoc_insertion_point(class_scope:org.sonar.server.source.db.Tests)
- }
-
- private static com.google.protobuf.Descriptors.Descriptor
- internal_static_org_sonar_server_source_db_Test_descriptor;
- private static
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internal_static_org_sonar_server_source_db_Test_fieldAccessorTable;
- private static com.google.protobuf.Descriptors.Descriptor
- internal_static_org_sonar_server_source_db_Test_CoverageBlock_descriptor;
- private static
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internal_static_org_sonar_server_source_db_Test_CoverageBlock_fieldAccessorTable;
- private static com.google.protobuf.Descriptors.Descriptor
- internal_static_org_sonar_server_source_db_Tests_descriptor;
- private static
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internal_static_org_sonar_server_source_db_Tests_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\031file_source_test_db.proto\022\032org.sonar.s" +
- "erver.source.db\"\232\002\n\004Test\022\014\n\004uuid\030\001 \001(\t\022\013" +
- "\n\003key\030\002 \001(\t\022\023\n\013method_name\030\003 \001(\t\022\016\n\006stat" +
- "us\030\004 \001(\t\022\024\n\014test_message\030\005 \001(\t\022\014\n\004type\030\006" +
- " \001(\t\022F\n\016coverage_block\030\007 \003(\0132..org.sonar" +
- ".server.source.db.Test.CoverageBlock\032f\n\r" +
- "CoverageBlock\022\014\n\004uuid\030\001 \001(\t\022\013\n\003key\030\002 \001(\t" +
- "\022\021\n\tlong_name\030\003 \001(\t\022\r\n\005lines\030\004 \003(\005\022\030\n\020nb" +
- "_covered_lines\030\005 \001(\005\"7\n\005Tests\022.\n\004test\030\001 " +
- "\003(\0132 .org.sonar.server.source.db.TestB\002H",
- "\001"
- };
- com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
- new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
- public com.google.protobuf.ExtensionRegistry assignDescriptors(
- com.google.protobuf.Descriptors.FileDescriptor root) {
- descriptor = root;
- internal_static_org_sonar_server_source_db_Test_descriptor =
- getDescriptor().getMessageTypes().get(0);
- 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", "Key", "MethodName", "Status", "TestMessage", "Type", "CoverageBlock", });
- internal_static_org_sonar_server_source_db_Test_CoverageBlock_descriptor =
- internal_static_org_sonar_server_source_db_Test_descriptor.getNestedTypes().get(0);
- internal_static_org_sonar_server_source_db_Test_CoverageBlock_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_org_sonar_server_source_db_Test_CoverageBlock_descriptor,
- new java.lang.String[] { "Uuid", "Key", "LongName", "Lines", "NbCoveredLines", });
- internal_static_org_sonar_server_source_db_Tests_descriptor =
- getDescriptor().getMessageTypes().get(1);
- internal_static_org_sonar_server_source_db_Tests_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_org_sonar_server_source_db_Tests_descriptor,
- new java.lang.String[] { "Test", });
- return null;
- }
- };
- com.google.protobuf.Descriptors.FileDescriptor
- .internalBuildGeneratedFileFrom(descriptorData,
- new com.google.protobuf.Descriptors.FileDescriptor[] {
- }, assigner);
- }
-
- // @@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
deleted file mode 100644
index 48b916dbd78..00000000000
--- a/sonar-batch-protocol/src/main/protobuf/file_source_db.proto
+++ /dev/null
@@ -1,95 +0,0 @@
-/*
- 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 duplication = 17 [packed = true];
-}
-
-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;
- }
-}