aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-db
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2015-09-09 09:37:48 +0200
committerSimon Brandhof <simon.brandhof@sonarsource.com>2015-09-11 11:44:21 +0200
commit33a216e2071c028060d437fe2707b9e7012aae76 (patch)
tree4b52349f9a028aadde4e66d931ee38c55013d24d /sonar-db
parent135df88fafd97a2fb78a9d7ec172fb8f39cdee3c (diff)
downloadsonarqube-33a216e2071c028060d437fe2707b9e7012aae76.tar.gz
sonarqube-33a216e2071c028060d437fe2707b9e7012aae76.zip
Upgrade protobuf lib to 3.0.0-beta-1
Diffstat (limited to 'sonar-db')
-rw-r--r--sonar-db/src/main/gen-java/org/sonar/db/protobuf/DbCommons.java128
-rw-r--r--sonar-db/src/main/gen-java/org/sonar/db/protobuf/DbFileSources.java578
-rw-r--r--sonar-db/src/main/gen-java/org/sonar/db/protobuf/DbIssues.java414
3 files changed, 548 insertions, 572 deletions
diff --git a/sonar-db/src/main/gen-java/org/sonar/db/protobuf/DbCommons.java b/sonar-db/src/main/gen-java/org/sonar/db/protobuf/DbCommons.java
index e5880a32d83..11d2d85200a 100644
--- a/sonar-db/src/main/gen-java/org/sonar/db/protobuf/DbCommons.java
+++ b/sonar-db/src/main/gen-java/org/sonar/db/protobuf/DbCommons.java
@@ -87,37 +87,30 @@ public final class DbCommons {
* Lines start at 1 and line offsets start at 0
* </pre>
*/
- public static final class TextRange extends
+ public static final class TextRange extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:sonarqube.db.commons.TextRange)
TextRangeOrBuilder {
// Use TextRange.newBuilder() to construct.
- private TextRange(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private TextRange(com.google.protobuf.GeneratedMessage.Builder builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
}
- private TextRange(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final TextRange defaultInstance;
- public static TextRange getDefaultInstance() {
- return defaultInstance;
- }
-
- public TextRange getDefaultInstanceForType() {
- return defaultInstance;
+ private TextRange() {
+ startLine_ = 0;
+ endLine_ = 0;
+ startOffset_ = 0;
+ endOffset_ = 0;
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
+ getUnknownFields() {
return this.unknownFields;
}
private TextRange(
com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
+ this();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
@@ -159,10 +152,11 @@ public final class DbCommons {
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
+ throw new RuntimeException(e.setUnfinishedMessage(this));
} catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
+ throw new RuntimeException(
+ new com.google.protobuf.InvalidProtocolBufferException(
+ e.getMessage()).setUnfinishedMessage(this));
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
@@ -180,21 +174,6 @@ public final class DbCommons {
org.sonar.db.protobuf.DbCommons.TextRange.class, org.sonar.db.protobuf.DbCommons.TextRange.Builder.class);
}
- public static com.google.protobuf.Parser<TextRange> PARSER =
- new com.google.protobuf.AbstractParser<TextRange>() {
- public TextRange parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new TextRange(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<TextRange> getParserForType() {
- return PARSER;
- }
-
private int bitField0_;
public static final int START_LINE_FIELD_NUMBER = 1;
private int startLine_;
@@ -288,12 +267,6 @@ public final class DbCommons {
return endOffset_;
}
- private void initFields() {
- startLine_ = 0;
- endLine_ = 0;
- startOffset_ = 0;
- endOffset_ = 0;
- }
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
@@ -306,7 +279,6 @@ public final class DbCommons {
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeInt32(1, startLine_);
}
@@ -319,7 +291,7 @@ public final class DbCommons {
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeInt32(4, endOffset_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
private int memoizedSerializedSize = -1;
@@ -344,18 +316,12 @@ public final class DbCommons {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(4, endOffset_);
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
- @java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
- }
-
public static org.sonar.db.protobuf.DbCommons.TextRange parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -409,12 +375,17 @@ public final class DbCommons {
return PARSER.parseFrom(input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
public static Builder newBuilder(org.sonar.db.protobuf.DbCommons.TextRange prototype) {
- return newBuilder().mergeFrom(prototype);
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
@@ -459,10 +430,6 @@ public final class DbCommons {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
- private static Builder create() {
- return new Builder();
- }
-
public Builder clear() {
super.clear();
startLine_ = 0;
@@ -476,10 +443,6 @@ public final class DbCommons {
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.sonar.db.protobuf.DbCommons.internal_static_sonarqube_db_commons_TextRange_descriptor;
@@ -545,7 +508,8 @@ public final class DbCommons {
if (other.hasEndOffset()) {
setEndOffset(other.getEndOffset());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
@@ -767,15 +731,47 @@ public final class DbCommons {
// @@protoc_insertion_point(builder_scope:sonarqube.db.commons.TextRange)
}
+ // @@protoc_insertion_point(class_scope:sonarqube.db.commons.TextRange)
+ private static final org.sonar.db.protobuf.DbCommons.TextRange DEFAULT_INSTANCE;
static {
- defaultInstance = new TextRange(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new org.sonar.db.protobuf.DbCommons.TextRange();
+ }
+
+ public static org.sonar.db.protobuf.DbCommons.TextRange getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ public static final com.google.protobuf.Parser<TextRange> PARSER =
+ new com.google.protobuf.AbstractParser<TextRange>() {
+ public TextRange parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ try {
+ return new TextRange(input, extensionRegistry);
+ } catch (RuntimeException e) {
+ if (e.getCause() instanceof
+ com.google.protobuf.InvalidProtocolBufferException) {
+ throw (com.google.protobuf.InvalidProtocolBufferException)
+ e.getCause();
+ }
+ throw e;
+ }
+ }
+ };
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<TextRange> getParserForType() {
+ return PARSER;
+ }
+
+ public org.sonar.db.protobuf.DbCommons.TextRange getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:sonarqube.db.commons.TextRange)
}
- private static final com.google.protobuf.Descriptors.Descriptor
+ private static com.google.protobuf.Descriptors.Descriptor
internal_static_sonarqube_db_commons_TextRange_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
diff --git a/sonar-db/src/main/gen-java/org/sonar/db/protobuf/DbFileSources.java b/sonar-db/src/main/gen-java/org/sonar/db/protobuf/DbFileSources.java
index 5942e13c3ba..165dc22f58f 100644
--- a/sonar-db/src/main/gen-java/org/sonar/db/protobuf/DbFileSources.java
+++ b/sonar-db/src/main/gen-java/org/sonar/db/protobuf/DbFileSources.java
@@ -233,37 +233,43 @@ public final class DbFileSources {
/**
* Protobuf type {@code org.sonar.server.source.db.Line}
*/
- public static final class Line extends
+ 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) {
+ 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 Line() {
+ 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 final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
+ getUnknownFields() {
return this.unknownFields;
}
private Line(
com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
+ this();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
@@ -391,10 +397,11 @@ public final class DbFileSources {
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
+ throw new RuntimeException(e.setUnfinishedMessage(this));
} catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
+ throw new RuntimeException(
+ new com.google.protobuf.InvalidProtocolBufferException(
+ e.getMessage()).setUnfinishedMessage(this));
} finally {
if (((mutable_bitField0_ & 0x00010000) == 0x00010000)) {
duplication_ = java.util.Collections.unmodifiableList(duplication_);
@@ -415,21 +422,6 @@ public final class DbFileSources {
org.sonar.db.protobuf.DbFileSources.Line.class, org.sonar.db.protobuf.DbFileSources.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_;
@@ -447,7 +439,7 @@ public final class DbFileSources {
}
public static final int SOURCE_FIELD_NUMBER = 2;
- private java.lang.Object source_;
+ private volatile java.lang.Object source_;
/**
* <code>optional string source = 2;</code>
*/
@@ -489,7 +481,7 @@ public final class DbFileSources {
}
public static final int SCM_REVISION_FIELD_NUMBER = 3;
- private java.lang.Object scmRevision_;
+ private volatile java.lang.Object scmRevision_;
/**
* <code>optional string scm_revision = 3;</code>
*
@@ -543,7 +535,7 @@ public final class DbFileSources {
}
public static final int SCM_AUTHOR_FIELD_NUMBER = 4;
- private java.lang.Object scmAuthor_;
+ private volatile java.lang.Object scmAuthor_;
/**
* <code>optional string scm_author = 4;</code>
*/
@@ -759,7 +751,7 @@ public final class DbFileSources {
}
public static final int HIGHLIGHTING_FIELD_NUMBER = 15;
- private java.lang.Object highlighting_;
+ private volatile java.lang.Object highlighting_;
/**
* <code>optional string highlighting = 15;</code>
*/
@@ -801,7 +793,7 @@ public final class DbFileSources {
}
public static final int SYMBOLS_FIELD_NUMBER = 16;
- private java.lang.Object symbols_;
+ private volatile java.lang.Object symbols_;
/**
* <code>optional string symbols = 16;</code>
*/
@@ -865,25 +857,6 @@ public final class DbFileSources {
}
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;
@@ -952,7 +925,7 @@ public final class DbFileSources {
for (int i = 0; i < duplication_.size(); i++) {
output.writeInt32NoTag(duplication_.get(i));
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
private int memoizedSerializedSize = -1;
@@ -1039,18 +1012,12 @@ public final class DbFileSources {
}
duplicationMemoizedSerializedSize = dataSize;
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
- @java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
- }
-
public static org.sonar.db.protobuf.DbFileSources.Line parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -1104,12 +1071,17 @@ public final class DbFileSources {
return PARSER.parseFrom(input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
public static Builder newBuilder(org.sonar.db.protobuf.DbFileSources.Line prototype) {
- return newBuilder().mergeFrom(prototype);
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
@@ -1150,10 +1122,6 @@ public final class DbFileSources {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
- private static Builder create() {
- return new Builder();
- }
-
public Builder clear() {
super.clear();
line_ = 0;
@@ -1193,10 +1161,6 @@ public final class DbFileSources {
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.sonar.db.protobuf.DbFileSources.internal_static_org_sonar_server_source_db_Line_descriptor;
@@ -1371,7 +1335,8 @@ public final class DbFileSources {
}
onChanged();
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
@@ -2271,12 +2236,44 @@ public final class DbFileSources {
// @@protoc_insertion_point(builder_scope:org.sonar.server.source.db.Line)
}
+ // @@protoc_insertion_point(class_scope:org.sonar.server.source.db.Line)
+ private static final org.sonar.db.protobuf.DbFileSources.Line DEFAULT_INSTANCE;
static {
- defaultInstance = new Line(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new org.sonar.db.protobuf.DbFileSources.Line();
+ }
+
+ public static org.sonar.db.protobuf.DbFileSources.Line getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ public static final 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 {
+ try {
+ return new Line(input, extensionRegistry);
+ } catch (RuntimeException e) {
+ if (e.getCause() instanceof
+ com.google.protobuf.InvalidProtocolBufferException) {
+ throw (com.google.protobuf.InvalidProtocolBufferException)
+ e.getCause();
+ }
+ throw e;
+ }
+ }
+ };
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<Line> getParserForType() {
+ return PARSER;
+ }
+
+ public org.sonar.db.protobuf.DbFileSources.Line getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:org.sonar.server.source.db.Line)
}
public interface DataOrBuilder extends
@@ -2314,37 +2311,27 @@ public final class DbFileSources {
* TODO should be dropped as it prevents streaming
* </pre>
*/
- public static final class Data extends
+ 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) {
+ 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 Data() {
+ lines_ = java.util.Collections.emptyList();
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
+ getUnknownFields() {
return this.unknownFields;
}
private Data(
com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
+ this();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
@@ -2374,10 +2361,11 @@ public final class DbFileSources {
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
+ throw new RuntimeException(e.setUnfinishedMessage(this));
} catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
+ throw new RuntimeException(
+ new com.google.protobuf.InvalidProtocolBufferException(
+ e.getMessage()).setUnfinishedMessage(this));
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
lines_ = java.util.Collections.unmodifiableList(lines_);
@@ -2398,21 +2386,6 @@ public final class DbFileSources {
org.sonar.db.protobuf.DbFileSources.Data.class, org.sonar.db.protobuf.DbFileSources.Data.Builder.class);
}
- public static com.google.protobuf.Parser<Data> PARSER =
- new com.google.protobuf.AbstractParser<Data>() {
- public Data parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new Data(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<Data> getParserForType() {
- return PARSER;
- }
-
public static final int LINES_FIELD_NUMBER = 1;
private java.util.List<org.sonar.db.protobuf.DbFileSources.Line> lines_;
/**
@@ -2448,9 +2421,6 @@ public final class DbFileSources {
return lines_.get(index);
}
- private void initFields() {
- lines_ = java.util.Collections.emptyList();
- }
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
@@ -2463,11 +2433,10 @@ public final class DbFileSources {
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);
+ unknownFields.writeTo(output);
}
private int memoizedSerializedSize = -1;
@@ -2480,18 +2449,12 @@ public final class DbFileSources {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, lines_.get(i));
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
- @java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
- }
-
public static org.sonar.db.protobuf.DbFileSources.Data parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -2545,12 +2508,17 @@ public final class DbFileSources {
return PARSER.parseFrom(input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
public static Builder newBuilder(org.sonar.db.protobuf.DbFileSources.Data prototype) {
- return newBuilder().mergeFrom(prototype);
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
@@ -2596,10 +2564,6 @@ public final class DbFileSources {
getLinesFieldBuilder();
}
}
- private static Builder create() {
- return new Builder();
- }
-
public Builder clear() {
super.clear();
if (linesBuilder_ == null) {
@@ -2611,10 +2575,6 @@ public final class DbFileSources {
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.sonar.db.protobuf.DbFileSources.internal_static_org_sonar_server_source_db_Data_descriptor;
@@ -2685,7 +2645,8 @@ public final class DbFileSources {
}
}
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
@@ -2955,12 +2916,44 @@ public final class DbFileSources {
// @@protoc_insertion_point(builder_scope:org.sonar.server.source.db.Data)
}
+ // @@protoc_insertion_point(class_scope:org.sonar.server.source.db.Data)
+ private static final org.sonar.db.protobuf.DbFileSources.Data DEFAULT_INSTANCE;
static {
- defaultInstance = new Data(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new org.sonar.db.protobuf.DbFileSources.Data();
+ }
+
+ public static org.sonar.db.protobuf.DbFileSources.Data getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ public static final 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 {
+ try {
+ return new Data(input, extensionRegistry);
+ } catch (RuntimeException e) {
+ if (e.getCause() instanceof
+ com.google.protobuf.InvalidProtocolBufferException) {
+ throw (com.google.protobuf.InvalidProtocolBufferException)
+ e.getCause();
+ }
+ throw e;
+ }
+ }
+ };
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<Data> getParserForType() {
+ return PARSER;
+ }
+
+ public org.sonar.db.protobuf.DbFileSources.Data getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:org.sonar.server.source.db.Data)
}
public interface TestOrBuilder extends
@@ -3068,37 +3061,33 @@ public final class DbFileSources {
/**
* Protobuf type {@code org.sonar.server.source.db.Test}
*/
- public static final class Test extends
+ 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) {
+ 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 Test() {
+ uuid_ = "";
+ name_ = "";
+ status_ = 1;
+ executionTimeMs_ = 0L;
+ stacktrace_ = "";
+ msg_ = "";
+ coveredFile_ = java.util.Collections.emptyList();
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
+ getUnknownFields() {
return this.unknownFields;
}
private Test(
com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
+ this();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
@@ -3136,7 +3125,7 @@ public final class DbFileSources {
unknownFields.mergeVarintField(3, rawValue);
} else {
bitField0_ |= 0x00000004;
- status_ = value;
+ status_ = rawValue;
}
break;
}
@@ -3168,10 +3157,11 @@ public final class DbFileSources {
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
+ throw new RuntimeException(e.setUnfinishedMessage(this));
} catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
+ throw new RuntimeException(
+ new com.google.protobuf.InvalidProtocolBufferException(
+ e.getMessage()).setUnfinishedMessage(this));
} finally {
if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
coveredFile_ = java.util.Collections.unmodifiableList(coveredFile_);
@@ -3192,21 +3182,6 @@ public final class DbFileSources {
org.sonar.db.protobuf.DbFileSources.Test.class, org.sonar.db.protobuf.DbFileSources.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}
*/
@@ -3248,7 +3223,9 @@ public final class DbFileSources {
public static final int SKIPPED_VALUE = 4;
- public final int getNumber() { return value; }
+ public final int getNumber() {
+ return value;
+ }
public static TestStatus valueOf(int value) {
switch (value) {
@@ -3341,37 +3318,28 @@ public final class DbFileSources {
/**
* Protobuf type {@code org.sonar.server.source.db.Test.CoveredFile}
*/
- public static final class CoveredFile extends
+ 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) {
+ 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 CoveredFile() {
+ fileUuid_ = "";
+ coveredLine_ = java.util.Collections.emptyList();
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
+ getUnknownFields() {
return this.unknownFields;
}
private CoveredFile(
com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
+ this();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
@@ -3420,10 +3388,11 @@ public final class DbFileSources {
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
+ throw new RuntimeException(e.setUnfinishedMessage(this));
} catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
+ throw new RuntimeException(
+ new com.google.protobuf.InvalidProtocolBufferException(
+ e.getMessage()).setUnfinishedMessage(this));
} finally {
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
coveredLine_ = java.util.Collections.unmodifiableList(coveredLine_);
@@ -3444,24 +3413,9 @@ public final class DbFileSources {
org.sonar.db.protobuf.DbFileSources.Test.CoveredFile.class, org.sonar.db.protobuf.DbFileSources.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_;
+ private volatile java.lang.Object fileUuid_;
/**
* <code>optional string file_uuid = 1;</code>
*/
@@ -3525,10 +3479,6 @@ public final class DbFileSources {
}
private int coveredLineMemoizedSerializedSize = -1;
- private void initFields() {
- fileUuid_ = "";
- coveredLine_ = java.util.Collections.emptyList();
- }
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
@@ -3552,7 +3502,7 @@ public final class DbFileSources {
for (int i = 0; i < coveredLine_.size(); i++) {
output.writeInt32NoTag(coveredLine_.get(i));
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
private int memoizedSerializedSize = -1;
@@ -3579,18 +3529,12 @@ public final class DbFileSources {
}
coveredLineMemoizedSerializedSize = dataSize;
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
- @java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
- }
-
public static org.sonar.db.protobuf.DbFileSources.Test.CoveredFile parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -3644,12 +3588,17 @@ public final class DbFileSources {
return PARSER.parseFrom(input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
public static Builder newBuilder(org.sonar.db.protobuf.DbFileSources.Test.CoveredFile prototype) {
- return newBuilder().mergeFrom(prototype);
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
@@ -3690,10 +3639,6 @@ public final class DbFileSources {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
- private static Builder create() {
- return new Builder();
- }
-
public Builder clear() {
super.clear();
fileUuid_ = "";
@@ -3703,10 +3648,6 @@ public final class DbFileSources {
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.sonar.db.protobuf.DbFileSources.internal_static_org_sonar_server_source_db_Test_CoveredFile_descriptor;
@@ -3768,7 +3709,8 @@ public final class DbFileSources {
}
onChanged();
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
@@ -3940,17 +3882,49 @@ public final class DbFileSources {
// @@protoc_insertion_point(builder_scope:org.sonar.server.source.db.Test.CoveredFile)
}
+ // @@protoc_insertion_point(class_scope:org.sonar.server.source.db.Test.CoveredFile)
+ private static final org.sonar.db.protobuf.DbFileSources.Test.CoveredFile DEFAULT_INSTANCE;
static {
- defaultInstance = new CoveredFile(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new org.sonar.db.protobuf.DbFileSources.Test.CoveredFile();
+ }
+
+ public static org.sonar.db.protobuf.DbFileSources.Test.CoveredFile getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ public static final 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 {
+ try {
+ return new CoveredFile(input, extensionRegistry);
+ } catch (RuntimeException e) {
+ if (e.getCause() instanceof
+ com.google.protobuf.InvalidProtocolBufferException) {
+ throw (com.google.protobuf.InvalidProtocolBufferException)
+ e.getCause();
+ }
+ throw e;
+ }
+ }
+ };
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<CoveredFile> getParserForType() {
+ return PARSER;
+ }
+
+ public org.sonar.db.protobuf.DbFileSources.Test.CoveredFile getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@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_;
+ private volatile java.lang.Object uuid_;
/**
* <code>optional string uuid = 1;</code>
*/
@@ -3992,7 +3966,7 @@ public final class DbFileSources {
}
public static final int NAME_FIELD_NUMBER = 2;
- private java.lang.Object name_;
+ private volatile java.lang.Object name_;
/**
* <code>optional string name = 2;</code>
*/
@@ -4034,7 +4008,7 @@ public final class DbFileSources {
}
public static final int STATUS_FIELD_NUMBER = 3;
- private org.sonar.db.protobuf.DbFileSources.Test.TestStatus status_;
+ private int status_;
/**
* <code>optional .org.sonar.server.source.db.Test.TestStatus status = 3;</code>
*/
@@ -4045,7 +4019,8 @@ public final class DbFileSources {
* <code>optional .org.sonar.server.source.db.Test.TestStatus status = 3;</code>
*/
public org.sonar.db.protobuf.DbFileSources.Test.TestStatus getStatus() {
- return status_;
+ org.sonar.db.protobuf.DbFileSources.Test.TestStatus result = org.sonar.db.protobuf.DbFileSources.Test.TestStatus.valueOf(status_);
+ return result == null ? org.sonar.db.protobuf.DbFileSources.Test.TestStatus.OK : result;
}
public static final int EXECUTION_TIME_MS_FIELD_NUMBER = 4;
@@ -4064,7 +4039,7 @@ public final class DbFileSources {
}
public static final int STACKTRACE_FIELD_NUMBER = 5;
- private java.lang.Object stacktrace_;
+ private volatile java.lang.Object stacktrace_;
/**
* <code>optional string stacktrace = 5;</code>
*/
@@ -4106,7 +4081,7 @@ public final class DbFileSources {
}
public static final int MSG_FIELD_NUMBER = 6;
- private java.lang.Object msg_;
+ private volatile java.lang.Object msg_;
/**
* <code>optional string msg = 6;</code>
*/
@@ -4182,15 +4157,6 @@ public final class DbFileSources {
return coveredFile_.get(index);
}
- private void initFields() {
- uuid_ = "";
- name_ = "";
- status_ = org.sonar.db.protobuf.DbFileSources.Test.TestStatus.OK;
- executionTimeMs_ = 0L;
- stacktrace_ = "";
- msg_ = "";
- coveredFile_ = java.util.Collections.emptyList();
- }
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
@@ -4203,7 +4169,6 @@ public final class DbFileSources {
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, getUuidBytes());
}
@@ -4211,7 +4176,7 @@ public final class DbFileSources {
output.writeBytes(2, getNameBytes());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
- output.writeEnum(3, status_.getNumber());
+ output.writeEnum(3, status_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeInt64(4, executionTimeMs_);
@@ -4225,7 +4190,7 @@ public final class DbFileSources {
for (int i = 0; i < coveredFile_.size(); i++) {
output.writeMessage(7, coveredFile_.get(i));
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
private int memoizedSerializedSize = -1;
@@ -4244,7 +4209,7 @@ public final class DbFileSources {
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
- .computeEnumSize(3, status_.getNumber());
+ .computeEnumSize(3, status_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
@@ -4262,18 +4227,12 @@ public final class DbFileSources {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, coveredFile_.get(i));
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
- @java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
- }
-
public static org.sonar.db.protobuf.DbFileSources.Test parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -4327,12 +4286,17 @@ public final class DbFileSources {
return PARSER.parseFrom(input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
public static Builder newBuilder(org.sonar.db.protobuf.DbFileSources.Test prototype) {
- return newBuilder().mergeFrom(prototype);
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
@@ -4374,17 +4338,13 @@ public final class DbFileSources {
getCoveredFileFieldBuilder();
}
}
- private static Builder create() {
- return new Builder();
- }
-
public Builder clear() {
super.clear();
uuid_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
name_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
- status_ = org.sonar.db.protobuf.DbFileSources.Test.TestStatus.OK;
+ status_ = 1;
bitField0_ = (bitField0_ & ~0x00000004);
executionTimeMs_ = 0L;
bitField0_ = (bitField0_ & ~0x00000008);
@@ -4401,10 +4361,6 @@ public final class DbFileSources {
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.sonar.db.protobuf.DbFileSources.internal_static_org_sonar_server_source_db_Test_descriptor;
@@ -4527,7 +4483,8 @@ public final class DbFileSources {
}
}
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
@@ -4706,7 +4663,7 @@ public final class DbFileSources {
return this;
}
- private org.sonar.db.protobuf.DbFileSources.Test.TestStatus status_ = org.sonar.db.protobuf.DbFileSources.Test.TestStatus.OK;
+ private int status_ = 1;
/**
* <code>optional .org.sonar.server.source.db.Test.TestStatus status = 3;</code>
*/
@@ -4717,7 +4674,8 @@ public final class DbFileSources {
* <code>optional .org.sonar.server.source.db.Test.TestStatus status = 3;</code>
*/
public org.sonar.db.protobuf.DbFileSources.Test.TestStatus getStatus() {
- return status_;
+ org.sonar.db.protobuf.DbFileSources.Test.TestStatus result = org.sonar.db.protobuf.DbFileSources.Test.TestStatus.valueOf(status_);
+ return result == null ? org.sonar.db.protobuf.DbFileSources.Test.TestStatus.OK : result;
}
/**
* <code>optional .org.sonar.server.source.db.Test.TestStatus status = 3;</code>
@@ -4727,7 +4685,7 @@ public final class DbFileSources {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
- status_ = value;
+ status_ = value.getNumber();
onChanged();
return this;
}
@@ -4736,7 +4694,7 @@ public final class DbFileSources {
*/
public Builder clearStatus() {
bitField0_ = (bitField0_ & ~0x00000004);
- status_ = org.sonar.db.protobuf.DbFileSources.Test.TestStatus.OK;
+ status_ = 1;
onChanged();
return this;
}
@@ -5168,30 +5126,62 @@ public final class DbFileSources {
// @@protoc_insertion_point(builder_scope:org.sonar.server.source.db.Test)
}
+ // @@protoc_insertion_point(class_scope:org.sonar.server.source.db.Test)
+ private static final org.sonar.db.protobuf.DbFileSources.Test DEFAULT_INSTANCE;
static {
- defaultInstance = new Test(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new org.sonar.db.protobuf.DbFileSources.Test();
+ }
+
+ public static org.sonar.db.protobuf.DbFileSources.Test getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ public static final 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 {
+ try {
+ return new Test(input, extensionRegistry);
+ } catch (RuntimeException e) {
+ if (e.getCause() instanceof
+ com.google.protobuf.InvalidProtocolBufferException) {
+ throw (com.google.protobuf.InvalidProtocolBufferException)
+ e.getCause();
+ }
+ throw e;
+ }
+ }
+ };
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<Test> getParserForType() {
+ return PARSER;
+ }
+
+ public org.sonar.db.protobuf.DbFileSources.Test getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:org.sonar.server.source.db.Test)
}
- private static final com.google.protobuf.Descriptors.Descriptor
+ private static com.google.protobuf.Descriptors.Descriptor
internal_static_org_sonar_server_source_db_Line_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_org_sonar_server_source_db_Line_fieldAccessorTable;
- private static final com.google.protobuf.Descriptors.Descriptor
+ private static com.google.protobuf.Descriptors.Descriptor
internal_static_org_sonar_server_source_db_Data_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_org_sonar_server_source_db_Data_fieldAccessorTable;
- private static final com.google.protobuf.Descriptors.Descriptor
+ 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 final com.google.protobuf.Descriptors.Descriptor
+ private static com.google.protobuf.Descriptors.Descriptor
internal_static_org_sonar_server_source_db_Test_CoveredFile_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
diff --git a/sonar-db/src/main/gen-java/org/sonar/db/protobuf/DbIssues.java b/sonar-db/src/main/gen-java/org/sonar/db/protobuf/DbIssues.java
index d7230c43d14..1baa250436a 100644
--- a/sonar-db/src/main/gen-java/org/sonar/db/protobuf/DbIssues.java
+++ b/sonar-db/src/main/gen-java/org/sonar/db/protobuf/DbIssues.java
@@ -52,37 +52,27 @@ public final class DbIssues {
/**
* Protobuf type {@code sonarqube.db.issues.Locations}
*/
- public static final class Locations extends
+ public static final class Locations extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:sonarqube.db.issues.Locations)
LocationsOrBuilder {
// Use Locations.newBuilder() to construct.
- private Locations(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private Locations(com.google.protobuf.GeneratedMessage.Builder builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
}
- private Locations(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final Locations defaultInstance;
- public static Locations getDefaultInstance() {
- return defaultInstance;
- }
-
- public Locations getDefaultInstanceForType() {
- return defaultInstance;
+ private Locations() {
+ flow_ = java.util.Collections.emptyList();
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
+ getUnknownFields() {
return this.unknownFields;
}
private Locations(
com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
+ this();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
@@ -125,10 +115,11 @@ public final class DbIssues {
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
+ throw new RuntimeException(e.setUnfinishedMessage(this));
} catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
+ throw new RuntimeException(
+ new com.google.protobuf.InvalidProtocolBufferException(
+ e.getMessage()).setUnfinishedMessage(this));
} finally {
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
flow_ = java.util.Collections.unmodifiableList(flow_);
@@ -149,21 +140,6 @@ public final class DbIssues {
org.sonar.db.protobuf.DbIssues.Locations.class, org.sonar.db.protobuf.DbIssues.Locations.Builder.class);
}
- public static com.google.protobuf.Parser<Locations> PARSER =
- new com.google.protobuf.AbstractParser<Locations>() {
- public Locations parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new Locations(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<Locations> getParserForType() {
- return PARSER;
- }
-
private int bitField0_;
public static final int TEXT_RANGE_FIELD_NUMBER = 1;
private org.sonar.db.protobuf.DbCommons.TextRange textRange_;
@@ -177,13 +153,13 @@ public final class DbIssues {
* <code>optional .sonarqube.db.commons.TextRange text_range = 1;</code>
*/
public org.sonar.db.protobuf.DbCommons.TextRange getTextRange() {
- return textRange_;
+ return textRange_ == null ? org.sonar.db.protobuf.DbCommons.TextRange.getDefaultInstance() : textRange_;
}
/**
* <code>optional .sonarqube.db.commons.TextRange text_range = 1;</code>
*/
public org.sonar.db.protobuf.DbCommons.TextRangeOrBuilder getTextRangeOrBuilder() {
- return textRange_;
+ return textRange_ == null ? org.sonar.db.protobuf.DbCommons.TextRange.getDefaultInstance() : textRange_;
}
public static final int FLOW_FIELD_NUMBER = 2;
@@ -221,10 +197,6 @@ public final class DbIssues {
return flow_.get(index);
}
- private void initFields() {
- textRange_ = org.sonar.db.protobuf.DbCommons.TextRange.getDefaultInstance();
- flow_ = java.util.Collections.emptyList();
- }
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
@@ -237,14 +209,13 @@ public final class DbIssues {
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeMessage(1, textRange_);
+ output.writeMessage(1, getTextRange());
}
for (int i = 0; i < flow_.size(); i++) {
output.writeMessage(2, flow_.get(i));
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
private int memoizedSerializedSize = -1;
@@ -255,24 +226,18 @@ public final class DbIssues {
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, textRange_);
+ .computeMessageSize(1, getTextRange());
}
for (int i = 0; i < flow_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, flow_.get(i));
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
- @java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
- }
-
public static org.sonar.db.protobuf.DbIssues.Locations parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -326,12 +291,17 @@ public final class DbIssues {
return PARSER.parseFrom(input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
public static Builder newBuilder(org.sonar.db.protobuf.DbIssues.Locations prototype) {
- return newBuilder().mergeFrom(prototype);
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
@@ -374,14 +344,10 @@ public final class DbIssues {
getFlowFieldBuilder();
}
}
- private static Builder create() {
- return new Builder();
- }
-
public Builder clear() {
super.clear();
if (textRangeBuilder_ == null) {
- textRange_ = org.sonar.db.protobuf.DbCommons.TextRange.getDefaultInstance();
+ textRange_ = null;
} else {
textRangeBuilder_.clear();
}
@@ -395,10 +361,6 @@ public final class DbIssues {
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.sonar.db.protobuf.DbIssues.internal_static_sonarqube_db_issues_Locations_descriptor;
@@ -482,7 +444,8 @@ public final class DbIssues {
}
}
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
@@ -509,7 +472,7 @@ public final class DbIssues {
}
private int bitField0_;
- private org.sonar.db.protobuf.DbCommons.TextRange textRange_ = org.sonar.db.protobuf.DbCommons.TextRange.getDefaultInstance();
+ private org.sonar.db.protobuf.DbCommons.TextRange textRange_ = null;
private com.google.protobuf.SingleFieldBuilder<
org.sonar.db.protobuf.DbCommons.TextRange, org.sonar.db.protobuf.DbCommons.TextRange.Builder, org.sonar.db.protobuf.DbCommons.TextRangeOrBuilder> textRangeBuilder_;
/**
@@ -523,7 +486,7 @@ public final class DbIssues {
*/
public org.sonar.db.protobuf.DbCommons.TextRange getTextRange() {
if (textRangeBuilder_ == null) {
- return textRange_;
+ return textRange_ == null ? org.sonar.db.protobuf.DbCommons.TextRange.getDefaultInstance() : textRange_;
} else {
return textRangeBuilder_.getMessage();
}
@@ -564,6 +527,7 @@ public final class DbIssues {
public Builder mergeTextRange(org.sonar.db.protobuf.DbCommons.TextRange value) {
if (textRangeBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
+ textRange_ != null &&
textRange_ != org.sonar.db.protobuf.DbCommons.TextRange.getDefaultInstance()) {
textRange_ =
org.sonar.db.protobuf.DbCommons.TextRange.newBuilder(textRange_).mergeFrom(value).buildPartial();
@@ -582,7 +546,7 @@ public final class DbIssues {
*/
public Builder clearTextRange() {
if (textRangeBuilder_ == null) {
- textRange_ = org.sonar.db.protobuf.DbCommons.TextRange.getDefaultInstance();
+ textRange_ = null;
onChanged();
} else {
textRangeBuilder_.clear();
@@ -605,7 +569,8 @@ public final class DbIssues {
if (textRangeBuilder_ != null) {
return textRangeBuilder_.getMessageOrBuilder();
} else {
- return textRange_;
+ return textRange_ == null ?
+ org.sonar.db.protobuf.DbCommons.TextRange.getDefaultInstance() : textRange_;
}
}
/**
@@ -868,12 +833,44 @@ public final class DbIssues {
// @@protoc_insertion_point(builder_scope:sonarqube.db.issues.Locations)
}
+ // @@protoc_insertion_point(class_scope:sonarqube.db.issues.Locations)
+ private static final org.sonar.db.protobuf.DbIssues.Locations DEFAULT_INSTANCE;
static {
- defaultInstance = new Locations(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new org.sonar.db.protobuf.DbIssues.Locations();
+ }
+
+ public static org.sonar.db.protobuf.DbIssues.Locations getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ public static final com.google.protobuf.Parser<Locations> PARSER =
+ new com.google.protobuf.AbstractParser<Locations>() {
+ public Locations parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ try {
+ return new Locations(input, extensionRegistry);
+ } catch (RuntimeException e) {
+ if (e.getCause() instanceof
+ com.google.protobuf.InvalidProtocolBufferException) {
+ throw (com.google.protobuf.InvalidProtocolBufferException)
+ e.getCause();
+ }
+ throw e;
+ }
+ }
+ };
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<Locations> getParserForType() {
+ return PARSER;
+ }
+
+ public org.sonar.db.protobuf.DbIssues.Locations getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:sonarqube.db.issues.Locations)
}
public interface FlowOrBuilder extends
@@ -907,37 +904,27 @@ public final class DbIssues {
/**
* Protobuf type {@code sonarqube.db.issues.Flow}
*/
- public static final class Flow extends
+ public static final class Flow extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:sonarqube.db.issues.Flow)
FlowOrBuilder {
// Use Flow.newBuilder() to construct.
- private Flow(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private Flow(com.google.protobuf.GeneratedMessage.Builder builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
- }
- private Flow(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final Flow defaultInstance;
- public static Flow getDefaultInstance() {
- return defaultInstance;
}
-
- public Flow getDefaultInstanceForType() {
- return defaultInstance;
+ private Flow() {
+ location_ = java.util.Collections.emptyList();
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
+ getUnknownFields() {
return this.unknownFields;
}
private Flow(
com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
+ this();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
@@ -967,10 +954,11 @@ public final class DbIssues {
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
+ throw new RuntimeException(e.setUnfinishedMessage(this));
} catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
+ throw new RuntimeException(
+ new com.google.protobuf.InvalidProtocolBufferException(
+ e.getMessage()).setUnfinishedMessage(this));
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
location_ = java.util.Collections.unmodifiableList(location_);
@@ -991,21 +979,6 @@ public final class DbIssues {
org.sonar.db.protobuf.DbIssues.Flow.class, org.sonar.db.protobuf.DbIssues.Flow.Builder.class);
}
- public static com.google.protobuf.Parser<Flow> PARSER =
- new com.google.protobuf.AbstractParser<Flow>() {
- public Flow parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new Flow(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<Flow> getParserForType() {
- return PARSER;
- }
-
public static final int LOCATION_FIELD_NUMBER = 1;
private java.util.List<org.sonar.db.protobuf.DbIssues.Location> location_;
/**
@@ -1041,9 +1014,6 @@ public final class DbIssues {
return location_.get(index);
}
- private void initFields() {
- location_ = java.util.Collections.emptyList();
- }
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
@@ -1056,11 +1026,10 @@ public final class DbIssues {
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
for (int i = 0; i < location_.size(); i++) {
output.writeMessage(1, location_.get(i));
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
private int memoizedSerializedSize = -1;
@@ -1073,18 +1042,12 @@ public final class DbIssues {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, location_.get(i));
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
- @java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
- }
-
public static org.sonar.db.protobuf.DbIssues.Flow parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -1138,12 +1101,17 @@ public final class DbIssues {
return PARSER.parseFrom(input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
public static Builder newBuilder(org.sonar.db.protobuf.DbIssues.Flow prototype) {
- return newBuilder().mergeFrom(prototype);
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
@@ -1185,10 +1153,6 @@ public final class DbIssues {
getLocationFieldBuilder();
}
}
- private static Builder create() {
- return new Builder();
- }
-
public Builder clear() {
super.clear();
if (locationBuilder_ == null) {
@@ -1200,10 +1164,6 @@ public final class DbIssues {
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.sonar.db.protobuf.DbIssues.internal_static_sonarqube_db_issues_Flow_descriptor;
@@ -1274,7 +1234,8 @@ public final class DbIssues {
}
}
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
@@ -1544,12 +1505,44 @@ public final class DbIssues {
// @@protoc_insertion_point(builder_scope:sonarqube.db.issues.Flow)
}
+ // @@protoc_insertion_point(class_scope:sonarqube.db.issues.Flow)
+ private static final org.sonar.db.protobuf.DbIssues.Flow DEFAULT_INSTANCE;
static {
- defaultInstance = new Flow(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new org.sonar.db.protobuf.DbIssues.Flow();
+ }
+
+ public static org.sonar.db.protobuf.DbIssues.Flow getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ public static final com.google.protobuf.Parser<Flow> PARSER =
+ new com.google.protobuf.AbstractParser<Flow>() {
+ public Flow parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ try {
+ return new Flow(input, extensionRegistry);
+ } catch (RuntimeException e) {
+ if (e.getCause() instanceof
+ com.google.protobuf.InvalidProtocolBufferException) {
+ throw (com.google.protobuf.InvalidProtocolBufferException)
+ e.getCause();
+ }
+ throw e;
+ }
+ }
+ };
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<Flow> getParserForType() {
+ return PARSER;
+ }
+
+ public org.sonar.db.protobuf.DbIssues.Flow getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:sonarqube.db.issues.Flow)
}
public interface LocationOrBuilder extends
@@ -1612,37 +1605,28 @@ public final class DbIssues {
/**
* Protobuf type {@code sonarqube.db.issues.Location}
*/
- public static final class Location extends
+ public static final class Location extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:sonarqube.db.issues.Location)
LocationOrBuilder {
// Use Location.newBuilder() to construct.
- private Location(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private Location(com.google.protobuf.GeneratedMessage.Builder builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
}
- private Location(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final Location defaultInstance;
- public static Location getDefaultInstance() {
- return defaultInstance;
- }
-
- public Location getDefaultInstanceForType() {
- return defaultInstance;
+ private Location() {
+ componentId_ = "";
+ msg_ = "";
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
+ getUnknownFields() {
return this.unknownFields;
}
private Location(
com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
+ this();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
@@ -1689,10 +1673,11 @@ public final class DbIssues {
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
+ throw new RuntimeException(e.setUnfinishedMessage(this));
} catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
+ throw new RuntimeException(
+ new com.google.protobuf.InvalidProtocolBufferException(
+ e.getMessage()).setUnfinishedMessage(this));
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
@@ -1710,24 +1695,9 @@ public final class DbIssues {
org.sonar.db.protobuf.DbIssues.Location.class, org.sonar.db.protobuf.DbIssues.Location.Builder.class);
}
- public static com.google.protobuf.Parser<Location> PARSER =
- new com.google.protobuf.AbstractParser<Location>() {
- public Location parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new Location(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<Location> getParserForType() {
- return PARSER;
- }
-
private int bitField0_;
public static final int COMPONENT_ID_FIELD_NUMBER = 1;
- private java.lang.Object componentId_;
+ private volatile java.lang.Object componentId_;
/**
* <code>optional string component_id = 1;</code>
*/
@@ -1788,7 +1758,7 @@ public final class DbIssues {
* </pre>
*/
public org.sonar.db.protobuf.DbCommons.TextRange getTextRange() {
- return textRange_;
+ return textRange_ == null ? org.sonar.db.protobuf.DbCommons.TextRange.getDefaultInstance() : textRange_;
}
/**
* <code>optional .sonarqube.db.commons.TextRange text_range = 2;</code>
@@ -1798,11 +1768,11 @@ public final class DbIssues {
* </pre>
*/
public org.sonar.db.protobuf.DbCommons.TextRangeOrBuilder getTextRangeOrBuilder() {
- return textRange_;
+ return textRange_ == null ? org.sonar.db.protobuf.DbCommons.TextRange.getDefaultInstance() : textRange_;
}
public static final int MSG_FIELD_NUMBER = 3;
- private java.lang.Object msg_;
+ private volatile java.lang.Object msg_;
/**
* <code>optional string msg = 3;</code>
*/
@@ -1843,11 +1813,6 @@ public final class DbIssues {
}
}
- private void initFields() {
- componentId_ = "";
- textRange_ = org.sonar.db.protobuf.DbCommons.TextRange.getDefaultInstance();
- msg_ = "";
- }
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
@@ -1860,17 +1825,16 @@ public final class DbIssues {
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, getComponentIdBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeMessage(2, textRange_);
+ output.writeMessage(2, getTextRange());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeBytes(3, getMsgBytes());
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
private int memoizedSerializedSize = -1;
@@ -1885,24 +1849,18 @@ public final class DbIssues {
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(2, textRange_);
+ .computeMessageSize(2, getTextRange());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, getMsgBytes());
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
- @java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
- }
-
public static org.sonar.db.protobuf.DbIssues.Location parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -1956,12 +1914,17 @@ public final class DbIssues {
return PARSER.parseFrom(input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
public static Builder newBuilder(org.sonar.db.protobuf.DbIssues.Location prototype) {
- return newBuilder().mergeFrom(prototype);
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
@@ -2003,16 +1966,12 @@ public final class DbIssues {
getTextRangeFieldBuilder();
}
}
- private static Builder create() {
- return new Builder();
- }
-
public Builder clear() {
super.clear();
componentId_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
if (textRangeBuilder_ == null) {
- textRange_ = org.sonar.db.protobuf.DbCommons.TextRange.getDefaultInstance();
+ textRange_ = null;
} else {
textRangeBuilder_.clear();
}
@@ -2022,10 +1981,6 @@ public final class DbIssues {
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.sonar.db.protobuf.DbIssues.internal_static_sonarqube_db_issues_Location_descriptor;
@@ -2092,7 +2047,8 @@ public final class DbIssues {
msg_ = other.msg_;
onChanged();
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
@@ -2195,7 +2151,7 @@ public final class DbIssues {
return this;
}
- private org.sonar.db.protobuf.DbCommons.TextRange textRange_ = org.sonar.db.protobuf.DbCommons.TextRange.getDefaultInstance();
+ private org.sonar.db.protobuf.DbCommons.TextRange textRange_ = null;
private com.google.protobuf.SingleFieldBuilder<
org.sonar.db.protobuf.DbCommons.TextRange, org.sonar.db.protobuf.DbCommons.TextRange.Builder, org.sonar.db.protobuf.DbCommons.TextRangeOrBuilder> textRangeBuilder_;
/**
@@ -2217,7 +2173,7 @@ public final class DbIssues {
*/
public org.sonar.db.protobuf.DbCommons.TextRange getTextRange() {
if (textRangeBuilder_ == null) {
- return textRange_;
+ return textRange_ == null ? org.sonar.db.protobuf.DbCommons.TextRange.getDefaultInstance() : textRange_;
} else {
return textRangeBuilder_.getMessage();
}
@@ -2270,6 +2226,7 @@ public final class DbIssues {
public Builder mergeTextRange(org.sonar.db.protobuf.DbCommons.TextRange value) {
if (textRangeBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002) &&
+ textRange_ != null &&
textRange_ != org.sonar.db.protobuf.DbCommons.TextRange.getDefaultInstance()) {
textRange_ =
org.sonar.db.protobuf.DbCommons.TextRange.newBuilder(textRange_).mergeFrom(value).buildPartial();
@@ -2292,7 +2249,7 @@ public final class DbIssues {
*/
public Builder clearTextRange() {
if (textRangeBuilder_ == null) {
- textRange_ = org.sonar.db.protobuf.DbCommons.TextRange.getDefaultInstance();
+ textRange_ = null;
onChanged();
} else {
textRangeBuilder_.clear();
@@ -2323,7 +2280,8 @@ public final class DbIssues {
if (textRangeBuilder_ != null) {
return textRangeBuilder_.getMessageOrBuilder();
} else {
- return textRange_;
+ return textRange_ == null ?
+ org.sonar.db.protobuf.DbCommons.TextRange.getDefaultInstance() : textRange_;
}
}
/**
@@ -2426,25 +2384,57 @@ public final class DbIssues {
// @@protoc_insertion_point(builder_scope:sonarqube.db.issues.Location)
}
+ // @@protoc_insertion_point(class_scope:sonarqube.db.issues.Location)
+ private static final org.sonar.db.protobuf.DbIssues.Location DEFAULT_INSTANCE;
static {
- defaultInstance = new Location(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new org.sonar.db.protobuf.DbIssues.Location();
+ }
+
+ public static org.sonar.db.protobuf.DbIssues.Location getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ public static final com.google.protobuf.Parser<Location> PARSER =
+ new com.google.protobuf.AbstractParser<Location>() {
+ public Location parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ try {
+ return new Location(input, extensionRegistry);
+ } catch (RuntimeException e) {
+ if (e.getCause() instanceof
+ com.google.protobuf.InvalidProtocolBufferException) {
+ throw (com.google.protobuf.InvalidProtocolBufferException)
+ e.getCause();
+ }
+ throw e;
+ }
+ }
+ };
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<Location> getParserForType() {
+ return PARSER;
+ }
+
+ public org.sonar.db.protobuf.DbIssues.Location getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:sonarqube.db.issues.Location)
}
- private static final com.google.protobuf.Descriptors.Descriptor
+ private static com.google.protobuf.Descriptors.Descriptor
internal_static_sonarqube_db_issues_Locations_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_sonarqube_db_issues_Locations_fieldAccessorTable;
- private static final com.google.protobuf.Descriptors.Descriptor
+ private static com.google.protobuf.Descriptors.Descriptor
internal_static_sonarqube_db_issues_Flow_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_sonarqube_db_issues_Flow_fieldAccessorTable;
- private static final com.google.protobuf.Descriptors.Descriptor
+ private static com.google.protobuf.Descriptors.Descriptor
internal_static_sonarqube_db_issues_Location_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable