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

org.sonarsource.dotnet.protobuf.SonarAnalyzer Maven / Gradle / Ivy

There is a newer version: 9.32.0.97167
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// NO CHECKED-IN PROTOBUF GENCODE
// source: AnalyzerReport.proto
// Protobuf Java Version: 4.27.0

package org.sonarsource.dotnet.protobuf;

public final class SonarAnalyzer {
  private SonarAnalyzer() {}
  static {
    com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
      com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
      /* major= */ 4,
      /* minor= */ 27,
      /* patch= */ 0,
      /* suffix= */ "",
      SonarAnalyzer.class.getName());
  }
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  /**
   * Protobuf enum {@code sonaranalyzer.TokenType}
   */
  public enum TokenType
      implements com.google.protobuf.ProtocolMessageEnum {
    /**
     * UNKNOWN_TOKENTYPE = 0;
     */
    UNKNOWN_TOKENTYPE(0),
    /**
     * TYPE_NAME = 1;
     */
    TYPE_NAME(1),
    /**
     * NUMERIC_LITERAL = 2;
     */
    NUMERIC_LITERAL(2),
    /**
     * STRING_LITERAL = 3;
     */
    STRING_LITERAL(3),
    /**
     * KEYWORD = 4;
     */
    KEYWORD(4),
    /**
     * COMMENT = 5;
     */
    COMMENT(5),
    UNRECOGNIZED(-1),
    ;

    static {
      com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
        com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
        /* major= */ 4,
        /* minor= */ 27,
        /* patch= */ 0,
        /* suffix= */ "",
        TokenType.class.getName());
    }
    /**
     * UNKNOWN_TOKENTYPE = 0;
     */
    public static final int UNKNOWN_TOKENTYPE_VALUE = 0;
    /**
     * TYPE_NAME = 1;
     */
    public static final int TYPE_NAME_VALUE = 1;
    /**
     * NUMERIC_LITERAL = 2;
     */
    public static final int NUMERIC_LITERAL_VALUE = 2;
    /**
     * STRING_LITERAL = 3;
     */
    public static final int STRING_LITERAL_VALUE = 3;
    /**
     * KEYWORD = 4;
     */
    public static final int KEYWORD_VALUE = 4;
    /**
     * COMMENT = 5;
     */
    public static final int COMMENT_VALUE = 5;


    public final int getNumber() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalArgumentException(
            "Can't get the number of an unknown enum value.");
      }
      return value;
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static TokenType valueOf(int value) {
      return forNumber(value);
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     */
    public static TokenType forNumber(int value) {
      switch (value) {
        case 0: return UNKNOWN_TOKENTYPE;
        case 1: return TYPE_NAME;
        case 2: return NUMERIC_LITERAL;
        case 3: return STRING_LITERAL;
        case 4: return KEYWORD;
        case 5: return COMMENT;
        default: return null;
      }
    }

    public static com.google.protobuf.Internal.EnumLiteMap
        internalGetValueMap() {
      return internalValueMap;
    }
    private static final com.google.protobuf.Internal.EnumLiteMap<
        TokenType> internalValueMap =
          new com.google.protobuf.Internal.EnumLiteMap() {
            public TokenType findValueByNumber(int number) {
              return TokenType.forNumber(number);
            }
          };

    public final com.google.protobuf.Descriptors.EnumValueDescriptor
        getValueDescriptor() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalStateException(
            "Can't get the descriptor of an unrecognized enum value.");
      }
      return getDescriptor().getValues().get(ordinal());
    }
    public final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptorForType() {
      return getDescriptor();
    }
    public static final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptor() {
      return org.sonarsource.dotnet.protobuf.SonarAnalyzer.getDescriptor().getEnumTypes().get(0);
    }

    private static final TokenType[] VALUES = values();

    public static TokenType valueOf(
        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
      if (desc.getType() != getDescriptor()) {
        throw new java.lang.IllegalArgumentException(
          "EnumValueDescriptor is not for this type.");
      }
      if (desc.getIndex() == -1) {
        return UNRECOGNIZED;
      }
      return VALUES[desc.getIndex()];
    }

    private final int value;

    private TokenType(int value) {
      this.value = value;
    }

    // @@protoc_insertion_point(enum_scope:sonaranalyzer.TokenType)
  }

  /**
   * 
   * Logging
   * 
* * Protobuf enum {@code sonaranalyzer.LogSeverity} */ public enum LogSeverity implements com.google.protobuf.ProtocolMessageEnum { /** * UNKNOWN_SEVERITY = 0; */ UNKNOWN_SEVERITY(0), /** * DEBUG = 1; */ DEBUG(1), /** * INFO = 2; */ INFO(2), /** * WARNING = 3; */ WARNING(3), UNRECOGNIZED(-1), ; static { com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, /* minor= */ 27, /* patch= */ 0, /* suffix= */ "", LogSeverity.class.getName()); } /** * UNKNOWN_SEVERITY = 0; */ public static final int UNKNOWN_SEVERITY_VALUE = 0; /** * DEBUG = 1; */ public static final int DEBUG_VALUE = 1; /** * INFO = 2; */ public static final int INFO_VALUE = 2; /** * WARNING = 3; */ public static final int WARNING_VALUE = 3; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static LogSeverity valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static LogSeverity forNumber(int value) { switch (value) { case 0: return UNKNOWN_SEVERITY; case 1: return DEBUG; case 2: return INFO; case 3: return WARNING; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< LogSeverity> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public LogSeverity findValueByNumber(int number) { return LogSeverity.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return org.sonarsource.dotnet.protobuf.SonarAnalyzer.getDescriptor().getEnumTypes().get(1); } private static final LogSeverity[] VALUES = values(); public static LogSeverity valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private LogSeverity(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:sonaranalyzer.LogSeverity) } public interface TextRangeOrBuilder extends // @@protoc_insertion_point(interface_extends:sonaranalyzer.TextRange) com.google.protobuf.MessageOrBuilder { /** * int32 start_line = 1; * @return The startLine. */ int getStartLine(); /** *
     * End line (inclusive)
     * 
* * int32 end_line = 2; * @return The endLine. */ int getEndLine(); /** * int32 start_offset = 3; * @return The startOffset. */ int getStartOffset(); /** * int32 end_offset = 4; * @return The endOffset. */ int getEndOffset(); } /** *
   * Lines start at 1 and line offsets start at 0
   * 
* * Protobuf type {@code sonaranalyzer.TextRange} */ public static final class TextRange extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:sonaranalyzer.TextRange) TextRangeOrBuilder { private static final long serialVersionUID = 0L; static { com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, /* minor= */ 27, /* patch= */ 0, /* suffix= */ "", TextRange.class.getName()); } // Use TextRange.newBuilder() to construct. private TextRange(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private TextRange() { } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.sonarsource.dotnet.protobuf.SonarAnalyzer.internal_static_sonaranalyzer_TextRange_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.sonarsource.dotnet.protobuf.SonarAnalyzer.internal_static_sonaranalyzer_TextRange_fieldAccessorTable .ensureFieldAccessorsInitialized( org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange.class, org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange.Builder.class); } public static final int START_LINE_FIELD_NUMBER = 1; private int startLine_ = 0; /** * int32 start_line = 1; * @return The startLine. */ @java.lang.Override public int getStartLine() { return startLine_; } public static final int END_LINE_FIELD_NUMBER = 2; private int endLine_ = 0; /** *
     * End line (inclusive)
     * 
* * int32 end_line = 2; * @return The endLine. */ @java.lang.Override public int getEndLine() { return endLine_; } public static final int START_OFFSET_FIELD_NUMBER = 3; private int startOffset_ = 0; /** * int32 start_offset = 3; * @return The startOffset. */ @java.lang.Override public int getStartOffset() { return startOffset_; } public static final int END_OFFSET_FIELD_NUMBER = 4; private int endOffset_ = 0; /** * int32 end_offset = 4; * @return The endOffset. */ @java.lang.Override public int getEndOffset() { return endOffset_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (startLine_ != 0) { output.writeInt32(1, startLine_); } if (endLine_ != 0) { output.writeInt32(2, endLine_); } if (startOffset_ != 0) { output.writeInt32(3, startOffset_); } if (endOffset_ != 0) { output.writeInt32(4, endOffset_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (startLine_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, startLine_); } if (endLine_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, endLine_); } if (startOffset_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, startOffset_); } if (endOffset_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(4, endOffset_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange)) { return super.equals(obj); } org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange other = (org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange) obj; if (getStartLine() != other.getStartLine()) return false; if (getEndLine() != other.getEndLine()) return false; if (getStartOffset() != other.getStartOffset()) return false; if (getEndOffset() != other.getEndOffset()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + START_LINE_FIELD_NUMBER; hash = (53 * hash) + getStartLine(); hash = (37 * hash) + END_LINE_FIELD_NUMBER; hash = (53 * hash) + getEndLine(); hash = (37 * hash) + START_OFFSET_FIELD_NUMBER; hash = (53 * hash) + getStartOffset(); hash = (37 * hash) + END_OFFSET_FIELD_NUMBER; hash = (53 * hash) + getEndOffset(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override 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; } /** *
     * Lines start at 1 and line offsets start at 0
     * 
* * Protobuf type {@code sonaranalyzer.TextRange} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:sonaranalyzer.TextRange) org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRangeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.sonarsource.dotnet.protobuf.SonarAnalyzer.internal_static_sonaranalyzer_TextRange_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.sonarsource.dotnet.protobuf.SonarAnalyzer.internal_static_sonaranalyzer_TextRange_fieldAccessorTable .ensureFieldAccessorsInitialized( org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange.class, org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange.Builder.class); } // Construct using org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; startLine_ = 0; endLine_ = 0; startOffset_ = 0; endOffset_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.sonarsource.dotnet.protobuf.SonarAnalyzer.internal_static_sonaranalyzer_TextRange_descriptor; } @java.lang.Override public org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange getDefaultInstanceForType() { return org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange.getDefaultInstance(); } @java.lang.Override public org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange build() { org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange buildPartial() { org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange result = new org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.startLine_ = startLine_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.endLine_ = endLine_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.startOffset_ = startOffset_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.endOffset_ = endOffset_; } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange) { return mergeFrom((org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange other) { if (other == org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange.getDefaultInstance()) return this; if (other.getStartLine() != 0) { setStartLine(other.getStartLine()); } if (other.getEndLine() != 0) { setEndLine(other.getEndLine()); } if (other.getStartOffset() != 0) { setStartOffset(other.getStartOffset()); } if (other.getEndOffset() != 0) { setEndOffset(other.getEndOffset()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { startLine_ = input.readInt32(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { endLine_ = input.readInt32(); bitField0_ |= 0x00000002; break; } // case 16 case 24: { startOffset_ = input.readInt32(); bitField0_ |= 0x00000004; break; } // case 24 case 32: { endOffset_ = input.readInt32(); bitField0_ |= 0x00000008; break; } // case 32 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private int startLine_ ; /** * int32 start_line = 1; * @return The startLine. */ @java.lang.Override public int getStartLine() { return startLine_; } /** * int32 start_line = 1; * @param value The startLine to set. * @return This builder for chaining. */ public Builder setStartLine(int value) { startLine_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * int32 start_line = 1; * @return This builder for chaining. */ public Builder clearStartLine() { bitField0_ = (bitField0_ & ~0x00000001); startLine_ = 0; onChanged(); return this; } private int endLine_ ; /** *
       * End line (inclusive)
       * 
* * int32 end_line = 2; * @return The endLine. */ @java.lang.Override public int getEndLine() { return endLine_; } /** *
       * End line (inclusive)
       * 
* * int32 end_line = 2; * @param value The endLine to set. * @return This builder for chaining. */ public Builder setEndLine(int value) { endLine_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * End line (inclusive)
       * 
* * int32 end_line = 2; * @return This builder for chaining. */ public Builder clearEndLine() { bitField0_ = (bitField0_ & ~0x00000002); endLine_ = 0; onChanged(); return this; } private int startOffset_ ; /** * int32 start_offset = 3; * @return The startOffset. */ @java.lang.Override public int getStartOffset() { return startOffset_; } /** * int32 start_offset = 3; * @param value The startOffset to set. * @return This builder for chaining. */ public Builder setStartOffset(int value) { startOffset_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * int32 start_offset = 3; * @return This builder for chaining. */ public Builder clearStartOffset() { bitField0_ = (bitField0_ & ~0x00000004); startOffset_ = 0; onChanged(); return this; } private int endOffset_ ; /** * int32 end_offset = 4; * @return The endOffset. */ @java.lang.Override public int getEndOffset() { return endOffset_; } /** * int32 end_offset = 4; * @param value The endOffset to set. * @return This builder for chaining. */ public Builder setEndOffset(int value) { endOffset_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * int32 end_offset = 4; * @return This builder for chaining. */ public Builder clearEndOffset() { bitField0_ = (bitField0_ & ~0x00000008); endOffset_ = 0; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:sonaranalyzer.TextRange) } // @@protoc_insertion_point(class_scope:sonaranalyzer.TextRange) private static final org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange(); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TextRange parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TokenTypeInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:sonaranalyzer.TokenTypeInfo) com.google.protobuf.MessageOrBuilder { /** * string file_path = 1; * @return The filePath. */ java.lang.String getFilePath(); /** * string file_path = 1; * @return The bytes for filePath. */ com.google.protobuf.ByteString getFilePathBytes(); /** * repeated .sonaranalyzer.TokenTypeInfo.TokenInfo token_info = 2; */ java.util.List getTokenInfoList(); /** * repeated .sonaranalyzer.TokenTypeInfo.TokenInfo token_info = 2; */ org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenTypeInfo.TokenInfo getTokenInfo(int index); /** * repeated .sonaranalyzer.TokenTypeInfo.TokenInfo token_info = 2; */ int getTokenInfoCount(); /** * repeated .sonaranalyzer.TokenTypeInfo.TokenInfo token_info = 2; */ java.util.List getTokenInfoOrBuilderList(); /** * repeated .sonaranalyzer.TokenTypeInfo.TokenInfo token_info = 2; */ org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenTypeInfo.TokenInfoOrBuilder getTokenInfoOrBuilder( int index); } /** *
   * Used for code coloring
   * 
* * Protobuf type {@code sonaranalyzer.TokenTypeInfo} */ public static final class TokenTypeInfo extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:sonaranalyzer.TokenTypeInfo) TokenTypeInfoOrBuilder { private static final long serialVersionUID = 0L; static { com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, /* minor= */ 27, /* patch= */ 0, /* suffix= */ "", TokenTypeInfo.class.getName()); } // Use TokenTypeInfo.newBuilder() to construct. private TokenTypeInfo(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private TokenTypeInfo() { filePath_ = ""; tokenInfo_ = java.util.Collections.emptyList(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.sonarsource.dotnet.protobuf.SonarAnalyzer.internal_static_sonaranalyzer_TokenTypeInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.sonarsource.dotnet.protobuf.SonarAnalyzer.internal_static_sonaranalyzer_TokenTypeInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenTypeInfo.class, org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenTypeInfo.Builder.class); } public interface TokenInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:sonaranalyzer.TokenTypeInfo.TokenInfo) com.google.protobuf.MessageOrBuilder { /** * .sonaranalyzer.TokenType token_type = 1; * @return The enum numeric value on the wire for tokenType. */ int getTokenTypeValue(); /** * .sonaranalyzer.TokenType token_type = 1; * @return The tokenType. */ org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenType getTokenType(); /** * .sonaranalyzer.TextRange text_range = 2; * @return Whether the textRange field is set. */ boolean hasTextRange(); /** * .sonaranalyzer.TextRange text_range = 2; * @return The textRange. */ org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange getTextRange(); /** * .sonaranalyzer.TextRange text_range = 2; */ org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRangeOrBuilder getTextRangeOrBuilder(); } /** * Protobuf type {@code sonaranalyzer.TokenTypeInfo.TokenInfo} */ public static final class TokenInfo extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:sonaranalyzer.TokenTypeInfo.TokenInfo) TokenInfoOrBuilder { private static final long serialVersionUID = 0L; static { com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, /* minor= */ 27, /* patch= */ 0, /* suffix= */ "", TokenInfo.class.getName()); } // Use TokenInfo.newBuilder() to construct. private TokenInfo(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private TokenInfo() { tokenType_ = 0; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.sonarsource.dotnet.protobuf.SonarAnalyzer.internal_static_sonaranalyzer_TokenTypeInfo_TokenInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.sonarsource.dotnet.protobuf.SonarAnalyzer.internal_static_sonaranalyzer_TokenTypeInfo_TokenInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenTypeInfo.TokenInfo.class, org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenTypeInfo.TokenInfo.Builder.class); } private int bitField0_; public static final int TOKEN_TYPE_FIELD_NUMBER = 1; private int tokenType_ = 0; /** * .sonaranalyzer.TokenType token_type = 1; * @return The enum numeric value on the wire for tokenType. */ @java.lang.Override public int getTokenTypeValue() { return tokenType_; } /** * .sonaranalyzer.TokenType token_type = 1; * @return The tokenType. */ @java.lang.Override public org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenType getTokenType() { org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenType result = org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenType.forNumber(tokenType_); return result == null ? org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenType.UNRECOGNIZED : result; } public static final int TEXT_RANGE_FIELD_NUMBER = 2; private org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange textRange_; /** * .sonaranalyzer.TextRange text_range = 2; * @return Whether the textRange field is set. */ @java.lang.Override public boolean hasTextRange() { return ((bitField0_ & 0x00000001) != 0); } /** * .sonaranalyzer.TextRange text_range = 2; * @return The textRange. */ @java.lang.Override public org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange getTextRange() { return textRange_ == null ? org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange.getDefaultInstance() : textRange_; } /** * .sonaranalyzer.TextRange text_range = 2; */ @java.lang.Override public org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRangeOrBuilder getTextRangeOrBuilder() { return textRange_ == null ? org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange.getDefaultInstance() : textRange_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (tokenType_ != org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenType.UNKNOWN_TOKENTYPE.getNumber()) { output.writeEnum(1, tokenType_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getTextRange()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (tokenType_ != org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenType.UNKNOWN_TOKENTYPE.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, tokenType_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getTextRange()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenTypeInfo.TokenInfo)) { return super.equals(obj); } org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenTypeInfo.TokenInfo other = (org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenTypeInfo.TokenInfo) obj; if (tokenType_ != other.tokenType_) return false; if (hasTextRange() != other.hasTextRange()) return false; if (hasTextRange()) { if (!getTextRange() .equals(other.getTextRange())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + TOKEN_TYPE_FIELD_NUMBER; hash = (53 * hash) + tokenType_; if (hasTextRange()) { hash = (37 * hash) + TEXT_RANGE_FIELD_NUMBER; hash = (53 * hash) + getTextRange().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenTypeInfo.TokenInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenTypeInfo.TokenInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenTypeInfo.TokenInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenTypeInfo.TokenInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenTypeInfo.TokenInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenTypeInfo.TokenInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenTypeInfo.TokenInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenTypeInfo.TokenInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenTypeInfo.TokenInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenTypeInfo.TokenInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenTypeInfo.TokenInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenTypeInfo.TokenInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenTypeInfo.TokenInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override 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 sonaranalyzer.TokenTypeInfo.TokenInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:sonaranalyzer.TokenTypeInfo.TokenInfo) org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenTypeInfo.TokenInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.sonarsource.dotnet.protobuf.SonarAnalyzer.internal_static_sonaranalyzer_TokenTypeInfo_TokenInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.sonarsource.dotnet.protobuf.SonarAnalyzer.internal_static_sonaranalyzer_TokenTypeInfo_TokenInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenTypeInfo.TokenInfo.class, org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenTypeInfo.TokenInfo.Builder.class); } // Construct using org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenTypeInfo.TokenInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { getTextRangeFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; tokenType_ = 0; textRange_ = null; if (textRangeBuilder_ != null) { textRangeBuilder_.dispose(); textRangeBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.sonarsource.dotnet.protobuf.SonarAnalyzer.internal_static_sonaranalyzer_TokenTypeInfo_TokenInfo_descriptor; } @java.lang.Override public org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenTypeInfo.TokenInfo getDefaultInstanceForType() { return org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenTypeInfo.TokenInfo.getDefaultInstance(); } @java.lang.Override public org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenTypeInfo.TokenInfo build() { org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenTypeInfo.TokenInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenTypeInfo.TokenInfo buildPartial() { org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenTypeInfo.TokenInfo result = new org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenTypeInfo.TokenInfo(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenTypeInfo.TokenInfo result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.tokenType_ = tokenType_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.textRange_ = textRangeBuilder_ == null ? textRange_ : textRangeBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenTypeInfo.TokenInfo) { return mergeFrom((org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenTypeInfo.TokenInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenTypeInfo.TokenInfo other) { if (other == org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenTypeInfo.TokenInfo.getDefaultInstance()) return this; if (other.tokenType_ != 0) { setTokenTypeValue(other.getTokenTypeValue()); } if (other.hasTextRange()) { mergeTextRange(other.getTextRange()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { tokenType_ = input.readEnum(); bitField0_ |= 0x00000001; break; } // case 8 case 18: { input.readMessage( getTextRangeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private int tokenType_ = 0; /** * .sonaranalyzer.TokenType token_type = 1; * @return The enum numeric value on the wire for tokenType. */ @java.lang.Override public int getTokenTypeValue() { return tokenType_; } /** * .sonaranalyzer.TokenType token_type = 1; * @param value The enum numeric value on the wire for tokenType to set. * @return This builder for chaining. */ public Builder setTokenTypeValue(int value) { tokenType_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * .sonaranalyzer.TokenType token_type = 1; * @return The tokenType. */ @java.lang.Override public org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenType getTokenType() { org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenType result = org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenType.forNumber(tokenType_); return result == null ? org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenType.UNRECOGNIZED : result; } /** * .sonaranalyzer.TokenType token_type = 1; * @param value The tokenType to set. * @return This builder for chaining. */ public Builder setTokenType(org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; tokenType_ = value.getNumber(); onChanged(); return this; } /** * .sonaranalyzer.TokenType token_type = 1; * @return This builder for chaining. */ public Builder clearTokenType() { bitField0_ = (bitField0_ & ~0x00000001); tokenType_ = 0; onChanged(); return this; } private org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange textRange_; private com.google.protobuf.SingleFieldBuilder< org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange, org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange.Builder, org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRangeOrBuilder> textRangeBuilder_; /** * .sonaranalyzer.TextRange text_range = 2; * @return Whether the textRange field is set. */ public boolean hasTextRange() { return ((bitField0_ & 0x00000002) != 0); } /** * .sonaranalyzer.TextRange text_range = 2; * @return The textRange. */ public org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange getTextRange() { if (textRangeBuilder_ == null) { return textRange_ == null ? org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange.getDefaultInstance() : textRange_; } else { return textRangeBuilder_.getMessage(); } } /** * .sonaranalyzer.TextRange text_range = 2; */ public Builder setTextRange(org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange value) { if (textRangeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } textRange_ = value; } else { textRangeBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .sonaranalyzer.TextRange text_range = 2; */ public Builder setTextRange( org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange.Builder builderForValue) { if (textRangeBuilder_ == null) { textRange_ = builderForValue.build(); } else { textRangeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .sonaranalyzer.TextRange text_range = 2; */ public Builder mergeTextRange(org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange value) { if (textRangeBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && textRange_ != null && textRange_ != org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange.getDefaultInstance()) { getTextRangeBuilder().mergeFrom(value); } else { textRange_ = value; } } else { textRangeBuilder_.mergeFrom(value); } if (textRange_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * .sonaranalyzer.TextRange text_range = 2; */ public Builder clearTextRange() { bitField0_ = (bitField0_ & ~0x00000002); textRange_ = null; if (textRangeBuilder_ != null) { textRangeBuilder_.dispose(); textRangeBuilder_ = null; } onChanged(); return this; } /** * .sonaranalyzer.TextRange text_range = 2; */ public org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange.Builder getTextRangeBuilder() { bitField0_ |= 0x00000002; onChanged(); return getTextRangeFieldBuilder().getBuilder(); } /** * .sonaranalyzer.TextRange text_range = 2; */ public org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRangeOrBuilder getTextRangeOrBuilder() { if (textRangeBuilder_ != null) { return textRangeBuilder_.getMessageOrBuilder(); } else { return textRange_ == null ? org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange.getDefaultInstance() : textRange_; } } /** * .sonaranalyzer.TextRange text_range = 2; */ private com.google.protobuf.SingleFieldBuilder< org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange, org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange.Builder, org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRangeOrBuilder> getTextRangeFieldBuilder() { if (textRangeBuilder_ == null) { textRangeBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange, org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange.Builder, org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRangeOrBuilder>( getTextRange(), getParentForChildren(), isClean()); textRange_ = null; } return textRangeBuilder_; } // @@protoc_insertion_point(builder_scope:sonaranalyzer.TokenTypeInfo.TokenInfo) } // @@protoc_insertion_point(class_scope:sonaranalyzer.TokenTypeInfo.TokenInfo) private static final org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenTypeInfo.TokenInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenTypeInfo.TokenInfo(); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenTypeInfo.TokenInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TokenInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenTypeInfo.TokenInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int FILE_PATH_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object filePath_ = ""; /** * string file_path = 1; * @return The filePath. */ @java.lang.Override public java.lang.String getFilePath() { java.lang.Object ref = filePath_; 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(); filePath_ = s; return s; } } /** * string file_path = 1; * @return The bytes for filePath. */ @java.lang.Override public com.google.protobuf.ByteString getFilePathBytes() { java.lang.Object ref = filePath_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); filePath_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TOKEN_INFO_FIELD_NUMBER = 2; @SuppressWarnings("serial") private java.util.List tokenInfo_; /** * repeated .sonaranalyzer.TokenTypeInfo.TokenInfo token_info = 2; */ @java.lang.Override public java.util.List getTokenInfoList() { return tokenInfo_; } /** * repeated .sonaranalyzer.TokenTypeInfo.TokenInfo token_info = 2; */ @java.lang.Override public java.util.List getTokenInfoOrBuilderList() { return tokenInfo_; } /** * repeated .sonaranalyzer.TokenTypeInfo.TokenInfo token_info = 2; */ @java.lang.Override public int getTokenInfoCount() { return tokenInfo_.size(); } /** * repeated .sonaranalyzer.TokenTypeInfo.TokenInfo token_info = 2; */ @java.lang.Override public org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenTypeInfo.TokenInfo getTokenInfo(int index) { return tokenInfo_.get(index); } /** * repeated .sonaranalyzer.TokenTypeInfo.TokenInfo token_info = 2; */ @java.lang.Override public org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenTypeInfo.TokenInfoOrBuilder getTokenInfoOrBuilder( int index) { return tokenInfo_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filePath_)) { com.google.protobuf.GeneratedMessage.writeString(output, 1, filePath_); } for (int i = 0; i < tokenInfo_.size(); i++) { output.writeMessage(2, tokenInfo_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filePath_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(1, filePath_); } for (int i = 0; i < tokenInfo_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, tokenInfo_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenTypeInfo)) { return super.equals(obj); } org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenTypeInfo other = (org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenTypeInfo) obj; if (!getFilePath() .equals(other.getFilePath())) return false; if (!getTokenInfoList() .equals(other.getTokenInfoList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + FILE_PATH_FIELD_NUMBER; hash = (53 * hash) + getFilePath().hashCode(); if (getTokenInfoCount() > 0) { hash = (37 * hash) + TOKEN_INFO_FIELD_NUMBER; hash = (53 * hash) + getTokenInfoList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenTypeInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenTypeInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenTypeInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenTypeInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenTypeInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenTypeInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenTypeInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenTypeInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenTypeInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenTypeInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenTypeInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenTypeInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenTypeInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override 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; } /** *
     * Used for code coloring
     * 
* * Protobuf type {@code sonaranalyzer.TokenTypeInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:sonaranalyzer.TokenTypeInfo) org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenTypeInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.sonarsource.dotnet.protobuf.SonarAnalyzer.internal_static_sonaranalyzer_TokenTypeInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.sonarsource.dotnet.protobuf.SonarAnalyzer.internal_static_sonaranalyzer_TokenTypeInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenTypeInfo.class, org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenTypeInfo.Builder.class); } // Construct using org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenTypeInfo.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; filePath_ = ""; if (tokenInfoBuilder_ == null) { tokenInfo_ = java.util.Collections.emptyList(); } else { tokenInfo_ = null; tokenInfoBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.sonarsource.dotnet.protobuf.SonarAnalyzer.internal_static_sonaranalyzer_TokenTypeInfo_descriptor; } @java.lang.Override public org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenTypeInfo getDefaultInstanceForType() { return org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenTypeInfo.getDefaultInstance(); } @java.lang.Override public org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenTypeInfo build() { org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenTypeInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenTypeInfo buildPartial() { org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenTypeInfo result = new org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenTypeInfo(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenTypeInfo result) { if (tokenInfoBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { tokenInfo_ = java.util.Collections.unmodifiableList(tokenInfo_); bitField0_ = (bitField0_ & ~0x00000002); } result.tokenInfo_ = tokenInfo_; } else { result.tokenInfo_ = tokenInfoBuilder_.build(); } } private void buildPartial0(org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenTypeInfo result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.filePath_ = filePath_; } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenTypeInfo) { return mergeFrom((org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenTypeInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenTypeInfo other) { if (other == org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenTypeInfo.getDefaultInstance()) return this; if (!other.getFilePath().isEmpty()) { filePath_ = other.filePath_; bitField0_ |= 0x00000001; onChanged(); } if (tokenInfoBuilder_ == null) { if (!other.tokenInfo_.isEmpty()) { if (tokenInfo_.isEmpty()) { tokenInfo_ = other.tokenInfo_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureTokenInfoIsMutable(); tokenInfo_.addAll(other.tokenInfo_); } onChanged(); } } else { if (!other.tokenInfo_.isEmpty()) { if (tokenInfoBuilder_.isEmpty()) { tokenInfoBuilder_.dispose(); tokenInfoBuilder_ = null; tokenInfo_ = other.tokenInfo_; bitField0_ = (bitField0_ & ~0x00000002); tokenInfoBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getTokenInfoFieldBuilder() : null; } else { tokenInfoBuilder_.addAllMessages(other.tokenInfo_); } } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { filePath_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenTypeInfo.TokenInfo m = input.readMessage( org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenTypeInfo.TokenInfo.parser(), extensionRegistry); if (tokenInfoBuilder_ == null) { ensureTokenInfoIsMutable(); tokenInfo_.add(m); } else { tokenInfoBuilder_.addMessage(m); } break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object filePath_ = ""; /** * string file_path = 1; * @return The filePath. */ public java.lang.String getFilePath() { java.lang.Object ref = filePath_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filePath_ = s; return s; } else { return (java.lang.String) ref; } } /** * string file_path = 1; * @return The bytes for filePath. */ public com.google.protobuf.ByteString getFilePathBytes() { java.lang.Object ref = filePath_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); filePath_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string file_path = 1; * @param value The filePath to set. * @return This builder for chaining. */ public Builder setFilePath( java.lang.String value) { if (value == null) { throw new NullPointerException(); } filePath_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * string file_path = 1; * @return This builder for chaining. */ public Builder clearFilePath() { filePath_ = getDefaultInstance().getFilePath(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * string file_path = 1; * @param value The bytes for filePath to set. * @return This builder for chaining. */ public Builder setFilePathBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); filePath_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.util.List tokenInfo_ = java.util.Collections.emptyList(); private void ensureTokenInfoIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { tokenInfo_ = new java.util.ArrayList(tokenInfo_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilder< org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenTypeInfo.TokenInfo, org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenTypeInfo.TokenInfo.Builder, org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenTypeInfo.TokenInfoOrBuilder> tokenInfoBuilder_; /** * repeated .sonaranalyzer.TokenTypeInfo.TokenInfo token_info = 2; */ public java.util.List getTokenInfoList() { if (tokenInfoBuilder_ == null) { return java.util.Collections.unmodifiableList(tokenInfo_); } else { return tokenInfoBuilder_.getMessageList(); } } /** * repeated .sonaranalyzer.TokenTypeInfo.TokenInfo token_info = 2; */ public int getTokenInfoCount() { if (tokenInfoBuilder_ == null) { return tokenInfo_.size(); } else { return tokenInfoBuilder_.getCount(); } } /** * repeated .sonaranalyzer.TokenTypeInfo.TokenInfo token_info = 2; */ public org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenTypeInfo.TokenInfo getTokenInfo(int index) { if (tokenInfoBuilder_ == null) { return tokenInfo_.get(index); } else { return tokenInfoBuilder_.getMessage(index); } } /** * repeated .sonaranalyzer.TokenTypeInfo.TokenInfo token_info = 2; */ public Builder setTokenInfo( int index, org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenTypeInfo.TokenInfo value) { if (tokenInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTokenInfoIsMutable(); tokenInfo_.set(index, value); onChanged(); } else { tokenInfoBuilder_.setMessage(index, value); } return this; } /** * repeated .sonaranalyzer.TokenTypeInfo.TokenInfo token_info = 2; */ public Builder setTokenInfo( int index, org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenTypeInfo.TokenInfo.Builder builderForValue) { if (tokenInfoBuilder_ == null) { ensureTokenInfoIsMutable(); tokenInfo_.set(index, builderForValue.build()); onChanged(); } else { tokenInfoBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .sonaranalyzer.TokenTypeInfo.TokenInfo token_info = 2; */ public Builder addTokenInfo(org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenTypeInfo.TokenInfo value) { if (tokenInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTokenInfoIsMutable(); tokenInfo_.add(value); onChanged(); } else { tokenInfoBuilder_.addMessage(value); } return this; } /** * repeated .sonaranalyzer.TokenTypeInfo.TokenInfo token_info = 2; */ public Builder addTokenInfo( int index, org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenTypeInfo.TokenInfo value) { if (tokenInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTokenInfoIsMutable(); tokenInfo_.add(index, value); onChanged(); } else { tokenInfoBuilder_.addMessage(index, value); } return this; } /** * repeated .sonaranalyzer.TokenTypeInfo.TokenInfo token_info = 2; */ public Builder addTokenInfo( org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenTypeInfo.TokenInfo.Builder builderForValue) { if (tokenInfoBuilder_ == null) { ensureTokenInfoIsMutable(); tokenInfo_.add(builderForValue.build()); onChanged(); } else { tokenInfoBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .sonaranalyzer.TokenTypeInfo.TokenInfo token_info = 2; */ public Builder addTokenInfo( int index, org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenTypeInfo.TokenInfo.Builder builderForValue) { if (tokenInfoBuilder_ == null) { ensureTokenInfoIsMutable(); tokenInfo_.add(index, builderForValue.build()); onChanged(); } else { tokenInfoBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .sonaranalyzer.TokenTypeInfo.TokenInfo token_info = 2; */ public Builder addAllTokenInfo( java.lang.Iterable values) { if (tokenInfoBuilder_ == null) { ensureTokenInfoIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, tokenInfo_); onChanged(); } else { tokenInfoBuilder_.addAllMessages(values); } return this; } /** * repeated .sonaranalyzer.TokenTypeInfo.TokenInfo token_info = 2; */ public Builder clearTokenInfo() { if (tokenInfoBuilder_ == null) { tokenInfo_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { tokenInfoBuilder_.clear(); } return this; } /** * repeated .sonaranalyzer.TokenTypeInfo.TokenInfo token_info = 2; */ public Builder removeTokenInfo(int index) { if (tokenInfoBuilder_ == null) { ensureTokenInfoIsMutable(); tokenInfo_.remove(index); onChanged(); } else { tokenInfoBuilder_.remove(index); } return this; } /** * repeated .sonaranalyzer.TokenTypeInfo.TokenInfo token_info = 2; */ public org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenTypeInfo.TokenInfo.Builder getTokenInfoBuilder( int index) { return getTokenInfoFieldBuilder().getBuilder(index); } /** * repeated .sonaranalyzer.TokenTypeInfo.TokenInfo token_info = 2; */ public org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenTypeInfo.TokenInfoOrBuilder getTokenInfoOrBuilder( int index) { if (tokenInfoBuilder_ == null) { return tokenInfo_.get(index); } else { return tokenInfoBuilder_.getMessageOrBuilder(index); } } /** * repeated .sonaranalyzer.TokenTypeInfo.TokenInfo token_info = 2; */ public java.util.List getTokenInfoOrBuilderList() { if (tokenInfoBuilder_ != null) { return tokenInfoBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(tokenInfo_); } } /** * repeated .sonaranalyzer.TokenTypeInfo.TokenInfo token_info = 2; */ public org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenTypeInfo.TokenInfo.Builder addTokenInfoBuilder() { return getTokenInfoFieldBuilder().addBuilder( org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenTypeInfo.TokenInfo.getDefaultInstance()); } /** * repeated .sonaranalyzer.TokenTypeInfo.TokenInfo token_info = 2; */ public org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenTypeInfo.TokenInfo.Builder addTokenInfoBuilder( int index) { return getTokenInfoFieldBuilder().addBuilder( index, org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenTypeInfo.TokenInfo.getDefaultInstance()); } /** * repeated .sonaranalyzer.TokenTypeInfo.TokenInfo token_info = 2; */ public java.util.List getTokenInfoBuilderList() { return getTokenInfoFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenTypeInfo.TokenInfo, org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenTypeInfo.TokenInfo.Builder, org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenTypeInfo.TokenInfoOrBuilder> getTokenInfoFieldBuilder() { if (tokenInfoBuilder_ == null) { tokenInfoBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenTypeInfo.TokenInfo, org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenTypeInfo.TokenInfo.Builder, org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenTypeInfo.TokenInfoOrBuilder>( tokenInfo_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); tokenInfo_ = null; } return tokenInfoBuilder_; } // @@protoc_insertion_point(builder_scope:sonaranalyzer.TokenTypeInfo) } // @@protoc_insertion_point(class_scope:sonaranalyzer.TokenTypeInfo) private static final org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenTypeInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenTypeInfo(); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenTypeInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TokenTypeInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.sonarsource.dotnet.protobuf.SonarAnalyzer.TokenTypeInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SymbolReferenceInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:sonaranalyzer.SymbolReferenceInfo) com.google.protobuf.MessageOrBuilder { /** * string file_path = 1; * @return The filePath. */ java.lang.String getFilePath(); /** * string file_path = 1; * @return The bytes for filePath. */ com.google.protobuf.ByteString getFilePathBytes(); /** * repeated .sonaranalyzer.SymbolReferenceInfo.SymbolReference reference = 2; */ java.util.List getReferenceList(); /** * repeated .sonaranalyzer.SymbolReferenceInfo.SymbolReference reference = 2; */ org.sonarsource.dotnet.protobuf.SonarAnalyzer.SymbolReferenceInfo.SymbolReference getReference(int index); /** * repeated .sonaranalyzer.SymbolReferenceInfo.SymbolReference reference = 2; */ int getReferenceCount(); /** * repeated .sonaranalyzer.SymbolReferenceInfo.SymbolReference reference = 2; */ java.util.List getReferenceOrBuilderList(); /** * repeated .sonaranalyzer.SymbolReferenceInfo.SymbolReference reference = 2; */ org.sonarsource.dotnet.protobuf.SonarAnalyzer.SymbolReferenceInfo.SymbolReferenceOrBuilder getReferenceOrBuilder( int index); } /** *
   * Used for symbol reference highlighting
   * 
* * Protobuf type {@code sonaranalyzer.SymbolReferenceInfo} */ public static final class SymbolReferenceInfo extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:sonaranalyzer.SymbolReferenceInfo) SymbolReferenceInfoOrBuilder { private static final long serialVersionUID = 0L; static { com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, /* minor= */ 27, /* patch= */ 0, /* suffix= */ "", SymbolReferenceInfo.class.getName()); } // Use SymbolReferenceInfo.newBuilder() to construct. private SymbolReferenceInfo(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private SymbolReferenceInfo() { filePath_ = ""; reference_ = java.util.Collections.emptyList(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.sonarsource.dotnet.protobuf.SonarAnalyzer.internal_static_sonaranalyzer_SymbolReferenceInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.sonarsource.dotnet.protobuf.SonarAnalyzer.internal_static_sonaranalyzer_SymbolReferenceInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.sonarsource.dotnet.protobuf.SonarAnalyzer.SymbolReferenceInfo.class, org.sonarsource.dotnet.protobuf.SonarAnalyzer.SymbolReferenceInfo.Builder.class); } public interface SymbolReferenceOrBuilder extends // @@protoc_insertion_point(interface_extends:sonaranalyzer.SymbolReferenceInfo.SymbolReference) com.google.protobuf.MessageOrBuilder { /** * .sonaranalyzer.TextRange declaration = 1; * @return Whether the declaration field is set. */ boolean hasDeclaration(); /** * .sonaranalyzer.TextRange declaration = 1; * @return The declaration. */ org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange getDeclaration(); /** * .sonaranalyzer.TextRange declaration = 1; */ org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRangeOrBuilder getDeclarationOrBuilder(); /** * repeated .sonaranalyzer.TextRange reference = 2; */ java.util.List getReferenceList(); /** * repeated .sonaranalyzer.TextRange reference = 2; */ org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange getReference(int index); /** * repeated .sonaranalyzer.TextRange reference = 2; */ int getReferenceCount(); /** * repeated .sonaranalyzer.TextRange reference = 2; */ java.util.List getReferenceOrBuilderList(); /** * repeated .sonaranalyzer.TextRange reference = 2; */ org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRangeOrBuilder getReferenceOrBuilder( int index); } /** * Protobuf type {@code sonaranalyzer.SymbolReferenceInfo.SymbolReference} */ public static final class SymbolReference extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:sonaranalyzer.SymbolReferenceInfo.SymbolReference) SymbolReferenceOrBuilder { private static final long serialVersionUID = 0L; static { com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, /* minor= */ 27, /* patch= */ 0, /* suffix= */ "", SymbolReference.class.getName()); } // Use SymbolReference.newBuilder() to construct. private SymbolReference(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private SymbolReference() { reference_ = java.util.Collections.emptyList(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.sonarsource.dotnet.protobuf.SonarAnalyzer.internal_static_sonaranalyzer_SymbolReferenceInfo_SymbolReference_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.sonarsource.dotnet.protobuf.SonarAnalyzer.internal_static_sonaranalyzer_SymbolReferenceInfo_SymbolReference_fieldAccessorTable .ensureFieldAccessorsInitialized( org.sonarsource.dotnet.protobuf.SonarAnalyzer.SymbolReferenceInfo.SymbolReference.class, org.sonarsource.dotnet.protobuf.SonarAnalyzer.SymbolReferenceInfo.SymbolReference.Builder.class); } private int bitField0_; public static final int DECLARATION_FIELD_NUMBER = 1; private org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange declaration_; /** * .sonaranalyzer.TextRange declaration = 1; * @return Whether the declaration field is set. */ @java.lang.Override public boolean hasDeclaration() { return ((bitField0_ & 0x00000001) != 0); } /** * .sonaranalyzer.TextRange declaration = 1; * @return The declaration. */ @java.lang.Override public org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange getDeclaration() { return declaration_ == null ? org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange.getDefaultInstance() : declaration_; } /** * .sonaranalyzer.TextRange declaration = 1; */ @java.lang.Override public org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRangeOrBuilder getDeclarationOrBuilder() { return declaration_ == null ? org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange.getDefaultInstance() : declaration_; } public static final int REFERENCE_FIELD_NUMBER = 2; @SuppressWarnings("serial") private java.util.List reference_; /** * repeated .sonaranalyzer.TextRange reference = 2; */ @java.lang.Override public java.util.List getReferenceList() { return reference_; } /** * repeated .sonaranalyzer.TextRange reference = 2; */ @java.lang.Override public java.util.List getReferenceOrBuilderList() { return reference_; } /** * repeated .sonaranalyzer.TextRange reference = 2; */ @java.lang.Override public int getReferenceCount() { return reference_.size(); } /** * repeated .sonaranalyzer.TextRange reference = 2; */ @java.lang.Override public org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange getReference(int index) { return reference_.get(index); } /** * repeated .sonaranalyzer.TextRange reference = 2; */ @java.lang.Override public org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRangeOrBuilder getReferenceOrBuilder( int index) { return reference_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getDeclaration()); } for (int i = 0; i < reference_.size(); i++) { output.writeMessage(2, reference_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getDeclaration()); } for (int i = 0; i < reference_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, reference_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.sonarsource.dotnet.protobuf.SonarAnalyzer.SymbolReferenceInfo.SymbolReference)) { return super.equals(obj); } org.sonarsource.dotnet.protobuf.SonarAnalyzer.SymbolReferenceInfo.SymbolReference other = (org.sonarsource.dotnet.protobuf.SonarAnalyzer.SymbolReferenceInfo.SymbolReference) obj; if (hasDeclaration() != other.hasDeclaration()) return false; if (hasDeclaration()) { if (!getDeclaration() .equals(other.getDeclaration())) return false; } if (!getReferenceList() .equals(other.getReferenceList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasDeclaration()) { hash = (37 * hash) + DECLARATION_FIELD_NUMBER; hash = (53 * hash) + getDeclaration().hashCode(); } if (getReferenceCount() > 0) { hash = (37 * hash) + REFERENCE_FIELD_NUMBER; hash = (53 * hash) + getReferenceList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.SymbolReferenceInfo.SymbolReference parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.SymbolReferenceInfo.SymbolReference parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.SymbolReferenceInfo.SymbolReference parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.SymbolReferenceInfo.SymbolReference parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.SymbolReferenceInfo.SymbolReference parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.SymbolReferenceInfo.SymbolReference parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.SymbolReferenceInfo.SymbolReference parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.SymbolReferenceInfo.SymbolReference parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.SymbolReferenceInfo.SymbolReference parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.SymbolReferenceInfo.SymbolReference parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.SymbolReferenceInfo.SymbolReference parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.SymbolReferenceInfo.SymbolReference parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.sonarsource.dotnet.protobuf.SonarAnalyzer.SymbolReferenceInfo.SymbolReference prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override 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 sonaranalyzer.SymbolReferenceInfo.SymbolReference} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:sonaranalyzer.SymbolReferenceInfo.SymbolReference) org.sonarsource.dotnet.protobuf.SonarAnalyzer.SymbolReferenceInfo.SymbolReferenceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.sonarsource.dotnet.protobuf.SonarAnalyzer.internal_static_sonaranalyzer_SymbolReferenceInfo_SymbolReference_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.sonarsource.dotnet.protobuf.SonarAnalyzer.internal_static_sonaranalyzer_SymbolReferenceInfo_SymbolReference_fieldAccessorTable .ensureFieldAccessorsInitialized( org.sonarsource.dotnet.protobuf.SonarAnalyzer.SymbolReferenceInfo.SymbolReference.class, org.sonarsource.dotnet.protobuf.SonarAnalyzer.SymbolReferenceInfo.SymbolReference.Builder.class); } // Construct using org.sonarsource.dotnet.protobuf.SonarAnalyzer.SymbolReferenceInfo.SymbolReference.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { getDeclarationFieldBuilder(); getReferenceFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; declaration_ = null; if (declarationBuilder_ != null) { declarationBuilder_.dispose(); declarationBuilder_ = null; } if (referenceBuilder_ == null) { reference_ = java.util.Collections.emptyList(); } else { reference_ = null; referenceBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.sonarsource.dotnet.protobuf.SonarAnalyzer.internal_static_sonaranalyzer_SymbolReferenceInfo_SymbolReference_descriptor; } @java.lang.Override public org.sonarsource.dotnet.protobuf.SonarAnalyzer.SymbolReferenceInfo.SymbolReference getDefaultInstanceForType() { return org.sonarsource.dotnet.protobuf.SonarAnalyzer.SymbolReferenceInfo.SymbolReference.getDefaultInstance(); } @java.lang.Override public org.sonarsource.dotnet.protobuf.SonarAnalyzer.SymbolReferenceInfo.SymbolReference build() { org.sonarsource.dotnet.protobuf.SonarAnalyzer.SymbolReferenceInfo.SymbolReference result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.sonarsource.dotnet.protobuf.SonarAnalyzer.SymbolReferenceInfo.SymbolReference buildPartial() { org.sonarsource.dotnet.protobuf.SonarAnalyzer.SymbolReferenceInfo.SymbolReference result = new org.sonarsource.dotnet.protobuf.SonarAnalyzer.SymbolReferenceInfo.SymbolReference(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(org.sonarsource.dotnet.protobuf.SonarAnalyzer.SymbolReferenceInfo.SymbolReference result) { if (referenceBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { reference_ = java.util.Collections.unmodifiableList(reference_); bitField0_ = (bitField0_ & ~0x00000002); } result.reference_ = reference_; } else { result.reference_ = referenceBuilder_.build(); } } private void buildPartial0(org.sonarsource.dotnet.protobuf.SonarAnalyzer.SymbolReferenceInfo.SymbolReference result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.declaration_ = declarationBuilder_ == null ? declaration_ : declarationBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.sonarsource.dotnet.protobuf.SonarAnalyzer.SymbolReferenceInfo.SymbolReference) { return mergeFrom((org.sonarsource.dotnet.protobuf.SonarAnalyzer.SymbolReferenceInfo.SymbolReference)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.sonarsource.dotnet.protobuf.SonarAnalyzer.SymbolReferenceInfo.SymbolReference other) { if (other == org.sonarsource.dotnet.protobuf.SonarAnalyzer.SymbolReferenceInfo.SymbolReference.getDefaultInstance()) return this; if (other.hasDeclaration()) { mergeDeclaration(other.getDeclaration()); } if (referenceBuilder_ == null) { if (!other.reference_.isEmpty()) { if (reference_.isEmpty()) { reference_ = other.reference_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureReferenceIsMutable(); reference_.addAll(other.reference_); } onChanged(); } } else { if (!other.reference_.isEmpty()) { if (referenceBuilder_.isEmpty()) { referenceBuilder_.dispose(); referenceBuilder_ = null; reference_ = other.reference_; bitField0_ = (bitField0_ & ~0x00000002); referenceBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getReferenceFieldBuilder() : null; } else { referenceBuilder_.addAllMessages(other.reference_); } } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getDeclarationFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange m = input.readMessage( org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange.parser(), extensionRegistry); if (referenceBuilder_ == null) { ensureReferenceIsMutable(); reference_.add(m); } else { referenceBuilder_.addMessage(m); } break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange declaration_; private com.google.protobuf.SingleFieldBuilder< org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange, org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange.Builder, org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRangeOrBuilder> declarationBuilder_; /** * .sonaranalyzer.TextRange declaration = 1; * @return Whether the declaration field is set. */ public boolean hasDeclaration() { return ((bitField0_ & 0x00000001) != 0); } /** * .sonaranalyzer.TextRange declaration = 1; * @return The declaration. */ public org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange getDeclaration() { if (declarationBuilder_ == null) { return declaration_ == null ? org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange.getDefaultInstance() : declaration_; } else { return declarationBuilder_.getMessage(); } } /** * .sonaranalyzer.TextRange declaration = 1; */ public Builder setDeclaration(org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange value) { if (declarationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } declaration_ = value; } else { declarationBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .sonaranalyzer.TextRange declaration = 1; */ public Builder setDeclaration( org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange.Builder builderForValue) { if (declarationBuilder_ == null) { declaration_ = builderForValue.build(); } else { declarationBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .sonaranalyzer.TextRange declaration = 1; */ public Builder mergeDeclaration(org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange value) { if (declarationBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && declaration_ != null && declaration_ != org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange.getDefaultInstance()) { getDeclarationBuilder().mergeFrom(value); } else { declaration_ = value; } } else { declarationBuilder_.mergeFrom(value); } if (declaration_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * .sonaranalyzer.TextRange declaration = 1; */ public Builder clearDeclaration() { bitField0_ = (bitField0_ & ~0x00000001); declaration_ = null; if (declarationBuilder_ != null) { declarationBuilder_.dispose(); declarationBuilder_ = null; } onChanged(); return this; } /** * .sonaranalyzer.TextRange declaration = 1; */ public org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange.Builder getDeclarationBuilder() { bitField0_ |= 0x00000001; onChanged(); return getDeclarationFieldBuilder().getBuilder(); } /** * .sonaranalyzer.TextRange declaration = 1; */ public org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRangeOrBuilder getDeclarationOrBuilder() { if (declarationBuilder_ != null) { return declarationBuilder_.getMessageOrBuilder(); } else { return declaration_ == null ? org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange.getDefaultInstance() : declaration_; } } /** * .sonaranalyzer.TextRange declaration = 1; */ private com.google.protobuf.SingleFieldBuilder< org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange, org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange.Builder, org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRangeOrBuilder> getDeclarationFieldBuilder() { if (declarationBuilder_ == null) { declarationBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange, org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange.Builder, org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRangeOrBuilder>( getDeclaration(), getParentForChildren(), isClean()); declaration_ = null; } return declarationBuilder_; } private java.util.List reference_ = java.util.Collections.emptyList(); private void ensureReferenceIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { reference_ = new java.util.ArrayList(reference_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilder< org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange, org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange.Builder, org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRangeOrBuilder> referenceBuilder_; /** * repeated .sonaranalyzer.TextRange reference = 2; */ public java.util.List getReferenceList() { if (referenceBuilder_ == null) { return java.util.Collections.unmodifiableList(reference_); } else { return referenceBuilder_.getMessageList(); } } /** * repeated .sonaranalyzer.TextRange reference = 2; */ public int getReferenceCount() { if (referenceBuilder_ == null) { return reference_.size(); } else { return referenceBuilder_.getCount(); } } /** * repeated .sonaranalyzer.TextRange reference = 2; */ public org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange getReference(int index) { if (referenceBuilder_ == null) { return reference_.get(index); } else { return referenceBuilder_.getMessage(index); } } /** * repeated .sonaranalyzer.TextRange reference = 2; */ public Builder setReference( int index, org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange value) { if (referenceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureReferenceIsMutable(); reference_.set(index, value); onChanged(); } else { referenceBuilder_.setMessage(index, value); } return this; } /** * repeated .sonaranalyzer.TextRange reference = 2; */ public Builder setReference( int index, org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange.Builder builderForValue) { if (referenceBuilder_ == null) { ensureReferenceIsMutable(); reference_.set(index, builderForValue.build()); onChanged(); } else { referenceBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .sonaranalyzer.TextRange reference = 2; */ public Builder addReference(org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange value) { if (referenceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureReferenceIsMutable(); reference_.add(value); onChanged(); } else { referenceBuilder_.addMessage(value); } return this; } /** * repeated .sonaranalyzer.TextRange reference = 2; */ public Builder addReference( int index, org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange value) { if (referenceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureReferenceIsMutable(); reference_.add(index, value); onChanged(); } else { referenceBuilder_.addMessage(index, value); } return this; } /** * repeated .sonaranalyzer.TextRange reference = 2; */ public Builder addReference( org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange.Builder builderForValue) { if (referenceBuilder_ == null) { ensureReferenceIsMutable(); reference_.add(builderForValue.build()); onChanged(); } else { referenceBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .sonaranalyzer.TextRange reference = 2; */ public Builder addReference( int index, org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange.Builder builderForValue) { if (referenceBuilder_ == null) { ensureReferenceIsMutable(); reference_.add(index, builderForValue.build()); onChanged(); } else { referenceBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .sonaranalyzer.TextRange reference = 2; */ public Builder addAllReference( java.lang.Iterable values) { if (referenceBuilder_ == null) { ensureReferenceIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, reference_); onChanged(); } else { referenceBuilder_.addAllMessages(values); } return this; } /** * repeated .sonaranalyzer.TextRange reference = 2; */ public Builder clearReference() { if (referenceBuilder_ == null) { reference_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { referenceBuilder_.clear(); } return this; } /** * repeated .sonaranalyzer.TextRange reference = 2; */ public Builder removeReference(int index) { if (referenceBuilder_ == null) { ensureReferenceIsMutable(); reference_.remove(index); onChanged(); } else { referenceBuilder_.remove(index); } return this; } /** * repeated .sonaranalyzer.TextRange reference = 2; */ public org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange.Builder getReferenceBuilder( int index) { return getReferenceFieldBuilder().getBuilder(index); } /** * repeated .sonaranalyzer.TextRange reference = 2; */ public org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRangeOrBuilder getReferenceOrBuilder( int index) { if (referenceBuilder_ == null) { return reference_.get(index); } else { return referenceBuilder_.getMessageOrBuilder(index); } } /** * repeated .sonaranalyzer.TextRange reference = 2; */ public java.util.List getReferenceOrBuilderList() { if (referenceBuilder_ != null) { return referenceBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(reference_); } } /** * repeated .sonaranalyzer.TextRange reference = 2; */ public org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange.Builder addReferenceBuilder() { return getReferenceFieldBuilder().addBuilder( org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange.getDefaultInstance()); } /** * repeated .sonaranalyzer.TextRange reference = 2; */ public org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange.Builder addReferenceBuilder( int index) { return getReferenceFieldBuilder().addBuilder( index, org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange.getDefaultInstance()); } /** * repeated .sonaranalyzer.TextRange reference = 2; */ public java.util.List getReferenceBuilderList() { return getReferenceFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange, org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange.Builder, org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRangeOrBuilder> getReferenceFieldBuilder() { if (referenceBuilder_ == null) { referenceBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange, org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange.Builder, org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRangeOrBuilder>( reference_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); reference_ = null; } return referenceBuilder_; } // @@protoc_insertion_point(builder_scope:sonaranalyzer.SymbolReferenceInfo.SymbolReference) } // @@protoc_insertion_point(class_scope:sonaranalyzer.SymbolReferenceInfo.SymbolReference) private static final org.sonarsource.dotnet.protobuf.SonarAnalyzer.SymbolReferenceInfo.SymbolReference DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.sonarsource.dotnet.protobuf.SonarAnalyzer.SymbolReferenceInfo.SymbolReference(); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.SymbolReferenceInfo.SymbolReference getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SymbolReference parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.sonarsource.dotnet.protobuf.SonarAnalyzer.SymbolReferenceInfo.SymbolReference getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int FILE_PATH_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object filePath_ = ""; /** * string file_path = 1; * @return The filePath. */ @java.lang.Override public java.lang.String getFilePath() { java.lang.Object ref = filePath_; 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(); filePath_ = s; return s; } } /** * string file_path = 1; * @return The bytes for filePath. */ @java.lang.Override public com.google.protobuf.ByteString getFilePathBytes() { java.lang.Object ref = filePath_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); filePath_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int REFERENCE_FIELD_NUMBER = 2; @SuppressWarnings("serial") private java.util.List reference_; /** * repeated .sonaranalyzer.SymbolReferenceInfo.SymbolReference reference = 2; */ @java.lang.Override public java.util.List getReferenceList() { return reference_; } /** * repeated .sonaranalyzer.SymbolReferenceInfo.SymbolReference reference = 2; */ @java.lang.Override public java.util.List getReferenceOrBuilderList() { return reference_; } /** * repeated .sonaranalyzer.SymbolReferenceInfo.SymbolReference reference = 2; */ @java.lang.Override public int getReferenceCount() { return reference_.size(); } /** * repeated .sonaranalyzer.SymbolReferenceInfo.SymbolReference reference = 2; */ @java.lang.Override public org.sonarsource.dotnet.protobuf.SonarAnalyzer.SymbolReferenceInfo.SymbolReference getReference(int index) { return reference_.get(index); } /** * repeated .sonaranalyzer.SymbolReferenceInfo.SymbolReference reference = 2; */ @java.lang.Override public org.sonarsource.dotnet.protobuf.SonarAnalyzer.SymbolReferenceInfo.SymbolReferenceOrBuilder getReferenceOrBuilder( int index) { return reference_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filePath_)) { com.google.protobuf.GeneratedMessage.writeString(output, 1, filePath_); } for (int i = 0; i < reference_.size(); i++) { output.writeMessage(2, reference_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filePath_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(1, filePath_); } for (int i = 0; i < reference_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, reference_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.sonarsource.dotnet.protobuf.SonarAnalyzer.SymbolReferenceInfo)) { return super.equals(obj); } org.sonarsource.dotnet.protobuf.SonarAnalyzer.SymbolReferenceInfo other = (org.sonarsource.dotnet.protobuf.SonarAnalyzer.SymbolReferenceInfo) obj; if (!getFilePath() .equals(other.getFilePath())) return false; if (!getReferenceList() .equals(other.getReferenceList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + FILE_PATH_FIELD_NUMBER; hash = (53 * hash) + getFilePath().hashCode(); if (getReferenceCount() > 0) { hash = (37 * hash) + REFERENCE_FIELD_NUMBER; hash = (53 * hash) + getReferenceList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.SymbolReferenceInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.SymbolReferenceInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.SymbolReferenceInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.SymbolReferenceInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.SymbolReferenceInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.SymbolReferenceInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.SymbolReferenceInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.SymbolReferenceInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.SymbolReferenceInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.SymbolReferenceInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.SymbolReferenceInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.SymbolReferenceInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.sonarsource.dotnet.protobuf.SonarAnalyzer.SymbolReferenceInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override 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; } /** *
     * Used for symbol reference highlighting
     * 
* * Protobuf type {@code sonaranalyzer.SymbolReferenceInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:sonaranalyzer.SymbolReferenceInfo) org.sonarsource.dotnet.protobuf.SonarAnalyzer.SymbolReferenceInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.sonarsource.dotnet.protobuf.SonarAnalyzer.internal_static_sonaranalyzer_SymbolReferenceInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.sonarsource.dotnet.protobuf.SonarAnalyzer.internal_static_sonaranalyzer_SymbolReferenceInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.sonarsource.dotnet.protobuf.SonarAnalyzer.SymbolReferenceInfo.class, org.sonarsource.dotnet.protobuf.SonarAnalyzer.SymbolReferenceInfo.Builder.class); } // Construct using org.sonarsource.dotnet.protobuf.SonarAnalyzer.SymbolReferenceInfo.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; filePath_ = ""; if (referenceBuilder_ == null) { reference_ = java.util.Collections.emptyList(); } else { reference_ = null; referenceBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.sonarsource.dotnet.protobuf.SonarAnalyzer.internal_static_sonaranalyzer_SymbolReferenceInfo_descriptor; } @java.lang.Override public org.sonarsource.dotnet.protobuf.SonarAnalyzer.SymbolReferenceInfo getDefaultInstanceForType() { return org.sonarsource.dotnet.protobuf.SonarAnalyzer.SymbolReferenceInfo.getDefaultInstance(); } @java.lang.Override public org.sonarsource.dotnet.protobuf.SonarAnalyzer.SymbolReferenceInfo build() { org.sonarsource.dotnet.protobuf.SonarAnalyzer.SymbolReferenceInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.sonarsource.dotnet.protobuf.SonarAnalyzer.SymbolReferenceInfo buildPartial() { org.sonarsource.dotnet.protobuf.SonarAnalyzer.SymbolReferenceInfo result = new org.sonarsource.dotnet.protobuf.SonarAnalyzer.SymbolReferenceInfo(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(org.sonarsource.dotnet.protobuf.SonarAnalyzer.SymbolReferenceInfo result) { if (referenceBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { reference_ = java.util.Collections.unmodifiableList(reference_); bitField0_ = (bitField0_ & ~0x00000002); } result.reference_ = reference_; } else { result.reference_ = referenceBuilder_.build(); } } private void buildPartial0(org.sonarsource.dotnet.protobuf.SonarAnalyzer.SymbolReferenceInfo result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.filePath_ = filePath_; } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.sonarsource.dotnet.protobuf.SonarAnalyzer.SymbolReferenceInfo) { return mergeFrom((org.sonarsource.dotnet.protobuf.SonarAnalyzer.SymbolReferenceInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.sonarsource.dotnet.protobuf.SonarAnalyzer.SymbolReferenceInfo other) { if (other == org.sonarsource.dotnet.protobuf.SonarAnalyzer.SymbolReferenceInfo.getDefaultInstance()) return this; if (!other.getFilePath().isEmpty()) { filePath_ = other.filePath_; bitField0_ |= 0x00000001; onChanged(); } if (referenceBuilder_ == null) { if (!other.reference_.isEmpty()) { if (reference_.isEmpty()) { reference_ = other.reference_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureReferenceIsMutable(); reference_.addAll(other.reference_); } onChanged(); } } else { if (!other.reference_.isEmpty()) { if (referenceBuilder_.isEmpty()) { referenceBuilder_.dispose(); referenceBuilder_ = null; reference_ = other.reference_; bitField0_ = (bitField0_ & ~0x00000002); referenceBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getReferenceFieldBuilder() : null; } else { referenceBuilder_.addAllMessages(other.reference_); } } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { filePath_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { org.sonarsource.dotnet.protobuf.SonarAnalyzer.SymbolReferenceInfo.SymbolReference m = input.readMessage( org.sonarsource.dotnet.protobuf.SonarAnalyzer.SymbolReferenceInfo.SymbolReference.parser(), extensionRegistry); if (referenceBuilder_ == null) { ensureReferenceIsMutable(); reference_.add(m); } else { referenceBuilder_.addMessage(m); } break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object filePath_ = ""; /** * string file_path = 1; * @return The filePath. */ public java.lang.String getFilePath() { java.lang.Object ref = filePath_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filePath_ = s; return s; } else { return (java.lang.String) ref; } } /** * string file_path = 1; * @return The bytes for filePath. */ public com.google.protobuf.ByteString getFilePathBytes() { java.lang.Object ref = filePath_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); filePath_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string file_path = 1; * @param value The filePath to set. * @return This builder for chaining. */ public Builder setFilePath( java.lang.String value) { if (value == null) { throw new NullPointerException(); } filePath_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * string file_path = 1; * @return This builder for chaining. */ public Builder clearFilePath() { filePath_ = getDefaultInstance().getFilePath(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * string file_path = 1; * @param value The bytes for filePath to set. * @return This builder for chaining. */ public Builder setFilePathBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); filePath_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.util.List reference_ = java.util.Collections.emptyList(); private void ensureReferenceIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { reference_ = new java.util.ArrayList(reference_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilder< org.sonarsource.dotnet.protobuf.SonarAnalyzer.SymbolReferenceInfo.SymbolReference, org.sonarsource.dotnet.protobuf.SonarAnalyzer.SymbolReferenceInfo.SymbolReference.Builder, org.sonarsource.dotnet.protobuf.SonarAnalyzer.SymbolReferenceInfo.SymbolReferenceOrBuilder> referenceBuilder_; /** * repeated .sonaranalyzer.SymbolReferenceInfo.SymbolReference reference = 2; */ public java.util.List getReferenceList() { if (referenceBuilder_ == null) { return java.util.Collections.unmodifiableList(reference_); } else { return referenceBuilder_.getMessageList(); } } /** * repeated .sonaranalyzer.SymbolReferenceInfo.SymbolReference reference = 2; */ public int getReferenceCount() { if (referenceBuilder_ == null) { return reference_.size(); } else { return referenceBuilder_.getCount(); } } /** * repeated .sonaranalyzer.SymbolReferenceInfo.SymbolReference reference = 2; */ public org.sonarsource.dotnet.protobuf.SonarAnalyzer.SymbolReferenceInfo.SymbolReference getReference(int index) { if (referenceBuilder_ == null) { return reference_.get(index); } else { return referenceBuilder_.getMessage(index); } } /** * repeated .sonaranalyzer.SymbolReferenceInfo.SymbolReference reference = 2; */ public Builder setReference( int index, org.sonarsource.dotnet.protobuf.SonarAnalyzer.SymbolReferenceInfo.SymbolReference value) { if (referenceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureReferenceIsMutable(); reference_.set(index, value); onChanged(); } else { referenceBuilder_.setMessage(index, value); } return this; } /** * repeated .sonaranalyzer.SymbolReferenceInfo.SymbolReference reference = 2; */ public Builder setReference( int index, org.sonarsource.dotnet.protobuf.SonarAnalyzer.SymbolReferenceInfo.SymbolReference.Builder builderForValue) { if (referenceBuilder_ == null) { ensureReferenceIsMutable(); reference_.set(index, builderForValue.build()); onChanged(); } else { referenceBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .sonaranalyzer.SymbolReferenceInfo.SymbolReference reference = 2; */ public Builder addReference(org.sonarsource.dotnet.protobuf.SonarAnalyzer.SymbolReferenceInfo.SymbolReference value) { if (referenceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureReferenceIsMutable(); reference_.add(value); onChanged(); } else { referenceBuilder_.addMessage(value); } return this; } /** * repeated .sonaranalyzer.SymbolReferenceInfo.SymbolReference reference = 2; */ public Builder addReference( int index, org.sonarsource.dotnet.protobuf.SonarAnalyzer.SymbolReferenceInfo.SymbolReference value) { if (referenceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureReferenceIsMutable(); reference_.add(index, value); onChanged(); } else { referenceBuilder_.addMessage(index, value); } return this; } /** * repeated .sonaranalyzer.SymbolReferenceInfo.SymbolReference reference = 2; */ public Builder addReference( org.sonarsource.dotnet.protobuf.SonarAnalyzer.SymbolReferenceInfo.SymbolReference.Builder builderForValue) { if (referenceBuilder_ == null) { ensureReferenceIsMutable(); reference_.add(builderForValue.build()); onChanged(); } else { referenceBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .sonaranalyzer.SymbolReferenceInfo.SymbolReference reference = 2; */ public Builder addReference( int index, org.sonarsource.dotnet.protobuf.SonarAnalyzer.SymbolReferenceInfo.SymbolReference.Builder builderForValue) { if (referenceBuilder_ == null) { ensureReferenceIsMutable(); reference_.add(index, builderForValue.build()); onChanged(); } else { referenceBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .sonaranalyzer.SymbolReferenceInfo.SymbolReference reference = 2; */ public Builder addAllReference( java.lang.Iterable values) { if (referenceBuilder_ == null) { ensureReferenceIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, reference_); onChanged(); } else { referenceBuilder_.addAllMessages(values); } return this; } /** * repeated .sonaranalyzer.SymbolReferenceInfo.SymbolReference reference = 2; */ public Builder clearReference() { if (referenceBuilder_ == null) { reference_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { referenceBuilder_.clear(); } return this; } /** * repeated .sonaranalyzer.SymbolReferenceInfo.SymbolReference reference = 2; */ public Builder removeReference(int index) { if (referenceBuilder_ == null) { ensureReferenceIsMutable(); reference_.remove(index); onChanged(); } else { referenceBuilder_.remove(index); } return this; } /** * repeated .sonaranalyzer.SymbolReferenceInfo.SymbolReference reference = 2; */ public org.sonarsource.dotnet.protobuf.SonarAnalyzer.SymbolReferenceInfo.SymbolReference.Builder getReferenceBuilder( int index) { return getReferenceFieldBuilder().getBuilder(index); } /** * repeated .sonaranalyzer.SymbolReferenceInfo.SymbolReference reference = 2; */ public org.sonarsource.dotnet.protobuf.SonarAnalyzer.SymbolReferenceInfo.SymbolReferenceOrBuilder getReferenceOrBuilder( int index) { if (referenceBuilder_ == null) { return reference_.get(index); } else { return referenceBuilder_.getMessageOrBuilder(index); } } /** * repeated .sonaranalyzer.SymbolReferenceInfo.SymbolReference reference = 2; */ public java.util.List getReferenceOrBuilderList() { if (referenceBuilder_ != null) { return referenceBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(reference_); } } /** * repeated .sonaranalyzer.SymbolReferenceInfo.SymbolReference reference = 2; */ public org.sonarsource.dotnet.protobuf.SonarAnalyzer.SymbolReferenceInfo.SymbolReference.Builder addReferenceBuilder() { return getReferenceFieldBuilder().addBuilder( org.sonarsource.dotnet.protobuf.SonarAnalyzer.SymbolReferenceInfo.SymbolReference.getDefaultInstance()); } /** * repeated .sonaranalyzer.SymbolReferenceInfo.SymbolReference reference = 2; */ public org.sonarsource.dotnet.protobuf.SonarAnalyzer.SymbolReferenceInfo.SymbolReference.Builder addReferenceBuilder( int index) { return getReferenceFieldBuilder().addBuilder( index, org.sonarsource.dotnet.protobuf.SonarAnalyzer.SymbolReferenceInfo.SymbolReference.getDefaultInstance()); } /** * repeated .sonaranalyzer.SymbolReferenceInfo.SymbolReference reference = 2; */ public java.util.List getReferenceBuilderList() { return getReferenceFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< org.sonarsource.dotnet.protobuf.SonarAnalyzer.SymbolReferenceInfo.SymbolReference, org.sonarsource.dotnet.protobuf.SonarAnalyzer.SymbolReferenceInfo.SymbolReference.Builder, org.sonarsource.dotnet.protobuf.SonarAnalyzer.SymbolReferenceInfo.SymbolReferenceOrBuilder> getReferenceFieldBuilder() { if (referenceBuilder_ == null) { referenceBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< org.sonarsource.dotnet.protobuf.SonarAnalyzer.SymbolReferenceInfo.SymbolReference, org.sonarsource.dotnet.protobuf.SonarAnalyzer.SymbolReferenceInfo.SymbolReference.Builder, org.sonarsource.dotnet.protobuf.SonarAnalyzer.SymbolReferenceInfo.SymbolReferenceOrBuilder>( reference_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); reference_ = null; } return referenceBuilder_; } // @@protoc_insertion_point(builder_scope:sonaranalyzer.SymbolReferenceInfo) } // @@protoc_insertion_point(class_scope:sonaranalyzer.SymbolReferenceInfo) private static final org.sonarsource.dotnet.protobuf.SonarAnalyzer.SymbolReferenceInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.sonarsource.dotnet.protobuf.SonarAnalyzer.SymbolReferenceInfo(); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.SymbolReferenceInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SymbolReferenceInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.sonarsource.dotnet.protobuf.SonarAnalyzer.SymbolReferenceInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CopyPasteTokenInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:sonaranalyzer.CopyPasteTokenInfo) com.google.protobuf.MessageOrBuilder { /** * string file_path = 1; * @return The filePath. */ java.lang.String getFilePath(); /** * string file_path = 1; * @return The bytes for filePath. */ com.google.protobuf.ByteString getFilePathBytes(); /** * repeated .sonaranalyzer.CopyPasteTokenInfo.TokenInfo token_info = 2; */ java.util.List getTokenInfoList(); /** * repeated .sonaranalyzer.CopyPasteTokenInfo.TokenInfo token_info = 2; */ org.sonarsource.dotnet.protobuf.SonarAnalyzer.CopyPasteTokenInfo.TokenInfo getTokenInfo(int index); /** * repeated .sonaranalyzer.CopyPasteTokenInfo.TokenInfo token_info = 2; */ int getTokenInfoCount(); /** * repeated .sonaranalyzer.CopyPasteTokenInfo.TokenInfo token_info = 2; */ java.util.List getTokenInfoOrBuilderList(); /** * repeated .sonaranalyzer.CopyPasteTokenInfo.TokenInfo token_info = 2; */ org.sonarsource.dotnet.protobuf.SonarAnalyzer.CopyPasteTokenInfo.TokenInfoOrBuilder getTokenInfoOrBuilder( int index); } /** *
   * Used for copy-paste detection
   * 
* * Protobuf type {@code sonaranalyzer.CopyPasteTokenInfo} */ public static final class CopyPasteTokenInfo extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:sonaranalyzer.CopyPasteTokenInfo) CopyPasteTokenInfoOrBuilder { private static final long serialVersionUID = 0L; static { com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, /* minor= */ 27, /* patch= */ 0, /* suffix= */ "", CopyPasteTokenInfo.class.getName()); } // Use CopyPasteTokenInfo.newBuilder() to construct. private CopyPasteTokenInfo(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private CopyPasteTokenInfo() { filePath_ = ""; tokenInfo_ = java.util.Collections.emptyList(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.sonarsource.dotnet.protobuf.SonarAnalyzer.internal_static_sonaranalyzer_CopyPasteTokenInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.sonarsource.dotnet.protobuf.SonarAnalyzer.internal_static_sonaranalyzer_CopyPasteTokenInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.sonarsource.dotnet.protobuf.SonarAnalyzer.CopyPasteTokenInfo.class, org.sonarsource.dotnet.protobuf.SonarAnalyzer.CopyPasteTokenInfo.Builder.class); } public interface TokenInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:sonaranalyzer.CopyPasteTokenInfo.TokenInfo) com.google.protobuf.MessageOrBuilder { /** * string token_value = 1; * @return The tokenValue. */ java.lang.String getTokenValue(); /** * string token_value = 1; * @return The bytes for tokenValue. */ com.google.protobuf.ByteString getTokenValueBytes(); /** * .sonaranalyzer.TextRange text_range = 2; * @return Whether the textRange field is set. */ boolean hasTextRange(); /** * .sonaranalyzer.TextRange text_range = 2; * @return The textRange. */ org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange getTextRange(); /** * .sonaranalyzer.TextRange text_range = 2; */ org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRangeOrBuilder getTextRangeOrBuilder(); } /** * Protobuf type {@code sonaranalyzer.CopyPasteTokenInfo.TokenInfo} */ public static final class TokenInfo extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:sonaranalyzer.CopyPasteTokenInfo.TokenInfo) TokenInfoOrBuilder { private static final long serialVersionUID = 0L; static { com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, /* minor= */ 27, /* patch= */ 0, /* suffix= */ "", TokenInfo.class.getName()); } // Use TokenInfo.newBuilder() to construct. private TokenInfo(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private TokenInfo() { tokenValue_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.sonarsource.dotnet.protobuf.SonarAnalyzer.internal_static_sonaranalyzer_CopyPasteTokenInfo_TokenInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.sonarsource.dotnet.protobuf.SonarAnalyzer.internal_static_sonaranalyzer_CopyPasteTokenInfo_TokenInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.sonarsource.dotnet.protobuf.SonarAnalyzer.CopyPasteTokenInfo.TokenInfo.class, org.sonarsource.dotnet.protobuf.SonarAnalyzer.CopyPasteTokenInfo.TokenInfo.Builder.class); } private int bitField0_; public static final int TOKEN_VALUE_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object tokenValue_ = ""; /** * string token_value = 1; * @return The tokenValue. */ @java.lang.Override public java.lang.String getTokenValue() { java.lang.Object ref = tokenValue_; 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(); tokenValue_ = s; return s; } } /** * string token_value = 1; * @return The bytes for tokenValue. */ @java.lang.Override public com.google.protobuf.ByteString getTokenValueBytes() { java.lang.Object ref = tokenValue_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); tokenValue_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TEXT_RANGE_FIELD_NUMBER = 2; private org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange textRange_; /** * .sonaranalyzer.TextRange text_range = 2; * @return Whether the textRange field is set. */ @java.lang.Override public boolean hasTextRange() { return ((bitField0_ & 0x00000001) != 0); } /** * .sonaranalyzer.TextRange text_range = 2; * @return The textRange. */ @java.lang.Override public org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange getTextRange() { return textRange_ == null ? org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange.getDefaultInstance() : textRange_; } /** * .sonaranalyzer.TextRange text_range = 2; */ @java.lang.Override public org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRangeOrBuilder getTextRangeOrBuilder() { return textRange_ == null ? org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange.getDefaultInstance() : textRange_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(tokenValue_)) { com.google.protobuf.GeneratedMessage.writeString(output, 1, tokenValue_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getTextRange()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessage.isStringEmpty(tokenValue_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(1, tokenValue_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getTextRange()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.sonarsource.dotnet.protobuf.SonarAnalyzer.CopyPasteTokenInfo.TokenInfo)) { return super.equals(obj); } org.sonarsource.dotnet.protobuf.SonarAnalyzer.CopyPasteTokenInfo.TokenInfo other = (org.sonarsource.dotnet.protobuf.SonarAnalyzer.CopyPasteTokenInfo.TokenInfo) obj; if (!getTokenValue() .equals(other.getTokenValue())) return false; if (hasTextRange() != other.hasTextRange()) return false; if (hasTextRange()) { if (!getTextRange() .equals(other.getTextRange())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + TOKEN_VALUE_FIELD_NUMBER; hash = (53 * hash) + getTokenValue().hashCode(); if (hasTextRange()) { hash = (37 * hash) + TEXT_RANGE_FIELD_NUMBER; hash = (53 * hash) + getTextRange().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.CopyPasteTokenInfo.TokenInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.CopyPasteTokenInfo.TokenInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.CopyPasteTokenInfo.TokenInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.CopyPasteTokenInfo.TokenInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.CopyPasteTokenInfo.TokenInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.CopyPasteTokenInfo.TokenInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.CopyPasteTokenInfo.TokenInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.CopyPasteTokenInfo.TokenInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.CopyPasteTokenInfo.TokenInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.CopyPasteTokenInfo.TokenInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.CopyPasteTokenInfo.TokenInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.CopyPasteTokenInfo.TokenInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.sonarsource.dotnet.protobuf.SonarAnalyzer.CopyPasteTokenInfo.TokenInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override 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 sonaranalyzer.CopyPasteTokenInfo.TokenInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:sonaranalyzer.CopyPasteTokenInfo.TokenInfo) org.sonarsource.dotnet.protobuf.SonarAnalyzer.CopyPasteTokenInfo.TokenInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.sonarsource.dotnet.protobuf.SonarAnalyzer.internal_static_sonaranalyzer_CopyPasteTokenInfo_TokenInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.sonarsource.dotnet.protobuf.SonarAnalyzer.internal_static_sonaranalyzer_CopyPasteTokenInfo_TokenInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.sonarsource.dotnet.protobuf.SonarAnalyzer.CopyPasteTokenInfo.TokenInfo.class, org.sonarsource.dotnet.protobuf.SonarAnalyzer.CopyPasteTokenInfo.TokenInfo.Builder.class); } // Construct using org.sonarsource.dotnet.protobuf.SonarAnalyzer.CopyPasteTokenInfo.TokenInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { getTextRangeFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; tokenValue_ = ""; textRange_ = null; if (textRangeBuilder_ != null) { textRangeBuilder_.dispose(); textRangeBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.sonarsource.dotnet.protobuf.SonarAnalyzer.internal_static_sonaranalyzer_CopyPasteTokenInfo_TokenInfo_descriptor; } @java.lang.Override public org.sonarsource.dotnet.protobuf.SonarAnalyzer.CopyPasteTokenInfo.TokenInfo getDefaultInstanceForType() { return org.sonarsource.dotnet.protobuf.SonarAnalyzer.CopyPasteTokenInfo.TokenInfo.getDefaultInstance(); } @java.lang.Override public org.sonarsource.dotnet.protobuf.SonarAnalyzer.CopyPasteTokenInfo.TokenInfo build() { org.sonarsource.dotnet.protobuf.SonarAnalyzer.CopyPasteTokenInfo.TokenInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.sonarsource.dotnet.protobuf.SonarAnalyzer.CopyPasteTokenInfo.TokenInfo buildPartial() { org.sonarsource.dotnet.protobuf.SonarAnalyzer.CopyPasteTokenInfo.TokenInfo result = new org.sonarsource.dotnet.protobuf.SonarAnalyzer.CopyPasteTokenInfo.TokenInfo(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.sonarsource.dotnet.protobuf.SonarAnalyzer.CopyPasteTokenInfo.TokenInfo result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.tokenValue_ = tokenValue_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.textRange_ = textRangeBuilder_ == null ? textRange_ : textRangeBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.sonarsource.dotnet.protobuf.SonarAnalyzer.CopyPasteTokenInfo.TokenInfo) { return mergeFrom((org.sonarsource.dotnet.protobuf.SonarAnalyzer.CopyPasteTokenInfo.TokenInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.sonarsource.dotnet.protobuf.SonarAnalyzer.CopyPasteTokenInfo.TokenInfo other) { if (other == org.sonarsource.dotnet.protobuf.SonarAnalyzer.CopyPasteTokenInfo.TokenInfo.getDefaultInstance()) return this; if (!other.getTokenValue().isEmpty()) { tokenValue_ = other.tokenValue_; bitField0_ |= 0x00000001; onChanged(); } if (other.hasTextRange()) { mergeTextRange(other.getTextRange()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { tokenValue_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getTextRangeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object tokenValue_ = ""; /** * string token_value = 1; * @return The tokenValue. */ public java.lang.String getTokenValue() { java.lang.Object ref = tokenValue_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); tokenValue_ = s; return s; } else { return (java.lang.String) ref; } } /** * string token_value = 1; * @return The bytes for tokenValue. */ public com.google.protobuf.ByteString getTokenValueBytes() { java.lang.Object ref = tokenValue_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); tokenValue_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string token_value = 1; * @param value The tokenValue to set. * @return This builder for chaining. */ public Builder setTokenValue( java.lang.String value) { if (value == null) { throw new NullPointerException(); } tokenValue_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * string token_value = 1; * @return This builder for chaining. */ public Builder clearTokenValue() { tokenValue_ = getDefaultInstance().getTokenValue(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * string token_value = 1; * @param value The bytes for tokenValue to set. * @return This builder for chaining. */ public Builder setTokenValueBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); tokenValue_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange textRange_; private com.google.protobuf.SingleFieldBuilder< org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange, org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange.Builder, org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRangeOrBuilder> textRangeBuilder_; /** * .sonaranalyzer.TextRange text_range = 2; * @return Whether the textRange field is set. */ public boolean hasTextRange() { return ((bitField0_ & 0x00000002) != 0); } /** * .sonaranalyzer.TextRange text_range = 2; * @return The textRange. */ public org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange getTextRange() { if (textRangeBuilder_ == null) { return textRange_ == null ? org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange.getDefaultInstance() : textRange_; } else { return textRangeBuilder_.getMessage(); } } /** * .sonaranalyzer.TextRange text_range = 2; */ public Builder setTextRange(org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange value) { if (textRangeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } textRange_ = value; } else { textRangeBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .sonaranalyzer.TextRange text_range = 2; */ public Builder setTextRange( org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange.Builder builderForValue) { if (textRangeBuilder_ == null) { textRange_ = builderForValue.build(); } else { textRangeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .sonaranalyzer.TextRange text_range = 2; */ public Builder mergeTextRange(org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange value) { if (textRangeBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && textRange_ != null && textRange_ != org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange.getDefaultInstance()) { getTextRangeBuilder().mergeFrom(value); } else { textRange_ = value; } } else { textRangeBuilder_.mergeFrom(value); } if (textRange_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * .sonaranalyzer.TextRange text_range = 2; */ public Builder clearTextRange() { bitField0_ = (bitField0_ & ~0x00000002); textRange_ = null; if (textRangeBuilder_ != null) { textRangeBuilder_.dispose(); textRangeBuilder_ = null; } onChanged(); return this; } /** * .sonaranalyzer.TextRange text_range = 2; */ public org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange.Builder getTextRangeBuilder() { bitField0_ |= 0x00000002; onChanged(); return getTextRangeFieldBuilder().getBuilder(); } /** * .sonaranalyzer.TextRange text_range = 2; */ public org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRangeOrBuilder getTextRangeOrBuilder() { if (textRangeBuilder_ != null) { return textRangeBuilder_.getMessageOrBuilder(); } else { return textRange_ == null ? org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange.getDefaultInstance() : textRange_; } } /** * .sonaranalyzer.TextRange text_range = 2; */ private com.google.protobuf.SingleFieldBuilder< org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange, org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange.Builder, org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRangeOrBuilder> getTextRangeFieldBuilder() { if (textRangeBuilder_ == null) { textRangeBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange, org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRange.Builder, org.sonarsource.dotnet.protobuf.SonarAnalyzer.TextRangeOrBuilder>( getTextRange(), getParentForChildren(), isClean()); textRange_ = null; } return textRangeBuilder_; } // @@protoc_insertion_point(builder_scope:sonaranalyzer.CopyPasteTokenInfo.TokenInfo) } // @@protoc_insertion_point(class_scope:sonaranalyzer.CopyPasteTokenInfo.TokenInfo) private static final org.sonarsource.dotnet.protobuf.SonarAnalyzer.CopyPasteTokenInfo.TokenInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.sonarsource.dotnet.protobuf.SonarAnalyzer.CopyPasteTokenInfo.TokenInfo(); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.CopyPasteTokenInfo.TokenInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TokenInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.sonarsource.dotnet.protobuf.SonarAnalyzer.CopyPasteTokenInfo.TokenInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int FILE_PATH_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object filePath_ = ""; /** * string file_path = 1; * @return The filePath. */ @java.lang.Override public java.lang.String getFilePath() { java.lang.Object ref = filePath_; 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(); filePath_ = s; return s; } } /** * string file_path = 1; * @return The bytes for filePath. */ @java.lang.Override public com.google.protobuf.ByteString getFilePathBytes() { java.lang.Object ref = filePath_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); filePath_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TOKEN_INFO_FIELD_NUMBER = 2; @SuppressWarnings("serial") private java.util.List tokenInfo_; /** * repeated .sonaranalyzer.CopyPasteTokenInfo.TokenInfo token_info = 2; */ @java.lang.Override public java.util.List getTokenInfoList() { return tokenInfo_; } /** * repeated .sonaranalyzer.CopyPasteTokenInfo.TokenInfo token_info = 2; */ @java.lang.Override public java.util.List getTokenInfoOrBuilderList() { return tokenInfo_; } /** * repeated .sonaranalyzer.CopyPasteTokenInfo.TokenInfo token_info = 2; */ @java.lang.Override public int getTokenInfoCount() { return tokenInfo_.size(); } /** * repeated .sonaranalyzer.CopyPasteTokenInfo.TokenInfo token_info = 2; */ @java.lang.Override public org.sonarsource.dotnet.protobuf.SonarAnalyzer.CopyPasteTokenInfo.TokenInfo getTokenInfo(int index) { return tokenInfo_.get(index); } /** * repeated .sonaranalyzer.CopyPasteTokenInfo.TokenInfo token_info = 2; */ @java.lang.Override public org.sonarsource.dotnet.protobuf.SonarAnalyzer.CopyPasteTokenInfo.TokenInfoOrBuilder getTokenInfoOrBuilder( int index) { return tokenInfo_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filePath_)) { com.google.protobuf.GeneratedMessage.writeString(output, 1, filePath_); } for (int i = 0; i < tokenInfo_.size(); i++) { output.writeMessage(2, tokenInfo_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filePath_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(1, filePath_); } for (int i = 0; i < tokenInfo_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, tokenInfo_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.sonarsource.dotnet.protobuf.SonarAnalyzer.CopyPasteTokenInfo)) { return super.equals(obj); } org.sonarsource.dotnet.protobuf.SonarAnalyzer.CopyPasteTokenInfo other = (org.sonarsource.dotnet.protobuf.SonarAnalyzer.CopyPasteTokenInfo) obj; if (!getFilePath() .equals(other.getFilePath())) return false; if (!getTokenInfoList() .equals(other.getTokenInfoList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + FILE_PATH_FIELD_NUMBER; hash = (53 * hash) + getFilePath().hashCode(); if (getTokenInfoCount() > 0) { hash = (37 * hash) + TOKEN_INFO_FIELD_NUMBER; hash = (53 * hash) + getTokenInfoList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.CopyPasteTokenInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.CopyPasteTokenInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.CopyPasteTokenInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.CopyPasteTokenInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.CopyPasteTokenInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.CopyPasteTokenInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.CopyPasteTokenInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.CopyPasteTokenInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.CopyPasteTokenInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.CopyPasteTokenInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.CopyPasteTokenInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.CopyPasteTokenInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.sonarsource.dotnet.protobuf.SonarAnalyzer.CopyPasteTokenInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override 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; } /** *
     * Used for copy-paste detection
     * 
* * Protobuf type {@code sonaranalyzer.CopyPasteTokenInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:sonaranalyzer.CopyPasteTokenInfo) org.sonarsource.dotnet.protobuf.SonarAnalyzer.CopyPasteTokenInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.sonarsource.dotnet.protobuf.SonarAnalyzer.internal_static_sonaranalyzer_CopyPasteTokenInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.sonarsource.dotnet.protobuf.SonarAnalyzer.internal_static_sonaranalyzer_CopyPasteTokenInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.sonarsource.dotnet.protobuf.SonarAnalyzer.CopyPasteTokenInfo.class, org.sonarsource.dotnet.protobuf.SonarAnalyzer.CopyPasteTokenInfo.Builder.class); } // Construct using org.sonarsource.dotnet.protobuf.SonarAnalyzer.CopyPasteTokenInfo.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; filePath_ = ""; if (tokenInfoBuilder_ == null) { tokenInfo_ = java.util.Collections.emptyList(); } else { tokenInfo_ = null; tokenInfoBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.sonarsource.dotnet.protobuf.SonarAnalyzer.internal_static_sonaranalyzer_CopyPasteTokenInfo_descriptor; } @java.lang.Override public org.sonarsource.dotnet.protobuf.SonarAnalyzer.CopyPasteTokenInfo getDefaultInstanceForType() { return org.sonarsource.dotnet.protobuf.SonarAnalyzer.CopyPasteTokenInfo.getDefaultInstance(); } @java.lang.Override public org.sonarsource.dotnet.protobuf.SonarAnalyzer.CopyPasteTokenInfo build() { org.sonarsource.dotnet.protobuf.SonarAnalyzer.CopyPasteTokenInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.sonarsource.dotnet.protobuf.SonarAnalyzer.CopyPasteTokenInfo buildPartial() { org.sonarsource.dotnet.protobuf.SonarAnalyzer.CopyPasteTokenInfo result = new org.sonarsource.dotnet.protobuf.SonarAnalyzer.CopyPasteTokenInfo(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(org.sonarsource.dotnet.protobuf.SonarAnalyzer.CopyPasteTokenInfo result) { if (tokenInfoBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { tokenInfo_ = java.util.Collections.unmodifiableList(tokenInfo_); bitField0_ = (bitField0_ & ~0x00000002); } result.tokenInfo_ = tokenInfo_; } else { result.tokenInfo_ = tokenInfoBuilder_.build(); } } private void buildPartial0(org.sonarsource.dotnet.protobuf.SonarAnalyzer.CopyPasteTokenInfo result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.filePath_ = filePath_; } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.sonarsource.dotnet.protobuf.SonarAnalyzer.CopyPasteTokenInfo) { return mergeFrom((org.sonarsource.dotnet.protobuf.SonarAnalyzer.CopyPasteTokenInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.sonarsource.dotnet.protobuf.SonarAnalyzer.CopyPasteTokenInfo other) { if (other == org.sonarsource.dotnet.protobuf.SonarAnalyzer.CopyPasteTokenInfo.getDefaultInstance()) return this; if (!other.getFilePath().isEmpty()) { filePath_ = other.filePath_; bitField0_ |= 0x00000001; onChanged(); } if (tokenInfoBuilder_ == null) { if (!other.tokenInfo_.isEmpty()) { if (tokenInfo_.isEmpty()) { tokenInfo_ = other.tokenInfo_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureTokenInfoIsMutable(); tokenInfo_.addAll(other.tokenInfo_); } onChanged(); } } else { if (!other.tokenInfo_.isEmpty()) { if (tokenInfoBuilder_.isEmpty()) { tokenInfoBuilder_.dispose(); tokenInfoBuilder_ = null; tokenInfo_ = other.tokenInfo_; bitField0_ = (bitField0_ & ~0x00000002); tokenInfoBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getTokenInfoFieldBuilder() : null; } else { tokenInfoBuilder_.addAllMessages(other.tokenInfo_); } } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { filePath_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { org.sonarsource.dotnet.protobuf.SonarAnalyzer.CopyPasteTokenInfo.TokenInfo m = input.readMessage( org.sonarsource.dotnet.protobuf.SonarAnalyzer.CopyPasteTokenInfo.TokenInfo.parser(), extensionRegistry); if (tokenInfoBuilder_ == null) { ensureTokenInfoIsMutable(); tokenInfo_.add(m); } else { tokenInfoBuilder_.addMessage(m); } break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object filePath_ = ""; /** * string file_path = 1; * @return The filePath. */ public java.lang.String getFilePath() { java.lang.Object ref = filePath_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filePath_ = s; return s; } else { return (java.lang.String) ref; } } /** * string file_path = 1; * @return The bytes for filePath. */ public com.google.protobuf.ByteString getFilePathBytes() { java.lang.Object ref = filePath_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); filePath_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string file_path = 1; * @param value The filePath to set. * @return This builder for chaining. */ public Builder setFilePath( java.lang.String value) { if (value == null) { throw new NullPointerException(); } filePath_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * string file_path = 1; * @return This builder for chaining. */ public Builder clearFilePath() { filePath_ = getDefaultInstance().getFilePath(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * string file_path = 1; * @param value The bytes for filePath to set. * @return This builder for chaining. */ public Builder setFilePathBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); filePath_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.util.List tokenInfo_ = java.util.Collections.emptyList(); private void ensureTokenInfoIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { tokenInfo_ = new java.util.ArrayList(tokenInfo_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilder< org.sonarsource.dotnet.protobuf.SonarAnalyzer.CopyPasteTokenInfo.TokenInfo, org.sonarsource.dotnet.protobuf.SonarAnalyzer.CopyPasteTokenInfo.TokenInfo.Builder, org.sonarsource.dotnet.protobuf.SonarAnalyzer.CopyPasteTokenInfo.TokenInfoOrBuilder> tokenInfoBuilder_; /** * repeated .sonaranalyzer.CopyPasteTokenInfo.TokenInfo token_info = 2; */ public java.util.List getTokenInfoList() { if (tokenInfoBuilder_ == null) { return java.util.Collections.unmodifiableList(tokenInfo_); } else { return tokenInfoBuilder_.getMessageList(); } } /** * repeated .sonaranalyzer.CopyPasteTokenInfo.TokenInfo token_info = 2; */ public int getTokenInfoCount() { if (tokenInfoBuilder_ == null) { return tokenInfo_.size(); } else { return tokenInfoBuilder_.getCount(); } } /** * repeated .sonaranalyzer.CopyPasteTokenInfo.TokenInfo token_info = 2; */ public org.sonarsource.dotnet.protobuf.SonarAnalyzer.CopyPasteTokenInfo.TokenInfo getTokenInfo(int index) { if (tokenInfoBuilder_ == null) { return tokenInfo_.get(index); } else { return tokenInfoBuilder_.getMessage(index); } } /** * repeated .sonaranalyzer.CopyPasteTokenInfo.TokenInfo token_info = 2; */ public Builder setTokenInfo( int index, org.sonarsource.dotnet.protobuf.SonarAnalyzer.CopyPasteTokenInfo.TokenInfo value) { if (tokenInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTokenInfoIsMutable(); tokenInfo_.set(index, value); onChanged(); } else { tokenInfoBuilder_.setMessage(index, value); } return this; } /** * repeated .sonaranalyzer.CopyPasteTokenInfo.TokenInfo token_info = 2; */ public Builder setTokenInfo( int index, org.sonarsource.dotnet.protobuf.SonarAnalyzer.CopyPasteTokenInfo.TokenInfo.Builder builderForValue) { if (tokenInfoBuilder_ == null) { ensureTokenInfoIsMutable(); tokenInfo_.set(index, builderForValue.build()); onChanged(); } else { tokenInfoBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .sonaranalyzer.CopyPasteTokenInfo.TokenInfo token_info = 2; */ public Builder addTokenInfo(org.sonarsource.dotnet.protobuf.SonarAnalyzer.CopyPasteTokenInfo.TokenInfo value) { if (tokenInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTokenInfoIsMutable(); tokenInfo_.add(value); onChanged(); } else { tokenInfoBuilder_.addMessage(value); } return this; } /** * repeated .sonaranalyzer.CopyPasteTokenInfo.TokenInfo token_info = 2; */ public Builder addTokenInfo( int index, org.sonarsource.dotnet.protobuf.SonarAnalyzer.CopyPasteTokenInfo.TokenInfo value) { if (tokenInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTokenInfoIsMutable(); tokenInfo_.add(index, value); onChanged(); } else { tokenInfoBuilder_.addMessage(index, value); } return this; } /** * repeated .sonaranalyzer.CopyPasteTokenInfo.TokenInfo token_info = 2; */ public Builder addTokenInfo( org.sonarsource.dotnet.protobuf.SonarAnalyzer.CopyPasteTokenInfo.TokenInfo.Builder builderForValue) { if (tokenInfoBuilder_ == null) { ensureTokenInfoIsMutable(); tokenInfo_.add(builderForValue.build()); onChanged(); } else { tokenInfoBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .sonaranalyzer.CopyPasteTokenInfo.TokenInfo token_info = 2; */ public Builder addTokenInfo( int index, org.sonarsource.dotnet.protobuf.SonarAnalyzer.CopyPasteTokenInfo.TokenInfo.Builder builderForValue) { if (tokenInfoBuilder_ == null) { ensureTokenInfoIsMutable(); tokenInfo_.add(index, builderForValue.build()); onChanged(); } else { tokenInfoBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .sonaranalyzer.CopyPasteTokenInfo.TokenInfo token_info = 2; */ public Builder addAllTokenInfo( java.lang.Iterable values) { if (tokenInfoBuilder_ == null) { ensureTokenInfoIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, tokenInfo_); onChanged(); } else { tokenInfoBuilder_.addAllMessages(values); } return this; } /** * repeated .sonaranalyzer.CopyPasteTokenInfo.TokenInfo token_info = 2; */ public Builder clearTokenInfo() { if (tokenInfoBuilder_ == null) { tokenInfo_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { tokenInfoBuilder_.clear(); } return this; } /** * repeated .sonaranalyzer.CopyPasteTokenInfo.TokenInfo token_info = 2; */ public Builder removeTokenInfo(int index) { if (tokenInfoBuilder_ == null) { ensureTokenInfoIsMutable(); tokenInfo_.remove(index); onChanged(); } else { tokenInfoBuilder_.remove(index); } return this; } /** * repeated .sonaranalyzer.CopyPasteTokenInfo.TokenInfo token_info = 2; */ public org.sonarsource.dotnet.protobuf.SonarAnalyzer.CopyPasteTokenInfo.TokenInfo.Builder getTokenInfoBuilder( int index) { return getTokenInfoFieldBuilder().getBuilder(index); } /** * repeated .sonaranalyzer.CopyPasteTokenInfo.TokenInfo token_info = 2; */ public org.sonarsource.dotnet.protobuf.SonarAnalyzer.CopyPasteTokenInfo.TokenInfoOrBuilder getTokenInfoOrBuilder( int index) { if (tokenInfoBuilder_ == null) { return tokenInfo_.get(index); } else { return tokenInfoBuilder_.getMessageOrBuilder(index); } } /** * repeated .sonaranalyzer.CopyPasteTokenInfo.TokenInfo token_info = 2; */ public java.util.List getTokenInfoOrBuilderList() { if (tokenInfoBuilder_ != null) { return tokenInfoBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(tokenInfo_); } } /** * repeated .sonaranalyzer.CopyPasteTokenInfo.TokenInfo token_info = 2; */ public org.sonarsource.dotnet.protobuf.SonarAnalyzer.CopyPasteTokenInfo.TokenInfo.Builder addTokenInfoBuilder() { return getTokenInfoFieldBuilder().addBuilder( org.sonarsource.dotnet.protobuf.SonarAnalyzer.CopyPasteTokenInfo.TokenInfo.getDefaultInstance()); } /** * repeated .sonaranalyzer.CopyPasteTokenInfo.TokenInfo token_info = 2; */ public org.sonarsource.dotnet.protobuf.SonarAnalyzer.CopyPasteTokenInfo.TokenInfo.Builder addTokenInfoBuilder( int index) { return getTokenInfoFieldBuilder().addBuilder( index, org.sonarsource.dotnet.protobuf.SonarAnalyzer.CopyPasteTokenInfo.TokenInfo.getDefaultInstance()); } /** * repeated .sonaranalyzer.CopyPasteTokenInfo.TokenInfo token_info = 2; */ public java.util.List getTokenInfoBuilderList() { return getTokenInfoFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< org.sonarsource.dotnet.protobuf.SonarAnalyzer.CopyPasteTokenInfo.TokenInfo, org.sonarsource.dotnet.protobuf.SonarAnalyzer.CopyPasteTokenInfo.TokenInfo.Builder, org.sonarsource.dotnet.protobuf.SonarAnalyzer.CopyPasteTokenInfo.TokenInfoOrBuilder> getTokenInfoFieldBuilder() { if (tokenInfoBuilder_ == null) { tokenInfoBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< org.sonarsource.dotnet.protobuf.SonarAnalyzer.CopyPasteTokenInfo.TokenInfo, org.sonarsource.dotnet.protobuf.SonarAnalyzer.CopyPasteTokenInfo.TokenInfo.Builder, org.sonarsource.dotnet.protobuf.SonarAnalyzer.CopyPasteTokenInfo.TokenInfoOrBuilder>( tokenInfo_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); tokenInfo_ = null; } return tokenInfoBuilder_; } // @@protoc_insertion_point(builder_scope:sonaranalyzer.CopyPasteTokenInfo) } // @@protoc_insertion_point(class_scope:sonaranalyzer.CopyPasteTokenInfo) private static final org.sonarsource.dotnet.protobuf.SonarAnalyzer.CopyPasteTokenInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.sonarsource.dotnet.protobuf.SonarAnalyzer.CopyPasteTokenInfo(); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.CopyPasteTokenInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CopyPasteTokenInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.sonarsource.dotnet.protobuf.SonarAnalyzer.CopyPasteTokenInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MetricsInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:sonaranalyzer.MetricsInfo) com.google.protobuf.MessageOrBuilder { /** * string file_path = 1; * @return The filePath. */ java.lang.String getFilePath(); /** * string file_path = 1; * @return The bytes for filePath. */ com.google.protobuf.ByteString getFilePathBytes(); /** * int32 class_count = 2; * @return The classCount. */ int getClassCount(); /** * int32 statement_count = 3; * @return The statementCount. */ int getStatementCount(); /** * int32 function_count = 4; * @return The functionCount. */ int getFunctionCount(); /** * int32 complexity = 7; * @return The complexity. */ int getComplexity(); /** * repeated int32 no_sonar_comment = 12; * @return A list containing the noSonarComment. */ java.util.List getNoSonarCommentList(); /** * repeated int32 no_sonar_comment = 12; * @return The count of noSonarComment. */ int getNoSonarCommentCount(); /** * repeated int32 no_sonar_comment = 12; * @param index The index of the element to return. * @return The noSonarComment at the given index. */ int getNoSonarComment(int index); /** * repeated int32 non_blank_comment = 13; * @return A list containing the nonBlankComment. */ java.util.List getNonBlankCommentList(); /** * repeated int32 non_blank_comment = 13; * @return The count of nonBlankComment. */ int getNonBlankCommentCount(); /** * repeated int32 non_blank_comment = 13; * @param index The index of the element to return. * @return The nonBlankComment at the given index. */ int getNonBlankComment(int index); /** * repeated int32 code_line = 14; * @return A list containing the codeLine. */ java.util.List getCodeLineList(); /** * repeated int32 code_line = 14; * @return The count of codeLine. */ int getCodeLineCount(); /** * repeated int32 code_line = 14; * @param index The index of the element to return. * @return The codeLine at the given index. */ int getCodeLine(int index); /** * int32 cognitive_complexity = 15; * @return The cognitiveComplexity. */ int getCognitiveComplexity(); /** * repeated int32 executable_lines = 16; * @return A list containing the executableLines. */ java.util.List getExecutableLinesList(); /** * repeated int32 executable_lines = 16; * @return The count of executableLines. */ int getExecutableLinesCount(); /** * repeated int32 executable_lines = 16; * @param index The index of the element to return. * @return The executableLines at the given index. */ int getExecutableLines(int index); } /** *
   * Metrics reporting
   * 
* * Protobuf type {@code sonaranalyzer.MetricsInfo} */ public static final class MetricsInfo extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:sonaranalyzer.MetricsInfo) MetricsInfoOrBuilder { private static final long serialVersionUID = 0L; static { com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, /* minor= */ 27, /* patch= */ 0, /* suffix= */ "", MetricsInfo.class.getName()); } // Use MetricsInfo.newBuilder() to construct. private MetricsInfo(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private MetricsInfo() { filePath_ = ""; noSonarComment_ = emptyIntList(); nonBlankComment_ = emptyIntList(); codeLine_ = emptyIntList(); executableLines_ = emptyIntList(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.sonarsource.dotnet.protobuf.SonarAnalyzer.internal_static_sonaranalyzer_MetricsInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.sonarsource.dotnet.protobuf.SonarAnalyzer.internal_static_sonaranalyzer_MetricsInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.sonarsource.dotnet.protobuf.SonarAnalyzer.MetricsInfo.class, org.sonarsource.dotnet.protobuf.SonarAnalyzer.MetricsInfo.Builder.class); } public static final int FILE_PATH_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object filePath_ = ""; /** * string file_path = 1; * @return The filePath. */ @java.lang.Override public java.lang.String getFilePath() { java.lang.Object ref = filePath_; 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(); filePath_ = s; return s; } } /** * string file_path = 1; * @return The bytes for filePath. */ @java.lang.Override public com.google.protobuf.ByteString getFilePathBytes() { java.lang.Object ref = filePath_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); filePath_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CLASS_COUNT_FIELD_NUMBER = 2; private int classCount_ = 0; /** * int32 class_count = 2; * @return The classCount. */ @java.lang.Override public int getClassCount() { return classCount_; } public static final int STATEMENT_COUNT_FIELD_NUMBER = 3; private int statementCount_ = 0; /** * int32 statement_count = 3; * @return The statementCount. */ @java.lang.Override public int getStatementCount() { return statementCount_; } public static final int FUNCTION_COUNT_FIELD_NUMBER = 4; private int functionCount_ = 0; /** * int32 function_count = 4; * @return The functionCount. */ @java.lang.Override public int getFunctionCount() { return functionCount_; } public static final int COMPLEXITY_FIELD_NUMBER = 7; private int complexity_ = 0; /** * int32 complexity = 7; * @return The complexity. */ @java.lang.Override public int getComplexity() { return complexity_; } public static final int NO_SONAR_COMMENT_FIELD_NUMBER = 12; @SuppressWarnings("serial") private com.google.protobuf.Internal.IntList noSonarComment_ = emptyIntList(); /** * repeated int32 no_sonar_comment = 12; * @return A list containing the noSonarComment. */ @java.lang.Override public java.util.List getNoSonarCommentList() { return noSonarComment_; } /** * repeated int32 no_sonar_comment = 12; * @return The count of noSonarComment. */ public int getNoSonarCommentCount() { return noSonarComment_.size(); } /** * repeated int32 no_sonar_comment = 12; * @param index The index of the element to return. * @return The noSonarComment at the given index. */ public int getNoSonarComment(int index) { return noSonarComment_.getInt(index); } private int noSonarCommentMemoizedSerializedSize = -1; public static final int NON_BLANK_COMMENT_FIELD_NUMBER = 13; @SuppressWarnings("serial") private com.google.protobuf.Internal.IntList nonBlankComment_ = emptyIntList(); /** * repeated int32 non_blank_comment = 13; * @return A list containing the nonBlankComment. */ @java.lang.Override public java.util.List getNonBlankCommentList() { return nonBlankComment_; } /** * repeated int32 non_blank_comment = 13; * @return The count of nonBlankComment. */ public int getNonBlankCommentCount() { return nonBlankComment_.size(); } /** * repeated int32 non_blank_comment = 13; * @param index The index of the element to return. * @return The nonBlankComment at the given index. */ public int getNonBlankComment(int index) { return nonBlankComment_.getInt(index); } private int nonBlankCommentMemoizedSerializedSize = -1; public static final int CODE_LINE_FIELD_NUMBER = 14; @SuppressWarnings("serial") private com.google.protobuf.Internal.IntList codeLine_ = emptyIntList(); /** * repeated int32 code_line = 14; * @return A list containing the codeLine. */ @java.lang.Override public java.util.List getCodeLineList() { return codeLine_; } /** * repeated int32 code_line = 14; * @return The count of codeLine. */ public int getCodeLineCount() { return codeLine_.size(); } /** * repeated int32 code_line = 14; * @param index The index of the element to return. * @return The codeLine at the given index. */ public int getCodeLine(int index) { return codeLine_.getInt(index); } private int codeLineMemoizedSerializedSize = -1; public static final int COGNITIVE_COMPLEXITY_FIELD_NUMBER = 15; private int cognitiveComplexity_ = 0; /** * int32 cognitive_complexity = 15; * @return The cognitiveComplexity. */ @java.lang.Override public int getCognitiveComplexity() { return cognitiveComplexity_; } public static final int EXECUTABLE_LINES_FIELD_NUMBER = 16; @SuppressWarnings("serial") private com.google.protobuf.Internal.IntList executableLines_ = emptyIntList(); /** * repeated int32 executable_lines = 16; * @return A list containing the executableLines. */ @java.lang.Override public java.util.List getExecutableLinesList() { return executableLines_; } /** * repeated int32 executable_lines = 16; * @return The count of executableLines. */ public int getExecutableLinesCount() { return executableLines_.size(); } /** * repeated int32 executable_lines = 16; * @param index The index of the element to return. * @return The executableLines at the given index. */ public int getExecutableLines(int index) { return executableLines_.getInt(index); } private int executableLinesMemoizedSerializedSize = -1; private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filePath_)) { com.google.protobuf.GeneratedMessage.writeString(output, 1, filePath_); } if (classCount_ != 0) { output.writeInt32(2, classCount_); } if (statementCount_ != 0) { output.writeInt32(3, statementCount_); } if (functionCount_ != 0) { output.writeInt32(4, functionCount_); } if (complexity_ != 0) { output.writeInt32(7, complexity_); } if (getNoSonarCommentList().size() > 0) { output.writeUInt32NoTag(98); output.writeUInt32NoTag(noSonarCommentMemoizedSerializedSize); } for (int i = 0; i < noSonarComment_.size(); i++) { output.writeInt32NoTag(noSonarComment_.getInt(i)); } if (getNonBlankCommentList().size() > 0) { output.writeUInt32NoTag(106); output.writeUInt32NoTag(nonBlankCommentMemoizedSerializedSize); } for (int i = 0; i < nonBlankComment_.size(); i++) { output.writeInt32NoTag(nonBlankComment_.getInt(i)); } if (getCodeLineList().size() > 0) { output.writeUInt32NoTag(114); output.writeUInt32NoTag(codeLineMemoizedSerializedSize); } for (int i = 0; i < codeLine_.size(); i++) { output.writeInt32NoTag(codeLine_.getInt(i)); } if (cognitiveComplexity_ != 0) { output.writeInt32(15, cognitiveComplexity_); } if (getExecutableLinesList().size() > 0) { output.writeUInt32NoTag(130); output.writeUInt32NoTag(executableLinesMemoizedSerializedSize); } for (int i = 0; i < executableLines_.size(); i++) { output.writeInt32NoTag(executableLines_.getInt(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filePath_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(1, filePath_); } if (classCount_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, classCount_); } if (statementCount_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, statementCount_); } if (functionCount_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(4, functionCount_); } if (complexity_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(7, complexity_); } { int dataSize = 0; for (int i = 0; i < noSonarComment_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(noSonarComment_.getInt(i)); } size += dataSize; if (!getNoSonarCommentList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } noSonarCommentMemoizedSerializedSize = dataSize; } { int dataSize = 0; for (int i = 0; i < nonBlankComment_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(nonBlankComment_.getInt(i)); } size += dataSize; if (!getNonBlankCommentList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } nonBlankCommentMemoizedSerializedSize = dataSize; } { int dataSize = 0; for (int i = 0; i < codeLine_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(codeLine_.getInt(i)); } size += dataSize; if (!getCodeLineList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } codeLineMemoizedSerializedSize = dataSize; } if (cognitiveComplexity_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(15, cognitiveComplexity_); } { int dataSize = 0; for (int i = 0; i < executableLines_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(executableLines_.getInt(i)); } size += dataSize; if (!getExecutableLinesList().isEmpty()) { size += 2; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } executableLinesMemoizedSerializedSize = dataSize; } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.sonarsource.dotnet.protobuf.SonarAnalyzer.MetricsInfo)) { return super.equals(obj); } org.sonarsource.dotnet.protobuf.SonarAnalyzer.MetricsInfo other = (org.sonarsource.dotnet.protobuf.SonarAnalyzer.MetricsInfo) obj; if (!getFilePath() .equals(other.getFilePath())) return false; if (getClassCount() != other.getClassCount()) return false; if (getStatementCount() != other.getStatementCount()) return false; if (getFunctionCount() != other.getFunctionCount()) return false; if (getComplexity() != other.getComplexity()) return false; if (!getNoSonarCommentList() .equals(other.getNoSonarCommentList())) return false; if (!getNonBlankCommentList() .equals(other.getNonBlankCommentList())) return false; if (!getCodeLineList() .equals(other.getCodeLineList())) return false; if (getCognitiveComplexity() != other.getCognitiveComplexity()) return false; if (!getExecutableLinesList() .equals(other.getExecutableLinesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + FILE_PATH_FIELD_NUMBER; hash = (53 * hash) + getFilePath().hashCode(); hash = (37 * hash) + CLASS_COUNT_FIELD_NUMBER; hash = (53 * hash) + getClassCount(); hash = (37 * hash) + STATEMENT_COUNT_FIELD_NUMBER; hash = (53 * hash) + getStatementCount(); hash = (37 * hash) + FUNCTION_COUNT_FIELD_NUMBER; hash = (53 * hash) + getFunctionCount(); hash = (37 * hash) + COMPLEXITY_FIELD_NUMBER; hash = (53 * hash) + getComplexity(); if (getNoSonarCommentCount() > 0) { hash = (37 * hash) + NO_SONAR_COMMENT_FIELD_NUMBER; hash = (53 * hash) + getNoSonarCommentList().hashCode(); } if (getNonBlankCommentCount() > 0) { hash = (37 * hash) + NON_BLANK_COMMENT_FIELD_NUMBER; hash = (53 * hash) + getNonBlankCommentList().hashCode(); } if (getCodeLineCount() > 0) { hash = (37 * hash) + CODE_LINE_FIELD_NUMBER; hash = (53 * hash) + getCodeLineList().hashCode(); } hash = (37 * hash) + COGNITIVE_COMPLEXITY_FIELD_NUMBER; hash = (53 * hash) + getCognitiveComplexity(); if (getExecutableLinesCount() > 0) { hash = (37 * hash) + EXECUTABLE_LINES_FIELD_NUMBER; hash = (53 * hash) + getExecutableLinesList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.MetricsInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.MetricsInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.MetricsInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.MetricsInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.MetricsInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.MetricsInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.MetricsInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.MetricsInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.MetricsInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.MetricsInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.MetricsInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.MetricsInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.sonarsource.dotnet.protobuf.SonarAnalyzer.MetricsInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override 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; } /** *
     * Metrics reporting
     * 
* * Protobuf type {@code sonaranalyzer.MetricsInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:sonaranalyzer.MetricsInfo) org.sonarsource.dotnet.protobuf.SonarAnalyzer.MetricsInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.sonarsource.dotnet.protobuf.SonarAnalyzer.internal_static_sonaranalyzer_MetricsInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.sonarsource.dotnet.protobuf.SonarAnalyzer.internal_static_sonaranalyzer_MetricsInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.sonarsource.dotnet.protobuf.SonarAnalyzer.MetricsInfo.class, org.sonarsource.dotnet.protobuf.SonarAnalyzer.MetricsInfo.Builder.class); } // Construct using org.sonarsource.dotnet.protobuf.SonarAnalyzer.MetricsInfo.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; filePath_ = ""; classCount_ = 0; statementCount_ = 0; functionCount_ = 0; complexity_ = 0; noSonarComment_ = emptyIntList(); nonBlankComment_ = emptyIntList(); codeLine_ = emptyIntList(); cognitiveComplexity_ = 0; executableLines_ = emptyIntList(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.sonarsource.dotnet.protobuf.SonarAnalyzer.internal_static_sonaranalyzer_MetricsInfo_descriptor; } @java.lang.Override public org.sonarsource.dotnet.protobuf.SonarAnalyzer.MetricsInfo getDefaultInstanceForType() { return org.sonarsource.dotnet.protobuf.SonarAnalyzer.MetricsInfo.getDefaultInstance(); } @java.lang.Override public org.sonarsource.dotnet.protobuf.SonarAnalyzer.MetricsInfo build() { org.sonarsource.dotnet.protobuf.SonarAnalyzer.MetricsInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.sonarsource.dotnet.protobuf.SonarAnalyzer.MetricsInfo buildPartial() { org.sonarsource.dotnet.protobuf.SonarAnalyzer.MetricsInfo result = new org.sonarsource.dotnet.protobuf.SonarAnalyzer.MetricsInfo(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.sonarsource.dotnet.protobuf.SonarAnalyzer.MetricsInfo result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.filePath_ = filePath_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.classCount_ = classCount_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.statementCount_ = statementCount_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.functionCount_ = functionCount_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.complexity_ = complexity_; } if (((from_bitField0_ & 0x00000020) != 0)) { noSonarComment_.makeImmutable(); result.noSonarComment_ = noSonarComment_; } if (((from_bitField0_ & 0x00000040) != 0)) { nonBlankComment_.makeImmutable(); result.nonBlankComment_ = nonBlankComment_; } if (((from_bitField0_ & 0x00000080) != 0)) { codeLine_.makeImmutable(); result.codeLine_ = codeLine_; } if (((from_bitField0_ & 0x00000100) != 0)) { result.cognitiveComplexity_ = cognitiveComplexity_; } if (((from_bitField0_ & 0x00000200) != 0)) { executableLines_.makeImmutable(); result.executableLines_ = executableLines_; } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.sonarsource.dotnet.protobuf.SonarAnalyzer.MetricsInfo) { return mergeFrom((org.sonarsource.dotnet.protobuf.SonarAnalyzer.MetricsInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.sonarsource.dotnet.protobuf.SonarAnalyzer.MetricsInfo other) { if (other == org.sonarsource.dotnet.protobuf.SonarAnalyzer.MetricsInfo.getDefaultInstance()) return this; if (!other.getFilePath().isEmpty()) { filePath_ = other.filePath_; bitField0_ |= 0x00000001; onChanged(); } if (other.getClassCount() != 0) { setClassCount(other.getClassCount()); } if (other.getStatementCount() != 0) { setStatementCount(other.getStatementCount()); } if (other.getFunctionCount() != 0) { setFunctionCount(other.getFunctionCount()); } if (other.getComplexity() != 0) { setComplexity(other.getComplexity()); } if (!other.noSonarComment_.isEmpty()) { if (noSonarComment_.isEmpty()) { noSonarComment_ = other.noSonarComment_; noSonarComment_.makeImmutable(); bitField0_ |= 0x00000020; } else { ensureNoSonarCommentIsMutable(); noSonarComment_.addAll(other.noSonarComment_); } onChanged(); } if (!other.nonBlankComment_.isEmpty()) { if (nonBlankComment_.isEmpty()) { nonBlankComment_ = other.nonBlankComment_; nonBlankComment_.makeImmutable(); bitField0_ |= 0x00000040; } else { ensureNonBlankCommentIsMutable(); nonBlankComment_.addAll(other.nonBlankComment_); } onChanged(); } if (!other.codeLine_.isEmpty()) { if (codeLine_.isEmpty()) { codeLine_ = other.codeLine_; codeLine_.makeImmutable(); bitField0_ |= 0x00000080; } else { ensureCodeLineIsMutable(); codeLine_.addAll(other.codeLine_); } onChanged(); } if (other.getCognitiveComplexity() != 0) { setCognitiveComplexity(other.getCognitiveComplexity()); } if (!other.executableLines_.isEmpty()) { if (executableLines_.isEmpty()) { executableLines_ = other.executableLines_; executableLines_.makeImmutable(); bitField0_ |= 0x00000200; } else { ensureExecutableLinesIsMutable(); executableLines_.addAll(other.executableLines_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { filePath_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 16: { classCount_ = input.readInt32(); bitField0_ |= 0x00000002; break; } // case 16 case 24: { statementCount_ = input.readInt32(); bitField0_ |= 0x00000004; break; } // case 24 case 32: { functionCount_ = input.readInt32(); bitField0_ |= 0x00000008; break; } // case 32 case 56: { complexity_ = input.readInt32(); bitField0_ |= 0x00000010; break; } // case 56 case 96: { int v = input.readInt32(); ensureNoSonarCommentIsMutable(); noSonarComment_.addInt(v); break; } // case 96 case 98: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); ensureNoSonarCommentIsMutable(); while (input.getBytesUntilLimit() > 0) { noSonarComment_.addInt(input.readInt32()); } input.popLimit(limit); break; } // case 98 case 104: { int v = input.readInt32(); ensureNonBlankCommentIsMutable(); nonBlankComment_.addInt(v); break; } // case 104 case 106: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); ensureNonBlankCommentIsMutable(); while (input.getBytesUntilLimit() > 0) { nonBlankComment_.addInt(input.readInt32()); } input.popLimit(limit); break; } // case 106 case 112: { int v = input.readInt32(); ensureCodeLineIsMutable(); codeLine_.addInt(v); break; } // case 112 case 114: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); ensureCodeLineIsMutable(); while (input.getBytesUntilLimit() > 0) { codeLine_.addInt(input.readInt32()); } input.popLimit(limit); break; } // case 114 case 120: { cognitiveComplexity_ = input.readInt32(); bitField0_ |= 0x00000100; break; } // case 120 case 128: { int v = input.readInt32(); ensureExecutableLinesIsMutable(); executableLines_.addInt(v); break; } // case 128 case 130: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); ensureExecutableLinesIsMutable(); while (input.getBytesUntilLimit() > 0) { executableLines_.addInt(input.readInt32()); } input.popLimit(limit); break; } // case 130 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object filePath_ = ""; /** * string file_path = 1; * @return The filePath. */ public java.lang.String getFilePath() { java.lang.Object ref = filePath_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filePath_ = s; return s; } else { return (java.lang.String) ref; } } /** * string file_path = 1; * @return The bytes for filePath. */ public com.google.protobuf.ByteString getFilePathBytes() { java.lang.Object ref = filePath_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); filePath_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string file_path = 1; * @param value The filePath to set. * @return This builder for chaining. */ public Builder setFilePath( java.lang.String value) { if (value == null) { throw new NullPointerException(); } filePath_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * string file_path = 1; * @return This builder for chaining. */ public Builder clearFilePath() { filePath_ = getDefaultInstance().getFilePath(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * string file_path = 1; * @param value The bytes for filePath to set. * @return This builder for chaining. */ public Builder setFilePathBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); filePath_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private int classCount_ ; /** * int32 class_count = 2; * @return The classCount. */ @java.lang.Override public int getClassCount() { return classCount_; } /** * int32 class_count = 2; * @param value The classCount to set. * @return This builder for chaining. */ public Builder setClassCount(int value) { classCount_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * int32 class_count = 2; * @return This builder for chaining. */ public Builder clearClassCount() { bitField0_ = (bitField0_ & ~0x00000002); classCount_ = 0; onChanged(); return this; } private int statementCount_ ; /** * int32 statement_count = 3; * @return The statementCount. */ @java.lang.Override public int getStatementCount() { return statementCount_; } /** * int32 statement_count = 3; * @param value The statementCount to set. * @return This builder for chaining. */ public Builder setStatementCount(int value) { statementCount_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * int32 statement_count = 3; * @return This builder for chaining. */ public Builder clearStatementCount() { bitField0_ = (bitField0_ & ~0x00000004); statementCount_ = 0; onChanged(); return this; } private int functionCount_ ; /** * int32 function_count = 4; * @return The functionCount. */ @java.lang.Override public int getFunctionCount() { return functionCount_; } /** * int32 function_count = 4; * @param value The functionCount to set. * @return This builder for chaining. */ public Builder setFunctionCount(int value) { functionCount_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * int32 function_count = 4; * @return This builder for chaining. */ public Builder clearFunctionCount() { bitField0_ = (bitField0_ & ~0x00000008); functionCount_ = 0; onChanged(); return this; } private int complexity_ ; /** * int32 complexity = 7; * @return The complexity. */ @java.lang.Override public int getComplexity() { return complexity_; } /** * int32 complexity = 7; * @param value The complexity to set. * @return This builder for chaining. */ public Builder setComplexity(int value) { complexity_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** * int32 complexity = 7; * @return This builder for chaining. */ public Builder clearComplexity() { bitField0_ = (bitField0_ & ~0x00000010); complexity_ = 0; onChanged(); return this; } private com.google.protobuf.Internal.IntList noSonarComment_ = emptyIntList(); private void ensureNoSonarCommentIsMutable() { if (!noSonarComment_.isModifiable()) { noSonarComment_ = makeMutableCopy(noSonarComment_); } bitField0_ |= 0x00000020; } /** * repeated int32 no_sonar_comment = 12; * @return A list containing the noSonarComment. */ public java.util.List getNoSonarCommentList() { noSonarComment_.makeImmutable(); return noSonarComment_; } /** * repeated int32 no_sonar_comment = 12; * @return The count of noSonarComment. */ public int getNoSonarCommentCount() { return noSonarComment_.size(); } /** * repeated int32 no_sonar_comment = 12; * @param index The index of the element to return. * @return The noSonarComment at the given index. */ public int getNoSonarComment(int index) { return noSonarComment_.getInt(index); } /** * repeated int32 no_sonar_comment = 12; * @param index The index to set the value at. * @param value The noSonarComment to set. * @return This builder for chaining. */ public Builder setNoSonarComment( int index, int value) { ensureNoSonarCommentIsMutable(); noSonarComment_.setInt(index, value); bitField0_ |= 0x00000020; onChanged(); return this; } /** * repeated int32 no_sonar_comment = 12; * @param value The noSonarComment to add. * @return This builder for chaining. */ public Builder addNoSonarComment(int value) { ensureNoSonarCommentIsMutable(); noSonarComment_.addInt(value); bitField0_ |= 0x00000020; onChanged(); return this; } /** * repeated int32 no_sonar_comment = 12; * @param values The noSonarComment to add. * @return This builder for chaining. */ public Builder addAllNoSonarComment( java.lang.Iterable values) { ensureNoSonarCommentIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, noSonarComment_); bitField0_ |= 0x00000020; onChanged(); return this; } /** * repeated int32 no_sonar_comment = 12; * @return This builder for chaining. */ public Builder clearNoSonarComment() { noSonarComment_ = emptyIntList(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } private com.google.protobuf.Internal.IntList nonBlankComment_ = emptyIntList(); private void ensureNonBlankCommentIsMutable() { if (!nonBlankComment_.isModifiable()) { nonBlankComment_ = makeMutableCopy(nonBlankComment_); } bitField0_ |= 0x00000040; } /** * repeated int32 non_blank_comment = 13; * @return A list containing the nonBlankComment. */ public java.util.List getNonBlankCommentList() { nonBlankComment_.makeImmutable(); return nonBlankComment_; } /** * repeated int32 non_blank_comment = 13; * @return The count of nonBlankComment. */ public int getNonBlankCommentCount() { return nonBlankComment_.size(); } /** * repeated int32 non_blank_comment = 13; * @param index The index of the element to return. * @return The nonBlankComment at the given index. */ public int getNonBlankComment(int index) { return nonBlankComment_.getInt(index); } /** * repeated int32 non_blank_comment = 13; * @param index The index to set the value at. * @param value The nonBlankComment to set. * @return This builder for chaining. */ public Builder setNonBlankComment( int index, int value) { ensureNonBlankCommentIsMutable(); nonBlankComment_.setInt(index, value); bitField0_ |= 0x00000040; onChanged(); return this; } /** * repeated int32 non_blank_comment = 13; * @param value The nonBlankComment to add. * @return This builder for chaining. */ public Builder addNonBlankComment(int value) { ensureNonBlankCommentIsMutable(); nonBlankComment_.addInt(value); bitField0_ |= 0x00000040; onChanged(); return this; } /** * repeated int32 non_blank_comment = 13; * @param values The nonBlankComment to add. * @return This builder for chaining. */ public Builder addAllNonBlankComment( java.lang.Iterable values) { ensureNonBlankCommentIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, nonBlankComment_); bitField0_ |= 0x00000040; onChanged(); return this; } /** * repeated int32 non_blank_comment = 13; * @return This builder for chaining. */ public Builder clearNonBlankComment() { nonBlankComment_ = emptyIntList(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } private com.google.protobuf.Internal.IntList codeLine_ = emptyIntList(); private void ensureCodeLineIsMutable() { if (!codeLine_.isModifiable()) { codeLine_ = makeMutableCopy(codeLine_); } bitField0_ |= 0x00000080; } /** * repeated int32 code_line = 14; * @return A list containing the codeLine. */ public java.util.List getCodeLineList() { codeLine_.makeImmutable(); return codeLine_; } /** * repeated int32 code_line = 14; * @return The count of codeLine. */ public int getCodeLineCount() { return codeLine_.size(); } /** * repeated int32 code_line = 14; * @param index The index of the element to return. * @return The codeLine at the given index. */ public int getCodeLine(int index) { return codeLine_.getInt(index); } /** * repeated int32 code_line = 14; * @param index The index to set the value at. * @param value The codeLine to set. * @return This builder for chaining. */ public Builder setCodeLine( int index, int value) { ensureCodeLineIsMutable(); codeLine_.setInt(index, value); bitField0_ |= 0x00000080; onChanged(); return this; } /** * repeated int32 code_line = 14; * @param value The codeLine to add. * @return This builder for chaining. */ public Builder addCodeLine(int value) { ensureCodeLineIsMutable(); codeLine_.addInt(value); bitField0_ |= 0x00000080; onChanged(); return this; } /** * repeated int32 code_line = 14; * @param values The codeLine to add. * @return This builder for chaining. */ public Builder addAllCodeLine( java.lang.Iterable values) { ensureCodeLineIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, codeLine_); bitField0_ |= 0x00000080; onChanged(); return this; } /** * repeated int32 code_line = 14; * @return This builder for chaining. */ public Builder clearCodeLine() { codeLine_ = emptyIntList(); bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } private int cognitiveComplexity_ ; /** * int32 cognitive_complexity = 15; * @return The cognitiveComplexity. */ @java.lang.Override public int getCognitiveComplexity() { return cognitiveComplexity_; } /** * int32 cognitive_complexity = 15; * @param value The cognitiveComplexity to set. * @return This builder for chaining. */ public Builder setCognitiveComplexity(int value) { cognitiveComplexity_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } /** * int32 cognitive_complexity = 15; * @return This builder for chaining. */ public Builder clearCognitiveComplexity() { bitField0_ = (bitField0_ & ~0x00000100); cognitiveComplexity_ = 0; onChanged(); return this; } private com.google.protobuf.Internal.IntList executableLines_ = emptyIntList(); private void ensureExecutableLinesIsMutable() { if (!executableLines_.isModifiable()) { executableLines_ = makeMutableCopy(executableLines_); } bitField0_ |= 0x00000200; } /** * repeated int32 executable_lines = 16; * @return A list containing the executableLines. */ public java.util.List getExecutableLinesList() { executableLines_.makeImmutable(); return executableLines_; } /** * repeated int32 executable_lines = 16; * @return The count of executableLines. */ public int getExecutableLinesCount() { return executableLines_.size(); } /** * repeated int32 executable_lines = 16; * @param index The index of the element to return. * @return The executableLines at the given index. */ public int getExecutableLines(int index) { return executableLines_.getInt(index); } /** * repeated int32 executable_lines = 16; * @param index The index to set the value at. * @param value The executableLines to set. * @return This builder for chaining. */ public Builder setExecutableLines( int index, int value) { ensureExecutableLinesIsMutable(); executableLines_.setInt(index, value); bitField0_ |= 0x00000200; onChanged(); return this; } /** * repeated int32 executable_lines = 16; * @param value The executableLines to add. * @return This builder for chaining. */ public Builder addExecutableLines(int value) { ensureExecutableLinesIsMutable(); executableLines_.addInt(value); bitField0_ |= 0x00000200; onChanged(); return this; } /** * repeated int32 executable_lines = 16; * @param values The executableLines to add. * @return This builder for chaining. */ public Builder addAllExecutableLines( java.lang.Iterable values) { ensureExecutableLinesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, executableLines_); bitField0_ |= 0x00000200; onChanged(); return this; } /** * repeated int32 executable_lines = 16; * @return This builder for chaining. */ public Builder clearExecutableLines() { executableLines_ = emptyIntList(); bitField0_ = (bitField0_ & ~0x00000200); onChanged(); return this; } // @@protoc_insertion_point(builder_scope:sonaranalyzer.MetricsInfo) } // @@protoc_insertion_point(class_scope:sonaranalyzer.MetricsInfo) private static final org.sonarsource.dotnet.protobuf.SonarAnalyzer.MetricsInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.sonarsource.dotnet.protobuf.SonarAnalyzer.MetricsInfo(); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.MetricsInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MetricsInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.sonarsource.dotnet.protobuf.SonarAnalyzer.MetricsInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface FileMetadataInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:sonaranalyzer.FileMetadataInfo) com.google.protobuf.MessageOrBuilder { /** * string file_path = 1; * @return The filePath. */ java.lang.String getFilePath(); /** * string file_path = 1; * @return The bytes for filePath. */ com.google.protobuf.ByteString getFilePathBytes(); /** * bool is_generated = 2; * @return The isGenerated. */ boolean getIsGenerated(); /** * string encoding = 3; * @return The encoding. */ java.lang.String getEncoding(); /** * string encoding = 3; * @return The bytes for encoding. */ com.google.protobuf.ByteString getEncodingBytes(); } /** * Protobuf type {@code sonaranalyzer.FileMetadataInfo} */ public static final class FileMetadataInfo extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:sonaranalyzer.FileMetadataInfo) FileMetadataInfoOrBuilder { private static final long serialVersionUID = 0L; static { com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, /* minor= */ 27, /* patch= */ 0, /* suffix= */ "", FileMetadataInfo.class.getName()); } // Use FileMetadataInfo.newBuilder() to construct. private FileMetadataInfo(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private FileMetadataInfo() { filePath_ = ""; encoding_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.sonarsource.dotnet.protobuf.SonarAnalyzer.internal_static_sonaranalyzer_FileMetadataInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.sonarsource.dotnet.protobuf.SonarAnalyzer.internal_static_sonaranalyzer_FileMetadataInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.sonarsource.dotnet.protobuf.SonarAnalyzer.FileMetadataInfo.class, org.sonarsource.dotnet.protobuf.SonarAnalyzer.FileMetadataInfo.Builder.class); } public static final int FILE_PATH_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object filePath_ = ""; /** * string file_path = 1; * @return The filePath. */ @java.lang.Override public java.lang.String getFilePath() { java.lang.Object ref = filePath_; 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(); filePath_ = s; return s; } } /** * string file_path = 1; * @return The bytes for filePath. */ @java.lang.Override public com.google.protobuf.ByteString getFilePathBytes() { java.lang.Object ref = filePath_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); filePath_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int IS_GENERATED_FIELD_NUMBER = 2; private boolean isGenerated_ = false; /** * bool is_generated = 2; * @return The isGenerated. */ @java.lang.Override public boolean getIsGenerated() { return isGenerated_; } public static final int ENCODING_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object encoding_ = ""; /** * string encoding = 3; * @return The encoding. */ @java.lang.Override public java.lang.String getEncoding() { java.lang.Object ref = encoding_; 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(); encoding_ = s; return s; } } /** * string encoding = 3; * @return The bytes for encoding. */ @java.lang.Override public com.google.protobuf.ByteString getEncodingBytes() { java.lang.Object ref = encoding_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); encoding_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filePath_)) { com.google.protobuf.GeneratedMessage.writeString(output, 1, filePath_); } if (isGenerated_ != false) { output.writeBool(2, isGenerated_); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(encoding_)) { com.google.protobuf.GeneratedMessage.writeString(output, 3, encoding_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filePath_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(1, filePath_); } if (isGenerated_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, isGenerated_); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(encoding_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(3, encoding_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.sonarsource.dotnet.protobuf.SonarAnalyzer.FileMetadataInfo)) { return super.equals(obj); } org.sonarsource.dotnet.protobuf.SonarAnalyzer.FileMetadataInfo other = (org.sonarsource.dotnet.protobuf.SonarAnalyzer.FileMetadataInfo) obj; if (!getFilePath() .equals(other.getFilePath())) return false; if (getIsGenerated() != other.getIsGenerated()) return false; if (!getEncoding() .equals(other.getEncoding())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + FILE_PATH_FIELD_NUMBER; hash = (53 * hash) + getFilePath().hashCode(); hash = (37 * hash) + IS_GENERATED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getIsGenerated()); hash = (37 * hash) + ENCODING_FIELD_NUMBER; hash = (53 * hash) + getEncoding().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.FileMetadataInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.FileMetadataInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.FileMetadataInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.FileMetadataInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.FileMetadataInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.FileMetadataInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.FileMetadataInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.FileMetadataInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.FileMetadataInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.FileMetadataInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.FileMetadataInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.FileMetadataInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.sonarsource.dotnet.protobuf.SonarAnalyzer.FileMetadataInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override 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 sonaranalyzer.FileMetadataInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:sonaranalyzer.FileMetadataInfo) org.sonarsource.dotnet.protobuf.SonarAnalyzer.FileMetadataInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.sonarsource.dotnet.protobuf.SonarAnalyzer.internal_static_sonaranalyzer_FileMetadataInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.sonarsource.dotnet.protobuf.SonarAnalyzer.internal_static_sonaranalyzer_FileMetadataInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.sonarsource.dotnet.protobuf.SonarAnalyzer.FileMetadataInfo.class, org.sonarsource.dotnet.protobuf.SonarAnalyzer.FileMetadataInfo.Builder.class); } // Construct using org.sonarsource.dotnet.protobuf.SonarAnalyzer.FileMetadataInfo.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; filePath_ = ""; isGenerated_ = false; encoding_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.sonarsource.dotnet.protobuf.SonarAnalyzer.internal_static_sonaranalyzer_FileMetadataInfo_descriptor; } @java.lang.Override public org.sonarsource.dotnet.protobuf.SonarAnalyzer.FileMetadataInfo getDefaultInstanceForType() { return org.sonarsource.dotnet.protobuf.SonarAnalyzer.FileMetadataInfo.getDefaultInstance(); } @java.lang.Override public org.sonarsource.dotnet.protobuf.SonarAnalyzer.FileMetadataInfo build() { org.sonarsource.dotnet.protobuf.SonarAnalyzer.FileMetadataInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.sonarsource.dotnet.protobuf.SonarAnalyzer.FileMetadataInfo buildPartial() { org.sonarsource.dotnet.protobuf.SonarAnalyzer.FileMetadataInfo result = new org.sonarsource.dotnet.protobuf.SonarAnalyzer.FileMetadataInfo(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.sonarsource.dotnet.protobuf.SonarAnalyzer.FileMetadataInfo result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.filePath_ = filePath_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.isGenerated_ = isGenerated_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.encoding_ = encoding_; } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.sonarsource.dotnet.protobuf.SonarAnalyzer.FileMetadataInfo) { return mergeFrom((org.sonarsource.dotnet.protobuf.SonarAnalyzer.FileMetadataInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.sonarsource.dotnet.protobuf.SonarAnalyzer.FileMetadataInfo other) { if (other == org.sonarsource.dotnet.protobuf.SonarAnalyzer.FileMetadataInfo.getDefaultInstance()) return this; if (!other.getFilePath().isEmpty()) { filePath_ = other.filePath_; bitField0_ |= 0x00000001; onChanged(); } if (other.getIsGenerated() != false) { setIsGenerated(other.getIsGenerated()); } if (!other.getEncoding().isEmpty()) { encoding_ = other.encoding_; bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { filePath_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 16: { isGenerated_ = input.readBool(); bitField0_ |= 0x00000002; break; } // case 16 case 26: { encoding_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object filePath_ = ""; /** * string file_path = 1; * @return The filePath. */ public java.lang.String getFilePath() { java.lang.Object ref = filePath_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filePath_ = s; return s; } else { return (java.lang.String) ref; } } /** * string file_path = 1; * @return The bytes for filePath. */ public com.google.protobuf.ByteString getFilePathBytes() { java.lang.Object ref = filePath_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); filePath_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string file_path = 1; * @param value The filePath to set. * @return This builder for chaining. */ public Builder setFilePath( java.lang.String value) { if (value == null) { throw new NullPointerException(); } filePath_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * string file_path = 1; * @return This builder for chaining. */ public Builder clearFilePath() { filePath_ = getDefaultInstance().getFilePath(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * string file_path = 1; * @param value The bytes for filePath to set. * @return This builder for chaining. */ public Builder setFilePathBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); filePath_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private boolean isGenerated_ ; /** * bool is_generated = 2; * @return The isGenerated. */ @java.lang.Override public boolean getIsGenerated() { return isGenerated_; } /** * bool is_generated = 2; * @param value The isGenerated to set. * @return This builder for chaining. */ public Builder setIsGenerated(boolean value) { isGenerated_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * bool is_generated = 2; * @return This builder for chaining. */ public Builder clearIsGenerated() { bitField0_ = (bitField0_ & ~0x00000002); isGenerated_ = false; onChanged(); return this; } private java.lang.Object encoding_ = ""; /** * string encoding = 3; * @return The encoding. */ public java.lang.String getEncoding() { java.lang.Object ref = encoding_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); encoding_ = s; return s; } else { return (java.lang.String) ref; } } /** * string encoding = 3; * @return The bytes for encoding. */ public com.google.protobuf.ByteString getEncodingBytes() { java.lang.Object ref = encoding_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); encoding_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string encoding = 3; * @param value The encoding to set. * @return This builder for chaining. */ public Builder setEncoding( java.lang.String value) { if (value == null) { throw new NullPointerException(); } encoding_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * string encoding = 3; * @return This builder for chaining. */ public Builder clearEncoding() { encoding_ = getDefaultInstance().getEncoding(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * string encoding = 3; * @param value The bytes for encoding to set. * @return This builder for chaining. */ public Builder setEncodingBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); encoding_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:sonaranalyzer.FileMetadataInfo) } // @@protoc_insertion_point(class_scope:sonaranalyzer.FileMetadataInfo) private static final org.sonarsource.dotnet.protobuf.SonarAnalyzer.FileMetadataInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.sonarsource.dotnet.protobuf.SonarAnalyzer.FileMetadataInfo(); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.FileMetadataInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public FileMetadataInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.sonarsource.dotnet.protobuf.SonarAnalyzer.FileMetadataInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface LogInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:sonaranalyzer.LogInfo) com.google.protobuf.MessageOrBuilder { /** * .sonaranalyzer.LogSeverity severity = 1; * @return The enum numeric value on the wire for severity. */ int getSeverityValue(); /** * .sonaranalyzer.LogSeverity severity = 1; * @return The severity. */ org.sonarsource.dotnet.protobuf.SonarAnalyzer.LogSeverity getSeverity(); /** * string text = 2; * @return The text. */ java.lang.String getText(); /** * string text = 2; * @return The bytes for text. */ com.google.protobuf.ByteString getTextBytes(); } /** * Protobuf type {@code sonaranalyzer.LogInfo} */ public static final class LogInfo extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:sonaranalyzer.LogInfo) LogInfoOrBuilder { private static final long serialVersionUID = 0L; static { com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, /* minor= */ 27, /* patch= */ 0, /* suffix= */ "", LogInfo.class.getName()); } // Use LogInfo.newBuilder() to construct. private LogInfo(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private LogInfo() { severity_ = 0; text_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.sonarsource.dotnet.protobuf.SonarAnalyzer.internal_static_sonaranalyzer_LogInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.sonarsource.dotnet.protobuf.SonarAnalyzer.internal_static_sonaranalyzer_LogInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.sonarsource.dotnet.protobuf.SonarAnalyzer.LogInfo.class, org.sonarsource.dotnet.protobuf.SonarAnalyzer.LogInfo.Builder.class); } public static final int SEVERITY_FIELD_NUMBER = 1; private int severity_ = 0; /** * .sonaranalyzer.LogSeverity severity = 1; * @return The enum numeric value on the wire for severity. */ @java.lang.Override public int getSeverityValue() { return severity_; } /** * .sonaranalyzer.LogSeverity severity = 1; * @return The severity. */ @java.lang.Override public org.sonarsource.dotnet.protobuf.SonarAnalyzer.LogSeverity getSeverity() { org.sonarsource.dotnet.protobuf.SonarAnalyzer.LogSeverity result = org.sonarsource.dotnet.protobuf.SonarAnalyzer.LogSeverity.forNumber(severity_); return result == null ? org.sonarsource.dotnet.protobuf.SonarAnalyzer.LogSeverity.UNRECOGNIZED : result; } public static final int TEXT_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object text_ = ""; /** * string text = 2; * @return The text. */ @java.lang.Override public java.lang.String getText() { java.lang.Object ref = text_; 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(); text_ = s; return s; } } /** * string text = 2; * @return The bytes for text. */ @java.lang.Override public com.google.protobuf.ByteString getTextBytes() { java.lang.Object ref = text_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); text_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (severity_ != org.sonarsource.dotnet.protobuf.SonarAnalyzer.LogSeverity.UNKNOWN_SEVERITY.getNumber()) { output.writeEnum(1, severity_); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(text_)) { com.google.protobuf.GeneratedMessage.writeString(output, 2, text_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (severity_ != org.sonarsource.dotnet.protobuf.SonarAnalyzer.LogSeverity.UNKNOWN_SEVERITY.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, severity_); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(text_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(2, text_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.sonarsource.dotnet.protobuf.SonarAnalyzer.LogInfo)) { return super.equals(obj); } org.sonarsource.dotnet.protobuf.SonarAnalyzer.LogInfo other = (org.sonarsource.dotnet.protobuf.SonarAnalyzer.LogInfo) obj; if (severity_ != other.severity_) return false; if (!getText() .equals(other.getText())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + SEVERITY_FIELD_NUMBER; hash = (53 * hash) + severity_; hash = (37 * hash) + TEXT_FIELD_NUMBER; hash = (53 * hash) + getText().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.LogInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.LogInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.LogInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.LogInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.LogInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.LogInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.LogInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.LogInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.LogInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.LogInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.LogInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.LogInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.sonarsource.dotnet.protobuf.SonarAnalyzer.LogInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override 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 sonaranalyzer.LogInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:sonaranalyzer.LogInfo) org.sonarsource.dotnet.protobuf.SonarAnalyzer.LogInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.sonarsource.dotnet.protobuf.SonarAnalyzer.internal_static_sonaranalyzer_LogInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.sonarsource.dotnet.protobuf.SonarAnalyzer.internal_static_sonaranalyzer_LogInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.sonarsource.dotnet.protobuf.SonarAnalyzer.LogInfo.class, org.sonarsource.dotnet.protobuf.SonarAnalyzer.LogInfo.Builder.class); } // Construct using org.sonarsource.dotnet.protobuf.SonarAnalyzer.LogInfo.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; severity_ = 0; text_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.sonarsource.dotnet.protobuf.SonarAnalyzer.internal_static_sonaranalyzer_LogInfo_descriptor; } @java.lang.Override public org.sonarsource.dotnet.protobuf.SonarAnalyzer.LogInfo getDefaultInstanceForType() { return org.sonarsource.dotnet.protobuf.SonarAnalyzer.LogInfo.getDefaultInstance(); } @java.lang.Override public org.sonarsource.dotnet.protobuf.SonarAnalyzer.LogInfo build() { org.sonarsource.dotnet.protobuf.SonarAnalyzer.LogInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.sonarsource.dotnet.protobuf.SonarAnalyzer.LogInfo buildPartial() { org.sonarsource.dotnet.protobuf.SonarAnalyzer.LogInfo result = new org.sonarsource.dotnet.protobuf.SonarAnalyzer.LogInfo(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.sonarsource.dotnet.protobuf.SonarAnalyzer.LogInfo result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.severity_ = severity_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.text_ = text_; } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.sonarsource.dotnet.protobuf.SonarAnalyzer.LogInfo) { return mergeFrom((org.sonarsource.dotnet.protobuf.SonarAnalyzer.LogInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.sonarsource.dotnet.protobuf.SonarAnalyzer.LogInfo other) { if (other == org.sonarsource.dotnet.protobuf.SonarAnalyzer.LogInfo.getDefaultInstance()) return this; if (other.severity_ != 0) { setSeverityValue(other.getSeverityValue()); } if (!other.getText().isEmpty()) { text_ = other.text_; bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { severity_ = input.readEnum(); bitField0_ |= 0x00000001; break; } // case 8 case 18: { text_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private int severity_ = 0; /** * .sonaranalyzer.LogSeverity severity = 1; * @return The enum numeric value on the wire for severity. */ @java.lang.Override public int getSeverityValue() { return severity_; } /** * .sonaranalyzer.LogSeverity severity = 1; * @param value The enum numeric value on the wire for severity to set. * @return This builder for chaining. */ public Builder setSeverityValue(int value) { severity_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * .sonaranalyzer.LogSeverity severity = 1; * @return The severity. */ @java.lang.Override public org.sonarsource.dotnet.protobuf.SonarAnalyzer.LogSeverity getSeverity() { org.sonarsource.dotnet.protobuf.SonarAnalyzer.LogSeverity result = org.sonarsource.dotnet.protobuf.SonarAnalyzer.LogSeverity.forNumber(severity_); return result == null ? org.sonarsource.dotnet.protobuf.SonarAnalyzer.LogSeverity.UNRECOGNIZED : result; } /** * .sonaranalyzer.LogSeverity severity = 1; * @param value The severity to set. * @return This builder for chaining. */ public Builder setSeverity(org.sonarsource.dotnet.protobuf.SonarAnalyzer.LogSeverity value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; severity_ = value.getNumber(); onChanged(); return this; } /** * .sonaranalyzer.LogSeverity severity = 1; * @return This builder for chaining. */ public Builder clearSeverity() { bitField0_ = (bitField0_ & ~0x00000001); severity_ = 0; onChanged(); return this; } private java.lang.Object text_ = ""; /** * string text = 2; * @return The text. */ public java.lang.String getText() { java.lang.Object ref = text_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); text_ = s; return s; } else { return (java.lang.String) ref; } } /** * string text = 2; * @return The bytes for text. */ public com.google.protobuf.ByteString getTextBytes() { java.lang.Object ref = text_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); text_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string text = 2; * @param value The text to set. * @return This builder for chaining. */ public Builder setText( java.lang.String value) { if (value == null) { throw new NullPointerException(); } text_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * string text = 2; * @return This builder for chaining. */ public Builder clearText() { text_ = getDefaultInstance().getText(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * string text = 2; * @param value The bytes for text to set. * @return This builder for chaining. */ public Builder setTextBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); text_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:sonaranalyzer.LogInfo) } // @@protoc_insertion_point(class_scope:sonaranalyzer.LogInfo) private static final org.sonarsource.dotnet.protobuf.SonarAnalyzer.LogInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.sonarsource.dotnet.protobuf.SonarAnalyzer.LogInfo(); } public static org.sonarsource.dotnet.protobuf.SonarAnalyzer.LogInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public LogInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.sonarsource.dotnet.protobuf.SonarAnalyzer.LogInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_sonaranalyzer_TextRange_descriptor; private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_sonaranalyzer_TextRange_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_sonaranalyzer_TokenTypeInfo_descriptor; private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_sonaranalyzer_TokenTypeInfo_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_sonaranalyzer_TokenTypeInfo_TokenInfo_descriptor; private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_sonaranalyzer_TokenTypeInfo_TokenInfo_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_sonaranalyzer_SymbolReferenceInfo_descriptor; private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_sonaranalyzer_SymbolReferenceInfo_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_sonaranalyzer_SymbolReferenceInfo_SymbolReference_descriptor; private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_sonaranalyzer_SymbolReferenceInfo_SymbolReference_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_sonaranalyzer_CopyPasteTokenInfo_descriptor; private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_sonaranalyzer_CopyPasteTokenInfo_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_sonaranalyzer_CopyPasteTokenInfo_TokenInfo_descriptor; private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_sonaranalyzer_CopyPasteTokenInfo_TokenInfo_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_sonaranalyzer_MetricsInfo_descriptor; private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_sonaranalyzer_MetricsInfo_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_sonaranalyzer_FileMetadataInfo_descriptor; private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_sonaranalyzer_FileMetadataInfo_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_sonaranalyzer_LogInfo_descriptor; private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_sonaranalyzer_LogInfo_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\024AnalyzerReport.proto\022\rsonaranalyzer\"[\n" + "\tTextRange\022\022\n\nstart_line\030\001 \001(\005\022\020\n\010end_li" + "ne\030\002 \001(\005\022\024\n\014start_offset\030\003 \001(\005\022\022\n\nend_of" + "fset\030\004 \001(\005\"\307\001\n\rTokenTypeInfo\022\021\n\tfile_pat" + "h\030\001 \001(\t\022:\n\ntoken_info\030\002 \003(\0132&.sonaranaly" + "zer.TokenTypeInfo.TokenInfo\032g\n\tTokenInfo" + "\022,\n\ntoken_type\030\001 \001(\0162\030.sonaranalyzer.Tok" + "enType\022,\n\ntext_range\030\002 \001(\0132\030.sonaranalyz" + "er.TextRange\"\336\001\n\023SymbolReferenceInfo\022\021\n\t" + "file_path\030\001 \001(\t\022E\n\treference\030\002 \003(\01322.son" + "aranalyzer.SymbolReferenceInfo.SymbolRef" + "erence\032m\n\017SymbolReference\022-\n\013declaration" + "\030\001 \001(\0132\030.sonaranalyzer.TextRange\022+\n\trefe" + "rence\030\002 \003(\0132\030.sonaranalyzer.TextRange\"\270\001" + "\n\022CopyPasteTokenInfo\022\021\n\tfile_path\030\001 \001(\t\022" + "?\n\ntoken_info\030\002 \003(\0132+.sonaranalyzer.Copy" + "PasteTokenInfo.TokenInfo\032N\n\tTokenInfo\022\023\n" + "\013token_value\030\001 \001(\t\022,\n\ntext_range\030\002 \001(\0132\030" + ".sonaranalyzer.TextRange\"\372\001\n\013MetricsInfo" + "\022\021\n\tfile_path\030\001 \001(\t\022\023\n\013class_count\030\002 \001(\005" + "\022\027\n\017statement_count\030\003 \001(\005\022\026\n\016function_co" + "unt\030\004 \001(\005\022\022\n\ncomplexity\030\007 \001(\005\022\030\n\020no_sona" + "r_comment\030\014 \003(\005\022\031\n\021non_blank_comment\030\r \003" + "(\005\022\021\n\tcode_line\030\016 \003(\005\022\034\n\024cognitive_compl" + "exity\030\017 \001(\005\022\030\n\020executable_lines\030\020 \003(\005\"M\n" + "\020FileMetadataInfo\022\021\n\tfile_path\030\001 \001(\t\022\024\n\014" + "is_generated\030\002 \001(\010\022\020\n\010encoding\030\003 \001(\t\"E\n\007" + "LogInfo\022,\n\010severity\030\001 \001(\0162\032.sonaranalyze" + "r.LogSeverity\022\014\n\004text\030\002 \001(\t*t\n\tTokenType" + "\022\025\n\021UNKNOWN_TOKENTYPE\020\000\022\r\n\tTYPE_NAME\020\001\022\023" + "\n\017NUMERIC_LITERAL\020\002\022\022\n\016STRING_LITERAL\020\003\022" + "\013\n\007KEYWORD\020\004\022\013\n\007COMMENT\020\005*E\n\013LogSeverity" + "\022\024\n\020UNKNOWN_SEVERITY\020\000\022\t\n\005DEBUG\020\001\022\010\n\004INF" + "O\020\002\022\013\n\007WARNING\020\003BK\n\037org.sonarsource.dotn" + "et.protobufB\rSonarAnalyzerH\001\252\002\026SonarAnal" + "yzer.Protobufb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { }); internal_static_sonaranalyzer_TextRange_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_sonaranalyzer_TextRange_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_sonaranalyzer_TextRange_descriptor, new java.lang.String[] { "StartLine", "EndLine", "StartOffset", "EndOffset", }); internal_static_sonaranalyzer_TokenTypeInfo_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_sonaranalyzer_TokenTypeInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_sonaranalyzer_TokenTypeInfo_descriptor, new java.lang.String[] { "FilePath", "TokenInfo", }); internal_static_sonaranalyzer_TokenTypeInfo_TokenInfo_descriptor = internal_static_sonaranalyzer_TokenTypeInfo_descriptor.getNestedTypes().get(0); internal_static_sonaranalyzer_TokenTypeInfo_TokenInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_sonaranalyzer_TokenTypeInfo_TokenInfo_descriptor, new java.lang.String[] { "TokenType", "TextRange", }); internal_static_sonaranalyzer_SymbolReferenceInfo_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_sonaranalyzer_SymbolReferenceInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_sonaranalyzer_SymbolReferenceInfo_descriptor, new java.lang.String[] { "FilePath", "Reference", }); internal_static_sonaranalyzer_SymbolReferenceInfo_SymbolReference_descriptor = internal_static_sonaranalyzer_SymbolReferenceInfo_descriptor.getNestedTypes().get(0); internal_static_sonaranalyzer_SymbolReferenceInfo_SymbolReference_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_sonaranalyzer_SymbolReferenceInfo_SymbolReference_descriptor, new java.lang.String[] { "Declaration", "Reference", }); internal_static_sonaranalyzer_CopyPasteTokenInfo_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_sonaranalyzer_CopyPasteTokenInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_sonaranalyzer_CopyPasteTokenInfo_descriptor, new java.lang.String[] { "FilePath", "TokenInfo", }); internal_static_sonaranalyzer_CopyPasteTokenInfo_TokenInfo_descriptor = internal_static_sonaranalyzer_CopyPasteTokenInfo_descriptor.getNestedTypes().get(0); internal_static_sonaranalyzer_CopyPasteTokenInfo_TokenInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_sonaranalyzer_CopyPasteTokenInfo_TokenInfo_descriptor, new java.lang.String[] { "TokenValue", "TextRange", }); internal_static_sonaranalyzer_MetricsInfo_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_sonaranalyzer_MetricsInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_sonaranalyzer_MetricsInfo_descriptor, new java.lang.String[] { "FilePath", "ClassCount", "StatementCount", "FunctionCount", "Complexity", "NoSonarComment", "NonBlankComment", "CodeLine", "CognitiveComplexity", "ExecutableLines", }); internal_static_sonaranalyzer_FileMetadataInfo_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_sonaranalyzer_FileMetadataInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_sonaranalyzer_FileMetadataInfo_descriptor, new java.lang.String[] { "FilePath", "IsGenerated", "Encoding", }); internal_static_sonaranalyzer_LogInfo_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_sonaranalyzer_LogInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_sonaranalyzer_LogInfo_descriptor, new java.lang.String[] { "Severity", "Text", }); descriptor.resolveAllFeaturesImmutable(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy