+ * Start line. Should never be absent + *+ * + *
optional int32 start_line = 1;
+ * @return Whether the startLine field is set.
+ */
+ boolean hasStartLine();
+ /**
+ * + * Start line. Should never be absent + *+ * + *
optional int32 start_line = 1;
+ * @return The startLine.
+ */
+ int getStartLine();
+
+ /**
+ * + * End line (inclusive). Absent means it is same as start line + *+ * + *
optional int32 end_line = 2;
+ * @return Whether the endLine field is set.
+ */
+ boolean hasEndLine();
+ /**
+ * + * End line (inclusive). Absent means it is same as start line + *+ * + *
optional int32 end_line = 2;
+ * @return The endLine.
+ */
+ int getEndLine();
+
+ /**
+ * + * If absent it means range starts at the first offset of start line + *+ * + *
optional int32 start_offset = 3;
+ * @return Whether the startOffset field is set.
+ */
+ boolean hasStartOffset();
+ /**
+ * + * If absent it means range starts at the first offset of start line + *+ * + *
optional int32 start_offset = 3;
+ * @return The startOffset.
+ */
+ int getStartOffset();
+
+ /**
+ * + * If absent it means range ends at the last offset of end line + *+ * + *
optional int32 end_offset = 4;
+ * @return Whether the endOffset field is set.
+ */
+ boolean hasEndOffset();
+ /**
+ * + * If absent it means range ends at the last offset of end line + *+ * + *
optional int32 end_offset = 4;
+ * @return The endOffset.
+ */
+ int getEndOffset();
+ }
+ /**
+ * + * Lines start at 1 and line offsets start at 0 + *+ * + * Protobuf type {@code sonarqube.db.commons.TextRange} + */ + public static final class TextRange extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:sonarqube.db.commons.TextRange) + TextRangeOrBuilder { + private static final long serialVersionUID = 0L; + // Use TextRange.newBuilder() to construct. + private TextRange(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + private TextRange() { + } + + @Override + @SuppressWarnings({"unused"}) + protected Object newInstance( + UnusedPrivateParameter unused) { + return new TextRange(); + } + + @Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TextRange( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new NullPointerException(); + } + 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; + 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; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.educoder.ecsonar.protobuf.DbCommons.internal_static_sonarqube_db_commons_TextRange_descriptor; + } + + @Override + protected FieldAccessorTable + internalGetFieldAccessorTable() { + return net.educoder.ecsonar.protobuf.DbCommons.internal_static_sonarqube_db_commons_TextRange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + TextRange.class, Builder.class); + } + + private int bitField0_; + public static final int START_LINE_FIELD_NUMBER = 1; + private int startLine_; + /** + *
+ * Start line. Should never be absent + *+ * + *
optional int32 start_line = 1;
+ * @return Whether the startLine field is set.
+ */
+ @Override
+ public boolean hasStartLine() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ * + * Start line. Should never be absent + *+ * + *
optional int32 start_line = 1;
+ * @return The startLine.
+ */
+ @Override
+ public int getStartLine() {
+ return startLine_;
+ }
+
+ public static final int END_LINE_FIELD_NUMBER = 2;
+ private int endLine_;
+ /**
+ * + * End line (inclusive). Absent means it is same as start line + *+ * + *
optional int32 end_line = 2;
+ * @return Whether the endLine field is set.
+ */
+ @Override
+ public boolean hasEndLine() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ * + * End line (inclusive). Absent means it is same as start line + *+ * + *
optional int32 end_line = 2;
+ * @return The endLine.
+ */
+ @Override
+ public int getEndLine() {
+ return endLine_;
+ }
+
+ public static final int START_OFFSET_FIELD_NUMBER = 3;
+ private int startOffset_;
+ /**
+ * + * If absent it means range starts at the first offset of start line + *+ * + *
optional int32 start_offset = 3;
+ * @return Whether the startOffset field is set.
+ */
+ @Override
+ public boolean hasStartOffset() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+ /**
+ * + * If absent it means range starts at the first offset of start line + *+ * + *
optional int32 start_offset = 3;
+ * @return The startOffset.
+ */
+ @Override
+ public int getStartOffset() {
+ return startOffset_;
+ }
+
+ public static final int END_OFFSET_FIELD_NUMBER = 4;
+ private int endOffset_;
+ /**
+ * + * If absent it means range ends at the last offset of end line + *+ * + *
optional int32 end_offset = 4;
+ * @return Whether the endOffset field is set.
+ */
+ @Override
+ public boolean hasEndOffset() {
+ return ((bitField0_ & 0x00000008) != 0);
+ }
+ /**
+ * + * If absent it means range ends at the last offset of end line + *+ * + *
optional int32 end_offset = 4;
+ * @return The endOffset.
+ */
+ @Override
+ public int getEndOffset() {
+ return endOffset_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeInt32(1, startLine_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ output.writeInt32(2, endLine_);
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ output.writeInt32(3, startOffset_);
+ }
+ if (((bitField0_ & 0x00000008) != 0)) {
+ output.writeInt32(4, endOffset_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32Size(1, startLine_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32Size(2, endLine_);
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32Size(3, startOffset_);
+ }
+ if (((bitField0_ & 0x00000008) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32Size(4, endOffset_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @Override
+ public boolean equals(final Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof TextRange)) {
+ return super.equals(obj);
+ }
+ TextRange other = (TextRange) obj;
+
+ if (hasStartLine() != other.hasStartLine()) return false;
+ if (hasStartLine()) {
+ if (getStartLine()
+ != other.getStartLine()) return false;
+ }
+ if (hasEndLine() != other.hasEndLine()) return false;
+ if (hasEndLine()) {
+ if (getEndLine()
+ != other.getEndLine()) return false;
+ }
+ if (hasStartOffset() != other.hasStartOffset()) return false;
+ if (hasStartOffset()) {
+ if (getStartOffset()
+ != other.getStartOffset()) return false;
+ }
+ if (hasEndOffset() != other.hasEndOffset()) return false;
+ if (hasEndOffset()) {
+ if (getEndOffset()
+ != other.getEndOffset()) return false;
+ }
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasStartLine()) {
+ hash = (37 * hash) + START_LINE_FIELD_NUMBER;
+ hash = (53 * hash) + getStartLine();
+ }
+ if (hasEndLine()) {
+ hash = (37 * hash) + END_LINE_FIELD_NUMBER;
+ hash = (53 * hash) + getEndLine();
+ }
+ if (hasStartOffset()) {
+ hash = (37 * hash) + START_OFFSET_FIELD_NUMBER;
+ hash = (53 * hash) + getStartOffset();
+ }
+ if (hasEndOffset()) {
+ hash = (37 * hash) + END_OFFSET_FIELD_NUMBER;
+ hash = (53 * hash) + getEndOffset();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static TextRange parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static TextRange parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static TextRange parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static TextRange parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static TextRange parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static TextRange parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static TextRange parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static TextRange parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static TextRange parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static TextRange parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static TextRange parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static TextRange parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(TextRange prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @Override
+ protected Builder newBuilderForType(
+ BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * + * Lines start at 1 and line offsets start at 0 + *+ * + * Protobuf type {@code sonarqube.db.commons.TextRange} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder
+ * Start line. Should never be absent + *+ * + *
optional int32 start_line = 1;
+ * @return Whether the startLine field is set.
+ */
+ @Override
+ public boolean hasStartLine() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ * + * Start line. Should never be absent + *+ * + *
optional int32 start_line = 1;
+ * @return The startLine.
+ */
+ @Override
+ public int getStartLine() {
+ return startLine_;
+ }
+ /**
+ * + * Start line. Should never be absent + *+ * + *
optional int32 start_line = 1;
+ * @param value The startLine to set.
+ * @return This builder for chaining.
+ */
+ public Builder setStartLine(int value) {
+ bitField0_ |= 0x00000001;
+ startLine_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Start line. Should never be absent + *+ * + *
optional int32 start_line = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearStartLine() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ startLine_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int endLine_ ;
+ /**
+ * + * End line (inclusive). Absent means it is same as start line + *+ * + *
optional int32 end_line = 2;
+ * @return Whether the endLine field is set.
+ */
+ @Override
+ public boolean hasEndLine() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ * + * End line (inclusive). Absent means it is same as start line + *+ * + *
optional int32 end_line = 2;
+ * @return The endLine.
+ */
+ @Override
+ public int getEndLine() {
+ return endLine_;
+ }
+ /**
+ * + * End line (inclusive). Absent means it is same as start line + *+ * + *
optional int32 end_line = 2;
+ * @param value The endLine to set.
+ * @return This builder for chaining.
+ */
+ public Builder setEndLine(int value) {
+ bitField0_ |= 0x00000002;
+ endLine_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * End line (inclusive). Absent means it is same as start line + *+ * + *
optional int32 end_line = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearEndLine() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ endLine_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int startOffset_ ;
+ /**
+ * + * If absent it means range starts at the first offset of start line + *+ * + *
optional int32 start_offset = 3;
+ * @return Whether the startOffset field is set.
+ */
+ @Override
+ public boolean hasStartOffset() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+ /**
+ * + * If absent it means range starts at the first offset of start line + *+ * + *
optional int32 start_offset = 3;
+ * @return The startOffset.
+ */
+ @Override
+ public int getStartOffset() {
+ return startOffset_;
+ }
+ /**
+ * + * If absent it means range starts at the first offset of start line + *+ * + *
optional int32 start_offset = 3;
+ * @param value The startOffset to set.
+ * @return This builder for chaining.
+ */
+ public Builder setStartOffset(int value) {
+ bitField0_ |= 0x00000004;
+ startOffset_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * If absent it means range starts at the first offset of start line + *+ * + *
optional int32 start_offset = 3;
+ * @return This builder for chaining.
+ */
+ public Builder clearStartOffset() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ startOffset_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int endOffset_ ;
+ /**
+ * + * If absent it means range ends at the last offset of end line + *+ * + *
optional int32 end_offset = 4;
+ * @return Whether the endOffset field is set.
+ */
+ @Override
+ public boolean hasEndOffset() {
+ return ((bitField0_ & 0x00000008) != 0);
+ }
+ /**
+ * + * If absent it means range ends at the last offset of end line + *+ * + *
optional int32 end_offset = 4;
+ * @return The endOffset.
+ */
+ @Override
+ public int getEndOffset() {
+ return endOffset_;
+ }
+ /**
+ * + * If absent it means range ends at the last offset of end line + *+ * + *
optional int32 end_offset = 4;
+ * @param value The endOffset to set.
+ * @return This builder for chaining.
+ */
+ public Builder setEndOffset(int value) {
+ bitField0_ |= 0x00000008;
+ endOffset_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * If absent it means range ends at the last offset of end line + *+ * + *
optional int32 end_offset = 4;
+ * @return This builder for chaining.
+ */
+ public Builder clearEndOffset() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ endOffset_ = 0;
+ onChanged();
+ return this;
+ }
+ @Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:sonarqube.db.commons.TextRange)
+ }
+
+ // @@protoc_insertion_point(class_scope:sonarqube.db.commons.TextRange)
+ private static final TextRange DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new TextRange();
+ }
+
+ public static TextRange getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @Deprecated
+ public static final com.google.protobuf.Parseroptional int32 line = 1;
+ * @return Whether the line field is set.
+ */
+ boolean hasLine();
+ /**
+ * optional int32 line = 1;
+ * @return The line.
+ */
+ int getLine();
+
+ /**
+ * optional string source = 2;
+ * @return Whether the source field is set.
+ */
+ boolean hasSource();
+ /**
+ * optional string source = 2;
+ * @return The source.
+ */
+ String getSource();
+ /**
+ * optional string source = 2;
+ * @return The bytes for source.
+ */
+ com.google.protobuf.ByteString
+ getSourceBytes();
+
+ /**
+ * + * SCM + *+ * + *
optional string scm_revision = 3;
+ * @return Whether the scmRevision field is set.
+ */
+ boolean hasScmRevision();
+ /**
+ * + * SCM + *+ * + *
optional string scm_revision = 3;
+ * @return The scmRevision.
+ */
+ String getScmRevision();
+ /**
+ * + * SCM + *+ * + *
optional string scm_revision = 3;
+ * @return The bytes for scmRevision.
+ */
+ com.google.protobuf.ByteString
+ getScmRevisionBytes();
+
+ /**
+ * optional string scm_author = 4;
+ * @return Whether the scmAuthor field is set.
+ */
+ boolean hasScmAuthor();
+ /**
+ * optional string scm_author = 4;
+ * @return The scmAuthor.
+ */
+ String getScmAuthor();
+ /**
+ * optional string scm_author = 4;
+ * @return The bytes for scmAuthor.
+ */
+ com.google.protobuf.ByteString
+ getScmAuthorBytes();
+
+ /**
+ * optional int64 scm_date = 5;
+ * @return Whether the scmDate field is set.
+ */
+ boolean hasScmDate();
+ /**
+ * optional int64 scm_date = 5;
+ * @return The scmDate.
+ */
+ long getScmDate();
+
+ /**
+ * + * Deprecated fields in 6.2 (has been deprecated when merging coverage into a single metric) + * They are still used to read coverage info from sources that have not be re-analyzed + *+ * + *
optional int32 deprecated_ut_line_hits = 6;
+ * @return Whether the deprecatedUtLineHits field is set.
+ */
+ boolean hasDeprecatedUtLineHits();
+ /**
+ * + * Deprecated fields in 6.2 (has been deprecated when merging coverage into a single metric) + * They are still used to read coverage info from sources that have not be re-analyzed + *+ * + *
optional int32 deprecated_ut_line_hits = 6;
+ * @return The deprecatedUtLineHits.
+ */
+ int getDeprecatedUtLineHits();
+
+ /**
+ * optional int32 deprecated_ut_conditions = 7;
+ * @return Whether the deprecatedUtConditions field is set.
+ */
+ boolean hasDeprecatedUtConditions();
+ /**
+ * optional int32 deprecated_ut_conditions = 7;
+ * @return The deprecatedUtConditions.
+ */
+ int getDeprecatedUtConditions();
+
+ /**
+ * optional int32 deprecated_ut_covered_conditions = 8;
+ * @return Whether the deprecatedUtCoveredConditions field is set.
+ */
+ boolean hasDeprecatedUtCoveredConditions();
+ /**
+ * optional int32 deprecated_ut_covered_conditions = 8;
+ * @return The deprecatedUtCoveredConditions.
+ */
+ int getDeprecatedUtCoveredConditions();
+
+ /**
+ * optional int32 deprecated_it_line_hits = 9;
+ * @return Whether the deprecatedItLineHits field is set.
+ */
+ boolean hasDeprecatedItLineHits();
+ /**
+ * optional int32 deprecated_it_line_hits = 9;
+ * @return The deprecatedItLineHits.
+ */
+ int getDeprecatedItLineHits();
+
+ /**
+ * optional int32 deprecated_it_conditions = 10;
+ * @return Whether the deprecatedItConditions field is set.
+ */
+ boolean hasDeprecatedItConditions();
+ /**
+ * optional int32 deprecated_it_conditions = 10;
+ * @return The deprecatedItConditions.
+ */
+ int getDeprecatedItConditions();
+
+ /**
+ * optional int32 deprecated_it_covered_conditions = 11;
+ * @return Whether the deprecatedItCoveredConditions field is set.
+ */
+ boolean hasDeprecatedItCoveredConditions();
+ /**
+ * optional int32 deprecated_it_covered_conditions = 11;
+ * @return The deprecatedItCoveredConditions.
+ */
+ int getDeprecatedItCoveredConditions();
+
+ /**
+ * optional int32 deprecated_overall_line_hits = 12;
+ * @return Whether the deprecatedOverallLineHits field is set.
+ */
+ boolean hasDeprecatedOverallLineHits();
+ /**
+ * optional int32 deprecated_overall_line_hits = 12;
+ * @return The deprecatedOverallLineHits.
+ */
+ int getDeprecatedOverallLineHits();
+
+ /**
+ * optional int32 deprecated_overall_conditions = 13;
+ * @return Whether the deprecatedOverallConditions field is set.
+ */
+ boolean hasDeprecatedOverallConditions();
+ /**
+ * optional int32 deprecated_overall_conditions = 13;
+ * @return The deprecatedOverallConditions.
+ */
+ int getDeprecatedOverallConditions();
+
+ /**
+ * optional int32 deprecated_overall_covered_conditions = 14;
+ * @return Whether the deprecatedOverallCoveredConditions field is set.
+ */
+ boolean hasDeprecatedOverallCoveredConditions();
+ /**
+ * optional int32 deprecated_overall_covered_conditions = 14;
+ * @return The deprecatedOverallCoveredConditions.
+ */
+ int getDeprecatedOverallCoveredConditions();
+
+ /**
+ * optional string highlighting = 15;
+ * @return Whether the highlighting field is set.
+ */
+ boolean hasHighlighting();
+ /**
+ * optional string highlighting = 15;
+ * @return The highlighting.
+ */
+ String getHighlighting();
+ /**
+ * optional string highlighting = 15;
+ * @return The bytes for highlighting.
+ */
+ com.google.protobuf.ByteString
+ getHighlightingBytes();
+
+ /**
+ * optional string symbols = 16;
+ * @return Whether the symbols field is set.
+ */
+ boolean hasSymbols();
+ /**
+ * optional string symbols = 16;
+ * @return The symbols.
+ */
+ String getSymbols();
+ /**
+ * optional string symbols = 16;
+ * @return The bytes for symbols.
+ */
+ com.google.protobuf.ByteString
+ getSymbolsBytes();
+
+ /**
+ * repeated int32 duplication = 17 [packed = true];
+ * @return A list containing the duplication.
+ */
+ java.util.Listrepeated int32 duplication = 17 [packed = true];
+ * @return The count of duplication.
+ */
+ int getDuplicationCount();
+ /**
+ * repeated int32 duplication = 17 [packed = true];
+ * @param index The index of the element to return.
+ * @return The duplication at the given index.
+ */
+ int getDuplication(int index);
+
+ /**
+ * + * coverage info (since 6.2) + *+ * + *
optional int32 line_hits = 18;
+ * @return Whether the lineHits field is set.
+ */
+ boolean hasLineHits();
+ /**
+ * + * coverage info (since 6.2) + *+ * + *
optional int32 line_hits = 18;
+ * @return The lineHits.
+ */
+ int getLineHits();
+
+ /**
+ * optional int32 conditions = 19;
+ * @return Whether the conditions field is set.
+ */
+ boolean hasConditions();
+ /**
+ * optional int32 conditions = 19;
+ * @return The conditions.
+ */
+ int getConditions();
+
+ /**
+ * optional int32 covered_conditions = 20;
+ * @return Whether the coveredConditions field is set.
+ */
+ boolean hasCoveredConditions();
+ /**
+ * optional int32 covered_conditions = 20;
+ * @return The coveredConditions.
+ */
+ int getCoveredConditions();
+
+ /**
+ * optional bool is_new_line = 21;
+ * @return Whether the isNewLine field is set.
+ */
+ boolean hasIsNewLine();
+ /**
+ * optional bool is_new_line = 21;
+ * @return The isNewLine.
+ */
+ boolean getIsNewLine();
+ }
+ /**
+ * Protobuf type {@code org.sonar.server.source.db.Line}
+ */
+ public static final class Line extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:org.sonar.server.source.db.Line)
+ LineOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use Line.newBuilder() to construct.
+ private Line(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private Line() {
+ source_ = "";
+ scmRevision_ = "";
+ scmAuthor_ = "";
+ highlighting_ = "";
+ symbols_ = "";
+ duplication_ = emptyIntList();
+ }
+
+ @Override
+ @SuppressWarnings({"unused"})
+ protected Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new Line();
+ }
+
+ @Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private Line(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new NullPointerException();
+ }
+ 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;
+ 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;
+ deprecatedUtLineHits_ = input.readInt32();
+ break;
+ }
+ case 56: {
+ bitField0_ |= 0x00000040;
+ deprecatedUtConditions_ = input.readInt32();
+ break;
+ }
+ case 64: {
+ bitField0_ |= 0x00000080;
+ deprecatedUtCoveredConditions_ = input.readInt32();
+ break;
+ }
+ case 72: {
+ bitField0_ |= 0x00000100;
+ deprecatedItLineHits_ = input.readInt32();
+ break;
+ }
+ case 80: {
+ bitField0_ |= 0x00000200;
+ deprecatedItConditions_ = input.readInt32();
+ break;
+ }
+ case 88: {
+ bitField0_ |= 0x00000400;
+ deprecatedItCoveredConditions_ = input.readInt32();
+ break;
+ }
+ case 96: {
+ bitField0_ |= 0x00000800;
+ deprecatedOverallLineHits_ = input.readInt32();
+ break;
+ }
+ case 104: {
+ bitField0_ |= 0x00001000;
+ deprecatedOverallConditions_ = input.readInt32();
+ break;
+ }
+ case 112: {
+ bitField0_ |= 0x00002000;
+ deprecatedOverallCoveredConditions_ = 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) != 0)) {
+ duplication_ = newIntList();
+ mutable_bitField0_ |= 0x00010000;
+ }
+ duplication_.addInt(input.readInt32());
+ break;
+ }
+ case 138: {
+ int length = input.readRawVarint32();
+ int limit = input.pushLimit(length);
+ if (!((mutable_bitField0_ & 0x00010000) != 0) && input.getBytesUntilLimit() > 0) {
+ duplication_ = newIntList();
+ mutable_bitField0_ |= 0x00010000;
+ }
+ while (input.getBytesUntilLimit() > 0) {
+ duplication_.addInt(input.readInt32());
+ }
+ input.popLimit(limit);
+ break;
+ }
+ case 144: {
+ bitField0_ |= 0x00010000;
+ lineHits_ = input.readInt32();
+ break;
+ }
+ case 152: {
+ bitField0_ |= 0x00020000;
+ conditions_ = input.readInt32();
+ break;
+ }
+ case 160: {
+ bitField0_ |= 0x00040000;
+ coveredConditions_ = input.readInt32();
+ break;
+ }
+ case 168: {
+ bitField0_ |= 0x00080000;
+ isNewLine_ = input.readBool();
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ if (((mutable_bitField0_ & 0x00010000) != 0)) {
+ duplication_.makeImmutable(); // C
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return net.educoder.ecsonar.protobuf.DbFileSources.internal_static_org_sonar_server_source_db_Line_descriptor;
+ }
+
+ @Override
+ protected FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return net.educoder.ecsonar.protobuf.DbFileSources.internal_static_org_sonar_server_source_db_Line_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ Line.class, Builder.class);
+ }
+
+ private int bitField0_;
+ public static final int LINE_FIELD_NUMBER = 1;
+ private int line_;
+ /**
+ * optional int32 line = 1;
+ * @return Whether the line field is set.
+ */
+ @Override
+ public boolean hasLine() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ * optional int32 line = 1;
+ * @return The line.
+ */
+ @Override
+ public int getLine() {
+ return line_;
+ }
+
+ public static final int SOURCE_FIELD_NUMBER = 2;
+ private volatile Object source_;
+ /**
+ * optional string source = 2;
+ * @return Whether the source field is set.
+ */
+ @Override
+ public boolean hasSource() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ * optional string source = 2;
+ * @return The source.
+ */
+ @Override
+ public String getSource() {
+ Object ref = source_;
+ if (ref instanceof String) {
+ return (String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ source_ = s;
+ }
+ return s;
+ }
+ }
+ /**
+ * optional string source = 2;
+ * @return The bytes for source.
+ */
+ @Override
+ public com.google.protobuf.ByteString
+ getSourceBytes() {
+ Object ref = source_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (String) ref);
+ source_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int SCM_REVISION_FIELD_NUMBER = 3;
+ private volatile Object scmRevision_;
+ /**
+ * + * SCM + *+ * + *
optional string scm_revision = 3;
+ * @return Whether the scmRevision field is set.
+ */
+ @Override
+ public boolean hasScmRevision() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+ /**
+ * + * SCM + *+ * + *
optional string scm_revision = 3;
+ * @return The scmRevision.
+ */
+ @Override
+ public String getScmRevision() {
+ Object ref = scmRevision_;
+ if (ref instanceof String) {
+ return (String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ scmRevision_ = s;
+ }
+ return s;
+ }
+ }
+ /**
+ * + * SCM + *+ * + *
optional string scm_revision = 3;
+ * @return The bytes for scmRevision.
+ */
+ @Override
+ public com.google.protobuf.ByteString
+ getScmRevisionBytes() {
+ Object ref = scmRevision_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (String) ref);
+ scmRevision_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int SCM_AUTHOR_FIELD_NUMBER = 4;
+ private volatile Object scmAuthor_;
+ /**
+ * optional string scm_author = 4;
+ * @return Whether the scmAuthor field is set.
+ */
+ @Override
+ public boolean hasScmAuthor() {
+ return ((bitField0_ & 0x00000008) != 0);
+ }
+ /**
+ * optional string scm_author = 4;
+ * @return The scmAuthor.
+ */
+ @Override
+ public String getScmAuthor() {
+ Object ref = scmAuthor_;
+ if (ref instanceof String) {
+ return (String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ scmAuthor_ = s;
+ }
+ return s;
+ }
+ }
+ /**
+ * optional string scm_author = 4;
+ * @return The bytes for scmAuthor.
+ */
+ @Override
+ public com.google.protobuf.ByteString
+ getScmAuthorBytes() {
+ Object ref = scmAuthor_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (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_;
+ /**
+ * optional int64 scm_date = 5;
+ * @return Whether the scmDate field is set.
+ */
+ @Override
+ public boolean hasScmDate() {
+ return ((bitField0_ & 0x00000010) != 0);
+ }
+ /**
+ * optional int64 scm_date = 5;
+ * @return The scmDate.
+ */
+ @Override
+ public long getScmDate() {
+ return scmDate_;
+ }
+
+ public static final int DEPRECATED_UT_LINE_HITS_FIELD_NUMBER = 6;
+ private int deprecatedUtLineHits_;
+ /**
+ * + * Deprecated fields in 6.2 (has been deprecated when merging coverage into a single metric) + * They are still used to read coverage info from sources that have not be re-analyzed + *+ * + *
optional int32 deprecated_ut_line_hits = 6;
+ * @return Whether the deprecatedUtLineHits field is set.
+ */
+ @Override
+ public boolean hasDeprecatedUtLineHits() {
+ return ((bitField0_ & 0x00000020) != 0);
+ }
+ /**
+ * + * Deprecated fields in 6.2 (has been deprecated when merging coverage into a single metric) + * They are still used to read coverage info from sources that have not be re-analyzed + *+ * + *
optional int32 deprecated_ut_line_hits = 6;
+ * @return The deprecatedUtLineHits.
+ */
+ @Override
+ public int getDeprecatedUtLineHits() {
+ return deprecatedUtLineHits_;
+ }
+
+ public static final int DEPRECATED_UT_CONDITIONS_FIELD_NUMBER = 7;
+ private int deprecatedUtConditions_;
+ /**
+ * optional int32 deprecated_ut_conditions = 7;
+ * @return Whether the deprecatedUtConditions field is set.
+ */
+ @Override
+ public boolean hasDeprecatedUtConditions() {
+ return ((bitField0_ & 0x00000040) != 0);
+ }
+ /**
+ * optional int32 deprecated_ut_conditions = 7;
+ * @return The deprecatedUtConditions.
+ */
+ @Override
+ public int getDeprecatedUtConditions() {
+ return deprecatedUtConditions_;
+ }
+
+ public static final int DEPRECATED_UT_COVERED_CONDITIONS_FIELD_NUMBER = 8;
+ private int deprecatedUtCoveredConditions_;
+ /**
+ * optional int32 deprecated_ut_covered_conditions = 8;
+ * @return Whether the deprecatedUtCoveredConditions field is set.
+ */
+ @Override
+ public boolean hasDeprecatedUtCoveredConditions() {
+ return ((bitField0_ & 0x00000080) != 0);
+ }
+ /**
+ * optional int32 deprecated_ut_covered_conditions = 8;
+ * @return The deprecatedUtCoveredConditions.
+ */
+ @Override
+ public int getDeprecatedUtCoveredConditions() {
+ return deprecatedUtCoveredConditions_;
+ }
+
+ public static final int DEPRECATED_IT_LINE_HITS_FIELD_NUMBER = 9;
+ private int deprecatedItLineHits_;
+ /**
+ * optional int32 deprecated_it_line_hits = 9;
+ * @return Whether the deprecatedItLineHits field is set.
+ */
+ @Override
+ public boolean hasDeprecatedItLineHits() {
+ return ((bitField0_ & 0x00000100) != 0);
+ }
+ /**
+ * optional int32 deprecated_it_line_hits = 9;
+ * @return The deprecatedItLineHits.
+ */
+ @Override
+ public int getDeprecatedItLineHits() {
+ return deprecatedItLineHits_;
+ }
+
+ public static final int DEPRECATED_IT_CONDITIONS_FIELD_NUMBER = 10;
+ private int deprecatedItConditions_;
+ /**
+ * optional int32 deprecated_it_conditions = 10;
+ * @return Whether the deprecatedItConditions field is set.
+ */
+ @Override
+ public boolean hasDeprecatedItConditions() {
+ return ((bitField0_ & 0x00000200) != 0);
+ }
+ /**
+ * optional int32 deprecated_it_conditions = 10;
+ * @return The deprecatedItConditions.
+ */
+ @Override
+ public int getDeprecatedItConditions() {
+ return deprecatedItConditions_;
+ }
+
+ public static final int DEPRECATED_IT_COVERED_CONDITIONS_FIELD_NUMBER = 11;
+ private int deprecatedItCoveredConditions_;
+ /**
+ * optional int32 deprecated_it_covered_conditions = 11;
+ * @return Whether the deprecatedItCoveredConditions field is set.
+ */
+ @Override
+ public boolean hasDeprecatedItCoveredConditions() {
+ return ((bitField0_ & 0x00000400) != 0);
+ }
+ /**
+ * optional int32 deprecated_it_covered_conditions = 11;
+ * @return The deprecatedItCoveredConditions.
+ */
+ @Override
+ public int getDeprecatedItCoveredConditions() {
+ return deprecatedItCoveredConditions_;
+ }
+
+ public static final int DEPRECATED_OVERALL_LINE_HITS_FIELD_NUMBER = 12;
+ private int deprecatedOverallLineHits_;
+ /**
+ * optional int32 deprecated_overall_line_hits = 12;
+ * @return Whether the deprecatedOverallLineHits field is set.
+ */
+ @Override
+ public boolean hasDeprecatedOverallLineHits() {
+ return ((bitField0_ & 0x00000800) != 0);
+ }
+ /**
+ * optional int32 deprecated_overall_line_hits = 12;
+ * @return The deprecatedOverallLineHits.
+ */
+ @Override
+ public int getDeprecatedOverallLineHits() {
+ return deprecatedOverallLineHits_;
+ }
+
+ public static final int DEPRECATED_OVERALL_CONDITIONS_FIELD_NUMBER = 13;
+ private int deprecatedOverallConditions_;
+ /**
+ * optional int32 deprecated_overall_conditions = 13;
+ * @return Whether the deprecatedOverallConditions field is set.
+ */
+ @Override
+ public boolean hasDeprecatedOverallConditions() {
+ return ((bitField0_ & 0x00001000) != 0);
+ }
+ /**
+ * optional int32 deprecated_overall_conditions = 13;
+ * @return The deprecatedOverallConditions.
+ */
+ @Override
+ public int getDeprecatedOverallConditions() {
+ return deprecatedOverallConditions_;
+ }
+
+ public static final int DEPRECATED_OVERALL_COVERED_CONDITIONS_FIELD_NUMBER = 14;
+ private int deprecatedOverallCoveredConditions_;
+ /**
+ * optional int32 deprecated_overall_covered_conditions = 14;
+ * @return Whether the deprecatedOverallCoveredConditions field is set.
+ */
+ @Override
+ public boolean hasDeprecatedOverallCoveredConditions() {
+ return ((bitField0_ & 0x00002000) != 0);
+ }
+ /**
+ * optional int32 deprecated_overall_covered_conditions = 14;
+ * @return The deprecatedOverallCoveredConditions.
+ */
+ @Override
+ public int getDeprecatedOverallCoveredConditions() {
+ return deprecatedOverallCoveredConditions_;
+ }
+
+ public static final int HIGHLIGHTING_FIELD_NUMBER = 15;
+ private volatile Object highlighting_;
+ /**
+ * optional string highlighting = 15;
+ * @return Whether the highlighting field is set.
+ */
+ @Override
+ public boolean hasHighlighting() {
+ return ((bitField0_ & 0x00004000) != 0);
+ }
+ /**
+ * optional string highlighting = 15;
+ * @return The highlighting.
+ */
+ @Override
+ public String getHighlighting() {
+ Object ref = highlighting_;
+ if (ref instanceof String) {
+ return (String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ highlighting_ = s;
+ }
+ return s;
+ }
+ }
+ /**
+ * optional string highlighting = 15;
+ * @return The bytes for highlighting.
+ */
+ @Override
+ public com.google.protobuf.ByteString
+ getHighlightingBytes() {
+ Object ref = highlighting_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (String) ref);
+ highlighting_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int SYMBOLS_FIELD_NUMBER = 16;
+ private volatile Object symbols_;
+ /**
+ * optional string symbols = 16;
+ * @return Whether the symbols field is set.
+ */
+ @Override
+ public boolean hasSymbols() {
+ return ((bitField0_ & 0x00008000) != 0);
+ }
+ /**
+ * optional string symbols = 16;
+ * @return The symbols.
+ */
+ @Override
+ public String getSymbols() {
+ Object ref = symbols_;
+ if (ref instanceof String) {
+ return (String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ symbols_ = s;
+ }
+ return s;
+ }
+ }
+ /**
+ * optional string symbols = 16;
+ * @return The bytes for symbols.
+ */
+ @Override
+ public com.google.protobuf.ByteString
+ getSymbolsBytes() {
+ Object ref = symbols_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (String) ref);
+ symbols_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int DUPLICATION_FIELD_NUMBER = 17;
+ private com.google.protobuf.Internal.IntList duplication_;
+ /**
+ * repeated int32 duplication = 17 [packed = true];
+ * @return A list containing the duplication.
+ */
+ @Override
+ public java.util.Listrepeated int32 duplication = 17 [packed = true];
+ * @return The count of duplication.
+ */
+ public int getDuplicationCount() {
+ return duplication_.size();
+ }
+ /**
+ * repeated int32 duplication = 17 [packed = true];
+ * @param index The index of the element to return.
+ * @return The duplication at the given index.
+ */
+ public int getDuplication(int index) {
+ return duplication_.getInt(index);
+ }
+ private int duplicationMemoizedSerializedSize = -1;
+
+ public static final int LINE_HITS_FIELD_NUMBER = 18;
+ private int lineHits_;
+ /**
+ * + * coverage info (since 6.2) + *+ * + *
optional int32 line_hits = 18;
+ * @return Whether the lineHits field is set.
+ */
+ @Override
+ public boolean hasLineHits() {
+ return ((bitField0_ & 0x00010000) != 0);
+ }
+ /**
+ * + * coverage info (since 6.2) + *+ * + *
optional int32 line_hits = 18;
+ * @return The lineHits.
+ */
+ @Override
+ public int getLineHits() {
+ return lineHits_;
+ }
+
+ public static final int CONDITIONS_FIELD_NUMBER = 19;
+ private int conditions_;
+ /**
+ * optional int32 conditions = 19;
+ * @return Whether the conditions field is set.
+ */
+ @Override
+ public boolean hasConditions() {
+ return ((bitField0_ & 0x00020000) != 0);
+ }
+ /**
+ * optional int32 conditions = 19;
+ * @return The conditions.
+ */
+ @Override
+ public int getConditions() {
+ return conditions_;
+ }
+
+ public static final int COVERED_CONDITIONS_FIELD_NUMBER = 20;
+ private int coveredConditions_;
+ /**
+ * optional int32 covered_conditions = 20;
+ * @return Whether the coveredConditions field is set.
+ */
+ @Override
+ public boolean hasCoveredConditions() {
+ return ((bitField0_ & 0x00040000) != 0);
+ }
+ /**
+ * optional int32 covered_conditions = 20;
+ * @return The coveredConditions.
+ */
+ @Override
+ public int getCoveredConditions() {
+ return coveredConditions_;
+ }
+
+ public static final int IS_NEW_LINE_FIELD_NUMBER = 21;
+ private boolean isNewLine_;
+ /**
+ * optional bool is_new_line = 21;
+ * @return Whether the isNewLine field is set.
+ */
+ @Override
+ public boolean hasIsNewLine() {
+ return ((bitField0_ & 0x00080000) != 0);
+ }
+ /**
+ * optional bool is_new_line = 21;
+ * @return The isNewLine.
+ */
+ @Override
+ public boolean getIsNewLine() {
+ return isNewLine_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ getSerializedSize();
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeInt32(1, line_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, source_);
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, scmRevision_);
+ }
+ if (((bitField0_ & 0x00000008) != 0)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, scmAuthor_);
+ }
+ if (((bitField0_ & 0x00000010) != 0)) {
+ output.writeInt64(5, scmDate_);
+ }
+ if (((bitField0_ & 0x00000020) != 0)) {
+ output.writeInt32(6, deprecatedUtLineHits_);
+ }
+ if (((bitField0_ & 0x00000040) != 0)) {
+ output.writeInt32(7, deprecatedUtConditions_);
+ }
+ if (((bitField0_ & 0x00000080) != 0)) {
+ output.writeInt32(8, deprecatedUtCoveredConditions_);
+ }
+ if (((bitField0_ & 0x00000100) != 0)) {
+ output.writeInt32(9, deprecatedItLineHits_);
+ }
+ if (((bitField0_ & 0x00000200) != 0)) {
+ output.writeInt32(10, deprecatedItConditions_);
+ }
+ if (((bitField0_ & 0x00000400) != 0)) {
+ output.writeInt32(11, deprecatedItCoveredConditions_);
+ }
+ if (((bitField0_ & 0x00000800) != 0)) {
+ output.writeInt32(12, deprecatedOverallLineHits_);
+ }
+ if (((bitField0_ & 0x00001000) != 0)) {
+ output.writeInt32(13, deprecatedOverallConditions_);
+ }
+ if (((bitField0_ & 0x00002000) != 0)) {
+ output.writeInt32(14, deprecatedOverallCoveredConditions_);
+ }
+ if (((bitField0_ & 0x00004000) != 0)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 15, highlighting_);
+ }
+ if (((bitField0_ & 0x00008000) != 0)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 16, symbols_);
+ }
+ if (getDuplicationList().size() > 0) {
+ output.writeUInt32NoTag(138);
+ output.writeUInt32NoTag(duplicationMemoizedSerializedSize);
+ }
+ for (int i = 0; i < duplication_.size(); i++) {
+ output.writeInt32NoTag(duplication_.getInt(i));
+ }
+ if (((bitField0_ & 0x00010000) != 0)) {
+ output.writeInt32(18, lineHits_);
+ }
+ if (((bitField0_ & 0x00020000) != 0)) {
+ output.writeInt32(19, conditions_);
+ }
+ if (((bitField0_ & 0x00040000) != 0)) {
+ output.writeInt32(20, coveredConditions_);
+ }
+ if (((bitField0_ & 0x00080000) != 0)) {
+ output.writeBool(21, isNewLine_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32Size(1, line_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, source_);
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, scmRevision_);
+ }
+ if (((bitField0_ & 0x00000008) != 0)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, scmAuthor_);
+ }
+ if (((bitField0_ & 0x00000010) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt64Size(5, scmDate_);
+ }
+ if (((bitField0_ & 0x00000020) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32Size(6, deprecatedUtLineHits_);
+ }
+ if (((bitField0_ & 0x00000040) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32Size(7, deprecatedUtConditions_);
+ }
+ if (((bitField0_ & 0x00000080) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32Size(8, deprecatedUtCoveredConditions_);
+ }
+ if (((bitField0_ & 0x00000100) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32Size(9, deprecatedItLineHits_);
+ }
+ if (((bitField0_ & 0x00000200) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32Size(10, deprecatedItConditions_);
+ }
+ if (((bitField0_ & 0x00000400) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32Size(11, deprecatedItCoveredConditions_);
+ }
+ if (((bitField0_ & 0x00000800) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32Size(12, deprecatedOverallLineHits_);
+ }
+ if (((bitField0_ & 0x00001000) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32Size(13, deprecatedOverallConditions_);
+ }
+ if (((bitField0_ & 0x00002000) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32Size(14, deprecatedOverallCoveredConditions_);
+ }
+ if (((bitField0_ & 0x00004000) != 0)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, highlighting_);
+ }
+ if (((bitField0_ & 0x00008000) != 0)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, symbols_);
+ }
+ {
+ int dataSize = 0;
+ for (int i = 0; i < duplication_.size(); i++) {
+ dataSize += com.google.protobuf.CodedOutputStream
+ .computeInt32SizeNoTag(duplication_.getInt(i));
+ }
+ size += dataSize;
+ if (!getDuplicationList().isEmpty()) {
+ size += 2;
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32SizeNoTag(dataSize);
+ }
+ duplicationMemoizedSerializedSize = dataSize;
+ }
+ if (((bitField0_ & 0x00010000) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32Size(18, lineHits_);
+ }
+ if (((bitField0_ & 0x00020000) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32Size(19, conditions_);
+ }
+ if (((bitField0_ & 0x00040000) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32Size(20, coveredConditions_);
+ }
+ if (((bitField0_ & 0x00080000) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(21, isNewLine_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @Override
+ public boolean equals(final Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof Line)) {
+ return super.equals(obj);
+ }
+ Line other = (Line) obj;
+
+ if (hasLine() != other.hasLine()) return false;
+ if (hasLine()) {
+ if (getLine()
+ != other.getLine()) return false;
+ }
+ if (hasSource() != other.hasSource()) return false;
+ if (hasSource()) {
+ if (!getSource()
+ .equals(other.getSource())) return false;
+ }
+ if (hasScmRevision() != other.hasScmRevision()) return false;
+ if (hasScmRevision()) {
+ if (!getScmRevision()
+ .equals(other.getScmRevision())) return false;
+ }
+ if (hasScmAuthor() != other.hasScmAuthor()) return false;
+ if (hasScmAuthor()) {
+ if (!getScmAuthor()
+ .equals(other.getScmAuthor())) return false;
+ }
+ if (hasScmDate() != other.hasScmDate()) return false;
+ if (hasScmDate()) {
+ if (getScmDate()
+ != other.getScmDate()) return false;
+ }
+ if (hasDeprecatedUtLineHits() != other.hasDeprecatedUtLineHits()) return false;
+ if (hasDeprecatedUtLineHits()) {
+ if (getDeprecatedUtLineHits()
+ != other.getDeprecatedUtLineHits()) return false;
+ }
+ if (hasDeprecatedUtConditions() != other.hasDeprecatedUtConditions()) return false;
+ if (hasDeprecatedUtConditions()) {
+ if (getDeprecatedUtConditions()
+ != other.getDeprecatedUtConditions()) return false;
+ }
+ if (hasDeprecatedUtCoveredConditions() != other.hasDeprecatedUtCoveredConditions()) return false;
+ if (hasDeprecatedUtCoveredConditions()) {
+ if (getDeprecatedUtCoveredConditions()
+ != other.getDeprecatedUtCoveredConditions()) return false;
+ }
+ if (hasDeprecatedItLineHits() != other.hasDeprecatedItLineHits()) return false;
+ if (hasDeprecatedItLineHits()) {
+ if (getDeprecatedItLineHits()
+ != other.getDeprecatedItLineHits()) return false;
+ }
+ if (hasDeprecatedItConditions() != other.hasDeprecatedItConditions()) return false;
+ if (hasDeprecatedItConditions()) {
+ if (getDeprecatedItConditions()
+ != other.getDeprecatedItConditions()) return false;
+ }
+ if (hasDeprecatedItCoveredConditions() != other.hasDeprecatedItCoveredConditions()) return false;
+ if (hasDeprecatedItCoveredConditions()) {
+ if (getDeprecatedItCoveredConditions()
+ != other.getDeprecatedItCoveredConditions()) return false;
+ }
+ if (hasDeprecatedOverallLineHits() != other.hasDeprecatedOverallLineHits()) return false;
+ if (hasDeprecatedOverallLineHits()) {
+ if (getDeprecatedOverallLineHits()
+ != other.getDeprecatedOverallLineHits()) return false;
+ }
+ if (hasDeprecatedOverallConditions() != other.hasDeprecatedOverallConditions()) return false;
+ if (hasDeprecatedOverallConditions()) {
+ if (getDeprecatedOverallConditions()
+ != other.getDeprecatedOverallConditions()) return false;
+ }
+ if (hasDeprecatedOverallCoveredConditions() != other.hasDeprecatedOverallCoveredConditions()) return false;
+ if (hasDeprecatedOverallCoveredConditions()) {
+ if (getDeprecatedOverallCoveredConditions()
+ != other.getDeprecatedOverallCoveredConditions()) return false;
+ }
+ if (hasHighlighting() != other.hasHighlighting()) return false;
+ if (hasHighlighting()) {
+ if (!getHighlighting()
+ .equals(other.getHighlighting())) return false;
+ }
+ if (hasSymbols() != other.hasSymbols()) return false;
+ if (hasSymbols()) {
+ if (!getSymbols()
+ .equals(other.getSymbols())) return false;
+ }
+ if (!getDuplicationList()
+ .equals(other.getDuplicationList())) return false;
+ if (hasLineHits() != other.hasLineHits()) return false;
+ if (hasLineHits()) {
+ if (getLineHits()
+ != other.getLineHits()) return false;
+ }
+ if (hasConditions() != other.hasConditions()) return false;
+ if (hasConditions()) {
+ if (getConditions()
+ != other.getConditions()) return false;
+ }
+ if (hasCoveredConditions() != other.hasCoveredConditions()) return false;
+ if (hasCoveredConditions()) {
+ if (getCoveredConditions()
+ != other.getCoveredConditions()) return false;
+ }
+ if (hasIsNewLine() != other.hasIsNewLine()) return false;
+ if (hasIsNewLine()) {
+ if (getIsNewLine()
+ != other.getIsNewLine()) return false;
+ }
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasLine()) {
+ hash = (37 * hash) + LINE_FIELD_NUMBER;
+ hash = (53 * hash) + getLine();
+ }
+ if (hasSource()) {
+ hash = (37 * hash) + SOURCE_FIELD_NUMBER;
+ hash = (53 * hash) + getSource().hashCode();
+ }
+ if (hasScmRevision()) {
+ hash = (37 * hash) + SCM_REVISION_FIELD_NUMBER;
+ hash = (53 * hash) + getScmRevision().hashCode();
+ }
+ if (hasScmAuthor()) {
+ hash = (37 * hash) + SCM_AUTHOR_FIELD_NUMBER;
+ hash = (53 * hash) + getScmAuthor().hashCode();
+ }
+ if (hasScmDate()) {
+ hash = (37 * hash) + SCM_DATE_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getScmDate());
+ }
+ if (hasDeprecatedUtLineHits()) {
+ hash = (37 * hash) + DEPRECATED_UT_LINE_HITS_FIELD_NUMBER;
+ hash = (53 * hash) + getDeprecatedUtLineHits();
+ }
+ if (hasDeprecatedUtConditions()) {
+ hash = (37 * hash) + DEPRECATED_UT_CONDITIONS_FIELD_NUMBER;
+ hash = (53 * hash) + getDeprecatedUtConditions();
+ }
+ if (hasDeprecatedUtCoveredConditions()) {
+ hash = (37 * hash) + DEPRECATED_UT_COVERED_CONDITIONS_FIELD_NUMBER;
+ hash = (53 * hash) + getDeprecatedUtCoveredConditions();
+ }
+ if (hasDeprecatedItLineHits()) {
+ hash = (37 * hash) + DEPRECATED_IT_LINE_HITS_FIELD_NUMBER;
+ hash = (53 * hash) + getDeprecatedItLineHits();
+ }
+ if (hasDeprecatedItConditions()) {
+ hash = (37 * hash) + DEPRECATED_IT_CONDITIONS_FIELD_NUMBER;
+ hash = (53 * hash) + getDeprecatedItConditions();
+ }
+ if (hasDeprecatedItCoveredConditions()) {
+ hash = (37 * hash) + DEPRECATED_IT_COVERED_CONDITIONS_FIELD_NUMBER;
+ hash = (53 * hash) + getDeprecatedItCoveredConditions();
+ }
+ if (hasDeprecatedOverallLineHits()) {
+ hash = (37 * hash) + DEPRECATED_OVERALL_LINE_HITS_FIELD_NUMBER;
+ hash = (53 * hash) + getDeprecatedOverallLineHits();
+ }
+ if (hasDeprecatedOverallConditions()) {
+ hash = (37 * hash) + DEPRECATED_OVERALL_CONDITIONS_FIELD_NUMBER;
+ hash = (53 * hash) + getDeprecatedOverallConditions();
+ }
+ if (hasDeprecatedOverallCoveredConditions()) {
+ hash = (37 * hash) + DEPRECATED_OVERALL_COVERED_CONDITIONS_FIELD_NUMBER;
+ hash = (53 * hash) + getDeprecatedOverallCoveredConditions();
+ }
+ if (hasHighlighting()) {
+ hash = (37 * hash) + HIGHLIGHTING_FIELD_NUMBER;
+ hash = (53 * hash) + getHighlighting().hashCode();
+ }
+ if (hasSymbols()) {
+ hash = (37 * hash) + SYMBOLS_FIELD_NUMBER;
+ hash = (53 * hash) + getSymbols().hashCode();
+ }
+ if (getDuplicationCount() > 0) {
+ hash = (37 * hash) + DUPLICATION_FIELD_NUMBER;
+ hash = (53 * hash) + getDuplicationList().hashCode();
+ }
+ if (hasLineHits()) {
+ hash = (37 * hash) + LINE_HITS_FIELD_NUMBER;
+ hash = (53 * hash) + getLineHits();
+ }
+ if (hasConditions()) {
+ hash = (37 * hash) + CONDITIONS_FIELD_NUMBER;
+ hash = (53 * hash) + getConditions();
+ }
+ if (hasCoveredConditions()) {
+ hash = (37 * hash) + COVERED_CONDITIONS_FIELD_NUMBER;
+ hash = (53 * hash) + getCoveredConditions();
+ }
+ if (hasIsNewLine()) {
+ hash = (37 * hash) + IS_NEW_LINE_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getIsNewLine());
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static Line parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static Line parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static Line parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static Line parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static Line parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static Line parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static Line parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static Line parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static Line parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static Line parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static Line parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static Line parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(Line prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @Override
+ protected Builder newBuilderForType(
+ 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.GeneratedMessageV3.Builderoptional int32 line = 1;
+ * @return Whether the line field is set.
+ */
+ @Override
+ public boolean hasLine() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ * optional int32 line = 1;
+ * @return The line.
+ */
+ @Override
+ public int getLine() {
+ return line_;
+ }
+ /**
+ * optional int32 line = 1;
+ * @param value The line to set.
+ * @return This builder for chaining.
+ */
+ public Builder setLine(int value) {
+ bitField0_ |= 0x00000001;
+ line_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional int32 line = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearLine() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ line_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private Object source_ = "";
+ /**
+ * optional string source = 2;
+ * @return Whether the source field is set.
+ */
+ @Override
+ public boolean hasSource() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ * optional string source = 2;
+ * @return The source.
+ */
+ @Override
+ public String getSource() {
+ Object ref = source_;
+ if (!(ref instanceof String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ source_ = s;
+ }
+ return s;
+ } else {
+ return (String) ref;
+ }
+ }
+ /**
+ * optional string source = 2;
+ * @return The bytes for source.
+ */
+ @Override
+ public com.google.protobuf.ByteString
+ getSourceBytes() {
+ Object ref = source_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (String) ref);
+ source_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * optional string source = 2;
+ * @param value The source to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSource(
+ String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000002;
+ source_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional string source = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearSource() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ source_ = getDefaultInstance().getSource();
+ onChanged();
+ return this;
+ }
+ /**
+ * optional string source = 2;
+ * @param value The bytes for source to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSourceBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000002;
+ source_ = value;
+ onChanged();
+ return this;
+ }
+
+ private Object scmRevision_ = "";
+ /**
+ * + * SCM + *+ * + *
optional string scm_revision = 3;
+ * @return Whether the scmRevision field is set.
+ */
+ public boolean hasScmRevision() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+ /**
+ * + * SCM + *+ * + *
optional string scm_revision = 3;
+ * @return The scmRevision.
+ */
+ @Override
+ public String getScmRevision() {
+ Object ref = scmRevision_;
+ if (!(ref instanceof String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ scmRevision_ = s;
+ }
+ return s;
+ } else {
+ return (String) ref;
+ }
+ }
+ /**
+ * + * SCM + *+ * + *
optional string scm_revision = 3;
+ * @return The bytes for scmRevision.
+ */
+ @Override
+ public com.google.protobuf.ByteString
+ getScmRevisionBytes() {
+ Object ref = scmRevision_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (String) ref);
+ scmRevision_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * SCM + *+ * + *
optional string scm_revision = 3;
+ * @param value The scmRevision to set.
+ * @return This builder for chaining.
+ */
+ public Builder setScmRevision(
+ String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000004;
+ scmRevision_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * SCM + *+ * + *
optional string scm_revision = 3;
+ * @return This builder for chaining.
+ */
+ public Builder clearScmRevision() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ scmRevision_ = getDefaultInstance().getScmRevision();
+ onChanged();
+ return this;
+ }
+ /**
+ * + * SCM + *+ * + *
optional string scm_revision = 3;
+ * @param value The bytes for scmRevision to set.
+ * @return This builder for chaining.
+ */
+ public Builder setScmRevisionBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000004;
+ scmRevision_ = value;
+ onChanged();
+ return this;
+ }
+
+ private Object scmAuthor_ = "";
+ /**
+ * optional string scm_author = 4;
+ * @return Whether the scmAuthor field is set.
+ */
+ @Override
+ public boolean hasScmAuthor() {
+ return ((bitField0_ & 0x00000008) != 0);
+ }
+ /**
+ * optional string scm_author = 4;
+ * @return The scmAuthor.
+ */
+ @Override
+ public String getScmAuthor() {
+ Object ref = scmAuthor_;
+ if (!(ref instanceof String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ scmAuthor_ = s;
+ }
+ return s;
+ } else {
+ return (String) ref;
+ }
+ }
+ /**
+ * optional string scm_author = 4;
+ * @return The bytes for scmAuthor.
+ */
+ public com.google.protobuf.ByteString
+ getScmAuthorBytes() {
+ Object ref = scmAuthor_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (String) ref);
+ scmAuthor_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * optional string scm_author = 4;
+ * @param value The scmAuthor to set.
+ * @return This builder for chaining.
+ */
+ public Builder setScmAuthor(
+ String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000008;
+ scmAuthor_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional string scm_author = 4;
+ * @return This builder for chaining.
+ */
+ public Builder clearScmAuthor() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ scmAuthor_ = getDefaultInstance().getScmAuthor();
+ onChanged();
+ return this;
+ }
+ /**
+ * optional string scm_author = 4;
+ * @param value The bytes for scmAuthor to set.
+ * @return This builder for chaining.
+ */
+ public Builder setScmAuthorBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000008;
+ scmAuthor_ = value;
+ onChanged();
+ return this;
+ }
+
+ private long scmDate_ ;
+ /**
+ * optional int64 scm_date = 5;
+ * @return Whether the scmDate field is set.
+ */
+ @Override
+ public boolean hasScmDate() {
+ return ((bitField0_ & 0x00000010) != 0);
+ }
+ /**
+ * optional int64 scm_date = 5;
+ * @return The scmDate.
+ */
+ @Override
+ public long getScmDate() {
+ return scmDate_;
+ }
+ /**
+ * optional int64 scm_date = 5;
+ * @param value The scmDate to set.
+ * @return This builder for chaining.
+ */
+ public Builder setScmDate(long value) {
+ bitField0_ |= 0x00000010;
+ scmDate_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional int64 scm_date = 5;
+ * @return This builder for chaining.
+ */
+ public Builder clearScmDate() {
+ bitField0_ = (bitField0_ & ~0x00000010);
+ scmDate_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private int deprecatedUtLineHits_ ;
+ /**
+ * + * Deprecated fields in 6.2 (has been deprecated when merging coverage into a single metric) + * They are still used to read coverage info from sources that have not be re-analyzed + *+ * + *
optional int32 deprecated_ut_line_hits = 6;
+ * @return Whether the deprecatedUtLineHits field is set.
+ */
+ @Override
+ public boolean hasDeprecatedUtLineHits() {
+ return ((bitField0_ & 0x00000020) != 0);
+ }
+ /**
+ * + * Deprecated fields in 6.2 (has been deprecated when merging coverage into a single metric) + * They are still used to read coverage info from sources that have not be re-analyzed + *+ * + *
optional int32 deprecated_ut_line_hits = 6;
+ * @return The deprecatedUtLineHits.
+ */
+ @Override
+ public int getDeprecatedUtLineHits() {
+ return deprecatedUtLineHits_;
+ }
+ /**
+ * + * Deprecated fields in 6.2 (has been deprecated when merging coverage into a single metric) + * They are still used to read coverage info from sources that have not be re-analyzed + *+ * + *
optional int32 deprecated_ut_line_hits = 6;
+ * @param value The deprecatedUtLineHits to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDeprecatedUtLineHits(int value) {
+ bitField0_ |= 0x00000020;
+ deprecatedUtLineHits_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Deprecated fields in 6.2 (has been deprecated when merging coverage into a single metric) + * They are still used to read coverage info from sources that have not be re-analyzed + *+ * + *
optional int32 deprecated_ut_line_hits = 6;
+ * @return This builder for chaining.
+ */
+ public Builder clearDeprecatedUtLineHits() {
+ bitField0_ = (bitField0_ & ~0x00000020);
+ deprecatedUtLineHits_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int deprecatedUtConditions_ ;
+ /**
+ * optional int32 deprecated_ut_conditions = 7;
+ * @return Whether the deprecatedUtConditions field is set.
+ */
+ @Override
+ public boolean hasDeprecatedUtConditions() {
+ return ((bitField0_ & 0x00000040) != 0);
+ }
+ /**
+ * optional int32 deprecated_ut_conditions = 7;
+ * @return The deprecatedUtConditions.
+ */
+ @Override
+ public int getDeprecatedUtConditions() {
+ return deprecatedUtConditions_;
+ }
+ /**
+ * optional int32 deprecated_ut_conditions = 7;
+ * @param value The deprecatedUtConditions to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDeprecatedUtConditions(int value) {
+ bitField0_ |= 0x00000040;
+ deprecatedUtConditions_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional int32 deprecated_ut_conditions = 7;
+ * @return This builder for chaining.
+ */
+ public Builder clearDeprecatedUtConditions() {
+ bitField0_ = (bitField0_ & ~0x00000040);
+ deprecatedUtConditions_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int deprecatedUtCoveredConditions_ ;
+ /**
+ * optional int32 deprecated_ut_covered_conditions = 8;
+ * @return Whether the deprecatedUtCoveredConditions field is set.
+ */
+ @Override
+ public boolean hasDeprecatedUtCoveredConditions() {
+ return ((bitField0_ & 0x00000080) != 0);
+ }
+ /**
+ * optional int32 deprecated_ut_covered_conditions = 8;
+ * @return The deprecatedUtCoveredConditions.
+ */
+ @Override
+ public int getDeprecatedUtCoveredConditions() {
+ return deprecatedUtCoveredConditions_;
+ }
+ /**
+ * optional int32 deprecated_ut_covered_conditions = 8;
+ * @param value The deprecatedUtCoveredConditions to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDeprecatedUtCoveredConditions(int value) {
+ bitField0_ |= 0x00000080;
+ deprecatedUtCoveredConditions_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional int32 deprecated_ut_covered_conditions = 8;
+ * @return This builder for chaining.
+ */
+ public Builder clearDeprecatedUtCoveredConditions() {
+ bitField0_ = (bitField0_ & ~0x00000080);
+ deprecatedUtCoveredConditions_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int deprecatedItLineHits_ ;
+ /**
+ * optional int32 deprecated_it_line_hits = 9;
+ * @return Whether the deprecatedItLineHits field is set.
+ */
+ @Override
+ public boolean hasDeprecatedItLineHits() {
+ return ((bitField0_ & 0x00000100) != 0);
+ }
+ /**
+ * optional int32 deprecated_it_line_hits = 9;
+ * @return The deprecatedItLineHits.
+ */
+ @Override
+ public int getDeprecatedItLineHits() {
+ return deprecatedItLineHits_;
+ }
+ /**
+ * optional int32 deprecated_it_line_hits = 9;
+ * @param value The deprecatedItLineHits to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDeprecatedItLineHits(int value) {
+ bitField0_ |= 0x00000100;
+ deprecatedItLineHits_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional int32 deprecated_it_line_hits = 9;
+ * @return This builder for chaining.
+ */
+ public Builder clearDeprecatedItLineHits() {
+ bitField0_ = (bitField0_ & ~0x00000100);
+ deprecatedItLineHits_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int deprecatedItConditions_ ;
+ /**
+ * optional int32 deprecated_it_conditions = 10;
+ * @return Whether the deprecatedItConditions field is set.
+ */
+ @Override
+ public boolean hasDeprecatedItConditions() {
+ return ((bitField0_ & 0x00000200) != 0);
+ }
+ /**
+ * optional int32 deprecated_it_conditions = 10;
+ * @return The deprecatedItConditions.
+ */
+ @Override
+ public int getDeprecatedItConditions() {
+ return deprecatedItConditions_;
+ }
+ /**
+ * optional int32 deprecated_it_conditions = 10;
+ * @param value The deprecatedItConditions to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDeprecatedItConditions(int value) {
+ bitField0_ |= 0x00000200;
+ deprecatedItConditions_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional int32 deprecated_it_conditions = 10;
+ * @return This builder for chaining.
+ */
+ public Builder clearDeprecatedItConditions() {
+ bitField0_ = (bitField0_ & ~0x00000200);
+ deprecatedItConditions_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int deprecatedItCoveredConditions_ ;
+ /**
+ * optional int32 deprecated_it_covered_conditions = 11;
+ * @return Whether the deprecatedItCoveredConditions field is set.
+ */
+ @Override
+ public boolean hasDeprecatedItCoveredConditions() {
+ return ((bitField0_ & 0x00000400) != 0);
+ }
+ /**
+ * optional int32 deprecated_it_covered_conditions = 11;
+ * @return The deprecatedItCoveredConditions.
+ */
+ @Override
+ public int getDeprecatedItCoveredConditions() {
+ return deprecatedItCoveredConditions_;
+ }
+ /**
+ * optional int32 deprecated_it_covered_conditions = 11;
+ * @param value The deprecatedItCoveredConditions to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDeprecatedItCoveredConditions(int value) {
+ bitField0_ |= 0x00000400;
+ deprecatedItCoveredConditions_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional int32 deprecated_it_covered_conditions = 11;
+ * @return This builder for chaining.
+ */
+ public Builder clearDeprecatedItCoveredConditions() {
+ bitField0_ = (bitField0_ & ~0x00000400);
+ deprecatedItCoveredConditions_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int deprecatedOverallLineHits_ ;
+ /**
+ * optional int32 deprecated_overall_line_hits = 12;
+ * @return Whether the deprecatedOverallLineHits field is set.
+ */
+ @Override
+ public boolean hasDeprecatedOverallLineHits() {
+ return ((bitField0_ & 0x00000800) != 0);
+ }
+ /**
+ * optional int32 deprecated_overall_line_hits = 12;
+ * @return The deprecatedOverallLineHits.
+ */
+ @Override
+ public int getDeprecatedOverallLineHits() {
+ return deprecatedOverallLineHits_;
+ }
+ /**
+ * optional int32 deprecated_overall_line_hits = 12;
+ * @param value The deprecatedOverallLineHits to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDeprecatedOverallLineHits(int value) {
+ bitField0_ |= 0x00000800;
+ deprecatedOverallLineHits_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional int32 deprecated_overall_line_hits = 12;
+ * @return This builder for chaining.
+ */
+ public Builder clearDeprecatedOverallLineHits() {
+ bitField0_ = (bitField0_ & ~0x00000800);
+ deprecatedOverallLineHits_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int deprecatedOverallConditions_ ;
+ /**
+ * optional int32 deprecated_overall_conditions = 13;
+ * @return Whether the deprecatedOverallConditions field is set.
+ */
+ @Override
+ public boolean hasDeprecatedOverallConditions() {
+ return ((bitField0_ & 0x00001000) != 0);
+ }
+ /**
+ * optional int32 deprecated_overall_conditions = 13;
+ * @return The deprecatedOverallConditions.
+ */
+ @Override
+ public int getDeprecatedOverallConditions() {
+ return deprecatedOverallConditions_;
+ }
+ /**
+ * optional int32 deprecated_overall_conditions = 13;
+ * @param value The deprecatedOverallConditions to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDeprecatedOverallConditions(int value) {
+ bitField0_ |= 0x00001000;
+ deprecatedOverallConditions_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional int32 deprecated_overall_conditions = 13;
+ * @return This builder for chaining.
+ */
+ public Builder clearDeprecatedOverallConditions() {
+ bitField0_ = (bitField0_ & ~0x00001000);
+ deprecatedOverallConditions_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int deprecatedOverallCoveredConditions_ ;
+ /**
+ * optional int32 deprecated_overall_covered_conditions = 14;
+ * @return Whether the deprecatedOverallCoveredConditions field is set.
+ */
+ @Override
+ public boolean hasDeprecatedOverallCoveredConditions() {
+ return ((bitField0_ & 0x00002000) != 0);
+ }
+ /**
+ * optional int32 deprecated_overall_covered_conditions = 14;
+ * @return The deprecatedOverallCoveredConditions.
+ */
+ @Override
+ public int getDeprecatedOverallCoveredConditions() {
+ return deprecatedOverallCoveredConditions_;
+ }
+ /**
+ * optional int32 deprecated_overall_covered_conditions = 14;
+ * @param value The deprecatedOverallCoveredConditions to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDeprecatedOverallCoveredConditions(int value) {
+ bitField0_ |= 0x00002000;
+ deprecatedOverallCoveredConditions_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional int32 deprecated_overall_covered_conditions = 14;
+ * @return This builder for chaining.
+ */
+ public Builder clearDeprecatedOverallCoveredConditions() {
+ bitField0_ = (bitField0_ & ~0x00002000);
+ deprecatedOverallCoveredConditions_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private Object highlighting_ = "";
+ /**
+ * optional string highlighting = 15;
+ * @return Whether the highlighting field is set.
+ */
+ public boolean hasHighlighting() {
+ return ((bitField0_ & 0x00004000) != 0);
+ }
+ /**
+ * optional string highlighting = 15;
+ * @return The highlighting.
+ */
+ public String getHighlighting() {
+ Object ref = highlighting_;
+ if (!(ref instanceof String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ highlighting_ = s;
+ }
+ return s;
+ } else {
+ return (String) ref;
+ }
+ }
+ /**
+ * optional string highlighting = 15;
+ * @return The bytes for highlighting.
+ */
+ public com.google.protobuf.ByteString
+ getHighlightingBytes() {
+ Object ref = highlighting_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (String) ref);
+ highlighting_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * optional string highlighting = 15;
+ * @param value The highlighting to set.
+ * @return This builder for chaining.
+ */
+ public Builder setHighlighting(
+ String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00004000;
+ highlighting_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional string highlighting = 15;
+ * @return This builder for chaining.
+ */
+ public Builder clearHighlighting() {
+ bitField0_ = (bitField0_ & ~0x00004000);
+ highlighting_ = getDefaultInstance().getHighlighting();
+ onChanged();
+ return this;
+ }
+ /**
+ * optional string highlighting = 15;
+ * @param value The bytes for highlighting to set.
+ * @return This builder for chaining.
+ */
+ public Builder setHighlightingBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00004000;
+ highlighting_ = value;
+ onChanged();
+ return this;
+ }
+
+ private Object symbols_ = "";
+ /**
+ * optional string symbols = 16;
+ * @return Whether the symbols field is set.
+ */
+ public boolean hasSymbols() {
+ return ((bitField0_ & 0x00008000) != 0);
+ }
+ /**
+ * optional string symbols = 16;
+ * @return The symbols.
+ */
+ public String getSymbols() {
+ Object ref = symbols_;
+ if (!(ref instanceof String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ symbols_ = s;
+ }
+ return s;
+ } else {
+ return (String) ref;
+ }
+ }
+ /**
+ * optional string symbols = 16;
+ * @return The bytes for symbols.
+ */
+ public com.google.protobuf.ByteString
+ getSymbolsBytes() {
+ Object ref = symbols_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (String) ref);
+ symbols_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * optional string symbols = 16;
+ * @param value The symbols to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSymbols(
+ String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00008000;
+ symbols_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional string symbols = 16;
+ * @return This builder for chaining.
+ */
+ public Builder clearSymbols() {
+ bitField0_ = (bitField0_ & ~0x00008000);
+ symbols_ = getDefaultInstance().getSymbols();
+ onChanged();
+ return this;
+ }
+ /**
+ * optional string symbols = 16;
+ * @param value The bytes for symbols to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSymbolsBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00008000;
+ symbols_ = value;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.Internal.IntList duplication_ = emptyIntList();
+ private void ensureDuplicationIsMutable() {
+ if (!((bitField0_ & 0x00010000) != 0)) {
+ duplication_ = mutableCopy(duplication_);
+ bitField0_ |= 0x00010000;
+ }
+ }
+ /**
+ * repeated int32 duplication = 17 [packed = true];
+ * @return A list containing the duplication.
+ */
+ public java.util.Listrepeated int32 duplication = 17 [packed = true];
+ * @return The count of duplication.
+ */
+ public int getDuplicationCount() {
+ return duplication_.size();
+ }
+ /**
+ * repeated int32 duplication = 17 [packed = true];
+ * @param index The index of the element to return.
+ * @return The duplication at the given index.
+ */
+ public int getDuplication(int index) {
+ return duplication_.getInt(index);
+ }
+ /**
+ * repeated int32 duplication = 17 [packed = true];
+ * @param index The index to set the value at.
+ * @param value The duplication to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDuplication(
+ int index, int value) {
+ ensureDuplicationIsMutable();
+ duplication_.setInt(index, value);
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated int32 duplication = 17 [packed = true];
+ * @param value The duplication to add.
+ * @return This builder for chaining.
+ */
+ public Builder addDuplication(int value) {
+ ensureDuplicationIsMutable();
+ duplication_.addInt(value);
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated int32 duplication = 17 [packed = true];
+ * @param values The duplication to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllDuplication(
+ Iterable extends Integer> values) {
+ ensureDuplicationIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, duplication_);
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated int32 duplication = 17 [packed = true];
+ * @return This builder for chaining.
+ */
+ public Builder clearDuplication() {
+ duplication_ = emptyIntList();
+ bitField0_ = (bitField0_ & ~0x00010000);
+ onChanged();
+ return this;
+ }
+
+ private int lineHits_ ;
+ /**
+ * + * coverage info (since 6.2) + *+ * + *
optional int32 line_hits = 18;
+ * @return Whether the lineHits field is set.
+ */
+ @Override
+ public boolean hasLineHits() {
+ return ((bitField0_ & 0x00020000) != 0);
+ }
+ /**
+ * + * coverage info (since 6.2) + *+ * + *
optional int32 line_hits = 18;
+ * @return The lineHits.
+ */
+ @Override
+ public int getLineHits() {
+ return lineHits_;
+ }
+ /**
+ * + * coverage info (since 6.2) + *+ * + *
optional int32 line_hits = 18;
+ * @param value The lineHits to set.
+ * @return This builder for chaining.
+ */
+ public Builder setLineHits(int value) {
+ bitField0_ |= 0x00020000;
+ lineHits_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * coverage info (since 6.2) + *+ * + *
optional int32 line_hits = 18;
+ * @return This builder for chaining.
+ */
+ public Builder clearLineHits() {
+ bitField0_ = (bitField0_ & ~0x00020000);
+ lineHits_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int conditions_ ;
+ /**
+ * optional int32 conditions = 19;
+ * @return Whether the conditions field is set.
+ */
+ @Override
+ public boolean hasConditions() {
+ return ((bitField0_ & 0x00040000) != 0);
+ }
+ /**
+ * optional int32 conditions = 19;
+ * @return The conditions.
+ */
+ @Override
+ public int getConditions() {
+ return conditions_;
+ }
+ /**
+ * optional int32 conditions = 19;
+ * @param value The conditions to set.
+ * @return This builder for chaining.
+ */
+ public Builder setConditions(int value) {
+ bitField0_ |= 0x00040000;
+ conditions_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional int32 conditions = 19;
+ * @return This builder for chaining.
+ */
+ public Builder clearConditions() {
+ bitField0_ = (bitField0_ & ~0x00040000);
+ conditions_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int coveredConditions_ ;
+ /**
+ * optional int32 covered_conditions = 20;
+ * @return Whether the coveredConditions field is set.
+ */
+ @Override
+ public boolean hasCoveredConditions() {
+ return ((bitField0_ & 0x00080000) != 0);
+ }
+ /**
+ * optional int32 covered_conditions = 20;
+ * @return The coveredConditions.
+ */
+ @Override
+ public int getCoveredConditions() {
+ return coveredConditions_;
+ }
+ /**
+ * optional int32 covered_conditions = 20;
+ * @param value The coveredConditions to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCoveredConditions(int value) {
+ bitField0_ |= 0x00080000;
+ coveredConditions_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional int32 covered_conditions = 20;
+ * @return This builder for chaining.
+ */
+ public Builder clearCoveredConditions() {
+ bitField0_ = (bitField0_ & ~0x00080000);
+ coveredConditions_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private boolean isNewLine_ ;
+ /**
+ * optional bool is_new_line = 21;
+ * @return Whether the isNewLine field is set.
+ */
+ @Override
+ public boolean hasIsNewLine() {
+ return ((bitField0_ & 0x00100000) != 0);
+ }
+ /**
+ * optional bool is_new_line = 21;
+ * @return The isNewLine.
+ */
+ @Override
+ public boolean getIsNewLine() {
+ return isNewLine_;
+ }
+ /**
+ * optional bool is_new_line = 21;
+ * @param value The isNewLine to set.
+ * @return This builder for chaining.
+ */
+ public Builder setIsNewLine(boolean value) {
+ bitField0_ |= 0x00100000;
+ isNewLine_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional bool is_new_line = 21;
+ * @return This builder for chaining.
+ */
+ public Builder clearIsNewLine() {
+ bitField0_ = (bitField0_ & ~0x00100000);
+ isNewLine_ = false;
+ onChanged();
+ return this;
+ }
+ @Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@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 Line DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new Line();
+ }
+
+ public static Line getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @Deprecated
+ public static final com.google.protobuf.Parseroptional int32 startOffset = 1;
+ * @return Whether the startOffset field is set.
+ */
+ boolean hasStartOffset();
+ /**
+ * optional int32 startOffset = 1;
+ * @return The startOffset.
+ */
+ int getStartOffset();
+
+ /**
+ * optional int32 endOffset = 2;
+ * @return Whether the endOffset field is set.
+ */
+ boolean hasEndOffset();
+ /**
+ * optional int32 endOffset = 2;
+ * @return The endOffset.
+ */
+ int getEndOffset();
+ }
+ /**
+ * Protobuf type {@code org.sonar.server.source.db.Range}
+ */
+ public static final class Range extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:org.sonar.server.source.db.Range)
+ RangeOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use Range.newBuilder() to construct.
+ private Range(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private Range() {
+ }
+
+ @Override
+ @SuppressWarnings({"unused"})
+ protected Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new Range();
+ }
+
+ @Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private Range(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new NullPointerException();
+ }
+ 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;
+ case 8: {
+ bitField0_ |= 0x00000001;
+ startOffset_ = input.readInt32();
+ break;
+ }
+ case 16: {
+ bitField0_ |= 0x00000002;
+ endOffset_ = input.readInt32();
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return net.educoder.ecsonar.protobuf.DbFileSources.internal_static_org_sonar_server_source_db_Range_descriptor;
+ }
+
+ @Override
+ protected FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return net.educoder.ecsonar.protobuf.DbFileSources.internal_static_org_sonar_server_source_db_Range_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ Range.class, Builder.class);
+ }
+
+ private int bitField0_;
+ public static final int STARTOFFSET_FIELD_NUMBER = 1;
+ private int startOffset_;
+ /**
+ * optional int32 startOffset = 1;
+ * @return Whether the startOffset field is set.
+ */
+ @Override
+ public boolean hasStartOffset() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ * optional int32 startOffset = 1;
+ * @return The startOffset.
+ */
+ @Override
+ public int getStartOffset() {
+ return startOffset_;
+ }
+
+ public static final int ENDOFFSET_FIELD_NUMBER = 2;
+ private int endOffset_;
+ /**
+ * optional int32 endOffset = 2;
+ * @return Whether the endOffset field is set.
+ */
+ @Override
+ public boolean hasEndOffset() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ * optional int32 endOffset = 2;
+ * @return The endOffset.
+ */
+ @Override
+ public int getEndOffset() {
+ return endOffset_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeInt32(1, startOffset_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ output.writeInt32(2, endOffset_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32Size(1, startOffset_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32Size(2, endOffset_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @Override
+ public boolean equals(final Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof Range)) {
+ return super.equals(obj);
+ }
+ Range other = (Range) obj;
+
+ if (hasStartOffset() != other.hasStartOffset()) return false;
+ if (hasStartOffset()) {
+ if (getStartOffset()
+ != other.getStartOffset()) return false;
+ }
+ if (hasEndOffset() != other.hasEndOffset()) return false;
+ if (hasEndOffset()) {
+ if (getEndOffset()
+ != other.getEndOffset()) return false;
+ }
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasStartOffset()) {
+ hash = (37 * hash) + STARTOFFSET_FIELD_NUMBER;
+ hash = (53 * hash) + getStartOffset();
+ }
+ if (hasEndOffset()) {
+ hash = (37 * hash) + ENDOFFSET_FIELD_NUMBER;
+ hash = (53 * hash) + getEndOffset();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static Range parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static Range parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static Range parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static Range parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static Range parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static Range parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static Range parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static Range parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static Range parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static Range parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static Range parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static Range parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(Range prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @Override
+ protected Builder newBuilderForType(
+ BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code org.sonar.server.source.db.Range}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builderoptional int32 startOffset = 1;
+ * @return Whether the startOffset field is set.
+ */
+ @Override
+ public boolean hasStartOffset() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ * optional int32 startOffset = 1;
+ * @return The startOffset.
+ */
+ @Override
+ public int getStartOffset() {
+ return startOffset_;
+ }
+ /**
+ * optional int32 startOffset = 1;
+ * @param value The startOffset to set.
+ * @return This builder for chaining.
+ */
+ public Builder setStartOffset(int value) {
+ bitField0_ |= 0x00000001;
+ startOffset_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional int32 startOffset = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearStartOffset() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ startOffset_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int endOffset_ ;
+ /**
+ * optional int32 endOffset = 2;
+ * @return Whether the endOffset field is set.
+ */
+ @Override
+ public boolean hasEndOffset() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ * optional int32 endOffset = 2;
+ * @return The endOffset.
+ */
+ @Override
+ public int getEndOffset() {
+ return endOffset_;
+ }
+ /**
+ * optional int32 endOffset = 2;
+ * @param value The endOffset to set.
+ * @return This builder for chaining.
+ */
+ public Builder setEndOffset(int value) {
+ bitField0_ |= 0x00000002;
+ endOffset_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional int32 endOffset = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearEndOffset() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ endOffset_ = 0;
+ onChanged();
+ return this;
+ }
+ @Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:org.sonar.server.source.db.Range)
+ }
+
+ // @@protoc_insertion_point(class_scope:org.sonar.server.source.db.Range)
+ private static final Range DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new Range();
+ }
+
+ public static Range getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @Deprecated
+ public static final com.google.protobuf.Parserrepeated .org.sonar.server.source.db.Line lines = 1;
+ */
+ java.util.Listrepeated .org.sonar.server.source.db.Line lines = 1;
+ */
+ Line getLines(int index);
+ /**
+ * repeated .org.sonar.server.source.db.Line lines = 1;
+ */
+ int getLinesCount();
+ /**
+ * repeated .org.sonar.server.source.db.Line lines = 1;
+ */
+ java.util.List extends LineOrBuilder>
+ getLinesOrBuilderList();
+ /**
+ * repeated .org.sonar.server.source.db.Line lines = 1;
+ */
+ LineOrBuilder getLinesOrBuilder(
+ int index);
+ }
+ /**
+ * + * TODO should be dropped as it prevents streaming + *+ * + * Protobuf type {@code org.sonar.server.source.db.Data} + */ + public static final class Data extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:org.sonar.server.source.db.Data) + DataOrBuilder { + private static final long serialVersionUID = 0L; + // Use Data.newBuilder() to construct. + private Data(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + private Data() { + lines_ = java.util.Collections.emptyList(); + } + + @Override + @SuppressWarnings({"unused"}) + protected Object newInstance( + UnusedPrivateParameter unused) { + return new Data(); + } + + @Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Data( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new NullPointerException(); + } + 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; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + lines_ = new java.util.ArrayList
repeated .org.sonar.server.source.db.Line lines = 1;
+ */
+ @Override
+ public java.util.Listrepeated .org.sonar.server.source.db.Line lines = 1;
+ */
+ @Override
+ public java.util.List extends LineOrBuilder>
+ getLinesOrBuilderList() {
+ return lines_;
+ }
+ /**
+ * repeated .org.sonar.server.source.db.Line lines = 1;
+ */
+ @Override
+ public int getLinesCount() {
+ return lines_.size();
+ }
+ /**
+ * repeated .org.sonar.server.source.db.Line lines = 1;
+ */
+ @Override
+ public Line getLines(int index) {
+ return lines_.get(index);
+ }
+ /**
+ * repeated .org.sonar.server.source.db.Line lines = 1;
+ */
+ @Override
+ public LineOrBuilder getLinesOrBuilder(
+ int index) {
+ return lines_.get(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @Override
+ 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);
+ }
+
+ @Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ 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();
+ memoizedSize = size;
+ return size;
+ }
+
+ @Override
+ public boolean equals(final Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof Data)) {
+ return super.equals(obj);
+ }
+ Data other = (Data) obj;
+
+ if (!getLinesList()
+ .equals(other.getLinesList())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (getLinesCount() > 0) {
+ hash = (37 * hash) + LINES_FIELD_NUMBER;
+ hash = (53 * hash) + getLinesList().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static Data parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static Data parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static Data parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static Data parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static Data parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static Data parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static Data parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static Data parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static Data parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static Data parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static Data parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static Data parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(Data prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @Override
+ protected Builder newBuilderForType(
+ BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * + * TODO should be dropped as it prevents streaming + *+ * + * Protobuf type {@code org.sonar.server.source.db.Data} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder
repeated .org.sonar.server.source.db.Line lines = 1;
+ */
+ public java.util.Listrepeated .org.sonar.server.source.db.Line lines = 1;
+ */
+ public int getLinesCount() {
+ if (linesBuilder_ == null) {
+ return lines_.size();
+ } else {
+ return linesBuilder_.getCount();
+ }
+ }
+ /**
+ * repeated .org.sonar.server.source.db.Line lines = 1;
+ */
+ public Line getLines(int index) {
+ if (linesBuilder_ == null) {
+ return lines_.get(index);
+ } else {
+ return linesBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * repeated .org.sonar.server.source.db.Line lines = 1;
+ */
+ public Builder setLines(
+ int index, Line value) {
+ if (linesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureLinesIsMutable();
+ lines_.set(index, value);
+ onChanged();
+ } else {
+ linesBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .org.sonar.server.source.db.Line lines = 1;
+ */
+ public Builder setLines(
+ int index, Line.Builder builderForValue) {
+ if (linesBuilder_ == null) {
+ ensureLinesIsMutable();
+ lines_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ linesBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .org.sonar.server.source.db.Line lines = 1;
+ */
+ public Builder addLines(Line value) {
+ if (linesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureLinesIsMutable();
+ lines_.add(value);
+ onChanged();
+ } else {
+ linesBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * repeated .org.sonar.server.source.db.Line lines = 1;
+ */
+ public Builder addLines(
+ int index, Line value) {
+ if (linesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureLinesIsMutable();
+ lines_.add(index, value);
+ onChanged();
+ } else {
+ linesBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .org.sonar.server.source.db.Line lines = 1;
+ */
+ public Builder addLines(
+ Line.Builder builderForValue) {
+ if (linesBuilder_ == null) {
+ ensureLinesIsMutable();
+ lines_.add(builderForValue.build());
+ onChanged();
+ } else {
+ linesBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .org.sonar.server.source.db.Line lines = 1;
+ */
+ public Builder addLines(
+ int index, Line.Builder builderForValue) {
+ if (linesBuilder_ == null) {
+ ensureLinesIsMutable();
+ lines_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ linesBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .org.sonar.server.source.db.Line lines = 1;
+ */
+ public Builder addAllLines(
+ Iterable extends Line> values) {
+ if (linesBuilder_ == null) {
+ ensureLinesIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, lines_);
+ onChanged();
+ } else {
+ linesBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * repeated .org.sonar.server.source.db.Line lines = 1;
+ */
+ public Builder clearLines() {
+ if (linesBuilder_ == null) {
+ lines_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ linesBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * repeated .org.sonar.server.source.db.Line lines = 1;
+ */
+ public Builder removeLines(int index) {
+ if (linesBuilder_ == null) {
+ ensureLinesIsMutable();
+ lines_.remove(index);
+ onChanged();
+ } else {
+ linesBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * repeated .org.sonar.server.source.db.Line lines = 1;
+ */
+ public Line.Builder getLinesBuilder(
+ int index) {
+ return getLinesFieldBuilder().getBuilder(index);
+ }
+ /**
+ * repeated .org.sonar.server.source.db.Line lines = 1;
+ */
+ @Override
+ public LineOrBuilder getLinesOrBuilder(
+ int index) {
+ if (linesBuilder_ == null) {
+ return lines_.get(index); } else {
+ return linesBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * repeated .org.sonar.server.source.db.Line lines = 1;
+ */
+ @Override
+ public java.util.List extends LineOrBuilder>
+ getLinesOrBuilderList() {
+ if (linesBuilder_ != null) {
+ return linesBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(lines_);
+ }
+ }
+ /**
+ * repeated .org.sonar.server.source.db.Line lines = 1;
+ */
+ public Line.Builder addLinesBuilder() {
+ return getLinesFieldBuilder().addBuilder(
+ Line.getDefaultInstance());
+ }
+ /**
+ * repeated .org.sonar.server.source.db.Line lines = 1;
+ */
+ public Line.Builder addLinesBuilder(
+ int index) {
+ return getLinesFieldBuilder().addBuilder(
+ index, Line.getDefaultInstance());
+ }
+ /**
+ * repeated .org.sonar.server.source.db.Line lines = 1;
+ */
+ public java.util.Listoptional .sonarqube.db.commons.TextRange text_range = 1;
+ * @return Whether the textRange field is set.
+ */
+ boolean hasTextRange();
+ /**
+ * optional .sonarqube.db.commons.TextRange text_range = 1;
+ * @return The textRange.
+ */
+ DbCommons.TextRange getTextRange();
+ /**
+ * optional .sonarqube.db.commons.TextRange text_range = 1;
+ */
+ DbCommons.TextRangeOrBuilder getTextRangeOrBuilder();
+
+ /**
+ * repeated .sonarqube.db.issues.Flow flow = 2;
+ */
+ java.util.Listrepeated .sonarqube.db.issues.Flow flow = 2;
+ */
+ Flow getFlow(int index);
+ /**
+ * repeated .sonarqube.db.issues.Flow flow = 2;
+ */
+ int getFlowCount();
+ /**
+ * repeated .sonarqube.db.issues.Flow flow = 2;
+ */
+ java.util.List extends FlowOrBuilder>
+ getFlowOrBuilderList();
+ /**
+ * repeated .sonarqube.db.issues.Flow flow = 2;
+ */
+ FlowOrBuilder getFlowOrBuilder(
+ int index);
+ }
+ /**
+ * Protobuf type {@code sonarqube.db.issues.Locations}
+ */
+ public static final class Locations extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:sonarqube.db.issues.Locations)
+ LocationsOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use Locations.newBuilder() to construct.
+ private Locations(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private Locations() {
+ flow_ = java.util.Collections.emptyList();
+ }
+
+ @Override
+ @SuppressWarnings({"unused"})
+ protected Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new Locations();
+ }
+
+ @Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private Locations(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new NullPointerException();
+ }
+ 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;
+ case 10: {
+ DbCommons.TextRange.Builder subBuilder = null;
+ if (((bitField0_ & 0x00000001) != 0)) {
+ subBuilder = textRange_.toBuilder();
+ }
+ textRange_ = input.readMessage(DbCommons.TextRange.PARSER, extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(textRange_);
+ textRange_ = subBuilder.buildPartial();
+ }
+ bitField0_ |= 0x00000001;
+ break;
+ }
+ case 18: {
+ if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+ flow_ = new java.util.ArrayListoptional .sonarqube.db.commons.TextRange text_range = 1;
+ * @return Whether the textRange field is set.
+ */
+ @Override
+ public boolean hasTextRange() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ * optional .sonarqube.db.commons.TextRange text_range = 1;
+ * @return The textRange.
+ */
+ @Override
+ public DbCommons.TextRange getTextRange() {
+ return textRange_ == null ? DbCommons.TextRange.getDefaultInstance() : textRange_;
+ }
+ /**
+ * optional .sonarqube.db.commons.TextRange text_range = 1;
+ */
+ @Override
+ public DbCommons.TextRangeOrBuilder getTextRangeOrBuilder() {
+ return textRange_ == null ? DbCommons.TextRange.getDefaultInstance() : textRange_;
+ }
+
+ public static final int FLOW_FIELD_NUMBER = 2;
+ private java.util.Listrepeated .sonarqube.db.issues.Flow flow = 2;
+ */
+ @Override
+ public java.util.Listrepeated .sonarqube.db.issues.Flow flow = 2;
+ */
+ @Override
+ public java.util.List extends FlowOrBuilder>
+ getFlowOrBuilderList() {
+ return flow_;
+ }
+ /**
+ * repeated .sonarqube.db.issues.Flow flow = 2;
+ */
+ @Override
+ public int getFlowCount() {
+ return flow_.size();
+ }
+ /**
+ * repeated .sonarqube.db.issues.Flow flow = 2;
+ */
+ @Override
+ public Flow getFlow(int index) {
+ return flow_.get(index);
+ }
+ /**
+ * repeated .sonarqube.db.issues.Flow flow = 2;
+ */
+ @Override
+ public FlowOrBuilder getFlowOrBuilder(
+ int index) {
+ return flow_.get(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(1, getTextRange());
+ }
+ for (int i = 0; i < flow_.size(); i++) {
+ output.writeMessage(2, flow_.get(i));
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) != 0)) {
+ 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();
+ memoizedSize = size;
+ return size;
+ }
+
+ @Override
+ public boolean equals(final Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof Locations)) {
+ return super.equals(obj);
+ }
+ Locations other = (Locations) obj;
+
+ if (hasTextRange() != other.hasTextRange()) return false;
+ if (hasTextRange()) {
+ if (!getTextRange()
+ .equals(other.getTextRange())) return false;
+ }
+ if (!getFlowList()
+ .equals(other.getFlowList())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasTextRange()) {
+ hash = (37 * hash) + TEXT_RANGE_FIELD_NUMBER;
+ hash = (53 * hash) + getTextRange().hashCode();
+ }
+ if (getFlowCount() > 0) {
+ hash = (37 * hash) + FLOW_FIELD_NUMBER;
+ hash = (53 * hash) + getFlowList().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static Locations parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static Locations parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static Locations parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static Locations parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static Locations parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static Locations parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static Locations parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static Locations parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static Locations parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static Locations parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static Locations parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static Locations parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(Locations prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @Override
+ protected Builder newBuilderForType(
+ 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.GeneratedMessageV3.Builderoptional .sonarqube.db.commons.TextRange text_range = 1;
+ * @return Whether the textRange field is set.
+ */
+ public boolean hasTextRange() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ * optional .sonarqube.db.commons.TextRange text_range = 1;
+ * @return The textRange.
+ */
+ public DbCommons.TextRange getTextRange() {
+ if (textRangeBuilder_ == null) {
+ return textRange_ == null ? DbCommons.TextRange.getDefaultInstance() : textRange_;
+ } else {
+ return textRangeBuilder_.getMessage();
+ }
+ }
+ /**
+ * optional .sonarqube.db.commons.TextRange text_range = 1;
+ */
+ public Builder setTextRange(DbCommons.TextRange value) {
+ if (textRangeBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ textRange_ = value;
+ onChanged();
+ } else {
+ textRangeBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000001;
+ return this;
+ }
+ /**
+ * optional .sonarqube.db.commons.TextRange text_range = 1;
+ */
+ public Builder setTextRange(
+ DbCommons.TextRange.Builder builderForValue) {
+ if (textRangeBuilder_ == null) {
+ textRange_ = builderForValue.build();
+ onChanged();
+ } else {
+ textRangeBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000001;
+ return this;
+ }
+ /**
+ * optional .sonarqube.db.commons.TextRange text_range = 1;
+ */
+ public Builder mergeTextRange(DbCommons.TextRange value) {
+ if (textRangeBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0) &&
+ textRange_ != null &&
+ textRange_ != DbCommons.TextRange.getDefaultInstance()) {
+ textRange_ =
+ DbCommons.TextRange.newBuilder(textRange_).mergeFrom(value).buildPartial();
+ } else {
+ textRange_ = value;
+ }
+ onChanged();
+ } else {
+ textRangeBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000001;
+ return this;
+ }
+ /**
+ * optional .sonarqube.db.commons.TextRange text_range = 1;
+ */
+ public Builder clearTextRange() {
+ if (textRangeBuilder_ == null) {
+ textRange_ = null;
+ onChanged();
+ } else {
+ textRangeBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000001);
+ return this;
+ }
+ /**
+ * optional .sonarqube.db.commons.TextRange text_range = 1;
+ */
+ public DbCommons.TextRange.Builder getTextRangeBuilder() {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return getTextRangeFieldBuilder().getBuilder();
+ }
+ /**
+ * optional .sonarqube.db.commons.TextRange text_range = 1;
+ */
+ public DbCommons.TextRangeOrBuilder getTextRangeOrBuilder() {
+ if (textRangeBuilder_ != null) {
+ return textRangeBuilder_.getMessageOrBuilder();
+ } else {
+ return textRange_ == null ?
+ DbCommons.TextRange.getDefaultInstance() : textRange_;
+ }
+ }
+ /**
+ * optional .sonarqube.db.commons.TextRange text_range = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ DbCommons.TextRange, DbCommons.TextRange.Builder, DbCommons.TextRangeOrBuilder>
+ getTextRangeFieldBuilder() {
+ if (textRangeBuilder_ == null) {
+ textRangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ DbCommons.TextRange, DbCommons.TextRange.Builder, DbCommons.TextRangeOrBuilder>(
+ getTextRange(),
+ getParentForChildren(),
+ isClean());
+ textRange_ = null;
+ }
+ return textRangeBuilder_;
+ }
+
+ private java.util.Listrepeated .sonarqube.db.issues.Flow flow = 2;
+ */
+ public java.util.Listrepeated .sonarqube.db.issues.Flow flow = 2;
+ */
+ public int getFlowCount() {
+ if (flowBuilder_ == null) {
+ return flow_.size();
+ } else {
+ return flowBuilder_.getCount();
+ }
+ }
+ /**
+ * repeated .sonarqube.db.issues.Flow flow = 2;
+ */
+ public Flow getFlow(int index) {
+ if (flowBuilder_ == null) {
+ return flow_.get(index);
+ } else {
+ return flowBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * repeated .sonarqube.db.issues.Flow flow = 2;
+ */
+ public Builder setFlow(
+ int index, Flow value) {
+ if (flowBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureFlowIsMutable();
+ flow_.set(index, value);
+ onChanged();
+ } else {
+ flowBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .sonarqube.db.issues.Flow flow = 2;
+ */
+ public Builder setFlow(
+ int index, Flow.Builder builderForValue) {
+ if (flowBuilder_ == null) {
+ ensureFlowIsMutable();
+ flow_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ flowBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .sonarqube.db.issues.Flow flow = 2;
+ */
+ public Builder addFlow(Flow value) {
+ if (flowBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureFlowIsMutable();
+ flow_.add(value);
+ onChanged();
+ } else {
+ flowBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * repeated .sonarqube.db.issues.Flow flow = 2;
+ */
+ public Builder addFlow(
+ int index, Flow value) {
+ if (flowBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureFlowIsMutable();
+ flow_.add(index, value);
+ onChanged();
+ } else {
+ flowBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .sonarqube.db.issues.Flow flow = 2;
+ */
+ public Builder addFlow(
+ Flow.Builder builderForValue) {
+ if (flowBuilder_ == null) {
+ ensureFlowIsMutable();
+ flow_.add(builderForValue.build());
+ onChanged();
+ } else {
+ flowBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .sonarqube.db.issues.Flow flow = 2;
+ */
+ public Builder addFlow(
+ int index, Flow.Builder builderForValue) {
+ if (flowBuilder_ == null) {
+ ensureFlowIsMutable();
+ flow_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ flowBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .sonarqube.db.issues.Flow flow = 2;
+ */
+ public Builder addAllFlow(
+ Iterable extends Flow> values) {
+ if (flowBuilder_ == null) {
+ ensureFlowIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, flow_);
+ onChanged();
+ } else {
+ flowBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * repeated .sonarqube.db.issues.Flow flow = 2;
+ */
+ public Builder clearFlow() {
+ if (flowBuilder_ == null) {
+ flow_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ } else {
+ flowBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * repeated .sonarqube.db.issues.Flow flow = 2;
+ */
+ public Builder removeFlow(int index) {
+ if (flowBuilder_ == null) {
+ ensureFlowIsMutable();
+ flow_.remove(index);
+ onChanged();
+ } else {
+ flowBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * repeated .sonarqube.db.issues.Flow flow = 2;
+ */
+ public Flow.Builder getFlowBuilder(
+ int index) {
+ return getFlowFieldBuilder().getBuilder(index);
+ }
+ /**
+ * repeated .sonarqube.db.issues.Flow flow = 2;
+ */
+ public FlowOrBuilder getFlowOrBuilder(
+ int index) {
+ if (flowBuilder_ == null) {
+ return flow_.get(index); } else {
+ return flowBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * repeated .sonarqube.db.issues.Flow flow = 2;
+ */
+ public java.util.List extends FlowOrBuilder>
+ getFlowOrBuilderList() {
+ if (flowBuilder_ != null) {
+ return flowBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(flow_);
+ }
+ }
+ /**
+ * repeated .sonarqube.db.issues.Flow flow = 2;
+ */
+ public Flow.Builder addFlowBuilder() {
+ return getFlowFieldBuilder().addBuilder(
+ Flow.getDefaultInstance());
+ }
+ /**
+ * repeated .sonarqube.db.issues.Flow flow = 2;
+ */
+ public Flow.Builder addFlowBuilder(
+ int index) {
+ return getFlowFieldBuilder().addBuilder(
+ index, Flow.getDefaultInstance());
+ }
+ /**
+ * repeated .sonarqube.db.issues.Flow flow = 2;
+ */
+ public java.util.Listrepeated .sonarqube.db.issues.Location location = 1;
+ */
+ java.util.Listrepeated .sonarqube.db.issues.Location location = 1;
+ */
+ Location getLocation(int index);
+ /**
+ * repeated .sonarqube.db.issues.Location location = 1;
+ */
+ int getLocationCount();
+ /**
+ * repeated .sonarqube.db.issues.Location location = 1;
+ */
+ java.util.List extends LocationOrBuilder>
+ getLocationOrBuilderList();
+ /**
+ * repeated .sonarqube.db.issues.Location location = 1;
+ */
+ LocationOrBuilder getLocationOrBuilder(
+ int index);
+ }
+ /**
+ * Protobuf type {@code sonarqube.db.issues.Flow}
+ */
+ public static final class Flow extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:sonarqube.db.issues.Flow)
+ FlowOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use Flow.newBuilder() to construct.
+ private Flow(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private Flow() {
+ location_ = java.util.Collections.emptyList();
+ }
+
+ @Override
+ @SuppressWarnings({"unused"})
+ protected Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new Flow();
+ }
+
+ @Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private Flow(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new NullPointerException();
+ }
+ 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;
+ case 10: {
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ location_ = new java.util.ArrayListrepeated .sonarqube.db.issues.Location location = 1;
+ */
+ @Override
+ public java.util.Listrepeated .sonarqube.db.issues.Location location = 1;
+ */
+ @Override
+ public java.util.List extends LocationOrBuilder>
+ getLocationOrBuilderList() {
+ return location_;
+ }
+ /**
+ * repeated .sonarqube.db.issues.Location location = 1;
+ */
+ @Override
+ public int getLocationCount() {
+ return location_.size();
+ }
+ /**
+ * repeated .sonarqube.db.issues.Location location = 1;
+ */
+ @Override
+ public Location getLocation(int index) {
+ return location_.get(index);
+ }
+ /**
+ * repeated .sonarqube.db.issues.Location location = 1;
+ */
+ @Override
+ public LocationOrBuilder getLocationOrBuilder(
+ int index) {
+ return location_.get(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @Override
+ 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);
+ }
+
+ @Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ 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();
+ memoizedSize = size;
+ return size;
+ }
+
+ @Override
+ public boolean equals(final Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof Flow)) {
+ return super.equals(obj);
+ }
+ Flow other = (Flow) obj;
+
+ if (!getLocationList()
+ .equals(other.getLocationList())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (getLocationCount() > 0) {
+ hash = (37 * hash) + LOCATION_FIELD_NUMBER;
+ hash = (53 * hash) + getLocationList().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static Flow parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static Flow parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static Flow parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static Flow parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static Flow parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static Flow parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static Flow parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static Flow parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static Flow parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static Flow parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static Flow parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static Flow parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(Flow prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @Override
+ protected Builder newBuilderForType(
+ 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.GeneratedMessageV3.Builderrepeated .sonarqube.db.issues.Location location = 1;
+ */
+ public java.util.Listrepeated .sonarqube.db.issues.Location location = 1;
+ */
+ public int getLocationCount() {
+ if (locationBuilder_ == null) {
+ return location_.size();
+ } else {
+ return locationBuilder_.getCount();
+ }
+ }
+ /**
+ * repeated .sonarqube.db.issues.Location location = 1;
+ */
+ public Location getLocation(int index) {
+ if (locationBuilder_ == null) {
+ return location_.get(index);
+ } else {
+ return locationBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * repeated .sonarqube.db.issues.Location location = 1;
+ */
+ public Builder setLocation(
+ int index, Location value) {
+ if (locationBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureLocationIsMutable();
+ location_.set(index, value);
+ onChanged();
+ } else {
+ locationBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .sonarqube.db.issues.Location location = 1;
+ */
+ public Builder setLocation(
+ int index, Location.Builder builderForValue) {
+ if (locationBuilder_ == null) {
+ ensureLocationIsMutable();
+ location_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ locationBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .sonarqube.db.issues.Location location = 1;
+ */
+ public Builder addLocation(Location value) {
+ if (locationBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureLocationIsMutable();
+ location_.add(value);
+ onChanged();
+ } else {
+ locationBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * repeated .sonarqube.db.issues.Location location = 1;
+ */
+ public Builder addLocation(
+ int index, Location value) {
+ if (locationBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureLocationIsMutable();
+ location_.add(index, value);
+ onChanged();
+ } else {
+ locationBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .sonarqube.db.issues.Location location = 1;
+ */
+ public Builder addLocation(
+ Location.Builder builderForValue) {
+ if (locationBuilder_ == null) {
+ ensureLocationIsMutable();
+ location_.add(builderForValue.build());
+ onChanged();
+ } else {
+ locationBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .sonarqube.db.issues.Location location = 1;
+ */
+ public Builder addLocation(
+ int index, Location.Builder builderForValue) {
+ if (locationBuilder_ == null) {
+ ensureLocationIsMutable();
+ location_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ locationBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .sonarqube.db.issues.Location location = 1;
+ */
+ public Builder addAllLocation(
+ Iterable extends Location> values) {
+ if (locationBuilder_ == null) {
+ ensureLocationIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, location_);
+ onChanged();
+ } else {
+ locationBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * repeated .sonarqube.db.issues.Location location = 1;
+ */
+ public Builder clearLocation() {
+ if (locationBuilder_ == null) {
+ location_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ locationBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * repeated .sonarqube.db.issues.Location location = 1;
+ */
+ public Builder removeLocation(int index) {
+ if (locationBuilder_ == null) {
+ ensureLocationIsMutable();
+ location_.remove(index);
+ onChanged();
+ } else {
+ locationBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * repeated .sonarqube.db.issues.Location location = 1;
+ */
+ public Location.Builder getLocationBuilder(
+ int index) {
+ return getLocationFieldBuilder().getBuilder(index);
+ }
+ /**
+ * repeated .sonarqube.db.issues.Location location = 1;
+ */
+ public LocationOrBuilder getLocationOrBuilder(
+ int index) {
+ if (locationBuilder_ == null) {
+ return location_.get(index); } else {
+ return locationBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * repeated .sonarqube.db.issues.Location location = 1;
+ */
+ public java.util.List extends LocationOrBuilder>
+ getLocationOrBuilderList() {
+ if (locationBuilder_ != null) {
+ return locationBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(location_);
+ }
+ }
+ /**
+ * repeated .sonarqube.db.issues.Location location = 1;
+ */
+ public Location.Builder addLocationBuilder() {
+ return getLocationFieldBuilder().addBuilder(
+ Location.getDefaultInstance());
+ }
+ /**
+ * repeated .sonarqube.db.issues.Location location = 1;
+ */
+ public Location.Builder addLocationBuilder(
+ int index) {
+ return getLocationFieldBuilder().addBuilder(
+ index, Location.getDefaultInstance());
+ }
+ /**
+ * repeated .sonarqube.db.issues.Location location = 1;
+ */
+ public java.util.Listoptional string component_id = 1;
+ * @return Whether the componentId field is set.
+ */
+ boolean hasComponentId();
+ /**
+ * optional string component_id = 1;
+ * @return The componentId.
+ */
+ String getComponentId();
+ /**
+ * optional string component_id = 1;
+ * @return The bytes for componentId.
+ */
+ com.google.protobuf.ByteString
+ getComponentIdBytes();
+
+ /**
+ * + * Only when component is a file. Can be empty for a file if this is an issue global to the file. + *+ * + *
optional .sonarqube.db.commons.TextRange text_range = 2;
+ * @return Whether the textRange field is set.
+ */
+ boolean hasTextRange();
+ /**
+ * + * Only when component is a file. Can be empty for a file if this is an issue global to the file. + *+ * + *
optional .sonarqube.db.commons.TextRange text_range = 2;
+ * @return The textRange.
+ */
+ DbCommons.TextRange getTextRange();
+ /**
+ * + * Only when component is a file. Can be empty for a file if this is an issue global to the file. + *+ * + *
optional .sonarqube.db.commons.TextRange text_range = 2;
+ */
+ DbCommons.TextRangeOrBuilder getTextRangeOrBuilder();
+
+ /**
+ * optional string msg = 3;
+ * @return Whether the msg field is set.
+ */
+ boolean hasMsg();
+ /**
+ * optional string msg = 3;
+ * @return The msg.
+ */
+ String getMsg();
+ /**
+ * optional string msg = 3;
+ * @return The bytes for msg.
+ */
+ com.google.protobuf.ByteString
+ getMsgBytes();
+ }
+ /**
+ * Protobuf type {@code sonarqube.db.issues.Location}
+ */
+ public static final class Location extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:sonarqube.db.issues.Location)
+ LocationOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use Location.newBuilder() to construct.
+ private Location(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private Location() {
+ componentId_ = "";
+ msg_ = "";
+ }
+
+ @Override
+ @SuppressWarnings({"unused"})
+ protected Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new Location();
+ }
+
+ @Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private Location(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new NullPointerException();
+ }
+ 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;
+ case 10: {
+ com.google.protobuf.ByteString bs = input.readBytes();
+ bitField0_ |= 0x00000001;
+ componentId_ = bs;
+ break;
+ }
+ case 18: {
+ DbCommons.TextRange.Builder subBuilder = null;
+ if (((bitField0_ & 0x00000002) != 0)) {
+ subBuilder = textRange_.toBuilder();
+ }
+ textRange_ = input.readMessage(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;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return net.educoder.ecsonar.protobuf.DbIssues.internal_static_sonarqube_db_issues_Location_descriptor;
+ }
+
+ @Override
+ protected FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return net.educoder.ecsonar.protobuf.DbIssues.internal_static_sonarqube_db_issues_Location_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ Location.class, Builder.class);
+ }
+
+ private int bitField0_;
+ public static final int COMPONENT_ID_FIELD_NUMBER = 1;
+ private volatile Object componentId_;
+ /**
+ * optional string component_id = 1;
+ * @return Whether the componentId field is set.
+ */
+ @Override
+ public boolean hasComponentId() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ * optional string component_id = 1;
+ * @return The componentId.
+ */
+ @Override
+ public String getComponentId() {
+ Object ref = componentId_;
+ if (ref instanceof String) {
+ return (String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ componentId_ = s;
+ }
+ return s;
+ }
+ }
+ /**
+ * optional string component_id = 1;
+ * @return The bytes for componentId.
+ */
+ @Override
+ public com.google.protobuf.ByteString
+ getComponentIdBytes() {
+ Object ref = componentId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (String) ref);
+ componentId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int TEXT_RANGE_FIELD_NUMBER = 2;
+ private DbCommons.TextRange textRange_;
+ /**
+ * + * Only when component is a file. Can be empty for a file if this is an issue global to the file. + *+ * + *
optional .sonarqube.db.commons.TextRange text_range = 2;
+ * @return Whether the textRange field is set.
+ */
+ @Override
+ public boolean hasTextRange() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ * + * Only when component is a file. Can be empty for a file if this is an issue global to the file. + *+ * + *
optional .sonarqube.db.commons.TextRange text_range = 2;
+ * @return The textRange.
+ */
+ @Override
+ public DbCommons.TextRange getTextRange() {
+ return textRange_ == null ? DbCommons.TextRange.getDefaultInstance() : textRange_;
+ }
+ /**
+ * + * Only when component is a file. Can be empty for a file if this is an issue global to the file. + *+ * + *
optional .sonarqube.db.commons.TextRange text_range = 2;
+ */
+ @Override
+ public DbCommons.TextRangeOrBuilder getTextRangeOrBuilder() {
+ return textRange_ == null ? DbCommons.TextRange.getDefaultInstance() : textRange_;
+ }
+
+ public static final int MSG_FIELD_NUMBER = 3;
+ private volatile Object msg_;
+ /**
+ * optional string msg = 3;
+ * @return Whether the msg field is set.
+ */
+ @Override
+ public boolean hasMsg() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+ /**
+ * optional string msg = 3;
+ * @return The msg.
+ */
+ @Override
+ public String getMsg() {
+ Object ref = msg_;
+ if (ref instanceof String) {
+ return (String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ msg_ = s;
+ }
+ return s;
+ }
+ }
+ /**
+ * optional string msg = 3;
+ * @return The bytes for msg.
+ */
+ @Override
+ public com.google.protobuf.ByteString
+ getMsgBytes() {
+ Object ref = msg_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (String) ref);
+ msg_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (((bitField0_ & 0x00000001) != 0)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, componentId_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ output.writeMessage(2, getTextRange());
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, msg_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, componentId_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(2, getTextRange());
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, msg_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @Override
+ public boolean equals(final Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof Location)) {
+ return super.equals(obj);
+ }
+ Location other = (Location) obj;
+
+ if (hasComponentId() != other.hasComponentId()) return false;
+ if (hasComponentId()) {
+ if (!getComponentId()
+ .equals(other.getComponentId())) return false;
+ }
+ if (hasTextRange() != other.hasTextRange()) return false;
+ if (hasTextRange()) {
+ if (!getTextRange()
+ .equals(other.getTextRange())) return false;
+ }
+ if (hasMsg() != other.hasMsg()) return false;
+ if (hasMsg()) {
+ if (!getMsg()
+ .equals(other.getMsg())) return false;
+ }
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasComponentId()) {
+ hash = (37 * hash) + COMPONENT_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getComponentId().hashCode();
+ }
+ if (hasTextRange()) {
+ hash = (37 * hash) + TEXT_RANGE_FIELD_NUMBER;
+ hash = (53 * hash) + getTextRange().hashCode();
+ }
+ if (hasMsg()) {
+ hash = (37 * hash) + MSG_FIELD_NUMBER;
+ hash = (53 * hash) + getMsg().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static Location parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static Location parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static Location parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static Location parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static Location parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static Location parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static Location parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static Location parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static Location parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static Location parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static Location parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static Location parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(Location prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @Override
+ protected Builder newBuilderForType(
+ 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.GeneratedMessageV3.Builderoptional string component_id = 1;
+ * @return Whether the componentId field is set.
+ */
+ public boolean hasComponentId() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ * optional string component_id = 1;
+ * @return The componentId.
+ */
+ public String getComponentId() {
+ Object ref = componentId_;
+ if (!(ref instanceof String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ componentId_ = s;
+ }
+ return s;
+ } else {
+ return (String) ref;
+ }
+ }
+ /**
+ * optional string component_id = 1;
+ * @return The bytes for componentId.
+ */
+ public com.google.protobuf.ByteString
+ getComponentIdBytes() {
+ Object ref = componentId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (String) ref);
+ componentId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * optional string component_id = 1;
+ * @param value The componentId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setComponentId(
+ String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000001;
+ componentId_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional string component_id = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearComponentId() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ componentId_ = getDefaultInstance().getComponentId();
+ onChanged();
+ return this;
+ }
+ /**
+ * optional string component_id = 1;
+ * @param value The bytes for componentId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setComponentIdBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000001;
+ componentId_ = value;
+ onChanged();
+ return this;
+ }
+
+ private DbCommons.TextRange textRange_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ DbCommons.TextRange, DbCommons.TextRange.Builder, DbCommons.TextRangeOrBuilder> textRangeBuilder_;
+ /**
+ * + * Only when component is a file. Can be empty for a file if this is an issue global to the file. + *+ * + *
optional .sonarqube.db.commons.TextRange text_range = 2;
+ * @return Whether the textRange field is set.
+ */
+ public boolean hasTextRange() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ * + * Only when component is a file. Can be empty for a file if this is an issue global to the file. + *+ * + *
optional .sonarqube.db.commons.TextRange text_range = 2;
+ * @return The textRange.
+ */
+ public DbCommons.TextRange getTextRange() {
+ if (textRangeBuilder_ == null) {
+ return textRange_ == null ? DbCommons.TextRange.getDefaultInstance() : textRange_;
+ } else {
+ return textRangeBuilder_.getMessage();
+ }
+ }
+ /**
+ * + * Only when component is a file. Can be empty for a file if this is an issue global to the file. + *+ * + *
optional .sonarqube.db.commons.TextRange text_range = 2;
+ */
+ public Builder setTextRange(DbCommons.TextRange value) {
+ if (textRangeBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ textRange_ = value;
+ onChanged();
+ } else {
+ textRangeBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000002;
+ return this;
+ }
+ /**
+ * + * Only when component is a file. Can be empty for a file if this is an issue global to the file. + *+ * + *
optional .sonarqube.db.commons.TextRange text_range = 2;
+ */
+ public Builder setTextRange(
+ DbCommons.TextRange.Builder builderForValue) {
+ if (textRangeBuilder_ == null) {
+ textRange_ = builderForValue.build();
+ onChanged();
+ } else {
+ textRangeBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000002;
+ return this;
+ }
+ /**
+ * + * Only when component is a file. Can be empty for a file if this is an issue global to the file. + *+ * + *
optional .sonarqube.db.commons.TextRange text_range = 2;
+ */
+ public Builder mergeTextRange(DbCommons.TextRange value) {
+ if (textRangeBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) != 0) &&
+ textRange_ != null &&
+ textRange_ != DbCommons.TextRange.getDefaultInstance()) {
+ textRange_ =
+ DbCommons.TextRange.newBuilder(textRange_).mergeFrom(value).buildPartial();
+ } else {
+ textRange_ = value;
+ }
+ onChanged();
+ } else {
+ textRangeBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000002;
+ return this;
+ }
+ /**
+ * + * Only when component is a file. Can be empty for a file if this is an issue global to the file. + *+ * + *
optional .sonarqube.db.commons.TextRange text_range = 2;
+ */
+ public Builder clearTextRange() {
+ if (textRangeBuilder_ == null) {
+ textRange_ = null;
+ onChanged();
+ } else {
+ textRangeBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000002);
+ return this;
+ }
+ /**
+ * + * Only when component is a file. Can be empty for a file if this is an issue global to the file. + *+ * + *
optional .sonarqube.db.commons.TextRange text_range = 2;
+ */
+ public DbCommons.TextRange.Builder getTextRangeBuilder() {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return getTextRangeFieldBuilder().getBuilder();
+ }
+ /**
+ * + * Only when component is a file. Can be empty for a file if this is an issue global to the file. + *+ * + *
optional .sonarqube.db.commons.TextRange text_range = 2;
+ */
+ public DbCommons.TextRangeOrBuilder getTextRangeOrBuilder() {
+ if (textRangeBuilder_ != null) {
+ return textRangeBuilder_.getMessageOrBuilder();
+ } else {
+ return textRange_ == null ?
+ DbCommons.TextRange.getDefaultInstance() : textRange_;
+ }
+ }
+ /**
+ * + * Only when component is a file. Can be empty for a file if this is an issue global to the file. + *+ * + *
optional .sonarqube.db.commons.TextRange text_range = 2;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ DbCommons.TextRange, DbCommons.TextRange.Builder, DbCommons.TextRangeOrBuilder>
+ getTextRangeFieldBuilder() {
+ if (textRangeBuilder_ == null) {
+ textRangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ DbCommons.TextRange, DbCommons.TextRange.Builder, DbCommons.TextRangeOrBuilder>(
+ getTextRange(),
+ getParentForChildren(),
+ isClean());
+ textRange_ = null;
+ }
+ return textRangeBuilder_;
+ }
+
+ private Object msg_ = "";
+ /**
+ * optional string msg = 3;
+ * @return Whether the msg field is set.
+ */
+ public boolean hasMsg() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+ /**
+ * optional string msg = 3;
+ * @return The msg.
+ */
+ public String getMsg() {
+ Object ref = msg_;
+ if (!(ref instanceof String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ msg_ = s;
+ }
+ return s;
+ } else {
+ return (String) ref;
+ }
+ }
+ /**
+ * optional string msg = 3;
+ * @return The bytes for msg.
+ */
+ public com.google.protobuf.ByteString
+ getMsgBytes() {
+ Object ref = msg_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (String) ref);
+ msg_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * optional string msg = 3;
+ * @param value The msg to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMsg(
+ String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000004;
+ msg_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional string msg = 3;
+ * @return This builder for chaining.
+ */
+ public Builder clearMsg() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ msg_ = getDefaultInstance().getMsg();
+ onChanged();
+ return this;
+ }
+ /**
+ * optional string msg = 3;
+ * @param value The bytes for msg to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMsgBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000004;
+ msg_ = value;
+ onChanged();
+ return this;
+ }
+ @Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:sonarqube.db.issues.Location)
+ }
+
+ // @@protoc_insertion_point(class_scope:sonarqube.db.issues.Location)
+ private static final Location DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new Location();
+ }
+
+ public static Location getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @Deprecated
+ public static final com.google.protobuf.Parserstring branch = 1;
+ * @return The branch.
+ */
+ String getBranch();
+ /**
+ * string branch = 1;
+ * @return The bytes for branch.
+ */
+ com.google.protobuf.ByteString
+ getBranchBytes();
+
+ /**
+ * string title = 2;
+ * @return The title.
+ */
+ String getTitle();
+ /**
+ * string title = 2;
+ * @return The bytes for title.
+ */
+ com.google.protobuf.ByteString
+ getTitleBytes();
+
+ /**
+ * string url = 3;
+ * @return The url.
+ */
+ String getUrl();
+ /**
+ * string url = 3;
+ * @return The bytes for url.
+ */
+ com.google.protobuf.ByteString
+ getUrlBytes();
+
+ /**
+ * map<string, string> attributes = 4;
+ */
+ int getAttributesCount();
+ /**
+ * map<string, string> attributes = 4;
+ */
+ boolean containsAttributes(
+ String key);
+ /**
+ * Use {@link #getAttributesMap()} instead.
+ */
+ @Deprecated
+ java.util.Mapmap<string, string> attributes = 4;
+ */
+ java.util.Mapmap<string, string> attributes = 4;
+ */
+
+ /* nullable */
+String getAttributesOrDefault(
+ String key,
+ /* nullable */
+String defaultValue);
+ /**
+ * map<string, string> attributes = 4;
+ */
+
+ String getAttributesOrThrow(
+ String key);
+
+ /**
+ * string target = 5;
+ * @return The target.
+ */
+ String getTarget();
+ /**
+ * string target = 5;
+ * @return The bytes for target.
+ */
+ com.google.protobuf.ByteString
+ getTargetBytes();
+ }
+ /**
+ * Protobuf type {@code sonarqube.db.project_branches.PullRequestData}
+ */
+ public static final class PullRequestData extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:sonarqube.db.project_branches.PullRequestData)
+ PullRequestDataOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use PullRequestData.newBuilder() to construct.
+ private PullRequestData(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private PullRequestData() {
+ branch_ = "";
+ title_ = "";
+ url_ = "";
+ target_ = "";
+ }
+
+ @Override
+ @SuppressWarnings({"unused"})
+ protected Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new PullRequestData();
+ }
+
+ @Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private PullRequestData(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new NullPointerException();
+ }
+ 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;
+ case 10: {
+ String s = input.readStringRequireUtf8();
+
+ branch_ = s;
+ break;
+ }
+ case 18: {
+ String s = input.readStringRequireUtf8();
+
+ title_ = s;
+ break;
+ }
+ case 26: {
+ String s = input.readStringRequireUtf8();
+
+ url_ = s;
+ break;
+ }
+ case 34: {
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ attributes_ = com.google.protobuf.MapField.newMapField(
+ AttributesDefaultEntryHolder.defaultEntry);
+ mutable_bitField0_ |= 0x00000001;
+ }
+ com.google.protobuf.MapEntrystring branch = 1;
+ * @return The branch.
+ */
+ @Override
+ public String getBranch() {
+ Object ref = branch_;
+ if (ref instanceof String) {
+ return (String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ String s = bs.toStringUtf8();
+ branch_ = s;
+ return s;
+ }
+ }
+ /**
+ * string branch = 1;
+ * @return The bytes for branch.
+ */
+ @Override
+ public com.google.protobuf.ByteString
+ getBranchBytes() {
+ Object ref = branch_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (String) ref);
+ branch_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int TITLE_FIELD_NUMBER = 2;
+ private volatile Object title_;
+ /**
+ * string title = 2;
+ * @return The title.
+ */
+ @Override
+ public String getTitle() {
+ Object ref = title_;
+ if (ref instanceof String) {
+ return (String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ String s = bs.toStringUtf8();
+ title_ = s;
+ return s;
+ }
+ }
+ /**
+ * string title = 2;
+ * @return The bytes for title.
+ */
+ @Override
+ public com.google.protobuf.ByteString
+ getTitleBytes() {
+ Object ref = title_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (String) ref);
+ title_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int URL_FIELD_NUMBER = 3;
+ private volatile Object url_;
+ /**
+ * string url = 3;
+ * @return The url.
+ */
+ @Override
+ public String getUrl() {
+ Object ref = url_;
+ if (ref instanceof String) {
+ return (String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ String s = bs.toStringUtf8();
+ url_ = s;
+ return s;
+ }
+ }
+ /**
+ * string url = 3;
+ * @return The bytes for url.
+ */
+ @Override
+ public com.google.protobuf.ByteString
+ getUrlBytes() {
+ Object ref = url_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (String) ref);
+ url_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int ATTRIBUTES_FIELD_NUMBER = 4;
+ private static final class AttributesDefaultEntryHolder {
+ static final com.google.protobuf.MapEntry<
+ String, String> defaultEntry =
+ com.google.protobuf.MapEntry
+ .map<string, string> attributes = 4;
+ */
+
+ @Override
+ public boolean containsAttributes(
+ String key) {
+ if (key == null) { throw new NullPointerException("map key"); }
+ return internalGetAttributes().getMap().containsKey(key);
+ }
+ /**
+ * Use {@link #getAttributesMap()} instead.
+ */
+ @Override
+ @Deprecated
+ public java.util.Mapmap<string, string> attributes = 4;
+ */
+ @Override
+
+ public java.util.Mapmap<string, string> attributes = 4;
+ */
+ @Override
+
+ public String getAttributesOrDefault(
+ String key,
+ String defaultValue) {
+ if (key == null) { throw new NullPointerException("map key"); }
+ java.util.Mapmap<string, string> attributes = 4;
+ */
+ @Override
+
+ public String getAttributesOrThrow(
+ String key) {
+ if (key == null) { throw new NullPointerException("map key"); }
+ java.util.Mapstring target = 5;
+ * @return The target.
+ */
+ @Override
+ public String getTarget() {
+ Object ref = target_;
+ if (ref instanceof String) {
+ return (String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ String s = bs.toStringUtf8();
+ target_ = s;
+ return s;
+ }
+ }
+ /**
+ * string target = 5;
+ * @return The bytes for target.
+ */
+ @Override
+ public com.google.protobuf.ByteString
+ getTargetBytes() {
+ Object ref = target_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (String) ref);
+ target_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(branch_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, branch_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(title_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, title_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(url_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, url_);
+ }
+ com.google.protobuf.GeneratedMessageV3
+ .serializeStringMapTo(
+ output,
+ internalGetAttributes(),
+ AttributesDefaultEntryHolder.defaultEntry,
+ 4);
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 5, target_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(branch_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, branch_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(title_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, title_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(url_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, url_);
+ }
+ for (java.util.Map.Entrystring branch = 1;
+ * @return The branch.
+ */
+ public String getBranch() {
+ Object ref = branch_;
+ if (!(ref instanceof String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ String s = bs.toStringUtf8();
+ branch_ = s;
+ return s;
+ } else {
+ return (String) ref;
+ }
+ }
+ /**
+ * string branch = 1;
+ * @return The bytes for branch.
+ */
+ public com.google.protobuf.ByteString
+ getBranchBytes() {
+ Object ref = branch_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (String) ref);
+ branch_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string branch = 1;
+ * @param value The branch to set.
+ * @return This builder for chaining.
+ */
+ public Builder setBranch(
+ String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ branch_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string branch = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearBranch() {
+
+ branch_ = getDefaultInstance().getBranch();
+ onChanged();
+ return this;
+ }
+ /**
+ * string branch = 1;
+ * @param value The bytes for branch to set.
+ * @return This builder for chaining.
+ */
+ public Builder setBranchBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ branch_ = value;
+ onChanged();
+ return this;
+ }
+
+ private Object title_ = "";
+ /**
+ * string title = 2;
+ * @return The title.
+ */
+ public String getTitle() {
+ Object ref = title_;
+ if (!(ref instanceof String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ String s = bs.toStringUtf8();
+ title_ = s;
+ return s;
+ } else {
+ return (String) ref;
+ }
+ }
+ /**
+ * string title = 2;
+ * @return The bytes for title.
+ */
+ public com.google.protobuf.ByteString
+ getTitleBytes() {
+ Object ref = title_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (String) ref);
+ title_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string title = 2;
+ * @param value The title to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTitle(
+ String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ title_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string title = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearTitle() {
+
+ title_ = getDefaultInstance().getTitle();
+ onChanged();
+ return this;
+ }
+ /**
+ * string title = 2;
+ * @param value The bytes for title to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTitleBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ title_ = value;
+ onChanged();
+ return this;
+ }
+
+ private Object url_ = "";
+ /**
+ * string url = 3;
+ * @return The url.
+ */
+ public String getUrl() {
+ Object ref = url_;
+ if (!(ref instanceof String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ String s = bs.toStringUtf8();
+ url_ = s;
+ return s;
+ } else {
+ return (String) ref;
+ }
+ }
+ /**
+ * string url = 3;
+ * @return The bytes for url.
+ */
+ public com.google.protobuf.ByteString
+ getUrlBytes() {
+ Object ref = url_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (String) ref);
+ url_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string url = 3;
+ * @param value The url to set.
+ * @return This builder for chaining.
+ */
+ public Builder setUrl(
+ String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ url_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string url = 3;
+ * @return This builder for chaining.
+ */
+ public Builder clearUrl() {
+
+ url_ = getDefaultInstance().getUrl();
+ onChanged();
+ return this;
+ }
+ /**
+ * string url = 3;
+ * @param value The bytes for url to set.
+ * @return This builder for chaining.
+ */
+ public Builder setUrlBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ url_ = value;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.MapField<
+ String, String> attributes_;
+ private com.google.protobuf.MapFieldmap<string, string> attributes = 4;
+ */
+
+ @Override
+ public boolean containsAttributes(
+ String key) {
+ if (key == null) { throw new NullPointerException("map key"); }
+ return internalGetAttributes().getMap().containsKey(key);
+ }
+ /**
+ * Use {@link #getAttributesMap()} instead.
+ */
+ @Override
+ @Deprecated
+ public java.util.Mapmap<string, string> attributes = 4;
+ */
+ @Override
+
+ public java.util.Mapmap<string, string> attributes = 4;
+ */
+ @Override
+
+ public String getAttributesOrDefault(
+ String key,
+ String defaultValue) {
+ if (key == null) { throw new NullPointerException("map key"); }
+ java.util.Mapmap<string, string> attributes = 4;
+ */
+ @Override
+
+ public String getAttributesOrThrow(
+ String key) {
+ if (key == null) { throw new NullPointerException("map key"); }
+ java.util.Mapmap<string, string> attributes = 4;
+ */
+
+ public Builder removeAttributes(
+ String key) {
+ if (key == null) { throw new NullPointerException("map key"); }
+ internalGetMutableAttributes().getMutableMap()
+ .remove(key);
+ return this;
+ }
+ /**
+ * Use alternate mutation accessors instead.
+ */
+ @Deprecated
+ public java.util.Mapmap<string, string> attributes = 4;
+ */
+ public Builder putAttributes(
+ String key,
+ String value) {
+ if (key == null) { throw new NullPointerException("map key"); }
+ if (value == null) {
+ throw new NullPointerException("map value");
+}
+
+ internalGetMutableAttributes().getMutableMap()
+ .put(key, value);
+ return this;
+ }
+ /**
+ * map<string, string> attributes = 4;
+ */
+
+ public Builder putAllAttributes(
+ java.util.Mapstring target = 5;
+ * @return The target.
+ */
+ public String getTarget() {
+ Object ref = target_;
+ if (!(ref instanceof String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ String s = bs.toStringUtf8();
+ target_ = s;
+ return s;
+ } else {
+ return (String) ref;
+ }
+ }
+ /**
+ * string target = 5;
+ * @return The bytes for target.
+ */
+ public com.google.protobuf.ByteString
+ getTargetBytes() {
+ Object ref = target_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (String) ref);
+ target_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string target = 5;
+ * @param value The target to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTarget(
+ String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ target_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string target = 5;
+ * @return This builder for chaining.
+ */
+ public Builder clearTarget() {
+
+ target_ = getDefaultInstance().getTarget();
+ onChanged();
+ return this;
+ }
+ /**
+ * string target = 5;
+ * @param value The bytes for target to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTargetBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ target_ = value;
+ onChanged();
+ return this;
+ }
+ @Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:sonarqube.db.project_branches.PullRequestData)
+ }
+
+ // @@protoc_insertion_point(class_scope:sonarqube.db.project_branches.PullRequestData)
+ private static final PullRequestData DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new PullRequestData();
+ }
+
+ public static PullRequestData getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser", "
")
+ .replaceAll("Noncompliant Code Example", "错误代码示范")
+ .replaceAll("Compliant Solution", "正确代码示范")
+ .replaceAll("Exceptions", "异常代码")
+ .replaceAll("See", "链接");
+ return example;
+ }
+ return "";
+ }
+
+ /**
+ * 代码详情
+ *
+ * @param codeDetailVO
+ * @return
+ */
+ public CodeDetailDTO getCodeDetail(CodeDetailVO codeDetailVO) {
+
+ FileSource fileSource = fileSourceDao.findFileSourceFileUuid(codeDetailVO.getUuid());
+
+ DbFileSources.Data data = fileSource.decodeSourceData(fileSource.getBinaryData());
+ List