All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.sonar.db.protobuf.DbFileSources Maven / Gradle / Ivy

There is a newer version: 6.3.1
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: db-file-sources.proto

package org.sonar.db.protobuf;

public final class DbFileSources {
  private DbFileSources() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
  }
  public interface LineOrBuilder extends
      // @@protoc_insertion_point(interface_extends:org.sonar.server.source.db.Line)
      com.google.protobuf.MessageOrBuilder {

    /**
     * optional int32 line = 1;
     */
    boolean hasLine();
    /**
     * optional int32 line = 1;
     */
    int getLine();

    /**
     * optional string source = 2;
     */
    boolean hasSource();
    /**
     * optional string source = 2;
     */
    java.lang.String getSource();
    /**
     * optional string source = 2;
     */
    com.google.protobuf.ByteString
        getSourceBytes();

    /**
     * optional string scm_revision = 3;
     *
     * 
     * SCM
     * 
*/ boolean hasScmRevision(); /** * optional string scm_revision = 3; * *
     * SCM
     * 
*/ java.lang.String getScmRevision(); /** * optional string scm_revision = 3; * *
     * SCM
     * 
*/ com.google.protobuf.ByteString getScmRevisionBytes(); /** * optional string scm_author = 4; */ boolean hasScmAuthor(); /** * optional string scm_author = 4; */ java.lang.String getScmAuthor(); /** * optional string scm_author = 4; */ com.google.protobuf.ByteString getScmAuthorBytes(); /** * optional int64 scm_date = 5; */ boolean hasScmDate(); /** * optional int64 scm_date = 5; */ long getScmDate(); /** * optional int32 ut_line_hits = 6; * *
     * unit tests
     * 
*/ boolean hasUtLineHits(); /** * optional int32 ut_line_hits = 6; * *
     * unit tests
     * 
*/ int getUtLineHits(); /** * optional int32 ut_conditions = 7; */ boolean hasUtConditions(); /** * optional int32 ut_conditions = 7; */ int getUtConditions(); /** * optional int32 ut_covered_conditions = 8; */ boolean hasUtCoveredConditions(); /** * optional int32 ut_covered_conditions = 8; */ int getUtCoveredConditions(); /** * optional int32 it_line_hits = 9; * *
     * integration tests
     * 
*/ boolean hasItLineHits(); /** * optional int32 it_line_hits = 9; * *
     * integration tests
     * 
*/ int getItLineHits(); /** * optional int32 it_conditions = 10; */ boolean hasItConditions(); /** * optional int32 it_conditions = 10; */ int getItConditions(); /** * optional int32 it_covered_conditions = 11; */ boolean hasItCoveredConditions(); /** * optional int32 it_covered_conditions = 11; */ int getItCoveredConditions(); /** * optional int32 overall_line_hits = 12; * *
     * overall tests
     * 
*/ boolean hasOverallLineHits(); /** * optional int32 overall_line_hits = 12; * *
     * overall tests
     * 
*/ int getOverallLineHits(); /** * optional int32 overall_conditions = 13; */ boolean hasOverallConditions(); /** * optional int32 overall_conditions = 13; */ int getOverallConditions(); /** * optional int32 overall_covered_conditions = 14; */ boolean hasOverallCoveredConditions(); /** * optional int32 overall_covered_conditions = 14; */ int getOverallCoveredConditions(); /** * optional string highlighting = 15; */ boolean hasHighlighting(); /** * optional string highlighting = 15; */ java.lang.String getHighlighting(); /** * optional string highlighting = 15; */ com.google.protobuf.ByteString getHighlightingBytes(); /** * optional string symbols = 16; */ boolean hasSymbols(); /** * optional string symbols = 16; */ java.lang.String getSymbols(); /** * optional string symbols = 16; */ com.google.protobuf.ByteString getSymbolsBytes(); /** * repeated int32 duplication = 17 [packed = true]; */ java.util.List getDuplicationList(); /** * repeated int32 duplication = 17 [packed = true]; */ int getDuplicationCount(); /** * repeated int32 duplication = 17 [packed = true]; */ int getDuplication(int index); } /** * Protobuf type {@code org.sonar.server.source.db.Line} */ public static final class Line extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:org.sonar.server.source.db.Line) LineOrBuilder { // Use Line.newBuilder() to construct. private Line(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Line() { line_ = 0; source_ = ""; scmRevision_ = ""; scmAuthor_ = ""; scmDate_ = 0L; utLineHits_ = 0; utConditions_ = 0; utCoveredConditions_ = 0; itLineHits_ = 0; itConditions_ = 0; itCoveredConditions_ = 0; overallLineHits_ = 0; overallConditions_ = 0; overallCoveredConditions_ = 0; highlighting_ = ""; symbols_ = ""; duplication_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Line( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) { this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { bitField0_ |= 0x00000001; line_ = input.readInt32(); break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; source_ = bs; break; } case 26: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000004; scmRevision_ = bs; break; } case 34: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000008; scmAuthor_ = bs; break; } case 40: { bitField0_ |= 0x00000010; scmDate_ = input.readInt64(); break; } case 48: { bitField0_ |= 0x00000020; utLineHits_ = input.readInt32(); break; } case 56: { bitField0_ |= 0x00000040; utConditions_ = input.readInt32(); break; } case 64: { bitField0_ |= 0x00000080; utCoveredConditions_ = input.readInt32(); break; } case 72: { bitField0_ |= 0x00000100; itLineHits_ = input.readInt32(); break; } case 80: { bitField0_ |= 0x00000200; itConditions_ = input.readInt32(); break; } case 88: { bitField0_ |= 0x00000400; itCoveredConditions_ = input.readInt32(); break; } case 96: { bitField0_ |= 0x00000800; overallLineHits_ = input.readInt32(); break; } case 104: { bitField0_ |= 0x00001000; overallConditions_ = input.readInt32(); break; } case 112: { bitField0_ |= 0x00002000; overallCoveredConditions_ = input.readInt32(); break; } case 122: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00004000; highlighting_ = bs; break; } case 130: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00008000; symbols_ = bs; break; } case 136: { if (!((mutable_bitField0_ & 0x00010000) == 0x00010000)) { duplication_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00010000; } duplication_.add(input.readInt32()); break; } case 138: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00010000) == 0x00010000) && input.getBytesUntilLimit() > 0) { duplication_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00010000; } while (input.getBytesUntilLimit() > 0) { duplication_.add(input.readInt32()); } input.popLimit(limit); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw new RuntimeException(e.setUnfinishedMessage(this)); } catch (java.io.IOException e) { throw new RuntimeException( new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this)); } finally { if (((mutable_bitField0_ & 0x00010000) == 0x00010000)) { duplication_ = java.util.Collections.unmodifiableList(duplication_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.sonar.db.protobuf.DbFileSources.internal_static_org_sonar_server_source_db_Line_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.sonar.db.protobuf.DbFileSources.internal_static_org_sonar_server_source_db_Line_fieldAccessorTable .ensureFieldAccessorsInitialized( org.sonar.db.protobuf.DbFileSources.Line.class, org.sonar.db.protobuf.DbFileSources.Line.Builder.class); } private int bitField0_; public static final int LINE_FIELD_NUMBER = 1; private int line_; /** * optional int32 line = 1; */ public boolean hasLine() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional int32 line = 1; */ public int getLine() { return line_; } public static final int SOURCE_FIELD_NUMBER = 2; private volatile java.lang.Object source_; /** * optional string source = 2; */ public boolean hasSource() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional string source = 2; */ public java.lang.String getSource() { java.lang.Object ref = source_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { source_ = s; } return s; } } /** * optional string source = 2; */ public com.google.protobuf.ByteString getSourceBytes() { java.lang.Object ref = source_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); source_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SCM_REVISION_FIELD_NUMBER = 3; private volatile java.lang.Object scmRevision_; /** * optional string scm_revision = 3; * *
     * SCM
     * 
*/ public boolean hasScmRevision() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional string scm_revision = 3; * *
     * SCM
     * 
*/ public java.lang.String getScmRevision() { java.lang.Object ref = scmRevision_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { scmRevision_ = s; } return s; } } /** * optional string scm_revision = 3; * *
     * SCM
     * 
*/ public com.google.protobuf.ByteString getScmRevisionBytes() { java.lang.Object ref = scmRevision_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); scmRevision_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SCM_AUTHOR_FIELD_NUMBER = 4; private volatile java.lang.Object scmAuthor_; /** * optional string scm_author = 4; */ public boolean hasScmAuthor() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional string scm_author = 4; */ public java.lang.String getScmAuthor() { java.lang.Object ref = scmAuthor_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { scmAuthor_ = s; } return s; } } /** * optional string scm_author = 4; */ public com.google.protobuf.ByteString getScmAuthorBytes() { java.lang.Object ref = scmAuthor_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); scmAuthor_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SCM_DATE_FIELD_NUMBER = 5; private long scmDate_; /** * optional int64 scm_date = 5; */ public boolean hasScmDate() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional int64 scm_date = 5; */ public long getScmDate() { return scmDate_; } public static final int UT_LINE_HITS_FIELD_NUMBER = 6; private int utLineHits_; /** * optional int32 ut_line_hits = 6; * *
     * unit tests
     * 
*/ public boolean hasUtLineHits() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional int32 ut_line_hits = 6; * *
     * unit tests
     * 
*/ public int getUtLineHits() { return utLineHits_; } public static final int UT_CONDITIONS_FIELD_NUMBER = 7; private int utConditions_; /** * optional int32 ut_conditions = 7; */ public boolean hasUtConditions() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * optional int32 ut_conditions = 7; */ public int getUtConditions() { return utConditions_; } public static final int UT_COVERED_CONDITIONS_FIELD_NUMBER = 8; private int utCoveredConditions_; /** * optional int32 ut_covered_conditions = 8; */ public boolean hasUtCoveredConditions() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * optional int32 ut_covered_conditions = 8; */ public int getUtCoveredConditions() { return utCoveredConditions_; } public static final int IT_LINE_HITS_FIELD_NUMBER = 9; private int itLineHits_; /** * optional int32 it_line_hits = 9; * *
     * integration tests
     * 
*/ public boolean hasItLineHits() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * optional int32 it_line_hits = 9; * *
     * integration tests
     * 
*/ public int getItLineHits() { return itLineHits_; } public static final int IT_CONDITIONS_FIELD_NUMBER = 10; private int itConditions_; /** * optional int32 it_conditions = 10; */ public boolean hasItConditions() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * optional int32 it_conditions = 10; */ public int getItConditions() { return itConditions_; } public static final int IT_COVERED_CONDITIONS_FIELD_NUMBER = 11; private int itCoveredConditions_; /** * optional int32 it_covered_conditions = 11; */ public boolean hasItCoveredConditions() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** * optional int32 it_covered_conditions = 11; */ public int getItCoveredConditions() { return itCoveredConditions_; } public static final int OVERALL_LINE_HITS_FIELD_NUMBER = 12; private int overallLineHits_; /** * optional int32 overall_line_hits = 12; * *
     * overall tests
     * 
*/ public boolean hasOverallLineHits() { return ((bitField0_ & 0x00000800) == 0x00000800); } /** * optional int32 overall_line_hits = 12; * *
     * overall tests
     * 
*/ public int getOverallLineHits() { return overallLineHits_; } public static final int OVERALL_CONDITIONS_FIELD_NUMBER = 13; private int overallConditions_; /** * optional int32 overall_conditions = 13; */ public boolean hasOverallConditions() { return ((bitField0_ & 0x00001000) == 0x00001000); } /** * optional int32 overall_conditions = 13; */ public int getOverallConditions() { return overallConditions_; } public static final int OVERALL_COVERED_CONDITIONS_FIELD_NUMBER = 14; private int overallCoveredConditions_; /** * optional int32 overall_covered_conditions = 14; */ public boolean hasOverallCoveredConditions() { return ((bitField0_ & 0x00002000) == 0x00002000); } /** * optional int32 overall_covered_conditions = 14; */ public int getOverallCoveredConditions() { return overallCoveredConditions_; } public static final int HIGHLIGHTING_FIELD_NUMBER = 15; private volatile java.lang.Object highlighting_; /** * optional string highlighting = 15; */ public boolean hasHighlighting() { return ((bitField0_ & 0x00004000) == 0x00004000); } /** * optional string highlighting = 15; */ public java.lang.String getHighlighting() { java.lang.Object ref = highlighting_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { highlighting_ = s; } return s; } } /** * optional string highlighting = 15; */ public com.google.protobuf.ByteString getHighlightingBytes() { java.lang.Object ref = highlighting_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); highlighting_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SYMBOLS_FIELD_NUMBER = 16; private volatile java.lang.Object symbols_; /** * optional string symbols = 16; */ public boolean hasSymbols() { return ((bitField0_ & 0x00008000) == 0x00008000); } /** * optional string symbols = 16; */ public java.lang.String getSymbols() { java.lang.Object ref = symbols_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { symbols_ = s; } return s; } } /** * optional string symbols = 16; */ public com.google.protobuf.ByteString getSymbolsBytes() { java.lang.Object ref = symbols_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); symbols_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DUPLICATION_FIELD_NUMBER = 17; private java.util.List duplication_; /** * repeated int32 duplication = 17 [packed = true]; */ public java.util.List getDuplicationList() { return duplication_; } /** * repeated int32 duplication = 17 [packed = true]; */ public int getDuplicationCount() { return duplication_.size(); } /** * repeated int32 duplication = 17 [packed = true]; */ public int getDuplication(int index) { return duplication_.get(index); } private int duplicationMemoizedSerializedSize = -1; private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt32(1, line_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessage.writeString(output, 2, source_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { com.google.protobuf.GeneratedMessage.writeString(output, 3, scmRevision_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { com.google.protobuf.GeneratedMessage.writeString(output, 4, scmAuthor_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeInt64(5, scmDate_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeInt32(6, utLineHits_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeInt32(7, utConditions_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { output.writeInt32(8, utCoveredConditions_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { output.writeInt32(9, itLineHits_); } if (((bitField0_ & 0x00000200) == 0x00000200)) { output.writeInt32(10, itConditions_); } if (((bitField0_ & 0x00000400) == 0x00000400)) { output.writeInt32(11, itCoveredConditions_); } if (((bitField0_ & 0x00000800) == 0x00000800)) { output.writeInt32(12, overallLineHits_); } if (((bitField0_ & 0x00001000) == 0x00001000)) { output.writeInt32(13, overallConditions_); } if (((bitField0_ & 0x00002000) == 0x00002000)) { output.writeInt32(14, overallCoveredConditions_); } if (((bitField0_ & 0x00004000) == 0x00004000)) { com.google.protobuf.GeneratedMessage.writeString(output, 15, highlighting_); } if (((bitField0_ & 0x00008000) == 0x00008000)) { com.google.protobuf.GeneratedMessage.writeString(output, 16, symbols_); } if (getDuplicationList().size() > 0) { output.writeRawVarint32(138); output.writeRawVarint32(duplicationMemoizedSerializedSize); } for (int i = 0; i < duplication_.size(); i++) { output.writeInt32NoTag(duplication_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, line_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(2, source_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(3, scmRevision_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(4, scmAuthor_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(5, scmDate_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(6, utLineHits_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(7, utConditions_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(8, utCoveredConditions_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(9, itLineHits_); } if (((bitField0_ & 0x00000200) == 0x00000200)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(10, itConditions_); } if (((bitField0_ & 0x00000400) == 0x00000400)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(11, itCoveredConditions_); } if (((bitField0_ & 0x00000800) == 0x00000800)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(12, overallLineHits_); } if (((bitField0_ & 0x00001000) == 0x00001000)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(13, overallConditions_); } if (((bitField0_ & 0x00002000) == 0x00002000)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(14, overallCoveredConditions_); } if (((bitField0_ & 0x00004000) == 0x00004000)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(15, highlighting_); } if (((bitField0_ & 0x00008000) == 0x00008000)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(16, symbols_); } { int dataSize = 0; for (int i = 0; i < duplication_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(duplication_.get(i)); } size += dataSize; if (!getDuplicationList().isEmpty()) { size += 2; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } duplicationMemoizedSerializedSize = dataSize; } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } private static final long serialVersionUID = 0L; public static org.sonar.db.protobuf.DbFileSources.Line parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.sonar.db.protobuf.DbFileSources.Line parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.sonar.db.protobuf.DbFileSources.Line parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.sonar.db.protobuf.DbFileSources.Line parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.sonar.db.protobuf.DbFileSources.Line parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.sonar.db.protobuf.DbFileSources.Line parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static org.sonar.db.protobuf.DbFileSources.Line parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.sonar.db.protobuf.DbFileSources.Line parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.sonar.db.protobuf.DbFileSources.Line parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.sonar.db.protobuf.DbFileSources.Line parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.sonar.db.protobuf.DbFileSources.Line prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code org.sonar.server.source.db.Line} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:org.sonar.server.source.db.Line) org.sonar.db.protobuf.DbFileSources.LineOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.sonar.db.protobuf.DbFileSources.internal_static_org_sonar_server_source_db_Line_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.sonar.db.protobuf.DbFileSources.internal_static_org_sonar_server_source_db_Line_fieldAccessorTable .ensureFieldAccessorsInitialized( org.sonar.db.protobuf.DbFileSources.Line.class, org.sonar.db.protobuf.DbFileSources.Line.Builder.class); } // Construct using org.sonar.db.protobuf.DbFileSources.Line.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); line_ = 0; bitField0_ = (bitField0_ & ~0x00000001); source_ = ""; bitField0_ = (bitField0_ & ~0x00000002); scmRevision_ = ""; bitField0_ = (bitField0_ & ~0x00000004); scmAuthor_ = ""; bitField0_ = (bitField0_ & ~0x00000008); scmDate_ = 0L; bitField0_ = (bitField0_ & ~0x00000010); utLineHits_ = 0; bitField0_ = (bitField0_ & ~0x00000020); utConditions_ = 0; bitField0_ = (bitField0_ & ~0x00000040); utCoveredConditions_ = 0; bitField0_ = (bitField0_ & ~0x00000080); itLineHits_ = 0; bitField0_ = (bitField0_ & ~0x00000100); itConditions_ = 0; bitField0_ = (bitField0_ & ~0x00000200); itCoveredConditions_ = 0; bitField0_ = (bitField0_ & ~0x00000400); overallLineHits_ = 0; bitField0_ = (bitField0_ & ~0x00000800); overallConditions_ = 0; bitField0_ = (bitField0_ & ~0x00001000); overallCoveredConditions_ = 0; bitField0_ = (bitField0_ & ~0x00002000); highlighting_ = ""; bitField0_ = (bitField0_ & ~0x00004000); symbols_ = ""; bitField0_ = (bitField0_ & ~0x00008000); duplication_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00010000); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.sonar.db.protobuf.DbFileSources.internal_static_org_sonar_server_source_db_Line_descriptor; } public org.sonar.db.protobuf.DbFileSources.Line getDefaultInstanceForType() { return org.sonar.db.protobuf.DbFileSources.Line.getDefaultInstance(); } public org.sonar.db.protobuf.DbFileSources.Line build() { org.sonar.db.protobuf.DbFileSources.Line result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.sonar.db.protobuf.DbFileSources.Line buildPartial() { org.sonar.db.protobuf.DbFileSources.Line result = new org.sonar.db.protobuf.DbFileSources.Line(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.line_ = line_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.source_ = source_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.scmRevision_ = scmRevision_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.scmAuthor_ = scmAuthor_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.scmDate_ = scmDate_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } result.utLineHits_ = utLineHits_; if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000040; } result.utConditions_ = utConditions_; if (((from_bitField0_ & 0x00000080) == 0x00000080)) { to_bitField0_ |= 0x00000080; } result.utCoveredConditions_ = utCoveredConditions_; if (((from_bitField0_ & 0x00000100) == 0x00000100)) { to_bitField0_ |= 0x00000100; } result.itLineHits_ = itLineHits_; if (((from_bitField0_ & 0x00000200) == 0x00000200)) { to_bitField0_ |= 0x00000200; } result.itConditions_ = itConditions_; if (((from_bitField0_ & 0x00000400) == 0x00000400)) { to_bitField0_ |= 0x00000400; } result.itCoveredConditions_ = itCoveredConditions_; if (((from_bitField0_ & 0x00000800) == 0x00000800)) { to_bitField0_ |= 0x00000800; } result.overallLineHits_ = overallLineHits_; if (((from_bitField0_ & 0x00001000) == 0x00001000)) { to_bitField0_ |= 0x00001000; } result.overallConditions_ = overallConditions_; if (((from_bitField0_ & 0x00002000) == 0x00002000)) { to_bitField0_ |= 0x00002000; } result.overallCoveredConditions_ = overallCoveredConditions_; if (((from_bitField0_ & 0x00004000) == 0x00004000)) { to_bitField0_ |= 0x00004000; } result.highlighting_ = highlighting_; if (((from_bitField0_ & 0x00008000) == 0x00008000)) { to_bitField0_ |= 0x00008000; } result.symbols_ = symbols_; if (((bitField0_ & 0x00010000) == 0x00010000)) { duplication_ = java.util.Collections.unmodifiableList(duplication_); bitField0_ = (bitField0_ & ~0x00010000); } result.duplication_ = duplication_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.sonar.db.protobuf.DbFileSources.Line) { return mergeFrom((org.sonar.db.protobuf.DbFileSources.Line)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.sonar.db.protobuf.DbFileSources.Line other) { if (other == org.sonar.db.protobuf.DbFileSources.Line.getDefaultInstance()) return this; if (other.hasLine()) { setLine(other.getLine()); } if (other.hasSource()) { bitField0_ |= 0x00000002; source_ = other.source_; onChanged(); } if (other.hasScmRevision()) { bitField0_ |= 0x00000004; scmRevision_ = other.scmRevision_; onChanged(); } if (other.hasScmAuthor()) { bitField0_ |= 0x00000008; scmAuthor_ = other.scmAuthor_; onChanged(); } if (other.hasScmDate()) { setScmDate(other.getScmDate()); } if (other.hasUtLineHits()) { setUtLineHits(other.getUtLineHits()); } if (other.hasUtConditions()) { setUtConditions(other.getUtConditions()); } if (other.hasUtCoveredConditions()) { setUtCoveredConditions(other.getUtCoveredConditions()); } if (other.hasItLineHits()) { setItLineHits(other.getItLineHits()); } if (other.hasItConditions()) { setItConditions(other.getItConditions()); } if (other.hasItCoveredConditions()) { setItCoveredConditions(other.getItCoveredConditions()); } if (other.hasOverallLineHits()) { setOverallLineHits(other.getOverallLineHits()); } if (other.hasOverallConditions()) { setOverallConditions(other.getOverallConditions()); } if (other.hasOverallCoveredConditions()) { setOverallCoveredConditions(other.getOverallCoveredConditions()); } if (other.hasHighlighting()) { bitField0_ |= 0x00004000; highlighting_ = other.highlighting_; onChanged(); } if (other.hasSymbols()) { bitField0_ |= 0x00008000; symbols_ = other.symbols_; onChanged(); } if (!other.duplication_.isEmpty()) { if (duplication_.isEmpty()) { duplication_ = other.duplication_; bitField0_ = (bitField0_ & ~0x00010000); } else { ensureDuplicationIsMutable(); duplication_.addAll(other.duplication_); } onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.sonar.db.protobuf.DbFileSources.Line parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.sonar.db.protobuf.DbFileSources.Line) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int line_ ; /** * optional int32 line = 1; */ public boolean hasLine() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional int32 line = 1; */ public int getLine() { return line_; } /** * optional int32 line = 1; */ public Builder setLine(int value) { bitField0_ |= 0x00000001; line_ = value; onChanged(); return this; } /** * optional int32 line = 1; */ public Builder clearLine() { bitField0_ = (bitField0_ & ~0x00000001); line_ = 0; onChanged(); return this; } private java.lang.Object source_ = ""; /** * optional string source = 2; */ public boolean hasSource() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional string source = 2; */ public java.lang.String getSource() { java.lang.Object ref = source_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { source_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string source = 2; */ public com.google.protobuf.ByteString getSourceBytes() { java.lang.Object ref = source_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); source_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string source = 2; */ public Builder setSource( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; source_ = value; onChanged(); return this; } /** * optional string source = 2; */ public Builder clearSource() { bitField0_ = (bitField0_ & ~0x00000002); source_ = getDefaultInstance().getSource(); onChanged(); return this; } /** * optional string source = 2; */ public Builder setSourceBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; source_ = value; onChanged(); return this; } private java.lang.Object scmRevision_ = ""; /** * optional string scm_revision = 3; * *
       * SCM
       * 
*/ public boolean hasScmRevision() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional string scm_revision = 3; * *
       * SCM
       * 
*/ public java.lang.String getScmRevision() { java.lang.Object ref = scmRevision_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { scmRevision_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string scm_revision = 3; * *
       * SCM
       * 
*/ public com.google.protobuf.ByteString getScmRevisionBytes() { java.lang.Object ref = scmRevision_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); scmRevision_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string scm_revision = 3; * *
       * SCM
       * 
*/ public Builder setScmRevision( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; scmRevision_ = value; onChanged(); return this; } /** * optional string scm_revision = 3; * *
       * SCM
       * 
*/ public Builder clearScmRevision() { bitField0_ = (bitField0_ & ~0x00000004); scmRevision_ = getDefaultInstance().getScmRevision(); onChanged(); return this; } /** * optional string scm_revision = 3; * *
       * SCM
       * 
*/ public Builder setScmRevisionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; scmRevision_ = value; onChanged(); return this; } private java.lang.Object scmAuthor_ = ""; /** * optional string scm_author = 4; */ public boolean hasScmAuthor() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional string scm_author = 4; */ public java.lang.String getScmAuthor() { java.lang.Object ref = scmAuthor_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { scmAuthor_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string scm_author = 4; */ public com.google.protobuf.ByteString getScmAuthorBytes() { java.lang.Object ref = scmAuthor_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); scmAuthor_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string scm_author = 4; */ public Builder setScmAuthor( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; scmAuthor_ = value; onChanged(); return this; } /** * optional string scm_author = 4; */ public Builder clearScmAuthor() { bitField0_ = (bitField0_ & ~0x00000008); scmAuthor_ = getDefaultInstance().getScmAuthor(); onChanged(); return this; } /** * optional string scm_author = 4; */ 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; */ public boolean hasScmDate() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional int64 scm_date = 5; */ public long getScmDate() { return scmDate_; } /** * optional int64 scm_date = 5; */ public Builder setScmDate(long value) { bitField0_ |= 0x00000010; scmDate_ = value; onChanged(); return this; } /** * optional int64 scm_date = 5; */ public Builder clearScmDate() { bitField0_ = (bitField0_ & ~0x00000010); scmDate_ = 0L; onChanged(); return this; } private int utLineHits_ ; /** * optional int32 ut_line_hits = 6; * *
       * unit tests
       * 
*/ public boolean hasUtLineHits() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional int32 ut_line_hits = 6; * *
       * unit tests
       * 
*/ public int getUtLineHits() { return utLineHits_; } /** * optional int32 ut_line_hits = 6; * *
       * unit tests
       * 
*/ public Builder setUtLineHits(int value) { bitField0_ |= 0x00000020; utLineHits_ = value; onChanged(); return this; } /** * optional int32 ut_line_hits = 6; * *
       * unit tests
       * 
*/ public Builder clearUtLineHits() { bitField0_ = (bitField0_ & ~0x00000020); utLineHits_ = 0; onChanged(); return this; } private int utConditions_ ; /** * optional int32 ut_conditions = 7; */ public boolean hasUtConditions() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * optional int32 ut_conditions = 7; */ public int getUtConditions() { return utConditions_; } /** * optional int32 ut_conditions = 7; */ public Builder setUtConditions(int value) { bitField0_ |= 0x00000040; utConditions_ = value; onChanged(); return this; } /** * optional int32 ut_conditions = 7; */ public Builder clearUtConditions() { bitField0_ = (bitField0_ & ~0x00000040); utConditions_ = 0; onChanged(); return this; } private int utCoveredConditions_ ; /** * optional int32 ut_covered_conditions = 8; */ public boolean hasUtCoveredConditions() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * optional int32 ut_covered_conditions = 8; */ public int getUtCoveredConditions() { return utCoveredConditions_; } /** * optional int32 ut_covered_conditions = 8; */ public Builder setUtCoveredConditions(int value) { bitField0_ |= 0x00000080; utCoveredConditions_ = value; onChanged(); return this; } /** * optional int32 ut_covered_conditions = 8; */ public Builder clearUtCoveredConditions() { bitField0_ = (bitField0_ & ~0x00000080); utCoveredConditions_ = 0; onChanged(); return this; } private int itLineHits_ ; /** * optional int32 it_line_hits = 9; * *
       * integration tests
       * 
*/ public boolean hasItLineHits() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * optional int32 it_line_hits = 9; * *
       * integration tests
       * 
*/ public int getItLineHits() { return itLineHits_; } /** * optional int32 it_line_hits = 9; * *
       * integration tests
       * 
*/ public Builder setItLineHits(int value) { bitField0_ |= 0x00000100; itLineHits_ = value; onChanged(); return this; } /** * optional int32 it_line_hits = 9; * *
       * integration tests
       * 
*/ public Builder clearItLineHits() { bitField0_ = (bitField0_ & ~0x00000100); itLineHits_ = 0; onChanged(); return this; } private int itConditions_ ; /** * optional int32 it_conditions = 10; */ public boolean hasItConditions() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * optional int32 it_conditions = 10; */ public int getItConditions() { return itConditions_; } /** * optional int32 it_conditions = 10; */ public Builder setItConditions(int value) { bitField0_ |= 0x00000200; itConditions_ = value; onChanged(); return this; } /** * optional int32 it_conditions = 10; */ public Builder clearItConditions() { bitField0_ = (bitField0_ & ~0x00000200); itConditions_ = 0; onChanged(); return this; } private int itCoveredConditions_ ; /** * optional int32 it_covered_conditions = 11; */ public boolean hasItCoveredConditions() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** * optional int32 it_covered_conditions = 11; */ public int getItCoveredConditions() { return itCoveredConditions_; } /** * optional int32 it_covered_conditions = 11; */ public Builder setItCoveredConditions(int value) { bitField0_ |= 0x00000400; itCoveredConditions_ = value; onChanged(); return this; } /** * optional int32 it_covered_conditions = 11; */ public Builder clearItCoveredConditions() { bitField0_ = (bitField0_ & ~0x00000400); itCoveredConditions_ = 0; onChanged(); return this; } private int overallLineHits_ ; /** * optional int32 overall_line_hits = 12; * *
       * overall tests
       * 
*/ public boolean hasOverallLineHits() { return ((bitField0_ & 0x00000800) == 0x00000800); } /** * optional int32 overall_line_hits = 12; * *
       * overall tests
       * 
*/ public int getOverallLineHits() { return overallLineHits_; } /** * optional int32 overall_line_hits = 12; * *
       * overall tests
       * 
*/ public Builder setOverallLineHits(int value) { bitField0_ |= 0x00000800; overallLineHits_ = value; onChanged(); return this; } /** * optional int32 overall_line_hits = 12; * *
       * overall tests
       * 
*/ public Builder clearOverallLineHits() { bitField0_ = (bitField0_ & ~0x00000800); overallLineHits_ = 0; onChanged(); return this; } private int overallConditions_ ; /** * optional int32 overall_conditions = 13; */ public boolean hasOverallConditions() { return ((bitField0_ & 0x00001000) == 0x00001000); } /** * optional int32 overall_conditions = 13; */ public int getOverallConditions() { return overallConditions_; } /** * optional int32 overall_conditions = 13; */ public Builder setOverallConditions(int value) { bitField0_ |= 0x00001000; overallConditions_ = value; onChanged(); return this; } /** * optional int32 overall_conditions = 13; */ public Builder clearOverallConditions() { bitField0_ = (bitField0_ & ~0x00001000); overallConditions_ = 0; onChanged(); return this; } private int overallCoveredConditions_ ; /** * optional int32 overall_covered_conditions = 14; */ public boolean hasOverallCoveredConditions() { return ((bitField0_ & 0x00002000) == 0x00002000); } /** * optional int32 overall_covered_conditions = 14; */ public int getOverallCoveredConditions() { return overallCoveredConditions_; } /** * optional int32 overall_covered_conditions = 14; */ public Builder setOverallCoveredConditions(int value) { bitField0_ |= 0x00002000; overallCoveredConditions_ = value; onChanged(); return this; } /** * optional int32 overall_covered_conditions = 14; */ public Builder clearOverallCoveredConditions() { bitField0_ = (bitField0_ & ~0x00002000); overallCoveredConditions_ = 0; onChanged(); return this; } private java.lang.Object highlighting_ = ""; /** * optional string highlighting = 15; */ public boolean hasHighlighting() { return ((bitField0_ & 0x00004000) == 0x00004000); } /** * optional string highlighting = 15; */ public java.lang.String getHighlighting() { java.lang.Object ref = highlighting_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { highlighting_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string highlighting = 15; */ public com.google.protobuf.ByteString getHighlightingBytes() { java.lang.Object ref = highlighting_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); highlighting_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string highlighting = 15; */ public Builder setHighlighting( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00004000; highlighting_ = value; onChanged(); return this; } /** * optional string highlighting = 15; */ public Builder clearHighlighting() { bitField0_ = (bitField0_ & ~0x00004000); highlighting_ = getDefaultInstance().getHighlighting(); onChanged(); return this; } /** * optional string highlighting = 15; */ public Builder setHighlightingBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00004000; highlighting_ = value; onChanged(); return this; } private java.lang.Object symbols_ = ""; /** * optional string symbols = 16; */ public boolean hasSymbols() { return ((bitField0_ & 0x00008000) == 0x00008000); } /** * optional string symbols = 16; */ public java.lang.String getSymbols() { java.lang.Object ref = symbols_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { symbols_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string symbols = 16; */ public com.google.protobuf.ByteString getSymbolsBytes() { java.lang.Object ref = symbols_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); symbols_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string symbols = 16; */ public Builder setSymbols( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00008000; symbols_ = value; onChanged(); return this; } /** * optional string symbols = 16; */ public Builder clearSymbols() { bitField0_ = (bitField0_ & ~0x00008000); symbols_ = getDefaultInstance().getSymbols(); onChanged(); return this; } /** * optional string symbols = 16; */ public Builder setSymbolsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00008000; symbols_ = value; onChanged(); return this; } private java.util.List duplication_ = java.util.Collections.emptyList(); private void ensureDuplicationIsMutable() { if (!((bitField0_ & 0x00010000) == 0x00010000)) { duplication_ = new java.util.ArrayList(duplication_); bitField0_ |= 0x00010000; } } /** * repeated int32 duplication = 17 [packed = true]; */ public java.util.List getDuplicationList() { return java.util.Collections.unmodifiableList(duplication_); } /** * repeated int32 duplication = 17 [packed = true]; */ public int getDuplicationCount() { return duplication_.size(); } /** * repeated int32 duplication = 17 [packed = true]; */ public int getDuplication(int index) { return duplication_.get(index); } /** * repeated int32 duplication = 17 [packed = true]; */ public Builder setDuplication( int index, int value) { ensureDuplicationIsMutable(); duplication_.set(index, value); onChanged(); return this; } /** * repeated int32 duplication = 17 [packed = true]; */ public Builder addDuplication(int value) { ensureDuplicationIsMutable(); duplication_.add(value); onChanged(); return this; } /** * repeated int32 duplication = 17 [packed = true]; */ public Builder addAllDuplication( java.lang.Iterable values) { ensureDuplicationIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, duplication_); onChanged(); return this; } /** * repeated int32 duplication = 17 [packed = true]; */ public Builder clearDuplication() { duplication_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00010000); onChanged(); return this; } // @@protoc_insertion_point(builder_scope:org.sonar.server.source.db.Line) } // @@protoc_insertion_point(class_scope:org.sonar.server.source.db.Line) private static final org.sonar.db.protobuf.DbFileSources.Line DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.sonar.db.protobuf.DbFileSources.Line(); } public static org.sonar.db.protobuf.DbFileSources.Line getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Line parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { try { return new Line(input, extensionRegistry); } catch (RuntimeException e) { if (e.getCause() instanceof com.google.protobuf.InvalidProtocolBufferException) { throw (com.google.protobuf.InvalidProtocolBufferException) e.getCause(); } throw e; } } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.sonar.db.protobuf.DbFileSources.Line getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DataOrBuilder extends // @@protoc_insertion_point(interface_extends:org.sonar.server.source.db.Data) com.google.protobuf.MessageOrBuilder { /** * repeated .org.sonar.server.source.db.Line lines = 1; */ java.util.List getLinesList(); /** * repeated .org.sonar.server.source.db.Line lines = 1; */ org.sonar.db.protobuf.DbFileSources.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 getLinesOrBuilderList(); /** * repeated .org.sonar.server.source.db.Line lines = 1; */ org.sonar.db.protobuf.DbFileSources.LineOrBuilder getLinesOrBuilder( int index); } /** * Protobuf type {@code org.sonar.server.source.db.Data} * *
   * TODO should be dropped as it prevents streaming
   * 
*/ public static final class Data extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:org.sonar.server.source.db.Data) DataOrBuilder { // Use Data.newBuilder() to construct. private Data(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Data() { lines_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Data( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) { this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { lines_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } lines_.add(input.readMessage(org.sonar.db.protobuf.DbFileSources.Line.parser(), extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw new RuntimeException(e.setUnfinishedMessage(this)); } catch (java.io.IOException e) { throw new RuntimeException( new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this)); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { lines_ = java.util.Collections.unmodifiableList(lines_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.sonar.db.protobuf.DbFileSources.internal_static_org_sonar_server_source_db_Data_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.sonar.db.protobuf.DbFileSources.internal_static_org_sonar_server_source_db_Data_fieldAccessorTable .ensureFieldAccessorsInitialized( org.sonar.db.protobuf.DbFileSources.Data.class, org.sonar.db.protobuf.DbFileSources.Data.Builder.class); } public static final int LINES_FIELD_NUMBER = 1; private java.util.List lines_; /** * repeated .org.sonar.server.source.db.Line lines = 1; */ public java.util.List getLinesList() { return lines_; } /** * repeated .org.sonar.server.source.db.Line lines = 1; */ public java.util.List getLinesOrBuilderList() { return lines_; } /** * repeated .org.sonar.server.source.db.Line lines = 1; */ public int getLinesCount() { return lines_.size(); } /** * repeated .org.sonar.server.source.db.Line lines = 1; */ public org.sonar.db.protobuf.DbFileSources.Line getLines(int index) { return lines_.get(index); } /** * repeated .org.sonar.server.source.db.Line lines = 1; */ public org.sonar.db.protobuf.DbFileSources.LineOrBuilder getLinesOrBuilder( int index) { return lines_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < lines_.size(); i++) { output.writeMessage(1, lines_.get(i)); } unknownFields.writeTo(output); } 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; } private static final long serialVersionUID = 0L; public static org.sonar.db.protobuf.DbFileSources.Data parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.sonar.db.protobuf.DbFileSources.Data parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.sonar.db.protobuf.DbFileSources.Data parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.sonar.db.protobuf.DbFileSources.Data parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.sonar.db.protobuf.DbFileSources.Data parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.sonar.db.protobuf.DbFileSources.Data parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static org.sonar.db.protobuf.DbFileSources.Data parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.sonar.db.protobuf.DbFileSources.Data parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.sonar.db.protobuf.DbFileSources.Data parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.sonar.db.protobuf.DbFileSources.Data parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.sonar.db.protobuf.DbFileSources.Data prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code org.sonar.server.source.db.Data} * *
     * TODO should be dropped as it prevents streaming
     * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:org.sonar.server.source.db.Data) org.sonar.db.protobuf.DbFileSources.DataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.sonar.db.protobuf.DbFileSources.internal_static_org_sonar_server_source_db_Data_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.sonar.db.protobuf.DbFileSources.internal_static_org_sonar_server_source_db_Data_fieldAccessorTable .ensureFieldAccessorsInitialized( org.sonar.db.protobuf.DbFileSources.Data.class, org.sonar.db.protobuf.DbFileSources.Data.Builder.class); } // Construct using org.sonar.db.protobuf.DbFileSources.Data.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getLinesFieldBuilder(); } } public Builder clear() { super.clear(); if (linesBuilder_ == null) { lines_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { linesBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.sonar.db.protobuf.DbFileSources.internal_static_org_sonar_server_source_db_Data_descriptor; } public org.sonar.db.protobuf.DbFileSources.Data getDefaultInstanceForType() { return org.sonar.db.protobuf.DbFileSources.Data.getDefaultInstance(); } public org.sonar.db.protobuf.DbFileSources.Data build() { org.sonar.db.protobuf.DbFileSources.Data result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.sonar.db.protobuf.DbFileSources.Data buildPartial() { org.sonar.db.protobuf.DbFileSources.Data result = new org.sonar.db.protobuf.DbFileSources.Data(this); int from_bitField0_ = bitField0_; if (linesBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { lines_ = java.util.Collections.unmodifiableList(lines_); bitField0_ = (bitField0_ & ~0x00000001); } result.lines_ = lines_; } else { result.lines_ = linesBuilder_.build(); } onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.sonar.db.protobuf.DbFileSources.Data) { return mergeFrom((org.sonar.db.protobuf.DbFileSources.Data)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.sonar.db.protobuf.DbFileSources.Data other) { if (other == org.sonar.db.protobuf.DbFileSources.Data.getDefaultInstance()) return this; if (linesBuilder_ == null) { if (!other.lines_.isEmpty()) { if (lines_.isEmpty()) { lines_ = other.lines_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureLinesIsMutable(); lines_.addAll(other.lines_); } onChanged(); } } else { if (!other.lines_.isEmpty()) { if (linesBuilder_.isEmpty()) { linesBuilder_.dispose(); linesBuilder_ = null; lines_ = other.lines_; bitField0_ = (bitField0_ & ~0x00000001); linesBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getLinesFieldBuilder() : null; } else { linesBuilder_.addAllMessages(other.lines_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.sonar.db.protobuf.DbFileSources.Data parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.sonar.db.protobuf.DbFileSources.Data) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List lines_ = java.util.Collections.emptyList(); private void ensureLinesIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { lines_ = new java.util.ArrayList(lines_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilder< org.sonar.db.protobuf.DbFileSources.Line, org.sonar.db.protobuf.DbFileSources.Line.Builder, org.sonar.db.protobuf.DbFileSources.LineOrBuilder> linesBuilder_; /** * repeated .org.sonar.server.source.db.Line lines = 1; */ public java.util.List getLinesList() { if (linesBuilder_ == null) { return java.util.Collections.unmodifiableList(lines_); } else { return linesBuilder_.getMessageList(); } } /** * repeated .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 org.sonar.db.protobuf.DbFileSources.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, org.sonar.db.protobuf.DbFileSources.Line value) { if (linesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLinesIsMutable(); lines_.set(index, value); onChanged(); } else { linesBuilder_.setMessage(index, value); } return this; } /** * repeated .org.sonar.server.source.db.Line lines = 1; */ public Builder setLines( int index, org.sonar.db.protobuf.DbFileSources.Line.Builder builderForValue) { if (linesBuilder_ == null) { ensureLinesIsMutable(); lines_.set(index, builderForValue.build()); onChanged(); } else { linesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .org.sonar.server.source.db.Line lines = 1; */ public Builder addLines(org.sonar.db.protobuf.DbFileSources.Line value) { if (linesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLinesIsMutable(); lines_.add(value); onChanged(); } else { linesBuilder_.addMessage(value); } return this; } /** * repeated .org.sonar.server.source.db.Line lines = 1; */ public Builder addLines( int index, org.sonar.db.protobuf.DbFileSources.Line value) { if (linesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLinesIsMutable(); lines_.add(index, value); onChanged(); } else { linesBuilder_.addMessage(index, value); } return this; } /** * repeated .org.sonar.server.source.db.Line lines = 1; */ public Builder addLines( org.sonar.db.protobuf.DbFileSources.Line.Builder builderForValue) { if (linesBuilder_ == null) { ensureLinesIsMutable(); lines_.add(builderForValue.build()); onChanged(); } else { linesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .org.sonar.server.source.db.Line lines = 1; */ public Builder addLines( int index, org.sonar.db.protobuf.DbFileSources.Line.Builder builderForValue) { if (linesBuilder_ == null) { ensureLinesIsMutable(); lines_.add(index, builderForValue.build()); onChanged(); } else { linesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .org.sonar.server.source.db.Line lines = 1; */ public Builder addAllLines( java.lang.Iterable 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 org.sonar.db.protobuf.DbFileSources.Line.Builder getLinesBuilder( int index) { return getLinesFieldBuilder().getBuilder(index); } /** * repeated .org.sonar.server.source.db.Line lines = 1; */ public org.sonar.db.protobuf.DbFileSources.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; */ public java.util.List getLinesOrBuilderList() { if (linesBuilder_ != null) { return linesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(lines_); } } /** * repeated .org.sonar.server.source.db.Line lines = 1; */ public org.sonar.db.protobuf.DbFileSources.Line.Builder addLinesBuilder() { return getLinesFieldBuilder().addBuilder( org.sonar.db.protobuf.DbFileSources.Line.getDefaultInstance()); } /** * repeated .org.sonar.server.source.db.Line lines = 1; */ public org.sonar.db.protobuf.DbFileSources.Line.Builder addLinesBuilder( int index) { return getLinesFieldBuilder().addBuilder( index, org.sonar.db.protobuf.DbFileSources.Line.getDefaultInstance()); } /** * repeated .org.sonar.server.source.db.Line lines = 1; */ public java.util.List getLinesBuilderList() { return getLinesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< org.sonar.db.protobuf.DbFileSources.Line, org.sonar.db.protobuf.DbFileSources.Line.Builder, org.sonar.db.protobuf.DbFileSources.LineOrBuilder> getLinesFieldBuilder() { if (linesBuilder_ == null) { linesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< org.sonar.db.protobuf.DbFileSources.Line, org.sonar.db.protobuf.DbFileSources.Line.Builder, org.sonar.db.protobuf.DbFileSources.LineOrBuilder>( lines_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); lines_ = null; } return linesBuilder_; } // @@protoc_insertion_point(builder_scope:org.sonar.server.source.db.Data) } // @@protoc_insertion_point(class_scope:org.sonar.server.source.db.Data) private static final org.sonar.db.protobuf.DbFileSources.Data DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.sonar.db.protobuf.DbFileSources.Data(); } public static org.sonar.db.protobuf.DbFileSources.Data getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Data parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { try { return new Data(input, extensionRegistry); } catch (RuntimeException e) { if (e.getCause() instanceof com.google.protobuf.InvalidProtocolBufferException) { throw (com.google.protobuf.InvalidProtocolBufferException) e.getCause(); } throw e; } } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.sonar.db.protobuf.DbFileSources.Data getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TestOrBuilder extends // @@protoc_insertion_point(interface_extends:org.sonar.server.source.db.Test) com.google.protobuf.MessageOrBuilder { /** * optional string uuid = 1; */ boolean hasUuid(); /** * optional string uuid = 1; */ java.lang.String getUuid(); /** * optional string uuid = 1; */ com.google.protobuf.ByteString getUuidBytes(); /** * optional string name = 2; */ boolean hasName(); /** * optional string name = 2; */ java.lang.String getName(); /** * optional string name = 2; */ com.google.protobuf.ByteString getNameBytes(); /** * optional .org.sonar.server.source.db.Test.TestStatus status = 3; */ boolean hasStatus(); /** * optional .org.sonar.server.source.db.Test.TestStatus status = 3; */ org.sonar.db.protobuf.DbFileSources.Test.TestStatus getStatus(); /** * optional int64 execution_time_ms = 4; */ boolean hasExecutionTimeMs(); /** * optional int64 execution_time_ms = 4; */ long getExecutionTimeMs(); /** * optional string stacktrace = 5; */ boolean hasStacktrace(); /** * optional string stacktrace = 5; */ java.lang.String getStacktrace(); /** * optional string stacktrace = 5; */ com.google.protobuf.ByteString getStacktraceBytes(); /** * optional string msg = 6; */ boolean hasMsg(); /** * optional string msg = 6; */ java.lang.String getMsg(); /** * optional string msg = 6; */ com.google.protobuf.ByteString getMsgBytes(); /** * repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7; */ java.util.List getCoveredFileList(); /** * repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7; */ org.sonar.db.protobuf.DbFileSources.Test.CoveredFile getCoveredFile(int index); /** * repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7; */ int getCoveredFileCount(); /** * repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7; */ java.util.List getCoveredFileOrBuilderList(); /** * repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7; */ org.sonar.db.protobuf.DbFileSources.Test.CoveredFileOrBuilder getCoveredFileOrBuilder( int index); } /** * Protobuf type {@code org.sonar.server.source.db.Test} */ public static final class Test extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:org.sonar.server.source.db.Test) TestOrBuilder { // Use Test.newBuilder() to construct. private Test(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Test() { uuid_ = ""; name_ = ""; status_ = 1; executionTimeMs_ = 0L; stacktrace_ = ""; msg_ = ""; coveredFile_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Test( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) { this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; uuid_ = bs; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; name_ = bs; break; } case 24: { int rawValue = input.readEnum(); org.sonar.db.protobuf.DbFileSources.Test.TestStatus value = org.sonar.db.protobuf.DbFileSources.Test.TestStatus.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(3, rawValue); } else { bitField0_ |= 0x00000004; status_ = rawValue; } break; } case 32: { bitField0_ |= 0x00000008; executionTimeMs_ = input.readInt64(); break; } case 42: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000010; stacktrace_ = bs; break; } case 50: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000020; msg_ = bs; break; } case 58: { if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { coveredFile_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000040; } coveredFile_.add(input.readMessage(org.sonar.db.protobuf.DbFileSources.Test.CoveredFile.parser(), extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw new RuntimeException(e.setUnfinishedMessage(this)); } catch (java.io.IOException e) { throw new RuntimeException( new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this)); } finally { if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) { coveredFile_ = java.util.Collections.unmodifiableList(coveredFile_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.sonar.db.protobuf.DbFileSources.internal_static_org_sonar_server_source_db_Test_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.sonar.db.protobuf.DbFileSources.internal_static_org_sonar_server_source_db_Test_fieldAccessorTable .ensureFieldAccessorsInitialized( org.sonar.db.protobuf.DbFileSources.Test.class, org.sonar.db.protobuf.DbFileSources.Test.Builder.class); } /** * Protobuf enum {@code org.sonar.server.source.db.Test.TestStatus} */ public enum TestStatus implements com.google.protobuf.ProtocolMessageEnum { /** * OK = 1; */ OK(0, 1), /** * FAILURE = 2; */ FAILURE(1, 2), /** * ERROR = 3; */ ERROR(2, 3), /** * SKIPPED = 4; */ SKIPPED(3, 4), ; /** * OK = 1; */ public static final int OK_VALUE = 1; /** * FAILURE = 2; */ public static final int FAILURE_VALUE = 2; /** * ERROR = 3; */ public static final int ERROR_VALUE = 3; /** * SKIPPED = 4; */ public static final int SKIPPED_VALUE = 4; public final int getNumber() { return value; } public static TestStatus valueOf(int value) { switch (value) { case 1: return OK; case 2: return FAILURE; case 3: return ERROR; case 4: return SKIPPED; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< TestStatus> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public TestStatus findValueByNumber(int number) { return TestStatus.valueOf(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(index); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return org.sonar.db.protobuf.DbFileSources.Test.getDescriptor().getEnumTypes().get(0); } private static final TestStatus[] VALUES = values(); public static TestStatus valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int index; private final int value; private TestStatus(int index, int value) { this.index = index; this.value = value; } // @@protoc_insertion_point(enum_scope:org.sonar.server.source.db.Test.TestStatus) } public interface CoveredFileOrBuilder extends // @@protoc_insertion_point(interface_extends:org.sonar.server.source.db.Test.CoveredFile) com.google.protobuf.MessageOrBuilder { /** * optional string file_uuid = 1; */ boolean hasFileUuid(); /** * optional string file_uuid = 1; */ java.lang.String getFileUuid(); /** * optional string file_uuid = 1; */ com.google.protobuf.ByteString getFileUuidBytes(); /** * repeated int32 covered_line = 2 [packed = true]; */ java.util.List getCoveredLineList(); /** * repeated int32 covered_line = 2 [packed = true]; */ int getCoveredLineCount(); /** * repeated int32 covered_line = 2 [packed = true]; */ int getCoveredLine(int index); } /** * Protobuf type {@code org.sonar.server.source.db.Test.CoveredFile} */ public static final class CoveredFile extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:org.sonar.server.source.db.Test.CoveredFile) CoveredFileOrBuilder { // Use CoveredFile.newBuilder() to construct. private CoveredFile(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private CoveredFile() { fileUuid_ = ""; coveredLine_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CoveredFile( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) { this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; fileUuid_ = bs; break; } case 16: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { coveredLine_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } coveredLine_.add(input.readInt32()); break; } case 18: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000002) == 0x00000002) && input.getBytesUntilLimit() > 0) { coveredLine_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } while (input.getBytesUntilLimit() > 0) { coveredLine_.add(input.readInt32()); } input.popLimit(limit); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw new RuntimeException(e.setUnfinishedMessage(this)); } catch (java.io.IOException e) { throw new RuntimeException( new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this)); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { coveredLine_ = java.util.Collections.unmodifiableList(coveredLine_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.sonar.db.protobuf.DbFileSources.internal_static_org_sonar_server_source_db_Test_CoveredFile_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.sonar.db.protobuf.DbFileSources.internal_static_org_sonar_server_source_db_Test_CoveredFile_fieldAccessorTable .ensureFieldAccessorsInitialized( org.sonar.db.protobuf.DbFileSources.Test.CoveredFile.class, org.sonar.db.protobuf.DbFileSources.Test.CoveredFile.Builder.class); } private int bitField0_; public static final int FILE_UUID_FIELD_NUMBER = 1; private volatile java.lang.Object fileUuid_; /** * optional string file_uuid = 1; */ public boolean hasFileUuid() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional string file_uuid = 1; */ public java.lang.String getFileUuid() { java.lang.Object ref = fileUuid_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { fileUuid_ = s; } return s; } } /** * optional string file_uuid = 1; */ public com.google.protobuf.ByteString getFileUuidBytes() { java.lang.Object ref = fileUuid_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); fileUuid_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int COVERED_LINE_FIELD_NUMBER = 2; private java.util.List coveredLine_; /** * repeated int32 covered_line = 2 [packed = true]; */ public java.util.List getCoveredLineList() { return coveredLine_; } /** * repeated int32 covered_line = 2 [packed = true]; */ public int getCoveredLineCount() { return coveredLine_.size(); } /** * repeated int32 covered_line = 2 [packed = true]; */ public int getCoveredLine(int index) { return coveredLine_.get(index); } private int coveredLineMemoizedSerializedSize = -1; private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { com.google.protobuf.GeneratedMessage.writeString(output, 1, fileUuid_); } if (getCoveredLineList().size() > 0) { output.writeRawVarint32(18); output.writeRawVarint32(coveredLineMemoizedSerializedSize); } for (int i = 0; i < coveredLine_.size(); i++) { output.writeInt32NoTag(coveredLine_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(1, fileUuid_); } { int dataSize = 0; for (int i = 0; i < coveredLine_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(coveredLine_.get(i)); } size += dataSize; if (!getCoveredLineList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } coveredLineMemoizedSerializedSize = dataSize; } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } private static final long serialVersionUID = 0L; public static org.sonar.db.protobuf.DbFileSources.Test.CoveredFile parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.sonar.db.protobuf.DbFileSources.Test.CoveredFile parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.sonar.db.protobuf.DbFileSources.Test.CoveredFile parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.sonar.db.protobuf.DbFileSources.Test.CoveredFile parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.sonar.db.protobuf.DbFileSources.Test.CoveredFile parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.sonar.db.protobuf.DbFileSources.Test.CoveredFile parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static org.sonar.db.protobuf.DbFileSources.Test.CoveredFile parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.sonar.db.protobuf.DbFileSources.Test.CoveredFile parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.sonar.db.protobuf.DbFileSources.Test.CoveredFile parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.sonar.db.protobuf.DbFileSources.Test.CoveredFile parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.sonar.db.protobuf.DbFileSources.Test.CoveredFile prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code org.sonar.server.source.db.Test.CoveredFile} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:org.sonar.server.source.db.Test.CoveredFile) org.sonar.db.protobuf.DbFileSources.Test.CoveredFileOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.sonar.db.protobuf.DbFileSources.internal_static_org_sonar_server_source_db_Test_CoveredFile_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.sonar.db.protobuf.DbFileSources.internal_static_org_sonar_server_source_db_Test_CoveredFile_fieldAccessorTable .ensureFieldAccessorsInitialized( org.sonar.db.protobuf.DbFileSources.Test.CoveredFile.class, org.sonar.db.protobuf.DbFileSources.Test.CoveredFile.Builder.class); } // Construct using org.sonar.db.protobuf.DbFileSources.Test.CoveredFile.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); fileUuid_ = ""; bitField0_ = (bitField0_ & ~0x00000001); coveredLine_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.sonar.db.protobuf.DbFileSources.internal_static_org_sonar_server_source_db_Test_CoveredFile_descriptor; } public org.sonar.db.protobuf.DbFileSources.Test.CoveredFile getDefaultInstanceForType() { return org.sonar.db.protobuf.DbFileSources.Test.CoveredFile.getDefaultInstance(); } public org.sonar.db.protobuf.DbFileSources.Test.CoveredFile build() { org.sonar.db.protobuf.DbFileSources.Test.CoveredFile result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.sonar.db.protobuf.DbFileSources.Test.CoveredFile buildPartial() { org.sonar.db.protobuf.DbFileSources.Test.CoveredFile result = new org.sonar.db.protobuf.DbFileSources.Test.CoveredFile(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.fileUuid_ = fileUuid_; if (((bitField0_ & 0x00000002) == 0x00000002)) { coveredLine_ = java.util.Collections.unmodifiableList(coveredLine_); bitField0_ = (bitField0_ & ~0x00000002); } result.coveredLine_ = coveredLine_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.sonar.db.protobuf.DbFileSources.Test.CoveredFile) { return mergeFrom((org.sonar.db.protobuf.DbFileSources.Test.CoveredFile)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.sonar.db.protobuf.DbFileSources.Test.CoveredFile other) { if (other == org.sonar.db.protobuf.DbFileSources.Test.CoveredFile.getDefaultInstance()) return this; if (other.hasFileUuid()) { bitField0_ |= 0x00000001; fileUuid_ = other.fileUuid_; onChanged(); } if (!other.coveredLine_.isEmpty()) { if (coveredLine_.isEmpty()) { coveredLine_ = other.coveredLine_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureCoveredLineIsMutable(); coveredLine_.addAll(other.coveredLine_); } onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.sonar.db.protobuf.DbFileSources.Test.CoveredFile parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.sonar.db.protobuf.DbFileSources.Test.CoveredFile) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object fileUuid_ = ""; /** * optional string file_uuid = 1; */ public boolean hasFileUuid() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional string file_uuid = 1; */ public java.lang.String getFileUuid() { java.lang.Object ref = fileUuid_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { fileUuid_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string file_uuid = 1; */ public com.google.protobuf.ByteString getFileUuidBytes() { java.lang.Object ref = fileUuid_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); fileUuid_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string file_uuid = 1; */ public Builder setFileUuid( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; fileUuid_ = value; onChanged(); return this; } /** * optional string file_uuid = 1; */ public Builder clearFileUuid() { bitField0_ = (bitField0_ & ~0x00000001); fileUuid_ = getDefaultInstance().getFileUuid(); onChanged(); return this; } /** * optional string file_uuid = 1; */ public Builder setFileUuidBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; fileUuid_ = value; onChanged(); return this; } private java.util.List coveredLine_ = java.util.Collections.emptyList(); private void ensureCoveredLineIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { coveredLine_ = new java.util.ArrayList(coveredLine_); bitField0_ |= 0x00000002; } } /** * repeated int32 covered_line = 2 [packed = true]; */ public java.util.List getCoveredLineList() { return java.util.Collections.unmodifiableList(coveredLine_); } /** * repeated int32 covered_line = 2 [packed = true]; */ public int getCoveredLineCount() { return coveredLine_.size(); } /** * repeated int32 covered_line = 2 [packed = true]; */ public int getCoveredLine(int index) { return coveredLine_.get(index); } /** * repeated int32 covered_line = 2 [packed = true]; */ public Builder setCoveredLine( int index, int value) { ensureCoveredLineIsMutable(); coveredLine_.set(index, value); onChanged(); return this; } /** * repeated int32 covered_line = 2 [packed = true]; */ public Builder addCoveredLine(int value) { ensureCoveredLineIsMutable(); coveredLine_.add(value); onChanged(); return this; } /** * repeated int32 covered_line = 2 [packed = true]; */ public Builder addAllCoveredLine( java.lang.Iterable values) { ensureCoveredLineIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, coveredLine_); onChanged(); return this; } /** * repeated int32 covered_line = 2 [packed = true]; */ public Builder clearCoveredLine() { coveredLine_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } // @@protoc_insertion_point(builder_scope:org.sonar.server.source.db.Test.CoveredFile) } // @@protoc_insertion_point(class_scope:org.sonar.server.source.db.Test.CoveredFile) private static final org.sonar.db.protobuf.DbFileSources.Test.CoveredFile DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.sonar.db.protobuf.DbFileSources.Test.CoveredFile(); } public static org.sonar.db.protobuf.DbFileSources.Test.CoveredFile getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public CoveredFile parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { try { return new CoveredFile(input, extensionRegistry); } catch (RuntimeException e) { if (e.getCause() instanceof com.google.protobuf.InvalidProtocolBufferException) { throw (com.google.protobuf.InvalidProtocolBufferException) e.getCause(); } throw e; } } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.sonar.db.protobuf.DbFileSources.Test.CoveredFile getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int UUID_FIELD_NUMBER = 1; private volatile java.lang.Object uuid_; /** * optional string uuid = 1; */ public boolean hasUuid() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional string uuid = 1; */ public java.lang.String getUuid() { java.lang.Object ref = uuid_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { uuid_ = s; } return s; } } /** * optional string uuid = 1; */ public com.google.protobuf.ByteString getUuidBytes() { java.lang.Object ref = uuid_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); uuid_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int NAME_FIELD_NUMBER = 2; private volatile java.lang.Object name_; /** * optional string name = 2; */ public boolean hasName() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional string name = 2; */ public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { name_ = s; } return s; } } /** * optional string name = 2; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int STATUS_FIELD_NUMBER = 3; private int status_; /** * optional .org.sonar.server.source.db.Test.TestStatus status = 3; */ public boolean hasStatus() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional .org.sonar.server.source.db.Test.TestStatus status = 3; */ public org.sonar.db.protobuf.DbFileSources.Test.TestStatus getStatus() { org.sonar.db.protobuf.DbFileSources.Test.TestStatus result = org.sonar.db.protobuf.DbFileSources.Test.TestStatus.valueOf(status_); return result == null ? org.sonar.db.protobuf.DbFileSources.Test.TestStatus.OK : result; } public static final int EXECUTION_TIME_MS_FIELD_NUMBER = 4; private long executionTimeMs_; /** * optional int64 execution_time_ms = 4; */ public boolean hasExecutionTimeMs() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional int64 execution_time_ms = 4; */ public long getExecutionTimeMs() { return executionTimeMs_; } public static final int STACKTRACE_FIELD_NUMBER = 5; private volatile java.lang.Object stacktrace_; /** * optional string stacktrace = 5; */ public boolean hasStacktrace() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional string stacktrace = 5; */ public java.lang.String getStacktrace() { java.lang.Object ref = stacktrace_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { stacktrace_ = s; } return s; } } /** * optional string stacktrace = 5; */ public com.google.protobuf.ByteString getStacktraceBytes() { java.lang.Object ref = stacktrace_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); stacktrace_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int MSG_FIELD_NUMBER = 6; private volatile java.lang.Object msg_; /** * optional string msg = 6; */ public boolean hasMsg() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional string msg = 6; */ public java.lang.String getMsg() { java.lang.Object ref = msg_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { msg_ = s; } return s; } } /** * optional string msg = 6; */ public com.google.protobuf.ByteString getMsgBytes() { java.lang.Object ref = msg_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); msg_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int COVERED_FILE_FIELD_NUMBER = 7; private java.util.List coveredFile_; /** * repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7; */ public java.util.List getCoveredFileList() { return coveredFile_; } /** * repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7; */ public java.util.List getCoveredFileOrBuilderList() { return coveredFile_; } /** * repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7; */ public int getCoveredFileCount() { return coveredFile_.size(); } /** * repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7; */ public org.sonar.db.protobuf.DbFileSources.Test.CoveredFile getCoveredFile(int index) { return coveredFile_.get(index); } /** * repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7; */ public org.sonar.db.protobuf.DbFileSources.Test.CoveredFileOrBuilder getCoveredFileOrBuilder( int index) { return coveredFile_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { com.google.protobuf.GeneratedMessage.writeString(output, 1, uuid_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessage.writeString(output, 2, name_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeEnum(3, status_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeInt64(4, executionTimeMs_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { com.google.protobuf.GeneratedMessage.writeString(output, 5, stacktrace_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { com.google.protobuf.GeneratedMessage.writeString(output, 6, msg_); } for (int i = 0; i < coveredFile_.size(); i++) { output.writeMessage(7, coveredFile_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(1, uuid_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(2, name_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, status_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(4, executionTimeMs_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(5, stacktrace_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(6, msg_); } for (int i = 0; i < coveredFile_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, coveredFile_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } private static final long serialVersionUID = 0L; public static org.sonar.db.protobuf.DbFileSources.Test parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.sonar.db.protobuf.DbFileSources.Test parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.sonar.db.protobuf.DbFileSources.Test parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.sonar.db.protobuf.DbFileSources.Test parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.sonar.db.protobuf.DbFileSources.Test parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.sonar.db.protobuf.DbFileSources.Test parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static org.sonar.db.protobuf.DbFileSources.Test parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.sonar.db.protobuf.DbFileSources.Test parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.sonar.db.protobuf.DbFileSources.Test parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.sonar.db.protobuf.DbFileSources.Test parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.sonar.db.protobuf.DbFileSources.Test prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code org.sonar.server.source.db.Test} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:org.sonar.server.source.db.Test) org.sonar.db.protobuf.DbFileSources.TestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.sonar.db.protobuf.DbFileSources.internal_static_org_sonar_server_source_db_Test_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.sonar.db.protobuf.DbFileSources.internal_static_org_sonar_server_source_db_Test_fieldAccessorTable .ensureFieldAccessorsInitialized( org.sonar.db.protobuf.DbFileSources.Test.class, org.sonar.db.protobuf.DbFileSources.Test.Builder.class); } // Construct using org.sonar.db.protobuf.DbFileSources.Test.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getCoveredFileFieldBuilder(); } } public Builder clear() { super.clear(); uuid_ = ""; bitField0_ = (bitField0_ & ~0x00000001); name_ = ""; bitField0_ = (bitField0_ & ~0x00000002); status_ = 1; bitField0_ = (bitField0_ & ~0x00000004); executionTimeMs_ = 0L; bitField0_ = (bitField0_ & ~0x00000008); stacktrace_ = ""; bitField0_ = (bitField0_ & ~0x00000010); msg_ = ""; bitField0_ = (bitField0_ & ~0x00000020); if (coveredFileBuilder_ == null) { coveredFile_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); } else { coveredFileBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.sonar.db.protobuf.DbFileSources.internal_static_org_sonar_server_source_db_Test_descriptor; } public org.sonar.db.protobuf.DbFileSources.Test getDefaultInstanceForType() { return org.sonar.db.protobuf.DbFileSources.Test.getDefaultInstance(); } public org.sonar.db.protobuf.DbFileSources.Test build() { org.sonar.db.protobuf.DbFileSources.Test result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.sonar.db.protobuf.DbFileSources.Test buildPartial() { org.sonar.db.protobuf.DbFileSources.Test result = new org.sonar.db.protobuf.DbFileSources.Test(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.uuid_ = uuid_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.name_ = name_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.status_ = status_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.executionTimeMs_ = executionTimeMs_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.stacktrace_ = stacktrace_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } result.msg_ = msg_; if (coveredFileBuilder_ == null) { if (((bitField0_ & 0x00000040) == 0x00000040)) { coveredFile_ = java.util.Collections.unmodifiableList(coveredFile_); bitField0_ = (bitField0_ & ~0x00000040); } result.coveredFile_ = coveredFile_; } else { result.coveredFile_ = coveredFileBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.sonar.db.protobuf.DbFileSources.Test) { return mergeFrom((org.sonar.db.protobuf.DbFileSources.Test)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.sonar.db.protobuf.DbFileSources.Test other) { if (other == org.sonar.db.protobuf.DbFileSources.Test.getDefaultInstance()) return this; if (other.hasUuid()) { bitField0_ |= 0x00000001; uuid_ = other.uuid_; onChanged(); } if (other.hasName()) { bitField0_ |= 0x00000002; name_ = other.name_; onChanged(); } if (other.hasStatus()) { setStatus(other.getStatus()); } if (other.hasExecutionTimeMs()) { setExecutionTimeMs(other.getExecutionTimeMs()); } if (other.hasStacktrace()) { bitField0_ |= 0x00000010; stacktrace_ = other.stacktrace_; onChanged(); } if (other.hasMsg()) { bitField0_ |= 0x00000020; msg_ = other.msg_; onChanged(); } if (coveredFileBuilder_ == null) { if (!other.coveredFile_.isEmpty()) { if (coveredFile_.isEmpty()) { coveredFile_ = other.coveredFile_; bitField0_ = (bitField0_ & ~0x00000040); } else { ensureCoveredFileIsMutable(); coveredFile_.addAll(other.coveredFile_); } onChanged(); } } else { if (!other.coveredFile_.isEmpty()) { if (coveredFileBuilder_.isEmpty()) { coveredFileBuilder_.dispose(); coveredFileBuilder_ = null; coveredFile_ = other.coveredFile_; bitField0_ = (bitField0_ & ~0x00000040); coveredFileBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getCoveredFileFieldBuilder() : null; } else { coveredFileBuilder_.addAllMessages(other.coveredFile_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.sonar.db.protobuf.DbFileSources.Test parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.sonar.db.protobuf.DbFileSources.Test) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object uuid_ = ""; /** * optional string uuid = 1; */ public boolean hasUuid() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional string uuid = 1; */ public java.lang.String getUuid() { java.lang.Object ref = uuid_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { uuid_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string uuid = 1; */ public com.google.protobuf.ByteString getUuidBytes() { java.lang.Object ref = uuid_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); uuid_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string uuid = 1; */ public Builder setUuid( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; uuid_ = value; onChanged(); return this; } /** * optional string uuid = 1; */ public Builder clearUuid() { bitField0_ = (bitField0_ & ~0x00000001); uuid_ = getDefaultInstance().getUuid(); onChanged(); return this; } /** * optional string uuid = 1; */ public Builder setUuidBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; uuid_ = value; onChanged(); return this; } private java.lang.Object name_ = ""; /** * optional string name = 2; */ public boolean hasName() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional string name = 2; */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { name_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string name = 2; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string name = 2; */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; name_ = value; onChanged(); return this; } /** * optional string name = 2; */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000002); name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * optional string name = 2; */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; name_ = value; onChanged(); return this; } private int status_ = 1; /** * optional .org.sonar.server.source.db.Test.TestStatus status = 3; */ public boolean hasStatus() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional .org.sonar.server.source.db.Test.TestStatus status = 3; */ public org.sonar.db.protobuf.DbFileSources.Test.TestStatus getStatus() { org.sonar.db.protobuf.DbFileSources.Test.TestStatus result = org.sonar.db.protobuf.DbFileSources.Test.TestStatus.valueOf(status_); return result == null ? org.sonar.db.protobuf.DbFileSources.Test.TestStatus.OK : result; } /** * optional .org.sonar.server.source.db.Test.TestStatus status = 3; */ public Builder setStatus(org.sonar.db.protobuf.DbFileSources.Test.TestStatus value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; status_ = value.getNumber(); onChanged(); return this; } /** * optional .org.sonar.server.source.db.Test.TestStatus status = 3; */ public Builder clearStatus() { bitField0_ = (bitField0_ & ~0x00000004); status_ = 1; onChanged(); return this; } private long executionTimeMs_ ; /** * optional int64 execution_time_ms = 4; */ public boolean hasExecutionTimeMs() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional int64 execution_time_ms = 4; */ public long getExecutionTimeMs() { return executionTimeMs_; } /** * optional int64 execution_time_ms = 4; */ public Builder setExecutionTimeMs(long value) { bitField0_ |= 0x00000008; executionTimeMs_ = value; onChanged(); return this; } /** * optional int64 execution_time_ms = 4; */ public Builder clearExecutionTimeMs() { bitField0_ = (bitField0_ & ~0x00000008); executionTimeMs_ = 0L; onChanged(); return this; } private java.lang.Object stacktrace_ = ""; /** * optional string stacktrace = 5; */ public boolean hasStacktrace() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional string stacktrace = 5; */ public java.lang.String getStacktrace() { java.lang.Object ref = stacktrace_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { stacktrace_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string stacktrace = 5; */ public com.google.protobuf.ByteString getStacktraceBytes() { java.lang.Object ref = stacktrace_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); stacktrace_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string stacktrace = 5; */ public Builder setStacktrace( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; stacktrace_ = value; onChanged(); return this; } /** * optional string stacktrace = 5; */ public Builder clearStacktrace() { bitField0_ = (bitField0_ & ~0x00000010); stacktrace_ = getDefaultInstance().getStacktrace(); onChanged(); return this; } /** * optional string stacktrace = 5; */ public Builder setStacktraceBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; stacktrace_ = value; onChanged(); return this; } private java.lang.Object msg_ = ""; /** * optional string msg = 6; */ public boolean hasMsg() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional string msg = 6; */ public java.lang.String getMsg() { java.lang.Object ref = msg_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { msg_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string msg = 6; */ public com.google.protobuf.ByteString getMsgBytes() { java.lang.Object ref = msg_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); msg_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string msg = 6; */ public Builder setMsg( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; msg_ = value; onChanged(); return this; } /** * optional string msg = 6; */ public Builder clearMsg() { bitField0_ = (bitField0_ & ~0x00000020); msg_ = getDefaultInstance().getMsg(); onChanged(); return this; } /** * optional string msg = 6; */ public Builder setMsgBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; msg_ = value; onChanged(); return this; } private java.util.List coveredFile_ = java.util.Collections.emptyList(); private void ensureCoveredFileIsMutable() { if (!((bitField0_ & 0x00000040) == 0x00000040)) { coveredFile_ = new java.util.ArrayList(coveredFile_); bitField0_ |= 0x00000040; } } private com.google.protobuf.RepeatedFieldBuilder< org.sonar.db.protobuf.DbFileSources.Test.CoveredFile, org.sonar.db.protobuf.DbFileSources.Test.CoveredFile.Builder, org.sonar.db.protobuf.DbFileSources.Test.CoveredFileOrBuilder> coveredFileBuilder_; /** * repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7; */ public java.util.List getCoveredFileList() { if (coveredFileBuilder_ == null) { return java.util.Collections.unmodifiableList(coveredFile_); } else { return coveredFileBuilder_.getMessageList(); } } /** * repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7; */ public int getCoveredFileCount() { if (coveredFileBuilder_ == null) { return coveredFile_.size(); } else { return coveredFileBuilder_.getCount(); } } /** * repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7; */ public org.sonar.db.protobuf.DbFileSources.Test.CoveredFile getCoveredFile(int index) { if (coveredFileBuilder_ == null) { return coveredFile_.get(index); } else { return coveredFileBuilder_.getMessage(index); } } /** * repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7; */ public Builder setCoveredFile( int index, org.sonar.db.protobuf.DbFileSources.Test.CoveredFile value) { if (coveredFileBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCoveredFileIsMutable(); coveredFile_.set(index, value); onChanged(); } else { coveredFileBuilder_.setMessage(index, value); } return this; } /** * repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7; */ public Builder setCoveredFile( int index, org.sonar.db.protobuf.DbFileSources.Test.CoveredFile.Builder builderForValue) { if (coveredFileBuilder_ == null) { ensureCoveredFileIsMutable(); coveredFile_.set(index, builderForValue.build()); onChanged(); } else { coveredFileBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7; */ public Builder addCoveredFile(org.sonar.db.protobuf.DbFileSources.Test.CoveredFile value) { if (coveredFileBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCoveredFileIsMutable(); coveredFile_.add(value); onChanged(); } else { coveredFileBuilder_.addMessage(value); } return this; } /** * repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7; */ public Builder addCoveredFile( int index, org.sonar.db.protobuf.DbFileSources.Test.CoveredFile value) { if (coveredFileBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCoveredFileIsMutable(); coveredFile_.add(index, value); onChanged(); } else { coveredFileBuilder_.addMessage(index, value); } return this; } /** * repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7; */ public Builder addCoveredFile( org.sonar.db.protobuf.DbFileSources.Test.CoveredFile.Builder builderForValue) { if (coveredFileBuilder_ == null) { ensureCoveredFileIsMutable(); coveredFile_.add(builderForValue.build()); onChanged(); } else { coveredFileBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7; */ public Builder addCoveredFile( int index, org.sonar.db.protobuf.DbFileSources.Test.CoveredFile.Builder builderForValue) { if (coveredFileBuilder_ == null) { ensureCoveredFileIsMutable(); coveredFile_.add(index, builderForValue.build()); onChanged(); } else { coveredFileBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7; */ public Builder addAllCoveredFile( java.lang.Iterable values) { if (coveredFileBuilder_ == null) { ensureCoveredFileIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, coveredFile_); onChanged(); } else { coveredFileBuilder_.addAllMessages(values); } return this; } /** * repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7; */ public Builder clearCoveredFile() { if (coveredFileBuilder_ == null) { coveredFile_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); } else { coveredFileBuilder_.clear(); } return this; } /** * repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7; */ public Builder removeCoveredFile(int index) { if (coveredFileBuilder_ == null) { ensureCoveredFileIsMutable(); coveredFile_.remove(index); onChanged(); } else { coveredFileBuilder_.remove(index); } return this; } /** * repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7; */ public org.sonar.db.protobuf.DbFileSources.Test.CoveredFile.Builder getCoveredFileBuilder( int index) { return getCoveredFileFieldBuilder().getBuilder(index); } /** * repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7; */ public org.sonar.db.protobuf.DbFileSources.Test.CoveredFileOrBuilder getCoveredFileOrBuilder( int index) { if (coveredFileBuilder_ == null) { return coveredFile_.get(index); } else { return coveredFileBuilder_.getMessageOrBuilder(index); } } /** * repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7; */ public java.util.List getCoveredFileOrBuilderList() { if (coveredFileBuilder_ != null) { return coveredFileBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(coveredFile_); } } /** * repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7; */ public org.sonar.db.protobuf.DbFileSources.Test.CoveredFile.Builder addCoveredFileBuilder() { return getCoveredFileFieldBuilder().addBuilder( org.sonar.db.protobuf.DbFileSources.Test.CoveredFile.getDefaultInstance()); } /** * repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7; */ public org.sonar.db.protobuf.DbFileSources.Test.CoveredFile.Builder addCoveredFileBuilder( int index) { return getCoveredFileFieldBuilder().addBuilder( index, org.sonar.db.protobuf.DbFileSources.Test.CoveredFile.getDefaultInstance()); } /** * repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7; */ public java.util.List getCoveredFileBuilderList() { return getCoveredFileFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< org.sonar.db.protobuf.DbFileSources.Test.CoveredFile, org.sonar.db.protobuf.DbFileSources.Test.CoveredFile.Builder, org.sonar.db.protobuf.DbFileSources.Test.CoveredFileOrBuilder> getCoveredFileFieldBuilder() { if (coveredFileBuilder_ == null) { coveredFileBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< org.sonar.db.protobuf.DbFileSources.Test.CoveredFile, org.sonar.db.protobuf.DbFileSources.Test.CoveredFile.Builder, org.sonar.db.protobuf.DbFileSources.Test.CoveredFileOrBuilder>( coveredFile_, ((bitField0_ & 0x00000040) == 0x00000040), getParentForChildren(), isClean()); coveredFile_ = null; } return coveredFileBuilder_; } // @@protoc_insertion_point(builder_scope:org.sonar.server.source.db.Test) } // @@protoc_insertion_point(class_scope:org.sonar.server.source.db.Test) private static final org.sonar.db.protobuf.DbFileSources.Test DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.sonar.db.protobuf.DbFileSources.Test(); } public static org.sonar.db.protobuf.DbFileSources.Test getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Test parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { try { return new Test(input, extensionRegistry); } catch (RuntimeException e) { if (e.getCause() instanceof com.google.protobuf.InvalidProtocolBufferException) { throw (com.google.protobuf.InvalidProtocolBufferException) e.getCause(); } throw e; } } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.sonar.db.protobuf.DbFileSources.Test getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static com.google.protobuf.Descriptors.Descriptor internal_static_org_sonar_server_source_db_Line_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_org_sonar_server_source_db_Line_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_org_sonar_server_source_db_Data_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_org_sonar_server_source_db_Data_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_org_sonar_server_source_db_Test_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_org_sonar_server_source_db_Test_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_org_sonar_server_source_db_Test_CoveredFile_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_org_sonar_server_source_db_Test_CoveredFile_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n\025db-file-sources.proto\022\032org.sonar.serve" + "r.source.db\"\223\003\n\004Line\022\014\n\004line\030\001 \001(\005\022\016\n\006so" + "urce\030\002 \001(\t\022\024\n\014scm_revision\030\003 \001(\t\022\022\n\nscm_" + "author\030\004 \001(\t\022\020\n\010scm_date\030\005 \001(\003\022\024\n\014ut_lin" + "e_hits\030\006 \001(\005\022\025\n\rut_conditions\030\007 \001(\005\022\035\n\025u" + "t_covered_conditions\030\010 \001(\005\022\024\n\014it_line_hi" + "ts\030\t \001(\005\022\025\n\rit_conditions\030\n \001(\005\022\035\n\025it_co" + "vered_conditions\030\013 \001(\005\022\031\n\021overall_line_h" + "its\030\014 \001(\005\022\032\n\022overall_conditions\030\r \001(\005\022\"\n" + "\032overall_covered_conditions\030\016 \001(\005\022\024\n\014hig", "hlighting\030\017 \001(\t\022\017\n\007symbols\030\020 \001(\t\022\027\n\013dupl" + "ication\030\021 \003(\005B\002\020\001\"7\n\004Data\022/\n\005lines\030\001 \003(\013" + "2 .org.sonar.server.source.db.Line\"\326\002\n\004T" + "est\022\014\n\004uuid\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\022;\n\006statu" + "s\030\003 \001(\0162+.org.sonar.server.source.db.Tes" + "t.TestStatus\022\031\n\021execution_time_ms\030\004 \001(\003\022" + "\022\n\nstacktrace\030\005 \001(\t\022\013\n\003msg\030\006 \001(\t\022B\n\014cove" + "red_file\030\007 \003(\0132,.org.sonar.server.source" + ".db.Test.CoveredFile\032:\n\013CoveredFile\022\021\n\tf" + "ile_uuid\030\001 \001(\t\022\030\n\014covered_line\030\002 \003(\005B\002\020\001", "\"9\n\nTestStatus\022\006\n\002OK\020\001\022\013\n\007FAILURE\020\002\022\t\n\005E" + "RROR\020\003\022\013\n\007SKIPPED\020\004B\031\n\025org.sonar.db.prot" + "obufH\001" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor root) { descriptor = root; return null; } }; com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { }, assigner); internal_static_org_sonar_server_source_db_Line_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_org_sonar_server_source_db_Line_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_org_sonar_server_source_db_Line_descriptor, new java.lang.String[] { "Line", "Source", "ScmRevision", "ScmAuthor", "ScmDate", "UtLineHits", "UtConditions", "UtCoveredConditions", "ItLineHits", "ItConditions", "ItCoveredConditions", "OverallLineHits", "OverallConditions", "OverallCoveredConditions", "Highlighting", "Symbols", "Duplication", }); internal_static_org_sonar_server_source_db_Data_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_org_sonar_server_source_db_Data_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_org_sonar_server_source_db_Data_descriptor, new java.lang.String[] { "Lines", }); internal_static_org_sonar_server_source_db_Test_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_org_sonar_server_source_db_Test_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_org_sonar_server_source_db_Test_descriptor, new java.lang.String[] { "Uuid", "Name", "Status", "ExecutionTimeMs", "Stacktrace", "Msg", "CoveredFile", }); internal_static_org_sonar_server_source_db_Test_CoveredFile_descriptor = internal_static_org_sonar_server_source_db_Test_descriptor.getNestedTypes().get(0); internal_static_org_sonar_server_source_db_Test_CoveredFile_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_org_sonar_server_source_db_Test_CoveredFile_descriptor, new java.lang.String[] { "FileUuid", "CoveredLine", }); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy