diff options
author | Evgeny Mandrikov <mandrikov@gmail.com> | 2015-10-15 05:25:27 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@sonarsource.com> | 2015-10-29 16:12:28 +0100 |
commit | d7d20c58c771f3be6cc44b37dc5b741443beca03 (patch) | |
tree | 076800627d16da483866b467b52eba151d8f8f4b /sonar-db | |
parent | bed7d7f1897ab5f0e2bfa0e4e6ac61e3d413c5dc (diff) | |
download | sonarqube-d7d20c58c771f3be6cc44b37dc5b741443beca03.tar.gz sonarqube-d7d20c58c771f3be6cc44b37dc5b741443beca03.zip |
Execute Protocol Buffer compiler during build
Dependency for compiler selected based on platform. Supported platforms
are Windows/Linux x86/64 and Mac OS. Configuration in root POM to avoid
duplication.
This also makes version of compiler consistent with version of library.
Previously it was 3.0.0-a3 and 3.0.0-beta-1 respectively, now both are
3.0.0-beta-1. And removes all existing auto generated files and scripts
for their creation as well as their traces (such as comments and
exclusions for SonarQube).
Diffstat (limited to 'sonar-db')
-rw-r--r-- | sonar-db/pom.xml | 22 | ||||
-rw-r--r-- | sonar-db/src/main/gen-java/org/sonar/db/protobuf/DbCommons.java | 814 | ||||
-rw-r--r-- | sonar-db/src/main/gen-java/org/sonar/db/protobuf/DbFileSources.java | 5261 | ||||
-rw-r--r-- | sonar-db/src/main/gen-java/org/sonar/db/protobuf/DbIssues.java | 2496 |
4 files changed, 0 insertions, 8593 deletions
diff --git a/sonar-db/pom.xml b/sonar-db/pom.xml index 467d21edfbd..d265a790c6c 100644 --- a/sonar-db/pom.xml +++ b/sonar-db/pom.xml @@ -13,10 +13,6 @@ <name>SonarQube :: Database</name> <description>Create and request SonarQube schema</description> - <properties> - <sonar.exclusions>src/main/gen-java/**/*</sonar.exclusions> - </properties> - <dependencies> <dependency> <groupId>com.google.code.findbugs</groupId> @@ -122,24 +118,6 @@ <build> <plugins> <plugin> - <groupId>org.codehaus.mojo</groupId> - <artifactId>build-helper-maven-plugin</artifactId> - <executions> - <execution> - <id>add-source</id> - <phase>generate-sources</phase> - <goals> - <goal>add-source</goal> - </goals> - <configuration> - <sources> - <source>src/main/gen-java</source> - </sources> - </configuration> - </execution> - </executions> - </plugin> - <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> diff --git a/sonar-db/src/main/gen-java/org/sonar/db/protobuf/DbCommons.java b/sonar-db/src/main/gen-java/org/sonar/db/protobuf/DbCommons.java deleted file mode 100644 index 11d2d85200a..00000000000 --- a/sonar-db/src/main/gen-java/org/sonar/db/protobuf/DbCommons.java +++ /dev/null @@ -1,814 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: db-commons.proto - -package org.sonar.db.protobuf; - -public final class DbCommons { - private DbCommons() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - } - public interface TextRangeOrBuilder extends - // @@protoc_insertion_point(interface_extends:sonarqube.db.commons.TextRange) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>optional int32 start_line = 1;</code> - * - * <pre> - * Start line. Should never be absent - * </pre> - */ - boolean hasStartLine(); - /** - * <code>optional int32 start_line = 1;</code> - * - * <pre> - * Start line. Should never be absent - * </pre> - */ - int getStartLine(); - - /** - * <code>optional int32 end_line = 2;</code> - * - * <pre> - * End line (inclusive). Absent means it is same as start line - * </pre> - */ - boolean hasEndLine(); - /** - * <code>optional int32 end_line = 2;</code> - * - * <pre> - * End line (inclusive). Absent means it is same as start line - * </pre> - */ - int getEndLine(); - - /** - * <code>optional int32 start_offset = 3;</code> - * - * <pre> - * If absent it means range starts at the first offset of start line - * </pre> - */ - boolean hasStartOffset(); - /** - * <code>optional int32 start_offset = 3;</code> - * - * <pre> - * If absent it means range starts at the first offset of start line - * </pre> - */ - int getStartOffset(); - - /** - * <code>optional int32 end_offset = 4;</code> - * - * <pre> - * If absent it means range ends at the last offset of end line - * </pre> - */ - boolean hasEndOffset(); - /** - * <code>optional int32 end_offset = 4;</code> - * - * <pre> - * If absent it means range ends at the last offset of end line - * </pre> - */ - int getEndOffset(); - } - /** - * Protobuf type {@code sonarqube.db.commons.TextRange} - * - * <pre> - * Lines start at 1 and line offsets start at 0 - * </pre> - */ - 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) { - super(builder); - } - private TextRange() { - startLine_ = 0; - endLine_ = 0; - startOffset_ = 0; - endOffset_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TextRange( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - 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; - startLine_ = input.readInt32(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - endLine_ = input.readInt32(); - break; - } - case 24: { - bitField0_ |= 0x00000004; - startOffset_ = input.readInt32(); - break; - } - case 32: { - bitField0_ |= 0x00000008; - endOffset_ = input.readInt32(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonar.db.protobuf.DbCommons.internal_static_sonarqube_db_commons_TextRange_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonar.db.protobuf.DbCommons.internal_static_sonarqube_db_commons_TextRange_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.db.protobuf.DbCommons.TextRange.class, org.sonar.db.protobuf.DbCommons.TextRange.Builder.class); - } - - private int bitField0_; - public static final int START_LINE_FIELD_NUMBER = 1; - private int startLine_; - /** - * <code>optional int32 start_line = 1;</code> - * - * <pre> - * Start line. Should never be absent - * </pre> - */ - public boolean hasStartLine() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * <code>optional int32 start_line = 1;</code> - * - * <pre> - * Start line. Should never be absent - * </pre> - */ - public int getStartLine() { - return startLine_; - } - - public static final int END_LINE_FIELD_NUMBER = 2; - private int endLine_; - /** - * <code>optional int32 end_line = 2;</code> - * - * <pre> - * End line (inclusive). Absent means it is same as start line - * </pre> - */ - public boolean hasEndLine() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * <code>optional int32 end_line = 2;</code> - * - * <pre> - * End line (inclusive). Absent means it is same as start line - * </pre> - */ - public int getEndLine() { - return endLine_; - } - - public static final int START_OFFSET_FIELD_NUMBER = 3; - private int startOffset_; - /** - * <code>optional int32 start_offset = 3;</code> - * - * <pre> - * If absent it means range starts at the first offset of start line - * </pre> - */ - public boolean hasStartOffset() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * <code>optional int32 start_offset = 3;</code> - * - * <pre> - * If absent it means range starts at the first offset of start line - * </pre> - */ - public int getStartOffset() { - return startOffset_; - } - - public static final int END_OFFSET_FIELD_NUMBER = 4; - private int endOffset_; - /** - * <code>optional int32 end_offset = 4;</code> - * - * <pre> - * If absent it means range ends at the last offset of end line - * </pre> - */ - public boolean hasEndOffset() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * <code>optional int32 end_offset = 4;</code> - * - * <pre> - * If absent it means range ends at the last offset of end line - * </pre> - */ - public int getEndOffset() { - return endOffset_; - } - - 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 { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeInt32(1, startLine_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeInt32(2, endLine_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeInt32(3, startOffset_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeInt32(4, endOffset_); - } - unknownFields.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, startLine_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, endLine_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, startOffset_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(4, endOffset_); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonar.db.protobuf.DbCommons.TextRange parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonar.db.protobuf.DbCommons.TextRange parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonar.db.protobuf.DbCommons.TextRange parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonar.db.protobuf.DbCommons.TextRange parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonar.db.protobuf.DbCommons.TextRange parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonar.db.protobuf.DbCommons.TextRange parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonar.db.protobuf.DbCommons.TextRange parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonar.db.protobuf.DbCommons.TextRange parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonar.db.protobuf.DbCommons.TextRange parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonar.db.protobuf.DbCommons.TextRange parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - 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 DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code sonarqube.db.commons.TextRange} - * - * <pre> - * Lines start at 1 and line offsets start at 0 - * </pre> - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:sonarqube.db.commons.TextRange) - org.sonar.db.protobuf.DbCommons.TextRangeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonar.db.protobuf.DbCommons.internal_static_sonarqube_db_commons_TextRange_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonar.db.protobuf.DbCommons.internal_static_sonarqube_db_commons_TextRange_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.db.protobuf.DbCommons.TextRange.class, org.sonar.db.protobuf.DbCommons.TextRange.Builder.class); - } - - // Construct using org.sonar.db.protobuf.DbCommons.TextRange.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - startLine_ = 0; - bitField0_ = (bitField0_ & ~0x00000001); - endLine_ = 0; - bitField0_ = (bitField0_ & ~0x00000002); - startOffset_ = 0; - bitField0_ = (bitField0_ & ~0x00000004); - endOffset_ = 0; - bitField0_ = (bitField0_ & ~0x00000008); - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonar.db.protobuf.DbCommons.internal_static_sonarqube_db_commons_TextRange_descriptor; - } - - public org.sonar.db.protobuf.DbCommons.TextRange getDefaultInstanceForType() { - return org.sonar.db.protobuf.DbCommons.TextRange.getDefaultInstance(); - } - - public org.sonar.db.protobuf.DbCommons.TextRange build() { - org.sonar.db.protobuf.DbCommons.TextRange result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonar.db.protobuf.DbCommons.TextRange buildPartial() { - org.sonar.db.protobuf.DbCommons.TextRange result = new org.sonar.db.protobuf.DbCommons.TextRange(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.startLine_ = startLine_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.endLine_ = endLine_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.startOffset_ = startOffset_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } - result.endOffset_ = endOffset_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonar.db.protobuf.DbCommons.TextRange) { - return mergeFrom((org.sonar.db.protobuf.DbCommons.TextRange)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonar.db.protobuf.DbCommons.TextRange other) { - if (other == org.sonar.db.protobuf.DbCommons.TextRange.getDefaultInstance()) return this; - if (other.hasStartLine()) { - setStartLine(other.getStartLine()); - } - if (other.hasEndLine()) { - setEndLine(other.getEndLine()); - } - if (other.hasStartOffset()) { - setStartOffset(other.getStartOffset()); - } - if (other.hasEndOffset()) { - setEndOffset(other.getEndOffset()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonar.db.protobuf.DbCommons.TextRange parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonar.db.protobuf.DbCommons.TextRange) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int startLine_ ; - /** - * <code>optional int32 start_line = 1;</code> - * - * <pre> - * Start line. Should never be absent - * </pre> - */ - public boolean hasStartLine() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * <code>optional int32 start_line = 1;</code> - * - * <pre> - * Start line. Should never be absent - * </pre> - */ - public int getStartLine() { - return startLine_; - } - /** - * <code>optional int32 start_line = 1;</code> - * - * <pre> - * Start line. Should never be absent - * </pre> - */ - public Builder setStartLine(int value) { - bitField0_ |= 0x00000001; - startLine_ = value; - onChanged(); - return this; - } - /** - * <code>optional int32 start_line = 1;</code> - * - * <pre> - * Start line. Should never be absent - * </pre> - */ - public Builder clearStartLine() { - bitField0_ = (bitField0_ & ~0x00000001); - startLine_ = 0; - onChanged(); - return this; - } - - private int endLine_ ; - /** - * <code>optional int32 end_line = 2;</code> - * - * <pre> - * End line (inclusive). Absent means it is same as start line - * </pre> - */ - public boolean hasEndLine() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * <code>optional int32 end_line = 2;</code> - * - * <pre> - * End line (inclusive). Absent means it is same as start line - * </pre> - */ - public int getEndLine() { - return endLine_; - } - /** - * <code>optional int32 end_line = 2;</code> - * - * <pre> - * End line (inclusive). Absent means it is same as start line - * </pre> - */ - public Builder setEndLine(int value) { - bitField0_ |= 0x00000002; - endLine_ = value; - onChanged(); - return this; - } - /** - * <code>optional int32 end_line = 2;</code> - * - * <pre> - * End line (inclusive). Absent means it is same as start line - * </pre> - */ - public Builder clearEndLine() { - bitField0_ = (bitField0_ & ~0x00000002); - endLine_ = 0; - onChanged(); - return this; - } - - private int startOffset_ ; - /** - * <code>optional int32 start_offset = 3;</code> - * - * <pre> - * If absent it means range starts at the first offset of start line - * </pre> - */ - public boolean hasStartOffset() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * <code>optional int32 start_offset = 3;</code> - * - * <pre> - * If absent it means range starts at the first offset of start line - * </pre> - */ - public int getStartOffset() { - return startOffset_; - } - /** - * <code>optional int32 start_offset = 3;</code> - * - * <pre> - * If absent it means range starts at the first offset of start line - * </pre> - */ - public Builder setStartOffset(int value) { - bitField0_ |= 0x00000004; - startOffset_ = value; - onChanged(); - return this; - } - /** - * <code>optional int32 start_offset = 3;</code> - * - * <pre> - * If absent it means range starts at the first offset of start line - * </pre> - */ - public Builder clearStartOffset() { - bitField0_ = (bitField0_ & ~0x00000004); - startOffset_ = 0; - onChanged(); - return this; - } - - private int endOffset_ ; - /** - * <code>optional int32 end_offset = 4;</code> - * - * <pre> - * If absent it means range ends at the last offset of end line - * </pre> - */ - public boolean hasEndOffset() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * <code>optional int32 end_offset = 4;</code> - * - * <pre> - * If absent it means range ends at the last offset of end line - * </pre> - */ - public int getEndOffset() { - return endOffset_; - } - /** - * <code>optional int32 end_offset = 4;</code> - * - * <pre> - * If absent it means range ends at the last offset of end line - * </pre> - */ - public Builder setEndOffset(int value) { - bitField0_ |= 0x00000008; - endOffset_ = value; - onChanged(); - return this; - } - /** - * <code>optional int32 end_offset = 4;</code> - * - * <pre> - * If absent it means range ends at the last offset of end line - * </pre> - */ - public Builder clearEndOffset() { - bitField0_ = (bitField0_ & ~0x00000008); - endOffset_ = 0; - onChanged(); - return this; - } - - // @@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 { - 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; - } - - } - - private static com.google.protobuf.Descriptors.Descriptor - internal_static_sonarqube_db_commons_TextRange_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_sonarqube_db_commons_TextRange_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\020db-commons.proto\022\024sonarqube.db.commons" + - "\"[\n\tTextRange\022\022\n\nstart_line\030\001 \001(\005\022\020\n\010end" + - "_line\030\002 \001(\005\022\024\n\014start_offset\030\003 \001(\005\022\022\n\nend" + - "_offset\030\004 \001(\005B\031\n\025org.sonar.db.protobufH\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_sonarqube_db_commons_TextRange_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_sonarqube_db_commons_TextRange_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_sonarqube_db_commons_TextRange_descriptor, - new java.lang.String[] { "StartLine", "EndLine", "StartOffset", "EndOffset", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} 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 deleted file mode 100644 index 165dc22f58f..00000000000 --- a/sonar-db/src/main/gen-java/org/sonar/db/protobuf/DbFileSources.java +++ /dev/null @@ -1,5261 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: db-file-sources.proto - -package org.sonar.db.protobuf; - -public final class DbFileSources { - private DbFileSources() {} - 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); - } - 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(); - } - - @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) { - this(); - 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 new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - if (((mutable_bitField0_ & 0x00010000) == 0x00010000)) { - duplication_ = java.util.Collections.unmodifiableList(duplication_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonar.db.protobuf.DbFileSources.internal_static_org_sonar_server_source_db_Line_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonar.db.protobuf.DbFileSources.internal_static_org_sonar_server_source_db_Line_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.db.protobuf.DbFileSources.Line.class, org.sonar.db.protobuf.DbFileSources.Line.Builder.class); - } - - 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 volatile 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 volatile 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 volatile 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 volatile 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 volatile 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 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)); - } - unknownFields.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 += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonar.db.protobuf.DbFileSources.Line parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonar.db.protobuf.DbFileSources.Line parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonar.db.protobuf.DbFileSources.Line parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonar.db.protobuf.DbFileSources.Line parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonar.db.protobuf.DbFileSources.Line parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonar.db.protobuf.DbFileSources.Line parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonar.db.protobuf.DbFileSources.Line parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonar.db.protobuf.DbFileSources.Line parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonar.db.protobuf.DbFileSources.Line parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonar.db.protobuf.DbFileSources.Line parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - 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 DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code org.sonar.server.source.db.Line} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:org.sonar.server.source.db.Line) - org.sonar.db.protobuf.DbFileSources.LineOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonar.db.protobuf.DbFileSources.internal_static_org_sonar_server_source_db_Line_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonar.db.protobuf.DbFileSources.internal_static_org_sonar_server_source_db_Line_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.db.protobuf.DbFileSources.Line.class, org.sonar.db.protobuf.DbFileSources.Line.Builder.class); - } - - // Construct using org.sonar.db.protobuf.DbFileSources.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) { - } - } - 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 com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonar.db.protobuf.DbFileSources.internal_static_org_sonar_server_source_db_Line_descriptor; - } - - public org.sonar.db.protobuf.DbFileSources.Line getDefaultInstanceForType() { - return org.sonar.db.protobuf.DbFileSources.Line.getDefaultInstance(); - } - - public org.sonar.db.protobuf.DbFileSources.Line build() { - org.sonar.db.protobuf.DbFileSources.Line result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonar.db.protobuf.DbFileSources.Line buildPartial() { - org.sonar.db.protobuf.DbFileSources.Line result = new org.sonar.db.protobuf.DbFileSources.Line(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.line_ = line_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.source_ = source_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.scmRevision_ = scmRevision_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } - result.scmAuthor_ = scmAuthor_; - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { - to_bitField0_ |= 0x00000010; - } - result.scmDate_ = scmDate_; - if (((from_bitField0_ & 0x00000020) == 0x00000020)) { - to_bitField0_ |= 0x00000020; - } - result.utLineHits_ = utLineHits_; - if (((from_bitField0_ & 0x00000040) == 0x00000040)) { - to_bitField0_ |= 0x00000040; - } - result.utConditions_ = utConditions_; - if (((from_bitField0_ & 0x00000080) == 0x00000080)) { - to_bitField0_ |= 0x00000080; - } - result.utCoveredConditions_ = utCoveredConditions_; - if (((from_bitField0_ & 0x00000100) == 0x00000100)) { - to_bitField0_ |= 0x00000100; - } - result.itLineHits_ = itLineHits_; - if (((from_bitField0_ & 0x00000200) == 0x00000200)) { - to_bitField0_ |= 0x00000200; - } - result.itConditions_ = itConditions_; - if (((from_bitField0_ & 0x00000400) == 0x00000400)) { - to_bitField0_ |= 0x00000400; - } - result.itCoveredConditions_ = itCoveredConditions_; - if (((from_bitField0_ & 0x00000800) == 0x00000800)) { - to_bitField0_ |= 0x00000800; - } - result.overallLineHits_ = overallLineHits_; - if (((from_bitField0_ & 0x00001000) == 0x00001000)) { - to_bitField0_ |= 0x00001000; - } - result.overallConditions_ = overallConditions_; - if (((from_bitField0_ & 0x00002000) == 0x00002000)) { - to_bitField0_ |= 0x00002000; - } - result.overallCoveredConditions_ = overallCoveredConditions_; - if (((from_bitField0_ & 0x00004000) == 0x00004000)) { - to_bitField0_ |= 0x00004000; - } - result.highlighting_ = highlighting_; - if (((from_bitField0_ & 0x00008000) == 0x00008000)) { - to_bitField0_ |= 0x00008000; - } - result.symbols_ = symbols_; - if (((bitField0_ & 0x00010000) == 0x00010000)) { - duplication_ = java.util.Collections.unmodifiableList(duplication_); - bitField0_ = (bitField0_ & ~0x00010000); - } - result.duplication_ = duplication_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonar.db.protobuf.DbFileSources.Line) { - return mergeFrom((org.sonar.db.protobuf.DbFileSources.Line)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonar.db.protobuf.DbFileSources.Line other) { - if (other == org.sonar.db.protobuf.DbFileSources.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.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonar.db.protobuf.DbFileSources.Line parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonar.db.protobuf.DbFileSources.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) - } - - // @@protoc_insertion_point(class_scope:org.sonar.server.source.db.Line) - private static final org.sonar.db.protobuf.DbFileSources.Line DEFAULT_INSTANCE; - static { - 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; - } - - } - - public interface DataOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.sonar.server.source.db.Data) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code> - */ - java.util.List<org.sonar.db.protobuf.DbFileSources.Line> - getLinesList(); - /** - * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code> - */ - org.sonar.db.protobuf.DbFileSources.Line getLines(int index); - /** - * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code> - */ - int getLinesCount(); - /** - * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code> - */ - java.util.List<? extends org.sonar.db.protobuf.DbFileSources.LineOrBuilder> - getLinesOrBuilderList(); - /** - * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code> - */ - org.sonar.db.protobuf.DbFileSources.LineOrBuilder getLinesOrBuilder( - int index); - } - /** - * Protobuf type {@code org.sonar.server.source.db.Data} - * - * <pre> - * TODO should be dropped as it prevents streaming - * </pre> - */ - public static final class Data extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:org.sonar.server.source.db.Data) - DataOrBuilder { - // Use Data.newBuilder() to construct. - private Data(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Data() { - lines_ = java.util.Collections.emptyList(); - } - - @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) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - lines_ = new java.util.ArrayList<org.sonar.db.protobuf.DbFileSources.Line>(); - mutable_bitField0_ |= 0x00000001; - } - lines_.add(input.readMessage(org.sonar.db.protobuf.DbFileSources.Line.PARSER, extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - lines_ = java.util.Collections.unmodifiableList(lines_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonar.db.protobuf.DbFileSources.internal_static_org_sonar_server_source_db_Data_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonar.db.protobuf.DbFileSources.internal_static_org_sonar_server_source_db_Data_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.db.protobuf.DbFileSources.Data.class, org.sonar.db.protobuf.DbFileSources.Data.Builder.class); - } - - public static final int LINES_FIELD_NUMBER = 1; - private java.util.List<org.sonar.db.protobuf.DbFileSources.Line> lines_; - /** - * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code> - */ - public java.util.List<org.sonar.db.protobuf.DbFileSources.Line> getLinesList() { - return lines_; - } - /** - * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code> - */ - public java.util.List<? extends org.sonar.db.protobuf.DbFileSources.LineOrBuilder> - getLinesOrBuilderList() { - return lines_; - } - /** - * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code> - */ - public int getLinesCount() { - return lines_.size(); - } - /** - * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code> - */ - public org.sonar.db.protobuf.DbFileSources.Line getLines(int index) { - return lines_.get(index); - } - /** - * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code> - */ - public org.sonar.db.protobuf.DbFileSources.LineOrBuilder getLinesOrBuilder( - int index) { - return lines_.get(index); - } - - 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 { - for (int i = 0; i < lines_.size(); i++) { - output.writeMessage(1, lines_.get(i)); - } - unknownFields.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 += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonar.db.protobuf.DbFileSources.Data parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonar.db.protobuf.DbFileSources.Data parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonar.db.protobuf.DbFileSources.Data parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonar.db.protobuf.DbFileSources.Data parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonar.db.protobuf.DbFileSources.Data parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonar.db.protobuf.DbFileSources.Data parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonar.db.protobuf.DbFileSources.Data parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonar.db.protobuf.DbFileSources.Data parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonar.db.protobuf.DbFileSources.Data parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonar.db.protobuf.DbFileSources.Data parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - 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 DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code org.sonar.server.source.db.Data} - * - * <pre> - * TODO should be dropped as it prevents streaming - * </pre> - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:org.sonar.server.source.db.Data) - org.sonar.db.protobuf.DbFileSources.DataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonar.db.protobuf.DbFileSources.internal_static_org_sonar_server_source_db_Data_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonar.db.protobuf.DbFileSources.internal_static_org_sonar_server_source_db_Data_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.db.protobuf.DbFileSources.Data.class, org.sonar.db.protobuf.DbFileSources.Data.Builder.class); - } - - // Construct using org.sonar.db.protobuf.DbFileSources.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(); - } - } - public Builder clear() { - super.clear(); - if (linesBuilder_ == null) { - lines_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - linesBuilder_.clear(); - } - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonar.db.protobuf.DbFileSources.internal_static_org_sonar_server_source_db_Data_descriptor; - } - - public org.sonar.db.protobuf.DbFileSources.Data getDefaultInstanceForType() { - return org.sonar.db.protobuf.DbFileSources.Data.getDefaultInstance(); - } - - public org.sonar.db.protobuf.DbFileSources.Data build() { - org.sonar.db.protobuf.DbFileSources.Data result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonar.db.protobuf.DbFileSources.Data buildPartial() { - org.sonar.db.protobuf.DbFileSources.Data result = new org.sonar.db.protobuf.DbFileSources.Data(this); - int from_bitField0_ = bitField0_; - if (linesBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - lines_ = java.util.Collections.unmodifiableList(lines_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.lines_ = lines_; - } else { - result.lines_ = linesBuilder_.build(); - } - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonar.db.protobuf.DbFileSources.Data) { - return mergeFrom((org.sonar.db.protobuf.DbFileSources.Data)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonar.db.protobuf.DbFileSources.Data other) { - if (other == org.sonar.db.protobuf.DbFileSources.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.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonar.db.protobuf.DbFileSources.Data parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonar.db.protobuf.DbFileSources.Data) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List<org.sonar.db.protobuf.DbFileSources.Line> lines_ = - java.util.Collections.emptyList(); - private void ensureLinesIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - lines_ = new java.util.ArrayList<org.sonar.db.protobuf.DbFileSources.Line>(lines_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - org.sonar.db.protobuf.DbFileSources.Line, org.sonar.db.protobuf.DbFileSources.Line.Builder, org.sonar.db.protobuf.DbFileSources.LineOrBuilder> linesBuilder_; - - /** - * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code> - */ - public java.util.List<org.sonar.db.protobuf.DbFileSources.Line> getLinesList() { - if (linesBuilder_ == null) { - return java.util.Collections.unmodifiableList(lines_); - } else { - return linesBuilder_.getMessageList(); - } - } - /** - * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code> - */ - public int getLinesCount() { - if (linesBuilder_ == null) { - return lines_.size(); - } else { - return linesBuilder_.getCount(); - } - } - /** - * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code> - */ - public org.sonar.db.protobuf.DbFileSources.Line getLines(int index) { - if (linesBuilder_ == null) { - return lines_.get(index); - } else { - return linesBuilder_.getMessage(index); - } - } - /** - * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code> - */ - public Builder setLines( - int index, org.sonar.db.protobuf.DbFileSources.Line value) { - if (linesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLinesIsMutable(); - lines_.set(index, value); - onChanged(); - } else { - linesBuilder_.setMessage(index, value); - } - return this; - } - /** - * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code> - */ - public Builder setLines( - int index, org.sonar.db.protobuf.DbFileSources.Line.Builder builderForValue) { - if (linesBuilder_ == null) { - ensureLinesIsMutable(); - lines_.set(index, builderForValue.build()); - onChanged(); - } else { - linesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code> - */ - public Builder addLines(org.sonar.db.protobuf.DbFileSources.Line value) { - if (linesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLinesIsMutable(); - lines_.add(value); - onChanged(); - } else { - linesBuilder_.addMessage(value); - } - return this; - } - /** - * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code> - */ - public Builder addLines( - int index, org.sonar.db.protobuf.DbFileSources.Line value) { - if (linesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLinesIsMutable(); - lines_.add(index, value); - onChanged(); - } else { - linesBuilder_.addMessage(index, value); - } - return this; - } - /** - * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code> - */ - public Builder addLines( - org.sonar.db.protobuf.DbFileSources.Line.Builder builderForValue) { - if (linesBuilder_ == null) { - ensureLinesIsMutable(); - lines_.add(builderForValue.build()); - onChanged(); - } else { - linesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code> - */ - public Builder addLines( - int index, org.sonar.db.protobuf.DbFileSources.Line.Builder builderForValue) { - if (linesBuilder_ == null) { - ensureLinesIsMutable(); - lines_.add(index, builderForValue.build()); - onChanged(); - } else { - linesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code> - */ - public Builder addAllLines( - java.lang.Iterable<? extends org.sonar.db.protobuf.DbFileSources.Line> values) { - if (linesBuilder_ == null) { - ensureLinesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, lines_); - onChanged(); - } else { - linesBuilder_.addAllMessages(values); - } - return this; - } - /** - * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code> - */ - public Builder clearLines() { - if (linesBuilder_ == null) { - lines_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - linesBuilder_.clear(); - } - return this; - } - /** - * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code> - */ - public Builder removeLines(int index) { - if (linesBuilder_ == null) { - ensureLinesIsMutable(); - lines_.remove(index); - onChanged(); - } else { - linesBuilder_.remove(index); - } - return this; - } - /** - * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code> - */ - public org.sonar.db.protobuf.DbFileSources.Line.Builder getLinesBuilder( - int index) { - return getLinesFieldBuilder().getBuilder(index); - } - /** - * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code> - */ - public org.sonar.db.protobuf.DbFileSources.LineOrBuilder getLinesOrBuilder( - int index) { - if (linesBuilder_ == null) { - return lines_.get(index); } else { - return linesBuilder_.getMessageOrBuilder(index); - } - } - /** - * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code> - */ - public java.util.List<? extends org.sonar.db.protobuf.DbFileSources.LineOrBuilder> - getLinesOrBuilderList() { - if (linesBuilder_ != null) { - return linesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(lines_); - } - } - /** - * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code> - */ - public org.sonar.db.protobuf.DbFileSources.Line.Builder addLinesBuilder() { - return getLinesFieldBuilder().addBuilder( - org.sonar.db.protobuf.DbFileSources.Line.getDefaultInstance()); - } - /** - * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code> - */ - public org.sonar.db.protobuf.DbFileSources.Line.Builder addLinesBuilder( - int index) { - return getLinesFieldBuilder().addBuilder( - index, org.sonar.db.protobuf.DbFileSources.Line.getDefaultInstance()); - } - /** - * <code>repeated .org.sonar.server.source.db.Line lines = 1;</code> - */ - public java.util.List<org.sonar.db.protobuf.DbFileSources.Line.Builder> - getLinesBuilderList() { - return getLinesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - org.sonar.db.protobuf.DbFileSources.Line, org.sonar.db.protobuf.DbFileSources.Line.Builder, org.sonar.db.protobuf.DbFileSources.LineOrBuilder> - getLinesFieldBuilder() { - if (linesBuilder_ == null) { - linesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - org.sonar.db.protobuf.DbFileSources.Line, org.sonar.db.protobuf.DbFileSources.Line.Builder, org.sonar.db.protobuf.DbFileSources.LineOrBuilder>( - lines_, - ((bitField0_ & 0x00000001) == 0x00000001), - getParentForChildren(), - isClean()); - lines_ = null; - } - return linesBuilder_; - } - - // @@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 { - 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; - } - - } - - public interface TestOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.sonar.server.source.db.Test) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>optional string uuid = 1;</code> - */ - boolean hasUuid(); - /** - * <code>optional string uuid = 1;</code> - */ - java.lang.String getUuid(); - /** - * <code>optional string uuid = 1;</code> - */ - com.google.protobuf.ByteString - getUuidBytes(); - - /** - * <code>optional string name = 2;</code> - */ - boolean hasName(); - /** - * <code>optional string name = 2;</code> - */ - java.lang.String getName(); - /** - * <code>optional string name = 2;</code> - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - * <code>optional .org.sonar.server.source.db.Test.TestStatus status = 3;</code> - */ - boolean hasStatus(); - /** - * <code>optional .org.sonar.server.source.db.Test.TestStatus status = 3;</code> - */ - org.sonar.db.protobuf.DbFileSources.Test.TestStatus getStatus(); - - /** - * <code>optional int64 execution_time_ms = 4;</code> - */ - boolean hasExecutionTimeMs(); - /** - * <code>optional int64 execution_time_ms = 4;</code> - */ - long getExecutionTimeMs(); - - /** - * <code>optional string stacktrace = 5;</code> - */ - boolean hasStacktrace(); - /** - * <code>optional string stacktrace = 5;</code> - */ - java.lang.String getStacktrace(); - /** - * <code>optional string stacktrace = 5;</code> - */ - com.google.protobuf.ByteString - getStacktraceBytes(); - - /** - * <code>optional string msg = 6;</code> - */ - boolean hasMsg(); - /** - * <code>optional string msg = 6;</code> - */ - java.lang.String getMsg(); - /** - * <code>optional string msg = 6;</code> - */ - com.google.protobuf.ByteString - getMsgBytes(); - - /** - * <code>repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7;</code> - */ - java.util.List<org.sonar.db.protobuf.DbFileSources.Test.CoveredFile> - getCoveredFileList(); - /** - * <code>repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7;</code> - */ - org.sonar.db.protobuf.DbFileSources.Test.CoveredFile getCoveredFile(int index); - /** - * <code>repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7;</code> - */ - int getCoveredFileCount(); - /** - * <code>repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7;</code> - */ - java.util.List<? extends org.sonar.db.protobuf.DbFileSources.Test.CoveredFileOrBuilder> - getCoveredFileOrBuilderList(); - /** - * <code>repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7;</code> - */ - org.sonar.db.protobuf.DbFileSources.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); - } - private Test() { - uuid_ = ""; - name_ = ""; - status_ = 1; - executionTimeMs_ = 0L; - stacktrace_ = ""; - msg_ = ""; - coveredFile_ = java.util.Collections.emptyList(); - } - - @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) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000001; - uuid_ = bs; - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - name_ = bs; - break; - } - case 24: { - int rawValue = input.readEnum(); - org.sonar.db.protobuf.DbFileSources.Test.TestStatus value = org.sonar.db.protobuf.DbFileSources.Test.TestStatus.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(3, rawValue); - } else { - bitField0_ |= 0x00000004; - status_ = rawValue; - } - break; - } - case 32: { - bitField0_ |= 0x00000008; - executionTimeMs_ = input.readInt64(); - break; - } - case 42: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000010; - stacktrace_ = bs; - break; - } - case 50: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000020; - msg_ = bs; - break; - } - case 58: { - if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { - coveredFile_ = new java.util.ArrayList<org.sonar.db.protobuf.DbFileSources.Test.CoveredFile>(); - mutable_bitField0_ |= 0x00000040; - } - coveredFile_.add(input.readMessage(org.sonar.db.protobuf.DbFileSources.Test.CoveredFile.PARSER, extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) { - coveredFile_ = java.util.Collections.unmodifiableList(coveredFile_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonar.db.protobuf.DbFileSources.internal_static_org_sonar_server_source_db_Test_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonar.db.protobuf.DbFileSources.internal_static_org_sonar_server_source_db_Test_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.db.protobuf.DbFileSources.Test.class, org.sonar.db.protobuf.DbFileSources.Test.Builder.class); - } - - /** - * Protobuf enum {@code org.sonar.server.source.db.Test.TestStatus} - */ - public enum TestStatus - implements com.google.protobuf.ProtocolMessageEnum { - /** - * <code>OK = 1;</code> - */ - OK(0, 1), - /** - * <code>FAILURE = 2;</code> - */ - FAILURE(1, 2), - /** - * <code>ERROR = 3;</code> - */ - ERROR(2, 3), - /** - * <code>SKIPPED = 4;</code> - */ - SKIPPED(3, 4), - ; - - /** - * <code>OK = 1;</code> - */ - public static final int OK_VALUE = 1; - /** - * <code>FAILURE = 2;</code> - */ - public static final int FAILURE_VALUE = 2; - /** - * <code>ERROR = 3;</code> - */ - public static final int ERROR_VALUE = 3; - /** - * <code>SKIPPED = 4;</code> - */ - public static final int SKIPPED_VALUE = 4; - - - public final int getNumber() { - return value; - } - - public static TestStatus valueOf(int value) { - switch (value) { - case 1: return OK; - case 2: return FAILURE; - case 3: return ERROR; - case 4: return SKIPPED; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap<TestStatus> - internalGetValueMap() { - return internalValueMap; - } - private static com.google.protobuf.Internal.EnumLiteMap<TestStatus> - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap<TestStatus>() { - public TestStatus findValueByNumber(int number) { - return TestStatus.valueOf(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(index); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return org.sonar.db.protobuf.DbFileSources.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); - } - private CoveredFile() { - fileUuid_ = ""; - coveredLine_ = java.util.Collections.emptyList(); - } - - @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) { - this(); - 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 new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - coveredLine_ = java.util.Collections.unmodifiableList(coveredLine_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonar.db.protobuf.DbFileSources.internal_static_org_sonar_server_source_db_Test_CoveredFile_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonar.db.protobuf.DbFileSources.internal_static_org_sonar_server_source_db_Test_CoveredFile_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.db.protobuf.DbFileSources.Test.CoveredFile.class, org.sonar.db.protobuf.DbFileSources.Test.CoveredFile.Builder.class); - } - - private int bitField0_; - public static final int FILE_UUID_FIELD_NUMBER = 1; - private volatile 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 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)); - } - unknownFields.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 += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonar.db.protobuf.DbFileSources.Test.CoveredFile parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonar.db.protobuf.DbFileSources.Test.CoveredFile parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonar.db.protobuf.DbFileSources.Test.CoveredFile parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonar.db.protobuf.DbFileSources.Test.CoveredFile parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonar.db.protobuf.DbFileSources.Test.CoveredFile parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonar.db.protobuf.DbFileSources.Test.CoveredFile parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonar.db.protobuf.DbFileSources.Test.CoveredFile parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonar.db.protobuf.DbFileSources.Test.CoveredFile parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonar.db.protobuf.DbFileSources.Test.CoveredFile parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonar.db.protobuf.DbFileSources.Test.CoveredFile parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - 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 DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code org.sonar.server.source.db.Test.CoveredFile} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:org.sonar.server.source.db.Test.CoveredFile) - org.sonar.db.protobuf.DbFileSources.Test.CoveredFileOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonar.db.protobuf.DbFileSources.internal_static_org_sonar_server_source_db_Test_CoveredFile_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonar.db.protobuf.DbFileSources.internal_static_org_sonar_server_source_db_Test_CoveredFile_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.db.protobuf.DbFileSources.Test.CoveredFile.class, org.sonar.db.protobuf.DbFileSources.Test.CoveredFile.Builder.class); - } - - // Construct using org.sonar.db.protobuf.DbFileSources.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) { - } - } - public Builder clear() { - super.clear(); - fileUuid_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - coveredLine_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonar.db.protobuf.DbFileSources.internal_static_org_sonar_server_source_db_Test_CoveredFile_descriptor; - } - - public org.sonar.db.protobuf.DbFileSources.Test.CoveredFile getDefaultInstanceForType() { - return org.sonar.db.protobuf.DbFileSources.Test.CoveredFile.getDefaultInstance(); - } - - public org.sonar.db.protobuf.DbFileSources.Test.CoveredFile build() { - org.sonar.db.protobuf.DbFileSources.Test.CoveredFile result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonar.db.protobuf.DbFileSources.Test.CoveredFile buildPartial() { - org.sonar.db.protobuf.DbFileSources.Test.CoveredFile result = new org.sonar.db.protobuf.DbFileSources.Test.CoveredFile(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.fileUuid_ = fileUuid_; - if (((bitField0_ & 0x00000002) == 0x00000002)) { - coveredLine_ = java.util.Collections.unmodifiableList(coveredLine_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.coveredLine_ = coveredLine_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonar.db.protobuf.DbFileSources.Test.CoveredFile) { - return mergeFrom((org.sonar.db.protobuf.DbFileSources.Test.CoveredFile)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonar.db.protobuf.DbFileSources.Test.CoveredFile other) { - if (other == org.sonar.db.protobuf.DbFileSources.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.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonar.db.protobuf.DbFileSources.Test.CoveredFile parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonar.db.protobuf.DbFileSources.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) - } - - // @@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 { - 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; - } - - } - - private int bitField0_; - public static final int UUID_FIELD_NUMBER = 1; - private volatile 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 volatile 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 int status_; - /** - * <code>optional .org.sonar.server.source.db.Test.TestStatus status = 3;</code> - */ - public boolean hasStatus() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * <code>optional .org.sonar.server.source.db.Test.TestStatus status = 3;</code> - */ - public org.sonar.db.protobuf.DbFileSources.Test.TestStatus getStatus() { - 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; - 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 volatile 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 volatile java.lang.Object msg_; - /** - * <code>optional string msg = 6;</code> - */ - public boolean hasMsg() { - return ((bitField0_ & 0x00000020) == 0x00000020); - } - /** - * <code>optional string msg = 6;</code> - */ - public java.lang.String getMsg() { - java.lang.Object ref = msg_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - msg_ = s; - } - return s; - } - } - /** - * <code>optional string msg = 6;</code> - */ - public com.google.protobuf.ByteString - getMsgBytes() { - java.lang.Object ref = msg_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - msg_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int COVERED_FILE_FIELD_NUMBER = 7; - private java.util.List<org.sonar.db.protobuf.DbFileSources.Test.CoveredFile> coveredFile_; - /** - * <code>repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7;</code> - */ - public java.util.List<org.sonar.db.protobuf.DbFileSources.Test.CoveredFile> getCoveredFileList() { - return coveredFile_; - } - /** - * <code>repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7;</code> - */ - public java.util.List<? extends org.sonar.db.protobuf.DbFileSources.Test.CoveredFileOrBuilder> - getCoveredFileOrBuilderList() { - return coveredFile_; - } - /** - * <code>repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7;</code> - */ - public int getCoveredFileCount() { - return coveredFile_.size(); - } - /** - * <code>repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7;</code> - */ - public org.sonar.db.protobuf.DbFileSources.Test.CoveredFile getCoveredFile(int index) { - return coveredFile_.get(index); - } - /** - * <code>repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7;</code> - */ - public org.sonar.db.protobuf.DbFileSources.Test.CoveredFileOrBuilder getCoveredFileOrBuilder( - int index) { - return coveredFile_.get(index); - } - - 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 { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getUuidBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getNameBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeEnum(3, status_); - } - 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)); - } - unknownFields.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_); - } - 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 += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonar.db.protobuf.DbFileSources.Test parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonar.db.protobuf.DbFileSources.Test parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonar.db.protobuf.DbFileSources.Test parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonar.db.protobuf.DbFileSources.Test parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonar.db.protobuf.DbFileSources.Test parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonar.db.protobuf.DbFileSources.Test parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonar.db.protobuf.DbFileSources.Test parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonar.db.protobuf.DbFileSources.Test parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonar.db.protobuf.DbFileSources.Test parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonar.db.protobuf.DbFileSources.Test parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - 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 DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code org.sonar.server.source.db.Test} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:org.sonar.server.source.db.Test) - org.sonar.db.protobuf.DbFileSources.TestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonar.db.protobuf.DbFileSources.internal_static_org_sonar_server_source_db_Test_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonar.db.protobuf.DbFileSources.internal_static_org_sonar_server_source_db_Test_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.db.protobuf.DbFileSources.Test.class, org.sonar.db.protobuf.DbFileSources.Test.Builder.class); - } - - // Construct using org.sonar.db.protobuf.DbFileSources.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(); - } - } - public Builder clear() { - super.clear(); - uuid_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - name_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - status_ = 1; - 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 com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonar.db.protobuf.DbFileSources.internal_static_org_sonar_server_source_db_Test_descriptor; - } - - public org.sonar.db.protobuf.DbFileSources.Test getDefaultInstanceForType() { - return org.sonar.db.protobuf.DbFileSources.Test.getDefaultInstance(); - } - - public org.sonar.db.protobuf.DbFileSources.Test build() { - org.sonar.db.protobuf.DbFileSources.Test result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonar.db.protobuf.DbFileSources.Test buildPartial() { - org.sonar.db.protobuf.DbFileSources.Test result = new org.sonar.db.protobuf.DbFileSources.Test(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.uuid_ = uuid_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.name_ = name_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.status_ = status_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } - result.executionTimeMs_ = executionTimeMs_; - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { - to_bitField0_ |= 0x00000010; - } - result.stacktrace_ = stacktrace_; - if (((from_bitField0_ & 0x00000020) == 0x00000020)) { - to_bitField0_ |= 0x00000020; - } - result.msg_ = msg_; - if (coveredFileBuilder_ == null) { - if (((bitField0_ & 0x00000040) == 0x00000040)) { - coveredFile_ = java.util.Collections.unmodifiableList(coveredFile_); - bitField0_ = (bitField0_ & ~0x00000040); - } - result.coveredFile_ = coveredFile_; - } else { - result.coveredFile_ = coveredFileBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonar.db.protobuf.DbFileSources.Test) { - return mergeFrom((org.sonar.db.protobuf.DbFileSources.Test)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonar.db.protobuf.DbFileSources.Test other) { - if (other == org.sonar.db.protobuf.DbFileSources.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.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonar.db.protobuf.DbFileSources.Test parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonar.db.protobuf.DbFileSources.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 int status_ = 1; - /** - * <code>optional .org.sonar.server.source.db.Test.TestStatus status = 3;</code> - */ - public boolean hasStatus() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * <code>optional .org.sonar.server.source.db.Test.TestStatus status = 3;</code> - */ - public org.sonar.db.protobuf.DbFileSources.Test.TestStatus getStatus() { - 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> - */ - public Builder setStatus(org.sonar.db.protobuf.DbFileSources.Test.TestStatus value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - status_ = value.getNumber(); - onChanged(); - return this; - } - /** - * <code>optional .org.sonar.server.source.db.Test.TestStatus status = 3;</code> - */ - public Builder clearStatus() { - bitField0_ = (bitField0_ & ~0x00000004); - status_ = 1; - onChanged(); - return this; - } - - private long executionTimeMs_ ; - /** - * <code>optional int64 execution_time_ms = 4;</code> - */ - public boolean hasExecutionTimeMs() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * <code>optional int64 execution_time_ms = 4;</code> - */ - public long getExecutionTimeMs() { - return executionTimeMs_; - } - /** - * <code>optional int64 execution_time_ms = 4;</code> - */ - public Builder setExecutionTimeMs(long value) { - bitField0_ |= 0x00000008; - executionTimeMs_ = value; - onChanged(); - return this; - } - /** - * <code>optional int64 execution_time_ms = 4;</code> - */ - public Builder clearExecutionTimeMs() { - bitField0_ = (bitField0_ & ~0x00000008); - executionTimeMs_ = 0L; - onChanged(); - return this; - } - - private java.lang.Object stacktrace_ = ""; - /** - * <code>optional string stacktrace = 5;</code> - */ - public boolean hasStacktrace() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - /** - * <code>optional string stacktrace = 5;</code> - */ - public java.lang.String getStacktrace() { - java.lang.Object ref = stacktrace_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - stacktrace_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>optional string stacktrace = 5;</code> - */ - public com.google.protobuf.ByteString - getStacktraceBytes() { - java.lang.Object ref = stacktrace_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - stacktrace_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>optional string stacktrace = 5;</code> - */ - public Builder setStacktrace( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; - stacktrace_ = value; - onChanged(); - return this; - } - /** - * <code>optional string stacktrace = 5;</code> - */ - public Builder clearStacktrace() { - bitField0_ = (bitField0_ & ~0x00000010); - stacktrace_ = getDefaultInstance().getStacktrace(); - onChanged(); - return this; - } - /** - * <code>optional string stacktrace = 5;</code> - */ - public Builder setStacktraceBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; - stacktrace_ = value; - onChanged(); - return this; - } - - private java.lang.Object msg_ = ""; - /** - * <code>optional string msg = 6;</code> - */ - public boolean hasMsg() { - return ((bitField0_ & 0x00000020) == 0x00000020); - } - /** - * <code>optional string msg = 6;</code> - */ - public java.lang.String getMsg() { - java.lang.Object ref = msg_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - msg_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>optional string msg = 6;</code> - */ - public com.google.protobuf.ByteString - getMsgBytes() { - java.lang.Object ref = msg_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - msg_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>optional string msg = 6;</code> - */ - public Builder setMsg( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; - msg_ = value; - onChanged(); - return this; - } - /** - * <code>optional string msg = 6;</code> - */ - public Builder clearMsg() { - bitField0_ = (bitField0_ & ~0x00000020); - msg_ = getDefaultInstance().getMsg(); - onChanged(); - return this; - } - /** - * <code>optional string msg = 6;</code> - */ - public Builder setMsgBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; - msg_ = value; - onChanged(); - return this; - } - - private java.util.List<org.sonar.db.protobuf.DbFileSources.Test.CoveredFile> coveredFile_ = - java.util.Collections.emptyList(); - private void ensureCoveredFileIsMutable() { - if (!((bitField0_ & 0x00000040) == 0x00000040)) { - coveredFile_ = new java.util.ArrayList<org.sonar.db.protobuf.DbFileSources.Test.CoveredFile>(coveredFile_); - bitField0_ |= 0x00000040; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - org.sonar.db.protobuf.DbFileSources.Test.CoveredFile, org.sonar.db.protobuf.DbFileSources.Test.CoveredFile.Builder, org.sonar.db.protobuf.DbFileSources.Test.CoveredFileOrBuilder> coveredFileBuilder_; - - /** - * <code>repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7;</code> - */ - public java.util.List<org.sonar.db.protobuf.DbFileSources.Test.CoveredFile> getCoveredFileList() { - if (coveredFileBuilder_ == null) { - return java.util.Collections.unmodifiableList(coveredFile_); - } else { - return coveredFileBuilder_.getMessageList(); - } - } - /** - * <code>repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7;</code> - */ - public int getCoveredFileCount() { - if (coveredFileBuilder_ == null) { - return coveredFile_.size(); - } else { - return coveredFileBuilder_.getCount(); - } - } - /** - * <code>repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7;</code> - */ - public org.sonar.db.protobuf.DbFileSources.Test.CoveredFile getCoveredFile(int index) { - if (coveredFileBuilder_ == null) { - return coveredFile_.get(index); - } else { - return coveredFileBuilder_.getMessage(index); - } - } - /** - * <code>repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7;</code> - */ - public Builder setCoveredFile( - int index, org.sonar.db.protobuf.DbFileSources.Test.CoveredFile value) { - if (coveredFileBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCoveredFileIsMutable(); - coveredFile_.set(index, value); - onChanged(); - } else { - coveredFileBuilder_.setMessage(index, value); - } - return this; - } - /** - * <code>repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7;</code> - */ - public Builder setCoveredFile( - int index, org.sonar.db.protobuf.DbFileSources.Test.CoveredFile.Builder builderForValue) { - if (coveredFileBuilder_ == null) { - ensureCoveredFileIsMutable(); - coveredFile_.set(index, builderForValue.build()); - onChanged(); - } else { - coveredFileBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7;</code> - */ - public Builder addCoveredFile(org.sonar.db.protobuf.DbFileSources.Test.CoveredFile value) { - if (coveredFileBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCoveredFileIsMutable(); - coveredFile_.add(value); - onChanged(); - } else { - coveredFileBuilder_.addMessage(value); - } - return this; - } - /** - * <code>repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7;</code> - */ - public Builder addCoveredFile( - int index, org.sonar.db.protobuf.DbFileSources.Test.CoveredFile value) { - if (coveredFileBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCoveredFileIsMutable(); - coveredFile_.add(index, value); - onChanged(); - } else { - coveredFileBuilder_.addMessage(index, value); - } - return this; - } - /** - * <code>repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7;</code> - */ - public Builder addCoveredFile( - org.sonar.db.protobuf.DbFileSources.Test.CoveredFile.Builder builderForValue) { - if (coveredFileBuilder_ == null) { - ensureCoveredFileIsMutable(); - coveredFile_.add(builderForValue.build()); - onChanged(); - } else { - coveredFileBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * <code>repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7;</code> - */ - public Builder addCoveredFile( - int index, org.sonar.db.protobuf.DbFileSources.Test.CoveredFile.Builder builderForValue) { - if (coveredFileBuilder_ == null) { - ensureCoveredFileIsMutable(); - coveredFile_.add(index, builderForValue.build()); - onChanged(); - } else { - coveredFileBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7;</code> - */ - public Builder addAllCoveredFile( - java.lang.Iterable<? extends org.sonar.db.protobuf.DbFileSources.Test.CoveredFile> values) { - if (coveredFileBuilder_ == null) { - ensureCoveredFileIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, coveredFile_); - onChanged(); - } else { - coveredFileBuilder_.addAllMessages(values); - } - return this; - } - /** - * <code>repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7;</code> - */ - public Builder clearCoveredFile() { - if (coveredFileBuilder_ == null) { - coveredFile_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); - onChanged(); - } else { - coveredFileBuilder_.clear(); - } - return this; - } - /** - * <code>repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7;</code> - */ - public Builder removeCoveredFile(int index) { - if (coveredFileBuilder_ == null) { - ensureCoveredFileIsMutable(); - coveredFile_.remove(index); - onChanged(); - } else { - coveredFileBuilder_.remove(index); - } - return this; - } - /** - * <code>repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7;</code> - */ - public org.sonar.db.protobuf.DbFileSources.Test.CoveredFile.Builder getCoveredFileBuilder( - int index) { - return getCoveredFileFieldBuilder().getBuilder(index); - } - /** - * <code>repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7;</code> - */ - public org.sonar.db.protobuf.DbFileSources.Test.CoveredFileOrBuilder getCoveredFileOrBuilder( - int index) { - if (coveredFileBuilder_ == null) { - return coveredFile_.get(index); } else { - return coveredFileBuilder_.getMessageOrBuilder(index); - } - } - /** - * <code>repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7;</code> - */ - public java.util.List<? extends org.sonar.db.protobuf.DbFileSources.Test.CoveredFileOrBuilder> - getCoveredFileOrBuilderList() { - if (coveredFileBuilder_ != null) { - return coveredFileBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(coveredFile_); - } - } - /** - * <code>repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7;</code> - */ - public org.sonar.db.protobuf.DbFileSources.Test.CoveredFile.Builder addCoveredFileBuilder() { - return getCoveredFileFieldBuilder().addBuilder( - org.sonar.db.protobuf.DbFileSources.Test.CoveredFile.getDefaultInstance()); - } - /** - * <code>repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7;</code> - */ - public org.sonar.db.protobuf.DbFileSources.Test.CoveredFile.Builder addCoveredFileBuilder( - int index) { - return getCoveredFileFieldBuilder().addBuilder( - index, org.sonar.db.protobuf.DbFileSources.Test.CoveredFile.getDefaultInstance()); - } - /** - * <code>repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7;</code> - */ - public java.util.List<org.sonar.db.protobuf.DbFileSources.Test.CoveredFile.Builder> - getCoveredFileBuilderList() { - return getCoveredFileFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - org.sonar.db.protobuf.DbFileSources.Test.CoveredFile, org.sonar.db.protobuf.DbFileSources.Test.CoveredFile.Builder, org.sonar.db.protobuf.DbFileSources.Test.CoveredFileOrBuilder> - getCoveredFileFieldBuilder() { - if (coveredFileBuilder_ == null) { - coveredFileBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - org.sonar.db.protobuf.DbFileSources.Test.CoveredFile, org.sonar.db.protobuf.DbFileSources.Test.CoveredFile.Builder, org.sonar.db.protobuf.DbFileSources.Test.CoveredFileOrBuilder>( - coveredFile_, - ((bitField0_ & 0x00000040) == 0x00000040), - getParentForChildren(), - isClean()); - coveredFile_ = null; - } - return coveredFileBuilder_; - } - - // @@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 { - 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; - } - - } - - private static com.google.protobuf.Descriptors.Descriptor - internal_static_org_sonar_server_source_db_Line_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_org_sonar_server_source_db_Line_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_org_sonar_server_source_db_Data_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_org_sonar_server_source_db_Data_fieldAccessorTable; - 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_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\025db-file-sources.proto\022\032org.sonar.serve" + - "r.source.db\"\223\003\n\004Line\022\014\n\004line\030\001 \001(\005\022\016\n\006so" + - "urce\030\002 \001(\t\022\024\n\014scm_revision\030\003 \001(\t\022\022\n\nscm_" + - "author\030\004 \001(\t\022\020\n\010scm_date\030\005 \001(\003\022\024\n\014ut_lin" + - "e_hits\030\006 \001(\005\022\025\n\rut_conditions\030\007 \001(\005\022\035\n\025u" + - "t_covered_conditions\030\010 \001(\005\022\024\n\014it_line_hi" + - "ts\030\t \001(\005\022\025\n\rit_conditions\030\n \001(\005\022\035\n\025it_co" + - "vered_conditions\030\013 \001(\005\022\031\n\021overall_line_h" + - "its\030\014 \001(\005\022\032\n\022overall_conditions\030\r \001(\005\022\"\n" + - "\032overall_covered_conditions\030\016 \001(\005\022\024\n\014hig", - "hlighting\030\017 \001(\t\022\017\n\007symbols\030\020 \001(\t\022\027\n\013dupl" + - "ication\030\021 \003(\005B\002\020\001\"7\n\004Data\022/\n\005lines\030\001 \003(\013" + - "2 .org.sonar.server.source.db.Line\"\326\002\n\004T" + - "est\022\014\n\004uuid\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\022;\n\006statu" + - "s\030\003 \001(\0162+.org.sonar.server.source.db.Tes" + - "t.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\014cove" + - "red_file\030\007 \003(\0132,.org.sonar.server.source" + - ".db.Test.CoveredFile\032:\n\013CoveredFile\022\021\n\tf" + - "ile_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\005E" + - "RROR\020\003\022\013\n\007SKIPPED\020\004B\031\n\025org.sonar.db.prot" + - "obufH\001" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }, assigner); - internal_static_org_sonar_server_source_db_Line_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_org_sonar_server_source_db_Line_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_org_sonar_server_source_db_Line_descriptor, - new java.lang.String[] { "Line", "Source", "ScmRevision", "ScmAuthor", "ScmDate", "UtLineHits", "UtConditions", "UtCoveredConditions", "ItLineHits", "ItConditions", "ItCoveredConditions", "OverallLineHits", "OverallConditions", "OverallCoveredConditions", "Highlighting", "Symbols", "Duplication", }); - internal_static_org_sonar_server_source_db_Data_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_org_sonar_server_source_db_Data_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_org_sonar_server_source_db_Data_descriptor, - new java.lang.String[] { "Lines", }); - internal_static_org_sonar_server_source_db_Test_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_org_sonar_server_source_db_Test_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_org_sonar_server_source_db_Test_descriptor, - new java.lang.String[] { "Uuid", "Name", "Status", "ExecutionTimeMs", "Stacktrace", "Msg", "CoveredFile", }); - internal_static_org_sonar_server_source_db_Test_CoveredFile_descriptor = - internal_static_org_sonar_server_source_db_Test_descriptor.getNestedTypes().get(0); - internal_static_org_sonar_server_source_db_Test_CoveredFile_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_org_sonar_server_source_db_Test_CoveredFile_descriptor, - new java.lang.String[] { "FileUuid", "CoveredLine", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/sonar-db/src/main/gen-java/org/sonar/db/protobuf/DbIssues.java b/sonar-db/src/main/gen-java/org/sonar/db/protobuf/DbIssues.java deleted file mode 100644 index 1baa250436a..00000000000 --- a/sonar-db/src/main/gen-java/org/sonar/db/protobuf/DbIssues.java +++ /dev/null @@ -1,2496 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: db-issues.proto - -package org.sonar.db.protobuf; - -public final class DbIssues { - private DbIssues() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - } - public interface LocationsOrBuilder extends - // @@protoc_insertion_point(interface_extends:sonarqube.db.issues.Locations) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>optional .sonarqube.db.commons.TextRange text_range = 1;</code> - */ - boolean hasTextRange(); - /** - * <code>optional .sonarqube.db.commons.TextRange text_range = 1;</code> - */ - org.sonar.db.protobuf.DbCommons.TextRange getTextRange(); - /** - * <code>optional .sonarqube.db.commons.TextRange text_range = 1;</code> - */ - org.sonar.db.protobuf.DbCommons.TextRangeOrBuilder getTextRangeOrBuilder(); - - /** - * <code>repeated .sonarqube.db.issues.Flow flow = 2;</code> - */ - java.util.List<org.sonar.db.protobuf.DbIssues.Flow> - getFlowList(); - /** - * <code>repeated .sonarqube.db.issues.Flow flow = 2;</code> - */ - org.sonar.db.protobuf.DbIssues.Flow getFlow(int index); - /** - * <code>repeated .sonarqube.db.issues.Flow flow = 2;</code> - */ - int getFlowCount(); - /** - * <code>repeated .sonarqube.db.issues.Flow flow = 2;</code> - */ - java.util.List<? extends org.sonar.db.protobuf.DbIssues.FlowOrBuilder> - getFlowOrBuilderList(); - /** - * <code>repeated .sonarqube.db.issues.Flow flow = 2;</code> - */ - org.sonar.db.protobuf.DbIssues.FlowOrBuilder getFlowOrBuilder( - int index); - } - /** - * Protobuf type {@code sonarqube.db.issues.Locations} - */ - 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) { - super(builder); - } - private Locations() { - flow_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Locations( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - 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: { - org.sonar.db.protobuf.DbCommons.TextRange.Builder subBuilder = null; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - subBuilder = textRange_.toBuilder(); - } - textRange_ = input.readMessage(org.sonar.db.protobuf.DbCommons.TextRange.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(textRange_); - textRange_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000001; - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - flow_ = new java.util.ArrayList<org.sonar.db.protobuf.DbIssues.Flow>(); - mutable_bitField0_ |= 0x00000002; - } - flow_.add(input.readMessage(org.sonar.db.protobuf.DbIssues.Flow.PARSER, extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - flow_ = java.util.Collections.unmodifiableList(flow_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonar.db.protobuf.DbIssues.internal_static_sonarqube_db_issues_Locations_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonar.db.protobuf.DbIssues.internal_static_sonarqube_db_issues_Locations_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.db.protobuf.DbIssues.Locations.class, org.sonar.db.protobuf.DbIssues.Locations.Builder.class); - } - - private int bitField0_; - public static final int TEXT_RANGE_FIELD_NUMBER = 1; - private org.sonar.db.protobuf.DbCommons.TextRange textRange_; - /** - * <code>optional .sonarqube.db.commons.TextRange text_range = 1;</code> - */ - public boolean hasTextRange() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * <code>optional .sonarqube.db.commons.TextRange text_range = 1;</code> - */ - public org.sonar.db.protobuf.DbCommons.TextRange getTextRange() { - 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_ == null ? org.sonar.db.protobuf.DbCommons.TextRange.getDefaultInstance() : textRange_; - } - - public static final int FLOW_FIELD_NUMBER = 2; - private java.util.List<org.sonar.db.protobuf.DbIssues.Flow> flow_; - /** - * <code>repeated .sonarqube.db.issues.Flow flow = 2;</code> - */ - public java.util.List<org.sonar.db.protobuf.DbIssues.Flow> getFlowList() { - return flow_; - } - /** - * <code>repeated .sonarqube.db.issues.Flow flow = 2;</code> - */ - public java.util.List<? extends org.sonar.db.protobuf.DbIssues.FlowOrBuilder> - getFlowOrBuilderList() { - return flow_; - } - /** - * <code>repeated .sonarqube.db.issues.Flow flow = 2;</code> - */ - public int getFlowCount() { - return flow_.size(); - } - /** - * <code>repeated .sonarqube.db.issues.Flow flow = 2;</code> - */ - public org.sonar.db.protobuf.DbIssues.Flow getFlow(int index) { - return flow_.get(index); - } - /** - * <code>repeated .sonarqube.db.issues.Flow flow = 2;</code> - */ - public org.sonar.db.protobuf.DbIssues.FlowOrBuilder getFlowOrBuilder( - int index) { - return flow_.get(index); - } - - 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 { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(1, getTextRange()); - } - for (int i = 0; i < flow_.size(); i++) { - output.writeMessage(2, flow_.get(i)); - } - unknownFields.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 - .computeMessageSize(1, getTextRange()); - } - for (int i = 0; i < flow_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, flow_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonar.db.protobuf.DbIssues.Locations parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonar.db.protobuf.DbIssues.Locations parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonar.db.protobuf.DbIssues.Locations parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonar.db.protobuf.DbIssues.Locations parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonar.db.protobuf.DbIssues.Locations parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonar.db.protobuf.DbIssues.Locations parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonar.db.protobuf.DbIssues.Locations parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonar.db.protobuf.DbIssues.Locations parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonar.db.protobuf.DbIssues.Locations parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonar.db.protobuf.DbIssues.Locations parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - 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 DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code sonarqube.db.issues.Locations} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:sonarqube.db.issues.Locations) - org.sonar.db.protobuf.DbIssues.LocationsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonar.db.protobuf.DbIssues.internal_static_sonarqube_db_issues_Locations_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonar.db.protobuf.DbIssues.internal_static_sonarqube_db_issues_Locations_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.db.protobuf.DbIssues.Locations.class, org.sonar.db.protobuf.DbIssues.Locations.Builder.class); - } - - // Construct using org.sonar.db.protobuf.DbIssues.Locations.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getTextRangeFieldBuilder(); - getFlowFieldBuilder(); - } - } - public Builder clear() { - super.clear(); - if (textRangeBuilder_ == null) { - textRange_ = null; - } else { - textRangeBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - if (flowBuilder_ == null) { - flow_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - flowBuilder_.clear(); - } - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonar.db.protobuf.DbIssues.internal_static_sonarqube_db_issues_Locations_descriptor; - } - - public org.sonar.db.protobuf.DbIssues.Locations getDefaultInstanceForType() { - return org.sonar.db.protobuf.DbIssues.Locations.getDefaultInstance(); - } - - public org.sonar.db.protobuf.DbIssues.Locations build() { - org.sonar.db.protobuf.DbIssues.Locations result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonar.db.protobuf.DbIssues.Locations buildPartial() { - org.sonar.db.protobuf.DbIssues.Locations result = new org.sonar.db.protobuf.DbIssues.Locations(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - if (textRangeBuilder_ == null) { - result.textRange_ = textRange_; - } else { - result.textRange_ = textRangeBuilder_.build(); - } - if (flowBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002)) { - flow_ = java.util.Collections.unmodifiableList(flow_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.flow_ = flow_; - } else { - result.flow_ = flowBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonar.db.protobuf.DbIssues.Locations) { - return mergeFrom((org.sonar.db.protobuf.DbIssues.Locations)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonar.db.protobuf.DbIssues.Locations other) { - if (other == org.sonar.db.protobuf.DbIssues.Locations.getDefaultInstance()) return this; - if (other.hasTextRange()) { - mergeTextRange(other.getTextRange()); - } - if (flowBuilder_ == null) { - if (!other.flow_.isEmpty()) { - if (flow_.isEmpty()) { - flow_ = other.flow_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureFlowIsMutable(); - flow_.addAll(other.flow_); - } - onChanged(); - } - } else { - if (!other.flow_.isEmpty()) { - if (flowBuilder_.isEmpty()) { - flowBuilder_.dispose(); - flowBuilder_ = null; - flow_ = other.flow_; - bitField0_ = (bitField0_ & ~0x00000002); - flowBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getFlowFieldBuilder() : null; - } else { - flowBuilder_.addAllMessages(other.flow_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonar.db.protobuf.DbIssues.Locations parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonar.db.protobuf.DbIssues.Locations) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - 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_; - /** - * <code>optional .sonarqube.db.commons.TextRange text_range = 1;</code> - */ - public boolean hasTextRange() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * <code>optional .sonarqube.db.commons.TextRange text_range = 1;</code> - */ - public org.sonar.db.protobuf.DbCommons.TextRange getTextRange() { - if (textRangeBuilder_ == null) { - return textRange_ == null ? org.sonar.db.protobuf.DbCommons.TextRange.getDefaultInstance() : textRange_; - } else { - return textRangeBuilder_.getMessage(); - } - } - /** - * <code>optional .sonarqube.db.commons.TextRange text_range = 1;</code> - */ - public Builder setTextRange(org.sonar.db.protobuf.DbCommons.TextRange value) { - if (textRangeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - textRange_ = value; - onChanged(); - } else { - textRangeBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * <code>optional .sonarqube.db.commons.TextRange text_range = 1;</code> - */ - public Builder setTextRange( - org.sonar.db.protobuf.DbCommons.TextRange.Builder builderForValue) { - if (textRangeBuilder_ == null) { - textRange_ = builderForValue.build(); - onChanged(); - } else { - textRangeBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * <code>optional .sonarqube.db.commons.TextRange text_range = 1;</code> - */ - 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(); - } else { - textRange_ = value; - } - onChanged(); - } else { - textRangeBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * <code>optional .sonarqube.db.commons.TextRange text_range = 1;</code> - */ - public Builder clearTextRange() { - if (textRangeBuilder_ == null) { - textRange_ = null; - onChanged(); - } else { - textRangeBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - /** - * <code>optional .sonarqube.db.commons.TextRange text_range = 1;</code> - */ - public org.sonar.db.protobuf.DbCommons.TextRange.Builder getTextRangeBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getTextRangeFieldBuilder().getBuilder(); - } - /** - * <code>optional .sonarqube.db.commons.TextRange text_range = 1;</code> - */ - public org.sonar.db.protobuf.DbCommons.TextRangeOrBuilder getTextRangeOrBuilder() { - if (textRangeBuilder_ != null) { - return textRangeBuilder_.getMessageOrBuilder(); - } else { - return textRange_ == null ? - org.sonar.db.protobuf.DbCommons.TextRange.getDefaultInstance() : textRange_; - } - } - /** - * <code>optional .sonarqube.db.commons.TextRange text_range = 1;</code> - */ - private com.google.protobuf.SingleFieldBuilder< - org.sonar.db.protobuf.DbCommons.TextRange, org.sonar.db.protobuf.DbCommons.TextRange.Builder, org.sonar.db.protobuf.DbCommons.TextRangeOrBuilder> - getTextRangeFieldBuilder() { - if (textRangeBuilder_ == null) { - textRangeBuilder_ = new com.google.protobuf.SingleFieldBuilder< - org.sonar.db.protobuf.DbCommons.TextRange, org.sonar.db.protobuf.DbCommons.TextRange.Builder, org.sonar.db.protobuf.DbCommons.TextRangeOrBuilder>( - getTextRange(), - getParentForChildren(), - isClean()); - textRange_ = null; - } - return textRangeBuilder_; - } - - private java.util.List<org.sonar.db.protobuf.DbIssues.Flow> flow_ = - java.util.Collections.emptyList(); - private void ensureFlowIsMutable() { - if (!((bitField0_ & 0x00000002) == 0x00000002)) { - flow_ = new java.util.ArrayList<org.sonar.db.protobuf.DbIssues.Flow>(flow_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - org.sonar.db.protobuf.DbIssues.Flow, org.sonar.db.protobuf.DbIssues.Flow.Builder, org.sonar.db.protobuf.DbIssues.FlowOrBuilder> flowBuilder_; - - /** - * <code>repeated .sonarqube.db.issues.Flow flow = 2;</code> - */ - public java.util.List<org.sonar.db.protobuf.DbIssues.Flow> getFlowList() { - if (flowBuilder_ == null) { - return java.util.Collections.unmodifiableList(flow_); - } else { - return flowBuilder_.getMessageList(); - } - } - /** - * <code>repeated .sonarqube.db.issues.Flow flow = 2;</code> - */ - public int getFlowCount() { - if (flowBuilder_ == null) { - return flow_.size(); - } else { - return flowBuilder_.getCount(); - } - } - /** - * <code>repeated .sonarqube.db.issues.Flow flow = 2;</code> - */ - public org.sonar.db.protobuf.DbIssues.Flow getFlow(int index) { - if (flowBuilder_ == null) { - return flow_.get(index); - } else { - return flowBuilder_.getMessage(index); - } - } - /** - * <code>repeated .sonarqube.db.issues.Flow flow = 2;</code> - */ - public Builder setFlow( - int index, org.sonar.db.protobuf.DbIssues.Flow value) { - if (flowBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFlowIsMutable(); - flow_.set(index, value); - onChanged(); - } else { - flowBuilder_.setMessage(index, value); - } - return this; - } - /** - * <code>repeated .sonarqube.db.issues.Flow flow = 2;</code> - */ - public Builder setFlow( - int index, org.sonar.db.protobuf.DbIssues.Flow.Builder builderForValue) { - if (flowBuilder_ == null) { - ensureFlowIsMutable(); - flow_.set(index, builderForValue.build()); - onChanged(); - } else { - flowBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .sonarqube.db.issues.Flow flow = 2;</code> - */ - public Builder addFlow(org.sonar.db.protobuf.DbIssues.Flow value) { - if (flowBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFlowIsMutable(); - flow_.add(value); - onChanged(); - } else { - flowBuilder_.addMessage(value); - } - return this; - } - /** - * <code>repeated .sonarqube.db.issues.Flow flow = 2;</code> - */ - public Builder addFlow( - int index, org.sonar.db.protobuf.DbIssues.Flow value) { - if (flowBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFlowIsMutable(); - flow_.add(index, value); - onChanged(); - } else { - flowBuilder_.addMessage(index, value); - } - return this; - } - /** - * <code>repeated .sonarqube.db.issues.Flow flow = 2;</code> - */ - public Builder addFlow( - org.sonar.db.protobuf.DbIssues.Flow.Builder builderForValue) { - if (flowBuilder_ == null) { - ensureFlowIsMutable(); - flow_.add(builderForValue.build()); - onChanged(); - } else { - flowBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * <code>repeated .sonarqube.db.issues.Flow flow = 2;</code> - */ - public Builder addFlow( - int index, org.sonar.db.protobuf.DbIssues.Flow.Builder builderForValue) { - if (flowBuilder_ == null) { - ensureFlowIsMutable(); - flow_.add(index, builderForValue.build()); - onChanged(); - } else { - flowBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .sonarqube.db.issues.Flow flow = 2;</code> - */ - public Builder addAllFlow( - java.lang.Iterable<? extends org.sonar.db.protobuf.DbIssues.Flow> values) { - if (flowBuilder_ == null) { - ensureFlowIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, flow_); - onChanged(); - } else { - flowBuilder_.addAllMessages(values); - } - return this; - } - /** - * <code>repeated .sonarqube.db.issues.Flow flow = 2;</code> - */ - public Builder clearFlow() { - if (flowBuilder_ == null) { - flow_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - flowBuilder_.clear(); - } - return this; - } - /** - * <code>repeated .sonarqube.db.issues.Flow flow = 2;</code> - */ - public Builder removeFlow(int index) { - if (flowBuilder_ == null) { - ensureFlowIsMutable(); - flow_.remove(index); - onChanged(); - } else { - flowBuilder_.remove(index); - } - return this; - } - /** - * <code>repeated .sonarqube.db.issues.Flow flow = 2;</code> - */ - public org.sonar.db.protobuf.DbIssues.Flow.Builder getFlowBuilder( - int index) { - return getFlowFieldBuilder().getBuilder(index); - } - /** - * <code>repeated .sonarqube.db.issues.Flow flow = 2;</code> - */ - public org.sonar.db.protobuf.DbIssues.FlowOrBuilder getFlowOrBuilder( - int index) { - if (flowBuilder_ == null) { - return flow_.get(index); } else { - return flowBuilder_.getMessageOrBuilder(index); - } - } - /** - * <code>repeated .sonarqube.db.issues.Flow flow = 2;</code> - */ - public java.util.List<? extends org.sonar.db.protobuf.DbIssues.FlowOrBuilder> - getFlowOrBuilderList() { - if (flowBuilder_ != null) { - return flowBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(flow_); - } - } - /** - * <code>repeated .sonarqube.db.issues.Flow flow = 2;</code> - */ - public org.sonar.db.protobuf.DbIssues.Flow.Builder addFlowBuilder() { - return getFlowFieldBuilder().addBuilder( - org.sonar.db.protobuf.DbIssues.Flow.getDefaultInstance()); - } - /** - * <code>repeated .sonarqube.db.issues.Flow flow = 2;</code> - */ - public org.sonar.db.protobuf.DbIssues.Flow.Builder addFlowBuilder( - int index) { - return getFlowFieldBuilder().addBuilder( - index, org.sonar.db.protobuf.DbIssues.Flow.getDefaultInstance()); - } - /** - * <code>repeated .sonarqube.db.issues.Flow flow = 2;</code> - */ - public java.util.List<org.sonar.db.protobuf.DbIssues.Flow.Builder> - getFlowBuilderList() { - return getFlowFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - org.sonar.db.protobuf.DbIssues.Flow, org.sonar.db.protobuf.DbIssues.Flow.Builder, org.sonar.db.protobuf.DbIssues.FlowOrBuilder> - getFlowFieldBuilder() { - if (flowBuilder_ == null) { - flowBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - org.sonar.db.protobuf.DbIssues.Flow, org.sonar.db.protobuf.DbIssues.Flow.Builder, org.sonar.db.protobuf.DbIssues.FlowOrBuilder>( - flow_, - ((bitField0_ & 0x00000002) == 0x00000002), - getParentForChildren(), - isClean()); - flow_ = null; - } - return flowBuilder_; - } - - // @@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 { - 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; - } - - } - - public interface FlowOrBuilder extends - // @@protoc_insertion_point(interface_extends:sonarqube.db.issues.Flow) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>repeated .sonarqube.db.issues.Location location = 1;</code> - */ - java.util.List<org.sonar.db.protobuf.DbIssues.Location> - getLocationList(); - /** - * <code>repeated .sonarqube.db.issues.Location location = 1;</code> - */ - org.sonar.db.protobuf.DbIssues.Location getLocation(int index); - /** - * <code>repeated .sonarqube.db.issues.Location location = 1;</code> - */ - int getLocationCount(); - /** - * <code>repeated .sonarqube.db.issues.Location location = 1;</code> - */ - java.util.List<? extends org.sonar.db.protobuf.DbIssues.LocationOrBuilder> - getLocationOrBuilderList(); - /** - * <code>repeated .sonarqube.db.issues.Location location = 1;</code> - */ - org.sonar.db.protobuf.DbIssues.LocationOrBuilder getLocationOrBuilder( - int index); - } - /** - * Protobuf type {@code sonarqube.db.issues.Flow} - */ - 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) { - super(builder); - } - private Flow() { - location_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Flow( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - 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)) { - location_ = new java.util.ArrayList<org.sonar.db.protobuf.DbIssues.Location>(); - mutable_bitField0_ |= 0x00000001; - } - location_.add(input.readMessage(org.sonar.db.protobuf.DbIssues.Location.PARSER, extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - location_ = java.util.Collections.unmodifiableList(location_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonar.db.protobuf.DbIssues.internal_static_sonarqube_db_issues_Flow_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonar.db.protobuf.DbIssues.internal_static_sonarqube_db_issues_Flow_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.db.protobuf.DbIssues.Flow.class, org.sonar.db.protobuf.DbIssues.Flow.Builder.class); - } - - public static final int LOCATION_FIELD_NUMBER = 1; - private java.util.List<org.sonar.db.protobuf.DbIssues.Location> location_; - /** - * <code>repeated .sonarqube.db.issues.Location location = 1;</code> - */ - public java.util.List<org.sonar.db.protobuf.DbIssues.Location> getLocationList() { - return location_; - } - /** - * <code>repeated .sonarqube.db.issues.Location location = 1;</code> - */ - public java.util.List<? extends org.sonar.db.protobuf.DbIssues.LocationOrBuilder> - getLocationOrBuilderList() { - return location_; - } - /** - * <code>repeated .sonarqube.db.issues.Location location = 1;</code> - */ - public int getLocationCount() { - return location_.size(); - } - /** - * <code>repeated .sonarqube.db.issues.Location location = 1;</code> - */ - public org.sonar.db.protobuf.DbIssues.Location getLocation(int index) { - return location_.get(index); - } - /** - * <code>repeated .sonarqube.db.issues.Location location = 1;</code> - */ - public org.sonar.db.protobuf.DbIssues.LocationOrBuilder getLocationOrBuilder( - int index) { - return location_.get(index); - } - - 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 { - for (int i = 0; i < location_.size(); i++) { - output.writeMessage(1, location_.get(i)); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < location_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, location_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonar.db.protobuf.DbIssues.Flow parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonar.db.protobuf.DbIssues.Flow parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonar.db.protobuf.DbIssues.Flow parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonar.db.protobuf.DbIssues.Flow parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonar.db.protobuf.DbIssues.Flow parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonar.db.protobuf.DbIssues.Flow parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonar.db.protobuf.DbIssues.Flow parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonar.db.protobuf.DbIssues.Flow parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonar.db.protobuf.DbIssues.Flow parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonar.db.protobuf.DbIssues.Flow parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - 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 DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code sonarqube.db.issues.Flow} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:sonarqube.db.issues.Flow) - org.sonar.db.protobuf.DbIssues.FlowOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonar.db.protobuf.DbIssues.internal_static_sonarqube_db_issues_Flow_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonar.db.protobuf.DbIssues.internal_static_sonarqube_db_issues_Flow_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.db.protobuf.DbIssues.Flow.class, org.sonar.db.protobuf.DbIssues.Flow.Builder.class); - } - - // Construct using org.sonar.db.protobuf.DbIssues.Flow.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getLocationFieldBuilder(); - } - } - public Builder clear() { - super.clear(); - if (locationBuilder_ == null) { - location_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - locationBuilder_.clear(); - } - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonar.db.protobuf.DbIssues.internal_static_sonarqube_db_issues_Flow_descriptor; - } - - public org.sonar.db.protobuf.DbIssues.Flow getDefaultInstanceForType() { - return org.sonar.db.protobuf.DbIssues.Flow.getDefaultInstance(); - } - - public org.sonar.db.protobuf.DbIssues.Flow build() { - org.sonar.db.protobuf.DbIssues.Flow result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonar.db.protobuf.DbIssues.Flow buildPartial() { - org.sonar.db.protobuf.DbIssues.Flow result = new org.sonar.db.protobuf.DbIssues.Flow(this); - int from_bitField0_ = bitField0_; - if (locationBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - location_ = java.util.Collections.unmodifiableList(location_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.location_ = location_; - } else { - result.location_ = locationBuilder_.build(); - } - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonar.db.protobuf.DbIssues.Flow) { - return mergeFrom((org.sonar.db.protobuf.DbIssues.Flow)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonar.db.protobuf.DbIssues.Flow other) { - if (other == org.sonar.db.protobuf.DbIssues.Flow.getDefaultInstance()) return this; - if (locationBuilder_ == null) { - if (!other.location_.isEmpty()) { - if (location_.isEmpty()) { - location_ = other.location_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureLocationIsMutable(); - location_.addAll(other.location_); - } - onChanged(); - } - } else { - if (!other.location_.isEmpty()) { - if (locationBuilder_.isEmpty()) { - locationBuilder_.dispose(); - locationBuilder_ = null; - location_ = other.location_; - bitField0_ = (bitField0_ & ~0x00000001); - locationBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getLocationFieldBuilder() : null; - } else { - locationBuilder_.addAllMessages(other.location_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonar.db.protobuf.DbIssues.Flow parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonar.db.protobuf.DbIssues.Flow) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List<org.sonar.db.protobuf.DbIssues.Location> location_ = - java.util.Collections.emptyList(); - private void ensureLocationIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - location_ = new java.util.ArrayList<org.sonar.db.protobuf.DbIssues.Location>(location_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - org.sonar.db.protobuf.DbIssues.Location, org.sonar.db.protobuf.DbIssues.Location.Builder, org.sonar.db.protobuf.DbIssues.LocationOrBuilder> locationBuilder_; - - /** - * <code>repeated .sonarqube.db.issues.Location location = 1;</code> - */ - public java.util.List<org.sonar.db.protobuf.DbIssues.Location> getLocationList() { - if (locationBuilder_ == null) { - return java.util.Collections.unmodifiableList(location_); - } else { - return locationBuilder_.getMessageList(); - } - } - /** - * <code>repeated .sonarqube.db.issues.Location location = 1;</code> - */ - public int getLocationCount() { - if (locationBuilder_ == null) { - return location_.size(); - } else { - return locationBuilder_.getCount(); - } - } - /** - * <code>repeated .sonarqube.db.issues.Location location = 1;</code> - */ - public org.sonar.db.protobuf.DbIssues.Location getLocation(int index) { - if (locationBuilder_ == null) { - return location_.get(index); - } else { - return locationBuilder_.getMessage(index); - } - } - /** - * <code>repeated .sonarqube.db.issues.Location location = 1;</code> - */ - public Builder setLocation( - int index, org.sonar.db.protobuf.DbIssues.Location value) { - if (locationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLocationIsMutable(); - location_.set(index, value); - onChanged(); - } else { - locationBuilder_.setMessage(index, value); - } - return this; - } - /** - * <code>repeated .sonarqube.db.issues.Location location = 1;</code> - */ - public Builder setLocation( - int index, org.sonar.db.protobuf.DbIssues.Location.Builder builderForValue) { - if (locationBuilder_ == null) { - ensureLocationIsMutable(); - location_.set(index, builderForValue.build()); - onChanged(); - } else { - locationBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .sonarqube.db.issues.Location location = 1;</code> - */ - public Builder addLocation(org.sonar.db.protobuf.DbIssues.Location value) { - if (locationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLocationIsMutable(); - location_.add(value); - onChanged(); - } else { - locationBuilder_.addMessage(value); - } - return this; - } - /** - * <code>repeated .sonarqube.db.issues.Location location = 1;</code> - */ - public Builder addLocation( - int index, org.sonar.db.protobuf.DbIssues.Location value) { - if (locationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLocationIsMutable(); - location_.add(index, value); - onChanged(); - } else { - locationBuilder_.addMessage(index, value); - } - return this; - } - /** - * <code>repeated .sonarqube.db.issues.Location location = 1;</code> - */ - public Builder addLocation( - org.sonar.db.protobuf.DbIssues.Location.Builder builderForValue) { - if (locationBuilder_ == null) { - ensureLocationIsMutable(); - location_.add(builderForValue.build()); - onChanged(); - } else { - locationBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * <code>repeated .sonarqube.db.issues.Location location = 1;</code> - */ - public Builder addLocation( - int index, org.sonar.db.protobuf.DbIssues.Location.Builder builderForValue) { - if (locationBuilder_ == null) { - ensureLocationIsMutable(); - location_.add(index, builderForValue.build()); - onChanged(); - } else { - locationBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .sonarqube.db.issues.Location location = 1;</code> - */ - public Builder addAllLocation( - java.lang.Iterable<? extends org.sonar.db.protobuf.DbIssues.Location> values) { - if (locationBuilder_ == null) { - ensureLocationIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, location_); - onChanged(); - } else { - locationBuilder_.addAllMessages(values); - } - return this; - } - /** - * <code>repeated .sonarqube.db.issues.Location location = 1;</code> - */ - public Builder clearLocation() { - if (locationBuilder_ == null) { - location_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - locationBuilder_.clear(); - } - return this; - } - /** - * <code>repeated .sonarqube.db.issues.Location location = 1;</code> - */ - public Builder removeLocation(int index) { - if (locationBuilder_ == null) { - ensureLocationIsMutable(); - location_.remove(index); - onChanged(); - } else { - locationBuilder_.remove(index); - } - return this; - } - /** - * <code>repeated .sonarqube.db.issues.Location location = 1;</code> - */ - public org.sonar.db.protobuf.DbIssues.Location.Builder getLocationBuilder( - int index) { - return getLocationFieldBuilder().getBuilder(index); - } - /** - * <code>repeated .sonarqube.db.issues.Location location = 1;</code> - */ - public org.sonar.db.protobuf.DbIssues.LocationOrBuilder getLocationOrBuilder( - int index) { - if (locationBuilder_ == null) { - return location_.get(index); } else { - return locationBuilder_.getMessageOrBuilder(index); - } - } - /** - * <code>repeated .sonarqube.db.issues.Location location = 1;</code> - */ - public java.util.List<? extends org.sonar.db.protobuf.DbIssues.LocationOrBuilder> - getLocationOrBuilderList() { - if (locationBuilder_ != null) { - return locationBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(location_); - } - } - /** - * <code>repeated .sonarqube.db.issues.Location location = 1;</code> - */ - public org.sonar.db.protobuf.DbIssues.Location.Builder addLocationBuilder() { - return getLocationFieldBuilder().addBuilder( - org.sonar.db.protobuf.DbIssues.Location.getDefaultInstance()); - } - /** - * <code>repeated .sonarqube.db.issues.Location location = 1;</code> - */ - public org.sonar.db.protobuf.DbIssues.Location.Builder addLocationBuilder( - int index) { - return getLocationFieldBuilder().addBuilder( - index, org.sonar.db.protobuf.DbIssues.Location.getDefaultInstance()); - } - /** - * <code>repeated .sonarqube.db.issues.Location location = 1;</code> - */ - public java.util.List<org.sonar.db.protobuf.DbIssues.Location.Builder> - getLocationBuilderList() { - return getLocationFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - org.sonar.db.protobuf.DbIssues.Location, org.sonar.db.protobuf.DbIssues.Location.Builder, org.sonar.db.protobuf.DbIssues.LocationOrBuilder> - getLocationFieldBuilder() { - if (locationBuilder_ == null) { - locationBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - org.sonar.db.protobuf.DbIssues.Location, org.sonar.db.protobuf.DbIssues.Location.Builder, org.sonar.db.protobuf.DbIssues.LocationOrBuilder>( - location_, - ((bitField0_ & 0x00000001) == 0x00000001), - getParentForChildren(), - isClean()); - location_ = null; - } - return locationBuilder_; - } - - // @@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 { - 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; - } - - } - - public interface LocationOrBuilder extends - // @@protoc_insertion_point(interface_extends:sonarqube.db.issues.Location) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>optional string component_id = 1;</code> - */ - boolean hasComponentId(); - /** - * <code>optional string component_id = 1;</code> - */ - java.lang.String getComponentId(); - /** - * <code>optional string component_id = 1;</code> - */ - com.google.protobuf.ByteString - getComponentIdBytes(); - - /** - * <code>optional .sonarqube.db.commons.TextRange text_range = 2;</code> - * - * <pre> - * Only when component is a file. Can be empty for a file if this is an issue global to the file. - * </pre> - */ - boolean hasTextRange(); - /** - * <code>optional .sonarqube.db.commons.TextRange text_range = 2;</code> - * - * <pre> - * Only when component is a file. Can be empty for a file if this is an issue global to the file. - * </pre> - */ - org.sonar.db.protobuf.DbCommons.TextRange getTextRange(); - /** - * <code>optional .sonarqube.db.commons.TextRange text_range = 2;</code> - * - * <pre> - * Only when component is a file. Can be empty for a file if this is an issue global to the file. - * </pre> - */ - org.sonar.db.protobuf.DbCommons.TextRangeOrBuilder getTextRangeOrBuilder(); - - /** - * <code>optional string msg = 3;</code> - */ - boolean hasMsg(); - /** - * <code>optional string msg = 3;</code> - */ - java.lang.String getMsg(); - /** - * <code>optional string msg = 3;</code> - */ - com.google.protobuf.ByteString - getMsgBytes(); - } - /** - * Protobuf type {@code sonarqube.db.issues.Location} - */ - 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) { - super(builder); - } - private Location() { - componentId_ = ""; - msg_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Location( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - 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; - componentId_ = bs; - break; - } - case 18: { - org.sonar.db.protobuf.DbCommons.TextRange.Builder subBuilder = null; - if (((bitField0_ & 0x00000002) == 0x00000002)) { - subBuilder = textRange_.toBuilder(); - } - textRange_ = input.readMessage(org.sonar.db.protobuf.DbCommons.TextRange.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(textRange_); - textRange_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000002; - break; - } - case 26: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000004; - msg_ = bs; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonar.db.protobuf.DbIssues.internal_static_sonarqube_db_issues_Location_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonar.db.protobuf.DbIssues.internal_static_sonarqube_db_issues_Location_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.db.protobuf.DbIssues.Location.class, org.sonar.db.protobuf.DbIssues.Location.Builder.class); - } - - private int bitField0_; - public static final int COMPONENT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object componentId_; - /** - * <code>optional string component_id = 1;</code> - */ - public boolean hasComponentId() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * <code>optional string component_id = 1;</code> - */ - public java.lang.String getComponentId() { - java.lang.Object ref = componentId_; - 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()) { - componentId_ = s; - } - return s; - } - } - /** - * <code>optional string component_id = 1;</code> - */ - public com.google.protobuf.ByteString - getComponentIdBytes() { - java.lang.Object ref = componentId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - componentId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TEXT_RANGE_FIELD_NUMBER = 2; - private org.sonar.db.protobuf.DbCommons.TextRange textRange_; - /** - * <code>optional .sonarqube.db.commons.TextRange text_range = 2;</code> - * - * <pre> - * Only when component is a file. Can be empty for a file if this is an issue global to the file. - * </pre> - */ - public boolean hasTextRange() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * <code>optional .sonarqube.db.commons.TextRange text_range = 2;</code> - * - * <pre> - * Only when component is a file. Can be empty for a file if this is an issue global to the file. - * </pre> - */ - public org.sonar.db.protobuf.DbCommons.TextRange getTextRange() { - return textRange_ == null ? org.sonar.db.protobuf.DbCommons.TextRange.getDefaultInstance() : textRange_; - } - /** - * <code>optional .sonarqube.db.commons.TextRange text_range = 2;</code> - * - * <pre> - * Only when component is a file. Can be empty for a file if this is an issue global to the file. - * </pre> - */ - public org.sonar.db.protobuf.DbCommons.TextRangeOrBuilder getTextRangeOrBuilder() { - return textRange_ == null ? org.sonar.db.protobuf.DbCommons.TextRange.getDefaultInstance() : textRange_; - } - - public static final int MSG_FIELD_NUMBER = 3; - private volatile java.lang.Object msg_; - /** - * <code>optional string msg = 3;</code> - */ - public boolean hasMsg() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * <code>optional string msg = 3;</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 = 3;</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; - } - } - - 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 { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getComponentIdBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeMessage(2, getTextRange()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, getMsgBytes()); - } - unknownFields.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, getComponentIdBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getTextRange()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getMsgBytes()); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonar.db.protobuf.DbIssues.Location parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonar.db.protobuf.DbIssues.Location parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonar.db.protobuf.DbIssues.Location parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonar.db.protobuf.DbIssues.Location parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonar.db.protobuf.DbIssues.Location parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonar.db.protobuf.DbIssues.Location parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonar.db.protobuf.DbIssues.Location parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonar.db.protobuf.DbIssues.Location parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonar.db.protobuf.DbIssues.Location parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonar.db.protobuf.DbIssues.Location parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - 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 DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code sonarqube.db.issues.Location} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:sonarqube.db.issues.Location) - org.sonar.db.protobuf.DbIssues.LocationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonar.db.protobuf.DbIssues.internal_static_sonarqube_db_issues_Location_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonar.db.protobuf.DbIssues.internal_static_sonarqube_db_issues_Location_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.db.protobuf.DbIssues.Location.class, org.sonar.db.protobuf.DbIssues.Location.Builder.class); - } - - // Construct using org.sonar.db.protobuf.DbIssues.Location.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getTextRangeFieldBuilder(); - } - } - public Builder clear() { - super.clear(); - componentId_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - if (textRangeBuilder_ == null) { - textRange_ = null; - } else { - textRangeBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - msg_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonar.db.protobuf.DbIssues.internal_static_sonarqube_db_issues_Location_descriptor; - } - - public org.sonar.db.protobuf.DbIssues.Location getDefaultInstanceForType() { - return org.sonar.db.protobuf.DbIssues.Location.getDefaultInstance(); - } - - public org.sonar.db.protobuf.DbIssues.Location build() { - org.sonar.db.protobuf.DbIssues.Location result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonar.db.protobuf.DbIssues.Location buildPartial() { - org.sonar.db.protobuf.DbIssues.Location result = new org.sonar.db.protobuf.DbIssues.Location(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.componentId_ = componentId_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - if (textRangeBuilder_ == null) { - result.textRange_ = textRange_; - } else { - result.textRange_ = textRangeBuilder_.build(); - } - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.msg_ = msg_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonar.db.protobuf.DbIssues.Location) { - return mergeFrom((org.sonar.db.protobuf.DbIssues.Location)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonar.db.protobuf.DbIssues.Location other) { - if (other == org.sonar.db.protobuf.DbIssues.Location.getDefaultInstance()) return this; - if (other.hasComponentId()) { - bitField0_ |= 0x00000001; - componentId_ = other.componentId_; - onChanged(); - } - if (other.hasTextRange()) { - mergeTextRange(other.getTextRange()); - } - if (other.hasMsg()) { - bitField0_ |= 0x00000004; - msg_ = other.msg_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonar.db.protobuf.DbIssues.Location parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonar.db.protobuf.DbIssues.Location) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object componentId_ = ""; - /** - * <code>optional string component_id = 1;</code> - */ - public boolean hasComponentId() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * <code>optional string component_id = 1;</code> - */ - public java.lang.String getComponentId() { - java.lang.Object ref = componentId_; - 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()) { - componentId_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>optional string component_id = 1;</code> - */ - public com.google.protobuf.ByteString - getComponentIdBytes() { - java.lang.Object ref = componentId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - componentId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>optional string component_id = 1;</code> - */ - public Builder setComponentId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - componentId_ = value; - onChanged(); - return this; - } - /** - * <code>optional string component_id = 1;</code> - */ - public Builder clearComponentId() { - bitField0_ = (bitField0_ & ~0x00000001); - componentId_ = getDefaultInstance().getComponentId(); - onChanged(); - return this; - } - /** - * <code>optional string component_id = 1;</code> - */ - public Builder setComponentIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - componentId_ = value; - onChanged(); - return this; - } - - 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_; - /** - * <code>optional .sonarqube.db.commons.TextRange text_range = 2;</code> - * - * <pre> - * Only when component is a file. Can be empty for a file if this is an issue global to the file. - * </pre> - */ - public boolean hasTextRange() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * <code>optional .sonarqube.db.commons.TextRange text_range = 2;</code> - * - * <pre> - * Only when component is a file. Can be empty for a file if this is an issue global to the file. - * </pre> - */ - public org.sonar.db.protobuf.DbCommons.TextRange getTextRange() { - if (textRangeBuilder_ == null) { - return textRange_ == null ? org.sonar.db.protobuf.DbCommons.TextRange.getDefaultInstance() : textRange_; - } else { - return textRangeBuilder_.getMessage(); - } - } - /** - * <code>optional .sonarqube.db.commons.TextRange text_range = 2;</code> - * - * <pre> - * Only when component is a file. Can be empty for a file if this is an issue global to the file. - * </pre> - */ - public Builder setTextRange(org.sonar.db.protobuf.DbCommons.TextRange value) { - if (textRangeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - textRange_ = value; - onChanged(); - } else { - textRangeBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - return this; - } - /** - * <code>optional .sonarqube.db.commons.TextRange text_range = 2;</code> - * - * <pre> - * Only when component is a file. Can be empty for a file if this is an issue global to the file. - * </pre> - */ - public Builder setTextRange( - org.sonar.db.protobuf.DbCommons.TextRange.Builder builderForValue) { - if (textRangeBuilder_ == null) { - textRange_ = builderForValue.build(); - onChanged(); - } else { - textRangeBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - return this; - } - /** - * <code>optional .sonarqube.db.commons.TextRange text_range = 2;</code> - * - * <pre> - * Only when component is a file. Can be empty for a file if this is an issue global to the file. - * </pre> - */ - 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(); - } else { - textRange_ = value; - } - onChanged(); - } else { - textRangeBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - return this; - } - /** - * <code>optional .sonarqube.db.commons.TextRange text_range = 2;</code> - * - * <pre> - * Only when component is a file. Can be empty for a file if this is an issue global to the file. - * </pre> - */ - public Builder clearTextRange() { - if (textRangeBuilder_ == null) { - textRange_ = null; - onChanged(); - } else { - textRangeBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - /** - * <code>optional .sonarqube.db.commons.TextRange text_range = 2;</code> - * - * <pre> - * Only when component is a file. Can be empty for a file if this is an issue global to the file. - * </pre> - */ - public org.sonar.db.protobuf.DbCommons.TextRange.Builder getTextRangeBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getTextRangeFieldBuilder().getBuilder(); - } - /** - * <code>optional .sonarqube.db.commons.TextRange text_range = 2;</code> - * - * <pre> - * Only when component is a file. Can be empty for a file if this is an issue global to the file. - * </pre> - */ - public org.sonar.db.protobuf.DbCommons.TextRangeOrBuilder getTextRangeOrBuilder() { - if (textRangeBuilder_ != null) { - return textRangeBuilder_.getMessageOrBuilder(); - } else { - return textRange_ == null ? - org.sonar.db.protobuf.DbCommons.TextRange.getDefaultInstance() : textRange_; - } - } - /** - * <code>optional .sonarqube.db.commons.TextRange text_range = 2;</code> - * - * <pre> - * Only when component is a file. Can be empty for a file if this is an issue global to the file. - * </pre> - */ - private com.google.protobuf.SingleFieldBuilder< - org.sonar.db.protobuf.DbCommons.TextRange, org.sonar.db.protobuf.DbCommons.TextRange.Builder, org.sonar.db.protobuf.DbCommons.TextRangeOrBuilder> - getTextRangeFieldBuilder() { - if (textRangeBuilder_ == null) { - textRangeBuilder_ = new com.google.protobuf.SingleFieldBuilder< - org.sonar.db.protobuf.DbCommons.TextRange, org.sonar.db.protobuf.DbCommons.TextRange.Builder, org.sonar.db.protobuf.DbCommons.TextRangeOrBuilder>( - getTextRange(), - getParentForChildren(), - isClean()); - textRange_ = null; - } - return textRangeBuilder_; - } - - private java.lang.Object msg_ = ""; - /** - * <code>optional string msg = 3;</code> - */ - public boolean hasMsg() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * <code>optional string msg = 3;</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 = 3;</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 = 3;</code> - */ - public Builder setMsg( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - msg_ = value; - onChanged(); - return this; - } - /** - * <code>optional string msg = 3;</code> - */ - public Builder clearMsg() { - bitField0_ = (bitField0_ & ~0x00000004); - msg_ = getDefaultInstance().getMsg(); - onChanged(); - return this; - } - /** - * <code>optional string msg = 3;</code> - */ - public Builder setMsgBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - msg_ = value; - onChanged(); - return this; - } - - // @@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 { - 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; - } - - } - - 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 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 com.google.protobuf.Descriptors.Descriptor - internal_static_sonarqube_db_issues_Location_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_sonarqube_db_issues_Location_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\017db-issues.proto\022\023sonarqube.db.issues\032\020" + - "db-commons.proto\"i\n\tLocations\0223\n\ntext_ra" + - "nge\030\001 \001(\0132\037.sonarqube.db.commons.TextRan" + - "ge\022\'\n\004flow\030\002 \003(\0132\031.sonarqube.db.issues.F" + - "low\"7\n\004Flow\022/\n\010location\030\001 \003(\0132\035.sonarqub" + - "e.db.issues.Location\"b\n\010Location\022\024\n\014comp" + - "onent_id\030\001 \001(\t\0223\n\ntext_range\030\002 \001(\0132\037.son" + - "arqube.db.commons.TextRange\022\013\n\003msg\030\003 \001(\t" + - "B\031\n\025org.sonar.db.protobufH\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[] { - org.sonar.db.protobuf.DbCommons.getDescriptor(), - }, assigner); - internal_static_sonarqube_db_issues_Locations_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_sonarqube_db_issues_Locations_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_sonarqube_db_issues_Locations_descriptor, - new java.lang.String[] { "TextRange", "Flow", }); - internal_static_sonarqube_db_issues_Flow_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_sonarqube_db_issues_Flow_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_sonarqube_db_issues_Flow_descriptor, - new java.lang.String[] { "Location", }); - internal_static_sonarqube_db_issues_Location_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_sonarqube_db_issues_Location_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_sonarqube_db_issues_Location_descriptor, - new java.lang.String[] { "ComponentId", "TextRange", "Msg", }); - org.sonar.db.protobuf.DbCommons.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} |